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
356,678
Need help trouble shooting Https webserver error - SSL Handshake failed
I followed this guide: http://hints.macworld.com/article.php?story=20041129143420344 Here is my virtual host definition [CODE] And when I try connecting to the sevre viov the web browser, I get this error: [CODE] how do I debug / fix this?
To add to vbartoni's answer, it seems that from Apache 2.4 and up, there are different defaults and a new directive. I am running Apache 2.4.6, and I had to add the following directives to get it working: [CODE]
11
13
37,092
2012-02-02T22:01:11.320
infrastructure
serverfault.com
257,239
Limiting user permissions to single folder while also being accessible by the apache user
I have a website running on Apache under Linux in the directory /var/www. This site has some files outside the web directory root in /var/www-store which are written to and read by the apache user www-data. I need another user to have read and write access to a subdirectory of this filestore /var/www-store/sync but for...
You could set group ownership on the directory and it's files you want to share with the user and not anywhere else on the filesystem? [CODE] That would recursively set group ownership on the directory. [CODE] would be the owner and your user would be a group owner so you would need to make sure the directory and file ...
1
1
335
2011-04-08T07:59:03.597
infrastructure
serverfault.com
97,541
Kill process with high CPU usage after X time?
Running Linux I have a few processes which tend to crash occasionally (game servers), which end up using 100% cpu. I'm looking for a program or script to check the cpu usage of a list of processes by name and if they are at 100% for more than X time, say 30 seconds, kill them. I tried ps-watcher but wasn't able to dete...
Try monit . You could use a configuration like this, to accomplish your task: [CODE] Details about this configuration can be found in monit's documentation .
23
22
30,693
2009-12-27T09:18:21.850
infrastructure
serverfault.com
290,518
MySQL queries still slow after deleting bunch of records
I need some help with resolving some mysql issues. My website had been running slow since last week and after contacting my host I found out that some queries were taking too long mainly because of table locks. I am a developer but no mysql/database expert. My host suggested that I either delete and/or change the two t...
Rather than change a pair of tables to InnoDB, it would be better for every table in the database to be converted as InnoDB is a much better storage engine. That said, MyISAM is workable if you don't mind babysitting it every once in a while. Do I need to clear cache or optimize table in order to see the effects? ⇢ The...
0
0
526
2021-04-27T01:21:54.370
database_errors
dba.stackexchange.com
76,781
Choose threshold to get 90% precision classifier - ML Binary Classification problem
I have chosen threshold value with below code to get 90% precision classifier [CODE] I'm expecting precision_score to be 90% but it returned 95%. Is this expected? Anything incorrect with my code? If it's expected, can you please explain the reason?
[CODE] Above snippet is not doing what you are expecting it to do. Try these changes [CODE] Also, I am not sure whether you are calculating the accuracy properly since z_scores is decision function, not Class. This is a working example using method='predict_proba' for 40%, you may change to 90% [CODE]
2
2
846
2020-06-27T19:15:39.070
data_quality
datascience.stackexchange.com
887,419
How does Google manage the life of a request (from SRE book)?
I am reading Site Reliability Engineering , a book about how Google manages its software infrastructure. There is a section in chapter 2, where the life of a request to a Google service is described. The main points are: [...] first, the user points their browser to shakespeare.google.com. To obtain the corresponding I...
'Terminate' in this case is where the client request is received and forwarded to the application front end. The application returns its response, which is then sent as the response to the client, so it's correct to say that the query from your browser only reaches GFE in your diagram as the TCP packets are rewritten t...
0
2
626
2017-12-10T14:53:17.423
infrastructure
serverfault.com
627,730
How can I manage remote site printers?
Please bear with me, my server and networking knowledge is not amazing. The company that I work for has a central 'Head Office'. This is where our server room is located. We have a bunch of Windows severs providing services such as AD, Group Policy, DNS and Printing etc. We also have a bunch of remote sites, most usual...
edited: In hindsight, my original answer probably won't work for you it might require a printer server for the printers. New answer below: You may want to just setup a policy to explicitly allow the printer device classes to be installed by non-admins You first need to determine the device class - I often find this eas...
0
1
485
2014-09-11T03:58:05.647
infrastructure
serverfault.com
23,489
TempDB contention on sysmultiobjrefs SQL 2005
We've been having trouble caused by what we believe is contention within tempDB. Whenever we are having problems, our system is always waiting on one particular resource: 2:1:103, which when we look it up (using DBCC PAGE(2,1,103)) tracks back to object_id 75, which is the system table sysmultiobjrefs. To solve this pr...
Do you have a lot of SELECT INTO statements in your SQL Code? This will cause locking on several tempdb system objects until the SELECT INTO statement has completed.
3
2
1,961
2009-06-10T16:57:41.840
database_errors
serverfault.com
316,129
How to break GTID Based replication without disabling read only on replicas
How can we break GTID based replication OR cause replication error on MySQL 5.7 without disabling read only on replicas / slaves.
[CODE] on Master [CODE] on Slave [CODE] on Master You will get an error on slave, because MySQL could not find the object. PS: You should consider the skip-slave-errors config.
0
0
38
2022-08-27T10:29:32.777
database_errors
dba.stackexchange.com
932,325
"The requested address is not valid in its context" when running kubeproxy usermode in Windows
I'm trying to connect a Windows node to a Kubernetes cluster, but when running the kube-proxy in usermode I keep getting the error [CODE] . How can I fix this?
Answering this one myself because it was one of those little undocumeted gotchas when setting up a Windows node in a K8S cluster. The code in netsh.go from the Kubernetes code base includes a function like this: [CODE] This function says that proxied service IP addresses will be added to a NIC adapter called [CODE] unl...
0
1
848
2018-09-24T05:52:29.653
pipeline_ops
serverfault.com
385,611
Database Authentication - Are 2 database trips better than 1?
Scenario I have an application where some operations require the authentication of an admin. Example Steps: I need to validate the admin's username & password insert a row into a MySQL table (if credentials are valid). One Trip Approach If I use a single [CODE] to the database, with multiple [CODE] , I'm able to achiev...
Password validation using a modern hash function such as bcrypt is (deliberately) slow compared to a database query, assuming the DB and code run in the same data center. Therefore, the number of database queries is not going to be very important. Choose that solution which is the most simple and obvious to you, as tha...
1
1
85
2019-01-16T13:28:39.990
data_quality
softwareengineering.stackexchange.com
172,655
Limiting maximum cpu time for user-launched programs
We have a cluster running CentOS with Sun Grid Engine for research simulations. However, some users who aren't too familiar with the system end up running jobs on the head node, which of of course makes things slow for everyone else. In the future, I'd like to put an SSH login message warning people of a maximum run ti...
You can try to write a script that checks jobs running and record their utilization and decides what to do after a certain ammount. You can also try AND - Auto Nice Daemon and [CODE] / [CODE] to limit the CPU time of a user (after that much cpu time is used by a user, the processes/sessions are killed).
1
1
1,701
2010-08-20T08:49:43.607
infrastructure
serverfault.com
972,602
changed the name of the computer - SQL server
i changed the computer name, and entered this commands in SQL server management studio (ssms) [CODE] i press this query [CODE] this is the result is this okay? the location, provider string, catalog is NULL? How can i know if everything changed according to the new Server name? do i need to reinstall SSMS again?
The code you ran to change the server name looks correct assuming you have a default instance. If the results of [Select @@servername] and [Select * from sys.servers] returns the same name you changed it to, then it was changed successfully. The fact that the columns location, provider_string, and catalog contain NULL ...
0
1
79
2019-06-24T03:15:02.950
database_errors
serverfault.com
992,334
NTP time synchronization
I have two Linux computers connected to each other via Ethernet crossover cable. No Internet Connection! How can I make the first computer always sync to the time of the second computer? I tried playing with NTP, but could not figure out how to make it work in this situation. Please, help me with any documentation that...
What is the required precision? If it is about 1 second, then maybe you do not need NTP. If you need accurate time source, do not use the internal time clock. You need an external source (e.g. a GPS based NTP server ). For details read about NTP strata . See also: How to force locally isolated ntpd update time There is...
1
0
322
2019-11-18T18:39:52.783
infrastructure
serverfault.com
806,973
How does server virtualization increase performance?
I was reading about server virtualization as a new trend because of many benefits it brings. One of them is to increase performance with fewer hardware. How is it possible? From my limited knowledge, no virtualization can match the physical performance (cause you add 1 extra software). And if you decrease the number of...
Your question takes into account per-node performance, a value that is far too broad to be considered in every situation. This question largely depends on how one conceptualizes performance. In practical scenarios, people care about how well a service performs, not whether the machine it resides on meets an arbitrary s...
0
4
600
2016-10-04T13:55:52.987
infrastructure
serverfault.com
766,955
Business partner's IP in China is blacklisted so cannot email me
A business associate of ours out in China who we have been working with for over 5 years is now struggling to email us in the UK.. he is receiving the following error: Your message to .... was rejected by the recipient domain. The error that the other server returned was: " SMTP error through SDN 40 error, RCPT TO: 553...
A quick dig says [CODE] so it looks your business partner is emailing via an ISP. Most likely someone is spamming from that ISP and they're not handling it properly. Blacklist operators usually provide a possibility to unlist domains/IPs that are (more or less) wrongly blacklisted. You can try that, with your result fr...
1
1
926
2016-03-30T08:01:33.087
infrastructure
serverfault.com
211,284
How to collect concise traffic statistics on linux?
I need to have statistics divided by time periods, like this: [CODE] I looked at [CODE] , and I know how to get not summarized statistics with it. But I don't really want to make a tool which processes tcpdump logs and then clears them. There should be some ready-to-use tool for this standard problem.
I tend to do this with accounting rules in iptables. I create a custom auditing rule [CODE] I then send all traffic coming through, in this case, the [CODE] chain, through that rule before anything else [CODE] I then introduce rules with no targets into the [CODE] chain [CODE] and so on. Since those rules have no targe...
1
1
384
2010-12-10T13:38:12.243
infrastructure
serverfault.com
188,750
when to, and benefits, of replacing existing message passing with JMS in project?
I have moved to a new project and as the only 'software guy' I'm welcome, and expected, to suggest design improvements to the existing code (code just got out of prototype phase and needs extended to final releasable version; plus adding functionality) The code has multiple stand alone components which are suppose to r...
Okay, finally read it all through. I agree, what you describe is a perfect scenario to using JMS. The benefits of leveraging the API is that you can remove the code that deals with the message passing and wiring up your service bus and leave it all to your JMS provider. The providers on the market have their own config...
0
0
261
2013-02-28T15:06:25.277
pipeline_ops
softwareengineering.stackexchange.com
548,996
syntax error: unknown user 'munin' in statoverride file
Server running Ubuntu 12.04 lts I installed munin the other day on a server. I decided later to remove it with apt-get. I noticed that not everything was removed from the installation so manually removed the munin web directory and also removed the munin user-name and group from the sever. However I have just now tried...
Take a look in [CODE] if there is any line [CODE] Try: [CODE]
5
8
9,774
2013-10-27T18:26:18.350
infrastructure
serverfault.com
750,563
CoreOS persistant data storage ( creation + backup + restore )?
Im planning to move my whole server stack to coreOS and using docker. The problem is currently there seems to be no good solutions to create a persistant data storage , back it up and easily restore it when needed? I know one can create inside the cloud-config.yml a data mount but are there opensource solutions to hand...
One way would be to build a container for rsnapshot or similar tool that mounts your data store as a volume. Rsnapshot cannot push backups to another host but you could sync to a directory that's on a remote file system. A restore from an rsnapshot backup is a simple rsync and should be simple to trigger from cloud-ini...
0
0
643
2016-01-20T19:15:02.427
database_errors
serverfault.com
987,007
Nginx redirecting all domains to www subdomain
I have an nginx config that works as intended for one of my domains but there is a weird redirecting behaviour whenever I point another domain to my server. Issue: I want to redirect all request made to any non-www to the www version of my site. Eg: http://example.com should redirect to https://www.example.com http://m...
In your config first [CODE] block is the default_server which will be used for all requests that don't match a more specific server. Rather than [CODE] in the default_server don't use the Host header from the request as a parameter to generate the redirect, as that can become all kinds of incorrect things, instead use ...
3
5
12,275
2019-10-07T04:08:38.743
infrastructure
serverfault.com
42,511
I am getting Stale element exception when I try to automate angular js - drop down using Selenium with Java
- I have around 40 items in my Drop down and I can see it by scrolling down in Gui - But when I inspect the DOM, I can see the code for only 10. I can see the rest only when I scroll it in GUI. (Mean to say- items are loaded in DOM only when I scroll) - I tried to pick the 11th item from the drop down using xpath. So I...
This is likely to happen because you are using some [CODE] (that you have located before you scroll) as the base for inner elements lookup. After you had scrolled, the dom was rebuilt so that your "base" element went stale. Try to find your elements after scroll using your driver as the search context. Not the elements...
0
1
603
2020-02-12T07:37:41.237
data_quality
sqa.stackexchange.com
637,378
Nginx deny IP's and setting custom 403 downloads a file?
I've attached my Nginx conf file for my default site which runs on Ubuntu. What I'm trying to achieve is the following: Main directory is [CODE] with the default file [CODE] Restricting IP addresses for now until launch so only my IP's can view the site For everyone else that attempts to visit the site, deny them, but ...
You should move your deny rules from [CODE] one level up, because now they are not applied to php requests. [CODE]
0
0
3,481
2014-10-16T02:37:52.223
api_errors
serverfault.com
303,813
monitoring nfs with monit
I'd like to monitor NFS mounts and the NFS server process using Monit. On the server, I'd need a PID file, but I can't seem to find a way of getting that created with existing configuration files. Is there a way to do this, or has anyone monitored the server in a different way (checking if port 53 is active, etc). On c...
As for the "hanging" of the Monit process during NFS server faults, this can be circumvented by two methods. You change the NFS mount options from [CODE] to [CODE] , which causes the NFS layer to issue an I/O error to the accessing application after [CODE] retries. As this can introduce other problems with respect to d...
5
2
5,998
2011-08-22T16:19:06.763
pipeline_ops
serverfault.com
469,789
How do I fix name-server "mismatched NS record"?
I am a beginner here, so please be easy on me. I have bought my domain name from a local registrar of my country(mitsu.in) and bought my domain name www.ashurocks.in from there for about 8 months ago. I also bought the web-hosting from another company (unlimitedgb.com) which gave me a cpanel. (It have linux hosting). S...
The problem is quite simple. 1001.globedns.com and 1002.globedns.com are simply not responding to any DNS requests. [CODE] It also seems that your former configuration (when having your Name Servers set as mitsu.in) was not the same as what you are trying to accomplish now. [CODE]
4
4
20,405
2013-01-16T21:02:57.177
infrastructure
serverfault.com
968,208
Nginx configuration for Geoserver
I'm trying to build a website with access to WMS services from a GeoServer instance on the same DigitalOcean droplet as the website. The droplet is an Ubuntu 18.04 server with - tomcat8 - postgresql-10 - openjdk-8-jdk-headless - nginx I deployed GeoServer from a web archive and if I connect using ssh from my local mach...
I wasn't able to figure out what the exact problem was (whether Nginx, conflicts with the other webapp on the same port, or something else) so I changed course. I installed another copy of tomcat and set it to use different ports from the default following this page: https://linoxide.com/ubuntu-how-to/install-tomcat-8-...
0
0
1,905
2019-05-21T10:51:51.237
api_errors
serverfault.com
372,927
Git Repository Structure for Interdependent Projects
Note: I've seen several other questions about repository organization, but I haven't found any with this dependency issue Current Structure At the moment, we have several distributions (which must remain as independent repositories - these are more or less client-specific and can't be shared), which all have a library ...
Source control should not manage dependencies. Git submodules are great for sharing library code as long as the parent and child repositories evolve together, and often enough that managing this relationship in source control makes sense. In your case, a need arises to develop these independently. Extra care must be ta...
2
7
1,829
2018-06-20T23:01:55.807
api_errors
softwareengineering.stackexchange.com
454,068
squid will not listen on specific IP
I have a public subnet with squid installed. Let's say my subnet is from 1.2.3.2 to 1.2.4.254. When I set the following: [CODE] it is working. But when I set: [CODE] it is not working. It is only working with my first public IP from my subnet. The error I get when it is not working is the following: [CODE] What is wron...
What is the output of [CODE] ? By default the [CODE] option will result in squid binding to [CODE] which means it will accept requests on any address on the system. You shouldn't need to list [CODE] , or [CODE] . Just make sure those addresses are assigned to the host. If your host doesn't have the [CODE] address assig...
-2
5
12,134
2012-12-01T00:31:44.433
infrastructure
serverfault.com
707,305
Migrating Vmware to Hyper-V - number of Virtual CPU
I'm performing a migration from VmWare to Hyper-V and the Virtual CPU that you are assigning to a Virtual Machine is different and I'd like to know what should be the equivalent values when we move a VMachine from Vmware to Hyper-V For example On VmWare we have a 2008 R2 standard that is configured with 4Cores and 2 Vi...
As you described it, that would be the equivalent. 8 cores = 8 vCPU's on HyperV. I would ask/state the follow up question/statements: 1) make sure your physical host has at least 8 cores. 2) does your guest really need 8 vCPU's?
2
2
255
2015-07-21T10:11:56.580
infrastructure
serverfault.com
565,396
389-ds dirsrv-admin will not start after enabling single master replication
On the supplier server I went ahead and enabled replication. Restarted [CODE] and then was receiving [CODE] ; so I attempted to restart [CODE] and now it fails with the following error: [CODE] I enabled debugging of the logs and the full error is below: [CODE]
Fixed error by changing ownership in [CODE] and [CODE] to the configured user.
1
0
1,297
2014-01-06T18:32:31.260
database_errors
serverfault.com
278,924
Upgrade object in PHP
I cannot find information on this anywhere so I assume it doesn't exist. It makes much sense for me for such functionality to exist and I want to ask whether it actually does and I am wrong in my assumption, or is there any good reasons it does not and why I should not attempt to create it. [CODE] Eventually this will ...
Your example is already flawed, as [CODE] gains new properties over the base class which makes it incompatible. It would have been smarter to place the [CODE] property straight away in the base class. Ask yourself, in what cases could it be desirable to introduce new properties on an existing object? Both instantiating...
0
4
119
2015-04-13T08:25:14.603
api_errors
softwareengineering.stackexchange.com
414,144
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC
Having the following error while trying to execute a perl script(For LVM backup). Seeing some DBD module is missing. How would I resole it ? [CODE] When I tried to resolve it by installing perl-DBD-MYSQL it gives some conflict as well ? [CODE]
It appears you've installed incompatible RPM packages for MySQL from a third party source. Probably these came from mysql.org. Unfortunately they aren't well integrated and cause problems like this. Currently the best integrated current MySQL RPM packages that I'm aware of are those provided in the remi repository . Us...
3
1
7,605
2012-08-03T21:07:24.427
database_errors
serverfault.com
329,877
Binary path in pgadmin
I am running pgadmin via Docker desktop. I am unable to restore a sql file in the database. I get the following message - "Please configure the PostgreSQL Binary Path in the Preferences dialog." In the case of PostgreSQL installed in the device, I am aware about assigning the binary path. However in this case, pgadmin ...
Normally, an installation of pgAdmin includes the PostgreSQL client. pgAdmin cannot operate without the client shared library [CODE] installed, and it also makes use of [CODE] , [CODE] and [CODE] . If you don't have these three executables, the functionality of pgAdmin will be reduced. I don't know how the SQL file you...
0
0
201
2023-08-01T14:14:07.447
pipeline_ops
dba.stackexchange.com
769,922
SSD Server with trim enabled
I have a Windows Server (but I think this problem may apply to any UNIX server too) running using SSD. I have Kingston UV300 SSD and they allow TRIM. I also checked and my Windows is running with TRIM enabled. My question is this: after my server deletes files the TRIM feature of Windows and SSD should make any deleted...
You have a fundamental misunderstanding of what TRIM is. It's "job" is not to prevent deleted data from being recovered. It's job is to let the firmware in the SSD know that it no longer needs to preserve data ( because it has been deleted ), and armed with that knowledge, the firmware may be able to do a better job of...
-1
0
106
2016-04-13T00:47:41.517
infrastructure
serverfault.com
78,695
winter and summer time switch without a break in the timeline
Does anybody know if there is a possibility to switch from summer- to wintertime without an interruption in the timeline. I have an application that logs transactions with a timestamp. The problem is, that I must not have overlapping timestamps. If I simply switch the clock from 3am to 2am i have an overlapping. Means ...
I would log everything in UTC ( Coordinated Universal Time ), this way daylight saving is never observed. It is the common default time setting for Linux servers. You can then present both the UTC and the local timezone time at the application layer. Reading about the tzdata package might be of interest to you. From th...
4
19
2,155
2009-10-27T14:50:25.577
infrastructure
serverfault.com
186,075
Database Engine Tuning Advisor
I analysed a huge query in DTA. The database is kind of badly designed and does not have primary keys on tables, also they dont have clustered indexes on them. I found around 80 tables as such. Now, without indexes the queries are obviously going to run slow but when I put them through the DTA, it always asked me creat...
By default, the DTA doesn't recommend clustered indexes. In addition, check out the documentation for even more things it doesn't do. If you do want recommendations for clustered indexes, click the radio button for "Do not keep any existing PDS" as shown in the below screenshot: But be aware that it can produce some st...
0
3
293
2017-09-15T14:44:53.707
database_errors
dba.stackexchange.com
184,674
Is it a good idea to use null values to distinguish between records?
I have a table with two columns. State and Name. State can have two values, 0 and 1. When the state is 1, there needs to be a value in the column Name. If the state is 0 the Name must be null. My question is what is considered as a good database design. I've come up with two options. Remove the column state and just di...
Based on your comment, I would suggest that the addition of the 'State' column adds additional application complexity (constraints necessary to keep the 'State' column in sync with the value in the 'Name' column) for, what appears to be, no added benefit.
0
2
30
2017-08-30T09:12:50.543
data_quality
dba.stackexchange.com
136,242
Setting affinity on windows server 2003
I have a program that by default only runs on one CPU. I have tried using the [CODE] batch command but i can't get it to run my program. it changes the title of the command line window but doesn't execute the program. this start command does work for notepad so it might just be a problem with the software. I have set t...
My first problem was that the batch file wouldn't run my program. This ended up being a problem with spaces in the path. I couldn't figure out how to escape them so i just used short names. (e.g. c:/progra~1/ instead of c:/program files/) second problem was setting the affinity. turns out that the affinity flag in the ...
2
1
2,966
2010-04-27T13:47:38.683
infrastructure
serverfault.com
412,704
Using for_each instead of iterators to avoid iterator invalidation
I am writing a simple custom (special purpose) container and would like to allow for iteration over each element, however, avoid using iterators due to the problem of iterator invalidation. Instead of providing a pair of iterators (via [CODE] and [CODE] ) I was thinking to provide a [CODE] method that iterates over the...
Would using a for_each method make more sense for special purpose containers [...]? [CODE] makes a lot of sense to me for certain containers where the design of a standard iterator doesn't map so efficiently either for CPU or programmer or both. Consider this very simple example of iterating efficiently through set bit...
0
1
465
2020-07-14T03:58:29.527
data_quality
softwareengineering.stackexchange.com
299,272
Can I use a timestamp parameter for cache invalidation?
I am considering a scheme for passing a timestamp value in a cached response, and then sending it back to the service to perform cache invalidation. I'm wondering if that's a valid approach. Is that a common approach? For example, if I have a service that returns a "Foo" record, which is a combination of DB lookups and...
Local caching is simpler to implement. The issues to watch out for are: Multiple cache misses during the cache population event. Cache population fails. Depending on which server the request hits will return a different answer. With .NET I handled the cache miss problem by having the cache store the Task<> asynchronous...
2
2
2,047
2015-10-07T16:13:58.910
database_errors
softwareengineering.stackexchange.com
214,405
mySQL - Cannot add Foreign Key Constraint
I'm trying to add a foreign key constraint but, mySQL is not taking it. No detailed error, just [CODE] Here is my code from an export dump... thanks for any assistance [CODE] ... [CODE]
I think you've got the FK the wrong way round, and really want: [CODE]
0
1
727
2018-08-08T14:45:49.000
data_quality
dba.stackexchange.com
332,620
Windows Server and Network Monitoring Tools
Possible Duplicate: windows server 2003 monitoring software combining SQL Server monitoring with CPU-IO stats I am looking for tools to monitor our Windows servers in terms of disk/memory/cpu usage which also gives the notification options. I also have 2 VM hosts, I would like to monitor my server activities and perfor...
I use use cacti for most of my monitoring. I've been looking at Nagios or Zabbix as a replacement, but there really are a ton of options.
0
2
202
2011-11-19T02:13:47.547
data_quality
serverfault.com
219,627
Printer irregularly producing garbage output
Every now and then instead of getting the proper output we get numerous pages, mostly with just a single line, of output which appears to be the raw PCL. My theory is that this happens when the first byte or two of the document is somehow not received by the printer, which then doesn't know how to interpret the rest an...
Ick, I really hate it when this happens (especially printers directly mapped by IP as there's no sensible way of telling where the print came from). I feel your pain, I've been in this situation before and it's not fun. I'm being quite general with my points below, as this is a very common issue, and is relevant to mos...
3
1
3,033
2011-01-06T22:18:03.003
infrastructure
serverfault.com
38,926
mysqlworkbench after cmd mysql startup went wrong
i have problems with my mysql server. I have installed the newest mysqlserver but having problems after starting my server from command line on localhost. Before that i was running xammp. The problem is that when starting from command line and not from xammp, mysqlworkbench shows me tables from another datadir when con...
It sounds like you have two installations of MySQL: one installed normally and one installed through XAMPP. When starting MySQL through XAMPP it will start the one it installed, when started through the command line it installs the one that is installed natively. They both bind to the same port (so you can only have on...
0
1
34
2013-03-30T14:07:16.163
database_errors
dba.stackexchange.com
234,071
Cannot open database "dbname" requested by login.The login failed.Login failed for user 'DOMAIN\Windowsusername'
I had a database which i dropped using the below command. [CODE] Now when i refresh the connection in SSMS i get the error message [CODE] I remember that the owner for that database was the same login "DOMAIN\Windowsusername" . So i think now when i connect using the same user login ,it is trying to connect to the drop...
That login probably has the dropped database listed as his/her default database. You just need to assign a different default database. In SSMS, connect to the server, then go to the Security section, then the Logins section. Find the login in question, right-click, then choose Properties. On the General tab, you'll fin...
1
2
7,808
2019-04-05T21:36:31.133
warehouse_errors
dba.stackexchange.com
292,659
HTTP probing utility
Looking for a probing utility that will periodically issue HTTP request and somehow provide an output (CSV/UI) on web server / network response times. Nice to have: JavaScript-parsing ability to fetch all the referenced resources (images/css/scripts) altogether with the primary HTML file. Preferably something that can ...
What's wrong with httping ? In combination with a little bit of code from your favorite scripting language ( ahem Perl!) it will easily accomplish your goals. If you're looking for something that is a little prettier give Smokeping a try. You can use the Curl or HTTP probe to specifically query your webserver for laten...
0
1
363
2011-07-21T12:53:52.460
infrastructure
serverfault.com
919,356
NGINX config always falls back into default location
I have the following NGINX (1.13) configuration in Docker container, that serves as an umbrella proxy for both frontend and backend. Server [CODE] is PHP-FPM container and [CODE] is a NodeJS/React App. I want the domain URL [CODE] was caught by frontend and [CODE] to be delivered to [CODE] . Whatever I tried doesn't se...
You should use just [CODE] as the block directive, since you want a simple prefix match. If changing this doesn't help, you need to verify that nginx actually uses the configuration you have created by running [CODE] , which displays the configuration nginx has parsed from configuration files.
0
0
195
2018-07-03T18:06:17.213
pipeline_ops
serverfault.com
34,843
Why are software schedules so hard to define?
It seems that, in my experience, getting us engineers to accurately estimate and determine tasks to be completed is like pulling teeth. Rather than just giving a swag estimate of 2-3 weeks or 3-6 months... what is the simplest way to define software schedules so they are not so painful to define? For instance, customer...
If you are cranking out a project nearly identical to other projects you have done, using familiar tools and a familiar team, and you are given firm, written requirements, then it should be possible to make good estimate. These are the conditions that painters, carpet installers, landscapers, etc., regularly experience...
39
58
2,911
2011-01-08T03:00:23.943
api_errors
softwareengineering.stackexchange.com
577,769
iSCSI devices added to storage server during DPM 2012 SPI backups
We have a Windows Server 2012 Failover cluster running a number of virtual machines. Storage for the cluster is provided by a Windows Storage Server 2012 instance and mapped to the nodes via iSCSI. In addition, I use DPM 2012 SP1 to protect the clustered VMs - these backups are stored to a different server from the one...
First things first. I would run this solution by your Microsoft Support Technician before using the suggestion! We have a very similar issue with our cluster and brought it to Microsoft's attention. In our situation, the volumes are appearing on each node of our cluster in the registry under the keys: \HKLM\SYSTEM\Curr...
4
1
1,254
2014-02-24T04:03:39.643
hadoop_errors
serverfault.com
236,309
Strategy for generating unique and secure identifiers for use in a "sometimes offline" web app
I have a web based project that allows users to work both online and offline and I'm looking for a way to generate unique ids for records on the client side. I'd like an approach that works while a user is offline (i.e. unable to talk to a server), is guaranteed to be unique, and is secure. By "secure", I'm specificall...
Your approach will work. A lot of document management systems use this type of approach. One thing to consider is that you don't need to use both the user uuid and the random item id as part of the string. You can instead hash the concatination of both. This will give you a shorter identifier, and possibly some other b...
50
4
13,671
2014-04-18T06:19:17.660
data_quality
softwareengineering.stackexchange.com
251,171
Can I fix this insertion anomaly without using a composite key?
Suppose I have a schema with the following basic elements: [CODE] So a client may have multiple pets and multiple contracts, and each contract may involve any number of the client's pets. This schema has the problem that it's possible to insert pets into a contract that are not in fact the pets of the client associated...
You can use a CHECK CONSTRAINT and scalar-function to validate if the pet and contract combo is correct based on the pet owner and contract client being the same ID. Check out this db<>fiddle for an example of this. Also, see here for more information on CHECK CONSTRAINT . The other alternative is to create your PK on ...
0
1
87
2019-10-15T21:04:53.017
data_quality
dba.stackexchange.com
320,992
How can I configure Postfix to ignore relayhost for some domains?
Is there a way in Postfix to ignore the [CODE] ? I have something like [CODE] Now for a certain domain I don't want to send it out to that relay but want it to just send from that machine. How do I have to configure Postfix to do that?
main.cf #relayhost = [smtp.domain.net]:587 transport_maps = hash:/etc/postfix/transport /etc/postfix/transport domaintodeliverdirectyto : * smtp:[smtp.domain.net]:587 Don't forget to [CODE] May want to use [CODE] instead of [CODE] as the transport mechanisim. For reference http://www.postfix.org/transport.5.html
13
16
12,591
2011-10-12T21:59:28.623
infrastructure
serverfault.com
248,670
How to solve a mail issue Failed to initialize sqlcmd library with error number -2147467259?
I got an error while trying to send an email: [CODE] Here is my query: [CODE] I tried setting max byte size for mail to 10MB but that didn't help. The problem is associated with @query paramteter. What would you suggest? P.S sp_ineachdb is a customized procedure
From your example, you are trying to insert the results of your query into a table variable and then trying to use that table variable in the sp_send_mail procedure call. That won't work. sp_send_mail needs to reference a real table and not a temp table either.
0
4
2,789
2019-09-12T19:46:05.767
warehouse_errors
dba.stackexchange.com
765,930
Restarting networking on Debian Jessie
I would like to know which is the right method to restart networking service in Debian Jessie. I know that I can use: [CODE] or [CODE] that anyway gave me problems on ssh connection, or [CODE] and other two methods with systemctl and with ifup/ifdown . But which is the right way to do it?
I would use the [CODE] command because it is more consistent across different distributions. So of the commands you mentioned, the variant I would go for is: [CODE] And I would definitely run it inside a [CODE] session or by other means ensure that it won't fail to complete in case you lost connection with the shell in...
15
13
90,207
2016-03-24T17:26:57.557
infrastructure
serverfault.com
30,077
Advices for modeling facts, time hierarchies based on two conditions
Sorry if my question does not belong to that SE but I tried to find the best place and it ended up here. My problem is this : I've got a table modeled as this in our datawarehouse env. : [CODE] Each night this table is updated with new records from our prod env. When a record changes in prod and already exist in dw, a ...
You need a date dimension table, and it should look something like this: [CODE] and insert data like this: [CODE] Notes: use a smart key (with the date as the key, like 20130703) as the primary key for your date dimension, for easier fact table partitioning. this is the only time you should use a smart key in your ware...
2
2
211
2012-12-10T04:02:15.813
warehouse_errors
dba.stackexchange.com
418,422
Public static ip for vagrant box
I have server (Debian Squeeze) with 1 ethernet card and 2 public static IPs (188.120.245.4 and 188.120.244.5). What I want: Setup virtual box (Ubuntu) with access via static IP (188.120.244.5). What I was trying: config.vm.forward_port - good idea: setup interface "eth1:1" with 188.120.244.5 on host-machine, and add to...
Since release 1.3.0: [CODE] you just have to put this configuration in your Vagrantfile (documentation) : [CODE] This Vagrant thing is really great :-)
16
20
47,001
2012-08-16T22:03:31.427
database_errors
serverfault.com
9,391
Using a VHD as a data storage location?
I asked previously if there are good reasons to partition disks on Windows , and one of the big ones was for splitting data and OS. So that should you reinstall, you do not need to worry about the data (i.e. the partition with the OS gets wiped, while the data one remains). Windows 7 allows you to have a VHD (virtual h...
First pitfall/issue - there's no support for VHD files in most third party products. For example, if you get a virus and you need to boot from an antivirus CD, the antivirus software won't scan inside the VHD. You'll scan, clean up the hard drive, and then when you reboot into Windows you'll still have the virus. Next ...
4
3
1,706
2009-05-18T12:45:02.610
infrastructure
serverfault.com
31,453
Right Trimming Binary Data in SQL Server
Scenario: I am inserting a string into a binary field (CONTEXT_INFO) and then later attempting to pull it out and convert it back to a string. When I do, the resulting string has a length of 128 because it has trailing null characters. Example: [CODE] Question: How can I trim the trailing null characters when I convert...
This looks kind of unsafe, but it turns out that [CODE] will eat empty strings and give you back a NULL anyway: [CODE] Or, it turns out you can directly specify a binary value to search for in the [CODE] function: [CODE] This of course won't trim only trailing null characters, but I assume would be sufficient. Note: ne...
6
4
2,966
2013-01-04T18:26:03.463
database_errors
dba.stackexchange.com
488,949
Bind9 how stop to answer specific queries?
How I can make Bind9 to stop answering specific types of queries, let say NULL, WKS or TXT? Thanks in advance.
Unfortunately, no. The "blackhole" facilities of BIND 9 are extremely limited (a fact that's been exploited for a variety of back-scatter attacks). If you're running Linux you can configure IP Tables to drop packets with those types of requests. A vaguely similar Q&A has some good information in it.
1
3
395
2013-03-18T17:01:27.803
infrastructure
serverfault.com
586,875
IIS httpErrors ExecuteURL appends weird query string like 500;http://mysite.com/failed-page to the target URL
I've noticed weird behavior in IIS error pages. I've got this setup: [CODE] Sometimes when an ASP.NET error occurs due to the query string being too long, then immediately the second error occurs while trying to execute the error page URL. I've tracked the problem to the fact that IIS appends the original url to the er...
Adding a trailing slash to the path (e.g. path="/error-page/") will stop the error code and URL being appended, note that it will keep the original failing URL, e.g. If there is no trailing slash, then the contents of error-page will be shown with the URL: http://example.com/error-page?500;http://example.com/failingpag...
11
1
1,317
2014-04-05T10:08:58.397
api_errors
serverfault.com
854,784
NAS RAID 5 HDD recovery
I have a broken NAS. The system is not broken but the hard drive is. The NAS system is ASUSTOR AS5108T with 8 bay of HDDs. The NAS originally purchased with 8 units 3TB WD GREEN (I know it is wrong to having WD Greens for frequently-accessed NAS but thats what shipped until I know about this case). The HDDs also setup ...
It is not possible for the rebuild to fail due to a disk entering power saving mode. After all, a rebuild is a very stressful operation, so the disks literally have no time entering standby. If the rebuild really fails, it must be due to some other problems, for example: - an URE problem on one of the original disks (W...
0
2
490
2017-06-09T04:35:44.077
database_errors
serverfault.com
1,080,310
Apache or NGINX + GitHub runner
I have a development server that I'm currently using for beta-level production (mostly sending out to my clients for proof of work). So what I wanna do is use my runner to automatically sync with main branch (which I'm doing right now without any issues). However, I wanna automate my process a bit further. Basically, w...
Dealing with performance in web servers, having the potential of handling static content along side dynamic content is significantly important. As reported by a benchmark take a look at performed by running up to 1,000 concurrent connections, NGINX performs 2 and half times quicker than Apache in static contents. will ...
0
0
137
2021-10-12T13:21:51.827
infrastructure
serverfault.com
319,571
Re-validate all constraints
On a server with ~200 databases, I experience several violated constraints when trying to migrate from Pg11 to Pg13 : [CODE] I don't know where or when these integrity problems came from. I have never disabled triggers so I am suspecting some data corruption (on indexes maybe?) These errors are not critical per-se but ...
run a deep check on all databases to detect any inconsistency (maybe run this test once in a while) One way to run such a check is to make a snapshot backup (pg_dumpall) and then try to restore it. delete/correct those invalid data this may be a slow preocess.
0
0
108
2022-11-12T11:46:42.147
data_quality
dba.stackexchange.com
959,677
Packer errors with qemu-system-aarch64
I have some success creating Vagrant base boxes with Packer for x86 and x86_64 guests, including VirtualBox, VMware, and qemu hypervisors. Now, I want to start making ARM guests with Packer and qemu, but I am not sure how to resolve the error that I am getting. Configuration: https://github.com/mcandre/packer-templates...
I got far with: [CODE] Nigh, the guest display was not coming up. The qemu engineers mentioned that, though: https://wiki.qemu.org/Documentation/Platforms/ARM
1
0
1,588
2019-03-24T02:32:21.020
infrastructure
serverfault.com
121,328
Is it good practice to catch a checked exception and throw a RuntimeException?
I read some code of a colleague and found that he often catches various exceptions and then always throws a 'RuntimeException' instead. I always thought this is very bad practice. Am I wrong?
I do not know enough context to know whether your colleague is doing something incorrectly or not, so I am going to argue about this in a general sense. I do not think it is always an incorrect practice to turn checked exceptions into some flavor of runtime exception . Checked exceptions are often misused and abused by...
85
60
97,018
2011-11-23T16:20:29.133
api_errors
softwareengineering.stackexchange.com
592,022
ReadyNAS 3200 Taking a Long Time to boot
I have a ReadyNAS 3200 that locked up on me. I could web into it, I could see the files on it via CIFS, but it would not allow me to access existing, or edit/create new files. I would get an error from Windows that I don't have permission. I also has had a couple backup VMs on that server, and when I would try to power...
I contacted Netgear and even though I was out of support contract with them, they did take the information I had gathered, and came to a fairly certain conclusion that the filesystem somehow got hosed on the NAS. Which is possible, as we had a very long power failure a couple weeks ago that initially made the NAS act u...
0
0
1,429
2014-04-29T14:20:16.527
database_errors
serverfault.com
178,355
Is there anything wrong with linking two identical primary keys in two different tables?
As you can see here, in [CODE] and [CODE] , I have a relationship set. But I'm not sure what kind. I was hoping to set a relationship so if I deleted an [CODE] , it would cascade delete the corresponding record in [CODE] , but it won't let me. It gives me this nasty ' can't cascade delete on identity column error, so a...
It looks like your model is a one-to-one relationship between [CODE] and [CODE] , with [CODE] as the [CODE] primary key and as a foreign key referencing [CODE] . The error messages suggests you have defined [CODE] as an [CODE] column. It should not be [CODE] - the assigned [CODE] value from thre related [CODE] row shou...
4
7
2,995
2017-07-08T13:19:42.807
warehouse_errors
dba.stackexchange.com
249,885
Stored procedure for selecting table rows from a date range used to populate two other tables
I have this two tables shipments_docs and dict_shops: [CODE] And I need to populate them with values from the third table (dbo.shipment_data) that fall into the date range. [CODE] I need to implement stored procedure to populate the shipment_docs and dict_shops tables. The procedure should take two parameters - the sta...
I'm not sure why you need a recursive CTE. If you just need to split the data into two tables based on a date range you can do the following: [CODE]
2
1
469
2019-09-29T12:59:41.343
database_errors
dba.stackexchange.com
339,067
DNS issue with migration of web site to new server
I have a legacy system that I'm attempting to make a significant configuration change to, but am not seeing a way to do so cleanly. The state I inherited consists of a web site hosted on two app servers which sit behind a load balancer ( each server hosts a LAMP stack). The A record (example.com) for the domain points ...
Can you not set up a subdomain for the main app? Something like www2.example.com (or remove subdomains altogether and have it on just example.com), then just put a redirection from the site root to the new subdomain? If you do the redirection using .htaccess you can redirect everythhing except /scripts to the new serve...
1
1
158
2011-12-08T17:11:58.533
infrastructure
serverfault.com
229,443
Mixing declarative & imperative code (Implicit 'unit tests' ?)
Well I'm no expert, but as a student, I'm curious about languages and their design patterns / goals. I'd like to know, whether there are any points I miss in the following examples, and why techniques like this are not widely used in popular languages. Why is it a better idea in a real-life program to explicitly define...
The “sufficiently advanced compiler” has become a common joke when talking about programming languages. Some compilers actually have amazing features, but often this is used as an excuse for sloppy language design, or for the performance of certain dynamic languages which don't have such an advanced compiler. The way y...
1
3
1,105
2014-02-18T20:47:12.960
api_errors
softwareengineering.stackexchange.com
388,925
HTTP status 500 for missing file
By default, the HTTP response code for "file not found" has always been 404. I never really thought about it until recently someone was saying that if the missing file is part of an application then the response should be 500 (internal server error) because it's not a client error (4xx error class). The example for tha...
Technically, if there's never a reason why this file should be unavailable when your application is configured and running properly, you probably should return a 500 (or 500 class error). It's an unexpected server side issue. In practice, however, it's typical to use a 404 here because that's what web servers tend to d...
4
6
1,619
2019-03-20T13:27:12.867
api_errors
softwareengineering.stackexchange.com
590,690
Filesystem performance degraded during RAID rebuilding
So quick question - our RAID6 array is currently rebuilding and there is a VERY noticeable filesystem performance hit (home directories are NFS mounted on the array). I'd sort of expect that, given you're rebuilding the array so there's massive read/write burden on the controller, but it occurred to me I don't really h...
First, here is a great resource that outlines rebuild times. RAID rebuilds and how they work pre and post failure. Now, as far as my thoughts about the rebuild, we do know that rebuilds make for some really sluggish performance and rightfully so. As you will see from my link above, RAID rebuilds are not only extracting...
5
9
3,641
2014-04-23T02:47:55.313
database_errors
serverfault.com
173,336
rolling-up consecutive duplicates
Is there a way to "roll up" duplicate records such as time-series data in MySQL? I'm currently doing this in the application code after retrieving full time-series but the transmission of mostly redundant rows seems a nuisance. Here is an example: Original data: [CODE] Resultset with "rolled up" consecutive duplicate r...
This code assumes that there will only be one record for any given date. It also does not check to make sure that dates are consecutive, if that's important. [CODE] First, in the subquery, it sets the state to an empty string if it's the same as the state in the previous row. Then, we select only those records form the...
0
1
89
2017-05-11T14:34:41.497
database_errors
dba.stackexchange.com
197,416
SQL Server 2016 concurrency limitations? Tuning for db concurrency
I have a table with ~1 billion timestamped records, and each record holds an FK to a session table (one session per day & 3-500,000 records per day), so finding the records for a given day is simply an integer join. I am trying to analyze the data in this table (with data grouped by session), and I can run a complete a...
Before anything else, I think you need to try a few things to cut down on that 12+ hour query: First thing I would check is the index. You have a GROUP BY on [CODE] yet the index is on [CODE] . Meaning, the order is not the same (and hence likely why the index is being ignored and the table is being scanned). You need ...
6
9
328
2018-02-08T16:57:30.660
database_errors
dba.stackexchange.com
95,651
Replace nested "select with count" with outer join? is this possible?
[CODE] Is there a way to replace/optimize this with JOIN?
[CODE] This exploits the fact that aggregate functions will ignore [CODE] values. But depending on your DBMS and the size of your tables, your original query might actually be faster. But this can only be found out if you show us the execution plan.
0
1
390
2015-03-19T05:52:24.687
warehouse_errors
dba.stackexchange.com
7,535
What is the difference between bug severity and bug priority?
This is a basic question. Most projects mix both priority and severity into a single value. What reasons are there to separately assign severity and priority to a defect? What do testing methodologies say about that? It is practical to choose different labels for severity and different for priority?
The severity of a bug is a measure of how important the bug is to the end user: how much it breaks, how badly it breaks things, how difficult it is to get work done with this bug in place. The priority of the bug is a measure of how important the bug is to the development team. This will take into effect the severity, ...
13
19
13,735
2014-01-14T20:11:55.190
data_quality
sqa.stackexchange.com
462,607
Mysql very slow, out-of-the-box configuration
I just installed AMP stack on a VPS. I logged in to mysql console and found out that queries were incredibly slow. A single update query, targeting 1 row in a table with ~200 rows took 0.5 seconds to complete (same query takes 0.001s to complete on my windows laptop). I thought it's related to VPS not having enough res...
Issue was not solved. I moved hosting providers and got expected results. I coldn't find out what originally caused the issue.
0
0
231
2013-01-03T14:20:57.860
database_errors
serverfault.com
212,992
Difficulties With TDD & Refactoring (Or - Why Is This More Painful Than It Should Be?)
I wanted to teach myself to use the TDD approach and I had a project I had been wanting to work on for a while. It wasn't a large project so I thought it would be a good candidate for TDD. However, I feel like something has gone awry. Let me give an example: At a high level my project is an add-in for Microsoft OneNote...
While TDD is (rightly) touted as a way to design and grow your software, it's still a good idea to think about the design and architecture beforehand. IMO, "sketching out the design ahead of time" is fair game. Often this will be at a higher level than the design decisions you will be led to through TDD, however. It's ...
21
19
2,327
2013-10-01T01:13:19.957
api_errors
softwareengineering.stackexchange.com
235,831
Managing SSH Connections
On a Linux server, how would I find a list of all current SSH connections, or disconnect a specific SSH connection?
If you're planning to do this interactively, the simplest would be to simply invoke [CODE] and see if there are any users from a remote host. [CODE] This is of course not foolproof, but is extremely simple to type up on demand and easily process with the human eye. As @gravyface pointed out, if you include a [CODE] opt...
9
14
12,520
2011-02-15T17:32:55.063
infrastructure
serverfault.com
404,755
mysql is not connecting after data directory change
I've changed data directory in /etc/my.cnf. [CODE] I also moved mysql folder from [CODE] to [CODE] Now when i connect to mysql i get following error: [CODE] also when i see /var/logs/msqld.log i get following messages in that: [CODE] I shut down mysql properly before doing these changes and then started it properly but...
Check to see if you have the socket file in the new location? ls -la /data/mysql/mysql.sock If it exists, are the permissions correct? Show us if you're unsure. The next step if it exists is to try: [CODE] If that works then you simply need to change the [CODE] in the [CODE] section of your [CODE] file. If that doesn't...
1
1
3,920
2012-07-04T14:56:10.623
database_errors
serverfault.com
261,753
Setting up zookeeper
I want to use zookeeper in my cluster. I have a few questions I did not yet find answers in the documents. I want to have a management node in the cluster where the main zookeeper resides, and then have zookeeper on some nodes of the cluster, as failover. What is the best practice for nodes to get the URL of the manage...
I want to have a management node in the cluster where the main zookeeper resides, and then have zookeeper on some nodes of the cluster, as failover. That isn't how zookeeper works. You set up N zookeeper servers in a cluster, each server is equal, and each server can be the leader of the cluster at any time. When a lea...
1
1
1,194
2011-04-20T13:45:21.340
database_errors
serverfault.com
104,285
Resetting salted Drupal admin password
Have an old VM with Drupal configured on it, and I can't recall the admin password. The password-recovery process sent me a link to reset the password, but the page generated said "Access Denied". I then tried directly editing the Drupal users table in MySQL. This would have worked, except for the fact that the Salt mo...
It seems you already solved the problem but here is an answer anyhow. Connect to the mysql database and do the following: select value from variable where name='salt'; update users set pass=md5('newpassSALT') where uid=1; Where SALT is the value noted above. The password should be reset to "newpass".
3
1
3,112
2010-01-19T18:52:56.567
database_errors
serverfault.com
897,142
validate all the files before copying to all the remote servers
I have an ansible playbook which is made up of two plays as shown below: First play validates everything on the localbox where I am running my ansible before invoking Play2. If my validation fails in Play1 then I don't want to start Play2 at all. Second play will only start if Play1 validation is successful and this pl...
See my coments marked with [CODE] Playbook1 [CODE] Playbook2 If one of the previous actions fails, Ansible stops and won't run any other action. [CODE] Please consider that one of the features of ansible is idempotency, you should write your scripts to run and continue from previous actions (if they have failed in a pr...
0
3
1,465
2018-02-14T02:06:21.983
data_quality
serverfault.com
283,230
What's the risk of running a Domain Controller so that it is accessible from the internet?
I have three remote dedicated web servers at different webhosts. Adding them to a common domain would make a lot of administration tasks much easier. Since two of the servers are running Windows 2008 R2 Standard, I thought about promoting them to Domain Controllers in order to set up the windows domain. There's another...
The more things you open to the net, the greater your chances of something/someone nasty getting in to your network and doing undesired things. I personally like the policy of not opening up any more than I must. If you want other networks to see your DC, I'd take a look at remotely bridging your networks through some ...
4
4
1,622
2011-06-22T23:26:32.170
infrastructure
serverfault.com
48,923
How to dump PostgreSQL database whose owner has no password?
First, some background on my setup: The server has root access disabled. So, I log-in as (say) [CODE] who also belongs to the [CODE] group and is therefore able to run superuser commands. I created a new password-less user #1 [CODE] (using the command [CODE] ). Then I changed the login session's owner to [CODE] using t...
See this part of the [CODE] manpage: [CODE] Don't use [CODE] at all. In your case, it's just confusing. Also, you need to know that the fact that the server asks for a password or not is not driven by the existence of this password. It's driven by the server-side [CODE] file that you need to study and possibly modify a...
7
8
26,036
2013-08-29T10:57:30.060
api_errors
dba.stackexchange.com
599,403
Why does debian not set the pam module called pam_limits.so in the file /etc/pam.d/su
I am using debian version 7.4 The /etc/pam.d/su file there does not enable pam_limits.so the snippet is: [CODE] Why is that ? googling for it, got articles like https://my.vertica.com/docs/6.0.x/HTML/index.htm#14567.htm [CODE]
The default (no limits) work for most people. For most single-purpose, single-user, and small multi-user systems the limits module is not required because you won't be hitting any of them; for that matter, a small system user encountering a ulimit related error would probably not know how to handle it. What's more, [CO...
1
0
1,392
2014-05-29T11:50:53.407
infrastructure
serverfault.com
139,230
Problem installing .NET Framework on Windows Server 2008
I install .NET Framework and it shows the message saying that was all right, but when I try to run a web site the uses .NET 4, it doesn't run, because IIS doesn't find the .dlls. Even if I search for them at windows explorer, I can't find. Does anyone had the same problem?
You need to explicitly enable ASP.NET 4.0 web service extensions: Click Start, click Control Panel, click System Security, click Administrative Tools, and then click Internet Information Services (IIS) Manager. If you need to connect to a remote IIS Server, right click the Internet Information Services node and click t...
2
1
667
2010-05-06T14:53:30.513
infrastructure
serverfault.com
225,589
How to refresh/keep up to date content in the browser without overloading the server
I am not very educated on this topic of programming so I am seeking any advice/knowledge. I am coding a web app in PHP, and this particular task requires updating the display after the server has new information available. So, one seemingly-bad solution is to have a repeating AJAX request that spams the server on an in...
Big question: how quickly does the display on the client need to update when there is new data on the server? Within 1 second? 10 seconds? 1 minute? Another big question: how many clients do you expect might use your system at the same time? If the client needs to be updated within a fraction of a second, then yes, pol...
1
2
591
2014-01-26T22:44:19.903
api_errors
softwareengineering.stackexchange.com
326,401
Producer and multiple consumers with limited types item
I am implementing producer-consumer where items to be consumed are of 1000 types type-0, type-1, ..., type-999. Producer inserts item of type-i in queue. Consumer uses that to update state machine for type-i(one state machine per type-i) based on item(type-i)removed from queue.There are multiple consumers that are read...
First, I want to confirm that I understood the problem well. You have N different types of items in one main queue, and N consumers, each of which is responsible for exactly one type of items. A consumer responsible for processing items of type X cannot process items of type Y. Everything hereafter is based on this ass...
1
1
691
2016-08-02T12:25:29.720
api_errors
softwareengineering.stackexchange.com
503,584
What can I do about a (possibly) nonfunctional server?
We're back online. I still don't know what happened though. The power went out... My school's website, (formerly) located at www.petagimnazija.hr , seems to be down. When I try to load it in a browser, it hangs for a minute or two, and then displays the usual "Server not found" Firefox page. I tried [CODE] ing the site...
When I access the URL www.petagimnazija.hr it is up and available. Based on your DNS settings you only have a single DNS server registered. That DNS server is the same machine as your web server (which is usually a bad idea). If the DNS Service had crashed and didn't come back online correctly then the website would ha...
0
1
609
2013-04-29T14:45:11.510
infrastructure
serverfault.com
62,015
Numerous failed authentication attempts in error log
I'm having a hellacious time trying to figure out what is attempting to authenticate against a particular database server, running SQL Server 2008 R2 Standard Edition. The following is the error littered in my logs: Login failed for user 'Master80'. Reason: Password did not match that for the login provided. [CLIENT: S...
My initial thought was a logon trigger but, sadly, those only fire after a successful login. The documentation for the Audit Login Failed Event Class says that failed login audits will include the application name, but I haven't observed that so far (I only tested failed logins from changing connections within Manageme...
2
2
2,782
2014-03-28T18:16:41.650
api_errors
dba.stackexchange.com
412,499
Puppet - Restart a service in a different class
I am relatively new to Puppet, but so far realize it to be a very powerful tool. For an easy example, lets say I have a module "ntp" In module ntp I have three classes: class ntp - Installs the package from the distro package provider, sets the information for starting the service, etc class ntp::client - Creates the c...
I stumbled upon what Puppet themselves deems to be the proper solution. I had read that inheritance should be avoided, but it is with one exception, classes within modules - according to documentation found at Puppet Style-Guide -- Class Inheritance Since these are the people writing the software, I deem this to be the...
6
1
7,960
2012-07-30T12:56:46.713
pipeline_ops
serverfault.com
302,982
Nginx+PHP-FPM+APC+Varnish+Memcached: High Mem/Swap consumption?
I've got running a VPS at Linode with 1024 MB RAM, Ubuntu 11.04 and Nginx+PHP-FPM+APC Varnish+Memcached active. I've setup a couple of test blogs with WordPress 3.2.1 and everything works, and the performance tests seem promising: [CODE] After installing Memcached and php5-memcache packages and enabling the WP Memcache...
It isn't PHP-FPM, it's the Wordpress instance loaded in PHP-FPM. Limit the number of php-fpm workers, or trim down the memory footprint of your wordpress install.
0
2
3,547
2011-08-19T11:51:44.817
infrastructure
serverfault.com
91,147
Problems to understand how to create the input data for time series forecasting with a recurrent neural network in Keras
I just started to use recurrent neural networks (RNN) with Keras for time-series forecasting and I found this tutorial Forecasting with RNN . I have difficulties understanding how to build the training data both regarding the syntax and the format of the input data. Here is the code: [CODE] So in this case 168 hours of...
You should look at the data with Features intact for each step.Featues can't be flattened since each point of time is defined by all the Features. Let's see this snap, The upper table is the data Let's assume we want to predict 2 steps using 3 input steps. So, one instance of our input will have 3 sequential steps havi...
0
0
738
2021-03-25T17:29:00.463
data_quality
datascience.stackexchange.com
922,945
protocol negotiation failed: NT_STATUS_CONNECTION_RESET
This may look like an old thread. But I tried all types of solution which are provided. But no luck. I have a Shared Folder from fileserver(windows server 2012 R2 - default samba 2.1) My client side configurtion are:- Version 3.5.10-114.el6 The packages are installed :- [CODE] The commands which I followed in Linux cli...
On Ubuntu 18.04 LTS I was able to connect with: [CODE] Adding [CODE] and [CODE] under [CODE] of [CODE] caused error, I had to change SMB2_1 to SMB2. After which server said "Failed to connect with SMB1 -- no workgroup available"
3
1
25,683
2018-07-21T05:09:33.797
infrastructure
serverfault.com
1,090,986
unable to connect mysql from gcloud app deployment
Getting below error while trying to communicate mysql database from gcloud django app deploy. Below is the error message: [CODE] Please advise how to resolve it, sorry I am new to gcloud and serverfault
you are using a Cloud SQL instance according to your comments. to connect to it you need: proper service account authorization proper connection between your workload and the SQL if your workload is not in a VM but is deployed into a PaaS (like cloud run) additional steps must be followed like VPC private connector set...
0
0
227
2022-01-24T15:26:34.150
database_errors
serverfault.com
57,325
How can a blocking_session_id be minus 2?
I have a case where a query I'm running is taking a long time. When I checked [CODE] the [CODE] is a negative value, -2 to be specific. The wait is a [CODE] and the blocked command is a [CODE] statement. To the best of my knowledge nothing else is touching that table at the moment. In fact the only active requests are ...
Take a look at this blog post by Bob Dorr: How It Works: Orphan DTC Transaction (Session/SPID = -2) As Bob says, it's a bit of a misnomer that it's an orphaned transaction by DTC, but that is usually how it represents itself. It's due to (as per Bob's words) "NO ENLISTED SESSIONS on the SQL Server but the transaction i...
6
7
1,403
2014-01-22T21:06:24.050
warehouse_errors
dba.stackexchange.com
1,087,968
Optional sysctl configuration parameters
I am working on some automation that sets linux kernel parameters using sysctl. Specifically I am creating a template that can be deployed to systems with a high amount of connections. The automation can be found here: https://gitlab.com/de-groot-consultancy-ansible-roles/sysctl-configuration-management On a Debian 10 ...
[CODE] has an option [CODE] | [CODE] to ignore errors about unknown keys.
0
0
414
2021-12-22T09:52:49.140
pipeline_ops
serverfault.com
1,111,491
Blocking SSH access from WAN side of CISCO 890 to management plane
I've been round about the houses with this one for days, i've not found a solution yet that works. I haven't found a way to block the HTTP access to the management plane either, i had to give up and disable it completely. In my show run: [CODE] I've tried putting it in: [CODE] this still allows ssh access from the wan ...
I think i've just got it (partially). In case this helps anyone also ripping their hair out over this. So I had a vlan1 configured with: [CODE] And essentially this was my internal network. I then decided to put: [CODE] In other words i connected the management interface to the vlan1, rather than the ethernet port whic...
1
0
606
2022-09-24T21:47:11.440
infrastructure
serverfault.com
348,958
What is this curve related to bugs and testing called?
What is the curve below called (if it has a name)? What can you generally infer from such a curve? The line with negative slope is the number of remaining test cases and the line with positive slope is the number of bugs .
It looks like a couple of graphs. Graphing the number of bugs over time is called defect arrival. If this is a count of total bugs (open, closed, deferred, etc.), this graph is showing a more stable system. Early on in development and test, issues will be found and recorded. Eventually, closer to release, the number of...
1
2
1,113
2017-05-14T22:15:37.103
api_errors
softwareengineering.stackexchange.com