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
310,187
Syntax Error when Creating a Temporary Table Using A Subquery That Contains A Union All
So what I'm trying to do is create a temporary table with a unioned set of results that have distinct conditions. The information is largely the same, just in different places that need to be matched. My query is below; [CODE] But when I run the query, I'm returned with a syntax error. At first, I was just running the ...
Aliasing a table or subquery with a quoted string will error. [CODE] See this demo https://dbfiddle.uk/?rdbms=mysql_8.0&fiddle=888a778cf10ce741efca9503d312691a
0
0
1,195
2022-03-25T20:53:11.217
database_errors
dba.stackexchange.com
10,671
L2TP client for Ubuntu
It's easy enough to get a pptp client going on a Ubuntu 9.04 (Jaunty) desktop: [CODE] However, I can't seem to find documentation find a corresponding L2TP client to connect to our Windows VPN server at work remotely. I have a certificate from our offline CA (pkcs12 format with the public/private keys + CA public cert ...
Try this guide, pretty comprehensive: http://www.jacco2.dds.nl/networking/linux-l2tp.html
6
3
27,547
2009-05-21T06:49:47.387
api_errors
serverfault.com
1,044,026
Connection refused on remote (sles) server port, even though inside that server port shows as open
When trying to connect to port 7077 to a spark cluster via pyspark in Python, I get [CODE] . Running [CODE] from my local machine (Ubuntu 20.04) shows 4 open ports (80, 8080, 22, 9000) Running [CODE] gives the output: [CODE] Then I ssh to the sles server (have to be connected to a VPN) and run the following command: [C...
Looks like the local firewall in the target machine is not allowing incoming connections on TCP port 7077. This should solve the issue: [CODE] Depending on existing rules, you might need to use [CODE] instead of [CODE] : [CODE]
1
1
1,886
2020-11-26T15:02:46.853
api_errors
serverfault.com
354,915
How to restrict a user to its home directory?
I want to restrict a user to a particular home directory. I don't want the user to have read access to the system resources etc. or to other user's homes. Can someone can suggest possible ways of doing that? When I use [CODE] I get the error: an error " ldconfig: Can't open configuration file /etc/ld.so.conf: No such f...
You will need to allow read access to [CODE] in your confinement system so that dynamic libraries load correctly. You will need to grant read access to the usual [CODE] , [CODE] , etc. directories and many of the files within these directories for most usual shell programs to function. And, you'll need to grant access ...
2
1
602
2012-01-30T06:10:59.373
infrastructure
serverfault.com
41,532
Maximum memory setting in SQL Server
I'm running SQL Server 2008 and a web based application, on a single dedicated server, with only 2Gb of memory available. As is noted elsewhere, SQL Server regularly takes up to 98% of physical memory, which appears to slow down the web application running on the server. In Server Properties in SSMS, under Memory, Maxi...
I will answer the last question first: Yes, you can change it while the server is running without issue. If you want to change the value via SQL you can do it with the following query [CODE] See this page for more details about setting memory on SQL server. Your first question, unfortunately the answer is: I can't tell...
12
15
26,304
2013-05-04T17:31:05.053
database_errors
dba.stackexchange.com
166,711
disk usage in server 2008
We have a server 2008 r2 box with a 60gb c:\ partition that over time completely fills up. The culprit appears to be winsxs, which is a well documented issue without any resolution beyond microsoft jamming their fingers in their ears and repeating 'its not a real issue'. This is all accurate from an extremely narrow vi...
You've probably already found this, but the description of the problem is well described here: http://blogs.technet.com/b/askcore/archive/2008/09/17/what-is-the-winsxs-directory-in-windows-2008-and-windows-vista-and-why-is-it-so-large.aspx That's the 'why' of it. As they say, the only way to reduce the size of this dir...
2
2
911
2010-08-03T15:54:44.037
infrastructure
serverfault.com
220,459
SQL Server Remote Connections
I am at my wits end with trying to access a remote SQL Server 2008 R2 Express instance. Here are the following that I have tried. 1) I enabled remote connections in the instance properties. 2) I enabled sql server and windows authentication mode and created an account to log in using sql server authentication. 3) I sta...
As you've not specifically listed the steps here's some more dumb questions: Have you verified that SQL is listending on port 1433 anyway. Take firewall out the equation initially and run [CODE] which should list the service somewhere and tell you which ports the server and browser service are running on. Is the instan...
2
2
2,628
2011-01-09T18:41:46.000
api_errors
serverfault.com
242,396
Calculate Inventory Costing Based on First in, First Out (FIFO)
I am trying to get the cost of inventory based on FIFO. I saw a similar question but it does not look for cost of inventory and tables seem to be structured differently. Using MySQL I have a table [CODE] , [CODE] and [CODE] the [CODE] table gets updated with every item that is received and for purchasing control, what ...
I ended up using the following operation. Either in 2 queries and using php to run it or in a single MySQL query. 2 Queries: [CODE] I then take the result, let's say 34 and I run the following query [CODE] Or, we can run the same in a single query. [CODE] This gives you a perfect cost of goods report based on FIFO
2
0
3,970
2019-07-08T21:31:08.460
database_errors
dba.stackexchange.com
122,159
How to optimize MySQL SUM query even after adding index
The below query is taking 11 min to return the result set even after adding indexes and changing the table row format to Compressed. The 2 tables in the below query each have Table 1:detail_recovery_case = 67532 records and Table 2: y8qel_detailrecovery = 28638 records. I think its taking more time to execute the SUM()...
Try Summing in a separate query and then joining results: [CODE]
1
3
6,410
2015-11-26T08:37:54.920
database_errors
dba.stackexchange.com
259,450
What's the cause of these crashing imapd processes?
We have a Mac OS X 10.5 Leopard Server mail server that recently started getting issues with IMAP mailboxes having "invalid format[s]" this weekend. It turned out that there were some bad block counts on the volume housing IMAP data and the issue has not resurfaced after repairing the volume and the afflicted mailboxes...
I solved this issue long ago. I don't remember the exact commands, but I found a way to reasonably correlate a specific crash to a specific user, at which point I could then run [CODE] to rebuild that user's mailbox. Eventually I was able to rebuild all of the problem mailboxes and rid the server of the issue.
1
0
790
2011-04-13T23:16:48.287
infrastructure
serverfault.com
606,767
Is it possible to install OS during RAID scrubbing?
One of our servers crashed a few days ago. I had to recreate the RAID container with the remaining disks. Currently the system is running the scrubbing process (screenshot below). I would like to know if its okay to proceed with attempting to install the OS or is it imperative to wait until the process completes before...
I would like to know if its okay to proceed with attempting to install the OS or is it imperative to wait until the process completes before doing anything else. Yes, you can use the server as you normally would. The only symptom will be slightly decreased IO performance until the RAID scrub completes. If it were possi...
0
4
98
2014-06-20T13:49:35.043
pipeline_ops
serverfault.com
1,085,180
HA in k8s cluster in case of node failure pointed by A record of domain
I've got a question of "what if" kind Suppose there is a Kubernetes cluster with 4 nodes and some domain which points to IP of node no 1 and web app using this domain having 1 pod per node. If node 1 will fail then in the current state of my knowledge the app will fail cause A record is pointing to that node which is b...
That is the problem that a [CODE] is designed to solve, and if you are in a cloud environment (or otherwise have an operator that will provision something that looks like a load balancer), then [CODE] will provision a stable entrypoint from outside the cluster to inside the cluster, and then kubernetes will route aroun...
0
1
248
2021-12-02T11:28:03.580
pipeline_ops
serverfault.com
254,692
Multiple instance of Update Query is causing very high Lck_M_U wait thus high CPU
My investigation found the following query is causing high Lck_M_U wait. I noticed there are multiple instance of this query running obviously competing for the same resource. I wonder if there is anything I can do with this query (listed below) to minimize the wait? [CODE] Executions Plan: https://www.brentozar.com/pa...
causing very high Lck_M_U wait thus high CPU The locks should not really be causing high CPU use - a thread that is waiting for locks to clear is doing just that: waiting and not consuming processing resource. So waiting for locks a lot is a symptom of the statements taking a long time to run, not a cause of it. I susp...
1
4
1,185
2019-12-03T17:53:06.110
warehouse_errors
dba.stackexchange.com
1,067,010
Return 444 Instead of 400
If someone makes an http request to an https resource on my nginx server, they get an error 400. "The plain HTTP request was sent to HTTPS port" Is there a way to return 444 instead? When I search for this error, I can only find people that have had configuration issues they were trying to fix. But in my case, my confi...
It's possible to have nginx respond with 444 this way: [CODE]
1
0
4,279
2021-06-17T12:52:32.147
infrastructure
serverfault.com
460,707
Asterisk IVR - input variable and go to an outbound URL
I have an Asterisk outbound IVR system set up, and I'd like it to talk to my LAMP stack on a different server. I've set up the PHP end to receive data from the IVR server and record it in MySQL, but I can't figure out how to get the Asterisk end to go to the php URL and I haven't figured out yet how to input a variable...
Your looking for func_curl . It may not be built on your system by default but the page I referenced has instructions to build it. Here's the example provided: [CODE]
2
1
2,751
2012-12-24T20:21:04.047
database_errors
serverfault.com
1,099,525
How to filter and deliver a message in Procmail
I rewrite the subject line for certain incoming mails depending on TO: field: [CODE] The above code (from my earlier question procmail rewrite subject line if email recipient user fails match test ) works perfectly - if I get mail from something OTHER THAN user@domain.com, the subject line is rewritten as [SPAM] (origi...
The [CODE] at the end is a syntax error. You can't specify multiple actions on the same recipe. What you can do is split it into two recipes; or, in this case, simply combine the rewriting and the delivery. [CODE] This no longer has the [CODE] flags because we want to push the whole message through (not just the header...
0
2
365
2022-04-26T17:21:04.897
infrastructure
serverfault.com
148,297
MS Exchange 2003 logs error with "Event ID: 7200" and "error code 0x80004005" on an hourly basis
I'm trying to reduce the number of errors emanating from our Exchange Server. The following is showing up every hour. [CODE] Some articles referenced fixing a registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\VirusScan and set "Enabled" to a value of 0. I checked and it was already set to z...
This looks like a pretty rare issue, but I found this site: http://www.hottubinc.com/HTIKB0001.htm Have you looked into your full indexing settings?
1
1
3,715
2010-06-04T18:10:10.497
infrastructure
serverfault.com
191,666
&& vs ST_Intersects performance
I am trying to figure out points reside inside an rectangular area (envelope). I am having a little bit difficulty understanding performance implications of using [CODE] operator compared to [CODE] . However I think I explained my own question while trying to formulate my question. I submit it anyway in case it would b...
Background, functionality and performance [CODE] operator [CODE] is bounding-box overlaps. All operators call functions in PostgreSQL: you can see this [CODE] in this case [CODE] literally calls the PostGIS function [CODE] . The only catch here is that [CODE] will make use of an index, from the docs In general, you wil...
7
11
4,168
2017-11-24T15:59:52.693
warehouse_errors
dba.stackexchange.com
1,130,682
Setting mysql using ansible in ubuntu remote machine
I have written one ansible playbook for installing MySQL server in ubuntu remote machine but is not working here is the yaml code [CODE] everytime in user setup it is showing: fatal: [web01]: FAILED! => {"changed": false, "msg": "unable to connect to database, check login_user and login_******** are correct or /root/.m...
In the [CODE] task you are trying to connect to MySQL with the user credentials you want to set up, which doesn't exist at this point. On Ubuntu MySQL is configured by default to accept connections from root via unix socket without a password. If you change your task to this you can set up the root user: [CODE] (note t...
0
1
1,226
2023-05-08T21:26:16.607
database_errors
serverfault.com
32,760
Test flakiness in Katalon Studio
I'm having a problem but I'm not sure what is the cause. When I run a test case that includes an iframe object, on the first run Katalon is finding the iframe but unable to click an object inside of the frame. After leaving everything as is (I'm not changing anything in the script) and just re-running the test, the obj...
You have to use: Wait For Element Not Visible For this element [CODE] It appears on the front-end most probably when there is some back end operation running and disappears when the operation is finished. You maybe have to add some delay of 1 or 2 seconds before the above step if the test persist to fail from time to t...
2
1
1,416
2018-03-28T10:18:56.343
data_quality
sqa.stackexchange.com
132,528
Permission denied to create "pg_catalog.tablename" during pg_dump targetting another machine
I am trying to dump some tables from a 9.5 beta 2 to a 9.4.4 server. The form of the command I am using is the fairly standard: [CODE] I am using the Postgres user, which I realize is probably not ideal, but as these are both dev data processing boxes that only I use and it is relevant to the error which follows. Initi...
This turns out to be due to a somewhat obscure error message which happens when the schema you are dumping from with pg_dump does not exist on the target database/machine. I will leave this question, in the hope it might help someone else.
13
16
8,756
2016-03-17T14:15:00.680
warehouse_errors
dba.stackexchange.com
436,585
Windows Installer GPO - "Prohibit user installs" value is missing on Windows 7
The old Windows XP GPO template had three options for "Windows Installer\Prohibit user installs": Allow user installs Hide user installs Prohibit user installs The new Windows 7 template has only the first two options. Is this an error or the third option "Prohibit user installs" has been abolished on Windows 7? Thank ...
Is this what you're looking for: how to prevent users from installing programs in windows 7 ?
2
0
1,537
2012-10-09T21:28:21.060
infrastructure
serverfault.com
1,142,690
Web browser fails to connect to website after 100 refreshes on client
I'm using an HTTP meta-refresh to execute a script multiple times. After 100 refreshes, the browser stalls. According to devtools, the browser doesn't even complete an initial connection to the server. After this point I can't load any other pages from my website. At first I thought this was a server side issue, howeve...
It probably is your server or the hosting platform. Most hosting platforms have measures in place to prevent exactly what you are doing - spamming the site. I know it is your own site, and what you are doing is legit, but there is no way for the website/hosting platform to know this. This is how websites can get taken ...
1
0
37
2023-08-30T00:18:05.917
infrastructure
serverfault.com
209,180
Free service similar to 2static.it?
I have a domain with a wordpress install which sets up global cookies. I'm trying to decrease page load times by having a static subdomain to serve up images and javascript. Unfortunately I cannot use static.mydomain.com because of the global cookies that wordpress uses. I read some recommendations for 2static.it for t...
I doubt any free site will provide for serving static content without limitations. You could setup another domain using apache2 virtual server option and host your static content on that server. Or, you could explore Amazon AWS, specifically their S3 and CloudFront offerings. With a CDN you will be able to not only ser...
0
0
160
2010-12-04T21:51:23.353
infrastructure
serverfault.com
797,687
Trying to recover MySQL database from a crashed server and I keep getting "mysqldump couldn't execute 'show create table doesn't exist (1146)"
My OpenSuse 13.1 server crashed and couldn't boot but I managed to connect the hard drive to another computer and copied the files in /var/lib/mysql On a new installation, I followed the steps outlined in this answer: https://serverfault.com/a/449238/371208 However, when I attempt to start MySQL, I get this: "Job for m...
I've seen this error before! You're probably over thinking the problem. It's actually either a permissions problem, a missing files/folders, or a missing pid file. It's easier to diagnose the problem by becoming the mysql user with su (su -s /bin/bash mysqld) or sudo (sudo -u mysqld -i), since being the correct user wi...
0
0
668
2016-08-18T15:32:04.050
database_errors
serverfault.com
448,491
Major web hoster detects my emais as SPAM or JUNK, why
Possible Duplicate: How to send emails and avoid them being classified as spam Whenever I send emails from my domain using PHP it goes to spam , when ever user register to my site I send them message saying welcome along with a image and Facebook Url, No I Not spamming. No my IP is not blocked by any spam guard service...
I am assuming you are using a valid (with valid I mean theoretically reachable, valid domain etc.) from-address. If not, this should be the very very first thing to do. You should have a proper SPF for your domain like: [CODE] Third: It is always good to write some "normal" text in your email. Most scanners determine a...
-1
2
84
2012-11-14T06:17:47.363
data_quality
serverfault.com
294,697
Problem deploying a Rails application with Passenger
I'm trying to deploy a Ruby on Rails Application using Passenger and Apache but I have some trouble. When I try to go to example.com/tournament, I get an error saying that the Ruby on Rails application couldn't be started along with the following error: [CODE] After doing some searching, there seems to be something wro...
Looks like your [CODE] declaration needs to also point to the root of your Rails app. [CODE] Setting [CODE] tells Passenger where to start from when it does its check for your Rails [CODE] file. Take a look here for more info . Let me know if that helps! Edit : corrected a goof in the [CODE] path.
0
0
212
2011-07-27T17:17:12.610
infrastructure
serverfault.com
922,572
Postfix bounce notifications not going to email address in main.cf
I am trying to configure Postfix to send bounce notifications to a specific mailbox so that in my email client, Mailwizz , the "Bounce Server", which is configured to look to a specific mailbox, will be able to include bounces in its Campaign Log. What I have found is that Postfix is returning bounce notifications to t...
Update: As of this morning it appears that my configuration changes actually worked. I now see a bounce recorded in Mailwizz for the non-existent email address I used to test the bounce processing. Furthermore the address in question was properly blacklisted by the system. I had thought that bounce notification had fai...
0
0
411
2018-07-18T22:32:22.953
infrastructure
serverfault.com
104,609
Infinite Bitmap
I'd like to build a bitmap during runtime. The bitmap should be scalable on all sides and pixel access should be quiet efficient. Some illustration http://img546.imageshack.us/img546/4995/maptm.jpg Between and after the commands shown in the picture, Map.setPixel() and Map.getPixel() should set/return data saved in the...
If the [CODE] operation needs to be reasonably fast, a Quadtree might be a good fit; it actually wouldn't even require explicit extend operations. Admittedly, it would not yield optimal performance for random access to individual pixels, but your comment says that your primary operation is iterating over the pixels, wh...
10
9
981
2011-08-30T07:10:25.170
api_errors
softwareengineering.stackexchange.com
588,865
What does this notice mean "SNI: extension not received from the client", in stunnel log
I am working on multiple domain certificates using stunnel. I have two domains test.int and test1.int and given multiple certificates to each domain and one default certificate. I used sni option of stunnel to provide multiple domain certificates. Using javascript websocket i am trying to connect to secure server, But ...
You tried to connect directly to an IP address, rather than a hostname. So there wouldn't be any point to SNI, as you didn't provide a name. You're meant to use the hostname. For instance: [CODE]
2
1
518
2014-04-14T13:28:15.260
api_errors
serverfault.com
151,248
Maximum number of outgoing VPN connections?
I'm working on a project where we would like to have around 50 outgoing (not incoming) VPN connections. We could use PPTP or IPSEC. Security isn't an issue, we control all the sites and users won't have access. Windows Server appears to have a limit of 5 outgoing connections. Does anyone know if it's possible to tweak ...
With OpenVPN running on Linux I have a system with about 30 connections typically open a time.
0
1
1,635
2010-06-14T23:20:29.950
infrastructure
serverfault.com
920,834
Can't add RDS database to Elastic Beanstalk environment
I've created maybe 10 Elastic Beanstalk environments with a connected RDS database, but for some reason on this application I'm unable to add an RDS database to my elastic beanstalk environment. I'm adding the RDS database through the Elastic Beanstalk UI with [CODE] . The error seems to stem around my root user not be...
I'm new to AWS and had the same problem when trying to create and add a new database from the Elastic Bean Management Console. It was fixed after adding the AWSServiceRoleForRDS - role in IAM. Go to IAM --> Roles --> Create role --> AWS Service: Select RDS, and RDS use case. Click on "Next:Permissions". There you'll se...
4
7
5,114
2018-07-13T15:39:56.720
bi_errors
serverfault.com
1,041,671
Is Google Cloud Platform documentation available for offline reading?
I am looking for eReader and PDF formats of the Google Cloud Platform documentation and whitepapers. Right now I cannot find anything similar to how AWS provides documentation in PDF and Kindle formats. It would be great to have docs in a way that can be read without an internet connection.
It may be that Google’s Documentation changes so often that having a static document may not be a good option. If you really want to you can select the text that you want to read , copy it to a Google Doc and then select the Download menu option and file type (i.e. PDF). I hope that helps.
1
0
292
2020-11-07T16:43:33.403
infrastructure
serverfault.com
353,410
Exchange 2010 OWA - a few questions about using multiple mailboxes
We have an Exchange 2010 SP2 deployment and we need that our users could access multiple mailboxes in OWA. The problem is that a user (eg John Smith) needs to access not just somebody else's (eg Tom Anderson) mailboxes, but his OWN mailboxes, e.g. in different domains: john.smith@domain-one.com, john.smith@domail-two.c...
Thanks to everybody. Finally, I've found a workaround for some of the described issues. A few notes first. Opening multiple mailboxes in different browsers works, but that's inconvenient and not the way the users would like to go. Not many users have more than 1 browser installed. And in many cases there are corporate ...
0
0
1,135
2012-01-25T11:11:21.353
pipeline_ops
serverfault.com
18,670
I've got 16GB of ram, how should I configure MySQL Server?
I've got a dedicated production server with multiple CPUs and 16GB of RAM. How can I configure it to take advantage of server resources for better performance? Website traffic is increasing and MySQL starts using a lot of CPU. This is my current MySQL server configuration . I am also planning to optimize the database, ...
Please keep in mind that prior to MySQL 5.1.38, InnoDB was not designed to access multiple CPUs. You have one of two options to get MySQL to take advantage of multiple CPUs. OPTION 1 : Install MySQL 5.5 OPTION 2 : Install MySQL 5.1 InnoDB Plugin There are new options available since MySQL 5.1.38 (InnoDB Plugin Only) th...
5
5
19,457
2012-06-01T09:51:47.657
database_errors
dba.stackexchange.com
122,271
Best Firewall product for hosting/housing environment?
I am searching for a firewall product (appliance or software) for an hosting/housing environment. The biggest problem is that the rules get very complex as more customers are behind the firewall. Some have only one server, others have a whole subnet. Some need NAT, some a VPN endpoint. Some customers want to only allow...
I think you would have several options, your requirements arent that high. What serious firewall doesn't support VLAN? We use a HA-setup of Clavister SG32xx, They support grouping of rules, VPN, VLAN and comes in different version depending on licensing (which defines the throughput). The performance ranges from 350Mbi...
1
2
1,398
2010-03-14T00:23:03.423
infrastructure
serverfault.com
334,080
Need help with count query
I'm currently working with a service with a count query running longer than I want. The query doesn't have serious performance issues but I believe there is an improvement. Let me provide a little bit of context. There is a table with multiple columns, but I'm focused only on a few. Let's say that the table looks like ...
From our discussion in the comments, it turns out most of the time is spent in the get_root_domain() function. Currently you have 3-4 calls per row, 2 in roots CTE and 1-2 in the query depending what the CASE does. Quick band-aid: If it's a simple string function that will always return the same value for the same para...
1
1
92
2023-12-14T19:23:26.380
database_errors
dba.stackexchange.com
480,117
Pagespeed still works on a new server even though it shouldnt
I had mod_pagespeed installed on my previous server. I didn't use it and disallowed via .htaccess because after some testing it turned out that it actually slowed down my site. So it remained "disallowed" via .htaccess for a long time. Today I moved to a new server and migrated user accounts using cPanel VHM migration ...
Ok, fixed it. It was DNS problem.. data was being loaded from both servers. That is, had to wait for DNS propagation to finish. Regarding "out of memory errors", the php limit was set to 32mb which is really low, so increasing that figure got rid of various errors.
-2
1
69
2013-02-19T01:31:23.603
api_errors
serverfault.com
188,978
Capacity Plan For XenApp or 2X Application Server
Our company plan to implement XenApp or 2X Application Server in the near future for 30 users using Microsoft Office 2010 Standard, but I have no idea on how to plan the hardware as a host for that configuration, is there anyone here can give me a hint on hardware configuration needed for that purpose f.e processor and...
What I would advise is that you use existing tools to estimate the average resource utilisation required for a single user - i.e. min/avg/max CPU, memory and disk/network IO. Then take this average, multiply it by the current or expected user base, add around 20-40% to account for peak time concurrency (08:30-09:30am a...
1
2
229
2010-10-08T11:11:48.450
infrastructure
serverfault.com
913,011
Nginx reverse-proxy redirects any subdomain while I only configured one redirection
I want to use Nginx to redirect to specific applications based on the subdomain of the request. For now I only have one application which has its own server listening on port 3080. I would like the subdomain [CODE] to redirect to the application server which is listening on [CODE] . I created a file in [CODE] with this...
You might want to add a catch-all server block to take care of every other subdomain and other domains such as [CODE] or [CODE] ... [CODE] Note #1: Please be sure to reload or restart Nginx to apply changes. Note #2: Please note that the above block basically returns nothing. The error code 444 is an Nginx specific err...
1
2
1,264
2018-05-20T17:23:49.603
infrastructure
serverfault.com
70,184
Are the "procps" utilities available in a weird name/path on common AIX?
I have to deal with a very poorly loaded out AIX system for a development project. One thing I find missing are utilities common to Linux systems, such as those in the procps collection . Is there a convention on AIX for names or paths under which utilities common from the Linux world would be installed? For instance, ...
The various GNU utilities are available for AIX, but they're generally not installed Have a look in /opt/freeware to see what exists, and if there's not much there then start with the AIX Toolbox for Linux Applications , but you'll find that you end up having to build a few of the more common ones yourself (but GCC, GN...
1
1
283
2009-09-30T23:59:23.450
infrastructure
serverfault.com
912,697
use a variable inside json_query in ansible/jinja
I'm trying to loop on a custom dictionary in ansible in order to check some mount points on a linux server, and I'm a little bit in trouble finding the correct solution, find below my playbook right now: [CODE] I was trying to build a custom loop to cycle on the dictionary entries and make the same kind of check with l...
You can use a task variable: [CODE]
3
4
9,327
2018-05-17T15:44:45.447
pipeline_ops
serverfault.com
217,530
Backup Exec backup-to-disk folder creation - Access denied
I'm having a difficult time creating a backup-to-disk folder in Symantec Backup Exec 12.5 and Backup Exec 2010. The backend storage is a Nexenta/ZFS-based NAS filer sharing the volume via CIFS. I've also seen the issue on other *nix-based NAS devices. I've attempted mapping the drive, providing the full paths to the fo...
I found the solution by using the Symantec Backup Exec Backup-to-Disk Test Tool found here: http://www.symantec.com/business/support/index?page=content&id=TECH71830 This allowed me to debug the issue and realize that passthrough authentication was being used in the effort to create a B2D folder. In my case, I was logge...
0
1
7,452
2010-12-30T20:26:09.277
database_errors
serverfault.com
148,526
Outlook Security Alert following Exchange 2007 upgrade to SP2
Following an update to Exchange 2007 sp2 (yes I know very belated) I have an issues when logging onto Outlook. I see the below message... alt text http://www.freeimagehosting.net/uploads/1960a40166.jpg I also had a simlar issues with web access and as I am at home with IIS, this was easily solved. However I did notice ...
From EMS run get-exchangecertificate This will show you all of your certs and where they are being used. Under services, I is for IIS and should be applied to your wildcard certificate. If it is not, copy the thumbprint for your wildcard cert and run this command: enable-exchangecertificate -thumbprint [CODE] -services...
2
1
422
2010-06-05T17:28:59.620
api_errors
serverfault.com
286,522
Is there a CASE LIKE in pl/pgsql?
I'm trying to write a dynamic after trigger function that does an update based on the [CODE] , but it seems that plpgsql's CASE cannot do "LIKE". Is it called differently in plpgsql, or impossible? If not possible, my second idea would be to do a SUBSTR, or are there better ways? [CODE] This simply updates a record in ...
Yes there is, you have to put the [CODE] not behind the case, you have to put it in front of every [CODE] [CODE] ✓ db<>fiddle here
1
0
527
2021-03-05T18:22:30.453
warehouse_errors
dba.stackexchange.com
1,101,838
Kubernetes: Pod IP address is out of range specified in --pod-network-cidr
After upgrading to v1.24.0 (after Dockershim removal), I had to install cri-dockerd , then I did the following: [CODE] I have chosen [CODE] as Network Plugin: [CODE] Until now everything worked as expected, but after enabling scheduling on master node, joining a worker node and deploying my pods and services, I noticed...
After some investigations, I found that [CODE] service was missing some args: [CODE] I added them manually to [CODE] : [CODE] Reload service: [CODE] at this point cri-dockerd is configured correctly, but the problem persists, later I noticed that [CODE] is empty (no container networking plugins) : [CODE] I think I dele...
4
6
2,888
2022-05-26T08:55:03.833
pipeline_ops
serverfault.com
684,557
How to config Nginx runs php on sub directories?
I have 2 versions of portfolio website for 2 languages. I put them in 2 dir in the same root dir. [CODE] Then I config nginx as below: [CODE] Look at [CODE] , I have [CODE] dir (and run php directly here) for every version. But when I access [CODE] , browser always redirect to [CODE] . What is wrong with this configura...
The problem is here: [CODE] By doing this you explicitly told it to redirect to [CODE] . A trailing [CODE] in a [CODE] means to try the value of the [CODE] directive. In a PHP-FPM [CODE] this should instead be: [CODE]
0
0
65
2015-04-22T07:11:55.350
infrastructure
serverfault.com
181,329
How do I route a public Class C network through Comcast router?
We have a public class C network that our company owns, we're moving from T-1 lines to cable, most of my public servers will be moving to a data center, but I still need the public class C network working, can this be done with a home type router in a Comcast connection?
Routing an IP network needs to be done through BGP protocol. So either your ISP let you announce BGP routes yourself, or the ISP does it for you. I'm not a comcast expert, but I doubt that that kind of service is part of their "home" package ;)
1
5
2,858
2010-09-15T10:46:42.773
infrastructure
serverfault.com
22,337
OPTION FORCE ORDER improves performance until rows are deleted
I have a somewhat complex SQL Server 2008 query (about 200 lines of fairly dense SQL) that wasn't performing as I needed it. Over time, performance dropped from about .5 seconds to about 2 seconds. Taking a look at the execution plan, it was pretty obvious that by reordering the joins, performance could be improved. I ...
Is this normal for a forced join order to make the query estimates to be completely inaccurate (and thus query times unpredictable)? The use of FORCE ORDER isn't making estimates inaccurate, the deletion of rows did. Forcing an update of statistics on the table may improve the estimation accuracy. Should I just expect ...
10
7
17,092
2012-08-12T21:57:37.817
hadoop_errors
dba.stackexchange.com
594,151
PF: Block all, but one subnet firewall rule?
I'm trying to do something that I thought would be relatively simple: Block all the traffic to a test server, other than my company's subnet. I've tried things along these lines (111.111.0.0 is my placeholder for this example), but only the block seems to work: [CODE] None of those pass in lines seem to work (I know so...
its because its specifying a single ip, you need to write it with the subnet: [CODE] [CODE] should list a few methods of defining ranges and blocks. A side note, take care to ensure there are no [CODE] kind of rules above your [CODE] , and no rules below that could accidently match and block your packets.
2
6
4,119
2014-05-09T13:56:01.973
infrastructure
serverfault.com
96,485
Simple test plan template for Change management
We're looking for short checklist/template for to show that the change has actually worked and hasn't broken anything. This is being introduced as part of a more formal change management process. Anyone got any experience of doing this and what worked.
Manual change verification is for Lesser Sysadmins. Real BOFHs Automate. All of our systems are comprehensively (and I do mean comprehensively; down to little niggly details like "are all the NICs on this system currently running at Gigabit speed"), and all of our changes end with "ensure that monitoring is clear at ti...
2
3
1,735
2009-12-21T22:09:25.707
infrastructure
serverfault.com
499,378
collectd stores NaN instead of correct value in ubuntu 12.04
I installed collectd using sudo apt-get install collectd on my ubuntu 12.04, but it just collect NaN values in the rrd files. for example for file named memory-used.rrd this is the values it saved. 0003 10 1366005779 [CODE]
A quite effective way to troubleshoot collectd: enable the fewest possible read plugins (e.g. in your case memory ) [CODE] enable csv write plugin [CODE] enable logfile plugin [CODE] run collectd in the foreground [CODE] Look at your csv directory, if anything gets reported If everything looks fine, the next step would...
1
1
2,326
2013-04-15T06:08:10.237
infrastructure
serverfault.com
274,645
Protect memory from a potentially seg faulting function call
How can one safely call a function that might segfault without corrupting the stack or the heap? These SO questions cover using signal handlers and [CODE] to regain control. Coming back to life after Segmentation Violation Best practices for recovering from a segmentation fault They neglect the likely memory corruption...
The solution is a remote procedure call. The callee must run in its own process space. How exactly you achieve that is a fairly minor detail. I'd strongly suggest not inventing the wheel yourself. Not that you'd need this after you've "formally proven its correctness". Correct code doesn't cause segfaults.
1
4
1,432
2015-02-27T08:01:16.957
data_quality
softwareengineering.stackexchange.com
1,397
MySQL Database Schema for Train Timetables
I am interested in what a MySQL database schema would look like for a train timetable. Generally this is presented in table format as the final result. [CODE] So each train has a train number, but that isn't unique as the number will be duplicated for a Monday-Friday to a Saturday and Sunday. Then a train will stop at ...
I would strongly consider explicitly storing all the days a particular schedule actually runs on. This would give a structure looking something like this: By doing so, you'll make it much easier to answer questions such as "What are all the trains going to station X on 1 Oct?". It'll also makes "temporary gaps" when tr...
7
7
19,575
2011-02-22T23:12:55.583
data_quality
dba.stackexchange.com
338,718
Testing my Load Balancer
To test my Load Balancer I would need to create several TCP/IP connections (from one host). Which tool can be used to create this sessions with different source-ip addresses? (no worries, only in my private LAN).
The easiest thing to do would be to assign multiple IPs to a host, and then use something that lets you bind to specific source IPs. Since this is TCP/IP and you need to handle the response, crafting is probably just a pain. With linux, you could use Curl for http connections if that is what you happen to be using: [CO...
3
5
427
2011-12-07T21:05:05.177
infrastructure
serverfault.com
1,076,624
Address to be used to access private ipaddress for AZURE resource from on-premise
I can see how we can make an AZURE database, say COSMOS DB, a private IP address with Private link, that is fine. If you want to access that private link / IP address database from on-premise via site2site vpn, with a tool like Spotfire or Tableau, how do we specify the connection string that goes via the ExpressRoute ...
Private Link allows to access an Azure Cosmos account from within the virtual network or from any peered virtual network. Resources mapped to Private Link are also accessible on-premises over private peering through VPN or Azure ExpressRoute. Read access from a virtual network first to learn the basic knowledge. Make s...
-1
0
486
2021-09-04T10:14:39.683
bi_errors
serverfault.com
143,839
How to improve query count execution with mySql replicate?
For my report I have to use count queries (name 'user_activity' for example) and then group by by another column (user_type) in another table (user table). And its really time consuming when it comes to million records data. So I decided to use mySql Replicate to create a slave db for my reporting purpose. But I'm stil...
Give this a try: Add this composite index to [CODE] : [CODE] . Then [CODE]
0
0
371
2016-07-14T08:48:20.683
database_errors
dba.stackexchange.com
723,200
Increasing FcgidMaxProcesses does not help to solve "mod_fcgid: can't apply process slot" error
I have a dedicated apache server with high resources. RAM - 64GB Cores - 20 with CentOS 6.7 x64 and Image - FCGI statistics with phpinfo I run Magento application with MySQL as database engine which is also deployed on a separate highly resourced dedicated server. Website was working fine since a month, but suddenly it...
Issue is resolved now. And problem was not related to FCGID or any other Apache module configuration. The reason behind sudden deteriorating behaviour of server was attack Yes, that's right! Though it was not DDoS, but continuous requests of attacker with different query string patterns(SQL injection) and page load tim...
0
1
18,790
2015-09-18T07:31:58.850
database_errors
serverfault.com
250,391
‘PRIMARY’ filegroup is full. How do I increase temdb size in SQL Server Express 2017?
When I reindex a particular table [CODE] I get an error Level 17, State 2, Procedure aareindex, Line 21 [Batch Start Line 0] Could not allocate space for object ‘dbo.SORT temporary run storage: 422738479742976’ in database ‘mydatabase’ because the ‘PRIMARY’ filegroup is full. Create disk space by deleting unneeded file...
The file size is already 10236 Mb and the Express limit is 10 Gig If your user database [CODE] reached it's limit (10Gb in Express Edition) but 26% of the diskspace is unallocated, you can try to [CODE] your indexes with [CODE] in [CODE] . [CODE] is [CODE] and there is no reason to use in [CODE] , and with [CODE] you c...
2
3
13,481
2019-10-06T20:16:48.663
database_errors
dba.stackexchange.com
15,886
Central configuration for DHCP, DNS and Firewall
What software do you use for central network management ? What I mean is, you record a machine's name, mac address, open ports and other info, and the program generates DHCP, DNS and Firewall configuration snippets, to be included from main config files. For example the central network manager tool has the following fi...
There are two programs for generating configuration files; HostDB netconfgen
2
1
874
2009-05-30T22:11:07.270
infrastructure
serverfault.com
560,165
Cloning options for workstations
So far I have not used cloning as an option for new computers, but now I have a problem because i need to install about 50 computers with the same setting and installed programs. How do you troubleshoot a computer name after cloning, SID changing, diferent hardware etc.. Nevermind if its xp, vista, 7, 8 or linux... Wic...
Windows Deployment Services. This will address all of your concerns regarding hostname, SID, etc. http://technet.microsoft.com/en-us/library/hh831764.aspx (There are other options, such as Altiris Deployment Solution, and others, but WDS should get you started on a path.)
-3
9
424
2013-12-09T16:57:29.827
infrastructure
serverfault.com
12,205
How can I run a script in an Azure WebApp container after deployment as part of an Azure DevOps Pipeline using the classic pipelines interface?
My knowledge of Azure is pretty limited - this is the first project where I've worked with it. We are deploying Azure webapps in docker containers via an Azure pipeline configured with the classic interface. The pipeline has one agent job that looks like this when I click the "View YAML" button: [CODE] The pipeline isn...
a. In the Azure DevOps portal, go to the "Pipelines" section. b. Click on "Releases" and then create a new release pipeline. c. Define your release pipeline stages for deploying your Azure Web App. d. In the stage where you want to run the post-deployment script, add an "Azure App Service Deployment" task. e. Configure...
3
0
878
2020-08-13T21:25:20.630
pipeline_ops
devops.stackexchange.com
322,602
Abilities interacting with aspects of other abilities - how to implement efficiently
In my game I want characters to be able to cast spells which deal a certain amount of damage of a certain type to other characters in the game. I also want abilities that negate an amount of damage of a certain type to be equipped to a character. I don't want to have to program a huge wall of damage resistances that us...
I have implemented something slightly similar, and came up with a solution that may work for you. It sounds like you want Character A to cast a spell on Character B, and Character B may be wearing some type of armor (or protection or something that ultimately does something like armor). So, structure the code like that...
1
1
286
2016-06-18T05:51:41.813
api_errors
softwareengineering.stackexchange.com
673,018
AAD Sync not able to connect to online service using powershell
When trying to connect to my Office 365 tenant using connect-msolservice from powershell I get the following error: [CODE] I can browse to portal.microsoftonline.com from the same machine using the same user account. Can anyone tell point me in the right direction. Particularly what info I will need to give the Websens...
When you get an error do [CODE] You get a better stack and it gives you an idea of what was attempted. Looks like you maybe having issues authenticating to a web proxy in order to get to the Azure endpoint. What authentication does your web proxy (i assume its websense) support? I hope the proxy isn't set just for basi...
0
0
901
2015-03-04T16:14:49.610
infrastructure
serverfault.com
245,730
Retrying a statement or call in a catch block - code smell or anti-pattern?
I'm wondering how better to perform this operation for a large amount of files. The bit I'd like some thoughts on whether this copy/paste is acceptable enough of a tradeoff . try to write a file if the target dir doesn't exist, create it try again to write the file. If something else throws and exception, let it raise....
The simple principle is that this is not an [CODE] per se, it is an expected condition and thus should be checked using [CODE] to see if destination directory does not exist (and likewise [CODE] to check if the file already exists in that directory if that is important for your scenario). You are paying a high performa...
1
5
1,095
2014-06-22T23:12:13.457
api_errors
softwareengineering.stackexchange.com
216,414
What blocks a query in Postgres
I have a query running in Postgres 9.3 for more than 24h now (namely an [CODE] , linked to another question ). I check the "Server status" in pgAdmin which shows the query "Active". I ran some standard lock detection but it didn't return anything. I'm not sure why it's taking so long: is it waiting for a lock that it c...
That your query on the lock table didn't return anything provided the answer to your question--it was not waiting on a lock. (Assuming you did it correctly). It is still kind of annoying and error-prone to have to open a new session and run the query and interpret the results, so I wrote a patch to send NOTICE when you...
0
2
797
2018-08-31T13:01:51.277
api_errors
dba.stackexchange.com
98,664
SSRS Blocking Processes
We have a busy SSRS Reporting server (SQL Server 2008 R2) on which we see frequent blocking between the below processes: [dbo].[CheckSessionLock] [dbo].[WriteLockSession] We are aware that some reports are running unacceptably slow. What I need to know is whether the blocking in the ReportServer database is symptomatic...
Unfortunately there is not much you can do about this, this behaviour is by design. The problem manifests itself when user sessions time out because the report is taking too much time. You can try to improve the reports, or configure the session timeout to be a bit longer than the longest running report See this link f...
10
9
21,733
2015-04-23T12:52:48.993
bi_errors
dba.stackexchange.com
1,006,624
cant create/add new Virtual Machine on Azure Portal error on resources
I am receiving this error from the Virtual Machine page creation "{"code":"InvalidTemplateDeployment","message":"The template deployment failed with error: 'The resource with id: '/subscriptions/32cc2407-71f3-4d35-9c3b-d3a2573f18ec/resourceGroups/clt/providers/Microsoft.Compute/virtualMachines/testvm' failed validation...
The error message has told you exactly the problem you’re experiencing. You will need to update your template to specify a size that is available in the region you have chosen. Using the Azure cli you can run the following: [CODE] This will list the VM sizes available in the location you specify. See https://docs.micro...
2
2
1,157
2020-03-12T09:24:59.137
data_quality
serverfault.com
3,972
Error Code 1117 Too many columns; MySQL column-limit on table
I have a table with 1699 columns and when I'm trying to insert more columns I get, Error Code: 1117. Too many columns In this table I have only 1000 rows. For me the most important thing is the number of columns. Are there any limitations on the table? I want to create 2000 columns. Is that possible?
Why would you need to create a table with even 20 columns, let alone 2000 ??? Granted, denormalized data can prevent having to do JOINs to retrieve many columns of data. However, if you have over 10 columns, you should stop and think about what would happen under the hood during data retrieval. If a 2000 column table u...
40
40
78,076
2011-07-20T07:24:46.673
database_errors
dba.stackexchange.com
140,015
Change date precision values
Exposition: I have an oracle database table with date format as 'mm/dd/yyyy' and an unique constraint that contains the date column. My issue is that I can't seem to find a method to change the internal date format, which I need to get down to the second (ie 'mm/dd/yyyy hh12:mi:ss'). I do NOT want to change the query o...
I have an oracle database table with date format as 'mm/dd/yyyy' No you don't.. ;) You have an Oracle database table with a date datatype. Period. Any type of "format" is for display only, and is easily modified. [CODE] An Oracle [CODE] datatype holds Year + Month + Day + Hours + Minutes + Seconds information. It's up ...
0
5
352
2016-05-31T15:04:24.207
data_quality
dba.stackexchange.com
1,104,142
Postfix: stop all outgoing emails
I'd like to configure Postfix to completely disable outgoing emails, of any type. It should not be possible to send any email from that server. Is it possible?
There would be many ways, including [CODE] [CODE] [CODE] (without the [CODE] from the default setting). But you have to keep in mind that Postfix is not the only software that can send mail from the server. Any application could open direct connections to external mail servers on port [CODE] . Therefore, you should rea...
0
2
1,057
2022-06-26T08:20:02.900
infrastructure
serverfault.com
173,039
Removing Temp Table Skews Results
I have two queries (which to me are identical with the exception of a temp table). The 1st query with the temp table provides accurate and expected results. The 2nd query w/o the temp table provides highly inflated counts. Why is such? They appear to be exactly the same query to me? Can this query be constructed w/o a ...
Instead of using Count [CODE] Try using SUM [CODE]
-2
1
37
2017-05-08T22:58:22.817
warehouse_errors
dba.stackexchange.com
239,366
Error when installing Server 2008 R2 SP1
I recently did an in place upgrade of my Server 2008 R2 Standard VM's to Server 2008 R2 Enterprise via [CODE] as referenced here: In-place upgrade from Windows Server Standard to Enterprise or Datacenter This went well except for now when I want to install SP1 I get the following errors in the CBS.log: [CODE] Unfortuna...
I figured out a workaround last night. I discovered it had something to do with my original MAK key and its reuse. The original VM was a Server 2008 R2 VM with an MSDN MAK Key (which is valid for standard and enterprise edition) I did the DISM upgrade using the "489J6-VHDMP-X63PK-3K798-CPX3Y" KMS key for enterprise (fr...
1
1
3,202
2011-02-23T18:51:30.217
hadoop_errors
serverfault.com
24,087
Cucumber and Maven setup
I am trying to integrate my Cucumber project and Maven, while adding [CODE] dependency in POM, I'm getting the below error : Failed to read artifact descriptor for info.cukes:cucumber-junit:jar:1.2.5 org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for info.cukes:cucumber-ju...
It's always the issue of getting the versions of dependant libraries matching. My setup is : [CODE]
1
1
2,971
2016-12-06T05:41:59.300
data_quality
sqa.stackexchange.com
370,037
DNS Servers being block by my router despite being allowed in the firewall
I see entries like this in my router logs: [CODE] 8.8.8.8 is a DNS server. A few questions regarding this: Why is the DNS server trying to contact me? Do I need to be concerned that it can't reach it's destination? If so, what can I do to allow it access? I'll add an update for why a DNS server might be trying to conta...
This is scatter back from queries that you sent, but which weren't answered in time for your stateful firewall to recognise them as being part of your own traffic. For UDP traffic, every stateful firewall must remember which outbound traffic was seen, so that when the return traffic is seen it knows that it's part of t...
2
4
2,217
2012-03-15T13:10:05.140
infrastructure
serverfault.com
67,989
Limit balancing results by a column
I have a web crawler that have a table with tokens to crawl and each token have a [CODE] column that is the website where that token must be processed. I also have a function that returns me the next 20.000 ( [CODE] ) tokens to search. My problem is that sometimes the function returns me too much results from the same ...
Something like this , then? [CODE]
1
1
57
2014-06-10T17:43:55.497
warehouse_errors
dba.stackexchange.com
330,067
How do I determine the flow of updates in database?
I am pretty sure I can't make this clear enough, but I'll try my best. Say there are tables in database. [CODE] There is a column in Players_Performance table called WAS_GOOD. If WAS_GOOD=TRUE, salary in Players_Salary table gets updated accordingly and eventually, Players_Net_Worth table also gets updated. It was easy...
Unfortunately you still haven't provided the name of the database product and its version yet, but seeing that you're using a multitude of Microsoft technologies (including SSMS), it's probably safe to assume you're using Microsoft SQL Server as your database system. If you are using Microsoft SQL Server, then there ar...
-1
0
41
2023-08-08T15:14:46.930
warehouse_errors
dba.stackexchange.com
119,926
Deployment and Ownership issues
As an extreme newbie, I am having difficulty managing ownership and permissions on my first box. What I can't figure out is how to deploy using one user, we will call him [CODE] and operate my php application with [CODE] user. Currently as it stands, I know my server runs as [CODE] through this function [CODE] but I am...
I read and re-read this a few times to see if I've got it right. It appears that ownership is broken down like this: httpd process: [CODE] user PHP scripts to serve: [CODE] user Data written by PHP script: [CODE] user My problem here, is I don't understand the dilemma. I think that this is just the way things should be...
0
1
590
2010-03-06T22:06:06.857
pipeline_ops
serverfault.com
838,062
How to handle polluted security event logs?
everyone! I've been tasked with solving a problem with the way we manage event logs from our file server. Currently, we have a script that exports all security entries, once a week, to a backed up folder. Well, i've been checking these logs a couple days ago, and noticed A LOT of entries were missing. It turns out ther...
You cannot selectively delete logs from the security event log, since that compromise the integrity of the audit log. You can however, in most cases, define what makes it into the log. Increasing the size of the log is something you should definitely do, and there is nothing wrong with that. Even increasing the size of...
2
1
424
2017-03-13T20:19:31.707
infrastructure
serverfault.com
91,169
Samba on Debian Lenny much slower than Windows 2008
I have a VMWare ESXi 4 server running two virtual machines. The host server is a quad core AMD Phenom II with 8 GB RAM and a RAID-5 SATA-II array. The Debian VM is Debian Lenny with latest updates - x64 version base system install only with samba installed on top (i.e. there's no GUI, it's very lean). Filesystem is XFS...
Have a read of the Debian section of the VMware - Guest Operating System Installation Guide and make sure that the VMware Tools are installed and note the following: When running a 64‐bit Linux guest operating system on EM64T hardware, make sure that you have Execute Disable functionality enabled in the host BIOS. This...
5
1
1,260
2009-12-04T20:22:33.280
infrastructure
serverfault.com
893,038
gcloud docker -- push request canceled while waiting for connection
Trying to push docker image to gcloud and started getting this error. gcloud docker -- push us.gcr.io/purple01-192114/purple_cloud:80only The push refers to repository [us.gcr.io/purple01-192114/purple_cloud] Get https://us.gcr.io/v2/ : net/http: request canceled while waiting for connection (Client.Timeout exceeded wh...
Restarted docker and it now works.
0
2
773
2018-01-19T13:13:57.803
pipeline_ops
serverfault.com
405,033
How to maintain one file across many production servers (Windows and Linux)
My organization wants to centrally manage an Oracle TNSnames file for all of their production servers. When that file changes, they want to be able to push out the changes to all servers that use it with a minimal effort. Approaches that have been considered: Centralized file server (drawback: if the file server or the...
This is not an Oracle question. This is a canonical use case for a configuration management tool like puppet, bcfg2, cfengine, chef, etc. (of those, at least puppet has some support for managing windows machines as well as unixes) The appeal from your point of view for this particular case are several: each machine get...
3
6
647
2012-07-05T13:55:22.170
database_errors
serverfault.com
252,311
Block incoming mails; allow outgoing mails
Our server hosts various domains, half of them using Google Apps for their e-mail and the other half simply does not use any domain e-mail accounts. However, the websites and applications (eg crons, firewall) on the server need to send out mail. For this purpose postfix was installed (Ubuntu 10.04). All works well. How...
Here is what I would do: For the domains using Google Apps or some other 3rd party email service, set the MX records appropriately for that domain's email service. I would find it very interesting if you emails were still being presented to that server if the MX records for the domain point elsewhere. That would mean s...
3
2
2,811
2011-03-27T01:52:31.573
infrastructure
serverfault.com
420,102
Would an mutable to immutable transpiler be possible?
I'm very new to writing immutable code. Would there be any fundamental issues trying to transpile arbitrary mutable code [CODE] into immutable code [CODE] ? I am aware that it would change equality, such that "oldReferenceToPerson != newReferenceToPerson" after a change. EDIT: A comment rightly pointed out that my "imm...
No, this is not possible in the general case since the data dependencies in a system can be very tricky. As a simple example, consider the following setting: [CODE] We have two references to the shared object: [CODE] and [CODE] . A modification [CODE] would be reflected through both references. A reassignment [CODE] wo...
0
5
142
2020-12-16T22:21:43.110
api_errors
softwareengineering.stackexchange.com
446,745
Placing business logic on a not so small/big project
I am having a bit of problem trying to find the correct place for business logic. The project I am working on isn't huge, but is not small either and has a very considerable importance in my company. That said, I'd like to know how to better organize my business logic. First an example of how things are today. The meth...
We’ve learned over the years that most small projects grow over time. What starts as simple CRUD applications evolve into business critical systems and complexity increases exponentially. Sooner or later a feature request comes in that requires a full rewrite. Separating domain models from database models seems like a ...
1
4
172
2023-07-25T23:42:30.820
api_errors
softwareengineering.stackexchange.com
120,278
SQL Server: how to troubleshoot login timeout expired error
I have a production SQL Server 2012 (SP1) running on Windows Server 2008 R2 Enterprise edition. A lot of time while connecting to this server from a remote host I to face connection timed out error. Developers also reported same error from their scripts as well. Below is the error which I used to get from Management st...
A lot of time while connecting to this server from a remote host I to face connection timed out error. Developers also reported same error from their scripts as well. Interestingly, it's not "all the time" which sounds like you can connect "some" of the time. Since this is intermittent it definitely sounds like a name ...
2
0
5,493
2015-11-06T06:47:46.177
database_errors
dba.stackexchange.com
1,023,951
How to treat broadcast ip address as a normal IP
I'm new to networking things. I have a sub-network with 16 IPs (ex: 1.2.3.0 to 1.2.3.15). I'm using lxc for each IP for different purposes, but currently the containers with IP 1.2.3.0 and 1.2.3.15 cannot communicate with other containers in my subnetwork although it can communicate with anything else on the internet. ...
It sounds like you are using a /28 subnet with a netmask of 255.255.255.240. In that case: .0 is the network address .15 is the broadcast address These cannot be used as host IPs because as you have found other hosts on that same subnet will struggle to communicate. If you need more hosts you need to increase the netwo...
1
3
496
2020-07-03T21:39:36.233
pipeline_ops
serverfault.com
288,447
Can I resolve an issue with SRP, SOC that prevents object initialization via constructor?
In OOP, I can populate (initialize) an object using constructor injection at object creation time, or setter injection, after creation time. I like the idea of populating object at creation time via constructor, for object parameters that are essential to the object. And use setter methods for things that are non-essen...
You are over-using SRP. Let's take a look at [CODE] 's creation-and-initialization version: [CODE] [CODE] is the same as [CODE] , and [CODE] is returned immediately, so it can be translated to: [CODE] That's all your function does! Calling another function(the constructor)! Nothing else - no logic to choose the functio...
3
4
113
2015-07-01T21:17:53.667
api_errors
softwareengineering.stackexchange.com
878,463
Connect to machine that is behind another machine
I have the following setup LAN setup (All machines are running Slackware 14.2): [CODE] [CODE] and [CODE] are connected via my ISP's router and can connect to each other. [CODE] is only connected to [CODE] and is able to talk to [CODE] . However, I would like to be able to connect to [CODE] from [CODE] . I cannot config...
After some further research I found the solution. First, [CODE] has to be configured to forward packets from and to [CODE] : [CODE] Then [CODE] and [CODE] need to add additional routes via [CODE] , so they can find each other. On [CODE] issue as root: [CODE] On [CODE] issue as root: [CODE] That is all. Potential Firewa...
0
1
55
2017-10-14T14:45:33.010
infrastructure
serverfault.com
696,747
Routing from docker containers using a different physical network interface and default gateway
Background Information I have a server with two network interfaces that is running Docker. Docker, like some virtualization tools, creates a Linux bridge interface called [CODE] . This interface is configured by default with an IP of [CODE] and all Docker containers communicate with this interface as their gateway and ...
A friend and I ran into this exact problem where we wanted to have docker support multiple network interfaces servicing requests. We were specifically working with the AWS EC2 service where we were also attaching/configuring/bringing up the additional interfaces. In this project , there is more than what you need so I ...
19
5
32,174
2015-06-04T20:47:21.760
pipeline_ops
serverfault.com
664,448
AD Organization feedback requested
I'm taking over an AD domain (not large) administration but it looks like it needs some organization. For example, under the top domain "something.com" there is a folder named "User" with many security and distribution groups that are in use. Mostly global. There is also a folder under the top domain specific to the ne...
Where the users/groups live only really matter if you are using group policy. Otherwise they'll work the same no matter where they are. That said, you should be using group policy, and you'll want that to guide your OU structure and not necessarily mimic your company's organizational structure. Since you're inheriting ...
0
0
52
2015-02-02T21:09:48.500
infrastructure
serverfault.com
770,042
Right way of measuring overlay network performance
I am currently examining the performance (especially UDP throughput) of different Docker overlay networks. I do this by creating point-to-point connections between two hosts that are connected with a Docker overlay network and then run [CODE] inside the Docker containers to examine the throughput. I noticed that everyt...
UDP is both CPU and bandwidth bound . It sends packets without guaranteeing that they are sent, transmitted nor received. If the sender CPU is too busy, the packet is never sent. If the bandwidth can't keep up, packets are dropped in transit. If the receiver CPU is too busy or not ready to process incoming network data...
7
1
852
2016-04-13T13:37:50.010
pipeline_ops
serverfault.com
204,735
ORA-27101 while trying to login after shutdown immediate
[CODE]
I think you did the following steps and caught this error. [CODE] You tried to start SQL*PLUS and starting the database. [CODE] The problem is the database has not started to do the authentication for these supplied usernames. You could connect to the idle instance using [CODE] as the username to start the instance. [C...
0
2
651
2018-04-23T23:41:08.763
warehouse_errors
dba.stackexchange.com
1,127,172
Dnsmasq forward refused to other Dnsmasq in Docker container
Given two DNS servers, one runs on localhost (127.0.0.1:53) and the other in a Docker container (172.18.0.3:5300). When I tried to check domain resolve through at localhost DNS with [CODE] or [CODE] commands the request is refused : [CODE] and checked with [CODE] but the result is similar: [CODE] then the following log...
I solved my problem with followed the next articles. 1st step: I use to NetworkManager built-in dnsmasq instead of standalone installation: DNSMasq + Network Manager + Docker = Fun? 2nd step: I modified Docker Compose file: dropped host port definition in port mappings: [CODE] 3rd step: Modified dnsmasq config file on ...
0
0
1,010
2023-03-26T17:34:26.230
pipeline_ops
serverfault.com
150,062
server health monitor
Possible Duplicate: Server health monitoring software hello i need to a server monitoring solution. the solution must be able to alert when a server goes down also i want, the solution be flexible to work with various servers for example it must be able to monitor servers like, webserver,application server, DB server a...
Even though splunk is not open source I recommend you check it out, it can do pretty much everything you want and it can be extended. It's free up to a certain data throughput (it's quite costly if you want to get the shareware). Check out this post https://stackoverflow.com/questions/183977/what-commercial-and-open-so...
0
1
572
2010-06-10T08:47:26.043
data_quality
serverfault.com
873,656
Handling Massive Outlook Data Files
I have recently inherited a mess of an IT system (we don't even use a domains and group policy despite having a server). One major problem I am coming across frequently though is that users' Outlook data files are reaching massive amounts (such as 49gb) and as you can imagine it causes some issues. We use Microsoft exc...
(I'm answering this because it's a subject near and dear to me, but it's a borderline question for ServerFault because it's got a huge "user management" component in additional to the technical aspects.) As Sven said in comments, if you have legal retention requirements, you need a proper archiving solution. You tagged...
1
0
68
2017-09-14T13:42:29.653
database_errors
serverfault.com
155,263
SOA and ANY request disagree
Recently, I had a problem with my site. The site wasnt opening properly and I figured it out that there was some problem with the SOA. I corrected the SOA record and now its working fine. But when I tried running a zonecheck (www.zonecheck.fr) on my domain as www.mydomain.org it shows me a fatal error which says that S...
I don't see a problem with your zone: [CODE]
-1
1
334
2010-06-27T15:05:22.010
infrastructure
serverfault.com
211,410
Measuring network throughput with netcat vs. CIFS/SMB transfer rates
I have been attempting to measure and benchmark our LAN's throughput as part of a larger project. Our LAN is constructed using cat5e and HP ProCurve 1800-24G switches which support 10/100/1000 Mbps auto-sensing. The physical topology is rather simple. We have a ProCurve in our server rack that all the servers are conne...
I don't really have a solid answer here other than be really careful what tool you use for measuring actual throughput. I have used netcat (both the cygwin and GNU versions), timed CIFS/SMB transfers, timed SCP transfers, iperf and NetCPS on a multitude of hosts in both directions AND of course I have gotten wildly div...
2
1
7,469
2010-12-10T19:10:14.080
infrastructure
serverfault.com
1,101,522
bash script – MySQL commands and variables
I have a bash script who automate a Nextcloud server installation. To run MySQL commands I use the mysql -e command [CODE] I would like store db name, user name, password, etc. In variables How write mysql -e commands with variables ? [CODE] The two command above don’t run Error message with user password (test passwor...
Like this (with here-doc ): [CODE] Learn how to quote properly in shell, it's very important : "Double quote" every literal that contains spaces/metacharacters and every expansion: [CODE] , [CODE] , [CODE] , [CODE] . Use [CODE] for code or literal [CODE] , [CODE] . See http://mywiki.wooledge.org/Quotes http://mywiki.wo...
1
0
2,103
2022-05-22T09:57:10.223
database_errors
serverfault.com
447,189
tar on windows and symbolic links
It seems to me that tar on windows does not understand directory symbolic links - it treats them as an ordinary folders which in my case leads to infinite recursion. 7-zip has the same problem. Are you aware of any free tool that can simply backup directory with symlinks pointing to parent directory and then restore it...
Use -h option for tar, e.g. [CODE]
3
3
2,176
2012-11-09T17:59:42.863
database_errors
serverfault.com