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
1,043,091
Unexpected 301 redirects from Nginx when behind Nginx reverse proxy
Similar questions have been asked before here and here but none of them matched or solved the issue I am having. After a few hours of desperate problem solving I found a solution that was so unexpected yet simple that I wanted to share it in Q&A style. Background A company has two servers: a reverse proxy (Ubuntu 20.04...
A solution, and possibly the solution, came after multiple hard hours of trying to understand the problem and exact behavior of Nginx's redirection mechanism. The solution was rather simple really: Remove the [CODE] from the reverse proxy config: [CODE] Or alternatively, use proper [CODE] value: [CODE] The reason behin...
6
5
10,649
2020-11-18T18:09:43.697
infrastructure
serverfault.com
162,549
Server Problem exporting SRL query from PHPmyadmin with top button
I was trying to export an SQL result in phpmyadmin, and I used the top menu "Export", when I tryied to export as CSV nd than PDF, I had a strange message impossible to create the table "somenameintotheSQLdonotremebernow"...ok I quit, and I found the other button on the botton and it worked... What that top Export butto...
Without seeing the complete error message, phpMyAdmin version number, and export settings you're trying to use, it's quite difficult to know what went wrong. However, on any results page (including the "Browse" tab), there are three export buttons: The top one, in pink, as part of the regular navigation tabs, takes you...
-1
0
324
2017-01-29T09:18:21.070
warehouse_errors
dba.stackexchange.com
363,439
How do I set up passwordless RSA/DSA ssh connections under a linux server
I've set up an linux server (32 bit), and would like to be able to ssh in as root based on RSA or DSA key trust. I've appended both public keys to ~/.ssh/authorized_keys and restarted the service; I am still prompted for a password. How do I enable key-based trust for ssh here?
[CODE] should be owned by the user and mode 700. [CODE] should be owned by the user and mode 600. Each public key should occupy one and only one line of the [CODE] file. [CODE] should be in your [CODE] .
1
0
510
2012-02-24T15:13:37.010
infrastructure
serverfault.com
96,169
Active Directory generates DNS record for internal replication interface
I have an active directory domain controller in the 10.1.x.x address space that hosts some files. These files are replicated using DFS-R to a second machine over a crossover cable on a dedicated interface in the 192.168.x.x address space. The replication setup works great, but the domain controller keeps creating a DNS...
You're probably also using these DCs for DNS servers, too. The Microsoft DNS server registers A records for the IP addresses the DNS server is listening on (see this article which, tangentally, mentions this behaviour). This has been the behaviour of the DNS server since Windows 2000. So, configure the DNS server not t...
0
3
326
2009-12-21T03:15:00.833
database_errors
serverfault.com
723,895
Connecting To Remote MySQL Server - Connection Refused
So, I have a problem in trying to talk to a remote MySQL server, which is on a Digital Ocean host (Ubuntu). My other host is on IPOWER, but their SQL capabilities are not so great so I wanted my PHP files on IPOWER to talk to my MySQL database on Digital Ocean. I keep getting an error, "connection refused" however. Thi...
It turns out I was doing everything right, the problem was on the IPOWER side. I had a friend remotely connect to the SQL server on Digital Ocean and he did so in five seconds. The lesson here is don't let the customer choose the host, and don't use a crappy host like IPOWER that suggests you downgrade PHP and interfer...
0
1
3,072
2015-09-22T01:20:23.723
database_errors
serverfault.com
531,296
Incrond running but not executing commands CentOS 6.4
I have copied this question over here from StackOverflow... I have installed incron from the EPEL repository (0.5.9) (before you ask; YES, I also tried downloading the source and compiling locally (0.5.10); same results) and am attempting to set up a process on my CentOS 6.4 (final) virtual box that I have successfully...
Ok, here's the answer: Despite all documentation I can find declaring it to be the contrary, [CODE] under CentOS 6.4 runs in a sparse environment and behaves as [CODE] . this is NOT the case under Ubuntu, where incron inherits its environment from root for system tables and root tables and only user tables run in a spa...
6
3
17,302
2013-08-15T17:13:25.250
infrastructure
serverfault.com
210,920
Why does my INSERT fail on SELECT permissions when I have change tracking enabled?
I have a user in a SQL Server 2014 database that only has permissions to insert into a table (no select permissions). When change tracking is enabled on the table, the inserts will fail with [CODE] Why is this the case? Steps to reproduce: [CODE]
Change tracking operations are running within the user's context, and in order to track what is being changed it has to read the row using a SELECT before it is changed.
1
1
329
2018-06-28T23:46:47.703
database_errors
dba.stackexchange.com
645,834
Slab usage extremely high?
On a Centos 7 server with 32GB RAM memory I am running a few programs namely MySQL, Apache2, PHP. Recently I wanted to verify the amount of ram left as I was planning on installing a few more programs, to my suprise the amount of memory was quiet low! After investigating I found over 20GB was being use by Slab. 2 days ...
I always use [CODE] to look for biggest VSIZE/VSS or RSS processes, Then I go to /proc/ / subdirectory. And examine the [CODE] file for biggest offending object file, socket, and often times, library.
7
1
3,424
2014-11-20T14:08:09.983
database_errors
serverfault.com
23,139
How can we test performance of a mobile application(both android and IOS)
I need to test the performance of a mobile application. I have used Jmeter tool to test it's services and APIs, but we want to test it's performance in device as well. is there any tool using which we can test the performance of a mobile application. A single open source tool which can help with both applications i.e. ...
There is no single tool which will allow you to do it on both platforms so I would suggest the following combination: Android: Performance Profiling Tools iOS: Performance Tools Simulate lots of mobile users (load testing the backend): almost any tool from this list , for example Apache JMeter which can even record mob...
1
0
1,237
2016-10-18T05:59:02.267
data_quality
sqa.stackexchange.com
981,452
Run scalable Service in GKE with fixed Domain and Port
I've a shipped app where a URL is hardcoded "upload.mydomain.io:123123/myRoute". This DNS points to an VM where an NGINX distributes the traffic to services. Now I need to put a highly scalable service in front of the VM, WITHOUT having the possibility to change the hardcoded URL. I've tried so far: Cloud Functions App...
You can use ClusterIP services to map external services within the cluster , this way, you'd see your service as a cluster-local address (represented by a Service), which will be relaying requests to your external service. Alternatively, you can user an specific type of service called [CODE] , that also does the same r...
0
0
53
2019-08-31T20:39:20.930
pipeline_ops
serverfault.com
981,873
No network available on Supermicro server
I recently acquired a second heand Supermicro 2027GR-TRF with a Super X9DRG-HF motherboard. I can't access the network and I don't understand why. Both RJ45 ports are blinking green steadily. Here what I tried to do: Bios has been updated and restored to optimized default configuration I tested the RJ45 straight throug...
A note on this motherboard's web page indicates that the onboard Intel NICs only work when the motherboard has two CPUs installed. This is one of the stranger compatibility issues I have ever heard, but there it is. You should ensure that you are using a recent Linux distribution with the latest available kernel in tha...
1
0
1,632
2019-09-04T14:54:14.437
database_errors
serverfault.com
716,621
Set Up OpenVPN with Ldap support on CentOS7
We are trying to set up OpenVPN with ldap support via openvpn-auth-ldap on CentOS7. The EPEL repository is not listing openvpn-auth-ldap anymore for CentOS7 . For CentOS6 , there was a working relase. We can not find any working release for CentOS7. The earlier builds won't run. They result in missing dependencies, etc...
EDIT: This is in EPEL for EL7. Avoid my Copr listed below, as I've backported some security fixes into EPEL that aren't in the Copr. I was able to take the openvpn-auth-ldap-2.0.3-14.fc21 SRPM and make a few really minor tweaks to update it for the current version of OpenVPN, which makes use of a new plugin version. I'...
0
3
1,834
2015-08-25T13:01:12.337
infrastructure
serverfault.com
377,407
If you can store BigInts in a more optimal way than an array
This suggests just storing BigInts as an array: [CODE] However, if you have "big ints", that array will get large: [CODE] A hundred digit array, that would be pretty slow if there were a lot. Maybe there is a way to combine the numbers in some other way, so each number in the array goes until it maxes out at the 32-bit...
Bignums are usually stored as an array of digits. Just like smallnums are. Smallnums are usually stored as a fixed-length arrays of "digits" in base 2 . Bignums are usually stored as variable-length arrays of "digits" in base 18446744073709551616 . Arithmetic is exactly in the same way as you learned in school.
2
4
118
2018-08-24T20:46:09.427
api_errors
softwareengineering.stackexchange.com
754,078
Hide server IP from received-header (STMP via sendgrid)
I use a PHP-CMS to send emails via SMTP. The problem is that I want to secure my server against DDoS, so I've installed CloudFlare and I want to hide my real server IP. When users get an email by the PHP-CMS, they can see the IP in the Email header (Received:). How can I hide this information? I use sendgrid for sendin...
You can forward the SMTP port from CMS host to the MTA host so your PHP will be sure messages are submitted locally. But they will be submitted to the remote MTA via [CODE] . On the CMS host stop the local MTA and launch this: [CODE] The [CODE] header will contain only MTA's IP and 127.0.0.1 for submitter instead of CM...
4
1
1,773
2016-02-04T17:55:31.113
infrastructure
serverfault.com
857,093
Retrieve local administrators on user login then write to network share
I've been given a problem that is outside of my wheelhouse and I'm not sure the best way to address it. The problem I'm trying to address is twofold: Remove accounts with administrator permissions that have no justification. Strip administrator permissions from user-level accounts. I want to run a PowerShell script at ...
Item 1 - I think I understand your question. Are you asking about a script defined in a GPO vs a script defined in the user's login script field in AD? Then you're on the right track but a little wrong. A GPO login script defined in User Configuration (or an AD user login script) runs as the user - it runs at login for...
1
1
59
2017-06-21T16:13:17.667
infrastructure
serverfault.com
219,353
Where does the tradition of shell prompts in code snippets come from?
Most code samples I see that demonstrate shell code preface each command with [CODE] . Having a prefix makes sense, but I'm confused as to why [CODE] is used in particular. Some other symbol, like [CODE] , that can be copied and pasted into a prompt without affecting the command's execution makes far more sense to me. ...
[CODE] is the default prompt prefix for a non-escalated bourn or sh shell on most *nix systems. It signifies that the code exemplified should be executed using one of those associated shells. zsh and csh have [CODE] as a prefix. The fish shell uses [CODE] . Putting the prefix is simply a quick way to let the reader kno...
1
8
382
2013-11-24T02:27:52.897
api_errors
softwareengineering.stackexchange.com
829,392
Denyhosts killing ssh, denyhosts file contains weird characters
We noticed this morning that we are unable to login with SSH into our server. Our server providers then installed a minimal Linux on the ram. After mounting the disks and chrooting into it, I stopped denyhosts temporarily and when I went in hosts.deny file to clear our IP addresses, we see the following. What exactly i...
Looks like the kernel on the minimal installation provided by your ISP is different than the kernel in the actual system. Then it tries to load the [CODE] module for iptables, and fails to load because your chroot environment does not have the module for your kernel version. Try loading the [CODE] module before enterin...
0
1
199
2017-01-30T11:30:45.333
infrastructure
serverfault.com
375,986
Parsing Complex Context-Sensitive Text
I am trying to learn how to handle complex context-sensitivity in parsing. Say you have this simple example of code: [CODE] If it were just plain JavaScript, the variables would evaluate to this: [CODE] However, I want to make this much more context-sensitive by adding some arbitrary complexity to it. Say that we add t...
In this case, I'd look for something like project Roslyn from Microsoft for inspiration Wikipedia The steps you want to take all come down to static analysis of the code with the rules that are in place. Roslyn uses multiple stages to do this analysis and I suggest you would do the same. First, tokenize all the code in...
-2
1
216
2018-07-27T07:47:18.110
api_errors
softwareengineering.stackexchange.com
1,100,480
WSL-Docker: curl: (60) unable to get local issuer certificate
After a PC reconfiguration I am unable to use Docker properly, since some curl commands are rejected due to SSL/TLS issues. In just one example [CODE] returns the following error: [CODE] After some digging, I now now know that this issue also occurs within my WSL image, but not on host Windows OS . Hence, I believe thi...
We have finally figured it out. The issue here was that the IT department installed a firewall which intercepts SSL connections (many firewalls do this to be able to block "bad" traffic which would go through undetected because of the encryption). To be able to intercept a SSL connection, The firewall puts its own cert...
4
12
28,349
2022-05-09T06:27:01.143
pipeline_ops
serverfault.com
54,105
Neural Network returning training data ratio instead of probability
I am trying to create a neural network from scratch using numpy. I have created a network that can classify iris data base to a high degree of accuracy. I am facing the problem that sometimes instead of predicting a class given input, the network just trains to return the probability distribution of the training sample...
In case of any neural network if you are trying to solve the classification problem then it should generate probabilities. If you are trying to solve 2 class classification problem then one can opt for sigmoid or softmax. In the case of sigmoid, your neural network only contains 1 output neuron which generates value pr...
0
1
126
2019-06-19T18:42:35.747
data_quality
datascience.stackexchange.com
459,363
Centos firewall blocking incoming connections
After installing Centos 5.8 I could not pick up any open ports using nmap. So I ran the command #iptables --flush and all started working. However, after about 2 days I could not connect again and had to run the command. 1)How can I permanently ensure that my ports are open 2)What could be causing them to be shut in th...
Configure the firewall to open only the ports that you need to have open. Disabling the firewall entirely is very dangerous. You can use the [CODE] command to configure it from a terminal.
3
4
4,241
2012-12-19T15:45:25.033
infrastructure
serverfault.com
65,154
Small Business Server services will not start, and remote desktop and UAC are broken
Yesterday I began setting up a server with Windows Small Business Server 2008. All I am configuring it for right now is to be a domain controller and Exchange server. I completed the initial setup of SBS then started looking through different connection options (allowing VPN versus using a TS Gateway). After I rebooted...
I'm fairly confident the problem was one of or a combination of: Setting a Secondary DNS server from my ISP rather than leaving the SBS server as its own sole DNS server. Disabling IPv6 because I believed I didn't need it. I've since reinstalled and avoided disabling IPv6 or setting a secondary DNS server (instead addi...
0
0
3,206
2009-09-14T14:00:03.920
database_errors
serverfault.com
701,271
How can I find my Teamviewer ID via SSH?
So I tried doing this command [CODE] but apparently it can't find my ID and I must restart the tv daemon, I do this but it still says the same thing?? Is there any way to get my Teamviewer ID without this? I also tried checking the logs but there's nothing in there that's a Teamviewer ID. My issue is different to other...
Please verify you are searching in the correct logfile. [CODE] most likely is the logfile where your id is entered into. (replace your_user and the teamviewer version if needed.) [CODE] will give you that information.
-1
0
2,518
2015-06-24T11:31:33.273
infrastructure
serverfault.com
769,417
Domain name is not displayed in URL after redirection
I have a domain on GoDaddy and have hosted a Magento project on it. I now purchased CloudWay and have migrated on their server. My issue is with URL, I created a subDomain [CODE] and set CNAME from CPanel. On Firing, this URL my New Hosted page is getting launch but its URL does not remain [CODE] there it changes to ht...
Looks like you need to set up an A NAME record as well: https://support.cloudways.com/how-to-point-my-root-domain-to-my-new-cloudways-server/ And make sure domain mapping is set up correctly: https://support.cloudways.com/how-do-i-take-my-website-live-from-cloudways/ And don't forget it takes some time for the new sett...
0
1
808
2016-04-11T09:12:05.157
infrastructure
serverfault.com
125,320
CHMOD To Prevent Deletion Of File Directory
I have some hosting on a Linux server and I have a few folders that I don't ever want to delete. There are sub folders within these that I do want to delete. How do I set the CHMOD permissions on the folders I don't want to delete? Of course, when I say "I don't ever want to delete" - what I mean is that the end custom...
Deleting a file/directory changes the contents of the parent directory, hence, if you don't want [CODE] to be deleted, you want to ensure that the intended user does not have write access to the parent dir of [CODE] . Assuming this structure: [CODE] You'll want to run something like this to prevent deletion (for all us...
4
11
27,696
2010-03-23T10:42:24.380
infrastructure
serverfault.com
277,922
Creating algorithms
I am a relatively new programmer. I can pick up languages and learn syntax at a speed that I consider good, but I can't figure out how to solve problems logically using algorithms very well. I know about the proper steps that we are taught in Comp Sci, but a lot of my friends are just spitting out algorithms. Have any ...
A coworker of mine always says that if you can draw it you can program it. I think there is a lot of truth to that. I usually draw out a very specific case (on paper) and try to generalize from there gradually. I find it more challenging to know if I can actually do something as opposed to how since there is a lot of r...
0
0
767
2015-04-01T00:48:03.817
api_errors
softwareengineering.stackexchange.com
277,708
Dual-homed server DNS registration issue
In our environment, most Windows Servers are dual-homed. The first NIC, called 'Public' is the one: used by the servers to communicate with Active Directory with a default gateway set via which the applications should be exposed via which the RDP connections should be established The second NIC, called 'Management' is ...
You can disable Dynamic DNS per nic in the registery. Set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\[Interface name]\DisableDynamicUpdate to 1 Read http://support.microsoft.com/kb/246804 for details.
0
1
2,627
2011-06-07T05:40:06.923
pipeline_ops
serverfault.com
1,091,377
I need an explaination as to what is happening when I change the zone file of a DNSSEC enabled domain
I recently moved our hidden DNS master service to a new host, DNS38. The original master service is still running but is not being polled at the present time. The old master, and all the authoritative slaves, are running bind-9.11. The new master host is running bind-9.16. DNSSEC is enabled for the domain I am dealing ...
The issue was caused by the journal file being out of sync with the hosts file. Removing the .jnl file and then reloading the domain solved the problem.
0
0
198
2022-01-27T17:13:52.233
infrastructure
serverfault.com
185,628
DBA_TABLESPACE_USAGE_METRICS is empty
For one of my 11.2g databases, [CODE] returns no rows . Why is that and how can I fix it? Thank you in advance.
Typically caused by: Bug 18921384 - DBA_TABLESPACE_USAGE_METRICS VIEW DOES NOT RETURN ROWS WHEN DB_FILES LIMIT IS REACHED To verify: [CODE] Then increase [CODE] if needed or upgrade to a newer version where it is fixed. Another possible cause: Bug 16317020 - Records missing from dba_tablespace_usage_metrics (Doc ID 163...
0
2
1,349
2017-09-11T15:30:24.870
warehouse_errors
dba.stackexchange.com
711,189
Lync Server 2013 Install-CSDatabase Failure
I have been trying to get a Lync server setup in my test enviroment and I keep running into errors. Most of them I can resolve fairly quickly, but last one has me stumped. I get the error when Lync tries to Execute PowerShell command Install-CSDatabase, looking at the log file it tells me that it timed out. I am not su...
I am running this on a VM in a test host, which has some pretty low I/O specs. I moved the VM to a host with higher I/O specs and the installation completed. Apparently, it was taking too long to complete the transaction and it timed out.
0
1
966
2015-08-05T23:49:50.900
infrastructure
serverfault.com
832,022
named cannot be loaded; because zone file errors
I try to make a DNS server with named (I believe it is also called "BIND"). when I try to load the server I get: [CODE] here is [CODE] [CODE] and [CODE] [CODE] I can't understand what is wrong. I try first to make an A DNS record. Later I would like to add MX and PTR, but I haven't been managed to install the A record ...
The first record would appear to be a messed up [CODE] record: [CODE] Presumably you meant something like: [CODE]
0
2
8,047
2017-02-11T16:22:34.093
infrastructure
serverfault.com
303,800
Object cannot be cast from DBNull to other types. (mscorlib) When clicking Contents Button to view backup device
I want to restore a full backup of a SQL Express 2017 database to SQL Server Standard 2019 Both are on Oracle Linux 8.5 When I click the contents button I get the following error [CODE]
It turned out to be that mssql tools, which controls the backup, was at two different versions. We had to upgrade https://learn.microsoft.com/en-us/sql/tools/sqlcmd-utility?view=sql-server-ver15
0
1
1,744
2021-12-10T18:57:58.483
database_errors
dba.stackexchange.com
95,567
How to prevent people from playing with your website?
I have designed my first website recently. I created my own blog like thing in PHP. I write articles and below the articles there is a place to add comments. Sometimes I get random comments something like 'sd$^&(87&(*2d10hsdasko' with no meaning. There are hundreds of them. I think some silly person with lots of time m...
1. Log users activity You can't know what's happening on your server if you're not logging anything. Sometimes, you may not even know for months that something wrong is happening if you're never looking at logs. When somebody does something wrong, you may want to find the concerned IP address or addresses. Then, use WH...
1
7
376
2011-07-24T19:45:24.233
api_errors
softwareengineering.stackexchange.com
410,725
PHP-FPM and continuos "exited on signal 11"
I've a Hp web server with Xeon E5504 2ghz and 8gb ram, with freebsd 8.2-p9 amd64, nginx 1.2.1 , PHP 5.3.14 , mysql 5.5.25, apc, memcached and other package installed using freebsd ports. (conf file at the end of that message) My trouble are simple, I've a lot of "exited on signal 11" in /var/log/messages and when php-f...
PHP 5.3.14 has a serious bug that leads to segfault in php-fpm. It was fixed in 5.3.15 and 5.4.5.
6
3
29,876
2012-07-24T16:36:32.047
database_errors
serverfault.com
69,699
Resolving deadlock from 2 tables only related through indexed view
I have a situation where I'm getting deadlocks, and I think I've narrowed down the culprits, but I'm not quite sure what I can do to fix it. This is on a production environment running SQL Server 2008 R2. To give you a slightly simplified view of the situation: I have 3 tables as defined below: [CODE] The [CODE] table ...
The conflict boils down to [CODE] being an Indexed View which needs to be maintained (internally) across the DML statements. That is most likely why SP1 is wanting a lock on the [CODE] index as it is probably used by the View (it looks to be a covering index for the View). Two possible options: Consider dropping the Cl...
17
6
4,805
2014-07-04T02:21:17.380
database_errors
dba.stackexchange.com
117,348
Some DHCP clients end up with wrong DNS server
The scenario: DC running Windows Server 2008 R2 providing DNS + DHCP Cisco 1811 Router as the gateway 30 Windows XP DHCP clients on the LAN The problem: Some workstations are spontaneously switching to an incorrect DNS server. Specifically, [CODE] shows that they start using the gateway as a DNS server. This happens ab...
I would run a packet dump on a few of these boxes until it happens. See if you can find anything network related. Maybe you will see some packets that give you an idea if it is not that. Can a group policy in Windows set the DNS server. Maybe somehow there has been a strange GP applied on the domain? Update: I have nev...
6
3
22,793
2010-02-26T23:56:38.800
infrastructure
serverfault.com
136,876
Very fast individual queries but when joined super slow
I've got query 1: [CODE] Takes about 0.475 seconds, which is not a lot for the data set I m trying to build. Basically USER_ACCESS consists of this structure: [CODE] It's basically a fine grained control over the actions in the system, whether a user has the authority to do something for a given department/location or ...
Sorry it was a such a dumb thing to ask, but again if this is a dumb answer please feel free to delete it. I've used the intersect instead of inner joining the two queries as subqueries.
0
0
380
2016-04-28T16:31:06.957
data_quality
dba.stackexchange.com
374,833
Tomcat6 getting crashed at regular intervals installed in Ubuntu
I have installed Tomcat6 in Ubuntu OS and when I run my web application the server gets crashed at regular intervals. I have tried a lot but not getting the solution. I have increased the memory upto 2048mb but still getting such error. Following is the error I am getting. Any help would be really appreciated. [CODE]
Stop the server, archive the log files. Restart the server. When the exception occurs, post the full stacktrace. If the error doesn't occur for a long time, you may need to add: -XX:-OmitStackTraceInFastThrow to your CATALINA_OPTS. Check your application is correctly closing any DB connections it uses in the finally bl...
0
1
917
2012-03-29T12:51:58.473
infrastructure
serverfault.com
119,944
VMWare clients: replace an existing server with a clone
Consider two Win2k3 servers: SRV01 and SRV02. These two servers perform the same function in the domain, and have the same software installed. SRV01 runs without issue. SRV02 has problems problems that we've troubleshot down to the OS. We've reinstalled the faulty software to try to correct the issue. So now we want to...
I think you have most of the steps and what you proposed would probably work. I recommend that you follow these steps. In my opinion, this is one of the best benefits from Virtualization.
1
1
273
2010-03-07T00:19:48.060
infrastructure
serverfault.com
780,050
Certificate Not showing on the Web console
On a Windows 2008 R2, with an AD level of Windows 2008 R2 We need to create a cert to allow user/admin to enroll via the Web service page ( https://CA/certsrv/ ) On CA, right-click Certificate template and select manage In the certificate template, we've created a duplicate of an existing cert, and configured it with a...
The two most common problems I see with this are either permissions related or template version related. The user logged into the certsrv site needs to have both [CODE] and [CODE] permissions on the certificate template. If they don't, it won't show up in the list of available templates. Also when duplicating the templ...
2
7
67,276
2016-05-31T15:31:24.093
data_quality
serverfault.com
120,656
Awstats messaging non existant user causing exim4 to go nuts
I've taken over managing a server set up by someone else now uncontactable, while managing to work out most faults / changes needed this one is stumping me. Awstats is running on the machine and sending messages via exim4 to a user every time it runs an update. The user account has been deleted and so the exim4 main lo...
Managed to solve the issue - put here in case anyone else ever has the same problem: /etc/aliases had all the users going to root and then root going to the user account so all the system messages were being dumped into an unknown account.
0
0
184
2010-03-09T09:26:25.520
infrastructure
serverfault.com
978,932
How to get CPU usage percentage for a namespace from Prometheus?
Our product lives in a Kubernetes cluster on our server. It is not in production yet, so there are multiple instances running in the cluster for different purposes, each in its own namespace. I need to run some load tests on one of the namespaces and I need to monitor CPU usage meanwhile. We have Prometheus and Grafana...
I found out why I couldn't use the metric I cited above. It's because usually there are only a few pods that even have a CPU limit setting. It is not needed in general and it would make the cluster clumsy. So [CODE] does sum all the existing limits on the pods of the namespace but that's not the theoretical 100% CPU us...
1
1
30,139
2019-08-12T15:15:58.523
pipeline_ops
serverfault.com
24,787
Files showing in smbclient but not smbmount
I have a samba folder that I try and access through smbclient, and I can browse it just fine. However, mounting it through smbmount, all the folders under the share are empty. I can list the folders directly under the share fine, but they all appear empty. smbclient: [CODE] smbmount [CODE] I have also tried with domain...
Try using a credentials file instead; see [CODE] for details.
0
1
3,409
2009-06-12T14:10:46.070
infrastructure
serverfault.com
1,032,336
Bash: Dynamically traffic shaping rsync using variables for times schedule and slowing during runtime?
What are some solutions to having dynamic traffic shaping run during a bash script, after a command has already started ? Is this even possible? My use case is, I have [CODE] running on a huge set of disks to a remote backup location and this takes many many hours over Internet, so I'd like to apply traffic shaping to ...
[CODE] cannot have its bandwidth limit parameter changed dynamically. However you could Split the job into several smaller tasks where each will have a specific bw limit based on the time it starts, eg for instance [CODE] Use the [CODE] option [CODE] is smart and will not redo what it just did, if the files are synced,...
5
5
741
2020-09-01T21:11:41.400
database_errors
serverfault.com
1,099,980
Why does Test-NetConnection indicate connection can be made, but I cannot visit the site?
I need to determine whether a particular site is accessible on a particular port, given that firewall restrictions exist on the network. If I cannot access the site on a particular port, then that means I would need to modify the firewall before proceeding. Otherwise, if I can reach the site, then I would be able to pr...
Clearly, the Test-NetConnection command did not produce accurate results, as the web browser was not able to reach github.com. That's not an accurate statement. Test-NetConnection did in fact make a TCP connection to port 443 of the destination server, verifying that TCP port 443 on the remote server is in the listenin...
1
3
3,832
2022-05-02T19:59:00.663
infrastructure
serverfault.com
332,757
Why do most log files use plain text rather than a binary format?
Logging is something that is necessary but is (relatively) rarely used. As such it can be made much more compact in terms of storage. For example the data most commonly logged like ip, date, time and other data that can be represented as an integer is being stored as text. If logging was stored as binary data, a lot of...
[CODE] famously stores its log files in binary format. The main issues I have heard with it are: if the log gets corrupted it's hard to recover as it needs specialist tooling they are not human readable, so you can't use standard tools such as [CODE] , [CODE] , [CODE] etc to analyse them The main reason for using a bin...
87
165
24,397
2016-10-04T15:01:54.850
api_errors
softwareengineering.stackexchange.com
683,341
How do I enforce preferential routes with BGP & Quagga?
I have two routers that I'm setting up currently and they will be feeding my network of servers with a private AS number provided by the datacentre. What I want to do is provide both a VRRP failover default route for servers on the network, and also ensure that routing out and inbound will always be preferred via one p...
There are several ways to accomplish what you want, and yes, prepending your own AS to the routes (prefixes) you advertise to ISP, along with setting a LOCAL_PREF to the ones you (will) re-advertise internally is a good point. Basically, you need to: Make the prefixes (routes) you advertise through R1 preferred for ISP...
3
3
3,520
2015-04-16T22:14:05.043
api_errors
serverfault.com
913,886
VPN server using StrongSwan "no matching peer config found" - what does it mean?
I have an AWS server running Ubuntu that has a pptpd server for VPNs, and many clients with different credentials. It works great. But apparently I'm not supposed to be using that any more, I'm supposed to be using ipsec. I'm trying this out on a local computer running Ubuntu 16.04 first before attempting to do it on t...
One of the subjectAltName extensions you added to the certificate is [CODE] , however, you configured [CODE] . Since that doesn't match, the local identity will fall back to the subject DN of the certificate (i.e. [CODE] ). This, in turn, doesn't match the remote identity proposed by the client ( [CODE] ). So either co...
2
3
5,073
2018-05-26T08:14:58.450
api_errors
serverfault.com
425,152
What's the meaning of logging in as "username@mydomain.com:something"
My Windows 2008 R2 machine is joined to a domain. In the logon screen, if I type in "username@mydomain.com:something" as the username, I can still logon properly, what's the meaning of ":something" appended at the end? I can even see the current user is displayed as "username@mydomain.com:something" in the switch user ...
I opened a case with Microsoft Premier Support. Here is the email between me and Microsoft support. They basically say that it's a known issue. It's not a bug and it's not a feature. The back-end will parse the user name and strip out the illegal characters properly The front-end doesn't do any UI validation because th...
35
14
1,437
2012-09-07T01:33:41.873
data_quality
serverfault.com
74,924
Innodb DB Consuming IO even when no operations are being done
I am currently doing some stress testing where I am pushing inserts to the database as fast as I can. The simulation inserts 10000 records per second. After inserting around 200 million records I found that the inserts were very slow. So I stopped the simulation. Currently I have stopped pushing any transactions to the...
That is 100% normal: what you are seeing is the background threads performing the following operations: Flushing dirty pages from the buffer pool into the tablespace files. You can see that is happening on your case due to the difference between your LSN and the latest checkpoint on the [CODE] . Merging non-unique seco...
2
2
2,754
2014-08-26T05:29:48.367
database_errors
dba.stackexchange.com
419,475
Distributed message queue, propagating queue leader/follower information
I'm designing a distributed queue message queue and I'm not sure how to get the leader information to another component. This is my current design: I have the following components: FrontEnd: request validation, authentication, SSL offloading, server-side encryption, etc Metadata Service: keeps queue metadata informatio...
The problem with the last option is that I would still need somewhere to store queue metadata information like creation date. Other than you may store other fields (like timestamp) in Metadata database, Metadata service should scale out well for reads and be highly available as every PUT and GET call for a message resu...
1
5
312
2020-11-29T11:39:31.103
api_errors
softwareengineering.stackexchange.com
341,430
If I have ten objects, should there be ten controllers for a Web API?
Is it good design to have a controller for each object of your API? I know this is a short question, but it's really a fundamental question that I do not know. Say I have a school or a CRM. That is a lot of controllers. I don't know another way to do it, but it feels like a DRY problem. I am using ASPNET Core if that m...
Define 'object' You have one controller for each resource . Where a resource is a thing that your API provides ( [CODE] , [CODE] , [CODE] , [CODE] , etc.) Resources don't necessarily map one-to-one to domain objects . Sometimes a resource is made up of several domain objects and sometimes several resources reference th...
4
5
1,103
2017-02-02T14:53:41.180
api_errors
softwareengineering.stackexchange.com
222,419
Deleted user default database - SQL Server 2008
I cannot connect to the database anymore, I'm getting: Cannot open user default database. Login failed. I have deleted the database during a previous session and then tried to recreate it. But the recreate failed. Now I am stuck with this error, what can I do? Edit: I'm using Windows Authentication Any ideas? Fixed: us...
Fixed it!! use the command: sqlcmd -E -d master then type: ALTER LOGIN [Your Windows Login] WITH DEFAULT_DATABASE=master GO
0
1
260
2011-01-14T11:52:03.557
api_errors
serverfault.com
217,236
Scrambling PII data in CLOB columns
I am working on scrambling PII tags in CLOB columns such as [CODE] or [CODE] or [CODE] . so I am using the below query to achieve the same. [CODE] The above query runs for really a long time(more than 6 hours) and at last fails with below error. [CODE] I am not aware of what could be wrong with it. Is there anyway to o...
Looks like there's an error in your XML file (the character U+0003 is "ETX" - end of text, which is nonprinting and invalid in XML). Run the XML file through a validator. Also (and you probably know this), your atbash "scramble" is not particular secure.
0
0
103
2018-09-11T06:35:39.213
warehouse_errors
dba.stackexchange.com
22,616
mongoDB rs.initiate hangs
I am having trouble setting up replication on a new mongoDB installation. Everything works fine when I run without replication but when I run mongod with the --replSet option, and run rs.initiate(), this command hangs. Note that I am only running a single instnace of mongod in this example. No other instances are yet r...
I was able to get a solution for this problem on the mongoDB google group. Explicitly setting the oplogSize parameter in my config file solved the problem. By default, mongod tries to allocate 5% of the free space on the storage partition. I have my data on a very large shared disk and this seemed to be taking a long t...
4
5
1,851
2012-08-15T14:21:16.220
database_errors
dba.stackexchange.com
289,515
Recursively find the path to all leaves descending from a given parent in a tree
I'm trying to write a query to identify the path to each furthest descendant of a particular parent node in a table of tree structures like: [CODE] There are many parents, all children have one parent, parents have 0-5 children (but the graph is very "long" – most parents only have one child). There are no cycles. I'm ...
[CODE] https://dbfiddle.uk/?rdbms=postgres_12&fiddle=2e40ff454f302033bf5e8cba8b0b0d85 Multiple initial nodes may be applied too ( [CODE] ).
3
2
4,399
2021-04-09T05:10:28.127
warehouse_errors
dba.stackexchange.com
264,772
Starting php-cgi: spawn-fcgi: child signaled: 25
[CODE] Does anybody know what this could mean? I'm trying to start php-cgi on CentOS. The only thing I can say is that it was working before the hosting shut the server down for maintenance. I don't know if it's important, but [CODE] shows: [CODE] . Port 9000 should be open, right? Sorry to be so vague, I know almost n...
According to [CODE] , on x86 hardware signal 25 is [CODE] "File size limit exceeded". Update your question with the output of [CODE] (from whatever shell you're trying to start php-fpm from)
0
1
759
2011-04-29T15:28:08.240
infrastructure
serverfault.com
107,884
Network driver for Ubuntu 9.10
Running VMWARE Workstation 6.5.3. Installed Ubuntu 9.10 and it cannot get on the network. has anyone else installed Ubuntu 9.10 and not run into this issue? Error message "The virtual network drivers on the host are incompatible with the installed VMware application. Expected version 5. Please reinstall the product. Vi...
Firstly 9.10 isn't supported on 6.5.3. Secondly have you installed the vmtools from the 6.5.3 version of VMWare Workstation or from somewhere else? if not then you MUST do this.
2
1
562
2010-01-30T16:19:12.753
infrastructure
serverfault.com
959,407
"Allow log on through Remote Desktop Services" user right has no effect
I am trying to allow members of a domain security group, [CODE] , to RDP into certain Windows 10 PCs. I granted the [CODE] group the "Allow log on through Remote Desktop Services" right and that policy has been successfully deployed to the target computers. Despite this, whenever a member of the [CODE] group attempts t...
Permission to establish a remote desktop session and permission to log in when using a remote desktop session are two different things. The user rights assignment settings only affect the latter. Microsoft do provide documentation on changing the permissions that control who can establish a remote desktop session: How ...
5
4
24,163
2019-03-21T19:53:52.600
infrastructure
serverfault.com
1,146,889
Docker Mysql container: Connection Refused
So I have the following [CODE] and [CODE] file. [CODE] [CODE] When I run [CODE] the [CODE] and [CODE] containers build fine. Directus however fails when trying to connect to mysql. I have tried various values for [CODE] and [CODE] / [CODE] : [CODE] [CODE] [CODE] [CODE] [CODE] And none work. I continue to get the same e...
Sadly after more permutations, and even some help from ChatGPT, was unable to solve. I started a brand new instance, and this time it worked. The majority of it is the same, but used mysql [CODE] instead of [CODE] , which you'd think is the same... but it worked. I also used [CODE] as the host, leveraging the internal ...
0
0
906
2023-10-31T01:20:54.933
database_errors
serverfault.com
168,379
Windows 2008 service creation permission
What do I need to grant permission for creating a service in Windows server 2008 R2? I have added the user to the local "Administrators" group. This is the error message: [CODE]
I ended up temporarily disabling UAC and installing service like so: Set HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA to 0 as Administrator Reboot Create service as non-Administrator user Then set HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\Enab...
2
2
4,251
2010-08-09T07:13:53.760
infrastructure
serverfault.com
1,654
How to connect a Bamboo remote agent from within Intranet
We have a Bamboo server running in the cloud and we would like to connect the machine that is in our local network. The problem is that this PC only has access to proxy that has only port 80 available and company would not allow to open any ports. We want to avoid setting up new Bamboo instance in our local network.
So I am assuming that 1) you have a PC on your LAN. The PC can only talk to port 80 outgoing via a proxy 2) you have a bamboo server running a cloud service 3) you wish to initiate a connection from the bamboo server to the PC Don't get your hopes up but this answer https://stackoverflow.com/questions/19161960/connect-...
2
1
1,366
2017-08-03T08:25:45.050
pipeline_ops
devops.stackexchange.com
137,066
Is this bad design for a Shape interface?
I'm creating a vector editing program in C++, and I need a Shape interface which other concrete classes will implement. There is a requirement that no implementation inheritance is allowed. The design doc says that if you need polymorphism, use interfaces . If you need code reuse, use composition . The Shape interface ...
It's a bad design because you have implemented a subclass for something that isn't a genuine subclass. A Circle is simply one example of a FunctionalShape, as opposed to a VertexShape. Examples of FunctionalShapes are circles, and also ellipses, and similar things. The function used to generate the shape is just data, ...
1
2
869
2012-02-27T08:17:06.677
api_errors
softwareengineering.stackexchange.com
294,520
MYSQL Error Code: 1442. Can't update table in stored function/trigger because it is already used by statement which invoked
[CODE]
I think this could be simplified a lot to this: [CODE] As the error tells you, you cannot INSERT/UPDATE/DELETE a table in a trigger that is the same table that spawned the trigger itself. This has too high a risk that it will cause an infinite loop. But you can [CODE] in a BEFORE trigger. As far as I can tell from your...
-2
2
13,142
2021-06-19T05:29:23.183
database_errors
dba.stackexchange.com
53,791
MySQL on Windows or GNU/Linux?
I've just read this article: http://dev.mysql.com/tech-resources/articles/move_from_microsoft_SQL_Server.html There it says that MySQL on Windows is a good choice. (or is what I've understood) In the article I don't understand if he says that MySQL on Windows is better than on Linux, or just that MySQL on Windows is go...
There are advantages of using Linux as you base for mysql, as others have already covered, but from a performance point of view for many applications you will not see the difference particularly. While Linux would be my default recommendation too make sure you consider your experience (and that of the people you can im...
1
2
8,856
2013-11-22T12:41:25.667
database_errors
dba.stackexchange.com
731,131
How to specify VPC and subnet in AWS CloudFormation template
I am trying to launch an example CloudFormation template as described in Getting Started with CloudFormation . I removed the default VPC, added new one (10.0.0.0/16), and created a new subnet in it (10.0.0.0/24). According to the AWS docs, I can't set my own VPC as default and now my CloudFormation template can't be la...
If you want to continue using default VPC you deleted you will have to contact AWS support to create it again. AWS resources from the template you are using depnd on it. Otherwise you have to customize it a bit so it can be used with your non-default VPCs. There are suggested changes: 0) Pass your VPC ID and your subne...
8
9
20,448
2015-10-23T09:19:29.997
infrastructure
serverfault.com
802,975
FSMO-owner not replicating
I have an Active Directory with 6 DCs, where the newly added DC02 is not replicating. It's a mixed environment from Windows 2003 It is also the owner of PDC, RID and Infrastructure roles. Now I'm wondering what the best way to move forward is. The new DC is replacing a demoted DC with a different name, and initially ev...
Try to transfer the FSMO roles instead of seizing them. If that's successful then demote the new DC and promote it again. If the first two steps aren't successful then shutdown the new DC, seize the FSMO roles and rebuild the new DC from scratch.
2
2
1,953
2016-09-14T11:50:21.130
database_errors
serverfault.com
303,079
How do I a Create Shortcut to Shared Network Drive for Computers on Domain without Logging Into Each One Individually
I have a small business with the computers on a domain. I have recently created a shared folder that everyone needs access to (located on the server). Is there a way to create a shortcut to this shared folder on each of the computers in the domain (all at once or individually) without having to sit down at each compute...
You can use the "psexec" command paired with "net use" to map a share to a drive on each computer. You wouldn't have to be there physically to do it, but you would still have to do it one by one. (edit: sorry, I skipped over the part where you said you don't have remote access to all the computers) Or you can map a sha...
0
2
3,054
2011-08-19T15:52:08.813
infrastructure
serverfault.com
952,002
Ansible 2.7 - mysql_db : ngzip: stdout: Broken pipe\
Using the following instructions, fails the restoration of the database. As i read, archived not supports gz files, should i use a bash script? [CODE] result [CODE]
This sounds like (as of February 2019, umerged) PR 26504 Fixes #20196 broken pipe when special chars in mysql password . Try (temporarily) setting the mysql password to something alphanumeric, avoiding special to the shell characters like [CODE] . If you continue to get errors, set the playbook debugger on the problem ...
0
0
1,225
2019-02-02T10:00:02.760
hadoop_errors
serverfault.com
234,905
How to remove duplicates values within particular ID
Im struggling with removing duplicate values within certain employee ID. Here is the situation: [CODE] What I want to do is to remove repeating values for column VALUE1 but only within certain ID and the value which stays is the newest. So the results can look like: [CODE] I dont know how to achieve that using partitio...
Perhaps something like this? [CODE] [CODE]
1
1
32
2019-04-16T11:53:33.510
data_quality
dba.stackexchange.com
216,316
How to drop an in-memory temporal columnstore
Consider the following: [CODE] This wonderful contraption combines all the new features of SQL Server: an in-memory columnstore that's also a temporal table . Admittedly, the use cases for this should be limited: an in-memory columnstore typically supports real-time analytics and would not be expected to require versio...
It seems you have to drop the columnstore index first. This works for me: [CODE] Note that this leaves behind the temporal history table, so you might want to run [CODE] for good measure (which is the default naming when a history table name is not specified).
4
6
880
2018-08-30T13:54:18.927
database_errors
dba.stackexchange.com
352,771
How to install different versions of memcache with different versions of lampp
I need to use different versions of lampp ( xampp for linux ). I recently also need to use memcache with any version of lampp I might need to use. Everything is going right if I use the last lampp version 1.7.7 which contains PHP 5.3.8 I simply do [CODE] The problem is when I try to do the same with an older version of...
The simples solution. You need memcache.so build with API 20060613. This is pretty old, but if you go to http://packages.ubuntu.com/hardy/php5-memcache you will find both amd64 and i386 packages. Run [CODE] to see what architecture you have and download the package accordingly. After you downloaded the package just go ...
1
1
2,355
2012-01-23T16:12:33.377
infrastructure
serverfault.com
180,341
template for creating functions in the master database
I need to create functions in the master database, and I am developing a template for that, I want first to check if the function already exists, if not create a dummy function. then grant all the relevant permissions to this dummy function. the third step is to alter the function to the proper code. the code that I am...
Your code created a SCALAR value function that returns a single value, not a TABLE value function that returns an entire table. the correct syntax for the select is [CODE]
-4
1
91
2017-07-20T11:42:10.753
warehouse_errors
dba.stackexchange.com
736,570
Is reverse DNS a good method for promoting grey IPs from trusted domains to white?
I'm trying to set up a mail server using OpenBSD, OpenSMTPD, [CODE] , and [CODE] . The first problem I've encountered is that many large webmail providers - like Gmail - will retry delivery from a different server with a different IP address, making it hard for them to move pass the greylist into the whitelist. I've wr...
It depends™: Keep in mind that DNS [CODE] records can be false -- just because you get [CODE] as part of the [CODE] , doesn't mean that it's Google that's controlling the IP address in question. To be sure, you might also want to do a forward resolution prior to taking any action (although, to be fair, impact in the ca...
4
2
193
2015-11-15T20:18:12.287
data_quality
serverfault.com
818,030
htaccess [F] doesn't seem to work
I'm trying to forbid access to anything wordpress related The below doesn't work and just fires a 404: [CODE] Although if I do it like so, everything's fine: [CODE] EDIT: checking via http://htaccess.madewithlove.be/ shows no issues. EDIT 2: I can't see how is this a duplicate of the mod_rewrite tut, clearly I have che...
This can happen when an [CODE] is defined in the server config that overrides the HTTP status that would otherwise be returned for that particular error. In this case, an [CODE] might be defined for a 403 status, but explicitly returns a 404 HTTP status code instead. Ordinarily, you would resolve this at source in the ...
2
1
93
2016-12-01T03:38:22.683
data_quality
serverfault.com
314,200
how to change mysql data directory
I use FreeBSD 8.2, mysql 5.1.58. I want change mysql default directory. I config datadir= /path OR my-data-dir= /path on my.cnf but not done. Note: i permission for /path is 755 and owner mysql:mysql. By another way, i set in /etc/rc.conf but not done This is error, when restart mysql services. usr/local/etc/rc.d/mysql...
I assume your current MySQL data directory is the default /var/db/mysql. Stop MySQL (service mysql-server stop) Change the datadir in rc.conf (mysql_dbdir="/another/directory") mv /var/db/mysql /another/directory Start MySQL again (service mysql-server start) If there are still problems, ensure that the directory itsel...
0
2
4,188
2011-09-22T03:30:08.403
database_errors
serverfault.com
767,741
Does a Windows host correctly interpret dnsmasq parameters?
I have a network of Windows 10 machines served (DNS and DHCP) by a [CODE] instance on a Ubuntu server (Ubuntu 15.10, [CODE] 2.75). The setup basically works ( [CODE] provides addresses and manages DNS requests correctly) except for one specific case. I wanted to provide a specific DNS server to one particular machine. ...
I found the problem: my DNS settings on the client were static . The IP was assigned via DHCP. This is not normal and what brought me to check that is that I have had the same issue of the DNS switching to a static IP before - when going between my home and work network. Again - this is not a normal situation and if I ...
4
3
3,342
2016-04-02T14:23:43.240
infrastructure
serverfault.com
759,886
HP DL360 power supply have different firmware and coupled with that the PDU supplying power tripped. Could different power supply firmware cause this
We have a HP DL 360 Gen 8 server with two power supplies. Each of them have a different firmware, one of them is running ver 1 and the other is running ver 2. The PDU supplying power to them tripped so can any one confirm if the firmware difference caused this issue.
HP ProLiant Gen8 power supplies do have firmware revisions. Here's a screenshot from the ILO4 interface: Note the Model, Spare and Firmware fields... Can you provide the same information from your server's ILO?
1
1
4,336
2016-02-25T22:15:10.133
infrastructure
serverfault.com
59,477
view corrupted when viewed using design feature
All, I had a very strange thing happen last Friday. We have a table that is updated on a daily basis using a job that fires a proc that utilizes a view. The columns were being transposed from the view to the table being updated i.e. column A from the view was updating column D in the table instead of column A as it sho...
Yes, the view designer is a horribly crippled, buggy piece of garbage you shouldn't be using to "design" your views. It should be called the view destroyer, because it can do exactly what you've observed: re-write any non-standard T-SQL into what it thinks you meant. And by "any non-standard T-SQL" I mean anything not ...
6
7
657
2014-02-23T16:49:22.837
data_quality
dba.stackexchange.com
427,310
Route 53 - IP:PORT
Possible Duplicate: How to use DNS to redirect domain to specific port on my server Using Route 53, how would I make a record point to an IP:PORT? I have tried using a CNAME but it will never resolve.
This is impossible. The DNS is only able to map to an IP, not to a port.
2
2
7,829
2012-09-14T00:54:23.687
data_quality
serverfault.com
200,089
How do you decide what code to put into a function?
I started out with a script that was a few hundred lines. Later, I realized I wanted another script that would require much of the same code. I decided to wrap certain areas of the original script that would be shared, into definitions. When I was deciding exactly what should be in a function, I came across various thi...
there are 2 ways to pass data into a function: parameters or globals, in small scripts globals are acceptable but really try to avoid them it's easier to simply extract y this is also better when you need to change y later you can use lazy initialization here: [CODE] there are 2 competing principles here SRP and YAGNI:...
3
2
4,483
2013-05-31T19:29:18.697
data_quality
softwareengineering.stackexchange.com
166,955
PostgreSQL - Create table as select with distinct on specific columns
I need a script to create a table . The problem is my select for creating the table contains equal values in some rows. I need to use distinct for these columns. The other columns' values can come from any matching row. My current result table has data like this: [CODE] But I need data like this: [CODE] For columns cit...
"VAL_X" and "VAL_Y" chosen through some aggregate function You should consider using [CODE] for the columns whose values you consider that should be "distinct" (as a group), and, for the rest of columns, choose an appropriate aggregate function (for instance, [CODE] ): [CODE] If you need to put together values from sev...
3
3
3,215
2017-03-12T10:24:42.140
database_errors
dba.stackexchange.com
799,206
Owner can't read /proc/$pid/io
On CentOS 7, I am trying to debug an issue where the nginx amplify agent cannot read /proc/$pid/io even though it is owned by the proper user. One of the nginx worker processes right now is pid 5693: [CODE] the nginx user has permission to read the file: [CODE] ...but can't actually read it: [CODE] ...even though selin...
Answered here: https://unix.stackexchange.com/questions/297190/owner-cant-read-proc-pid-io The issue seems to be the GID needs to be set in addition to uid.
1
1
2,437
2016-08-26T00:35:07.433
infrastructure
serverfault.com
399,957
Git model: branches for features based on master
I organize my Git projects based on the article A successful Git branching model . The problem is that I don't know how to handle the following case: [CODE] : working on a major app redesign (taking ~6 months) [CODE] : current production version However, because we access paid customizations (from enterprise customers)...
A few considerations stand out to me. Consider having your major redesign in a branch off of [CODE] rather than in [CODE] . Effectively, what is in [CODE] should represent your next release. If you have an extended test or hardening period, you can create a temporary release branch from develop, test and harden that, a...
4
8
146
2019-10-21T16:09:01.710
api_errors
softwareengineering.stackexchange.com
314,692
how can I perform a disk performance test like hdparm -t in nagios?
The usual plugins are all about known stats of a system but we are seeing really odd results on some of our vmware instances with hdparm -t. Anyone know of a test actually does a write/read on a disk or nfs mount in nagios?
I'd choose another approach (if you're using ESX) Download the ESX Nagios Plugin and save it in your Nagios plugins folder Install needed Perl modules with [CODE] : Nagios::Plugin Params::Validate Math::Calc::Units Class::Accessor::Fast Config::Tiny Download the latest SDK named "vSphere SDK for Perl x.x" (registration...
4
1
1,866
2011-09-23T04:49:57.037
infrastructure
serverfault.com
516,867
Having twice a "location / {}" block in nginx
For all our sites we have an include file which contains several things, amongst this line: [CODE] For a single site, we do want to redirect all requests from mysite.com/ to mysite.com/blog, as a temporary "fix". The block looks like this: [CODE] This fails however, with the following error: Testing nginx configuration...
You may try as a solution to make redirect only from exatly root location: [CODE]
3
2
9,761
2013-06-19T08:50:01.633
data_quality
serverfault.com
662,018
Comparison of methods to send Postfix emails to Procmail
I want to begin using Procmail in order to perform filtering on specific accounts in virtual domains as received by Postfix on my Centos 7 server. In various articles it seems that there are two common ways to direct the Postfix emails to Procmail: Method 1): [CODE] Method 2): [CODE] I'm unsure of which method to use w...
Page MAILDROP README from postfix documentation will you give some technical information about both of method. In this section I'll quote the snippet when you should use [CODE] method or use [CODE] . Use [CODE] if you have multiple user configured with local system account. Usually the domain would fall in [CODE] param...
2
2
3,070
2015-01-24T01:12:27.240
infrastructure
serverfault.com
909,486
Unclosed quotation mark after the character string restoring from Azure blob
I am using the following command ( with altered blobname and datbase name) to try to restore into an Azure SQL Server database from a backup of a 2014 database I am using Australia South East with my MSDN Credits I have tried with SQL Server 2016 Management Studio and 2017 Management Studio [CODE] I get an error [CODE]
The character after bak is not a single quote (located on the double quote key). [CODE]
0
1
1,766
2018-04-25T22:02:11.300
database_errors
serverfault.com
192,182
SQL Server Linked Table in Access DB
I'm wondering if/how an SQL Server would be impacted by an Access DB that has ODBC Read-Only linked tables from that SQL Server on it. If a form event triggers a query on one of those linked tables, is that query hitting a local version of that linked table, or is it going to impact the overall performance of the SQL S...
Yes, Access on the client machine will connect directly to the linked tables located on SQL Server (or whatever ODBC back-end you're using). If you're dealing with forms and reports bound directly to these linked tables, it shouldn't cause any major performance problems. If you've written more complex queries within Ac...
2
1
642
2017-12-01T15:05:32.240
database_errors
dba.stackexchange.com
306,090
Do you know the name of this algorithm? (cycle with history?)
Context : I'm a IT student who is trying to implement a small application for my family. Every year, we offer each other gifts. Each one of us pick a name of a family member in a hat, and have to offer him a gift. The problem is, we always have some problem doing it: Problem 1: When we pick, sometimes someone pick his ...
In essence you're performing a verification that the giving->receiving array is a so-called Costas array (i.e. a matrix of binary values where each column and each row holds exactly one 1 value). Assuming the same set of family members year-on-year, you can build a binary-valued array (row=giver, column=reciever) of th...
0
1
150
2015-12-29T13:48:41.480
api_errors
softwareengineering.stackexchange.com
761,624
Nohup stops script after logging out
I have to run a python script in the background in my server. I am using the command: [CODE] in the command line. Now, when after running this I close the connection and log out and log in back it fails, I see that its not running anymore. Any ideas? EDIT I am using Putty software to log into my server and from there a...
Try: [CODE]
1
2
5,169
2016-03-04T16:10:57.253
infrastructure
serverfault.com
6,924
Illustrating the dimensionality reduction done by a classification or regression model
Tl;DR: You can predict something, but how do you explain the prediction? EDIT : I have built a website that tries to answer this question with means of embedding / visually clustering data according to the path instances take in a decision tree here: http://explicable.ai/ . Please do send me an email if that's somethin...
(note: this answer is mid-edit) There are a number of Machine Learner explainers and diagnostics. Disclaimers: (these should increase over time) I'm not making it exactly reproducible because it would be 2x as long, and its working on being book-like anyway. This is more about showing the method than going into crazy d...
5
0
502
2015-08-27T22:06:09.470
bi_errors
datascience.stackexchange.com
71,487
Update row where associated row does not exist
Given the table named ROLE: [CODE] Using only SQL (no PL/SQL) how would I write a MERGE (or UPDATE?) statement that would update the role_name as below, but only for rows where another row with the new role_name does not already exist? (By "new role_name" I mean [CODE] ) [CODE]
Add the predicate: [CODE]
1
2
2,569
2014-07-14T20:21:33.150
warehouse_errors
dba.stackexchange.com
1,032,747
cgroup fork rejected by pids controller
Have a small server program written in C/C++ that uses nginx and Postgres, currently all are hosted on the same ubuntu system. I usually run the server program from the bash command line. Recently on the newer versions of Ubuntu, when the server program is running, after about half a minute I am not able to execute any...
Solved this issue by changing /usr/lib/systemd/system/user-.slice.d/10-defaults.conf Changed: TasksMax=33% to read: TasksMax=infinity
5
3
6,261
2020-09-05T06:03:05.510
infrastructure
serverfault.com
276,464
How do I exclude unchanged fields in Flashback query resultset?
Is it possible to exclude unchanged fields in Flashback query resultset? Consider I have following table [CODE] If the table has very frequent updates (e.g. on [CODE] field) following versioned query [CODE] will pull heavy userpic value for every row even though it's the same. Can I somehow avoid that and instead get N...
Is there a way to excluded unchanged fields from versioned response? Not really. Flashback uses the information found in [CODE] . Flashback Data Archive stores the results from the Log files in a table. So, you get ALL of the data when you do a Flashback query. The common method is to use [CODE] + [CODE] . But, I'm afr...
0
1
43
2020-10-03T08:03:17.720
warehouse_errors
dba.stackexchange.com
570,526
Gmail and hotmail are tagging my mails as spam?
We have two domains .local and .com. Sending connector uses .com fqdn while receiving connector uses .local fdn. I got an error "no reverse dns set". So i called my isp and get it done. After doing it.Gmail and hotmail started tagging my mails as spam. While testing on mxtools i got smtp mismatch error. I have One send...
your PTR should be the same as your mail server name. (The name it uses when you telnet to your smtp server). Also a valid PTR needs an A record, too. Bests, Semir
-1
1
315
2014-01-28T19:45:38.673
api_errors
serverfault.com
2,760
Plpgsql seems to be deleting and inserting instead of updating - Why?
I am using postgreSQL 7.4. I have a large table , call it table_a: [CODE] and a table that summaries the last update time for key1, call it table_b: [CODE] I created a trigger function in plpgsql to update or insert rows in table_b as necessary: [CODE] and then I attached a trigger to table_a: [CODE] Now, the time to i...
I don't have 7.4 to test on, but I'm guessing: every time you do a [CODE] the table compacts every time you [CODE] , the new version of the row (see MVCC ) gets shoved at the end of the heap before the old one is removed by a [CODE] See here for the docs explaining this in more detail, but the simple solution is not to...
4
1
760
2011-05-17T11:11:53.263
database_errors
dba.stackexchange.com
613,458
Invalid character under centOS - in a config file edited under windows
edit: it was a syntax error - the IP is not supposed to be in this line. so nothing to do with encoding. Startup error: Error in "108.174.194.111 mta10.domain.com": invalid character (' ', 0x20) in domain Im getting this error when trying to start a program (PowerMTA). I've edited the config file under windows and I gu...
it's likely a problem with how windows handles newlines vs. linux's method. Linux uses \n whereas Windows uses \r\n. You'd have to delete the character at the end of the line to remove it. Or you can use something like vim to search and replace it. check this out for help https://kb.iu.edu/d/acux
1
0
470
2014-07-17T20:43:16.270
infrastructure
serverfault.com
138,023
Minimal linux distro for compiling arm binaries
I have this setup: A windows/x86 development box and a PandaBoard ES for testing with a linux on it. I would like to ask you for recommending a linux distribution that I would run in Hyper-V on my devbox that would be used only for compiling arm/linux binaries. After compiling these binaries I will copy them to an SD M...
I use Zenwalk for whenever I need a real linux box (2.6 kernel + XFCE 4.8). It's not really a minimal distro (in the sense that DSL and Puppy are), but it feels fast and snappy in VirtualBox 4.1 with 1GB RAM allocated to it . The machine runs on a Windows 7 x64 host with a total of 4GB of RAM with hardware virtualizati...
2
1
506
2012-03-02T16:05:33.493
api_errors
softwareengineering.stackexchange.com
281,383
SQL Server 2019 Performance issue with large INSERT
We are converting several ETL processes from SQL Server 2016, Windows 2012 server to a Windows 2019, SQL Server 2019 (CU8) environment. One process is running longer in SQL Server 2019 than it used to in SQL Server 2016. The process performs an [CODE] , where [CODE] is a series of substring and case statements. Table A...
From comments: To all intents and purposes, those plans are identical. As such, I'd focus more on differences in the physical set up and server settings. If the query optimizer for 2016 and 2019 are arriving at identical plans, but, behavior is different, chasing optimizer settings, query hints, statistics, cardinality...
6
1
2,319
2020-12-11T21:08:35.333
data_quality
dba.stackexchange.com