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
43,888
mysql replication goes out of sync for some tables
We are running mysql 5.1.61 on redhat systems and have the following setup One master and four slaves replicating from the master, we recently added a new slave for replication and over a few days we have started noticing that on the newly added slave some tables ( not all ) loose some records , this happens only on th...
You could be suffering from what is known as data drift. QUERIES This can happen if there are queries that are unsafe for replication. One of the more common types is running [CODE] or [CODE] using [CODE] . Using [CODE] on DML can work just fine on a Master. On a Slave, the rows selected (and perhaps certain [CODE] cho...
2
4
4,831
2013-06-05T17:36:14.917
database_errors
dba.stackexchange.com
155,881
Unexpected Indexing performance (Everything's equal)
I wanted to see the effects of having indexes on calculated columns, so I created a table like so: [CODE] I've added [CODE] rows to this, with the value for [CODE] cycling through [CODE] to [CODE] . The following indexes were added: [CODE] Than I ran some [CODE] clauses to see what performance differences I would get, ...
The table definition that you have is leading to some really odd optimizer behavior. I suspect that you're running into the issue documented in this SE post . To avoid that issue I'm going to create the table with just the [a] and the [IndexedPersisted] columns. Query hints can be useful to figure out why the optimizer...
1
4
94
2016-11-21T13:41:06.073
database_errors
dba.stackexchange.com
56,418
Help me get clear on daemonizing a startup script
I need some linux / ubuntu help: I have a HTTP Comet server that I run with the following command: $ node comet.js > /dev/null & The > /dev/null bit is so all output is "shredded", and the ampersand is to run the task in the background. How can I possibly run this command at linux startup? I tried adding a script to /e...
Ok, I've been working on this for a while, and I finally got it working. I ended up using the new Ubuntu "upstart" service. It's a replacement for the /etc/init.d system. Here's how it worked for me: I put a file in /etc/event.d that describes my process: [CODE] Then I restarted, and it worked! Much better and easier t...
2
2
3,749
2009-08-20T01:12:20.460
infrastructure
serverfault.com
138,983
Options within OpenCV related to image difference analysis and reporting
Scenario: Stationary view with sequential timestamped samples in 2D-color where the comparison is only done between one pair of neighboring samples. Background: Have never used OpenCV before, Limited understanding of computer vision , Moderate experience scripting programs. Questions: Given the information provided, wh...
You have pairs of images that you want to compare? What is the source of these images? ie. Screen shots of a gui testing app or low quality noisy CCTV What are the circumstances of the image? Is it the same calibrated fixed camera at the same angle. Are these hand held shots at different exposures, focus and angle What...
0
2
1,695
2012-03-09T16:23:43.463
api_errors
softwareengineering.stackexchange.com
83,796
SQL Server not releasing Memory
I am using SQL Server 2005. I am running a job which processes around 100 K records. Job runs fine, it takes are 45 mins to execute, which is good. But after that job is processed, I can see instance of SQL Server 2005 still there with around 900 MB of Memory. I waited for around 2 hrs but that memory was not released....
SQL Server doesn't release buffer memory unless the O.S. actively reclaims it; so this is expected behaviour. If there is a memory shortage (f.e. some other application on the system needs some which is not available), SQL Server will release unused memory.
1
8
5,279
2009-11-11T22:34:17.733
database_errors
serverfault.com
148,370
SSIS OnError propagating when it shouldn't
I have an SSIS package with a data flow task that uses a script component as its data source. The script component retrieves its data from a web service. The call to the web service sometimes fails, so I want to be able to retry a few times before failing the package. My situation is very similar to the one described h...
I suggest you approach this issue differently. If you suppress errors, you lose insight into the myriad errors other than a connection time-out that can occur. Nothing worse than a silent error that causes you to lose data or load bad data for... how long until anyone will ever find this with no alerts and no SSIS fail...
0
1
1,075
2016-08-30T21:04:34.903
pipeline_ops
dba.stackexchange.com
721,830
Get NewRelic to respect ionice'd processes
On our web server, we perform an incremental backup of our files every 4 hours using rsnapshot . To perform the actual copying of files, I've configured it to use a custom script, [CODE] that has the following contents: [CODE] As you can see, this calls [CODE] via [CODE] and [CODE] to keep it from overloading the syste...
[CODE] and [CODE] only set CPU/IO priority . To clarify, if there are two competing IO requests and one of which has a higher priority, that one will be fulfilled first. If there is no other competing IO/CPU, these processes will gladly consume all available resources. The answer to this is to configure your monitoring...
1
1
52
2015-09-11T17:51:46.507
database_errors
serverfault.com
518,397
Give access to specific services on Windows 7 Professional machines?
We have some machines running Windows 7 Professional at our office. The typical user needs to have access to stop and start a service for a local program they run. These machines have a local web server and database installed and we need to restrict access to certain folders and services related to the web server and d...
You can use the SubinACL utility from Microsoft at http://www.microsoft.com/en-us/download/details.aspx?id=23510 to set ACL's on services.
0
0
214
2013-06-25T15:23:13.863
infrastructure
serverfault.com
992,126
How to temporarily mount a broken off mirror leg from a LVM partition
I mirrored my filesystem onto 3 drives using LVM mirror. I broke off one of it's legs, by simply unplugging an external drive, before upgrading Ubuntu to 19.10. So I started the upgrade, but having that drive removed made the system unbootable! I had my grub on that external drive. After fixing the boot problem I final...
The logical volume on that system is [CODE] . Paging space at [CODE] would not have a file system. There is no volume on [CODE] . It has LVM2 metadata, but pvs does not show it in a VG, and it is 100% empty. How exactly this happened depends on the commands used to create the mirror, and your recovery steps. It is poss...
0
0
814
2019-11-16T17:28:52.017
database_errors
serverfault.com
753,463
How to properly configure a 2 node glusterfs system?
I am trying to make a 2 node linux servers with high available apache using glusterfs 3.7.6 for data replication and pacemaker+corosync as resource manager. However i'm seeing a problem with gluster in the specific scenario when both nodes get shutdown and one of them comes online first. Even though there's a brick on ...
The problem any cluster-node has when coming up from a full stop is: Do I have the latest state, or not? I don't want to claim [CODE] if I'm behind the other down nodes. This is why clustering very often includes some kind of quorum mechanism, so existing nodes can vote on state and converge on a consensus. Two node cl...
7
14
12,559
2016-02-02T13:33:42.900
database_errors
serverfault.com
289,487
Using mod_rewrite to mask /cgi-bin/abc as /def
I have a seemingly easy task, but somehow I just can't get it to work: Some interesting lines from my httpd.conf: [CODE] (I know it's dumb but it's only a testing machine :D.) Now, I have [CODE] and I expect [CODE] . And I wish to fake client into thinking it speaks with [CODE] , but actually return data by [CODE] . Wh...
The problem was just a misunderstanding; I thought that the subject for rewrite is implicitly taken as URI. Adding [CODE] changed the behavior, which solved my problem: [CODE]
1
3
1,000
2011-07-12T15:43:15.350
infrastructure
serverfault.com
137,709
Should I use Legitimate Email spoofing?
Recently I receive a request: users' emails are stored in the database, and as request of a user, the system will send an email on their behalves. To add more context, it's like sending an email from the vendor, to their customers' email addresses. But it's not a fixed email (it depends on which vendor ask the system)....
So long as it's at the user's request, there's nothing questionable about doing this. It's just like your system is the email client. Sending emails from an address without the address owner's approval is a different story, of course.
7
8
2,503
2012-03-01T04:06:47.407
api_errors
softwareengineering.stackexchange.com
75,382
MongoDB performance problem
I have a MongoDB for storing result like this [CODE] If [CODE] is [CODE] first one is used and if it is [CODE] second one is used. Here is the indexes: [CODE] Collection has about 10 million documents. I have many queries on [CODE] and [CODE] , and for now only types of [CODE] are used in applications. This is a line f...
Your query is using the index to fetch the results but needs to sort them afterwards which is an expensive operation. "scanAndOrder" : true, scanAndOrder is a boolean that is true when the query cannot use the order of documents in the index for returning sorted results: MongoDB must sort the documents after it receive...
2
4
2,020
2014-08-31T17:21:41.830
database_errors
dba.stackexchange.com
364,189
Liskov Substitution principle - strengthening preconditions
I am a bit confused as for what it really means. In the related questions ( Is this a violation of the Liskov Substitution Principle? ), it was said that the example clearly violates LSP. But I wonder, if there is no new exception thrown, would it still be violation? Isn't it simply polymorphism then? I.e: [CODE]
It depends. For validating the LSP, you need to know the precise contract of the [CODE] function. If the code looks like this [CODE] then a derived class which ignores this comment violates the LSP. If, however, the code looks like this [CODE] then [CODE] does not violate the LSP. However, in case there is no comment, ...
7
6
3,253
2018-01-18T09:38:05.697
api_errors
softwareengineering.stackexchange.com
369,319
FIFO Min-Max-Heap for Rolling Median
I'm working on a system with hard real-time constraints in c++ and I need a very fast way to calculate the rolling/moving/streaming median of a set of numbers of size N=100 to 300. Normally this size would be trivial but in this case the algorithm will run about 1000/2000 times per 0.1ms Every calculation a single valu...
If I were going to do this, I'd probably use a balanced tree (e.g., AVL or red-black) where each node also keeps track of the size of its left sub-tree (and you keep track of the overall size). This would act as an index into a circular buffer storing the data itself. So, when a new item arrives, you find the oldest va...
7
1
905
2018-04-13T12:14:26.167
data_quality
softwareengineering.stackexchange.com
121,038
Increasing Java's heapspace in Tomcat startup script
I want to increase my heap size when using Tomcat. I was told to add this line export CATALINA_OPTS=-Xms16m -Xmx256m; In to the startup.sh script - I did so (at the beginning) but got the error export: 24: -Xmx256m: bad variable name Where am I supposed to add it, am I doing something else wrong? [CODE]
Did you try to enclose them in double quotes? [CODE]
0
3
4,218
2010-03-10T07:47:51.963
infrastructure
serverfault.com
740,083
ASP.NET MVC Getting Error 504 after 10 minutes of File Upload
I have an ASP.NET MVC2 Web application, working with SQL Server 2008 R2, running with IIS 6.2. I have a functionality where one particular admin needs to upload about 5000 documents, which then get to be processed and stored in the server, while their names are saved in a database. Problem is, on the client side, 10 mi...
From your description it seems that your client -> Web server connection timeouts are most probably related to a proxy usage. If your server processes the files in more than 10 minutes, your client does not receive a response in a timely fashion, but the Web server can process further. httpRuntime.ExecutionTimeout spec...
2
0
5,613
2015-12-01T20:22:25.207
database_errors
serverfault.com
374,760
eXist-db: can't start webstart client on a closed port, reverse proxied via apache
I am configuring an Apache HTTP server so it reverse proxies requests starting with /app/ to an eXist-db instance running in a Tomcat server, on port 8082. This port has been closed in the firewall and is inaccessible to the outer world. Following the eXist documentation , I have following rules in place in my httpd.co...
You want [CODE] , which sends the same Host: header it received to the back-end server. More info here .
0
0
470
2012-03-29T09:51:30.507
api_errors
serverfault.com
329,288
Input/output error in CentOS 6.0 (VirtualBox 4.1.6, Windows XP)
I'm running a virtualized CentOS machine, which has been running pretty well so far. Today, I noticed that some PHP extensions were missing, and realized that the problem was coming from unreadable config files. If I try to list the relevant directory, here is what happens: [CODE] Any idea where that might be coming fr...
probably bad sectors on the disk or the disk's data/power cable are loose. to verify disk health, install smartmontools, which will give you details of the disk health. also try to run e3fsck to check for errors on file-system.
0
2
1,727
2011-11-09T13:33:55.300
infrastructure
serverfault.com
114,384
How do I create a Linked Server in SQL Server 2005 to a password protected Access 95 database?
I need to create a linked server with SQL Server Management Studio 2005 to an Access 95 database, which happens to be password protected at the database level. User level security has not been implemented. I cannot convert the Access database to a newer version. It is being used by a 3rd party application; so modifying...
After hours of struggling with this problem I finally found not one, but two solutions! I'm using SQL Server 2008 and Access 2000, but I guess the solution is the same. Solution 1: Use OPENDATASOURCE Use this approach when you will be accessing data on the linked server infrequently: [CODE] For this to work you also ne...
4
3
8,028
2010-02-18T20:05:56.607
database_errors
serverfault.com
713,739
EC2 + Cloudflare = CORS issue with font
I just put my first Wordpress site up on a EC2 instance. And I have setup CloudFlare as my CDN. But when viewing the site I get the error below: Font from origin 'EC2 IP' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. ...
In Wordpress you set your site address. In the current configuration it was set to the IP of the server. After changing it to the domain name it fixed my issue.
0
0
1,804
2015-08-12T21:37:45.283
api_errors
serverfault.com
271,659
Execute SSIS (package) in SSMS using T-SQL and return a value
Using VS (2019) I created an Integration Services Project to code an SSIS package. The goal was to call a Web API from an SSIS package using input variables like username/password/url and so on. I successfully achieved this using Script Task and [CODE] and F5/Run to see successful results. What I want to achieve now is...
Fun question! When you hit F5/Debug within Visual Studio, that spins up a special environment to allow for breakpoints, debugging and graphical interaction (MessageBox). That can't happen when the package runs on the server because who's going to log into the server and hit the [Ok] button on that message box? DTS, the...
1
0
1,126
2020-07-25T22:39:49.793
warehouse_errors
dba.stackexchange.com
270,607
Where should I place business logic validations?
We are having a heated discussion about this at work: For sake of simplicity, I will use examples in the question. Assume there is an application with an account request form, for which we have these requirements: Dates and Email must match a regex If the user already has an account request, he should not request for a...
Go for the second solution. Your [CODE] uses the db information and some rules to determine of the request is valid or not. Then use a "response" object, but don't create one yourself if you use a language that has already implemented that for you like Scala or Haskell. This type is usually called [CODE] . It should th...
6
3
5,973
2015-01-20T13:22:51.210
data_quality
softwareengineering.stackexchange.com
1,012,205
How to properly make an ssh bastion, with fail2ban, in a Docker container
I've already asked the question on the Docker forums but so far no luck with a reply. I'm hoping I will have better fortune here. I’m in the process of making an ssh bastion (with fail2ban for security) in a Docker container. The container will serve no other purpose than being an ssh bastion and will serve to access b...
N.B. I know this is an older question, but it came up in a search engine. Writing my answer to help any who have the same question. It's best practice to have as few services per container as possible . This reduces the complexity in upgrading containers, and recovery should anything go wrong. You should have two conta...
3
2
1,519
2020-04-14T07:17:58.580
database_errors
serverfault.com
1,147,347
Curious? LVM on a brand new drive?
i wanted to replace a broken zfs-drive on my server and got a "sealed" drive from my storage for that usage, but when i first checked the drive it shows me that there is a LVM on it. My question is WHY there is a LVM at all and how can i wipe that drive for usage in the zfs-RAID. I have never seen such a thing on a new...
OK, seems i managed to delete that LVM stuff, following https://unix.stackexchange.com/questions/411206/how-to-wipe-md-raid-meta [CODE]
0
1
43
2023-11-07T13:33:19.043
infrastructure
serverfault.com
87,982
Create SPN with setspn.exe - Insufficient access rights
On a Windown Server 2008 Domain Controller, I'm attempting to add a Service Principal Name (SPN) to a user account 'Postmaster' in order to enable Kerberos authentication from a Communigate email server. The command line I'm using is of the form: [CODE] When I run this command, I get the result: [CODE] This is most cur...
Are you running from an elevated command prompt (right-click, Run as Administrator)? If not, that would explain the error.
8
10
23,925
2009-11-24T22:39:58.373
api_errors
serverfault.com
580,702
Bounced mail reaches postfix but being removed by the queue manager
I have setup postfix and dovecot. Postfix is set to accept connections from my webserver to send out system generated mail. These are being sent out successfully. Sent out emails to some non-existent addresses and expected the sender address (news@bookingwire.co.uk) to receive the bounce notifications when I connect to...
Your log clearly shows that the bounce message, intended for [CODE] , was delivered to [CODE] instead. Check for a mail alias which may be redirecting mail for [CODE] to [CODE] . You'll find such a redirection in [CODE] by default.
0
0
4,256
2014-03-08T14:37:12.567
infrastructure
serverfault.com
173,013
SQL: Max Server Memory Allocation
I have three SQL database instances on a cloud server: A, B and C and the Server Installed Physical memory (RAM) is 32GB. The size of A (data+log file) is 44GB and B (data+log file) is 41GB. We ignore C since it has no databases in it and max memory set to 500MB. Both instances A & B has it's memory set to the default ...
In my opinion you're not leaving near enough for the operating system: on a 32GB system, I'd probably leave 4GB or so. Remember that local logins, SQL jobs and SSIS packages, and 3rd-party backup software and the like all use memory outside the allocated space for the SQL engine itself. If I know there are memory-hoggi...
4
2
2,679
2017-05-08T19:31:35.360
api_errors
dba.stackexchange.com
749,321
Nginx : Alternative to if inside location blocks for caching headers based on a variable
I'm trying to use Nginx page caching instead of Wordpress caching. The caching seems to work fine, but I'm having trouble setting conditional caching headers based on a variable - whether a user is logged into wordpress. If a user is logged in I want no-cache headers applied, if not the page can be cached for a day by ...
I've come up with one solution myself, based on the answer @Richard Smith provided that didn't quite do what I needed. I've used the more cache-control header rather and dropped the unnecessary expires directive. This sits inside the server block [CODE] Then this goes inside every applicable location block [CODE] This ...
2
0
4,117
2016-01-15T08:39:57.180
infrastructure
serverfault.com
305,252
Preventing stored procedures from writing to databases
I am a database developer mostly writing SSRS reports. I would like to create stored procedures and assure the DBAs that those stored procedures cannot write to the production databases, without the DBAs having to carefully review the stored procedures. I create the stored procedures in DatabaseA. I need the stored pro...
Can the DBAs set permissions at the database or procedure level to enforce this? Yes, your DBA can sign reporting stored procedures with a certificate than denies write permissions on DatabaseB tables. [CODE] takes precedence over caller [CODE] permissions as long as ownership chaining does not apply (the default behav...
7
7
691
2021-12-21T18:28:11.203
database_errors
dba.stackexchange.com
269,244
Redirect https://olddomain.com to https://newdomain.com in IIS6
What is the easiest way for me to redirect both http and https from olddomain.com to newdomain.com regardless of invalid certificate warnings? newdomain.com is our current domain on IIS6 and has SSL (with certificate) for some content olddomain.com has a permanent redirect - but this won't work for https://olddomain.co...
First and foremost: Don't train your users to ignore certificate warnings. That is a bad thing. Look into a Subject Alternate Name certificate or just using a different listener address for the old domain. That said.. you can set up a host header on port 443 in the same way that you'd be doing it if you did have a wild...
1
2
1,674
2011-05-12T22:41:41.083
api_errors
serverfault.com
1,115,626
Get real client remote ip in docker-swarm httpd proxy?
I'm running a [CODE] proxy in [CODE] mode with [CODE] . Problem: when I access [CODE] , the [CODE] only shows the remote ip of the docker [CODE] swarm network, like [CODE] . And not the real clients' ip. Question: how can I tell swarm to retain the original IP address (maybe write it into another IP header?), without h...
In short, there's no way to achieve this within the constraints you ask. Docker swarm uses traffic forwarding, not listening ports, to handle ingress traffic. You can see telltale signs of this with [CODE] , and noticing that the docker firewall rules ( [CODE] , [CODE] , etc) are in the [CODE] chain, not the [CODE] cha...
1
1
408
2022-11-14T12:50:55.900
pipeline_ops
serverfault.com
152,977
Cannot add database to SQL Always ON
I have problems adding a databases to Always ON. When I try to connect to named instance I get an error: Names are correct. Also when I try to connect from server a to server b with server\instance is giving same error, but just server is working? But here server name is greyed out so I cannot change it? On server itse...
When named instances are having issues being connected to, there is generally an issue with one of the following: SQL Browser isn't running SQL Browser ports are blocked (1434 UDP) Incorrect DNS entries SQL TCP Port is blocked (custom port number for named instance) SQL TCP Port is blocked (Dynamic ports) TCP is not an...
0
3
384
2016-10-21T11:29:29.820
warehouse_errors
dba.stackexchange.com
43,284
Two nullable columns one required to have value
No-Explanation Question: Is there anyway to have a constrain of 2 null values that always requires 1 to have value ? For example two date columns both null but having at least 1 that requires to have a value Problem Description: Let's say I have table called Expense and have 2 dates : prevision_expense_expiration_date ...
A version of JD Schmidt's answer, but without the awkwardness of an extra column: [CODE]
14
12
13,462
2013-05-29T02:00:56.887
data_quality
dba.stackexchange.com
329,819
why mysql row_id takes 6 bytes
The internal 6-byte id for InnoDB exists only if you don't have either An explicit PRIMARY KEY, or A UNIQUE with non-null column(s). why mysql row_id takes 6 bytes, instead of 8 Bytes?
Because the developers felt like it. Kidding aside,... Meanwhile, it allocates values in chunks of 256, so there can be random gaps. That gives you at least a trillion rows. Anyway, a non-partitioned InnoDB table is limited to 64TB for other reasons. (Or perhaps only 32TB, I am not sure). I'm pretty sure the choice of ...
0
0
45
2023-07-31T05:25:01.907
database_errors
dba.stackexchange.com
252,110
how to enable ipv6 in redhat
i have installed snort with ipv6 supprt Version 2.9.0.2 IPv6 (Build 92) in RHEL. can anyone tell me how to enable ipv6 support in linux i tried [CODE] and [CODE] and did service network restart but still i get error [CODE] then i added [CODE] in [CODE] , then rebooted now i dont see bthe above error msg but i dont see ...
For people looking to enable IPv6 forwarding, but getting Global IPv6 forwarding is disabled in configuration, but not currently disabled in kernel , try adding [CODE] to [CODE] .
1
6
20,539
2011-03-26T02:48:34.297
infrastructure
serverfault.com
929,840
How to restart linux services if it reaches 100% CPU?
I have postfix email server with saslauthd. Time and again saslauthd daemon eats 100% CPU. Restarting these services returns to normal cpu usage. Is there any proper script to determine services with high CPU usage and restart it automatically. Thanks in advance.
You might want to take a look at [CODE] ( official site ). It's easily configurable to watch for high CPU usage and restart processes when needed. A simple example (you should configure it according to your system paths and needs): [CODE] Where (taken from the manual): [CODE] And a cycle is is equal to the number of se...
0
1
6,970
2018-09-07T07:31:55.203
infrastructure
serverfault.com
809,095
nginx fastcgi_cache is only working for 1 website, no other website is getting cached data
I am setting up a new web server and I'm nearly ready to go live but can't iron out 1 last issue - and thats I have multiple WordPress websites setup. Each WordPress website has its own install and installation directory and a separate database. I have configured nginx with the [CODE] module and it works - but only for...
You are setting the [CODE] three times in the [CODE] context. Only one of those is used this way. The correct procedure is to set one cache path for all virtual hosts, and then define [CODE] inside each [CODE] block to define unique key for that virtual host's cached files. For example, you could the following for [COD...
0
0
1,006
2016-10-14T16:29:57.867
infrastructure
serverfault.com
810,686
iSCSI for VAAI/ODX, or NFS, on a file server with multiple distinct shares
I'm building a 3 server setup (FreeNAS, FreeNAS replication, ESXi) for a small network with a handful of users and a couple of "power users". The aim, briefly, is to migrate from multiple machines and windows file shares to more centralised and better resource usage, and higher quality and reliability. The hardware is ...
Why not try to squeeze every drop of performance from the fast disk arrays? I realize that, to some people, this performance benefit from using iSCSI with VAAI/ODX over simple NFS approach may be not so crucial, but I personally found iSCSI as the best way to achive maximum disks utilization. I've been testing that usi...
3
4
479
2016-10-22T19:22:06.990
data_quality
serverfault.com
639,659
Is this a case of a stale ISP DNS cache or did I fudge something up?
I am currently in the process of transferring a legacy website (from a legacy hosting service provider) to a modern solution. Due to my context-specific requirements (which include financial constraints), I made the decision to backup and replicate the website on a Digitalocean droplet (a virtualized linux instance) wh...
DNS doesn't, properly speaking, propagate. Records have a TTL (time to live), and that's how long other caching DNS servers should retain an existing lookup answer. You'll want to do some more self-education rather than go by thumbnail rules like "12 hours should do it." If the authoritative nameserver is showing the c...
4
5
653
2014-10-25T19:07:24.547
database_errors
serverfault.com
282,628
ssh tar copying - missing files
On copying directory "home" (from remote machine) to local machine using the following command: [CODE] The number of files after the transaction doesn't match. Some files were never copied. Anyone has experienced similar problems?
One issue with using [CODE] for copying files is that the old POSIX tar format ( [CODE] ) has a limited length of 100 bytes to store hard links. It can cope with longer names , so as long as your files have a single link, everything is fine. But when tar encounters an inode for the second time, it produces a hard link ...
1
1
1,160
2011-06-21T14:57:01.203
infrastructure
serverfault.com
280,673
/var/log/squid/access.log is empty when I use proxy from remote computers
I have configured squid to work as NAT using [CODE] Have added to /etc/squid/squid.conf [CODE] Problem: /var/log/squid/access.log is empty when I use proxy from remote computers. When I make [CODE] then it does write to log: [CODE] So the problem is that logging is somehow turned off for remote proxy use. Permissions: ...
My network interface was br0, not eth0 or eth1 [CODE] fixed the problem.
2
1
9,341
2011-06-15T13:40:45.520
infrastructure
serverfault.com
150,696
Serverlocation moved and how can I Move the files
I´ve a big problem. I have to move data from an old Webspace which is only accessibla by ftp. No we have a new root server which is accessible by ssh of course :-) No i Need to move all data from the old space but there is a lot of Gb of files. Is there a way to fetch all files directly from the old ftp to the storage ...
lftp Lftp is able to mirror a remote directory to local, or the opposite: lftp has builtin mirror which can download or update a whole directory tree. There is also reverse mirror (mirror -R) which uploads or updates a directory tree on server. Mirror can also synchronize directories between two remote servers, using F...
0
1
41
2010-06-12T14:08:03.307
infrastructure
serverfault.com
320,862
Bulk Directory Permissions
So I'm looking for some advice/guidance on my issue: Our file server was originally setup incorrectly by providing permissions to individual users rather than than groups. Ive been in the process of redoing the permissions manually, but I'd prefer to fix it in a bulk fashion. I have a list of directories and users that...
I think that's a very reasonable plan. Using [CODE] or [CODE] will work fine. I prefer [CODE] , personally, because it has a "richer" feature-set. You could use Helge Klein 's SetACL tool, as well, but in this case I don't think it buys you anything different than the first two tools (because you're not using any of it...
1
3
145
2011-10-12T15:23:05.863
infrastructure
serverfault.com
1,118
Performance Testing a cloud application
What are the best approaches and what concerns are there about performance testing a web application that is hosted in the cloud?
Oh deja vu ... I think that Larry Elison summed it up nicely when he stated that Cloud computing is just, servers and the internet. Video is here -> http://www.youtube.com/watch?v=UOEFXaWHppE Performance testing "Cloud" applications should be tested as though you would test any existing web application. Specifically fo...
6
4
4,890
2011-06-14T08:57:43.983
data_quality
sqa.stackexchange.com
868,037
URL without "https://" does not work in Apache
I am using Apache as a proxy server for my web application wich is running in a Glassfish container. I configured the proxy pass and also SSL in Apache. The site can be accessed from outside with the URL https://www.my-domain.com without any problem. But I want to call the site without prefix "https://" ( www.mydomain....
You need to ensure you have a valid Listen statement for port 80 in your apache config. Simply adding a port 80 virtual host is not enough.
0
1
1,169
2017-08-10T19:40:38.993
pipeline_ops
serverfault.com
964,697
How many cores can Redis possibly utilize?
I am using Redis on virtual machines and having trouble deciding how many cores should I assign to them. I know that Redis uses single thread to serve requests, but documentation also states that some tasks performed in background by different threads/processes. I can assign more cores than needed without wasting resou...
Redis is, mostly, a single-threaded server from the POV of commands execution (actually modern versions of Redis use threads for different things). Please go through below links. H ow fast is Redis? . There is also one same post on stackoverflow - Redis is single-threaded, then how does it do concurrent I/O?
1
1
6,857
2019-04-26T08:45:21.937
database_errors
serverfault.com
899,872
URL for Google cloud storage in JAVA on localhost (testing)
This is partly related to use within the testing (localhost, from Eclipse) environment. I am using GCS with com.google.cloud.storage.Storage. using JAVA in the server (and GWT in the client). Ultimately, I want to have a URL of an image store as a com.google.cloud.storage.Blob passed from the server to GWT to be displa...
You have the getServingUrl() method that allows returns the URL that serves the image. Using this method you can generate an URL for an image that is stored in Cloud Storage or Blobstore.
0
0
1,299
2018-03-04T08:35:35.273
infrastructure
serverfault.com
495,087
RackSpace CreateImage API using curl is not working
Whenever i m trying to create image from the given api using curl -: curl -i -X POST https://lon.servers.api.rackspacecloud.com/v1.1/xxxxxxxxx/servers/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx/createImage -H "X-Auth-Token: xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx" -d '{"createImage" : {"name" : "test_image"}}' -...
It looks as though the URL you are using needs to be modified just a bit. If you look at the below example the URL is slightly different, in that it uses action instead of createImage after the server UUID. You would also want to use v2 as well in the URL to make the call. Example: curl -X POST -H "X-Auth-Token: AUTH-T...
0
2
196
2013-04-01T11:49:27.873
infrastructure
serverfault.com
396,008
vsftp hangs at "150 Here comes the directory listing."
In a vsftpd server enviroment, shared various directories from nfs mountpoints, I can log in without problem, but when I send the first "ls", the vsftp give me the directory listing: [CODE] but not give me the shell again (lftp client). In the server log I can see that the last message is: [CODE] Why does this happen?
Check your firewall settings, chances are you are not allowing the PASV ports through, or maybe port 20 ftp-data. Try opening TCP ports 50000-55000 on your firewall and add the below to your vsftpd.conf. [CODE] If using active mode then you should just need port 20, if using passive then you should be setting those por...
3
1
8,181
2012-06-06T09:35:09.890
infrastructure
serverfault.com
974,673
icinga2: nrpe check_service gives server wrong result
I'm trying to get some third-party and my own custom checks running. The current test setup consists of one icinga(web)2 CentOS 7 server and one CentOS 7 client with NRPE installed within the same network and firewalld has been disabled. The check_service plugin I'm trying to run uses systemctl is-active. Running the c...
On the nrpe side the selinux is in enforcing mode. Test the script again after: [CODE] With selinux enabled in enforcing mode you need to configure file context: [CODE] See: nagios_selinux
0
1
599
2019-07-10T11:57:15.067
infrastructure
serverfault.com
198,050
Compare value from xml node that contains decimal
I need to compare the values of two different XML nodes for a record stored on SQL Server 2014. Here is the contents of my XML column that I will be using: [CODE] Here is my SQL statement that is not working: [CODE] I am expecting my query to get a hit based on the [CODE] not being equal to the [CODE] but it doesn't.
It looks like you've got the wrong path in your where predicate. If I do this, it works: [CODE] ╔══════════════════╗ ║ (No column name) ║ ╠══════════════════╣ ║ 35.04+ ║ ╚══════════════════╝ Testing: [CODE] ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════...
1
2
177
2018-02-15T19:56:31.650
database_errors
dba.stackexchange.com
803,985
exim4 forwarders are unrouteable for external mail but not internal
I have exim4 configured to forward email for certain addresses. The addresses are on virtual domains for which the server is the primary MX. Other addresses on these domains are delivered to local mailboxes, but the addresses configured to forward go to external domains for which the server is not an MX and the mail sh...
This turned out to be the fault of [CODE] in the router config. The docs recommend this setting for forwarders, but perhaps that is only appropriate when forwarding locally.
1
0
862
2016-09-19T13:43:52.570
database_errors
serverfault.com
844,513
node.js SyntaxError: Unexpected token >
I'm trying Google Cloud to host my node.js app. On Windows 10 I have node v7.9.0 and on Google Cloud it's using node v6.9.0 On Windows 10 it runs flawlessly. On google cloud it gives me this error... [CODE] I don't get it, what's the problem here?
The app engine's default Node.js engine aims to be the latest LTS release. One can specify the actual version used when writing the app, if this version is needed, by editing the package.json file, as described in the "Engines" paragrapth of the "The Node.js Runtime" document . This works in the flexible environment.
-1
0
1,295
2017-04-14T11:41:31.743
infrastructure
serverfault.com
256,352
Update table with values from another table runs really slow
I have a PostgreSQL table (tab_A) with about 32 million records, and I have a second PostgreSQL table (tab_B) with about 4000 records. tab_B contains 3 fields whose values I intend to pass on to tab_A (field1, field2, field3). tab_A 32 million records Unique identifier (id) BTREE index tab_B 4000 records Unique identif...
Don't repeat the target table in the FROM clause: [CODE] Quote from the manual Note that the target table must not appear in the from_list , unless you intend a self-join (emphasis mine)
0
4
525
2019-12-27T11:03:50.730
database_errors
dba.stackexchange.com
965,551
How to setup ssh for a couple of servers?
I'm pretty confused about how ssh really works, and I have already asked a couple of questions related to this, but I suspect I'm going in the XY-problem trap. So, what I want is this. I want to be able to login to a couple of servers from a client via ssh to runt tests on them. It should be done in a way so that I wil...
On your workstation: Start the ssh-agent on your workstation if it is not running already. Check with [CODE] ; the error message [CODE] means that you need to start the agent: [CODE] And follow the printed instructions and set up your environment: [CODE] SSH, with agent forwarding enabled, and log in with your password...
2
3
98
2019-05-02T11:11:40.600
infrastructure
serverfault.com
404,501
OpenVPN client on Amazon EC2
I have an account with an OpenVPN service, and I'd like to get that running on my EC2 instance running Ubuntu 12.04. I have my config file in /etc/openvpn , and it connects fine when I run sudo openvpn --config matt.ovpn . However, I then lose connectivity to the EC2 machine, and I can't SSH back to it until I reboot. ...
Your OpenVPN configuration probably has the [CODE] directive, which will change the default route to point to the VPN once the VPN has started. Remove or comment out this line to prevent this from happening.
1
1
4,607
2012-07-03T18:54:17.610
infrastructure
serverfault.com
210,650
why IIS gives out blank page?
Suddenly IIS gives out blank pages for all the domains in the server. Sometimes, the .html pages does not works which requires IIS reset . But in case of blank pages restarting the server becomes the option. Why these happens with IIS and any specific reasons for that to happen such as hitting memory, etc .
First you should check the source code of the returned pages to make sure they are empty. Try to see the response headers and the return code. If the pages are empty this means that the application is crashing before sending the response. Check the server logs (access and error) and the Event Viewer logs (application t...
-2
1
1,905
2010-12-09T00:12:49.530
infrastructure
serverfault.com
447,077
Compromised web server/multiple domains
Possible Duplicate: My server’s been hacked EMERGENCY Earlier today I found a lot of weird files on one of my servers (running Ubuntu Server 10.04), which I can't understand how they got there. Probably some sort of XSS-injection, need to dig further in my applications. What I found; Multiple directories in the web roo...
make sure that your apache directory (document tree of the web-server) is not writable check your apache logs for suspicious GET/POST requests (you can grep those names) check your ftp logs for suspicious requests (you can grep those names) make sure that your software is up to date if you use any third party software ...
0
1
93
2012-11-09T13:27:35.153
data_quality
serverfault.com
565,122
smbclient -M nt_status_bad_network_name error
I am trying to send a test message (for a test project) from my [CODE] to my [CODE] . I am getting the error [CODE] . What I know that works: I can ping from Host to Guest and vice versa by using computer host name. MSG Service (replace net send) is enabled on [CODE] side. NOTE: For LAN testing purposes, I did disable ...
You haven't put whole command line and smbclient response, so please make sure that [CODE] contains heading [CODE] symbol.
1
0
5,249
2014-01-05T05:05:54.373
infrastructure
serverfault.com
267,756
Index creation in extremely slow in Mysql Aurora 5.7
I have a table in mysql Aurora 5.7 version . The db instance has very good configuration 488 GB ram (db.r4.16xlarge). Data base is static data base no application is running on this . I have 1.5 Billions record approx 2TB size in the table . The table does not have any index except primary key . Table has 35 Columns . ...
You have a lot of rows., every row has to be inserted into the index, that takes time, live with it. You can try to use only one index for all columns [CODE] That takes also long, but should be faster
1
0
2,094
2020-05-23T15:00:39.790
database_errors
dba.stackexchange.com
334,102
How to change defaults in oracle docker image
I have been trying to change a few defaults in the database and set a language in default oracle docker image, but I have been failing. I have been trying to [CODE] I have done [CODE] Confirmed that the data is changed and then [CODE] Didn't work. Restarted between both steps. I did it after logging in with all of thes...
Use environmental variables. This is the recommended approach for setting NLS settings during container startup. Define them in the environment section of your docker-compose file for the database service [CODE] These additional environment variables define the other desired NLS settings. Be sure to replace the values ...
1
0
114
2023-12-15T16:59:15.457
pipeline_ops
dba.stackexchange.com
160,165
Troubled FastCGI Config -- 503 Errors
I'm getting FastCGI hangups where some websites are accessible, but others return 503 Service Unavailable errors (if I wait long enough for a response). It's got lots and lots of domains on this host not accessible. This is a server with 1000 domains on it. It was running fine but slow occasionally until we switched to...
The process slot errors are resolved by identifying the server load bottleneck. In my case, it was disk I/O. I fixed that by running this command on the web directories. In this case, all the websites are on /home: chattr -R +A /home However, before you ever do that, be aware of the consequences: http://tldp.org/LDP/so...
0
1
3,481
2010-07-14T03:32:10.150
infrastructure
serverfault.com
486,766
nslookup ambiguous results ok after change dns records?
I've never changed public dns records before, I'm not really sure if this is normal because of DNS cache or if It's a real problem so I need your help. 8 hours after I changed the A record of the domain in mi registrant control panel, Mi browser sometimes still opens the old site. I've checked with nslookup, using mi p...
Windows? Linux? Have you tried another computer? If Windows, try clearing your browser cache, and run ipconfig /flushdns in the command prompt. It could all be cached content.
0
0
286
2013-03-11T19:25:04.517
infrastructure
serverfault.com
70,748
How to encourage Windows administrators to pick up scripting?
When I worked as an administrator in my first job, I was frustrated that our administration processes with Windows servers were a series of point-and-clicks; we could never match the level of efficiency with the Unix servers which had a group of shell scripts to automate a lot of the work. I soon read about WSH and ADS...
As a Unix and Windows administrator who does a lot of Unix scripting and almost no Windows scripting, I'd say that it is in part due to the incredible awkwardness of Windows scripting utilities and APIs, and the difficulty (maybe non-obviousness would be a better word) of running things remotely on a Windows machine. I...
26
21
1,221
2009-10-02T13:06:49.050
infrastructure
serverfault.com
391,637
Maximum receive size of E-mail message Exchange server
All E-mails with attachment bigger than 10MB are being reject by E-mail server of my company. When I try to send mail from my Gmail, to my work account I get following message: [CODE] In Exchange Management Console of our server, I set maximum receive size as show in following picture, but E-mails are still blocked. Yo...
There are several places to make this change. You caught one of them... Another spot is in Organization Settings -> Global Settings -> Transport Settings... (I'm on Exchange 2010, but it should be similar for you) Also take a look at the relevant Send Connector in the Organization Configuration -> Hub Transport...
2
2
3,155
2012-05-22T22:57:28.130
infrastructure
serverfault.com
28,247
Performance Tuning for Huge Table (SQL Server 2008 R2)
Background: I have a fact table in UAT Phase. Objective to load 5 yrs of data in Prod (expected size 400 Mn records). Currently it has only 2 years of data in Test. Table Features: No of Dimensions ~ 45 Measures ~ 30 Non-additive measures and other columns~ 25 Current data size ~ 200 Million (2 years data) Time View: 3...
Upgrade to SQL Server 2012 and use columnstores . They thrive in these requirements. Seriously, download the evaluation edition and give it a try. Drop all indexes, drop the clustered index, simply add a non-clustered columnstore index on all columns and give it a whirl. I've seen cases just like your that reduced the ...
14
6
7,804
2012-11-06T03:13:00.100
database_errors
dba.stackexchange.com
630,897
Solution to rewrite path on old software to prevent write permission inside %programfiles%
I'm looking for a solution to rewrite specific path an old software use inside it's own folder, in %programfiles%. Old software saving it's data in it's own folder require editing permission (reducing security) or giving administrative privilege to the end user (the end user will break the system). Is there a solution ...
Yes what you're asking is possible. You could write a file system filter driver for this. One of the things that file system filter drivers are capable of is intercepting every read and write to a file system, examine the operation for certain path names, and redirecting the operation to a different path name. This is ...
2
3
178
2014-09-24T13:43:19.283
infrastructure
serverfault.com
121,070
User databases inaccessible after physical restart
We have an unusual error happening on the SQL Server. After restarting the physical server where the SQL Server instance is installed, the user databases are not accessible. System databases are accessible. Please see screenshot (After right clicking on DB and choosing properties) as example and error at bottom of the ...
It sounds to me as if the D: drive isn't accessible when the SQL service starts. Consider telling the service to start on a delayed start, or create a process which checks for a file on D: before doing a "net start mssqlserver".
0
2
1,510
2015-11-14T06:32:57.607
hadoop_errors
dba.stackexchange.com
33,389
Interactive INSERT / UPDATE function to implement UPSERT
I have a function in PostgreSQL 9.1 that I want client applications to be passing a record object and the function will detect if it's an insert or an update and return the operation done, i.e "1 record successfully added" or " Record with PK [wherever] was successfully updated" or "An error occurred, field X cannot be...
If you want to catch [CODE] violations as well you have to cover the UPDATE as well, which makes the function a little more expensive. [CODE] Using an [CODE] parameter and made some simplifications and clarifications. I would just let the regular EXCEPTION happen. People are not supposed to enter NULL values for NOT NU...
0
2
5,217
2013-01-23T09:12:30.227
database_errors
dba.stackexchange.com
232,267
Issue with Dell Blade running ESX, trying to figure out the issue
Issue with Dell Blade running ESX, trying to figure out the issue. I have attached the BSOD that ESX puts out when the server freezes.
You have a dead or dying CPU, chipset or system-board, speak to Dell.
2
9
251
2011-02-07T17:26:17.537
infrastructure
serverfault.com
549,429
Shared Excel WorkBook is locked by another user
I’ve been trying everything; this is the last chance I have. I moved folders and files from an old Windows Server 2003 File Server to a new FS (Win Server 2008 R2) with DFS and ABE enabled. Now, a specific Shared Excel file is driving me crazy, out of a sudden, lots of times per day, users are getting the following err...
This has to do with the new Trust Settings that are in Office 2010. From the File menu, select Options and then select Trust Center. Then select the File Block Settings. Make sure you have most of the checkboxes cleared. I have only Word 95, 6.0 and Word 2 and earlier set for Open. All the rest of the documents I leave...
2
2
17,412
2013-10-29T15:46:18.243
hadoop_errors
serverfault.com
127,763
What should I do about SQL connections that is a Head Blocker?
I'm looking at the Activity Monitor in SQL Server 2008 Management Studio. I see that a lot of processes indicates that it is a blocking process, by the value of 1 in the Head Blocker column. Is this normal, or am I potentially dealing with an issue here?
No, not normal The locks causing the blocking will usually be held because of inadvertent open transaction (ie not committed or rolled back) long running transaction/statement (eh a delete taking hours) client command timeout without SET XACT_ABORT You could KILL the offending spid but this fixes the symptom not the ca...
3
2
11,956
2010-03-30T16:40:57.133
database_errors
serverfault.com
305,061
What question is answered by DDD?
What is the problem that is solved by Domain Driven Design? I understand what Object Oriented Programming brought and see the issues it addressed and how, and in what aspect/scenaria, it made the live of a developer easier. But I so far failed to see the big picture of what DDD does bring us. For sure this is due to th...
Domain Driven Design is fundamentally a remedy for our tendency to bleed the technical and "philosophical" objects and concerns into each other. Even in cases where we have a strong sense that these two things are best addressed as separate concerns, it can be tough to consistently make the right divisions without a cl...
15
15
1,872
2015-12-14T17:13:01.727
api_errors
softwareengineering.stackexchange.com
315,774
How do you write ordered multi-inserts wih CTEs?
With the table like this : [CODE] And the insert query like this: [CODE] Basically what it does: inserts a row into [CODE] inserts a row into [CODE] inserts their IDs pair into [CODE] The problem is I would like to rewrite the query into a multi-insert query, i.e. for the [CODE] rows inserted into [CODE] insert the [CO...
... for the [CODE] rows inserted into [CODE] insert the n rows into [CODE] and then create the [CODE] rows in [CODE] for the inserted values. For that I need to know the row index within the CTE, so it could be used as a join key. Is it something you can do within the [CODE] clause? There is no provision to add row num...
1
2
437
2022-08-18T12:35:45.657
warehouse_errors
dba.stackexchange.com
1,052,284
Looking outside the internal DNS zone when using the same domain
So inside my network, we have a local DNS server (bind9). Let's say our internal zone is [CODE] , when I make local entries such as [CODE] it would work normally, and when I'm looking for something that isn't *.veridani.com it would look in 1.1.1.1 which is Cloudflare. The issue I'm facing is that when I add a public D...
A solution might be to set up the domain locally as a policy zone instead of a master zone. As an example, add the following to your named.conf file. [CODE] Then add a zone file called [CODE] containing the following: [CODE]
1
0
378
2021-02-03T15:35:24.430
infrastructure
serverfault.com
69,562
How to transfer 70GB MySQL with no downtime?
I have a large amount (4000) of individual databases, 90% of which are small. They all include about 20 tables each, and in total, they use about 75GB of space. All tables are MyISAM. I want to transfer them to a newer, more powerful server with an SSD for increased performance. We do not need to continue using MyISAM ...
You are going to have to bite the bullet somewhere in this process. You should determine which databases need to be dumped first (smallest to largest): [CODE] Take this list of databases and numerically generate conversion scripts [CODE] You can now run each conversion script by name in alphanumeric order. As you get t...
0
1
812
2014-07-02T17:04:44.493
database_errors
dba.stackexchange.com
299,840
Unblocking a blocked TCP port on a Sonicwall Tz170 firewall
Anyone with knowledge of Sonicwall's Tz range might be able to help. Under Firewall >> Service I create a new Service called "remote tcp conn" and add it to a new Service Group. Then under Firewall >> Access Rules (WAN to LAN) I create a rule to allow this Service Group access to the LAN. From my external PC I try to c...
You will probably need to create a NAT rule for this traffic. Namely, you will need to translate any traffic from your external IP address to whichever LAN IP you wish.
1
1
1,589
2011-08-10T21:45:36.390
infrastructure
serverfault.com
385,520
Does saving a file to temp and deleting whenever a checkbox is toggled considered a wise choice?
My team and I have this Desktop client developed in JavaFX. It basically has a "Remember my password" checkbox. If the user ticks this checkbox, reboots, and reopens the app, the user should be automatically logged in. I'm using a cheap trick just saving a temp file to the temp directory. It's encrypted and it contains...
These days it's common for an application to create and/or destroy multiple files per second. As long as you're sure you can't get into some sort of loop that creates/destroys files at high speed, and there's no chance that a partially-written file will give your app trouble (e.g. if someone yanks the power cord at an ...
1
2
159
2019-01-15T00:47:54.300
bi_errors
softwareengineering.stackexchange.com
103,223
Advice on collapsing a physical network?
As we expanded throughout the building we now own completely, offices were physically disconnected. This was back when 10Mbps was still usable, and there were printers and workstations acting as fileservers and whatnot in each office suite. Thus it was simple to just run a single 100Mbps line from the primary switch to...
I think what you are looking for when you refer to a splicing patch panel would be a 110 block. You would run your cables from the main switch to the area in the suite where the switch is now and punch them down to the 110 block. Then you would take your runs going into the suite and terminate them on the 110 block. Ta...
1
1
186
2010-01-15T23:06:05.840
infrastructure
serverfault.com
213,115
Making the move to source control
Ours is a fairly small company (3-4 programmers and 3-4 site designers) that develops a single-purpose PHP web app which provides the functionality to about 100+ websites. We've operated for a couple years in a separate development and production environment which has worked fairly well. There's always been enough sepa...
It's helpful to have everything versioned, even for designers. And if implemented well with good training, I think they'll find it more helpful than burdensome. If you're just starting out, I'd strongly suggest using a distributed version control system like git or mercurial . This is the general trend in the world, an...
10
10
777
2010-12-16T01:29:07.377
pipeline_ops
serverfault.com
369,820
Strange issue with one CCR node exchange 2007
When I fail over to one of our exchange nodes, the store.exe has a very high CPU. It goes to about 50-60% even with no users connected. With users connected it stays up near 100%. On the other node it is fine. Dont see any messages queuing up, or see any database events and am at a loss as to what to check next. Any he...
See above comment - was due to snapshot of on passive server
2
0
96
2012-03-14T21:41:19.020
infrastructure
serverfault.com
515,417
Error Start Apache "php value"
After updating my vps, I get the follow error: Failed to start apache : Starting httpd: Syntax error on line 31 of /etc/httpd/conf.d/php.conf: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration [FAILED] Enable modules on PHP: [PHP Modules] bz2 calendar Core c...
I recently ran into this exact problem using Plesk 9.5 on CentOS. I cannot say for sure whether it was caused by an update to Plesk, or not. The customer doesn't think any changes were made recently, but Apache failed to start with this error. After an assesment of the system to ensure it wasn't due to a breach, I did ...
16
13
89,080
2013-06-12T23:40:41.497
database_errors
serverfault.com
1,036,220
Safety of PostgresQL run in Docker container
Postgres is available as a docker image on dockerhub/postgres . Configuration is easily done via environment variables but they also state Warning: the Docker specific variables will only have an effect if you start the container with a data directory that is empty; any pre-existing database will be left untouched on c...
I would advise against using postgres:latest and instead specify the major version you want (ie. postgres:12). No respectable DBMS will drop your database when updating the DBMS, however it might refuse to start (as does PostgreSQL). You can fairly safely ( always have backups nevertheless ) upgrade the cluster when sw...
0
3
339
2020-10-03T04:37:47.600
data_quality
serverfault.com
681,650
How Can I Have An Action Run On Hosts Where A Given Trigger Is Already "True?"
Setup: Zabbix 2.4 | RHEL 6.4 I'm configuring a method to allow Zabbix Agentd services to automatically update their own binaries when a trigger is thrown (using Git as the vessel). Two triggers are in place: Trigger 1: "Git repo doesn't exist" - Make sure there is a git repository in place where the Zabbix Agentd's bin...
As a workaround, you can temporarily change the trigger to "Multiple PROBLEM events generation", wait until all actions you need are executed, and then switch back.
1
2
2,136
2015-04-09T19:33:39.163
infrastructure
serverfault.com
662,222
Setting up two Bind9 DNS Servers on LAN with one serving a particular zone and the other hinting to it
I have set up a Bind9 DNS to serve names on a local netword 172.16.0.0/16. This Bind9 DNS service works fine and resides on 172.16.0.4. It serves names in the domain "mydomain.mak" correctly to all other computers in this subnetwork. For some computers, let's say one at 172.16.32.10, I'd like to have a Bind9 DNS server...
Multi master in BIND does not work . A slave should be installed on [CODE] instead of a master. When I started to setup a master-slave in BIND I read this documentation . Master [CODE] Slave [CODE]
-1
0
1,506
2015-01-25T14:13:19.723
infrastructure
serverfault.com
612,318
OpenVZ Local Network
I recently aquired 7 OpenVZ Virtual Private Servers for a load balanced website. 2 Load Balancers 3 Web Servers + MySQL API Server + MySQL Storage Server 2 Storage Servers (For PHP Sessions and Uploaded content) Though, my problem is I only have public IPv4s to connect them with and no LAN Network. So I was wondering i...
Yes, if your provider also provides a separate network for this purpose. Otherwise just use the public IP addresses. Though in this case, if you use SSL you will have to pass it all the way through to your backend servers rather than terminating it at the load balancers, to ensure that other customers' virtual machines...
0
0
72
2014-07-14T06:44:58.790
pipeline_ops
serverfault.com
832,880
SSH Lockout after failed login attempts
I have an Ubuntu Server for my git repositories and other stuff. Sometimes someone trying to hack it (I think it's ok for servers) and after few failed login attempts SSH is locking out. I mean no one can do anything via SSH for 5 minutes or so. For example - "git pull" ends with "Connection timed out". Since I'm not a...
@Orphans helped me with this hint: /etc/fail2ban/jail.conf and add the IP you want "whitelisted" under "ignoreip"
2
2
5,533
2017-02-16T09:37:26.207
infrastructure
serverfault.com
243,425
Load balanced IIS. Should I use NLB, or linux-based reverse proxy, or something else?
What would be the best approach for load-balancing at least 2-3 Windows 2008 R2 IIS webservers running a multitude of .NET applications? My choices appear to be: 1) Hardware-based network device load balancer, like a Cisco CSS 2) Windows NLB 3) Some sort of linux based proxy, either haproxy or other The three servers s...
At Stackoverflow we use HAProxy to balance against our Windows Server 2008 R2 IIS 7 web servers with great sucess. We love HAProxy and find it to be very flexible.
6
10
5,869
2011-03-04T21:59:59.537
api_errors
serverfault.com
660,651
Hyper-V and Windows Failover Cluster Manager - View available resources per node?
I have a Hyper-V host with Failover Cluster Manager and 6 VM nodes (hosts). How can I see how much memory and CPU is allocated per node? I want to know what my available resources are to create more VMs per node. I can't find any way to do this in Hyper-V or in the Failover Cluster Manager. The only thing I can think o...
You have the option of System Center Virtual Machine Manager , which gives you the ability to manage your "fabric", view some basic metrics, provision new virtual machines, etc. We use it in our environment and it fills a gap, but it's not perfect and definitely not cheap. The only OOB way I know of to get the informat...
1
1
2,142
2015-01-19T15:17:14.973
database_errors
serverfault.com
307,026
Sometimes, not always, when loading an MSSQL table from Excel a new table suffixed with a $ is created by MSSQL. Why?
We are loading MSSQL tables via Microsoft Management Studio Import. Sometimes, not always, a new identical table is created in the load process with a $ at the end of the name. Why does this happen? Is this related to the IDs?
From this MSDN discussion : Excel object names that are appended with a dollar sign ($) represent worksheets (for example, Sheet1$), and that plain object names without the dollar sign represent Excel named ranges. So the tables you are seeing with the dollar sign came from Excel worksheets.
-1
2
106
2022-02-04T17:50:54.400
warehouse_errors
dba.stackexchange.com
852,059
Does Darwin (MacOS kernel) do memory overcommit?
For example, Linux has [CODE] which is on by default. Windows does not have memory overcommit. Does MacOS? Is it configurable? What's the default setting?
I've tested on my MacOS and it's working. I use code from this question . And system allow me allocate more then 40Gb memory, with only 16Gb RAM onboard and 6Gb used swap(on picture process of allocation before OOM-killer execution). My kernel version is: [CODE] I don't found possibility to configure overcommit, but lo...
4
4
2,229
2017-05-24T18:05:15.840
infrastructure
serverfault.com
823,345
PowerBroker (PBIS) Restricted login list - couldn't resolve srv\DomainUsers [40071]
I want to join a domain with Ubuntu 16.04 machine. The server is Windows Server 2012 R2. I have installed PowerBroker Identity Services (PBIS) 8.5.2.265 I get this error in /var/log/syslog: [CODE] A couple of erros here: /var/log/auth: [CODE] /opt/pbis/bin/config --dump: [CODE] root@srv3:~# /opt/pbis/bin/get-status [CO...
Restricted login list - couldn't resolve srv\DomainUsers [40071] You should check that the naming of the group Domain Users in the settings PBIS corresponds to how it sees PBIS. To do this, run the following command: [CODE] Find you Domain Users group name as it displayed and put name of the group to configuration in t...
0
0
7,677
2016-12-30T08:25:35.817
infrastructure
serverfault.com
817,832
Active Directory groups and local builtin groups: any best practice out there?
We are running an Active Directory consisting of several different Windows machines (Vista, Windows 7, Windows 10, 2008 R2, 2012 R2, ...). I have to come up with a concept that allows for granular management of local permissions. Currently too many people got full rights on the machines. I am planing to do the followin...
The number of groups itself is not the problem, it's finally scriptable - the number of group memberships is!(for example due to the kerberos max token size). I prefer the following (Example for local Administrator Members) Site A Host A1: HostA1-Admin, SiteA Admin Host A2: HostA2-Admin, SiteA Admin Site B Host B1: Hos...
2
1
347
2016-11-30T07:02:10.127
hadoop_errors
serverfault.com
800,117
Azure malicious activity / SSH brute force
Recently, I got e-mail from Microsoft Azure Safeguards Team saying that there was a complaint of malicious activity originating from my deployment (VM). Description is: "SSH Brute Force". Now, I wasn't even remotely sure what this means. That someone used my VM for some malicious activity, and brute forced into it, or ...
Now, I wasn't even remotely sure what this means. That someone used my VM for some malicious activity, and brute forced into it, or used it to brute force somewhere else? Yes, your host instance is the source of malicious attacks. Welcome to the Internet! You got rooted and are now a spam cannon. I'm pretty sure no one...
-1
3
1,002
2016-08-31T02:38:30.537
pipeline_ops
serverfault.com
378,847
Automatically change UID of file
Due to development policies, all my relevant server files have g+w policies. This is working great, but, for added accountability, I'd like the files to change owner UID upon being edited by other users with group permission. Is this possible?
You can use inotify and incron. Here there are some documentation: http://inotify.aiken.cz/?section=common&page=home&lang=en http://inotify.aiken.cz/?section=incron&page=why&lang=en https://stackoverflow.com/questions/656876/determine-uid-that-last-modified-a-file-in-linux
0
1
414
2012-04-12T13:40:07.160
infrastructure
serverfault.com
1,084,456
how to mark connections to route multiple gateways?
hi i am having trouble setting up permanent routes for my network interfaces, i have : os : linux (centos 7) eth0 : IP 172.16.3.6 -- Gateway : 172.16.0.1 eth0:1 : IP 10.1.5.102 -- Gateway : 10.1.5.101 eth0:2 : IP 10.1.5.106 -- Gateway : 10.1.5.105 and i wanna to connect to : 10.10.10.1:5160 via 10.1.5.102 (Sip-Trunk Co...
Routing does not work at the port level, it only looks at the IP address. What you can do is use iptables to mark packets and then use policy based routing to pick a different routing table. Something like: [CODE] Examples of how can be found here
0
1
847
2021-11-24T08:44:25.657
infrastructure
serverfault.com
762,515
awcli query option for multiple filter expressions
Given the output of [CODE] I am trying to display objects that have no [CODE] value and DO have a [CODE] value. So far I have come up with this: [CODE] But it errors out with: [CODE] I have been looking through http://jmespath.org/ and do not see how to execute multiple filter expressions. Both [CODE] and [CODE] work, ...
I was able to solve my logical problem (filter [CODE] for instances that are in a VPC but that aren't windows) with the help of this question . My resulting query (wherein I'm looking for [CODE] ) was: [CODE] However the actual question I asked about combining filters remains unanswered, SO I will leave this open in th...
4
1
9,309
2016-03-09T00:04:24.297
infrastructure
serverfault.com
186,081
Is there anyway to UPDATE a series of columns on a row with a composite type record/row?
Take a table [CODE] , [CODE] I can insert into [CODE] with a row type.. [CODE] But I can't update foo with a row type. [CODE] Is there any syntax to update an entire row with a composite type. The really weird thing is that this works in a trigger with [CODE] , and I'm trying to write the same code without a trigger. [...
There are actually lots of posts regarding this.. Support UPDATE table SET(*)=... WIP patch for multiple column assignment in UPDATE Supporting multiple column assignment in UPDATE (9.5 project) Better handling of UPDATE multiple-assignment row expressions However, according to /u/pstef, one of these is committed, and ...
4
1
2,803
2017-09-15T15:07:41.040
warehouse_errors
dba.stackexchange.com
126,469
Many-to-One replication / Transactional Replication
I have several PostgreSQL DBs in different geographical locations (local sites). Each local site DB have the same schema, but unique data. For example, Take a table with columns: Site_ID, Department_ID, Department_Name. Site_ID is unique for each site. I want to collect all the data from the local site DBs into a centr...
I see at least two options: if you don't need near-real-time replication, but just once a day (or maybe every hour) is enough for you, and the amount of data is small, you can quite simply create a script that will run in each remote location: connect to the local database do a dump of the local data ( [CODE] should be...
5
3
2,132
2016-01-17T23:50:44.337
database_errors
dba.stackexchange.com