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
174,300
Ola Hallengren script not deleting old backup files but simply taking time
We recently migrated to a new SQL Server and the SQL Services are running under a Service Account. I did observe that the Service Account do not have [CODE] rights on G drive and the old files are not being cleaned up. Question: Why doesn't the [CODE] procedure [CODE] when it cannot delete a file OR simply move on inst...
You're providing [CODE] with a directory, and a file extension to check for. How many files were there that needed to be deleted when this took 9.5 minutes to run? It would make sense that the process would be trying to delete each file , and would ultimately fail to delete each file . If there's one file to try to del...
2
1
2,165
2017-05-23T10:25:47.347
database_errors
dba.stackexchange.com
406,479
CentOS libvirt reboot
I've noticed the following status message after system update (on SL 6.1 - yum update): [CODE] one of the updated packages was "libvirt". Is it possible that this caused the issue? if I'll restart the "libvirtd" daemon this will also restart all the KVM VMs? I'm not sure if the "libvirt" service was restarted automatic...
Most likely libvirt exited uncleanly at some point, leaving the PID file behind. Anyway, libvirt won't restart the VMs that are currently running. However, it will start up the VMs that are marked as "boot automatically" but were shut off.
1
2
9,856
2012-07-10T17:24:35.210
database_errors
serverfault.com
390,856
OSPF routing (quagga) FreeBSD. Routing tables doesn't change. Help please
I have a problem with my lab work. I need to provide network routing with ospf. My Net has the following layout: So... When I start 3 virtual machine with all working interfaces, everything is ok - routing tables is right, all connections work. But when I put down IF1 on R3 machine, after 120 sec routing tables on R1 a...
Why would the routing table change at all? R2 already has routes to everything via its links to R1 and R3. Even if R1 loses its route to 172.16.3.0/24, R3 is still advertising it back to R2 (as it did before the link went down). You should see some change in the OSPF database itself, but the host's routing shouldn't ne...
0
2
5,229
2012-05-20T20:46:15.143
infrastructure
serverfault.com
68,042
Active X Control issue on Terminal Server 2003
I have a security camera system which can be viewed remotely via a web browser. It works excellent only with IE 6 and up and requires an ActiveX control "ERViewer.ocx". Some users require to view the cameras via Windows Terminal Server, but when they try to open the link to the DVR they get the prompt ti install the Ac...
The activeX does not support windows Server edition.
0
0
862
2009-09-23T14:39:02.953
infrastructure
serverfault.com
270,872
SASS placeholders to avoid repeated rules in CSS output
I've got a question for all the frontend guys here. First of all, this is not about placeholders vs mixins as I've already have an idea about, whether to use one or another. So the question is - do you use SASS placeholders with just one, or perhaps two rules to avoid multiple occurrences in the resulting CSS output? A...
This is a very interesting question and I am very interested in what others think as well. I have been using sass for a while now and for the most part I tend not to use the [CODE] functionality at all. In the case of float left or right everywhere I would probably just make a class [CODE] and just add it to the markup...
3
1
350
2015-01-22T20:46:55.543
api_errors
softwareengineering.stackexchange.com
1,009,931
BIND9: Is possible to point another ip address for main domain?
This is my zone file: [CODE] Is it possible [CODE] be 192.0.2.1 but [CODE] be 192.0.2.2 ? (without using another DNS server on 192.0.2.2) How I can do that?
The [CODE] can certainly point to any IP address other than the IP addresses of your authoritative name servers . However, you should still have at least two different name servers on separate networks. This comes from IANA's Technical requirements for authoritative name servers : Minimum number of name servers There m...
2
3
1,072
2020-03-29T10:32:54.083
infrastructure
serverfault.com
12,528
Yum update mysql from 5.1 to 5.5
I was just in the process of 'yum updating' a server. One of the updates its suggesting to carry out is an upgrade from mysql 5.1 to 5.5. The mysql server operates in a master-master replication setup with another 5.1 mysql instance. I would also update the other master to 5.5, but want to keep one online at all times....
The replication setup you have cannot be maintained when upgrding to MySQL 5.5 You will have to go with Master/Slave. Here is the reason: Someone asked a question about gibberish appearing in a binary log and I answered this question In my answer, I explained that binary logs start at different positions in different v...
7
2
1,245
2011-05-24T22:32:20.153
database_errors
dba.stackexchange.com
233,313
Mysql alter/write lock database
I runned this in mysql: [CODE] But this not preventing from inserting more data to database wordpress_fixed. Is it supposed to work that way?
If you manually update any mysql.X table regarding privileges will require a FLUSH PRIVILEGES to effect the change. Using GRANT is the better way of of ensuring privs exists (and doesn't require [CODE] ).
0
1
26
2019-03-28T01:44:40.130
database_errors
dba.stackexchange.com
562,744
Can't establish connection on port 80 for yum
Hi guys I have a very strange issue happening on one of my boxes. If someone can advise what I can check please let me know. Thanks. Here's the layout. Box 1 & Box 2 <> Firewall <> Internet Now the interesting thing is with Box 1, I'm able to run the "yum" utility to download and check packages online but with Box 2, I...
Okay sorry turns out the traffic from Box 1 & 2 are going through the firewall via 2 different proxies. The one that have been working have NAT turned on. So despite the traffic from Box 2 was routed by the firewall out to the Internet, it didn't apply NATing. It's all fixed now. Sorry for the confusion.
2
0
3,761
2013-12-20T14:47:26.190
infrastructure
serverfault.com
127,623
Disable/enable PostgreSQL trigger inside function for the same table
I have a trigger that protects updating some column. I also have a trigger that should update that same column after insert on that table. I've used triggers like this and it works if I need to update column on some other table. I just disable that protecting trigger before update and enable it again after the update i...
One option would be to: Jack up the security on the table so normal users can't directly access it at all, and remove the protecting trigger. Create an updatable view on the table which is accessible by normal users, and add an [CODE] trigger to protect the column from updates (assuming you want it still visible; if no...
1
3
1,520
2016-01-28T16:17:51.980
database_errors
dba.stackexchange.com
47,261
Apply profiler template to saved log
I need to check for deadlocks in my customer's system. He provided me with unfiltered logs. Can I filter them after running the trace somehow? (I don't have direct access to his server) It seems like the template can be applied only before running the trace.
I don't believe you can apply a template after a trace file is saved, however you can work around this by exporting the results to a table. If you open the trace file in [CODE] and the navigate to [CODE] , you can output the result set to a table in an existing or new database and then you can query/filter the result s...
0
2
59
2013-07-30T08:16:00.520
database_errors
dba.stackexchange.com
555,272
How do you NAT Hairpin in IOS 8.3+
As I asked here and duplicated here it appears NAT Hairpinning is the answer I'm looking for to allow internal servers to loopback through the ASA to access external IP's (without using DNS Doctoring). However, the instructions presented in those posts, and here, http://www.cisco.com/en/US/products/ps6120/products_conf...
As an obsolete ex-PIX/ASA admin I of course found this irresistible. I have no appliance (but an old PIX 506E running 6.3) to try it on, so it's kind of totally lame. But this is what I found in the online documentation for 9.1 and through some random Googling. Reference links are provided at the bottom of the post. So...
5
2
5,725
2013-11-15T14:50:54.223
data_quality
serverfault.com
351,392
informix + Fatal error in shared memory creation
please advice how to solve this problem I have linux with informix DB its fail on - Fatal error in shared memory creation [CODE] -sh-2.05b$ oninit -v [CODE] oninit -i [CODE]
Your shared memory segments may not have cleared properly. Run onclean -ky command. This should hopefully clear any lingering shared memory segments. If this doesn't work, run ipcs command to identify the memory segments and remove using ipcrm
4
3
12,949
2012-01-19T07:58:24.227
infrastructure
serverfault.com
420,888
What is wrong with my iptables rules for port 80?
I just want to surf the web and be a web server but it's not working. My rules are: [CODE] Also, I am not quite sure about those states. Which ones are useless in my case, and why? Thanks a lot for your help. EDIT I still can't surf the internet. With these rules, I want my server to be a web server and at the same tim...
Your [CODE] rule looks like it is trying to allow incoming connections to a web server on the local machine. Your [CODE] rule looks like it is trying to allow outgoing connections from the local machine to any outside web server. Which are you trying to achieve? Both? In any case, you will need to be more permissive ab...
0
2
119
2012-08-24T02:50:26.790
infrastructure
serverfault.com
307,027
Extremely slow MySQL performance after changing client server
I have a Magento web server (CentOS) that uses a crossover cable to connect to a MySQL database server. The other day, I upgraded the Magento server. I disconnected the crossover cable from the old Magento server and plugged it into the new one. I was able to connect to MySQL, but it took about 90 seconds. When I tried...
Are the ethernet ports on BOTH set to the same speed and duplexing? If not, you'd have incompatible and problematic transfers between the two systems on this cable. Another suggestion is to ensure that the cable type is appropriate to the transfer rate being used.
0
1
275
2011-08-31T22:05:08.717
database_errors
serverfault.com
68,697
Converting MSSQL Stored Procedure to MySQL - Syntax Error
I am converting a MSSQL Stored Procedure to MySQL, and am running into a problem. Maybe it's because I have been staring at the code for so long, but I can't seem to figure it out: [CODE] The syntax error is at the SELECT@CountAll line: [CODE] I've tried rewriting it several times, but no dice. There are likely additio...
Comment from @ypercube is correct -- in this case, the syntax error you're encountering is because the previous line did not end in a semicolon: [CODE] Should be: [CODE] In MySQL's stored procedure language, you have access to two different types of variables. The first you declare with [CODE] and these are locally sco...
1
1
1,065
2014-06-20T17:54:25.623
database_errors
dba.stackexchange.com
361,714
Webpack and Lazy Load for large-scale Web Application
Background I am trying to develop with Webpack and JavaScript. Webpack would bundle all source code into one single file. When application becomes large, the file would be very large and cause negative impact to the performance. Webpack Webpack provided feature named code splitting which would split the bundle output i...
All mature JavaScript loading and bundling tools, from Webpack to RequireJS to SystemJS, provide techniques for doing this. In Webpack it's enabled by a feature known as code splitting . In SystemJS it's enabled by features such as bundle arithmetic, dep caching, and bundle injection and is provided by JSPM or direct u...
4
3
1,217
2017-12-02T12:44:56.137
api_errors
softwareengineering.stackexchange.com
20,880
Connect up to 127 USB devices MY ASTERISK! Mine gives up after about 4!
Oh the dream of connecting 127 devices at once! It'd be a dream if I could connect even...say..more than four... I have a Belkin USB hub with 7 ports on it. At any given time I can get about four of them to work. (Actually, all the ports work, just not all at the same time...) Could this be somekind of a memory issue? ...
As an insult to the existing injury...each hub counts as a device, so you'll burn quite a few device addresses on your quest to get to 127. A "powered hub" actually has a power supply that plugs into it. A lot of them are made this way. If the hardware conforms to USB spec, and the operating system is decent, you will ...
0
3
1,483
2009-06-05T21:52:41.600
infrastructure
serverfault.com
853,914
local repository nmap no package nmap available
i am testing a local repository setup which i believe i have setup correctly. however when trying to install packages i get the error [CODE] running yum repolist returns the following [CODE] I have also tried installing ntp but get the same error. can you advise as to why i am getting no package nmap available. Is it b...
The status refers to the number of packages that are available on the source repository. i downloaded the full DVD and copied the contents to use this as the source repository. this had a status of around 3500. the package installed without any problem.
0
1
613
2017-06-04T16:46:59.737
infrastructure
serverfault.com
220,693
What is the equivalent of domain admin on Sharepoint 2010?
I have to support Sharepoint on a daily basis but do not have the equivalent of domain access so I'm constantly having to ask the guy in charge of Sharepoint to add me to a new security group to complete my task. Rather than having to bug him all the time (he is only somewhat technical) it would be easier to simply hav...
SharePoints security rides on Active Directory, yes, but because you are a domain admin doesn't make you have admin access. I guess the word you are looking for is a SharePoint Administrator ( Primary or Secondary ), which oversees not only the groups and permissions, but the site as well. It's a no bars full access to...
2
3
437
2011-01-10T16:17:34.937
infrastructure
serverfault.com
612,302
apache - query string rewrite rule appends condition to URL
In trying to rewrite [CODE] as [CODE] I always end up with [CODE] The [CODE] portion is mysteriously appended to the generated URL right before the search term. The rule I have in place look as follows: [CODE] It is worth mentioning that it makes no difference what I put after "q=". The same error or a slight variation...
RewriteRule's %1 comes from the same RewriteRule's (.*) condition, and you match the query string there together with the URI itself. Solution 1: Move or copy your pattern in the second RewriteCond into the RewriteRule's condition. Based on the coments, and an assumption what would you like to reach, somehow like this:...
1
1
6,959
2014-07-14T05:06:33.970
infrastructure
serverfault.com
148,133
Recovering information from a dead / dying HDD (HFS+)
I have a 2.5" SATA hard drive on an employee's MacBook which is in a lot of pain. I can hear it trying to read when I boot and it fails without an error. If I take this drive out and attach it to another box using a caddy what tools are there for recovering data? The tools can be on Windows or Linux (I don't have anoth...
Depends on the value of the data. If the data is of low value go with tools such as ddrescue, then export the image back to another mac. If the data is valuable you should send the disk to a rescue company without trying to read out the data yourself. Additional operations on a failing hd can kill it permanently, which...
1
4
1,075
2010-06-04T08:56:41.103
infrastructure
serverfault.com
410,889
Can I enable NAT on a Cisco ASA without breaking connectivity?
Sorry for the noob question, I haven't done this in years... I have a Cisco ASA with a working VPN, which I set up like five years ago, and I would like to forward http through to an internal IP address. The concern is: the only way I have to get to the ASA is via the VPN, and I'm not near the device, so losing connect...
Yes, this is possible without killing your IPSec or SSL VPN tunnel. I just did something similar a few minutes ago. Will you be doing this via the ASDM GUI interface or just the CLI? Are there no NAT entries in the system at the moment? I prefer the ASDM in situations where there isn't a framework in place... But yes, ...
3
3
238
2012-07-25T00:53:26.050
infrastructure
serverfault.com
118,551
How do I create a SQL databaes with options from the command line
I want to create a SQL 2005 database with the following options: SIMPLE RECOVERY AUTO_SHRINK ON AUTO_CLOSE ON What is the command to do this? The docs on Microsofts site are somewhat vague on this issue. They say: [CODE] whatever that means... I have tried this, which fails: [CODE] and I tried something like this, whic...
Something like this should do it for you (change the initial file sizes as desired): [CODE] I'm guessing that this is for a dev database since you want AUTO_SHRINK and AUTO_CLOSE on. However, if I'm guessing wrong and this is for a production system then it's HIGHLY recommended you leave those options off as they are v...
1
0
67
2010-03-03T00:21:00.187
infrastructure
serverfault.com
50,810
Double queue reader or is it still busy?
I came across this line in the verbose log on replication QueueReader Agent job startup. The Queue Reader Agent has encountered the error 'Another queuereader agent for the subscription or subscriptions is running, or the server is working on a previous request by the same agent.' when connecting to 'distribution' on '...
Solved it. The Queue Reader agent is only used in snapshot or updatable transactional replications. I just deleted the job and emptied tables MSqreader_agents & MSqreader_history from the distribution database. Finally I killed the qrdrsvc.exe process. Helpful links: http://social.msdn.microsoft.com/Forums/en-US/a6de41...
2
1
1,304
2013-10-01T14:05:29.137
database_errors
dba.stackexchange.com
767,307
Why can't I create micro instances on Google Compute Engine?
I just opened a Google Cloud account, under the 60-day free trial. I would like to create [CODE] instances , but I can't see where I can choose this option. This is how the New Instance page looks like: (notice the "up to (?) cores") If I click on the dropdown, it's actually empty: Now if I click on Customize and try t...
As reported by @Faizan, it's a known issue and Google is working on it: https://code.google.com/p/google-compute-engine/issues/detail?id=308 See his answer on this question for more information.
1
1
1,633
2016-03-31T11:40:11.440
database_errors
serverfault.com
370,086
Improving web hosting for high traffic website
Our website is current running on a intel Xeon 2.3GHz that is about 5 or 6 years old with 8GB. The website is current getting around 2,000 visitor per day. Running on windows 2008 R2 Web edition. The database is hosted on another server. For time to time the website gets very slow, when there a lot of members at the sa...
Amazon does not support what you are asking. EC2 only allows you to attach instances inside the amazon cloud to an amazon load balancer. I think you would probably run into database issues if you had part of your infrastructure in the cloud. Its difficult to have a good connection from the cloud servers to your local d...
0
2
166
2012-03-15T14:44:54.813
infrastructure
serverfault.com
27,441
Multi-image superresolution using CNNs
I'm trying to write a program that can take multiple low-resolution images as inputs and output a high-resolution image. My understanding is that for single-image superresolution, Convolutional Neural Networks work great. I can just take a network with just three convolution layers as described here . I can then train ...
I would assume this is a lot more complicated, because the multiple images might be off by a fraction of a pixel, or taken from a marginally different angle. I agree with your analysis that this problem presents different challenges than single-image super-resolution. In the single image case, we know exactly where eve...
1
0
249
2018-02-03T21:15:49.533
data_quality
datascience.stackexchange.com
328,050
Why is PostgreSQL data checksums not enabled by default?
According to user comments PostgreSQL data checksums have very minimal runtime overhead (both CPU and storage) but would allow (among other things) using [CODE] for point in time recovery (PITR). However, data checksums are not enabled by default and enabling it on already existing HA cluster is not possible without pr...
Enabling data checksums is not for free: you have to calculate the checksums frequently, which costs CPU data checksums require that hint bits are WAL logged, which increases the amount of WAL that needs to be written Also, data checksums don't offer any benefit unless you are using shoddy storage, where data could cha...
2
1
430
2023-06-08T13:20:53.413
database_errors
dba.stackexchange.com
674,106
drop ip blacklist with firewalld centos 7
Question 1 I have I very long list 1500+ ips in a file lets say /etc/blocklist.ips each ip in a line of the file. How can I DROP for every ip in the file with firewalld from centos 7 ? also I been looking there are .xml files in /firewald folder so this mean that I should create my blocklist in a .xml file? Question 2 ...
The best way to manage firewall rules with large numbers of IP-addresses remains with [CODE] . Then create a set of ip-addresses: [CODE] and add each of the ip-addresses you need to block: [CODE] AFAIK firewalld does not yet have a API method for adding the required iptables rule that works on the match module so you'r...
0
3
6,798
2015-03-09T18:03:42.963
api_errors
serverfault.com
107,227
SSAS ErrorCode="3239575554" Either the user does not have permissions to alter the 'SERVER' object
I have just installed SSAS on a server called SASBIO1, but when I try to run the script below, in order to grant Administrator rights to a specific AD group I get the error message: [CODE] This script grants Admin to BIUsersLIVE: [CODE] The same error happens when I try to do it from SSMS, as you can see on the picture...
this was really nonsense. I right click on ssms and run as administrator, and added the permission there without a problem.
1
2
1,055
2015-07-16T17:18:23.267
warehouse_errors
dba.stackexchange.com
762,184
Do any OpenSSH 6.7 `preauth` error log entries warrant specific human attention?
A Linux (specifically Debian Jessie) server that needs to be exposed to the Internet is spitting out various OpenSSH 6.7 [CODE] errors in the logs. For example, I'm getting (timestamps elided for clarity): error: Received disconnect from A.B.C.D: 3: com.jcraft.jsch.JSchException: Auth fail [preauth] fatal: Unable to ne...
It looks like you've taken some specific steps to harden OpenSSH . As a side effect of these changes, combined with running a relatively recent OpenSSH version, you will receive many more detailed log entries about connection failures. All of the preauth messages you are seeing fall into this category, and represent a ...
2
2
1,125
2016-03-07T21:07:52.607
infrastructure
serverfault.com
450,325
Methods to increase the amount of data sent in a packet
I have been working on launching high-altitude balloons (HABs, or weather balloons) and I have been using LoRa to enable long-range communication with my balloons. It's been great and pretty reliable, but in the best case, I get about 50 kbps and usually a bit less or a lot less when we start getting to really far hori...
The main method to reduce your packet size is to use a binary encoding of your data. If your sensors produce the data in a binary format, note the specifications of the format, such as the number of bits before and after the binary point. Then put the binary data as-is in the packet. If your sensors only provide text o...
5
33
2,976
2023-12-29T16:30:51.857
airflow_errors
softwareengineering.stackexchange.com
985,246
Nagios add "Contact group" name in the email alerts
I've been managing a nagios server which was setup by someone else. I found that there's a lot of contact groups configs and contacts_name. I'm trying to disable some of them since some alerts are duplicate. In order to figure out which groups the email is coming from I'd like to add contactgroup_name in the email aler...
Found some nagios macros in below url. I used $CONTACTGROUPALIAS$ and $CONTACTGROUPMEMBERS$ it worked. https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/macrolist.html
0
0
150
2019-09-23T07:12:37.237
data_quality
serverfault.com
254,087
How can I design a relational database with words that are all related to each other
I'm developing a simple language game about antonyms, synonyms and 'similar speaking' words. If you play in the 'Synonyms screen', the game will show you two synonyms and two unrelated words and you have to guess wich are the synonyms. If you play in the 'Antonyms screen', the game will show you two antonyms and two un...
The associative entity idea is a good way to handle this, but it has a drawback that you might want to consider. Something that hasn't been addressed in some other answers is how you're going to maintain all of this data. It's going to be a lot of work, particularly if you want to be able to get from one word to any of...
2
5
186
2019-11-25T16:06:16.390
warehouse_errors
dba.stackexchange.com
312,112
Systemrescueconsole after install xenserver tools | How to use the Recovery Cosnole
I have trouble with Windows Server 2008 R2, after updating XenServer tools the server starts in Recovery Console from Drive X, on Drive C is a system reserved partition and on Drive d there is the right Start Volume. But i don't know why the recovery console starts from drive x, can i start the System from drive d manu...
It sounds like your problem might be similar to this thread on the Citrix XenServer forums ( http://forums.citrix.com/message.jspa?messageID=1460723 ) Is it Windows 2008 SBS? There is a hotfix from Microsoft (if this is your issue): http://support.microsoft.com/kb/2004121 If that is not your issue, you may have some lu...
0
1
2,422
2011-09-16T08:47:02.153
infrastructure
serverfault.com
414,007
Postgresql on Windows : postmaster.pid remains and prevents restart if the service has crashed
I have experienced an annoying problem with Postgresql 9.1.1 x64 running as a Windows service on Windows 2008 R2. The Postgres service crashed for an unknown reason and it left a [CODE] file on disk which prevents the service from restarting. Is there a way to configure the creation of this file?
This is a safety feature - on Windows the Postgres server uses its PID file as a lock to prevent you from starting more than one postmaster pointing at the same data directory (a quick and easy way to destroy your database). You should not be looking for ways to bypass this functionality. If Postgres has actually exite...
4
5
6,713
2012-08-03T14:04:29.300
database_errors
serverfault.com
220,512
How many bugs to expect
At a previous job (circa 2010), my manager mentioned that he's doing some research into quality metrics. The bottom line is to answer the question how many bugs should I expect? The goal is to try and predict how many bugs are incoming, and more importantly, how many bugs we probably haven't yet found . There are some ...
Yes: http://www.net-security.org/secworld.php?id=14871 "Over the past seven years, the Coverity Scan service has analyzed nearly 850 million lines of code from more than 300 open source projects including Linux, PHP and Apache. ... The analysis found an average defect density of .69" And that's just bugs findable by Co...
6
3
2,786
2013-12-06T16:48:40.287
api_errors
softwareengineering.stackexchange.com
139,290
Kill Leaking Connections on SQL Server 2005
We have a legacy ASP application that somewhere leaks SQL Connections. In Activity Monitor, I can see a bunch of idle processes with Last Batch times over an hour old. When I look at the T-SQL command batch, these are always FETCH API_CURSOR[XXX] ([XXX] is a randomly seeming hex number, ex. FETCH API_CURSOR0000000002CE...
Not an original script but tweaked that might get where you need to be or at least a start: [CODE] ****Again, not original so credit must given to that now-unknown script writer **** I use a version of this to kill SQL 2005 spids that connect to a log-shipped stand-by database using Mgt Studion
1
1
3,314
2010-05-06T17:05:35.453
pipeline_ops
serverfault.com
969,835
mysql will slow after a couple of hours and need restarted to work
i have a windows 7 server just have mysql installed. i will connect to it on a local network after a while of working server response slowly and cant answer requests correctly.. my clients have up to 3k-4k request per seconds the server have two xeon cpu with 64 gig ram and some 10 k sas hard disk but cpu usage is lowe...
What Engine are you using for your tables? It should be InnoDB. In this case, you should configure [CODE] (Or perhaps more; how much data do you have?) Use the slowlog to find the slow queries, then let's see [CODE] and [CODE] .
0
0
180
2019-06-02T11:27:01.613
database_errors
serverfault.com
63,902
Need to determine how php files are being rendered in a LAMP configuration (CGI, FastCGI, or mod-php)
How do I determine how our php files are being rendered in a simple LAMP configuration? phpinfo shows: [CODE]
The phpinfo should really give you all the infomration you require regarding your current PHP implementation. It provides you with the PHP interpreter running, it's configuration directives, as well as letting you know whether you're running in mod_php or a cgi based ( in your case cgi based via CGI/FastCGI ). What sor...
1
1
324
2009-09-09T20:38:43.757
infrastructure
serverfault.com
1,132,454
Terraform init error: Failed to download module (local changes would be overwritten)
I have a brand-new local Terraform project that I have just cloned from gitlab. I have not made any changes to the code, but when I run [CODE] I get the following error, repeated for every module in the project: [CODE] Every module download fails on the same file: [CODE] . Again, I have made no changes to any files in ...
It seems like you are having the same issue mentioned here , which is more of a Git behaviour then Terraform. Try adding the short-term workaround mentioned in this Github issue (by adding [CODE] in your module [CODE] . However, if it's running multiple git commands in series that exacerbates this problem then a short-...
0
1
1,591
2023-06-02T00:46:36.257
pipeline_ops
serverfault.com
431,319
Behavior Driven Development - How to test "notification" step
I'm implementing the steps of a feature with Specflow and I have a problem with one of the steps. Here is the Scenario : [CODE] I already have implemented all the steps except the last one because I don't know what to put in it... The notification can be from multiple forms (Email, SMS, Notification...) and for exemple...
If the user of your system can choose what mechanism gets used for sending notifications to them, then I would add an additional notification mechanism "Inform test runner" that is set as the chosen notification mechanism for 'patrickTho'. That notification mechanism can then use whatever means to inform the test runne...
1
3
103
2021-08-24T12:11:11.307
api_errors
softwareengineering.stackexchange.com
174,098
AWS RDS Showing CPU spikes on a MySQL system every 5 minutes -- how can I track the cause?
I'm seeing a CPU spike every 5 minutes (though it's not FIXED on the 5 minutes, every so often it's 6 minutes between a spike, then 5, 5, 5 again). None of my code runs on a 5 minute interval (it either runs statements EVERY minute, or every few HOURS). This is what the graph looks like: Is there any way I can analyze ...
See the slow query list in mysql. Using that you could track which one is the culprit and taking more time to respond.
3
0
1,182
2017-05-20T03:30:35.573
database_errors
dba.stackexchange.com
894,643
Why doesn't my conditional forwarder work?
So, I have two AWS-based environments that are largely separated, but are connected via an intermediary VPC that hosts a VPN server, and has routing into each of the individual environments. Let's call these "A", "B" and "Management" VPCs. "A" and "B" each have an Active Directory (a Microsoft Directory in AWS Director...
I managed to get this to work, though it was a real trial. First and foremost, it's important to remember that AWS Directory Services controllers are in a separate security group that, by default, restricts all outbound access except to other domain controllers. In order for my situation to work, I needed to explicitly...
3
1
3,048
2018-01-29T16:47:01.780
infrastructure
serverfault.com
20,823
What is connection time?
We are currently trialling ManageEngine SQLDBManager Plus . On the dashboard for a server it shows connection time in milliseconds (currently 15ms). Can anyone tell me what Connection Time represents and/or what I could use this metric for? We are monitoring a MS SQL Server 2005 database if that makes any difference.
As per the help section on their website , they describe Connection Time as the following: Connection Time : Displays the time taken to get connected to the SQL database server. From that brief description, I'd be willing to say that it is the time duration between initiating the connection to the SQL Server instance. ...
1
3
2,381
2012-07-13T01:17:57.430
bi_errors
dba.stackexchange.com
765,531
Server reached pm.max_children setting
I am running a WordPress website under Nginx and FPM. In case of traffic it kills the php process and website stop working for all the user. Here is what i found from the log. Is there any way that website do not stop working, but if there is more request than what we have configured will get busy single or in other wa...
Depending on the amount of RAM you could use a lot more PHP children on your server. If you are not sure where is the config file for FPM in you're distro you could run the following command: [CODE] This article explains pretty straightforward what you should do. http://myshell.co.uk/blog/2012/07/adjusting-child-proces...
1
2
3,884
2016-03-23T08:26:25.063
infrastructure
serverfault.com
449,391
How do you http-auth all sites on a server?
I'm setting up a development server and need to apply these basic rules to all virtual hosts on the server in the [CODE] directory. [CODE] I simply tried to put it in my [CODE] , However apache throws an error when checking the syntax: [CODE]
Authentication always applies to a context ; this may be a VirtualHost, a Directory, or a Location. [CODE]
3
4
258
2012-11-16T12:15:17.200
infrastructure
serverfault.com
442,293
How to increase Varnish throughput?
Sometimes on a busy Pressflow site I notice a timeout for unauthenticated users while the server's port is far from being saturated, there is plenty of unused memory and the server load is very low. In addition to that, the bandwidth usage of the site has dropped by about %30 since I moved to the new Varnish-powered se...
I mostly recommand tuning thread_pool_min and thread_pool_max, the other values do not help too much. -p thread_pools=2 \ -p thread_pool_min=500 \ -p thread_pool_max=5000 \ Specifically setting thread_pools to the numbers of CPUs does not help at all and might slow down your machine. It's just a guess, but maybe that a...
5
5
12,855
2012-10-25T14:16:43.560
infrastructure
serverfault.com
401,071
In Stud, which Private RSA Key should be concatenated in the x509 SSL certificate pem file to avoid "self-signed" browser warning?
I'm trying to implement Stud as an SSL termination point before HAProxy as a proof of concept for WebSockets routing. My domain registrar Gandi.net offers free 1-year SSL certs. Through OpenSSL, I generated a CSR which gave me two files: domain.key domain.csr I gave domain.csr to my trusted authority and they gave me t...
SSL X509 certificate file is a file containing a certificate in the format specified by the ITU in their X series of specifications - specifically x.509. There is no private-key information there as it is a certificate format so things like names, public keys, signatures, validity dates and other goodies go in there - ...
1
1
1,251
2012-06-21T19:51:18.977
api_errors
serverfault.com
87,049
postgresql: accept subdomain wildcards?
I want to accept all db connections from servers with domain mydomain.com so that all subdomains like tiger.mydomain.com, venus.mydomain.com will have access to the postgresql server. I've read that you have to create a reverse dns server so that it can lookup the domain and get the appropriate ip address. but it is no...
From the manual : address Specifies the client machine addresses that this record matches. This field can contain either a host name, an IP address range, or one of the special key words mentioned below. ... If a host name is specified (anything that is not an IP address or a special key word is processed as a potentia...
1
1
709
2014-12-26T20:58:27.523
database_errors
dba.stackexchange.com
257,863
Why mysql throws "invalid default value for field" only when two or more timestamp fields exist in the create statement?
In mysql 5.7.28 I create a table like this: [CODE] which works fine and creates [CODE] as [CODE] with [CODE] , [CODE] . But when I try to create the same table with a two timestamp fields as below: [CODE] I get an error: SQL error (1067): invalid default value for 'd2' Why I get an error only when I add a second timest...
This behaviour is described in explicit_defaults_for_timestamp system variable which is by default disabled for [CODE] , [CODE] (and effectively disabled on [CODE] ) and it is enabled in [CODE] . Quoting from above link: (5.7) If explicit_defaults_for_timestamp is disabled , the server enables the nonstandard behaviors...
6
5
4,176
2020-01-21T12:53:39.827
database_errors
dba.stackexchange.com
814,158
Nginx deny all for location block not working as expected
I have a wordpress blog setup with nginx. I keep seeing this [CODE] It's one request per second. So I tried denying access to the xmlrpc.php through nginx conf file. [CODE] I tail the access file and can see it's still being accessed. No idea why. I try a curl from my dev machine with random params and I get an xml fil...
The location block does not work because it does not process the [CODE] request. See this document for details. Use the [CODE] modifier or the [CODE] construct to raise the precedence of the location block (see this document for details): [CODE]
2
3
7,401
2016-11-10T08:39:22.743
infrastructure
serverfault.com
893,776
ansible uri replace + sign with space in body or jenkins api replace it, who has issue?
I am using jenkins api to create credential by ansible. [CODE] This create credential in jenkins, but when I check the private key in jenkins, it replace [CODE] with [CODE] (space)
The Jenkins API accepts normal URL encoded form data, but usually with only one field, named [CODE] . The Ansible uri module does not URL encode the [CODE] when sending normal URL encoded form data. You need to do this yourself.
0
3
1,105
2018-01-23T23:22:57.430
pipeline_ops
serverfault.com
34,720
Why driver.get() method is not recognized?
I have setup selenium in Intellij Idea. But when tried to create a simple instance it doesn't recognize "get" method. This is what I have done up to now. [CODE] How can I fix this? I have added jar files. I'm using java webdriver I have added jars inside the zip of selenium downloaded file I did imports as they were su...
I found the answer for the problem. All I had to do is include the code inside a main method as follows. [CODE]
1
2
9,517
2018-07-12T06:01:06.037
data_quality
sqa.stackexchange.com
648,089
replacing 3 drives out of 8 in a server
We have a Dell R510 server running SQL 2008 R2 with 8 x 300GB drives running Raid 5. We (just noticed) we had three bad drives with blinking lights so we powered down the server and replaced them with new ones. When the server came back up the lights were green (but not flashing). The server only shows XXXX GB of space...
Why would you ask the internet about this? There's so much WTF here, that I don't understand where to start!! This question shows a fundamental lack of understanding of hardware, RAID arrays, storage, monitoring, and general IT best-practices. I read this question and can't help but think: Who is actually responsible f...
-7
17
268
2014-11-30T17:49:23.577
database_errors
serverfault.com
342,089
Best way to design flows based on operations
This is the problem: I am designing a framework that is basically getting chemical compounds, perform operation with them (or among them) and return results. At the moment I have a class that holds all the operations(like mix, centrifugate, separate, heat up and so on). I create a sequence basically by hand, including ...
JSON (as well as XML) are formats made for transferring information in machine readable form. They can be managed by humans, of course, but for many use cases there are more ergonomic ways to accomplish what you are after. The modern buzzword for this is Domain Specific Language , which means you might invent your own ...
3
5
131
2017-02-12T03:30:29.320
api_errors
softwareengineering.stackexchange.com
606,456
Sending mail from sub-domain on different server from domain getting flagged as spam
Our client owns a server with a domain: website.com We have a server that our client points videos.website.com to. Emails sent from videos.website.com are getting flagged as spam because website.com doesn't have something saying that videos.website.com on a seperate server is allowed to send mail on behalf of website.c...
Chances are this is going to take a several DNS changes, what you want to use is a convention called Sender Policy Framework (SPF). This allows your site to tell other mail servers that your configuration is what you are expecting. SPF could have it's own books written about it, but I've had good luck using online wiza...
2
5
1,473
2014-06-19T14:01:59.473
infrastructure
serverfault.com
593,263
iptables nat does not exist
Today my iptables nat on the host system stopped working and I have no clue what happend! (That's very bad, I know) All commands are executed as root user. If I run [CODE] I get the following error message: [CODE] There are no further updates available. I also restarted the server with several older kernels, but I alwa...
Due to the update of vzctl from 4.6 to 4.7 they changed the setting of nf_conntrack to be disabled by default. ( https://openvz.org/Download/vzctl/4.7/changes ) Corresponding commit message: ... Disable conntrack for VE0 by default IP conntrack functionality has some negative impact on venet performance (uo to about 10...
14
10
51,331
2014-05-05T21:15:21.900
infrastructure
serverfault.com
967,129
spaces in nagios argument ruining command - check_NRPE
I have a Nagios NRPE command failing to accept an argument that includes a white space. I'll include a list of everything I've tried at the very end. Here's examples of how my setup is: In the commands.cfg file: [CODE] In the nsclient.ini file: [CODE] Here's the command running from windows.cfg: [CODE] This command wor...
Put quotes around $ARG2$ in your [CODE] command definition (and get rid of the unneeded $ARG3$) You might also need to put additional quotes around your ARG, escaped so the first shell doesn't eat them.
0
1
1,283
2019-05-14T01:50:11.940
infrastructure
serverfault.com
130,305
Is it a good idea to measure the performance of a method by using unit test timeout?
In a project where there are non-functional requirements which specify the maximum execution time for a specific action, QA must check the performance of this action on a dedicated machine using precise hardware under precise load, both hardware and load being specified in the requirements. On the other hand, some erro...
We are using this approach as well, i.e. we have tests that measure runtime under some defined load scenario on a given machine. It may be important to point out, that we do not include these in the normal unit tests. Unit tests are basically executed by each developer on a developer machine before commiting the change...
14
3
4,825
2012-01-16T00:56:04.580
api_errors
softwareengineering.stackexchange.com
670,358
How do I make an front-end HTTP proxy to perform app maintenance without downtime?
We have a web application in Java (although the language is not really relevant for this question), and it is frontend by Apache via a simple proxy. Is there a way to queue all the HTTP requests from the clients (so that their HTTP connection is maintained and not dropped) while we shutdown the Java Application Server ...
How about the following kind of principle? Say it's mod_proxy, ensure ProxyTimeout and the ProxyPass connectiontimeout= (and probably retry=) is at least the maintenance time or the API client idle timeout. Then, before the maintenance, firewall all new connections on the backend, eg [CODE] . After the maintenance, rem...
1
1
259
2015-02-21T10:17:28.717
pipeline_ops
serverfault.com
1,041,044
Codeignitor - under login / session load MySQL CPU spike and Fatal MySQL Deadlock
Originally posted on stackoverflow , and was recommended serverfault may be better place. I have a site using: AWS RDS (MySQL Aurora) - single t3.medium instance 4 x EC2s on a Load Balancer (fixed instances not elastic) CodeIgnitor 3 codebase (3.1.11) (I have just upgraded from 3.1.7 upon recommendation as there were s...
You need some kind of index on [CODE] . If [CODE] is unique, it should probably be the [CODE] .
1
2
733
2020-11-03T00:24:02.990
api_errors
serverfault.com
178,180
Strategy for avoiding duplicate object ids for data shared across devices using iCloud
I have a data intensive iOS app that is not using CoreData nor does it support iCloud synching (yet). All of my objects are created with unique keys. I use a simple [CODE] initialized with the current time. Then as I need a new key I increment the value by 1. This has all worked well for a few years with the app runnin...
As Lars Viklund points out in his comment, you might look into UUIDs -- they're 128-bit numbers used for unique IDs and have good stats for uniqueness. If you can't find a function to generate one (though I'm sure Apple has one), Version 4 is pretty easy to implement.
2
3
1,350
2012-12-03T19:39:58.863
data_quality
softwareengineering.stackexchange.com
177,223
Is the output of Eclipse's incremental java compiler used in production? Or is it simply to support Eclipse's features?
I'm new to Java and Eclipse. One of my most recent discoveries was how Eclipse comes shipped with its own java compiler (ejc) for doing incremental builds. Eclipse seems to by default output incrementally built class files to the projRoot/bin folder. I've noticed too that many projects come with ant files to build the ...
It would be normal to have a separate build process (e.g. with something like Maven ) that does not use the Eclipse compiler which is responsible for producing the final deployable artifacts. For example, in all of my Eclipse Java projects I use: The built-in Eclipse compiler for quick testing (JUnit), debugging and lo...
6
5
1,361
2012-11-26T17:37:28.590
dbt_errors
softwareengineering.stackexchange.com
194,613
Spliting name with delimiter
Hi can you help me to split the name into [CODE] , [CODE] , [CODE] using a pl/sql procedure. This my procedure: [CODE] Here is what it should do. Input: [CODE] The output is: [CODE] I got output for above test cases. Suppose my input is: [CODE] Then my output should be: [CODE] How could I make it work?
One of the problems with the regexp_substr() calls in your procedure is: sometimes, they return incorrect values - which will be assigned to the 3 variables (a,b,c). Suppose that there always are 3 "tokens" (first/middle/last name), delimited by '/'. Each token can either be a "name" or null. Let's generate some test d...
1
0
74
2018-01-04T12:59:57.317
warehouse_errors
dba.stackexchange.com
862,368
Connection refused HTTP (port 80)
So I'm very much a novice when it comes to Apache and Ubuntu, but I know the basics (file moving, copying, editing, etc). I was trying to remedy a problem with PHP's permissions, so I set [CODE] and [CODE] permissions to 777 using [CODE] . Then, I modified both [CODE] files, in [CODE] and [CODE] , to customize the temp...
It is unusual for system to spontaneously start mounting root partition as read-only. The UUID error suggests something wrong with [CODE] file and hard drive detection. First attempt to remount the root partition [CODE] with explicitly setting the partition name. Use the command [CODE] to show which partition is mounte...
2
0
2,469
2017-07-16T03:44:53.840
api_errors
serverfault.com
215,579
What happens if the database node's network fails just after commit and before responding to the client
I know the transaction will be rolled back if connection breaks before commiting. But what if the commit operation reached the sql server and before it could respond to the client, the network breaks? The transaction is committed on the sql server, how can the client then know if the transaction was committed or not?
The transaction is committed on the sql server, how can the client then know if the transaction was committed or not? It can't. The application gets a network error because the connection has dropped. From that, it has no way of knowing whether the requested operation was successful. It might be possible for the applic...
2
1
927
2018-08-22T11:13:11.733
database_errors
dba.stackexchange.com
327,355
Web client in vSphere hypervisor (free ESXi) 5.0.0 missing
Just installed the hypervisor and it is up and running fine (in Test mode). Using the corresponding version of vSphere Client works fine too. Now sites like this show a Web Client that I just cannot see. When I visit https://my-esxi5/ , the vSphere Welcome Screen does not show the Web Client link at the right side. Als...
No, it is not. Link to the feature faq.
1
3
3,003
2011-11-03T11:17:21.057
infrastructure
serverfault.com
241,082
(macOS/Docker) "Cannot bulk load. The file path does not exist or you don't have file access rights."
I am running SQL Server from a Docker container on macOS. All queries except for the loading of the csv file is getting executed. The column names etc are correct. Any ideas? error: Cannot bulk load. The file "/Users/me/snp500-company-by-sector.csv" does not exist or you don't have file access rights. [CODE]
For anyone else who is new to running SQL Server in a macOS Docker container, you first need to find out your Docker container ID. The commands will be like this: List Docker info: [CODE] Copy from the macOS directory to the Docker container directory: [CODE] https://docs.docker.com/docker-for-mac/
1
4
2,641
2019-06-21T02:30:57.630
pipeline_ops
dba.stackexchange.com
367,791
Suse 11 : Java remote debug can't connect properly
I know this is bit of a Java question, but I feel its more of a network issue. I have a Suse 11 server that I'd put a simple java program on, I start it up with debug options. Just like I do on any other XP/Win7/Ubuntu machine. With this Suse11 on VM hardware, I can't get the socket to connect. Some times is does conne...
By default Sles Linux does not expose a port outside the box. So by setting the debug port in WS to 7777 via the webpage(IBM/console) only exposes the port internally to the box. To expose it you need to enter “0.0.0.0:7777”, but the web page does not allow this as a value. So to change it by hand go to this file on th...
0
1
1,298
2012-03-08T21:29:16.013
infrastructure
serverfault.com
37,294
Logging: Why and What?
I've never written programs which make significant use of logging. The most I've done is to capture stack traces when exceptions happen. I was wondering, how much do other people log? Does it depend what kind of application you are writing? Do you find the logs actually helpful?
For the work I have done largely embedded applications, logging in an invaluable tool. At a minimum errors need to be logged with enough information to point to the line of code. Next, would be major function points across the application. Things such as the admin accessed the machine. We use a system that allows us to...
44
25
28,667
2011-01-16T21:43:58.113
api_errors
softwareengineering.stackexchange.com
951,923
Windows 2008R2 RDP only works for Standard User but not for an Admin User
I have an issue which I cannot figure out. We have a Windows server 2008 set up. The user is setup to allow remote desktop and is a part of the Remote Desktop Users. When user is also part of the Administrator group and NLA is enabled then user cannot connect. I can only get user to connect one of the 2 ways: Either ha...
This is caused by a known issue in the January 2019 cumulative update : Local users who are part of the local “Administrators“ group may not be able to remotely access shares on Windows Server 2008 R2 and Windows 7 machines after installing the January 8th, 2019 security updates. This does not affect domain accounts in...
2
1
391
2019-02-01T16:55:09.057
api_errors
serverfault.com
137,537
SQL Server Index recomended but already there (DMVs)
I am using the DMV views to get a list of index recommendations and then I am reviewing each of them to make sure they make sense and don't overlap etc. Some examples are [CODE] and Table X already has the [CODE] . So far this is for non clustered indexes and the indexes have been defragmented. SQL Server 2008 R2, data...
SQL Server 2008 and 2008 R2 have known issues in the index-recommendation code that were fixed in SQL Server 2012. Having said that, index recommendations should always be looked at carefully to see if there is (1) an existing index that might be slightly modified to handle it's current load along with the new load, an...
2
1
57
2016-05-04T16:17:23.317
database_errors
dba.stackexchange.com
198,337
ERROR [XulParser] handler not found: W?NDOW
PDI(spoon.bat) crashes on startup. Here's /logs/spoon.log: [CODE] How can I resolve this?
I've resolved the issue configuring the spoon.bat by adding: [CODE] inline before [CODE] to have: [CODE] Based on the issue here .
-1
0
501
2018-02-20T07:07:38.010
warehouse_errors
dba.stackexchange.com
48,846
Clustering for variables with large amount of categories
I have a dataset which, has variables with a lot of categories (some more than 1000). Since, large amount of categories effect the accuracy of the model. I saw some literature stating that if you do not have domain knowledge to group categories that have less than 5% of representation in the dataset. My idea is that wo...
Assuming that you have done the EDA well, you can try the categorical_encoder categorization if you haven't tried it yet.We cannot use the famous one hot encoder algo here,that's for sure. It will create as many number of columns as there were before. Which would be unnecessary. You may try the backward difference enco...
-2
0
212
2019-04-08T04:03:25.043
data_quality
datascience.stackexchange.com
648,915
Why is my Free/Busy Schedule only publishing 2 months of info when I have it configured for 6?
I'm using Exchange 2003 SP2 (I know, I need to upgrade this, but there are bureaucratic issues that need to be worked out first) and am having difficulties with the Free/Busy Schedule. For some reason, it's defaulted to publishing only 2 months of Free/Busy info for users, even though my GPO has it set for 6 months, an...
Check that registry key on your Exchange Server: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Excdo\Parameters Name: FBPublishMonth Value type: DWORD Value data: The period, in months, for which you want to publish Free/Busy information There is a know error for that, check KB917687. You configure the published Free/Busy info...
0
0
158
2014-12-03T16:50:33.213
database_errors
serverfault.com
137,442
how do I change regexp_substr(to_char(bar), '^.*?$', 1, 1, 'm') to only read 132 characters each time
how do I change the query below so it only reads and displays 132 characters each line [CODE] Thanks
This should work: [CODE] What it does is: line: truncate ( [CODE] ) the first full line to the first 132 characters (which does nothing for lines shorter than 132) rest: grab the rest of the CLOB of either the first full line, or whatever comes after 132 characters, whichever starts first ( [CODE] ) Response to the seq...
1
1
130
2016-05-04T01:45:35.197
warehouse_errors
dba.stackexchange.com
844,888
tls error : tls handshake failed
I am using openvpn linux server and windows xp as client. Firewall is disabled in both the client and server. I don't understand why I am getting as "TLS error: TLS handshake failed". I am using UDP port 1194 in both the server and client.TLS initial packet is sent from the server but the client could not respond to it...
There is already a very similar question on serverfault: Fix 'TLS Error: TLS handshake failed' on OpenVPN client If this question does not fit your needs, could you please give us some more information about your system, your configuration and a more detailed error message from the servers and clients logs? If the serv...
1
1
7,815
2017-04-17T12:42:25.173
api_errors
serverfault.com
996,958
nginx gzip compression results in larger file sizes
I'm trying to enable compression for a SPA application that is 99% JS and CSS. Here is the nginx config that I'm using: (I have commented out some settings while testing, but even if enabled do not improve the situation.) [CODE] The resulting file sizes have increased by a tiny bit. Here is what the browser says: I can...
It was the antivirus. ESET was doing stuff. Opened a VM and from there everything was OK.
0
0
851
2019-12-28T15:37:11.910
infrastructure
serverfault.com
1,058,649
Simulate network reset or failure in Windows
I have to check if my server application can recover from transient network failures. The application listens on some ports and is a client to backend services. I would like to run some command or script that would drop and restore all connections. Is there some tool included in Windows that would allow that? For insta...
You could accomplish in multiple ways. Netsh Command - Dropping the Interface Use the "netsh interface show interface" command to get the name of the interface you wish to control. Run the command below replacing Interface Name from the output of the first command. This will disable the interface. netsh interface set i...
0
1
785
2021-03-29T02:30:12.143
database_errors
serverfault.com
463,095
Server failed, can I retrieve my database from the my hard disk?
I have an old server running Windows Server 2003 R2. Windows got corrupted due to an improper shutdown. I attempted to repair the Windows installation, but it made things worse (it gets to the desktop, but there is no start menu and most of the start menu items are missing). I cannot run any programs and Windows claims...
I would try to copy the database file(s) off that hard drive onto another computer running MS SQL 2008 and see if the file is accessible. It sounds like some Windows files are corrupted but that doesn't mean your database file is. This information might be helpful: https://stackoverflow.com/questions/6584938/move-sql-s...
0
1
8,050
2013-01-04T18:30:14.527
database_errors
serverfault.com
216,097
Optimal file system type and mount options for an rsnapshot dedicated drive
We have an external USB 2 drive that we are using as a backup drive for our configuration. We use rsnapshot for the backups. It uses a few standard commands for managing snapshots: [CODE] : deletes expired snapshots [CODE] : moves older snapshots down a slot [CODE] : duplicates last snapshot to new slot [CODE] : synchr...
ext4 is fine. The "sync,dirsync" options make data and metadata updates synchronous, which is a major negative effect on performance on most workloads. Removing these options will very likely increase performance, but you have to remember to unmount the device before yanking the cable, otherwise you might lose data (pr...
3
5
2,861
2010-12-25T19:54:57.607
data_quality
serverfault.com
267,240
btrfs: can i create a btrfs file system with data as jbod and metadata mirrored
I am trying to build a server that will be my NAS/Media server as well a the XBMC front end. I am planning on using Ubuntu with btrfs for the NAS part of it. The current setup consists of 1TB hdd for the OS etc and two 2TB hdd's for data. I plan to have the 2TB hdd's used as JBOD btrfs system in which i can add hdd's a...
It would seem that your question is best answered here: https://serverfault.com/a/438181/89037 Basically, yes, the "single" data profile allows disks of different sizes and combines them in JBOD fashion. Don't change the metadata, leave as RAID1.
1
3
8,312
2011-05-07T06:56:03.800
infrastructure
serverfault.com
161,739
w3wp.exe at 60% after 5 minutes right after App_Pool recycle
I have IIS running on Windows 2003 I have process w3wp.exe running at 50-80% CPU. After running iisapp.vbs i found out that process is connected to AppPoolX where single web application named X running. I did recycle this AppPool and the process remained for some time until i did end process tree via Windows Task Manag...
This is not the issue with server. It seems to be issue with coding of the site. You need to contact the developer to look for the loophole in the coding, which is causing to spike the CPU load.
2
1
390
2010-07-19T10:17:13.607
infrastructure
serverfault.com
491,663
remove a mongodb replica set when into a sharding cluster
I have this configuration: [CODE] Actually mongo09-03 it seems to be duplicated: [CODE] And please consider replica set RS67 is also part of a sharding cluster. May I remove a mongodb replica set when it is into a sharding cluster ? And if yes, how? Can I use rs.remove(hostname) ?
It isn't an easy run one command type thing. See the following on the doc site http://docs.mongodb.org/manual/tutorial/remove-shards-from-cluster/ To remove a replicaset member [CODE]
0
1
2,054
2013-03-27T01:17:06.313
database_errors
serverfault.com
336,187
Restoring incremental backup of Postgres
I have restored basic backup successfully of Postgres. However, after that I have tried to restore incremental backup of Postgres(it was a couple of write to test table), and it had a couple of WAL files and some WAL files with .backup at the end. I have tried to put them into my pg_wal archive directory, that I'm usin...
What you describe is not an incremental backup; what you are trying to do is called "point in time recovery", which you initiate by placing a [CODE] in the Postgres data directory and restarting the server. There are more details to how that works, which you can find in the docs . Until the incremental backup/restore f...
0
1
25
2024-02-23T16:44:25.853
database_errors
dba.stackexchange.com
729,195
Port forwarding https request to other server.
I've been asked to fix a issue but I did not configure this server so I could not figure out what's happening here.. [CODE] When connecting to https://www.mywebsite.com/index.html it connects to WEB server 20.20.20.20 and I see the request in the logs. But when I try http://mywebsite.com:5487/index.html it never loads ...
You have to tell Apache to listen on the port 5487 with the command : [CODE] and in your virtual host to set all directives you have to set [CODE]
0
0
96
2015-10-15T14:22:06.403
infrastructure
serverfault.com
178,236
Reinstall postfix on ubuntu with installer
I recently installed postfix but I did something wrong. And so I removed it with [CODE] and removed the [CODE] folder. But now I want to install it again but I don't get the installer prompts where I can choose Internet Site and other options. How can I solve this?
That's because there are still some files in place and dpkg considers the package to be configured. There are two possible routes you can take to solve this: Now that the package is installed, purge it. Run [CODE] , then re-install and the config dialog should come up. Run [CODE]
18
29
39,123
2010-09-05T11:07:31.587
infrastructure
serverfault.com
948,745
Change Of External Static IP – Two Servers Connected
I’ve recently come to manage the IT at a small organisation and am in the process of figuring out their setup (they previously outsourced IT work). They have a main server (running Windows Server 2008 Standard) at one office and a second server (running the same Windows version) at second office in another geographical...
You're going to need access to both firewalls likely, in order to change the IP configuration, which will invariably change if you're moving to a different ISP, as each maintain their own netblocks of IPs, which they allocate to their customers either statically or dynamically. Presumably you have the former, but your ...
0
4
242
2019-01-09T10:48:03.480
infrastructure
serverfault.com
366,436
Webhost reboots VPS at random times, crashes MySQL table
For one reason or another at random times, my webhost reboots the sever that hosts my CentOS VPS, when this happens it often causes one of my MySQL tables to crash. The table handles the sites PHP sessions (a Joomla site powered by PHP). The site gets a fair amount of traffic so when the VPS is rebooted, the session ta...
You could switch to InnoDB tables on your database, or use a database system that supports full ACID-compliant transactions; PostgreSQL does that and can crash without clobbering your database (it just has to replay its journal before it finishes its startup process). MySQL's default tables are not crash-safe. I'm not ...
0
1
430
2012-03-05T12:59:22.340
database_errors
serverfault.com
225,789
MariaDB defragmenting with new option innodb-defragment=1
I try to defragment table using innodb-defragment=1 https://mariadb.com/kb/en/library/defragmenting-innodb-tablespaces/ But it was a bad experience : - locks on table - no a good defragmentation result (always data free on table) So I use percona-tools https://www.percona.com/doc/percona-toolkit/LATEST/pt-online-schema...
Myth-busters. Defragmentation is a concept that mostly does not apply to InnoDB. It is rarely worth the effort to use [CODE] or other techniques to defrag. There are several ways in which InnoDB fragments and/or has "free" space: The rows in a block not filling up the block. BTree blocks gravitate to 69% full. If you w...
0
3
2,305
2018-12-26T13:23:37.310
database_errors
dba.stackexchange.com
769,548
Is there a performance impact to using Round Robin DNS with many offline endpoints?
I'm currently running a MeteorJS application on Amazon. MeteorJS has a plugin that allows each server to act as a load balancer or a worker for said load balancers. I can spin up any number of workers with no problems as the workers check in with the load balancers and they are added to the pool. The issue I'm having i...
Ideally these records that point to offline servers would not be published Ideally this is the worst case because it means changing published DNS servers, which is only possible with a short expiration which is bad. The normal use case is to have a SMALL number of PROPER load balancers behind ONE or a small number of I...
0
1
216
2016-04-11T16:15:00.823
database_errors
serverfault.com
136,330
How do you prevent spam being sent by your users?
So, for the third time in about two weeks (maybe less), one of our customers has had their password compromised, and a spammer was sending mail with their username and password using our webmail. As a result, our outgoing mail server has been listed at Spamhaus, and a lot of our outgoing mail is being rejected. I can't...
Our anti-spam system has the option of scanning our outbound mail-stream for exactly this kind of problem. We have over 20,000 students, so using webmail to send spam from our system is a problem we absolutely had before we moved them all to WindowsLive@Edu. We had the same problem you did, our outbound mailers were ge...
2
4
2,187
2010-04-27T17:08:10.760
infrastructure
serverfault.com
769,787
Basic Auth in multiple directories on same virtualhost
Is it possible to nest basic auth? So that the parent folder and all subfolders can be accessed using one basic auth directive but subfolders have seperate auth VHost config: [CODE] The basic auth that is prompted for / is the same for all the sub folders and works correctly. (AuthMain) However if I browse to a specifi...
This was caused by a lack of quotes around the folders in Location. Adding double quotes around them resolved this for me.
0
0
1,815
2016-04-12T13:23:49.100
infrastructure
serverfault.com
156,221
Best way to avoid multiple joins
I have a view which determines the type of a transaction and whether it has been successful... [CODE] What is a good way to avoid having to look up the status without needing multiple left joins and a case statement? I cannot use an indexed view because of the left joins. The only alternative I can think of is storing ...
A better design would have a transactions table and a column indicating the type, instead of all these tables stacking up to store information that is slightly different but mostly the same. - user1186 It looks to me that status and type should be stored in the base table , not in derived tables. Status appears to me a...
0
0
1,321
2016-11-23T22:32:28.513
warehouse_errors
dba.stackexchange.com
326,021
Cassandra 3.0.9 service is active then exited
I am using Cassandra 3.0.9,service is active then exited, Can't remove package and install again because no repository on Cassandra is providing this version, can't go far tarball as it again leads to other issues systemd creation and others. Pls share complete steps to make it work 3.0.9 Cassandra which was installed ...
You will need to check the logs for clues on why the service isn't running. Without information on what problem you're facing, we are not able to provide anything meaningful. As a side note, you also didn't provide details of how you were checking for the existence of Cassandra 3.0.9 so I'm not sure we can help you the...
0
0
295
2023-04-14T12:50:17.800
database_errors
dba.stackexchange.com
179,132
DDD and Value Objects. Are mutable Value Objects a good candidate for Non Aggr. Root Entity?
Here is a little problem Have an entity, with a value object. Not a problem. I replace a value object for a new one, then nhibernate inserts the new value and orphan the old one, then deletes it. Ok, that's a problem. Insured is my entity in my domain. He has a collection of Addresses (value objects). One of the addres...
Everything that has an identity should be an Entity, and everything that does not have an identity is a simple value, hence a value object. To quote Martin Fowler (which in turn qoutes Eric Evans) Entity: Objects that have a distinct identity that runs through time and different representations. You also hear these cal...
9
8
4,288
2012-12-12T06:24:36.227
api_errors
softwareengineering.stackexchange.com
501,883
Linux machine does not answer an ARP request
We have this situation: A router, which is an Ubuntu VM, has multiple VLAN interfaces on the same physical NIC. Those VLAN interfaces are dynamically configured and torn down and attached to networks where machines can be added or removed by users. Sometimes we have a situation where, for example, on VLAN 1 the router ...
Having a single network node connect to two different networks that use the same IP addresses is not a supported configuration. Address conflicts is a well known shortcoming of using RFC 1918 addresses. This is the reason why RFC 4193 was introduced and specifies that 40 of the address bits must be randomly generated. ...
2
2
7,838
2013-04-23T13:16:39.543
infrastructure
serverfault.com
88,427
Cat5e cable: what are each color used for?
I have been curious on this for a while since there are some people who use a modified CAT5e cable with a switch to disconnect data sending without actually disconnecting the whole internet connection. For the above statement: I will explain further: they cut the green wire inside the CAT5e cable, attach a switch and f...
SEMI-DUPLEX: 1. TX+: Simplex (Transmit), positive 2. TX-: Simplex (Transmit), negative 3. RX+: Simplex (Receive), positive 6. RX-: Simplex (Receive), negative FULL DUPLEX: TX_D1+: Simplex (Transmit), positive TX_D1-: Simplex (Transmit), negative RX_D2+: Simplex (Receive), positive RX_D2-: Simplex (Receive), negative BI...
2
1
4,640
2009-11-26T03:09:11.420
infrastructure
serverfault.com