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
335,081
When to ignore errors that are common and the program recovers from
I have a program that makes hundreds of daily CURL requests, SMTP request, and other requests. Less than 1 percent of the time, a CURL or SMTP request will fail. Best I can tell, the cause of the problem is external and can not be fixed to be 100% reliable. My program is always able to recover from it and no human inte...
Depends on your application. The E-Mails might be useful for a statistic but if not, I would avoid this spam. What I do in similar cases: Send a summary once a day to be informed how well your program performs (and that it is still running). I would only send an email, if the error-rate exceeds a preset limit which ind...
8
13
1,165
2016-11-01T12:27:57.727
api_errors
softwareengineering.stackexchange.com
878,968
Exchange rule regex on sender name not address
In Exchange 2013, is ist possible to create a Transport regex rule based on the sender name, not the sender emailaddress? The goal is to identify fake senders, using the name field for a fake emailaddress. Normal: "John Doe " Bad: "trustful@mail.com " The very goal would be to identify two @ in the Sender, an exception...
I'm afraid not, there's no special rule action to compare the sender name and its email address, also it's not a valuable way to prevent "fake" sender. Instead, the SPF record will be used to declare and verify who can send e-mails from a given domain. Thus, we can use it to detect and prevent spoofing message.
1
1
69
2017-10-17T22:08:02.887
infrastructure
serverfault.com
295,584
php cli memory limit
I am getting a memory error in a php cron job: [CODE] The applicable parts of the crontab are: [CODE] I am running on Debian Squeeze, fully updated. The obvious solution would be that the cli has a low memory limit (of 64MB). However, /etc/php5/cli/php.ini says it's unlimited. [CODE] I read somewhere that it could be d...
IIRC, an unlimited memory_limit isn't supported by the CLI (I'll try to find a source for this) but for now, try passing it into the command: [CODE] UPDATE Apparently I was dreaming about the unlimited memory_limit not being supported for php cli. Regardless, it looks like the value from the ini is ignored. The simples...
67
150
206,655
2011-07-29T17:15:22.837
infrastructure
serverfault.com
204,649
Syntax error on declaring a variable inside a transaction
I want to create a variable inside this transaction but I'm getting [CODE] . The variable needs to hold the value of the [CODE] of the newly created message. This seems to be the cleanest and race condition resistant way of doing so, but I don't know how to correctly declare the variable. [CODE]
Try using a declare block before the main block: [CODE] If you need this as an anonymous block (not in any function, etc.) also read about [CODE] .
0
2
12,920
2018-04-22T16:55:09.363
warehouse_errors
dba.stackexchange.com
458,402
Cannot SSH into Virtual Machine
I am running a CentOS VM on my desktop that I use for development testing when coding in python. At my school I have a dedicated IP setup for the VM and my desktop so I never seem to have an issue ssh'ing from desktop into VM. I am now at home for winter break and cannot seem to SSH into the VM using the local ip addre...
Check VM setting Check your VM can ping any public IPs, such as 8.8.8.8 Check your VM can your home router external/public IP (make sure you enable ping response on your router) Check Rrouter setting Check your VM IP is correctly setup on your port forwarding rules Check Host machine setting Check your desktop firewall...
1
2
8,021
2012-12-15T19:31:18.873
infrastructure
serverfault.com
442,285
Efficient static race detection
I am supervising a university project on the topic of race detection for multi-threaded processes with shared memory. We have a complex algorithm consisting of tens of thousands of subtasks, and we are given a dependency graph over these subtasks. Our goal is to ensure that the output of the algorithm is deterministic,...
we want to understand how such a problem would be tackled in the industry The typical approach is to either avoid shared memory in the first place, using things like immutable data structures. Or ensuring execution of critical sections are ordered, by using locks, and making sure the behavior of code is correct regardl...
-2
4
87
2022-11-16T13:02:16.450
api_errors
softwareengineering.stackexchange.com
141,189
How do I install automake and autoconf on RedHat Enterprise 5?
I am attempting to install "uploadprogress" for a PHP application, and have failed on dependencies. Firstly, on phpize, then php-devel, then on autoconf and automake. I have tried yum, and various repositories, with no luck. I think it's to do with the ultra-tight but annoying set up they have on Rackspace Cloud server...
These should be installable via yum and the base RHEL repositories. Have you tried querying if they are already installed but not in your path? Also, have you successfully installed anything via yum? To check what package you need to install: [CODE]
14
24
78,915
2010-05-12T16:59:57.797
infrastructure
serverfault.com
336,185
MySQL services fails to start successfully after copying MySQL Data Directory from another server
Purpose 1 - The running application should not be stopped and run 24*7 while backup or copy MySQL data directory (/var/lib/mysql). Purpose 2 - To backup MySQL files directly and copy on another server as backup restoration so as to access same database on another server successfully. Activity - I am trying to compress ...
Can anyone please suggest how can I take MySQL data directory backup with mysql services running and restore on another server successfully with guranteed success? The server needes to be stoped to perform file system-level commands (such as cp, scp, tar, rsync). See Backup and Recovery Types for further details. As pe...
0
0
35
2024-02-23T13:56:01.943
database_errors
dba.stackexchange.com
498,649
List linux users
I need to find a group in linux that doesn't appear in my /etc/groups file. I run the following command and get an error [CODE] Yet when I run the following command, there is no group git [CODE] This is a brand new Ubuntu 12.04 box with no changes except it was tied to LDAP. Haven't even installed vim or git yet. Why a...
Check [CODE] , specifically the [CODE] line. Also check the output of [CODE] To find out why you get the error about the group already existing. Reference: [CODE] and [CODE]
0
4
296
2013-04-12T05:27:42.227
infrastructure
serverfault.com
1,130,980
postfix-gmail problems: This mail is unauthenticated, which poses a security risk to the 550-5.7.26 sender
Can someone help, who had that problem too? Postfix and Dovecot is freshed installed and configurated for SSL but if i try to send an email to my gmail account i get that error msg. [CODE] I know, I know. Read the manual https://support.google.com/mail/answer/81126#authentication what I do, but its a bit hardcore becau...
Your solution is to pretty much exactly what Google has recommended you do. Yes, that absolutely would involve understanding a number of supplementary (to SMTP itself) technologies. It is hardcore, at least in the sense that in today's world you are not left with much choice other than setting up and complying with (at...
-2
0
12,056
2023-05-12T09:24:46.853
api_errors
serverfault.com
153,407
SQL Availability Group Validation Error
I am trying to add a replica in a different subnet to my availability group and keep running into an error. I have confirmed the default file locations are the same on both servers but can't figure out why I am getting this error.
This isn't saying the default file locations need to be the same, this is saying that you don't have identical paths for all files in the database(s) on the secondary server. Example: [CODE] You'll notice that the secondary replica is missing [CODE] The fix is to make the secondary have identical paths for the database...
3
6
137
2016-10-26T18:17:51.640
data_quality
dba.stackexchange.com
716,398
Server not sending ICMP echo reply
I'm having a weird problem with a CentOS 6.6 machine. It is a server running KVM and a few guest VMs using a bridge interface. Basically, my issue is this: The VMs on this host have no network connectivity issues at all, I can ssh to them and ping them just fine. The host, however, can pretty much only communicate with...
It seems like this could be a routing issue. Since the VMs inside KVM can route independently of the host, the issue is not going to be your physical network connectivity, but rather your logical network connectivity. Check your default gateway and static routes, make sure those are configured properly. If your host ca...
4
3
6,736
2015-08-24T18:27:25.307
infrastructure
serverfault.com
1,107,733
iptables: force reconnections of existing connection allow new connections
I'm trying to implement a transparent http proxy using iptables. The following rule redirects traffic from port 80 to 8080 (the port the proxy is listening to) [CODE] This works. The problem I have is that it only works for new connections. Therefore, I'm trying to force existing connections to reconnect and once conne...
In a stateful netfilter (iptables) firewall you flush the connection tracking cache with [CODE] which will remove all state and information about established connections.
0
0
338
2022-08-09T06:44:28.317
database_errors
serverfault.com
391,962
How can I make my Hyper-V VMs properly save and restart when rebooting the host?
My VMs are configured to save state, and restart if previously running when the host server is rebooted. All of the VMs start up upon reboot... however, some of them start from a cold boot, and not from a save state resume. Why is this occurring? I've searched for any relevant hotfixes, but I couldn't find any. The hos...
Why is this occurring? Your IO subsystem is too slow. Windows is not waiting forever for all the VM's to shut down. Once the timeout is over, it restarts. The only things helping are: Change the timeout - no idea how ;) Restart after patches via script. Save them BEFORE you restart. Wait for 2012. Serve 2012 supposedly...
3
3
7,547
2012-05-23T18:09:08.363
infrastructure
serverfault.com
739,682
Why does `df` indicate no available space when used is much less than total size, on my VPS?
My VPS display this with [CODE] [CODE] Does anyone have a idea to fix this ?
Yes, contact your provider and tell him he has overcommitted his storage and he needs to fix it ASAP. Explanation: With some type of VPS servers, you don't have a disk image with a fixed and guaranteed size. Instead, your file system is really just a subdirectory of a larger file system with a certain quota which is re...
16
16
1,418
2015-11-30T08:13:05.313
infrastructure
serverfault.com
447,499
How I can generate patch from RAD ready to deploy in WAS?
To use update option directly from IBM WAS-ND , I need to generate patch file from RAD ready to deploy ( already packaged ) . Example : After Deploy HelloWord.ear on WAS-ND 7.0.11 , an exception appear , to fix this exception a class x.calss and y.class should be updated ,how i can generate a full patch from this class...
WebSphere doesn't support updating individual class files; the smallest updateable unit would be a JAR file inside an EAR. Once you fixed your code, export the module (in which your updated classes reside) through RAD. Then, using the WebSphere Admin Console (or scripting), follow the instructions to "Update Applicatio...
0
0
259
2012-11-11T06:10:08.327
infrastructure
serverfault.com
208,438
Setting up multiple domains in Exchange as different Organizational Units?
I some questions regarding the above a few months ago, and was pointed to the tutorials below. I have followed the tutorials, but have a few more questions for you experts. http://technet.microsoft.com/en-us/library/bb936719%28EXCHG.80%29.aspx#Optn1 http://technet.microsoft.com/en-us/library/aa996314.aspx To describe w...
I'm not quite sure why you created a new forest (domain3.com) - that seems overly complex unless I'm misunderstanding what you're trying to achieve. On your domain1.com Exchange server, you are able to add domain3.com as an accepted domain and if necessary edit the email policy to include email addresses from domain3 a...
0
2
3,675
2010-12-02T16:55:25.913
infrastructure
serverfault.com
944,074
Configuring subnet between machines with bonded network cards
Two machines have [CODE] configured to access the Internet. Technicians in datacenter say the VLAN is created, I just need to configure interfaces on servers to work with it correctly (create a subnet). What I have right now: [CODE] Even though [CODE] service starts normally, I can't ping the [CODE] machine from [CODE]...
Try to use the dot notation to specify the tagged VLAN: [CODE] If this does not work, check TCPDump to see what actually goes in the wire and if packets are tagged or not. Also make sure you have vlan support enabled in your kernel.
-1
0
83
2018-12-12T19:21:55.657
infrastructure
serverfault.com
11,581
What's a good indexing scheme for a type-2 SCD table with a very broad natural key?
I have a table which links several fairly long text fields (~100 chars) to a single text field: { A, B, C, D } => E. The dependent value can change, so I query data daily and record A, B, C, D, EffectiveDate, E. My design right now has a clustered PK on { A, B, C, D, EffectiveDate }, in that order. I had thought that I...
Look at the order of the column indexes and ensure the most selective are first [CODE] Then, read this around memory allocations for varchar columns in queries: SQL Server VARCHAR Column Width (follow Martim Smith's link) Finally, you could use HASHBYTES to collapse the columns into a hashed computed column. You can ad...
2
2
633
2012-01-25T18:58:04.933
data_quality
dba.stackexchange.com
72,062
Conditionally sum a column based on a mod result
I have the following query: [CODE] Which returns results like these: My problem is: I need to conditionally "merge" two rows into one when the mod of the a.lrdarc is equal to 1. If this condition is not filled (ie the mod is 0), then it should show the column without doing anything. I've been trying to do this for a wh...
As my boss stated, all I had to do was edit the inner statements instead of trying to manipulate the results on the outer query. We managed to do what I needed with this: [CODE] Note that the select from the most inner query, where we've added this: [CODE] This solved the problem.
2
3
1,642
2014-07-22T12:48:33.343
warehouse_errors
dba.stackexchange.com
292,144
Filter index slow initial use
I have a filtered index like this: [CODE] and a query like: [CODE] This query scan idx1 which is fine as this index is only a few rows (max 400 or so) the underlying table is millions of rows. The first time this query runs, it runs painfully slow (almost a minute) but the seconds time it runs it does so in 20ms. Can s...
Very selective partial indexes tend to get bloated quickly, because the table autovacuuming is triggered off the percent turn over in the table. But 20% turn over in a table can mean many thousands of percent turn over in the partial index. Nightly reindexing can also solve the bloat, but it won't stay solved for long ...
0
0
56
2021-05-24T09:00:50.157
database_errors
dba.stackexchange.com
915,445
multiple URL based reverse proxy
After quite some time searching the Internet, I'm still struggling to configure my Apache Proxy virtual-host. My setup is quite simple: server hosts several NodeJS-express apps one hand-made REST API (listening on port 8080) one adminMongo (listening on port 8081) Apache listens on port 80 and is accessible at 10.8.0.1...
The main problem is that when I try to GET http://10.8.0.01/mongo/ I'm redirected to http://10.8.0.1/app/login/ (the express-app is doing this) which gives me a 404 error since my Apache has nothing to serve at /. This expected because of how you've configured it. This is even mentioned in the post you referenced: But ...
1
0
2,414
2018-06-06T12:16:56.777
database_errors
serverfault.com
620,458
AD Sites & Services - KCC Auto Generated Connections
As I understanding it, the KCC will auto generate connections for replication. I was told by a co-worker that this only occurs for the first 5 domain controllers, which is why he has manually created additional connections. Is this correct? If so, can someone point me to the technet article related to this? Are AD is r...
As I understanding it, the KCC will auto generate connections for replication. Overall, yes this is correct I was told by a co-worker that this only occurs for the first 5 domain controllers, which is why he has manually created additional connections. This is incorrect . The Knowledge Consistency Checker runs on all d...
2
2
6,310
2014-08-14T15:12:22.810
database_errors
serverfault.com
48,885
Apache mod_headers not working
I have a Rails application served using Apache 2 and Phusion Passenger. As a security measure I'm trying to supress all server-related HTTP headers. I've successfully turned off the Apache ones, but I'm having trouble using [CODE] to supress the Passenger ones. I've enabled [CODE] using the [CODE] command and restarted...
From the mod_headers docs : The directives provided by mod_headers can occur almost anywhere within the server configuration. They are valid in the main server config and virtual host sections, inside , and sections, and within .htaccess files. If you want this to apply to the whole vhost, why put it inside [CODE] tags...
3
4
11,710
2009-08-01T18:31:23.973
infrastructure
serverfault.com
291,473
NT SERVICE\MSSQLSERVER cannot be found to add as user for file permissions
I need to give the NT SERVICE\MSSQLSERVER account permissions on a folder to be able to move and rename some files. I'm getting an access denied error. From the SQL Configuration tool, the services is set up like the below image. What else has to be done to make this appear as a user account?
I was able to sort out the problem. Apparently the server name was changed after SQL Server was installed. We had to update the server name. [CODE] - showed the old server name. We ran the following to update the DNS in SQL server: [CODE] After which we restarted the DB server and verified that the name was correct. Af...
6
2
28,554
2021-05-12T22:19:59.953
warehouse_errors
dba.stackexchange.com
877,565
How quickly and efficiently the OS can free up the cached RAM?
I know about the concept of "Free RAM is wasted RAM". My question is how quickly and efficiently the OS can free up the cached RAM, so that apps have enough RAM in time of a spike in usage. We have a web app hosted in linux. We normally have 10-20% memory utilisation. But we see spikes up to about 100% when certain par...
Yes it means the OS has cleared all the memory it used for filesystem caching. Basically your webserver/app is doing a [CODE] for a certain amount of memory and the kernel frees the memory and gives it to the app to use. This is an atomic call and doesn't block the app at all. You simply need more memory in the server ...
1
1
83
2017-10-09T09:19:09.003
infrastructure
serverfault.com
994,084
Client PCs cannot connect with DCs on specific ranges
Sometime last week (while I was on leave) something changed in my network/domain which I cannot pinpoint and we have the below behavior. My 2 DCs are 2008 R2 and are on a 10.2.128.0/24 subnet (as well as other servers). My clients reside on a 10.2.132.0/22 network. When a client is on 10.2.132.x address in works ok, wh...
Is the 10.2.132.0/ 22 subnet defined in AD Sites and Services and assigned to a site? Maybe someone typoed /24 instead or intended to break it down to class-C subnets and didn't add the additional subnets to the site definitions. Are the clients registering themselves in DNS on the DCs? IF DHCP is doing it, the clients...
0
1
180
2019-12-03T06:19:57.117
database_errors
serverfault.com
219,173
Configure postfix to filter email into hold queue
I would like postfix to send all emails received on SMTP off to an external process, which will decide whether to allow them through as normal, or whether to put them into the hold queue (or another quarantine area), where they have to wait for admin approval. I was thinking of doing this with an after-queue content fi...
This is actually the way MailScanner works, so it might be an idea to have a look at the setup documentation for MailScanner/Postfix here . Basically, all email is sent to a hold queue, MailScanner scans it, and anything that's passes is put into the outbound queue. Hopefully, ignoring the MailScanner specific parts of...
1
1
3,392
2011-01-05T21:57:13.843
infrastructure
serverfault.com
551,015
Apache forbidden with dot in url
I am trying to access url: http://www.domain.com/data/images/.mthumbs/thumb-image.png I know that this file definitely exists and correct permissions for reading: /data/images/.mthumbs/thumb-image.png But when I view in url apache give forbidden error. Could it be because of the .mthumbs
Such files are hidden files in linux, by convention, and security-sensitive files ( [CODE] and [CODE] in particular) begin with [CODE] . Additionally, a popular though outmoded exploit once involved putting [CODE] in paths, and the use of [CODE] in paths could in some cases be used to foil access rules. For these reaso...
4
5
8,409
2013-11-06T08:17:13.083
infrastructure
serverfault.com
561,587
how to test/verify OPTIONS method after disabling on apache2 webserver
i have this issue with web application inspection software. the recommendation was to disable [CODE] on the webserver. upon research. i have included this snippet on my [CODE] then restarted the server. [CODE] how can i verify if the code is implemented and will block all OPTIONS request? i have tried this [CODE] but a...
Rather than using mod_rewrite, you should be able to disable arbitrary methods using the Limit or LimitExcept directives which are designed to to just what you want. You can test using nc or telnet to talk directly to the httpd process [CODE]
2
2
9,634
2013-12-16T07:05:04.113
infrastructure
serverfault.com
597,395
Configuration Manager (SCCM) Clients not updating their status
I have issues where the configuration manager CAS server is showing the clients as "Pending System Restart". When you look at the client it's referring to, it shows the status as having been sent, and no status of restarting pending is shown in the registry (client was restarted anyway). Re-running the summarization an...
Found a script that does fix the issue most of the time. This was buried in the SCCM 2012 unleashed book. Copy this to .vbs, run it on the client machine having issues. Then restart the sms service and re-run your cycle (software update, etc). That should force it to recheck it's check state. [CODE]
3
2
24,238
2014-05-21T05:50:27.217
infrastructure
serverfault.com
369,362
Is it possible to detect if visitors coming to my website are using a VPN?
I'm running Apache 2.2 on a linux box. Is there any reliable way of detecting if a visitor to my website is connecting from a VPN? I've heard of attempting to open a tcp connection on the remote ip address, which can sometimes identify the user as using a proxy. But could the same method work with VPN users?
Plain and simple - you can't. There are way too many types of VPN, way too many providers, and overall way too many variables here to be able to reliably tell if someone is using a VPN.
1
6
2,436
2012-03-13T21:47:10.493
infrastructure
serverfault.com
826,982
EC2 instance sends mail for every succesful or failed cron job - how to stop that?
We receive hundreds of mails every day from the cron deamon to root@company.com. How can I stop that? Those mails refer to custom cron jobs set up by us - as well as others set up by AWS. The mail subject looks as follows: [CODE] I read this is default behavior but I can't find a way to switch it off. Neither [CODE] no...
You have a few options. You can set a [CODE] variable at the start of your crontab to specify an e-mail address other than root@ or send it to a non-existant e-mail account. You can use output redirection, so you could send everything to /dev/null by adding [CODE] to the end of your cron jobs. Or you could use some com...
1
3
3,798
2017-01-18T11:10:11.950
infrastructure
serverfault.com
213,661
Disconnect from PHP after output generated
I have a LEMP stack. Nginx sitting in front of PHP-FPM. Because some of the sites are heavy and there's OPCode caching, PHP is set up so that there are only 5 child processes running. The aim being that each child can deal with any request in less than half-a-second and then move onto the next request. One problem I've...
If you use nginx as a reverse proxy then that will be handling your slow clients. It would receive the result from the backend and after that continue streaming to the client at whatever speed the client can handle. In general a reverse proxy basically connection management, sparing your backend of holding thread for a...
0
0
303
2010-12-17T13:59:59.567
infrastructure
serverfault.com
151,963
File Upload Forms: Security
SO I'm building an application for uploading files. We're paying scientists to contribute information on pests, diseases and bugs (for Plants). We need the ability to drag and drop a file to upload it. The question becomes since the users will be authicentated and setup by us, will it be necessarcy to include a virus s...
Yes. Always. Never consider not scanning the files. The scanner may not be perfect, but at least you have something that can be updated when new "bad file" cases are found, rather than nothing at all. The people uploading the files might be, under good intentions and unknowingly, uploading a file that has a virus or ma...
3
4
168
2012-06-07T21:06:01.193
api_errors
softwareengineering.stackexchange.com
729,132
Cannot add soap sensor in prtg monitor
I have a problem with my PRTG monitoring system. I need to monitor my server running VMware ESXi. My ESXi config : [CODE] (sorry for x.x.x.x and ... is secret) In prtg web I configure the same community string, port, type of snmp version. But when I add sensor VMware Virtual Machine (SOAP), it has a error : [CODE] So, ...
This sensor is using SOAP and not SNMP, so your SNMP settings won't matter here. In PRTG you have to enter the ESXi credentials, not the SNMP community password. Are you sure you meet all requirements for this sensor? https://www.paessler.com/manuals/prtg/vmware_host_hardware_status_soap_sensor Requires .NET 4.0 or hig...
1
0
2,813
2015-10-15T09:44:58.540
airflow_errors
serverfault.com
119,736
Is Database Mail worth the risk / a standard practice
I enabled [CODE] and was testing it on my dev machine. I was just wondering if the [CODE] is a bad security choice, and if it more secure (or standard practice) to send this kind of message via an application server (ColdFusion or PHP)? I would be using the [CODE] for DB backup/restore messages, errors or error checkin...
While your question would probably be borderline duplicate of this one , I'm not real fond of the answer to the other question as it does not go into to much detail of the security risk. Database mail is configurable to include who can use the profiles/accounts created. You have the following security measures when you...
1
7
4,159
2015-10-31T19:40:50.263
database_errors
dba.stackexchange.com
154,327
Cassandra - Why does Read/Write Latency fluctuate?
Question Why does write (read as well) latency fluctuate in Cassandra? Background Running Cassandra Stress Tool on a node (s01) against another node (m01). Run several times but always saw the latency (write as well as read) always flucuating. The metric is from Cassandra JMX oneMinuteRate of the keyspace. [CODE] The r...
I did not fully understand the stress test was doing. It was stepping up the number of threads, hence the load was stepping up, causing the latency stepping up too. [CODE] Because I repeated the test 10 times back to back, there were 10 peaks.
4
3
1,512
2016-11-05T01:19:42.110
database_errors
dba.stackexchange.com
53,971
DB2 Client v9.5 on Win 2003 Taking Long time to establish Connection
I have a ASP.NET application running on Windows 2003 that needs to communicate with a DB2 database that resides on the mainframe. We installed DB2 Client driver v9.5 on our server so the application can perform the connection and work with the database. The connection string to connect to the database contains the user...
In the db2 client configuration setup there are sever options for authentication. The descriptions on the options are confusing. The default is "use authentication define in servers dbm config". On the client the "servers dbm config" really means the local machine. If your local machine is microsoft windows then the co...
0
1
1,393
2009-08-13T21:26:27.503
api_errors
serverfault.com
247,883
Problems with sendmail on CentOS 5
I am running a server with CentOS 5 with Plesk 10.1.1 (64-bit). The only change to the system recently has been upgrades to Plesk. I am having awful problems with doing a mass mailing recently. When I run a test script using the php mail function in a simple script it takes 5 seconds to complete ( sending one email ). ...
Remove your host's name (s15321728.onlinehome-server.info) from the 127.0.0.1 line in /etc/hosts
1
1
661
2011-03-16T00:28:25.317
infrastructure
serverfault.com
189,361
Building automated unit tests for tools which don't have an xUnit implementation
Preamble I have been bitten by the bug of automated unit testing. I feel the benefits and the confidence in a code base it can deliver. I am also feel I have a reasonable intuition as to what parts of the code deserve to be unit tested. Code that has logic, code that might be messy (because it's dealing with some messy...
The distinction is not about object-oriented or not, but rather about testing individual functions ("white box testing") versus complete programs ("black box testing"). And it's not so much separate cases as a continuum in which various techniques are mixed and matched. The tools are also not monolithic. An testing fra...
1
2
392
2013-03-05T19:57:58.017
data_quality
softwareengineering.stackexchange.com
458,809
Linux buffer memory always stays at zero
One of my hosted server is a Xen guest running Debian and linux kernel 2.6.32 then 2.6.38. It has been running fine for quite some time (more than a year) but I recently noticed something weird. For a few months, the part of the memory allocated to buffers (disk I/O, network) always stays at zero. The output of free is...
buffer memory should not be 0, technically, unless the server is idle and doing absolutely nothing. Still then I would expect some buffer usage. You say that you are noticing this recently. Have anything changed in the server recently. You are swapping a bit, which could have a detrimental effect on performance but tha...
3
1
1,444
2012-12-17T19:39:59.710
infrastructure
serverfault.com
201,341
Server 2008R2 System Crashes when a non-local user logs in
I have a Server2008R2 box that is rebooting at "Applying Registry Settings" whenever an active-directory user logs in. If I remote in as myself it crashes, if I log in from the console as myself it crashes, but I can log in remotely and locally as the local admin account. The stop error is: [CODE] A few seconds later i...
These sorts of BSODs are very hard to troubleshoot. If the fault uploader to Microsoft isn't giving you anything useful, it gets worse. In this case DRIVER_IRQL_NOT_LESS_OR_EQUAL is a pretty generic error. A lot of the Microsoft KB articles that touch on a stop-code of D1 also link to hotfixes, but figuring out which o...
0
0
291
2010-11-13T00:01:42.373
infrastructure
serverfault.com
129,325
Max redo speed on replica side in Availability Group
I heard about maximum 50 Mb/sec for receive and 50Mb/sec for redo. But really, I have only 20Mb/sec redo speed. This is speed from Perfmon, so I know about the following issue: AlwaysOn Availability Groups log_send_rate As I know redo operation depends on CPU and for SQL Server 2012 it's run use only one core of CPU. I...
"Heard about"? From where? As far as I know this is dependent on local factors such as raw disk subsystem capability, controller capacity, concurrency, type of data being logged, etc. etc. Redoing large index maintenance operations on AGs is definitely a known issue. This post certainly admits as much and suggests ways...
1
3
768
2016-02-15T18:32:57.220
database_errors
dba.stackexchange.com
81,167
Is any feed-forward neural network a composable function?
I am wondering if each feed-forward neural network can be written as a composition of the layer functions. So if $F(x)$ is the output of a neural network F, do always exists layer functions $f_1$ ,..., $f_n$ with $F(x)$ = ( $f_1$ o .. o $f_n$ ) $(x)$ ? Here "o" denotes the composition symbol. If the network consists on...
I suppose you could write $ h\circ [g\circ f\ |\ f]$ if you argue that matrix augmentation is itself a multivariate function. But to avoid pedantic arguments, you could use multivariate function composition (although it is uglier). Define a multivariate concatenate function for column vectors: $ c(\vec{x_1},\vec{x_2},....
2
1
94
2020-09-03T11:48:17.457
data_quality
datascience.stackexchange.com
746,669
IMAP authentication issue with roundcube + postfix + mysql + ubuntu mailserver
This problem is driving me insane and I'm now stumped. Need some help please ;) I'm setting up a mail server on an Ubuntu 14 AWS EC2 instance using mysql backend, postfix MTA and roundcube webmail client. Everything is working up to the point of logging in via roundcube. ie, I can send and receive mail from the shell w...
Copy and paste the SQL from these logs into your [CODE] client (CLI). I'm thinking that lone [CODE] is causing issues as the string is read from the config file. Perhaps a [CODE] But, shouldn't paths be using a [CODE] ?
0
0
1,312
2016-01-04T18:06:04.407
api_errors
serverfault.com
49,347
Acceptance Testing & Scrum - How do you handle bugs that occur during acceptance testing in parallel to ongoing/upcoming sprints?
Details In the ideal Scrum world, no errors occur in shippable code that has been successfully unit-tested; that this is no longer the case in reality, at the latest after a first manual acceptance test, is, I think, more in line with all of our experience. My question now is: How do you handle bugs that occur during a...
Henrik Kniberg is generally right. When a defect is found after the work is considered "Done" and is in some downstream activity, like UAT, put any issues found on the Product Backlog and order them based on when the team should be looking at them. The team can refine them and start work on them when it makes sense to....
2
4
427
2021-11-15T07:16:01.653
data_quality
sqa.stackexchange.com
167,701
install SQL Server 2008 R2 on Chinese Vista fails: Checks if existing performance counter registry hive is consistent
PerfMonCounterNotCorruptedCheck Checks if existing performance counter registry hive is consistent. Failed The performance counter registry hive is corrupted. To continue, you must repair the performance counter registry hive. For more information, see http://support.microsoft.com/kb/300956 . The link totally doesn't h...
try setup.exe /ACTION=install /SKIPRULES=PerfMonCounterNotCorruptedCheck to bypass that check
1
1
1,522
2010-08-06T07:42:06.317
data_quality
serverfault.com
459,475
AWS - point my zone apex (mydomain.com versus www.mydomain.com) to Elastic Load Balancer
I'm having trouble setting up an Route53 Apex Zone that point to an ELB and works on www and non-www domain names. The domain name is datingjapan.co In Route53 I have clicked new record set added the name www (I read to leave this blank but found the DNS lookup failed for www.datingjapan.co). clicked Alias and then in ...
added the name www (I read to leave this blank but found the DNS lookup failed for www.datingjapan.co). While for most sites they point at the exact same thing, www.example.com and example.com are technically entirely separate records. You need a record for both www and non-www. Create another [CODE] record with the su...
0
1
163
2012-12-19T21:12:40.967
database_errors
serverfault.com
46,667
How can I measure the reliability of the specificity of a model with very small train, test, and validation datasets?
Stats newbie here. I have a small dataset of 646 samples that I've trained a reasonably performant model on (~99% test and val accuracy). To complicate things a little bit, the classes are somewhat unbalanced. It's a binary classification problem. Here is my confusion matrix on training data [CODE] on testing data: [CO...
Real world data is "test dataset", right? Data has to be divided in such a way that train-validation see part of data more than once while test data will be seen only once. In that sense, if the model is robust enough, it will perform well even on the test dataset. The assumption is that test data is as close as possib...
0
0
219
2019-03-04T22:30:23.657
data_quality
datascience.stackexchange.com
186,086
What to learn and how?
I am a Java (Web) Developer. Having knowledge about c#, PHP and Ruby. I am getting confused how to keep myself updated with very fast changing the programming language and their implementation. Like, in the mobile, you can see around 7-8 OS. There are very much finer example of event-driven programming to make scalable...
Like, in the mobile, you can see around 7-8 OS. There are very much finer example of event-driven programming to make scalable application like node.js, Ember, Require etc.. Then WebSockets, Socket.io, HTML5. Try to be a master of one trade (the trade you works with), then try to be a jack of others . How much you try ...
-1
7
374
2013-02-06T08:45:32.927
api_errors
softwareengineering.stackexchange.com
366,285
A script that verifies that Apache (or any account) has proper permission to navigate to a directory
It seems that Apache needs at least read and execute permission to all the sub-directories of a path in order to serve the files in the directory. Does anyone have a script or one-liner that could verify this? I was thinking perhaps a [CODE] script that will [CODE] and then attempt to navigate to each directory in the ...
For Debian: [CODE]
1
6
410
2012-03-04T21:20:51.283
infrastructure
serverfault.com
487,854
Strange IO issue with Ubuntu 12.04
I have a very strange IO issue with Ubuntu 12.04 and MySQL. Currently the machine is only a replicated slave with an occasional read query hitting it. The disk utilization spikes randomly and seemingly unrelated to MySQL usage. The machine is only running MySQL and has no other services. Originally the machine was usin...
It sounds like what you want to know is which process is pegging disk IO. Fortunately, Ubuntu has iotop available via [CODE] since Lucid/10.04 . Since your IO spikes can last for minutes or hours, it should be relatively easy to detect the next IO spike, start up iotop, and identify the culprit process.
4
1
307
2013-03-14T16:38:36.890
database_errors
serverfault.com
179,983
Why does Bitlocker intermittently require SQL service restart after sleep?
I have a development machine that has two drives: [CODE] I recently activated BitLocker on both drives, then activated auto-unlock because I realised that SQL Server can't access the databases unless the drive is unlocked. Now with SQL (and only SQL, all other services/programs are fine), on an intermittent basis I see...
If somebody have the same problem: Open Services and change Startup type from "Automatic" to "Automatic (Delayed Start)" and be happy. And one more... you should delete password for bitlocker on drive D
1
0
566
2017-07-17T08:13:41.627
database_errors
dba.stackexchange.com
1,125,263
Spamassassin not scoring correctly
I have Spamassassin running on a Ubuntu/Plesk server. It was working relatively well until recently but now seems to be letting through random spam messages. These messages seem to trigger plenty of rules but the score is still coming in really low. I have lots of custom scores defined and they are very much on the hig...
[CODE] and [CODE] are normally considered negative indicators for spam, and carry a negative score. [CODE] has a default score of -5. So ending with a score of 0.2 sounds reasonable.
0
1
587
2023-03-03T22:07:37.223
infrastructure
serverfault.com
287,654
How to write tests that make sense for visualization software?
I have a fairly large piece of software which takes certain file types and visualizes them / creates a host of buttons for manipulation of the image plotted. I feel like I'm finding bugs / pieces of code that don't actually work once a week, but I'm struggling with understanding how can I write tests for this software?...
There are a couple of things you can do to make testing software like that easier. First, try to abstract as much as you can into layers that aren't visual. That will let you just write standard unit tests on those lower layers. For example, if you have a button that performs a certain calculation, make sure you have a...
9
10
1,357
2015-06-23T19:15:09.193
data_quality
softwareengineering.stackexchange.com
116,427
Error 134 in a MySql table
I have a file (mysql error file) full of this message [ERROR] Got error 134 when reading table './xxxx/wp_options' I don't really know how to fix this problem
[CODE] Solution : You need to run a table(s) repair on the database Identifying table corruption Checking tables There are three ways to check tables. All of these work with MyISAM tables, the default, non-transactional table type, and one with InnoDB, the most mature of the MySQL transactional table types. Fortunately...
2
2
1,980
2015-09-29T08:47:46.387
database_errors
dba.stackexchange.com
69,322
What is the difference between Com_xxx and handler_xxx?
Initially my [CODE] variable and [CODE] variables are nil. [CODE] then I issued a delete query [CODE] when I checked both the variables it changed to 1. My Question is what these variables differentiate ? I'm using MySQL 5.6
Com_delete is number of times a user sent DELETE command to MySQL. Handler_delete is number of times MySQL server sent delete handler to a storage engine via internal API To illustrate the difference here's an example: [CODE]
1
5
283
2014-06-30T05:12:39.683
database_errors
dba.stackexchange.com
197,616
Why provide database name when starting postgresql base backup
According to the postgresql 8 manual, before starting a base backup (i.e. copying the files out of the data directory), you need to issue a command like this: [CODE] But, since the postgresql files in the data directory contain ALL databases held by postgresql, what is the point of specifying DATABASENAME? (eg: mydb). ...
Because you must connect to a specific DB in all cases. In psql if you don't specify a database it tries to connect, at least in *nix (any Unix like OS), to a database with the same name as the user in the operating system. Not sure Windows, but I would think it probably behaves the same. The authentication mechanism d...
0
0
45
2018-02-11T14:04:36.853
database_errors
dba.stackexchange.com
115,765
When running a script with several commands, how to find out where we're at?
I have some processes that require different steps to be taken before they start. For example: Disable check constraint on foreign key: [CODE] This will produce a big list of statements, I am copying only 3: [CODE] If I was to run that on one go, how would I find out where I am at? which table I am dealing with, and wh...
I agree with Aaron that [CODE] can be very useful and is probably the way to go if you have full control over the script that is being generated. However, if a long script is currently executing and you don't have the ability to change the script in order to add [CODE] calls, there are also less direct ways to get this...
7
12
307
2015-09-22T13:30:46.833
database_errors
dba.stackexchange.com
799,875
Network printer becomes inaccessable randomly in 2012 R2 RDS sessions
I've recently moved about 40 users onto some new Windows 2012 R2 RDS infrastructure. They are all logging onto their RDS sessions from thin clients with no local resources attached (printers, drives). The network printer connections were rolled out via GPO. The printer shares are from another 2012 R2 file and print ser...
Here is the solution I've come to on this issue. I've removed the single printer deployment setting from the group policy governing the users in question. Its been a week without incident and it directly corresponds with that change. I can not explain how that helped though. The printer setting was a "create" entry. Fr...
1
0
2,247
2016-08-29T23:43:06.267
infrastructure
serverfault.com
287,970
Windows Server DHCP assignment based on MAC of client
I need to serve slightly different DHCP information to clients based on the MAC address prefix. MAC addresses from a particular vendor need to have PXE assigned to a certain host, while all other devices need to receive PXE information for another host. Is it possible to configure or script this to happen automatically...
I think this is what you're looking for. "To configure a new filter [CODE] " "The MAC address can either be the full address or a MAC address pattern (wild card). Following are the valid MAC address wild cards: [CODE] EDIT: Source http://technet.microsoft.com/en-us/library/dd759190.aspx
5
4
8,526
2011-07-07T16:31:55.120
infrastructure
serverfault.com
257,467
-bash: /usr/bin/ruby: No such file or directory
I have installed ruby 1.9.2 on my centos server as per this tutorial - http://blog.jeffcosta.com/2010/09/10/7-steps-to-rails-on-centos/ It says that it should be installed to the following locations: /usr/local/include/ruby /usr/local/bin/ruby /usr/local/lib/ruby /usr/local/share/doc/ruby/html /usr/local/share/man1 How...
I've seen on some linux distros if you don't use the virtual/recommended ruby package the actual filename that gets installed is ruby19x. You can create a symlink to ruby which will clear it up.
1
1
2,862
2011-04-08T18:21:05.763
infrastructure
serverfault.com
373,605
How to deal with exceptions in DLLs?
I recently started working on an existing project written in C++ Builder. The application consists of a MainModule that loads lots of modules (DLLs). The MainModule itself is a DLL (there is a small loader (.exe) that starts the MainModule). The MainModule should not crash if a problem appears in any of the loaded modu...
I see two approaches to your issue: Configure your debugger to break when an exception is thrown and not just on unhandled exceptions. This is the approach I usually choose, but it only works if exceptions are only used for exceptional events and not all the time. So it doesn't appear to fit your application very well....
5
2
8,716
2018-07-05T12:30:05.053
api_errors
softwareengineering.stackexchange.com
227,787
MySQL converting column of type TEXT to TINYTEXT truncates value at non-intuitive position, why?
I recently ran into a problem where a table had a column of type TEXT inadvertently converted to type TINYTEXT (MySQL version 5.6.24). We were able to restore any truncated data, but the confusing thing was was that we only noticed the problem when certain values for the column started appearing to be truncated at seem...
There is essentially no good reason to ever use [CODE] . And there are some obscure drawback. If you are using utf8 or utf8mb4, then you may have "multi-byte" characters. [CODE] is limited to 255 bytes . [CODE] , which is similar in many ways, is limited to 255 characters . If your text is any any Asian language, then ...
0
1
1,706
2019-01-22T18:31:33.923
database_errors
dba.stackexchange.com
419,213
How to avoid duplication with Data Sources
I just started reading The Pragmatic Programmer e2 . I came a cross the topic of avoiding Duplication with Data Sources, which I did not fully understand. The pragraph reads as follows: Many Data sources allow you to introspect on their data schema. This can be used to remove much of the duplication between them and yo...
So, you have an application, and you have a database. Your database table looks like this: [CODE] And your application takes data from this database and works with it. Regardless of how your code is structured, you'll always find that the code needs to know exactly which columns exist on the database table. Whether it'...
1
1
292
2020-11-21T10:27:14.823
pipeline_ops
softwareengineering.stackexchange.com
306,247
Host a PXE or network boot image on Windows 7 LAN?
I've never booted with PXE or network share, but now need to reinstall an OS on my laptop with a dead DVD drive and no budget to replace it. Looking for a free product to host the boot image on Windows 7, then connect to it via PXE or Network Share. I don't know which is better or easier. Looking for advice on that too...
Is there any reason why an USB-based install won't work? It will be much simpler and faster. If it all possible, I would try to go that route. PXEboot can be... er... troublesome.
3
2
3,482
2011-08-29T23:36:26.080
infrastructure
serverfault.com
281,442
Nginx caching webpages? Users have to refresh everytime to see updates on the home and articles
we are having a problem with most of our servers with Nginx +MySQL+PHP-FPM (and WordPress as the CMS): browsers don't show last versions of our webpages. I'll explain it this way: The homepage shows fine the first time our visitors load it. We add new articles and content, and publish it from Wordpress. When a user loa...
You have [CODE] in your [CODE] section and this sets [CODE] header to 31 December 2037 23:59:59 GMT, and the [CODE] to 10 years.
1
4
6,684
2011-06-17T10:02:46.373
database_errors
serverfault.com
382,476
Handling field masks on the statically typed client
Let's say I have a REST API, that has the ability to provide field mask (i.e. the API can return M out of N attributes where M is a subset of N). If a statically typed client (example: one that's written in Java) requests data from this API, is there a way to "gracefully" handle nullability issues. If out of N fields, ...
It really depends on your business logic requirements from the REST API response. Regarding your proposed solutions: I'll advise you to have this checking code outside of the actual logic function, and have the logic function specify a contract/lambda that specify which fields are required for this function in order to...
3
1
121
2018-12-05T02:28:50.057
api_errors
softwareengineering.stackexchange.com
448,926
IIS script privileges with powershell
I've created a script for most of the functions I need when creating a Site for my IIS, however, there is still one thing missing. Namely, I can't seem to find the commands for setting script privileges on a Site. I want all script rights but no execution rights if I've understood it correctly. So, how do you set those...
A new site on IIS 7+ should have it's handler accessPolicy set to 'Read, Script' so that's exactly what you want, no need for changes. If you still want to change it: You could use appcmd.exe from PowerShell: [CODE] More info on TechNet For specific sites this setting is usually set in web.config rather than Applicatio...
0
3
1,518
2012-11-15T08:38:45.507
infrastructure
serverfault.com
945,989
Retrieve data from an HD with vmfs partition
My problem is the following: I have a 1TB HDD with the information of a server that I need now. I do not know what to do to access the information, inside the HDD there is a [CODE] formatted partition that I do not see, and it contains the data I need. I think the problem is in the final limit of partition number 3, bu...
vmfs filesystem is vmware filesytem. It seems that you need to install a vmfs tool to read vmfs from ubuntu, then mount the partition on your ubuntu. download the package: [CODE] s (or apt-get install vmfs-tools on older versions) create the folder where to mount the fs: [CODE] mount the fs: [CODE] you can use lsblk to...
0
0
95
2018-12-19T16:17:07.297
infrastructure
serverfault.com
110,271
Successive Predictions
I am facing a problem which you could abstractly describe the following: I have a pool of possible customers. I want to know if a customer appears during one year. I want to predict the total revenue for each customer for this year. (0 revenue is something different than not appearing) So I have stacked/successive/depe...
I have not had to deal with this exact problem, but the stages you described sound like a variation of Time until next purchase (and then before or after time window in your setting). Check this post as a starting point. Customer lifetime value (except it is not lifetime, but only sales for a given period in your case)...
0
2
86
2022-04-22T13:24:59.737
data_quality
datascience.stackexchange.com
217,326
How to format a date field into diferente languages in the same command? (multiple locales)
The following will return the day in Italian: [CODE] However I need to convert or format the date into multiple languages, so it would return me another column in English, Japanese, so on... My problem is that I have to set the locale BEFORE running the select command.
With a Stored Function, you can get it all in a single [CODE] . [CODE] Caveat: This has the side effect of changing [CODE] .
1
0
2,393
2018-09-11T23:56:10.843
warehouse_errors
dba.stackexchange.com
803,805
Why does my domain have A records for two IP addresses, when I only have one server with one static IP?
Background So, I am using namecheap as my registrar for a domain I'm moving from an old webhost to a VPS server with a different host. I initially had a lot of problems with name resolution (had a correct A record but no resolution after 3 or 4 days). After: changing a CNAME that is apparently required by the registrar...
This is sometimes the way that what are colloquially called ALIAS records for services deployed on a "bare" domain, a registerable entity without a subdomain, are implemented. These names cannot have CNAME records due to limitations in DNS but the desire is for CNAME like functionality, particularly used in geo load ba...
2
1
3,573
2016-09-18T09:49:02.327
infrastructure
serverfault.com
81,542
Is there anything wrong with creating a very large log file?
I've been given the task of finding out why our server is slow. First of all I did not set this server up. Is there anything wrong with setting the initial log file size to 70GB? That's what ours is currently set to, and then 10MB after that. And just so I understand- when a 70GB log file is created, it actually takes ...
There is nothing wrong with setting the initial log size to 70GB, if you need that large of a transaction log. There is a problem, however, with it set to grow in 10MB increments. Such a small increment of growth can result in numerous VLFs (Virtual Log Files) which can result in long recovery of the database during st...
0
0
53
2014-10-31T02:34:02.213
warehouse_errors
dba.stackexchange.com
114,983
Make another column in a table equal to the primary key column
In my notes table (MySQL database) I have id as the primary key. I want the column [CODE] to be the value of the primary key. Here is the query I run after creating a record which I thought would work. [CODE] But I get the error You can't specify target table 'notes' for update in FROM clause Any advice or solutions on...
I explained the error message in an earlier post 4.5 years ago ( Problem with MySQL subquery ) SUGGESITON : Do it as two queries [CODE] or [CODE]
1
1
5,677
2015-09-14T15:47:59.903
database_errors
dba.stackexchange.com
132,889
Mac SMB connections to Windows 2003 server, leaving Open Files
We have several Mac clients (Both 10.5, and 10.6) mounting a share from a Windows 2003 server. At least once a day, our archivist will go into this share to archive items from it, to the backup server. Most of the time, she has no issues: she copies the folder to the archive server, when it's done, she deletes it from ...
I think you might have the right idea. Seems like stopping OS X from sprinkling resource forks is the way to go. Also when you look to see which user has the file open do you check on their local machine to see if there's a process with that file open. My suspicion is a bug is a particular program.
1
0
698
2010-04-15T21:00:50.157
database_errors
serverfault.com
330,801
Samba: How do I set passwords for the users in the username map?
I want to map a large number of login usernames to a few unix users, so I guessed the username map config option is an appropriate way. I enabled it for a particular share in smb.conf: [CODE] and added all the usernames to the map: [CODE] But how do I set the passwords for those users? [CODE] Though it doesn't say so e...
The document you linked to explicitly states Please note that for user or share mode security, the username map is applied prior to validating the user credentials. This means that you will have to set a shared password for [CODE] and make anton, berta, and caesar log in with that password. It works exactly the opposit...
1
2
1,611
2011-11-14T15:37:56.573
infrastructure
serverfault.com
98,269
VPN deployment on software appliances
I'm working on a software appliance based on linux platform. I want to have a secured way of reaching every installed appliance over the Internet for remote debugging and support. In order to traverse NAT and to be able to simply connect to the appliance I was thinking about OpenVPN as a solution. Problem is that I can...
You can generate the OpenVPN client certs on building the image if the server is configured with --duplicate-cn. Then you have networking to the appliances and can get a new certificate signed with a real ca or whatever you want to do... it's probably not a great idea to keep running with a defaulted certificate on eve...
0
0
134
2009-12-30T16:50:36.780
pipeline_ops
serverfault.com
1,010,896
Postfix configuration to send emails from localhost
I want to configure localhost to send emails via postfix server, I do this for testing my solution of setup Docker with Wordpress (with solution found on internet email was not working, also curl but that was because of corporate CA SSL certs). Right now I'm testing this on Fedora and try to send to my two account at o...
Can I just configure DNS on jcubic.pl to verify that my local IP (that's dynamic) is valid? Sending email directly from a dynamic IP might be problematic. You should probably be using your ISPs SMTP servers or through your own email server using submission . Not to mention the IP address is currently on several DNS bas...
0
1
1,804
2020-04-04T13:56:11.340
api_errors
serverfault.com
60,643
What advantages does TFS have over Tortoise SVN in this scenario?
This is neither a Holy War invocation nor is it https://stackoverflow.com/questions/661389/tfs-vs-svn - This question is much more specific and would potentially make a team of developers very happy: I used an earlier version of TFS for two years but I have not used it for years. What advantages does it have over Torto...
Both will do what you need. At my last job we started with SVN and moved to TFS later. Our team consisted of 8 developers and 3 QAs. TFS was nice b/c it had built in VS support, built in ticket tracking, and you could lock files. We also used the SharePoint to keep track of all the documents and meeting notes for each ...
3
14
20,934
2011-03-22T06:19:56.760
api_errors
softwareengineering.stackexchange.com
44,334
How do I serve Ruby on Rails applications on Windows Server 2008?
I have spent the last several hours attempting to get Ruby on Rails running on a Windows server with no luck. At first I tried configuring a test application through IIS7's FastCGI support, but the documentation for this is not very good. I've been following this blog entry , and this one , and this one , and this one ...
Save your sanity!!! RoR for Windows 2008 isn't there yet. Seems like things have barely caught up with Windows 2003. Keep a look out for IronRuby for IIS from Microsoft. It's just not cooked yet though. Until then, find a TEMPORARY solution. Use mongrel and install the prerelease version of mongrel_service to get it wo...
4
6
5,001
2009-07-22T23:18:03.757
infrastructure
serverfault.com
579,328
Switch disks between array controllers
I have an HP ProLiant ML 350 G5, which has an HP Smart Array E200i/128 BBWC Controller embedded. This controller manages two arrays (each with three 72 GB disks in RAID 5 ) This controller has problems. I pretend to connect an HP Smart Array P800/512 BBWC. Do I need to reinstall the OS, or there is a way to assign thes...
The RAID metadata in HP Smart Array RAID array lives on the disks and not the controller. The Smart Array E200i and P800 are of the same generation and are entirely compatible with each other. Dont change the disk order. Obviously, you'll want to do this with the server powered off. You may need additional cabling to a...
3
4
264
2014-03-02T18:51:06.590
infrastructure
serverfault.com
808,629
Sending SecurityGroupIngress to nested cloudformation stack
Not sure if here or SO is the better place to ask this... I'm trying to split up our CloudFormation templates to make them more usable and smaller. I've hit an issue where I wish to use a "basic" security group template that is essentially empty, then reference that along with parameters for each security group I need ...
Unfortunately, CloudFormation is not that sophisticated. You're limited on the data types that can be used as parameters: Strings Comma separated list of strings Various AWS resource types, none of which are ingress rules Instead, try the following: Add parameters to include/exclude your various ingress rules, Move the...
0
0
1,603
2016-10-12T14:56:56.180
infrastructure
serverfault.com
1,154,117
System slow to respond to request. What to do?
I have an application container behind an Nginx reverse proxy. When I access the application via https, the POST request returns 302 and then the GET returns 200. See monitoring via browser: [CODE] [CODE] The system takes a long time to respond. When I have many simultaneous accesses, the POST and GET time increases pr...
Could there be a wrong conversion from HTTP to HTTPS or vice versa? VERY unlikely. Why didn't you test it? Should I change or set any header settings? Not unless your application is looking for different headers. There are lots of words here but very little information. On the one hand, you have a widely used/respected...
-1
2
86
2024-02-22T19:02:19.470
database_errors
serverfault.com
733,985
Are the SID, admin tokens, etc. created on the first boot after SysPrep, before going through setup?
I have a virtual machine running in hyper-v that I would like to clone a dozen times. I ran sysprep, shutdown and then duplicated the VHD, assigning it to the other servers already setup in Hyper-V. Before I copied/assigned the VHD to all the servers, I did "test" it by assigning it to one and then booting into windows...
Yeah, you borked it. The specialize configuration pass runs as soon as the image is booted and this configuration pass is responsible fro generating the machine SID. Lesson learned: Once your sysprep image shuts down do not start it and then use it as your template. As Jesus mentioned in his answer, duplicate machine S...
8
4
337
2015-11-04T20:49:06.503
data_quality
serverfault.com
244,586
Inner procedure is rolled back but outer procedure is still committed
I have an outer procedure which calls 5 different inner procedures something like [CODE] But in this case, if one of my inner procedures is rolled back , the procedure is still committed because there are no errors in the outer procedures. How can I overcome this problem ? Thanks !! Sorry my bad. The code looks somethi...
The problem you're facing is down to how the TRY...CATCH construct handles errors - it consumes them, eats them, and spits nothing back out except for a 0 return code. This is evidenced by a very innocuous line in the docs on TRY...CATCH that says Errors trapped by a CATCH block are not returned to the calling applicat...
4
4
139
2019-08-05T16:49:36.230
warehouse_errors
dba.stackexchange.com
430,766
Amazon AWS VPC how to open a port?
Possible Duplicate: How to setup a MySql server to accept remote connections? I have a VPN with public and private subnets; I am considering only public subnet for now. The node 10.0.0.23, I can ssh into it. Let's say I want to connect to MySQL on the node using its private address: [CODE] The port 3306 is not reachabl...
Login with localhost first and execute the following and then try to login with -h10.0.0.23. Follow the steps below. [CODE] [CODE] [CODE]
2
2
1,670
2012-09-21T20:25:30.047
database_errors
serverfault.com
190,412
Postgresql 9.3 GROUP BY on an indexed column in 30m rows table taking a long time
I have a simple table which holds GPS data for various vehicles with 30 million rows. [CODE] The table has more columns, but in my opinion they are not revelant for my question (but if you think they are let me know and I'll add them). I'm trying to obtain the last GPS position for each equipment like so: [CODE] As you...
Looking at the number of buffers it took to read the index, you are probably suffering from table and index bloat . If you can afford to lock the table, run [CODE] to clean up old data. There are several possible reasons why auto-vacuum did not take care of cleaning up properly and re-using deleted space: You have many...
1
2
238
2017-11-08T13:00:31.910
database_errors
dba.stackexchange.com
290,276
Get a parent and the children using the parent name
Is there a way to get a parent and its children using a single query? [CODE] Current output: [CODE] Expected output: [CODE]
You can either adjust your join condition [CODE] or use [CODE] / [CODE] to retrieve the parent record separately: [CODE]
2
4
1,310
2021-04-22T11:37:55.507
warehouse_errors
dba.stackexchange.com
232
Character vs Integer primary keys
I'm designing a database with multiple lookup tables containing possible attributes of the main entities. I'm thinking of using a 4 or 5-character key to identify these lookup values rather than an auto-incrementing integer so that when I store these attribute IDs on the main tables I'll see meaningful values rather th...
It depends on your engine. Common wisdom is that reads are cheap, a few bytes here and there will not significantly impact the performance of a small to medium size database. More importantly, it depends on the uses to which you will put the primary key. Integer serials have the advantage of being simple to use and imp...
31
22
9,085
2011-01-05T01:06:31.337
database_errors
dba.stackexchange.com
690,554
HAProxy balance algorithms for Apache and MySQL
just recently I got responsible for an existing project that uses Apache webservers and MySQL databases. The webserver are behind a HAProxy loadbalancer and the application connects to the MySQL slaves via another HAProxy. 2 of the 10 webserver were added just recently and are more powerful than the old ones. The same ...
[CODE] is indeed an odd choice, unless your appservers are supposed to have session persistence with DB slaves. That's for you to figure out, though. [CODE] is usually a very good choice if performance of each server (both appserver and database) is not absolutely steady. This depends on the details of your application...
3
3
640
2015-05-08T08:50:15.583
pipeline_ops
serverfault.com
165,178
Transaction classification. Artificial intelligence
For a project, I have to classify a list of banking transactions based on their description. Supose I have 2 categories: health and entertainment. Initially, the transactions will have basic information: date and time, ammount and a description given by the user. For example: [CODE] The idea is to use that description ...
I have 7 different categories, and for each one, a lot of key words related to that category. I would use some for training and some for testing. Sounds like a simple Bayesian classification should work well. I'm sure there's libraries which implement that for all major programming languages.
6
5
2,298
2012-09-17T19:24:27.883
api_errors
softwareengineering.stackexchange.com
557,021
Why do I get a 404 for my index.page in my http/https nginx setup?
I'm using [CODE] (stack with Nginx, MariaDB, PHP and OPENSSL) and am trying to setup [CODE] in a [CODE] server. I'm following the instructions from NGINX here and my server starts/stops without errors. This is my [CODE] with the "double server": [CODE] This is the basic [CODE] configuration (see here ) with a modified ...
Your [CODE] directives should use absolute paths. It's not easy to predict where they are going to attempt to read files from with relative paths.
3
2
1,509
2013-11-23T20:13:10.753
database_errors
serverfault.com
128,093
Are detailed style requirements inappropriate from Marketing?
I'm working on the UI-side of a project which is under intense scrutiny by our Marketing group. Most of the time, we're reviewing functionality requirements. Once in a while, however, they will get very in-depth regarding colors, styles, etc. For example, I've been tasked by Marketing to make one particular button a ve...
It can be appropriate yes, but it is probably not the best idea for a number of reasons. Marketing people usually put a lot of research into their customers wants and needs and they also do a lot of research on competitors products. Many times they want to either distinguish themselves from competition or they want to ...
2
3
222
2012-01-03T00:29:19.880
api_errors
softwareengineering.stackexchange.com
834,163
can i use multiple VMs with single boot disk for autoscaling in google cloud
My Average CPU loading about 40-50%, but in peak time (generally 4 hours)server response time is too late. How to overcome this issue? Is there any other way to add additional CPU power in prescribed time. in autoscaling every VM creating bootdisk from image snapshot. for this i have to automate snapshots. but every VM...
For your use case managed instance group with autoscaling and load balancer would be a good solution. When you receive more traffic autoscaler will add more instances and when the traffic goes down instances will be delete from the instance group. The load balancer will take care of distributing traffic among instances...
0
1
177
2017-02-22T11:58:09.857
infrastructure
serverfault.com
555,271
How to properly prevent 504 Gateway Time-out?
I've an script that can run for about 15 min as it is a large data migration tool. I have the problem that either if i set [CODE] it never times out or if i set it to less then it times out before my script finished running. EDIT: I have taken away the [CODE] from [CODE] and setted [CODE] in php.ini and I get a 504 Gat...
Why do you want to run this in the foreground? While it's possible to hack at the config files long enough for you to get this behavior, it's a very fragile configuration. Is this something that's actually outputting useful information to the user as it goes? If not, this is almost certainly suited to a background task...
0
2
4,159
2013-11-15T14:49:03.230
infrastructure
serverfault.com
18,803
What are the entry and exit criteria in performance testing?
This question was asked to me in an interview.
It simplifies to knowing what you want to measure and knowing how to determine when you have measured it. Entry criteria include: Knowing what sort of performance you are looking at. Eg maximum load, use of system resources at various loads, affect on response times as load increases, long term stability (eg memory los...
1
1
10,925
2016-05-23T11:32:20.363
data_quality
sqa.stackexchange.com
951,347
Docker compose doesn't reuse the intended anonymous host volumes on container recreation
I have an Ansible container and when I have developed a docker-compose file create the container. [CODE] but when I remove the container and when I recreate the container all the volume data are lost. (PostgreSQL data will be lost.) After a bit of debugging I have found that the host volumes are getting remapped with t...
Your docker-compose.yml only specified a path to have PostgreSQL data created in a new transient volume each time the container is started. This is what happens if you specify the container path without a host path. If you want the data to be persistent, you must specify a source for storing the data on the host: eithe...
0
0
694
2019-01-29T18:25:35.527
pipeline_ops
serverfault.com
783,621
unable to connect to webserver from LAN (access from outside is fine)
We would like to give both our customers and coworkers a single link (subdomain.ourdomain.com) to access a common web application. I set up a web server on a machine connected to LAN, it's accessible from any workstation inside our LAN using its ip. I then installed a firewall (Zyxel USG20) with appropriate firewall ru...
I just recently got a USG100 which is pretty much same and I was struggling with the LAN -> Server connection, so here is what i did to get it working for me. Created Object / Address for the server. Add Service if needed, I used HTTP/HTTPS in my case but tested with custom one succesfully. Created NAT rules using publ...
1
2
1,147
2016-06-13T12:19:01.650
infrastructure
serverfault.com