question_id
int64
1
1.16M
title
stringlengths
10
191
question_body
stringlengths
6
2k
answer_body
stringlengths
0
2.5k
tags
stringclasses
73 values
question_score
int64
-15
1.65k
answer_score
int64
0
2.91k
view_count
int64
4
1.24M
creation_date
stringdate
2008-08-01 18:45:00
2025-06-19 04:44:02
category
stringclasses
12 values
source_site
stringclasses
8 values
1,020,303
Is exFAT filesystem a good choice for USB3 HDD connected to a home NAS server on Raspbian?
I have a home NAS on Raspberry PI4 with a USB3 HDD connected. I have a variety of devices with different OSs (Linux, Win and Mac), and I'd like to be able to access that HDD from any of those with a direct USB connection if need be. Which FS should I use? I'm thinking about exFAT. Is there any reason why exFAT should n...
I really suggest you to use an ext3/4 filesystem. exFAT should be used only when sharing data with a Windows system where no ext3/4 drives can be installed, or it is not expected to be installed (eg: sdcards used by digital camera, which can be plugged in any Windows PC).
0
1
431
2020-06-06T15:24:30.013
infrastructure
serverfault.com
1,061,107
Is it possible to force Windows 10 to use higher TCP window scale?
I have two Windows 10 machines (bld 2004) I am trying to send data to between two sites. The sites average about 50ms RTT with no packet loss. I am having an issue where the max transfer rate I can achieve is approximately 30Mbps (either direction). Site A is 100Mbps and B is 500Mbps. I have tested using different prot...
Microsoft has some detailed information on this: To set the receive window size to a specific value, add the TcpWindowSize value to the registry subkey specific to your version of Windows. To do so, follow these steps: Select Start > Run, type Regedit, and then select OK. Expand the registry subkey specific to your ver...
1
1
5,124
2021-04-21T16:04:06.513
api_errors
serverfault.com
266,032
What is the easiest way to benchmark a webserver?
I want to compare my home server (Debian 6) and Amazon EC2 (Ubuntu 10.04) Is there a program that I can simply and download and run to get the comparison values? I want to compare harddrive I/O, CPU, memory and etc.
To measure actual throughput Apachebench is simple but can give you a good first approximation. After that perhaps you should look into a tool like Jmeter , which allows you to save test cases relevant to your websites and do stress testing using them. On Debian the respective packages are [CODE] and [CODE] . If you wa...
0
2
194
2011-05-04T02:16:19.647
infrastructure
serverfault.com
44,948
Problem with Linear Regression and Gradient Descent
[CODE] I played with learning rate and the number of iterations, but this does not fit the data intuively. Can i get some tips on my code please? Thank you in advance.
Gradient descent probably didn't converge. I'd sugest scaling your feature on a [-1,1] or [0,1] scales, try increasing your learning rate and maybe add some code which checks the gradient's slope and if there is perhaps sequence of 0,
1
0
146
2019-02-01T23:21:38.593
data_quality
datascience.stackexchange.com
596,912
Custom Authentication Page - Apache mod_auth_form - Error 405 Method Not Allowed
I am having trouble trying to get the apache mod auth_form to work. I have a sub-domain that i wish to protect and use for various administrative features on my website. When i submit the auth form i get: [CODE] I have followed to my best ability the instructions in that docs here: http://httpd.apache.org/docs/current/...
I finally got this working, and I had stepped on this question while trying to find solutions to my problems. You are getting this error because your call is intercepted by the form-login-handler, which only supports POST. The trick is that the [CODE] directive should only be active for the URL that will be used as the...
2
4
7,957
2014-05-19T08:47:03.577
api_errors
serverfault.com
88,993
Problem with two kernels installed and '@fedora' entries in 'yum list'?
FC11 beta upgraded to FC12. When I do yum list I see listing on the far right column as follows: 'fedora' 'installed' and '@fedora'. Previously I never had '@fedora' and only seemed to appear when I upgraded from FC11->FC12. Also when i look at the kernels installed I have [CODE] Why do I have two entries?
kernels are in the "installonly" configuration, which means instead of doing an update (install new, then remove old) yum tells rpm to just install the new versions. This means you can install a new kernel, reboot to try it out but if it fails just reboot back to the old one. Note that you may also want to look in "man...
0
1
125
2009-11-28T10:24:14.767
infrastructure
serverfault.com
17,810
Gitlab Runner setup issues on Mac Mini with M2 processor
I have a pair of Mac Minis with M2 processors that I am trying to setup as runners on a locally hosted gitlab setup. For a variety of other systems I simply followed the instructions on the runners page. When I select Mac and Arm64 here are the instructions I see: Download and install binary [CODE] Command to register ...
There were several errors. The log files weren't writable. Either set permissions or change to some writable place. I set it [CODE] Ran the bootstrap commands the local terminal suggested that ssh never presented even with identical commands. (I hate this, I have no clue why it is different, but it is). Copied the [[ru...
1
1
971
2023-05-10T02:55:03.033
pipeline_ops
devops.stackexchange.com
774,569
How can allow an ssh connection only over vpn
I install OpenVPN on my server following this guide --> https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-04 I also setup a firewall with ufw where I add rule to allow ssh connection only from my interal IP assign to me after the VPN is Active. I cannot connect to my server w...
You can control it using the ListenAddress directive available in your ssh daemon config file Something Like [CODE] Reach the line: [CODE] Uncomment if necessary, and edit it accordingly to your vpn configuration, something like: [CODE] Restart the daemon [CODE] Check if it works Keep in mind you can also tune your fir...
5
1
9,911
2016-05-03T15:23:15.043
infrastructure
serverfault.com
290,955
Is throwing new RuntimeExceptions in unreachable code a bad style?
I was assigned to maintain an application written some time ago by more skilled developers. I came across this piece of code: [CODE] I'm curious if throwing [CODE] is justified. I'm probably missing something obvious knowing that this piece of code comes from more seasoned colleague. EDIT: Here is rethrow body that som...
First, thanks for udpating your question and showing us what [CODE] does. So, in fact, what it does is converting exceptions with properties into more fined-grained classes of exceptions. More on this later. Since I did not really answer the main question originally, here it goes: yes, it is generally bad style to thro...
32
36
12,992
2015-07-27T12:48:49.043
api_errors
softwareengineering.stackexchange.com
151,671
Easy management of multiple connections
on a Windows 7 machine I need to switch back and forth two connections: the LAN connection (that works behind a proxy) and a wireless connection via a USB modem. This requires every time to activate / deactivate two connections in the manager and switch on / off the LAN settings. I don't think there is some way to keep...
check the command line utility "netsh" http://technet.microsoft.com/en-us/library/cc732279%28WS.10%29.aspx
0
0
70
2010-06-16T12:26:33.103
infrastructure
serverfault.com
438,890
Hard coded Exchange name needs to work on another Exchange
Background. Our Exchange setup - we have an Exchange 2003 partially migrated over to Exchange 2010. The 2003 Exchange / server is exchange.net.0000.com and our 2010 Exchange is SVER03.net.0000.com. We have various in house websites that has contact forms also emails out reply's etc. Problem In the coding of the website...
When you're ready to turn off the Exchange 2003 server create a CNAME record in your net.0000.com DNS zone for "exchange" that points to the A record for "SVER03".
1
3
98
2012-10-16T11:27:20.723
infrastructure
serverfault.com
217,482
Are UDF used by a stored procedure optimised/merged in the SP itself?
The issue has sent me crazy for a few days, I may have found my answer, but I need a confirmation and to check for an eventual easy solution. When a stored procedure uses some user defined functions, are the UDF plans merged in the main plan and everything get optimised or are they called directly every time? And suppo...
If I understand the question correctly, it should depend on the type of function. Inline Table-Valued Functions have their definitions substituted into referencing queries, just like what happens with views. This is what is meant by "inline", and why they are not true modules that can be signed, among other differences...
2
5
105
2018-09-13T10:21:19.043
database_errors
dba.stackexchange.com
789,298
Putty: pscp file transfer change permission
I am transferring my file using pscp with the command below: [CODE] What would be the syntax to change the [CODE] of the [CODE] file ? In other words to perform [CODE] to the [CODE] using [CODE] ? Something like: [CODE] Thanks for your suggestions
You can't do this with pscp which is an implementation of scp. Perhaps you should look at ssh or plink to remote in to the system and run a command e.g. [CODE] Notes: The above is untested but you should be able to figure it out if it doesn't work. For a single file you don't really need [CODE] It seems odd that you ar...
0
1
2,088
2016-07-12T08:40:23.647
infrastructure
serverfault.com
74,400
Bad Design or Complicated Query?
Problem: For fun I am building a Database for lottery results to get some statistics off of. As of now I am only interested in a Pick 3 style lotto and might introduce more later. How would you approach a query to produce the desired result below? Would there be a better table design? Data [CODE] Desired Result [CODE] ...
Saving your data differently would make that query trivial. Namely: one number per row. Something like: [CODE] where [CODE] would be 1 (or zero) for the first number, 2 for the second, etc. (Only if the order has importance, drop the rank if it doesn't.) Then your query boils down to (ignoring reserved identifiers): [C...
5
10
766
2014-08-20T04:18:57.100
warehouse_errors
dba.stackexchange.com
899,898
MySQL bottleneck on AMD A-10 witn 12BG of RAM?
Running the identical python script that parses XML and inserts records into MySQL using MySQLdb package for python, I'm experiencing very different load times between a Mac Mini i5 with 8GB of RAM (OS High Sierra), and an HP Pavilion with an AMD A-10 with 12GB of RAM (Ubuntu 16.04). The Mac Mini inserts the records at...
Try tuning the MySQL performance settings. If there is any issue with the performance settings then you may face this issue. You can also try disabling vacuum. Single record per second is very low. We are doing 3000 records per second.
0
1
42
2018-03-04T13:08:46.403
database_errors
serverfault.com
299,179
How can I roll-back the execution of a constructor while building a complex data structure?
I'm building a complex tree of objects. There are a total of five types, [CODE] , [CODE] , [CODE] , [CODE] , and [CODE] . There is a single instance of [CODE] , which is the root node. [CODE] has one or more [CODE] s as children, each [CODE] has one or more [CODE] s as children, and so on. The original data format is a...
I would do this by using a [CODE] at each level of the data structure. Write a private helper method that will return the container if it already exists, or creates a new [CODE] if it does not yet exist. This is method is commonly called [CODE] . As usual, making sure that the the underlying container still exists is a...
3
2
113
2015-10-06T19:20:10.853
api_errors
softwareengineering.stackexchange.com
604,310
Is the shred utility always safe given a good random number generator?
I recently experimented with different methods of disk randomization to find what would get the job done fastest. The [CODE] random number generator with AES in counter mode was said to be pretty fast , so I tried piping its output to [CODE] (to limit the total number of output bytes and to optimize for disk sector siz...
The answer is 'it depends how much you care'. There's a lot of research into 'good' random number generation for crypto purposes, because a poor PRNG can make some ciphers vulnerable. However I'd suggest that for disk wiping, it's something of a moot point. If you overwrite with random - even if it's not 'crypto grade'...
1
1
1,246
2014-06-11T10:41:20.223
infrastructure
serverfault.com
28,885
What false ideas are there that puts people off using threads?
Implementing threading in a program is hard, yes, however why is it that some people will not implement them even when there is an obvious need for it. An example: Program has to load a dataset from a database, the thing to do would be to make the connection and get the data from the database in a worker thread and the...
Threading is hard Sure. It can be. However, people get this idea in their head that it's so hard, such that they don't bother trying to figure it out. It's not like it's impossible.
12
19
1,488
2010-12-21T22:23:46.193
api_errors
softwareengineering.stackexchange.com
81,743
NDB Cluster seems to ignore foreign_key_checks=OFF
According to MySQL documentation on the local [CODE] variable Beginning with MySQL Cluster NDB 7.3.2, setting this variable has the same effect on NDB tables as it does for InnoDB tables—previously, the setting was ignored and all such checks were enforced (Bug #14095855). I should be able to import a unordered InnoDB ...
Mock tables were how mysqldump were loaded in older versions of MySQL a long time ago Issue like this existed load of mysqldump script may fail with error 1215 if dest already has tables Foreign keys: mysqldump should respect foreign keys See that last line [CODE] Since mysqldumps were in alphabetical order by default,...
2
1
1,121
2014-11-03T16:17:36.717
database_errors
dba.stackexchange.com
330,390
How to restrict user from using different forged sender email in postfix?
I am managing a mail server. The mail server is running with multiple domains configured. The problem is authenticated user can use any sender email ID and I need to prevent it. How can I do that? Example: a sender with email [CODE] is sending mail with sender email address as [CODE] I need to prevent that.
You do this with the configuration option [CODE] . It requires the user has SASL authenticated. smtpd_sender_login_maps (default: empty) [CODE] Then you add a configuration option along with the above to the smtpd_sender_restrictions optoin such as; [CODE]
5
2
2,379
2011-11-12T15:20:10.727
infrastructure
serverfault.com
310,284
On duplicate key update throws an en duplicate entry exception
I have a table with the following structure [CODE] And I run the following update query [CODE] Oddly enough, at one point MySQL 5.7 stopped updating the data and instead started sending me [CODE] , when I execute the query above.
You have two unique keys -- [CODE] and [CODE] . Furthermore, the IODKU is specifying both [CODE] and [CODE] . Apparently, both values are in the table, but in different rows! "Normally" one would not include the [CODE] column (id) when doing IODKU. Why even have [CODE] ? Why not use [CODE] ?
0
0
1,512
2022-03-29T12:03:21.650
database_errors
dba.stackexchange.com
241,354
Use the exact same type of disk in a RAID, or different manufacturer/batches
What rule do you follow when buying disks for RAID arrays: to buy the disk as similar as possible? to buy the disks from different manufacturers? Some people chose the same type for performance and compatibility reasons. Some chose different manufacturers to lower the chances for 2 disk to fail at the same time.
It is familiar subject but I do not think it matured into some kind of rule yet. My approach is to use drives from same manufacturer but not from the same batch. At the moment, we mostly use 2TB WD drives and we maintain a spare pool of 3-6 drives. Every time we need to add storage we buy another set of drives and then...
2
1
351
2011-02-28T21:50:29.973
infrastructure
serverfault.com
39,631
Add user to sql server with the required permission
In my sql server express 2008 r2 i have about 15 login account. Now i want some about 5 users have full permission while some other 5 users with limited access to some database, and other users only read permission. In future i may add other users also. So i was thinking of doing it in simple way than giving permission...
Use a database role. Database roles are database specific (obviously) so you can't create a role that grant's permissions to multiple databases at once. However within the database you create a role either through the GUI or using the command [CODE] . Once it is created you can then grant the role permissions just like...
0
3
2,248
2013-04-10T11:27:47.447
database_errors
dba.stackexchange.com
59,991
Regarding SQL Server DENY permission on a table
RDBMS: SQL Server 2005 I am connecting to SQL Server through Windows Authentication. My account(domain\me) belong to a group, "domain\alert" The problem is that, even after denying a select permission on a table(actually all permissions), I could still access that table on a new connection. deny select on dbo.perm to [...
From Books Online's Permissions Hierarchy : SQL Server 2005 Permissions Hierarchy http://i.msdn.microsoft.com/ms191465.dd24bb63-ab23-4f72-906f-ebc348fc64d8(en-US,SQL.90).gif It looks like the Fixed database role takes precedence over the permissions given to a Windows Domain Login. I also was under the impression that ...
1
2
1,914
2009-08-28T14:20:40.280
database_errors
serverfault.com
67,914
What are the elements in a BERT word embedding?
As far as I understand, BERT is a word embedding that can be fine-tuned or used directly. With older word embeddings (word2vec, Glove), each word was only represented once in the embedding (one vector per word). This was a problem because it did not take homonyms into account. As far as I understand, BERT tackles this ...
Some points first: BERT is a word embedding : BERT is both word and sentence embedding. It needs to be taken into account that BERT is taking the sequence of words in a sentence into account which gives you a richer embedding of words in a context but in classic embeddings (yes, after BERT we can call others "classic"!...
3
5
3,421
2020-02-11T19:10:10.593
data_quality
datascience.stackexchange.com
477,912
Setting timeout for all the ProxyPass mappings in Apache Server mod_proxy directive
What I have and works: I'm using Apache HTTPD 2.2 for proxy requests. I have multiple ProxyPass mappings: [CODE] This works well. What I want: Some of my requests are taking longer, so they timed out giving me a Proxy Error - Reason: Error reading from remote server . I want to set [CODE] for all of my requests. Can I ...
I've managed to find a solution by my own. You can set the timeout using directly the [CODE] directive of [CODE] : [CODE]
4
6
26,266
2013-02-12T09:49:08.870
infrastructure
serverfault.com
333,726
What are possible results/side effects if replication between DC's in a Windows domain is unable to occur?
There's plenty of administration literature out there how to properly manage Windows servers. But in dealing with real life, things don't always occur like you want them to. In Microsoft's Windows Server 2003 Administrator's Companion, out of 1400+ pages, theres only one page that I could find when it comes up setting ...
Depending on the length of time they're unsynced, you can run into a situation where one reaches its Tombstone Lifetime after which you start getting issues with deleted objects coming back to life. That being said, the minimum default is 60 days, so you should be okay if it's been less time than that. The way AD (and ...
3
4
1,553
2011-11-22T15:57:33.077
database_errors
serverfault.com
105,221
Learning potentially unrelated materials on company's dime, is it acceptable?
I am facing a similar problem as the OP of this question where my environment is good, but I feel like my learning is stagnating and I don't have the ability/resources to change positions/quit my job at this time nor am I sure I would want to if I did have the ability to. The day before yesterday, I was assigned to hel...
If your company hasn't explicitly asked for it, you can't charge a single dime. If you want to be paid for self-improvement, then go and talk to your boss first . He might grant you the time to do so or even pay learning materials/lectures for you. You simply can't sell services the customer's didn't ask for just becau...
4
8
512
2011-09-01T10:36:24.887
api_errors
softwareengineering.stackexchange.com
613,589
Trying to replicate a working IPSec/L2TP config from OpenSWAN to StrongSWAN
I have a working OpenSWAN implementation for RA, using IPsec transport and l2tp for the tunnel, running in AWS. The instance has a private IP, with a public EIP mapped to it. I use the private ip for the [CODE] and [CODE] parameters and the public in the [CODE] . I am now trying to configure an IPSec connection from th...
Here's a working config using openswan. Some of the parameters that had an impact on getting this config working were using [CODE] and [CODE] (phase2alg can be adjusted as needed, I initially used 3des-sha1, but adjusted later). example configs [CODE] [CODE] [CODE] [CODE] That got the IPSec transport up.
3
1
5,543
2014-07-18T10:29:53.760
infrastructure
serverfault.com
218,989
How do I make Nginx redirect all requests for files which do not exist to a single php file?
I have the following nginx vhost config: [CODE] I want to redirect all requests that don't match files which exist to index.php. This works fine for most URIs at the moment, for example: [CODE] Neither of [CODE] or [CODE] exist so they get redirected to index.php and that works fine. However, if I put in the url [CODE]...
Going by your additional comments this sounds like it might be the most optimal way, though it's not a pretty config. [CODE]
8
12
61,232
2011-01-05T14:33:19.630
infrastructure
serverfault.com
64,871
How to Maximize recall for Minority class?
I have a dataset with 4.7k records and 60 features. 1558 records of indication label [CODE] and 3554 records indicating label [CODE] . Am solving a binary classification problem. I used SMOTE on [CODE] to balance the data I applied various feature selection algorithms 1) RFECV - returns optimal 30-40 features based on ...
Here are my two cents. 1) While there are some things that you may want to do differently (see part 2), what you observe is normal. If you had a trivial problem with a simple landscape, all of the methods would converge on exactly one subset of features. Feature selection in the real world, however, is rarely a trivial...
1
5
2,209
2019-12-15T12:45:54.123
data_quality
datascience.stackexchange.com
51,351
Modify value of data in Orange
I am new to Orange and it seems very useful for conducting exploratory data analysis. One question I have is - can we use a widget to modify some values in the dataset? For example, several numerical columns have some values of 0 which does not make sense and should be a "missing data". I do not want to ignore the line...
You can accomplish this using a Feature Constructor widget with some conditional logic. For example, if looking at the Titanic survival data set, some fares are marked $0. This does not make sense since tickets have a non-zero value. You can create a new variable called fare_new where valid fares are copied over but 0 ...
2
0
1,805
2019-05-04T01:42:58.293
data_quality
datascience.stackexchange.com
477,521
configuring Munin for Nginx 1.2.4 on ubuntu 10.04 ubuntu ec2 instances
I am running my ruby on rails app ubuntu 10.04 ec2 instance and I am using nginx 1.2.4. I am trying to configure munin to get stats fron nginx, I have recompiled nginx and its working fine but I am unable to run the munin. If I hit mydomain.com/munin/ I am getting error 404 page not found. Also I have installed all the...
You need to create an location alias to your munin installation. There is no automatic link between your webserver and the Munin document directory. Try to add something like this to the nginx virtualhost you want to access [CODE] on. [CODE] This path, [CODE] is the default munin web-path on Ubuntu 12.04 and it might b...
1
2
340
2013-02-11T06:29:01.063
infrastructure
serverfault.com
68,424
What is a good solution for reliably transferring data between SQL Server and PostgreSQL?
In analyzing some of our business data, we're realizing that we need to join data across disparate data sources. For example, our application data is warehoused in Postgres (ported from MongoDB via MoSQL), while our purchase info (subscriptions, financial info, etc.) is archived in SQL Server. I've written a basic comm...
Pentaho have an open-source tool called Kettle that we use for ETL development with Postgres. It is quite good and very comprehensive. http://community.pentaho.com/projects/data-integration/
2
3
1,749
2014-06-17T17:43:30.653
hadoop_errors
dba.stackexchange.com
303,210
Low cost exceptions implementation using metaprogramming
(preface - boring stuff, feel free to skip down to the implementation details) I need to provide exception handling to a language I am working on. It "compiles" to a subset of C, and since I don't want to make C++ a dependency, and found the few available C libraries rather stiff and lacking, the only way is to come up...
If you restrict exceptions to integer error codes, then you cannot attach extra data. When I index an array out of bounds, its nice if the error can tell me which index I used, the size of the array, and the stack trace. If you just tell me that I got an ArrayIndexError, that's pretty much useless. To me, your solution...
2
3
264
2015-11-21T17:02:13.227
api_errors
softwareengineering.stackexchange.com
18,120
How can I simulate a defect drive in Windows?
(First question here ...) I'm a software engineer, and in my team I'm also in charge of checking all logged errors that our servers or "fat clients" produce. When I see something new, I'm meant to fill-in a bug report, which, if at all possible, should include steps to reproduce the bug. My question is: how can I try t...
What you are asking for is a fault injection . Unfortunatelly, you are not enough specific in what kind of error you want to reach and there is a lot of different states from bad blocks causing read-write errors to no rights or disconnected devices during the process, etc. This answer on another project will make you h...
2
3
323
2016-04-15T10:19:39.893
data_quality
sqa.stackexchange.com
488,107
Unable to use port even if sudo is used to create a domain for glassfish in ubuntu
I am trying to create a domain in glassfish. I have already done this in another server with ubuntu 12.04. Everything worked fine. I was just trying to replicate the same setup in another server with ubuntu 12.04 Downloaded the glassfish 3.1.2 zip from oracle Unzipped it to opt ran sudo ./asadmin and ran the command to...
Sometimes when I get permission errors (even when using [CODE] ) what I'll do is actually switch to the root user. for instance: [CODE] The "#" shows you're operating as the root user and you can do more than you can with just [CODE] alone.
0
0
623
2013-03-15T10:44:57.317
database_errors
serverfault.com
29,601
SQL Server Cache Flush and Disk I/O
We're busy load testing an OLTP system we've developed in .NET 4.0 and runs SQL Server 2008 R2 in the back. The system uses SQL Server Service Broker queues, which are very performant, but we are experiencing a peculiar trend whilst processing. SQL Server process requests at a blistering rate for 1 minute, followed by ...
Others have already pointed out the culprit: SQL Server accumulates updates in memory (in the buffer pool) and only flushes them out periodically (at checkpoints). The two options suggested (-k and checkpoint interval) are complementary: -k will make the cause the checkpoint to produce less aggressive IO requests and l...
11
11
11,180
2012-11-30T13:05:37.867
database_errors
dba.stackexchange.com
34,845
Query design for tracking order status
I have the following tables in MySQL [CODE] [CODE] [CODE] [CODE] The third and fourth tables are used to keep track of all the stages the orders go through. The flow is as follows: an order is placed at an agent of the company, the agent gives the order to a carrier, the carrier transfers the order to a hub owned by th...
Use a composite key on order_statuses(descrID, leg). Denormalize the order_details table to store the latest order_status.status_id (maintained by a trigger). Use smaller integer values based on the ranges - does agent_id need to be an unsigned int?
2
0
4,237
2013-02-15T20:10:35.593
database_errors
dba.stackexchange.com
1,073,189
After adding a new DNSBL to Sendmail, how can I resubmit an email to see if it will be rejected?
TL;DR How can I fool my own sendmail into thinking an email comes from a particular ip address, so that it rejects the message due to a DNSBL match? Details: I run my own mail server, and most spam is blocked by the DNS black lists (DNSBL) that I've added to /etc/mail/sendmail.mc like so: [CODE] Today some spam came in...
After sleeping on it, the solution ended up being trivial: [CODE] Voilà, the resulting header: [CODE] It also revealed that the ip address was not being blocked (DNSBL not working?), so in that sense, the test was a success. :-/ Update: D'oh! The lines in sendmail.mc should be like this instead: [CODE] In other words, ...
1
1
181
2021-07-31T23:56:40.323
infrastructure
serverfault.com
786,342
Rsyslog not capturing Remote log
I am on the way to configure LogAnalyzer with Rsyslog server. I am all done with HTTP configuration. but my loganalyzer is only logging logs from localhost. I am little bit confused that where to configure snmp string/community. eventhough i check on MYSql but there is no logs from my cisco devices. please help me. [CO...
Can you please verify that whichever firewall you are using is setup to allow incoming traffic on port 514 over both UDP and TCP traffic? If so, then temporarily disable SELinux and try again.
0
0
1,019
2016-06-26T11:14:40.750
database_errors
serverfault.com
53,550
MySQL Master Slave Replication and backup
I would like to implement the following backup solution as highlgihted on the mysql site : To use replication as a backup solution, replicate data from the master to a slave, and then back up the data slave. The slave can be paused and shut down without affecting the running operation of the master, so you can produce ...
Operations and issues on slaves will not impact the Master. I dont't understand your concept of "the master -> slave replication running every 5 minutes". All transactions on Master will immediatelty be replicate on slaves. If your tables are InnoDB , your dump will not lock any tables (with the option --single-transac...
0
1
1,276
2013-11-19T11:06:36.983
database_errors
dba.stackexchange.com
87,467
At What Point Should I Split or Partition a Very Large but Simple Table
Our site has some large but simple (INT, INT, DATE) tables for stats. Each table has up to 300,000,000 rows, and gets bigger every day. The hosting provider has suggested that we split or partition the tables, and I have seen this recommendation elsewhere on numerous occasions. However... I am struggling to reconcile t...
There's a reason that the general advice is that it depends on the table design and the queries on it. My answer to your other post on Stack Exchange says as much. Saying "queries which are simple count(*) operations based on an indexed ID field" doesn't give much information since it says nothing of the cardinality of...
12
12
7,538
2015-01-02T20:44:17.210
database_errors
dba.stackexchange.com
394,204
Strategies for Rotating MYSQL Encryption Keys
I have a web app that connects to a MYSQL database which has some encrypted data in it. The encrypted data is encrypted using the the mysql AES_ENCRYPT function and a key. Now, this key has been static for a while, and we're looking at methods to change the key (and ideally change the key periodically). My problem is t...
You could use a static seed, a key derivation function, and a counter or salt. I'm making this suggestion because it reads as if all your records are encrypted with the same key. That way, if the key were ever to leak, it would expose all your records. One of the more common approaches for preventing this kind of scena...
0
1
411
2019-07-03T15:34:41.023
database_errors
softwareengineering.stackexchange.com
1,073,611
Windows Server 2019 not updating after restoring recent snapshot
I'm facing an issue regarding the Windows Server 2019 update. I have recently restored the Windows Server with a recent snapshot. Every time I install a Windows Update it's undoing changes , this is the error code list in event viewer [CODE] . Note: I'm installing updates through a WSUS server
you might try stopping the windows update services and removing the update cache. On the server in question, open an elevated command prompt (run as admin) and enter the following: [CODE] Once this is done, reboot and attempt installing updates again. Hope this helps.
-2
0
147
2021-08-05T09:49:03.730
database_errors
serverfault.com
227,368
Debian - Disaster recovery software
I run a web server on Debian-Lenny. For the moment, I backup my whole system with tar with a daily script. But for the recovery, I need to reinstall a clean Debian and then untar my latest tar file into the clean Debian and then I get my working system back. Now, I would like to use a software like Ghost to backup my s...
If your have setup your system with a LVM you could make a snapshot and then create an image of your disk which you can than backup and with a saved partition table you have everything you need to restore your server on a new disc or even a new machine. The LVM snapshot allows you to backup your data to a specific time...
1
1
438
2011-01-26T21:49:13.870
database_errors
serverfault.com
358,438
How to limit Apache response timeout?
I have an apache server, and there are lots of connection opened by a user, and it never ends. Already ran for 4886 seconds and keeps counting. There are 80 such requests. The page is simple, and not a download page. So I have two questions: What is the reasonable time to set for apache for: sending reply? How to set t...
You're probably running an apache version prior to 2.2.21, which means you are vulnerable to the HTTP Range exploit documented in CVE-2011-3192 - please read that document on how to remedy.
0
1
2,292
2012-02-09T15:50:51.903
infrastructure
serverfault.com
562,754
Slow boot and dns doesn't work
I don't understand what happened because i didn't change anything in system for quite a long time. Now system boots too slow and when it's booted - dns requests don't work. I can ping remote hosts by ip but can't request them by names. Here's what i've found in [CODE] : [CODE] Also for some reason now I can mount usb f...
Here an extract from https://help.ubuntu.com/community/Dnsmasq Note that the package "dnsmasq" interferes with Network Manager which can use "dnsmasq-base" to provide DHCP services when sharing an internet connection. Therefore, if you use network manager (fine in simple set-ups only), then install dnsmasq-base, but no...
5
2
1,495
2013-12-20T15:14:14.803
infrastructure
serverfault.com
831,485
Http page wirh https iframe connecting to other secure host. Will it work?
This is the scenario: my website works through http and includes an iframe loading a swf file from another website of my own. The issue is i need the flash application to make a request to a remote host using https. Logically, i receive the security error in flash, so i thought i could secure the iframe page and then t...
1 - Yes, an https iframe inside an http webpage will work 2 - But it will not be secure : any MitM can replace the https connection by an http one. And your visitors will have no way to differentiate it.
1
1
761
2017-02-09T00:39:56.043
infrastructure
serverfault.com
13,544
ansible & jinja2: How to reference JSON structure items whose keys are variables?
I am using ansible's [CODE] module to get information about a server certificate on aws ec2, and registering it as a variable "server_cert_info_result" Unfortunately, this module returns a JSON structure with a high level key that is the actual value of the "name" of the server certificate , as opposed to the more stan...
Don't nest moustaches. Once you're in a Jinja context, you should reference variables by name without any further delimiters. Using standard attribute access syntax can be a lot easier to read than the [CODE] filter (and actually works for this situation, which [CODE] doesn't): [CODE]
1
2
1,320
2021-03-14T19:28:08.717
api_errors
devops.stackexchange.com
227,936
SQL Server 2005: Selects good, Inserts bad
We've come across a perplexing problem with our database application. We're running the application in 3 different (but similarly spec'd) environments. [CODE] We benchmarked disk and memory performance in the 3 environments. Env3 is slightly faster than Env2 which is slightly faster than Env1 (by no more than 10%) As y...
This is what I would investigate: "Env1 uses RAID0, Env2 & 3 use RAID5" RAID 5 is slower on writes. Remember the database is the interface to the disk drives, the disks are far more important, especially on a small table, then RAM or CPU. Try simpler setups and vary the RAID settings, even possibly trying no RAID for a...
2
1
577
2011-01-26T23:05:00.850
database_errors
serverfault.com
930,898
How to find the type of a aws instance and whether its EBS Provisioned IOPS SSD or not?
I have a AWS instance on which I perform a ssh login and operate.Os is Ubuntu 16.04.3. I didn’t select it’s AMI and neither do I have the access to its AWS console. I wanted to know that what instance is it like, is it t2.small or m3.large? I did found a command [CODE] which tells me that it has [CODE] , And on running...
Step 1. Determine your EC2 instance ID: [CODE] Step 2: Figure out your region [CODE] Step 3: Using the AWS CLI describe your instance. A lot of this information is also available thru the metadata referenced in Step 1. [CODE] The output will be nicely formatted json with a wealth of information about your EC2 instance....
0
1
404
2018-09-14T10:58:47.160
infrastructure
serverfault.com
964,390
Double slash in URL is automatically converted in single slash in $_SERVER['REQUEST_URI']
I am working on one site where I need to show 404 pages when someone adds double slash in URL. I have written logic to check REQUEST_URI and if there is double slash then I am showing 404 pages... But when I add double slash in URL it shows single slash in REQUEST_URI but in URL, it is double slash... here I attached a...
If the problem is that Google has indexed the double slash version as well as the regular path, then it's better to use a redirect to send google to the correct path. As you tagged this question with nginx, the easiest solution is to use a selective rewrite, such as: [CODE] This works because [CODE] is the original URI...
0
2
5,333
2019-04-24T11:25:49.873
infrastructure
serverfault.com
827,756
How to browse website hosted in Test server within company network
I have set up a website in IIS on QA server. I added binding and made entry in hosts file [CODE] At this point of time I'm on QA server through RDP access and able to browse website. Now I logged out from QA server and tried to browse the website on my laptop but got following error: [CODE] I am connected to my company...
The name needs to exist in DNS. When you are on a remote network and the DNS server is normally unreachable, either configure the VPN client to use the desired DNS, or remote into a system on the server's network.
-1
2
57
2017-01-21T20:05:37.713
infrastructure
serverfault.com
313,079
Whether to embed linked resources in REST API
I am building a REST API where clients can query user-sent messages, like this: [CODE] Response: [CODE] Now, I need to include the name of the user who sent the message. I can think of 4 ways to store this information, but I can't decide which is best: Option 1: [CODE] This method is the most efficient for large scale ...
You should probably go for option 1, but made more RESTful. It may also make sense to provide something like option 3/4. There's nothing forcing you to pick only one. However, what you should do is replace ids with links . Instead of having a "sender_id", you should just have a URI pointing at that user resource. Notic...
7
4
3,743
2016-03-17T20:23:51.117
api_errors
softwareengineering.stackexchange.com
428,975
How to use tscon on Windows7?
I need to run overnight automation testing using RFT and IE on Windows7 virtual machine. I found that restarting the Windows box before the testing starts helps. I am moving the production environment from Windows XP to Windows 7. RFT used to complain when running RFT scripts that [CODE] Running [CODE] prior starting a...
Before I get to your primary issue I'd like to point out that the fact that you are getting the message [CODE] is an indication that something has become corrupted on your system. MUI is the multilingual user interface. Is the Windows 7 computer in question set to use a language other than "English (United States)"? It...
13
15
28,764
2012-09-17T02:15:52.713
infrastructure
serverfault.com
86,318
Duplicate entry error for unique key that doesn't exist
I have a model that had the following fields: [CODE] But then I deleted the last row (CCC) and tried to insert a new one with the same [CODE] : [CODE] But I got this error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'CCC' for key 'username_UNIQUE' And if I query for all the existent rows, I g...
Your update is the correct way to insert data. Using [CODE] requires a source table and is not meant to be used with static values. Using [CODE] is for inserting static data, such as [CODE] , into the table. The two are not interchangable and will cause the issues you've been seeing. You can check the documentation on ...
1
0
3,525
2014-12-16T17:16:28.587
database_errors
dba.stackexchange.com
17,207
More features hurts when underfitting?
I was training a binary classifier using XGBClassifier (basically boosted decision trees if I understand it correctly). I have 10K training examples. I have two distinct set of features (but they could be dependent), one contains 26 features (call the set A) and the other contains 96 features (call the set B). I tried ...
Theoretically speaking, more data leads to better model. However, in practice, more features often leads to the difficulty of model training. Assuming there are 30 "main" features of your dataset. Feature set A contains 20 "main" features, so it might be easy (20 out of 26) for one "main" feature to be "chosen" and "tr...
3
3
2,336
2017-02-27T07:00:12.147
data_quality
datascience.stackexchange.com
226,357
Unclear pricing of Windows Azure
How do you people think about the Windows Azure pricing model and the way it is presented to the user? I just found out that Azure keeps charging hours for STOPPED instances. I just received a bill from more than 100 euro for 3 STOPPED instances (not) running "HelloAzure". I the past I also played around with Amazon We...
I work on the Windows Azure team. I do think this is confusing (and please do contact support... with an honest mistake like this, I suspect they'll refund your money). We did add a warning in the portal, so you should have seen something telling you that stopped instances are still billed. I'd like to see the "stopped...
6
13
3,638
2011-01-24T18:42:14.390
infrastructure
serverfault.com
646,795
ldapsearch returns result, but getent does not
I am setting up a fresh CentOS 7 server to and need to setup LDAP authentication i.e. there already exists a server that authenticates users, which we use for other GNU/Linux servers. For instance, in Windows I can query the hostname and IP of the DC using [CODE] . Which returns a list of DC servers which I can confirm...
There is a mismatch: if you check the sssd logs, you are using the sssd daemon. But then you should configure it in the file: [CODE] not in /etc/nslcd.conf (good for the pam-ldapd daemon). Moreover: syntax of sssd.conf and nslcd.conf is very different; in /etc/nsswitch.conf, sssd daemon is referenced with the 'sss' key...
0
1
4,853
2014-11-24T22:06:46.363
api_errors
serverfault.com
720,034
How to send a group of command in background
I'm writing my own generic init script, I've taken strategies from here and there and come up with [CODE] It kills the child process correctly on stop, it restart the service if dies etc. Now I have to run that piece of code as a background job instead of directly in start) The easy solution that works and I tested alr...
In a shell script, you can group any sequence of commands in a subshell by using [CODE] and then put that subshell in the background with [CODE] as you already know; e.g. using your example codee: [CODE] Though I have to say your [CODE] notion to keep the daemon running is a bit odd. Not sure I would want the daemon to...
0
1
105
2015-09-04T08:06:39.500
infrastructure
serverfault.com
319,306
Postgres client errors: Database error: insufficient data in "D" message, lost synchronization with server
I have a Postgresql sever which happens to be running on a NAS, on a Docker instance. It has worked flawlessly for years, but all of the sudden one of my client machines is having all sorts of strange errors when I query it. I know that: The errors occur with multiple databases on the host, so not db specific. The erro...
Your messages indicate data corruption over the network. Likely you have a bad NIC or bad NIC driver in your main workstation. Try replacing the Ethernet cable, upgrading the driver, and if that doesn't do it, replace the NIC. (Could also be bad RAM, esp. if your workstation doesn't use ECC memory, but that usually man...
0
1
794
2022-11-07T15:36:04.277
pipeline_ops
dba.stackexchange.com
876,145
RHEL 7 google-authenticator publickey only with optional MFA
I am trying to setup MFA on RHEL 7 and running into a chicken and egg problem. If I enable MFA in pam you can't login to setup your .google-authenticator file. I understand that the nullok option in pam should allow this to work and pass through but I am not having any luck. End goal is publickey ssh access with option...
I'm no pam expert, but your pam config doesn't look right for google auth. This is my file with nullok added. cat /etc/pam.d/sshd [CODE] Second, your ssh config is requesting BOTH sshkey AND password you want a space, not a comma [CODE] if you used kerberos + putty-cac, you could do SSO MFA with google auth mfa backup....
0
1
1,209
2017-09-29T14:01:24.757
infrastructure
serverfault.com
172,759
How to optimize query with ORDER and LIMIT?
I have simple query: [CODE] Table structure: [CODE] Explain: [CODE] Without [CODE] : [CODE] Is there any way to speed up this query?
While the records under [CODE] and each of the two providers are sorted in the order you want, they aren't in a sorted order once they've been pulled out (because you've got two sets that are pushed together). You might get an improved sort if you pulled the top 13 records for the branch_id and each of the providers se...
2
3
624
2017-05-04T19:49:17.103
warehouse_errors
dba.stackexchange.com
259,063
How to use variable in Exec statement
I'm trying to add my target server to the Multi Server SQ LAgent Job (MSX). We have multiple versions of SQL Agent jobs and I'm trying to automate adding only related targets according to SQL Server version. I'm trying to add target server using the script below but the the EXEC statement does not recognized the @Targe...
See @DanGuzman comment above. It did the trick. I have to remove the quotes and N from the EXEC statement for my variable. Credit goes to Dan Guzman. EXEC msdb.dbo.sp_add_jobserver @job_id=N'jb3510a9-d75f-4906-b9e3-en74b947d7ev', @server_name = @TargetServer
0
0
170
2020-02-06T17:26:20.887
database_errors
dba.stackexchange.com
237,281
Do I need to run a verfication on LTO tape backups even though the drives themselves perform verification as they write?
We have an LTO-3 Tape drive in a Dell media library that we use for our tape backups. The article about LTO on Wikipedia states that: LTO uses an automatic verify-after-write technology to immediately check the data as it is being written, but some backup systems explicitly perform a completely separate tape reading op...
Great question! Whilst I would say that yes you should test them, I'd say that testing the tapes/drives in themselves is important what is much more vital is testing the end to end restoration process . I can't recommend enough regular full system restorations and service testing, it's the only way to know for sure tha...
8
10
2,701
2011-02-18T14:27:01.593
database_errors
serverfault.com
30,940
MySQL incredibly slow on WAMP and XAMPP
I've installed WAMP on my new Windows 8 machine and for some reason when I use PHPMyAdmin to import an sql file (it's only about 5mb), it takes several minutes before timing out. And then when I check I can see it's only imported a fraction of the tables. I've tried other sql files and it's the same story. These same s...
When MySQL is really slow on windows (not 30ms slower) is nearly always a matter of a forgotten localhost instead of 127.0.0.1 in settings or URL. Very few times it is due to a very slow fragmented hard drive (acting slower due to windows complex ACL and parallel processes using it). MySQL is slower in some benchmarks ...
0
2
24,790
2012-12-21T23:42:00.633
database_errors
dba.stackexchange.com
652,743
Apache on Docker can't write to volume filesystem
I built an image for running Apache with mod_php, for Magento extension development. Magento needs to write to the webroot: It keeps files in [CODE] for cache, error reporting, and some other features. The webroot on this image is a docker volume, and Apache doesn't run as root, so it can't write to the filesystem, so ...
On VirtualBox, at least, it seems you can't change the ownership of a share . Since boot2docker uses VirtualBox for most of the developers I'm trying to support, I can't expect to solve my problem with [CODE] . My problem wouldn't be difficult if I could use Docker Volume Containers , but that hampers developer use. So...
2
3
9,487
2014-12-15T18:27:47.267
pipeline_ops
serverfault.com
1,097,933
How to fix offending key phrase, that pops up again and again?
For a github repo I want to update it and I type [CODE] on the command line, but I am always asked [CODE] I found similar questions with the solution to remove the offending line from the file [CODE] but as soon as I repeat the [CODE] command the line is added to [CODE] again, and I am asked over and over again. I even...
You are editing the wrong file. The message says that the key found in [CODE] is valid, the offending key is in [CODE] . Remove it there.
0
1
1,275
2022-04-06T09:54:06.020
infrastructure
serverfault.com
437,547
Is using the doxygen @file command counter-productive?
I'm having a dilemma regarding whether or not to use Doxygen's [CODE] (a.k.a. [CODE] ) command. On the one hand, it's somewhat useful for you to use [CODE] , and IIANM, Doxygen relies on its presence somewhat when producing documentation. On the other hand: It is redundant information - Doxygen can know what the filena...
Actually, you can have "the best of both worlds": Use the [CODE] command without specifying the filename! The Doxygen documentation says : If the file name is omitted (i.e. the line after [CODE] is left blank) then the documentation block that contains the \file command will belong to the file it is located in. that sh...
2
3
555
2022-03-23T13:07:26.837
api_errors
softwareengineering.stackexchange.com
343,332
Can I, Should I, How do I refactor for vuex - redux?
We need to get more much more rigorous about managing state in our business application. The heart of our problem is an object, lets call it an "TaxRefundApplication", that has about 20 properties, but there are literally hundreds of interactions between them. Individual properties can be disabled or hidden based on th...
In a redux model, your actions would be things like [CODE] , [CODE] , [CODE] , and [CODE] , [CODE] , [CODE] , with parameters for the new value and some sort of index. Your reducer would then take that action and the previous DAG and return a new DAG. As you still have to write your own reducer, I'm not sure how much t...
1
1
198
2017-03-02T17:22:27.610
airflow_errors
softwareengineering.stackexchange.com
200,681
What to do when a company request permission to use open source code without attribution?
I have an opensource project currently under MIT license. I have received a request from a company to use my code for their commercial project without having to give any attribution or credit. To be honest, when I released the code, my sole intention was only to help a fellow programmer, and I didn't really think about...
Many open source applications have closed source licensing options for just this scenario. How much you charge them is dependent on: the size of the company (how much can they afford) what they're going to do with it (if they're stealing it or just using it) what they expect you to do (support/updates/extensions? what ...
28
33
2,483
2013-06-06T14:32:12.027
data_quality
softwareengineering.stackexchange.com
793,207
Special PSU for file server; procuring alternatives. t-win PSM-SRA10E-Z-R (ROHS)
I am new here. I am the system administrator for a compute cluster in a Research group in MIT. I am looking for an answer to a specific issue, that is currently causing a downtime for our Cluster. The Distributed file system linked to the server has two hot plug, redundant Power Supply Units, and both of them have fail...
Typically you go to the company that made the server and ask for a power supply. If they are white box servers, then the company that made the enclosure.
1
1
184
2016-08-01T18:05:56.127
api_errors
serverfault.com
136,747
Why don't schools teach about bad code?
I realized there could be a lot of bad code in a system while writing Java. I wonder why schools don't teach what programming practices are bad. For example, in Java, using a big try/catch block that catches [CODE] is bad, but no one told me. And we see the typical "String + String" concatenation appear in every corner...
If you are talking about CS degree at a university the answer is simple: programming is just a means to an end. The degree is more about the science of computing and not programming. Now, it may be a valid question for a community college/technical college program whose sole purpose is to create programmers. To build o...
6
3
882
2012-02-24T12:18:14.873
api_errors
softwareengineering.stackexchange.com
149,287
CASE with 2 conditions
Following case statement is not working. [CODE]
Not sure if only that, but your are not closing the parenthesis correctly. Same code with better indentation: [CODE] See the problems: [CODE]
0
2
2,128
2016-09-10T11:52:57.507
warehouse_errors
dba.stackexchange.com
1,885
VM Hosts: Single Large Host or Few Smaller Hosts?
First, I apologize if this is the wrong forum to ask this question. I was wondering if this is a ServerStack or DevOps question. In either case here it goes: I am building a small software shop and I am trying to figure out the infrastructure and machines required for it. I bought MSDN Pro Subscription ($600/year) as w...
A good rule of thumb is to try and avoid using one bit of logical kit (be it a single VM or a single physical host) for more than one thing. If a physical server is going to be a VM host then that's all it should be. If a VM or a physical host is going to be a source code repository then that's all it should be etc. Yo...
4
3
337
2017-08-30T06:31:40.007
api_errors
devops.stackexchange.com
579,025
Exim on Centos - Configuring gmail smtp
I want to set up Exim to send the mails through my gmail (actually my domains google apps). I have added the router, transport and authenticator. Specifically: [CODE] I was able to set this up for Exim on Debian but I can't figure it out on Centos. When I try and send while monitoring the logs it tells me "no IP addres...
I have used the following config ROUTER [CODE] TRANSPORT [CODE] AUTHENTICATOR [CODE] Some simple test [CODE] Check maillog file [CODE] You can run exim in debug mode [CODE] After that you get a lot of data. Add the output to the question
3
1
5,739
2014-02-28T16:21:13.917
api_errors
serverfault.com
954,849
Can't install additional VM with virt-install
Installing an additional VM with the virt-install command results in the following error: [CODE] This is my virt-install command: [CODE] File permissions in /chris/home/VM/: [CODE] Similar question: virt-install cannot use ISO file as location What I've tried... 1) "chown" the iso file to user 'chris' 2) Moved the file...
It is possible $HOME permissions are too strict. It is not sufficient for the ISO to be readable - each parent directory needs to have 'x' permission too. ApArmor or SELinux could be denying access to files under $HOME and/or /tmp Since you're using the privileged libvirtd the recommended approach is to simply keep the...
1
1
1,678
2019-02-20T09:14:28.543
infrastructure
serverfault.com
228,690
MySQL Auto-increment fields resets by itself
We have a MySQL table that has an auto-incrementing field set as an INT (11). This table pretty much stores a list of jobs that are running in an application. At any given moment during the lifetime of the application, the table could well contain thousands of entries or be completely empty (i.e. everything has finishe...
The auto-increment counter is stored only in main memory, not on disk. http://dev.mysql.com/doc/refman/4.1/en/innodb-auto-increment-handling.html Because of this when the service (or server) restarts the following will happen: After a server startup, for the first insert into a table t, InnoDB executes the equivalent o...
17
36
19,556
2011-01-30T01:34:16.773
database_errors
serverfault.com
276,391
MySQL slow importing on hyper-v virtual server compared to host
Database dump file: 6 MB size 14k rows 10 tables Server specs (Ubuntu 20.04, virtual (hyper-v)): OS: Ubuntu 20.04.1 LTS MySQL version: Ver 8.0.21-0ubuntu0.20.04.4 for Linux on x86_64 ((Ubuntu)) 4 core, 2 GB RAM 100 GB storage Host MySQL Windows server MySQL version: 8.0.17 - MySQL Community Server - GPL HDD Storage 8 G...
Turning on: "Turn off Windows write-cache buffer" solved the issue for me. (no restart required for me) Benchmark write speed, before and after the setting. [CODE]
1
1
990
2020-10-01T12:52:17.200
database_errors
dba.stackexchange.com
166,257
Quickly updating table from large tsv, retaining a timestamp
Consider this [CODE] file with millions of rows, where [CODE] is a unique identifier of any possible value. [CODE] It should be used to initially create a MySQL table, and then update it periodically: [CODE] Now, observe the following requirements: If [CODE] exists, the row should be updated, except [CODE] , which shou...
It's 4 statements: [CODE] The [CODE] is very fast for getting the TSV/CSV into a table. [CODE] is purely for this periodic 'update' process. The [CODE] finds the 'new' rows and feeds them to the [CODE] to do the rest add new rows. The [CODE] is to update all the rows for which you have new data, and to update [CODE] . ...
1
2
188
2017-03-05T14:25:16.447
database_errors
dba.stackexchange.com
343,148
how do i find application name using GUID from error in event viewer on Windows Server 2003?
A Windows Serve 2003 machine logged an error in Event Viewer with the COM+ Event System, saying it could not marshal the subscriber for a particular subscription and then gave the SID/GUID, which is: [CODE] I don't quite understand the error. I'm trying to look up the GUID to find the application. I tried opening up th...
Open up regedit and search for the key under: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{DF540FFA-D787-4FDF-82E4-4BD5C1302F23} And the default key should provide you a user friendly name.
8
4
35,257
2011-12-21T15:32:45.333
infrastructure
serverfault.com
124,054
pg_stat_statements not found even with "shared_preload_libraries = 'pg_stat_statements'
I have followed the instructions given below: http://www.postgresql.org/docs/9.3/static/pgstatstatements.html ... to the effect of adding the following lines: [CODE] In file [CODE] and then restarting the server but the table [CODE] is still not visible: [CODE] update After executing: [CODE] And then doing: [CODE] ... ...
Recent versions of Postgres install conf files in different locations than they used to be in. There is sometimes a template .conf file that exists (but is not actually used), and then also an active .conf file (in a completely different location). I discovered this by scouring through the /etc/init.d files. It's possi...
11
6
22,334
2015-12-18T10:40:06.237
database_errors
dba.stackexchange.com
541,618
SSL Working fine how can I add in http to https redirection?
Hi I'm having major problems with a server, SSL works perfectly WHEN connecting with HTTPS://..., I need to set up redirection from http to https. This is my ssl.conf, Centos 6, with one IP address. SSL Cert set up with SANs. Would rather not use .htaccess. [CODE] When connecting on http://webmail.example.com it errors...
Remove the [CODE] in the top of your config - if you configure that outside of your virtual hosts, you're turning it on for every virtual host on the server. To set up redirection to https, you'll want something like this in your port 80 virtual host: [CODE]
0
1
62
2013-09-25T17:03:24.723
api_errors
serverfault.com
140,519
How much RAM on a windows VPS (2003, 2008, 2008R2)
Right now I'm running Windows Server 2003 on a VPS with 640mb RAM and it works fine. I would like to upgrade OS to Windows Web Server 2008 or Windows Web Server 2008 R2. I understand that it is difficult to say how much RAM is needed, but can you make a comparison between 2003 and the two new 2008 versions? RAM on VPS ...
Server 2008 and R2 progressively require a little less RAM than Server 2003 if you're using the same features. Each version has more features available, and when installed/enabled they require more RAM; but the core OS itself actually requires less.
1
1
1,206
2010-05-11T06:12:21.853
database_errors
serverfault.com
245,620
Log shipping always failing with NUL
I have configured a log shipping for our company's primary database to restore on a separate server, with the restored database serving as report database. The problem is that every few days, the log shipping breaks and unfortunately, more often than not, a full backup happens after the break which prevents me from doi...
First of all, thanks to @Dan Guzman for his inputs, somehow it sparked something in my head. :) I found out the reason for the break in the LSN chain! As I mentioned, the chain breaks after a backup is made to 'NUL', and I just came to know that 'NUL' is a sort-of file system, where data is written to it but then delet...
1
2
449
2019-08-18T06:01:06.773
database_errors
dba.stackexchange.com
588,141
Cannot log in into a server by ssh connection
was connected to a server via ssh through port 22, and decided to kill all the users connected with the root user with the following command: [CODE] Now when I try to log in by root@190.169.94.56, I get the message: [CODE] I make sure that SSH is indeed running on the port 22. On the server machine, I run: [CODE] I did...
To check if it is running, you would have to run [CODE] and [CODE] . SSHD keeps your connection open even if you stop it so that you don't lose control over the server if you make, for example, a mistake in sshd_config before restarting it. EDIT: I confess that only now I saw your [CODE] command. This is VERY wrong and...
3
13
3,386
2014-04-10T16:07:42.697
infrastructure
serverfault.com
736,189
Nginx always rewriting to ssl even on non ssl sites
I have a page example.com, which has ssl certificates setup and everything is working fine. Here is the ssl part of the config: [CODE] When I browse example.com everything I get the page with ssl, so everything is working as expected. Then when I browse ' http://dl.example.com ' which has the following server config, n...
Sometimes things are starring in your face but you don't see them... The solution is to remove the highlighted http header flag from my root websites vhost below: [...]** add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";**[...] What this basically does is pretty obvious, once you vis...
1
2
65
2015-11-13T16:57:06.267
api_errors
serverfault.com
1,043,176
Docker fails to load container after power outage. How to remove corrupted containers?
Couple of my docker containers got messed up due power outage and as a results Docker daemon fails to start. I would like save healthy containers and only remove few corrupted ones. Is this possible to achieve by removing some container and database files manually? Dockerd dębug modę reports: [CODE]
You can remove docker containers by using the [CODE] command. If you need to find the container id, [CODE] will display all containers and the id is in the first column.
0
0
799
2020-11-19T10:39:14.107
pipeline_ops
serverfault.com
987,347
Is Azure AD suitable for a public network of apps?
We are currently using Office 365 with Azure AD to manage our user management (currently about 100 users and 20 groups) in the AD. Our semi-public apps are currently using either a 3rd party user management system and some are still using no centralized management for users. We are aiming for releasing some apps to the...
For sure Azure AD is suitable. You should connect every application to Azure AD using oauth2. We have done it for many applications. That means centralized management in Azure AD, centralized security (for example apply conditional access for all third party applications) and just one password (or even passwordless) to...
0
1
23
2019-10-09T14:47:21.797
infrastructure
serverfault.com
975,751
How do I rename a default AWS RDS option group?
I'm trying to bring our AWS account under terraform but it's throwing an error the that RDS Option group name isn't supported it has a colon in it. How do I rename it either via the GUI or CLI so it can then be managed by terraform?
On the AWS side: You cannot modify the default RDS option group. However, you can create a new one and give it the name of your choice, after which you can associate it with your RDS instance. The name of the option group "can contain only letters, digits, and hyphens." So that error message about a colon in the name i...
1
1
438
2019-07-18T13:13:16.690
pipeline_ops
serverfault.com
1,037,065
Docker in Docker for gitlab: Client sent an http request to https server / failed to remove network
I am trying ta I am trying to get a docker in docker configuration for my gitlab instance running but I just can’t get it working. Here is what I want to do: Start a „docker in docker“ image Start a gitlab runner in another docker image Use docker in docker from gitlab CI. All of that is running under Ubuntu 18.04. Her...
Disable TLS by setting env var DOCKER_TLS_CERTDIR="" Source: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4501
8
4
21,833
2020-10-09T11:46:35.303
pipeline_ops
serverfault.com
319,174
How to redirect subdomain to alternative server with SSL support?
I'm looking to redirect [CODE] to [CODE] without changing the user's address bar. Is this even technically possible? I can imagine some certificate issues? We are using Apache on linux by the way. Thanks! - Some background info; We are launching a web application that resellers can offer to their clients, preferably "l...
Patching your app to use window.history.pushstate . Have you clients run a webserver at app.clientdomain.tld that serves an iframe of your site. Hope that your client's users are using compatible browsers (and have javascript enabled). That said, Christopher Evans first idea (rerouting at the DNS level) is best if you ...
2
1
1,470
2011-10-06T18:13:24.833
infrastructure
serverfault.com
582,539
Linux kvm: Public bridge without the physical nic
I have a VM host on the internet with my own subnet. I intended to use bridged networking and simply add my one physical NIC to the bridge and be done. But that had several downsides, not the least of which seemed to be a buggy driver. Can I set up a public bridge without adding the physical NIC? with guests and their ...
Ok, I found one solution to this problem (will start from the get-go, solution to question starts after point 3): Create independent bridge device [CODE] Connect guest to shared device [CODE] and give it its public ip and network Set up routing so host and guest can communicate freely using their public addresses: [COD...
2
2
562
2014-03-17T07:10:57.647
infrastructure
serverfault.com
474,598
How to manage users and resources in a multiple server environment?
Possible Duplicate: A system for distributing SSH public keys Need help managing developer authentication on our system. We have multiple CentOS servers (database, Web, Redis, etc.), and it is important to be able to control access to them in a centralized, (hopefully) simple manner. What we use right now is the author...
I'll preface by saying that I don't administer a lot of Linux machines. Nearly all of my Customers have Active Directory, and I have had good success using [CODE] to authenticate SSH users against AD using Kerberos. Presumably you could deploy your own Kerberos infrastructure (in lieu of Active Directory) to accomplish...
2
1
317
2013-02-01T16:32:50.383
database_errors
serverfault.com
132,770
What's wrong with my VirtualHost?
I have the following VirtualHost [CODE] And then I also have [CODE] How come when I type into my browser http://1.1.1.1 , it takes me to http://ccbbbcc.com ? Even when I point new urls to the IP 1.1.1.1, webpages serve from http://ccbbbcc.com . Why am I unable to serve pages from /var/www directory? Additional symptoms...
As you can read in An In-Depth Discussion of Virtual Host Matching : The first vhost on this list (the first vhost in the config file with the specified IP address) has the highest priority and catches any request to an unknown server name or a request without a Host: header field. Your Apache httpd loads and evaluates...
5
9
7,140
2010-04-15T16:14:13.247
infrastructure
serverfault.com
204,425
Query tables with information_schema in pgsql
I am trying to query the tables contained in a schema from an insert trigger on another table. My process is : Manually create the schema with DB Manager inside QGIS. Load tables foo, bar, baz. Insert a reference to that schema inside a table which trigger a function to perform queries on these tables. I am fine to cre...
Sounds like you need dynamic SQL for this. First build your query using string concatenation with the desired values (e.g. schema name, table name), then execute it with EXECUTE . Example: [CODE]
0
1
1,296
2018-04-19T12:08:28.473
warehouse_errors
dba.stackexchange.com
25,395
Java + Selenium : Exception in thread "main" java.lang.IllegalMonitorStateException
I'm using selenium 3.0.1 and java client library 3.0.1. I'm using the following code. [CODE] And getting the error after FireFox launch [CODE] I have no clue for this error. I checked online, But there is No help.
I have run given above code and its running fine. Mostly here might have configuration problem. Working configuration of my system : JDK 1.8 installed and added JAVA_HOME env variable and in path. Refer Selenium Webdriver version 3.0 + Download Firefox latest version (v50 or more) Download and Install Download latest G...
1
1
3,693
2017-02-09T09:28:46.680
data_quality
sqa.stackexchange.com
234,035
Mongo count query taking long time though index is being used
The following [CODE] query is taking lot more time than expected though index is being used and [CODE] , [CODE] are also less [CODE] the query time is varying from 10-30 secs for different values mentioned there.Following is the explain output of same query with [CODE] (to get explain) [CODE] And I did a count query in...
Mongo count query taking long time though index is being used As per MongoDB documentation here To return information on query plans and execution statistics of the query plans, MongoDB provides: the db.collection.explain() method, the cursor.explain() method, and the explain command. The explain results present the qu...
4
3
6,720
2019-04-05T12:51:43.040
database_errors
dba.stackexchange.com
177,060
Merging Postgresql dump with production database
I have a postgresql database that lost some records. I want to take a pg_dump SQL dump of the database from a few days ago and merge it with the current production database. A lot of the records are going to be duplicates so it can skip the duplicates. What is the best way to do this?
[CODE] could be you friend could try creating a new dump, we'll call it current_dump and do a [CODE] against old_dump then use [CODE] You might have to sort the sort the dump files before you do the diff and depending on how big your database is this might not really be practical. Also be very careful and do this again...
3
1
2,896
2010-09-01T17:41:36.570
database_errors
serverfault.com