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
222,207
HP DL160 G6 memory PC3-10600R vs PC3-10600E
I am using a HP DL 160 G6 server that according to specs takes PC3 Registered or Unbuffered. When I combine the two types of memory below the system will not POST. When I use just the first type of memory listed the system will POST. I have two pieces of HP memory that came with the server labeled [CODE] and then I hav...
The difference between the RAM modules you have is UDIMM (unbuffered) versus RDIMM memory; unregistered versus registered. They cannot be mixed in the same server. So you are correct, the memory guide states not to mix the two. http://h18000.www1.hp.com/products/quickspecs/13344_na/13344_na.HTML#Memory [CODE]
8
7
89,871
2011-01-13T20:50:48.887
infrastructure
serverfault.com
757,698
Connect to openvpn management interface on unix domain socket
This should be super easy, I think I'm missing something obvious. The OpenVPN docs state that you can run the management interface on a Unix domain socket. OK, no problem, I tried that. [CODE] This seems to work; device is created, and OpenVPN starts. How does one connect to the management interface though? It isn't TC...
I answered it myself, 1 minute after posting. Short answer, "Use socat" Ref: https://unix.stackexchange.com/questions/26715/how-can-i-communicate-with-a-unix-domain-socket-via-the-shell-on-debian-squeeze Long answer: [CODE] EDIT: What I ended up actually doing I didn't like the idea of installing a new tool when telnet...
5
7
5,118
2016-02-17T01:57:41.390
infrastructure
serverfault.com
1,061,011
Copy range of files on Linux/Unix
Background I have already thoroughly read through this question: Copy a range of fiels and tried most of the answers. I exported data into a single [CODE] then split the [CODE] file into smaller serialized files with 50k lines in each. [CODE] Goal I want to copy the files from [CODE] to [CODE] into a new directory in t...
I want to copy the files from [CODE] to [CODE] into a new directory in the current directory. Do it in small incrementals, e.g.: Copy [CODE] to [CODE] first, then Copy [CODE] to [CODE] , then Copy [CODE] to [CODE] Should be something like: [CODE] Square bracket globbing only support a range of integers ( [CODE] ) or a ...
-1
0
228
2021-04-20T23:08:32.740
infrastructure
serverfault.com
469,444
postfix rate-limit for locally submitted mails
I would like to implement per-user rate and size limits (i.e. certain maximum number of mails/volume per hour) for all outgoing mail. So far I've implemented that via postfwd policy daemon for sasl-authenticated users. However, some users also have accounts on the box making it possible for them to send mails from thei...
You can use a sendmail milter for non-smtp traffic using the [CODE] parameter. If that doesn't solve it for you, the safest way is to prohibit local sendmail(1) submission and force SMTP submission.
2
0
799
2013-01-15T22:15:52.480
api_errors
serverfault.com
25,635
Topic modeling for short length sentences
I have a graph which was already separated into clusters. Each node in the graph has a label (typically, it's a function's name like [CODE] ). What I want to do is to give a representative label for each cluster. For the sake of simplicity, let's assume I'm able to clean the data (i.e. break 'validateLogin' to 'validat...
A possible approach might be to use the most predictable and predictive word(s) in each cluster as its name(s). The following is inspired by Fisher's category utility used by the COBWEB algorithm . An attribute is highly predictable in a cluster $C_l$ if most elements in that cluster have the same value $a$ for it, thu...
5
2
995
2017-12-13T15:40:01.427
data_quality
datascience.stackexchange.com
96,369
Redhat Enterprise server is restarting and shutting down inexplicably
We have a Redhat Enterprise server (not set up by us, but we have no reason to assume its not a stock installation) that is restarting every few weeks for no apparent reason whatsoever. On previous occasions there was nothing in the log file which suggested it just died without warning. We just discovered that the serv...
See this question . The last time I saw something like this, it was a broken motherboard sensor thinking that there was an overtemp and was shutting the computer down to protect it.
0
1
1,921
2009-12-21T16:25:12.253
infrastructure
serverfault.com
141,665
Monitor RAM usage on CentOS and restart Apache at a certain usage
I'm running a CentOS 5.3 server with a basic LAMP stack. I've optimized LAMP and my code to run efficiently as possible, but Apache has a memory leak somewhere that kills my server every hour or so. What is the best way to write a script that will monitor the memory usage and if it peaks over, say, 450MB kill all the A...
Monit is a straightforward server-monitoring utility that can do this sort of thing.
0
1
1,531
2010-05-13T17:36:27.600
infrastructure
serverfault.com
677,944
Using host's iptables to prevent access to docker-container's exposed ports
I have a host which runs a few docker's containers. This host has a few network interfaces, my goal is make some exposed ports from containers accessible only by certain interfaces, and prevent access from others. I would like to use host's iptables for that. But its imposible to do simply with: [CODE] because packets ...
The issue is that your NAT rule in the [CODE] chain of the nat table translates host's port [CODE] to [CODE] [CODE] and not to [CODE] [CODE] thus the rule in the [CODE] chain of the filter table doesn't match anything since it tries to drop traffic forwarded to destination port [CODE] .
1
1
1,679
2015-03-24T17:56:08.357
database_errors
serverfault.com
1,016,379
How to migrate the business Gmail DNS record from GoDaddy to AWS Route53?
the title of this question might be confusing. So my issue is I have registered a domain in Godaddy, and setup the business gmail using that domain. Recently I decided to migrate the DNS from Godaddy to AWS Route53, and I still want my business email to work as usual. There are some [CODE] and [CODE] already exist in G...
Migrating a domain from one set of DNS servers to another takes several steps: Create the domain in Route53 In Route53 create all the records that are currently in GoDaddy except NS and SOA. These are managed by Amazon. All the other records must be recreated in AWS. Including MX, TXT, A, etc. Go to GoDaddy domain mana...
2
1
777
2020-05-09T07:52:34.697
infrastructure
serverfault.com
371,202
MySQL replication not working on leap day
Though out of my "core" knowledge I maintain a two-way replicated MySQL database (primary and backup). It's been working fine mostly. All changes are almost instantly replicated between the two servers. But now I've noticed something strange: I have a couple of cases where there are no replication on feb 29th. Admitted...
I can sense what the concern can be. If everything was UTC, this would not be an issue. Here is a question to think about: Do you have the same problems on days that involving daylight saving time? CET does observe daylight saving time. Replication issues you described should also happen when the clock goes forward. In...
1
1
225
2012-03-19T16:02:18.997
database_errors
serverfault.com
1,120,318
couldn't find key MYSQL_KEY in Secret default/mysql-secret
I have the following file that creates a [CODE] for [CODE] deployment pod. [CODE] The problem is that, previously I could deploy [CODE] on [CODE] cluster using the secret key created by this command: [CODE] And using [CODE] I could pass it to other [CODE] files like [CODE] as you can see below: [CODE] But now I don't h...
Common causes of this error : 1) ConfigMap is missing —a ConfigMap stores configuration data as key-value pairs. Resolution : Identify the missing ConfigMap and create it in the namespace, or mount another, existing ConfigMap. 2) Secret is missing —a Secret is used to store sensitive information such as credentials. Re...
0
1
1,451
2023-01-16T00:48:58.807
database_errors
serverfault.com
514,968
Exchange 2010 Autodiscover DNS configuration
I'm unable to get the Autodiscover of Exchange 2010 working. Our email accounts are name@company .com and our AD is company .local When I open Outlook 2010 and Ctrl + RMK on the icon and select 'Test E-mail AutoConfiguration' I see this: [CODE] If I go via my browser on a client pc to: [CODE] I see an XML reply (so I g...
What about on the Exchange side...what are the internal/external URLs configured as? Do you have an A record in DNS for "autodiscover.company.com" (or autodiscover.company.local internally) and does your SSL cert have both names listed? Set the internalURL and create an A record...both internally and externally (using ...
1
2
23,914
2013-06-11T13:54:02.750
infrastructure
serverfault.com
618,089
Nginx + Apache mod_wsgi, troubles understanding how to configure servers
I've been trying for too long to set up a development environment on my Ubuntu 12.04. My intention is to set up everything as I'd have to do later in a production environment, so I followed this tutorial on how to set up Nginx as a reverse proxy with Apache 2. I've been searching and my question is quite similar to thi...
Eureka, I made it work. The main issue was with the tutorial info, it was significantly out of date. I installed nginx 1.6, which creates a folder structure similar to Apache, with sites-available and sites-enabled. There is no need (and no use if you don't know how to configure it) on the steps I made creating those f...
2
2
2,294
2014-08-05T13:02:02.167
infrastructure
serverfault.com
22,080
As a Windows administrator, what were the issues you encountered with trying to learn a linux distro?
I know that you're out there. You've heard of this "linux thingy" and thought you might give it a spin on the weekend. You gave it a whirl, started the machine up, and something didn't quite work as expected. I've done admin work in both Windows and Linux. I've also watched people "struggle" with trying to grasp Linux....
I could see a big expectation let down with Windows admins who think that everything can be solved via some GUI tool. This shouldn't even be assumed in Windows... EDIT: Some more specifics that I've heard of or run into personally: Devices as files in the file system Different distros put the same binaries in different...
4
4
686
2009-06-08T18:02:19.047
infrastructure
serverfault.com
97,975
Multiple domain names and 1 database
What I want is to have a couple of domains having the info from 1 database, this would be nice, because I don't need to edit all websites databases. Is this possible without having problems in the future? The servers are shared and the host is not local, but I can give a http path to a server. like: sql12.backbone.tisc...
You might want to make sure that you're not violating the terms of service with the company who is hosting your database. Having many outside domains hitting an inside database may cause some undue stress on that server that the company is not counting on or eatting up more bandwidth that is aloted for that machine. In...
0
0
1,690
2009-12-29T14:52:06.487
infrastructure
serverfault.com
79,772
Can we use BERT for only word embedding and then use SVM/RNN to do intent classification?
According to this article, " Systems used for intent classification contain the following two components: Word embedding, and a classifier . " This article also evaluated BERT+SVM and Word2Vec+SVM . I'm trying to do the opposite, comparing two different classifiers (RNN and SVM) using BERT's word embedding. Most Python...
BERT is a transformer based model. The pre-trained BERT can be used for two purposes: Fine-tuning: This involves, fine-tuning with the new data to a specific task such as classification or question-answering , etc. Here, the BERT itself acts like a classifier. Extracting embeddings : Here, you can extract the pretraine...
4
2
8,321
2020-08-04T13:08:47.303
data_quality
datascience.stackexchange.com
219,853
Optimising MariaDB for large AWS machines
Been reading up on DB optimisation (I am an analyst, not really a Sysadmin), and it would seem the biggest adjustment one can make is change the [CODE] , [CODE] and [CODE] . Is there some point that an extremely large buffer pool just doesn't make sense anymore. For example, when using AWS, I can get a machine with 64 ...
innodb_buffer_pool_instances will not give you a huge advantage unless you are suffering from a very specific write contention between multiple write threads. I have personally never needed to increase it over the default 8 instances. I use 500GB servers for MySQL and dedicate around 384 GB to the buffer pool- more wou...
2
1
72
2018-10-11T11:47:35.813
api_errors
dba.stackexchange.com
222,501
How to access a SQL Server database using another user with permissions in the same intranet
While I'm waiting for my user to get access permissions, I'm stuck using a colleague's, and whenever I try to run basic SQL queries I have to switch from my Windows user to hers. Hopefully this is clear enough: I want to access a SQL Server for which another user on the same intranet has permissions while I only have h...
You can open SSMS as her Windows user account by doing either of the following: Right click the SSMS shortcut while holding the SHIFT key. Click on Open as another user and enter the other users credentials. Create a shortcut in the following format: C:\Windows\System32\runas.exe /savecred /user:DOMAIN\USERNAME "C:\Pro...
3
8
3,577
2018-11-14T08:43:39.647
database_errors
dba.stackexchange.com
610,118
VPN route on Windows
I'm trying to manually add a route to the VPN connection. The reason is that when i connect to the VPN, i can't navigate the internet. I've tried to uncheck the "Use default gateway on remote network" by going in properties of the vpn connection, then tcp/ipv4 - advanced. The result is that now i can surf the internet ...
No, you should use: [CODE] where: [CODE] = subnet you want to reach. e.g. a server you want to reach has 192.168.1.123, then you use 192.168.1.0 (if you're in a /24) [CODE] = subnet mask, obviously. [CODE] = IP Address of the VPN Server gateway if you don't know [CODE] then use "Use default gateway on remote network" a...
-2
2
1,811
2014-07-04T08:48:18.537
infrastructure
serverfault.com
231,628
Apache MPMs - Worker vs Prefork
I'm trying to figure out what which is the best Apache MPM I can install on my VPS. I saw some benchmarks and MPM Worker seems to perform better than the Prefork one but for some reason everyone seems to be recommending Prefork over Worker for PHP setups. Is this just because some PHP functions are not thread-safe? Onl...
You should use prefork when using apache + mod_php. The FAQ clearly outlines the reason why: http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2 Why shouldn't I use Apache2 with a threaded MPM in a production environment? PHP is glue. It is the glue used to build cool web applications by sticking...
16
15
27,012
2011-02-05T18:00:59.750
infrastructure
serverfault.com
64,466
group the similar words
array(['Ruby on Rails', 'Ruby', 'AWS DynamoDB', 'Python', 'MySQL', 'Swift', 'Android', 'iOS', 'JavaScript', 'React Native', 'ReactJS', 'TypeScript', 'Vue.js', 'Webpack', 'Amazon Web Services(AWS)', 'Kubernetes', 'PHP', 'CI/CD', 'Java', 'C#', 'C', 'Node.js', 'REST API', 'Go', 'Redux-Saga', 'Redux.js', 'Babel', 'GraphQL'...
There will not be any pre-trained models to cluster these words. In fact, in order to build your own clustering model you will need more metadata about each observation/word in your array. At the moment any model would only be able to "see" the name of the package/software in your array. So the best you could hope for ...
1
1
99
2019-12-09T09:49:25.667
hadoop_errors
datascience.stackexchange.com
1,034,357
service nginx stop not working on one server but works well on another
Both are CentOS servers. Server A: After running [CODE] , the Nginx processes are killed. [CODE] server B: After running [CODE] , the Nginx processes are NOT killed at all: [CODE] Is there anything I can do to debug this? Thanks for any tips. [CODE] Results: [CODE]
Somehow you've managed to start nginx outside of systemd's control. You should just kill it manually yourself, and then restart it with systemd.
0
0
1,096
2020-09-18T01:53:57.357
infrastructure
serverfault.com
421,533
How do I make nginx's folder moveable?
Currently when I compile nginx (in directory /home/parth/nginx), it embeds the prefix supplied to configure script in the nginx binary. Now when I move that folder around (let's say to /tmp), it breaks with following error message. Is there a way to configure logs file directories? [CODE] nginx: [alert] could not open ...
[emerg] 23782#0: unknown log format "main" in /tmp/conf/nginx.conf:25 [CODE] Uncomment the [CODE] line and try again.
1
1
394
2012-08-27T09:37:03.457
infrastructure
serverfault.com
260,072
Setting up a master DNS server, using goDaddy as slave
I have a server hosting several domains and a DNS premium account at GoDaddy. I would like one of the domains I own, xxx.co, to become the master nameserver for all the other domains, and to use GoDaddy's as my secondary/slave. I'm an ignorant on DNS so please forgive my misknowledge. First I may mention the goal of th...
OK, first things first: Go to you local book store (or library if it's got a decent selection of technical books) and pick up a copy of DNS & BIND - any edition will be sufficient, though if you're buying one buy the latest. Then read this book cover to cover, or at least read through chapters 1, 2, 3, 5 and 6. I am ab...
0
5
3,207
2011-04-15T12:25:54.227
infrastructure
serverfault.com
653,447
Setup openvpn as interface device only
I just setup OpenVPN client using this guide on The Geek Stuff But now (somewhat as expected) all my traffic is routed through the VPN. I actually just want to set up the interface device. Does anyone know how to do that? Here's the config file: [CODE]
By adding [CODE] to the config file, openvpn would ignore the routes pushed from the server to the client. Something I found on the openvpn site
1
2
199
2014-12-18T11:50:14.520
infrastructure
serverfault.com
183,303
enable replicaSet in mongoDB yaml conf file
I want to enable oplog on mongoDB and the recommended approach is to setup a standalone replica set. I tried following the instructions here... https://docs.mongodb.com/manual/reference/configuration-options/#replication-options ...and added the following to /etc/mongod.conf [CODE] After restarting I tried initialising...
Check your mongod.log file, there should be line what lists all configuration items from you /etc/mongod.conf [CODE] if you cannot see [CODE] then it has NOT readed your current config file. You can see what file it has readed when you look to start of that line [CODE] And remember, if your mongod is not running on sta...
3
2
12,960
2017-08-12T03:29:08.287
database_errors
dba.stackexchange.com
12,032
sp_send_dbmail with attachment
SQL Server 2008, connecting via SQL Server Authentication. I have a stored procedure in [CODE] which calls [CODE] in [CODE] to send an email with a file attachment. The file is on the db server, not on a remote fileshare. The SQL Server account being used is not sysadmin, but does belong to the [CODE] in [CODE] . Sendi...
You need to use Credentials : A credential is a record that contains the authentication information (credentials) required to connect to a resource outside SQL Server. This information is used internally by SQL Server. Most credentials contain a Windows user name and password. The information stored in a credential ena...
5
3
21,709
2012-02-01T09:00:24.023
database_errors
dba.stackexchange.com
316,389
Readability & Performance: Is it better to allow the Java garbage collector to clear a datastructure?
I work with large HashMap's and ArrayLists. When not needing them to be in memory any longer, I use [CODE] to free up the memory. When my colleague saw that line, he changed it to [CODE] . He agreed when I asked if he was doing it to let the garbage collector take care of it. Although I feel it's nice, I felt it decrea...
It seems you missed one important difference between [CODE] and [CODE] : the first one preserves the capacity of the array, thus not freeing the array memory itself. Only the memory of the objects your array elements were referencing to will be freed (as long as the array holded the only reference to those objects). So...
3
4
7,707
2016-04-21T12:11:53.870
data_quality
softwareengineering.stackexchange.com
1,015,400
iperf3 - discrepancy between TCP and UDP results
Recently I've done some network testing with iperf3 (3.1.7 on Centos 7.5 kernel 3.10, then I tried 3.7+ compiled from the source) and I'm confused about the results. The syntax I'm using is [CODE] , both for TCP and UDP testing. My understanding is that by default, iperf3 does some kind of internal pacing to maintain d...
Packets can get lost at different points in the network. I do not see any reason why the network hardware should have more problems with UDP. I can imagine that it is more difficult for the receiving system to get the UDP packets to the receiving application in time. I am not familiar with the details but the buffers f...
0
1
4,694
2020-05-03T08:56:38.440
infrastructure
serverfault.com
690,025
Raid 6 with HP P421?
I cant figure out if I need to buy a licens key to enable Raid 6 for this raid controller? I can't find where to buy one and I find pages where it says that its now free. sudo hpssacli ctrl slot=1 show detail gives me: [CODE]
There's no need for another license to enable RAID6 functionality on an HP Smart Array P42x RAID controller. It was included after a certain release of the firmware. The current controller firmware is version 6.34 . You can download the firmware for this from HP. Go to http://hp.com and select "Support". Enter your pro...
1
4
1,155
2015-05-06T14:26:38.157
infrastructure
serverfault.com
276,552
InfluxDB - Tag vs Field for simple, time series data
We are new to InfluxDB, and are struggling to understand the query performance difference between a "tag" and a "field" for storing simple, time-stamped measurement values (literally, time series data). I have to imagine this is one of the most common applications for Influx, yet still I'm not clear what is the smartes...
I hope you've solved this already, however perhaps this helps a little. You're coming from a SQL background, I think the shortest explanation is this: [CODE] are indexed columns, they're handled as strings. These are what you will do [CODE] and [CODE] on. These should be a smaller set of discrete values. [CODE] are you...
1
0
1,675
2020-10-05T17:41:50.767
api_errors
dba.stackexchange.com
701,112
Remotely monitoring ISC DHCP Server with Nagios
I have a WAN and I'm trying to use Nagios to check that a DHCP server in a subnet not directly visible to the Nagios box is up and handing out IP addresses, and I've been unable to make this work. I have 3 places I can monitor DHCP from, but none seem to be working. The ideal would be to have Nagios monitor DHCP direct...
I would use nrpe to execute the dhcp lookup on a server that has direct access to nrpe. http://xmodulo.com/nagios-remote-plugin-executor-nrpe-linux.html Then write a local script on the host to check the status.
2
1
2,060
2015-06-23T20:56:52.857
pipeline_ops
serverfault.com
254,773
Specifying a preferred route when there are multiple links to same network
I have a server with multiple interfaces and IP addresses on the same network. I would like for non-iSCSI traffic to exclusively use one of the interfaces, and for iSCSI traffic to exclusively use the rest of the interfaces. Limiting the iSCSI traffic to a subset of my interfaces is easy; I simply don't create entries ...
To solve my problem I wrote nethook , a daemon that runs scripts when network interfaces change state on RHEL-based distributions. I have it run this script for interfaces whose route's metric I want to increase. EDIT: I wrote nethook before I was aware of ifup-local and ifdown-local . You can probably use them instead...
2
1
8,758
2011-04-01T20:22:05.093
infrastructure
serverfault.com
348,469
Exchange User unable to receive SOME internal mail
One of our Users is having a strange issue, before explaining the issue I should clarify that our user Exchange server is collecting mail using a POP3 connector. (not sure if it's relevant) The user having the issue can receive all external. However 2 accounts are unable to send to her. If I send a message from one of ...
Do you receive an NDR on those mails not reaching the user? If you receive an NDR check if Exchange complains about the recipient like this [CODE] . If you don't receive an NDR you could still check the headers of the email sent in the first place for that in the To field. It is possible that if the Exchange has been m...
1
1
3,173
2012-01-10T13:40:21.530
infrastructure
serverfault.com
15,894
SQLConnections 100 + instance problem in database
I am using a SQL Server Database in my CRM Project. It is not Microsoft CRM, it is a simple BPO website that 100+ users used to work on. Sometimes there are more than 100 users logged in, and works properly. However it gives me an error [CODE] after 1-2 minutes and everything stops working. After some time it again con...
What connection log is this? SQL can handle thousands of connections at a time without issue. What makes you think that it's the database which is causing the problem? Can you connect to the database and issue commands with SQL Management Studio? If so then it isn't the database and it is probably a problem with the ap...
4
5
192
2012-03-31T07:02:26.907
database_errors
dba.stackexchange.com
734,935
nginx and php-fpm "Primary script unknown"
Smells like a duplicate, I know, but I have now tried this Setup 5 Times over, and still I can't get this to work. Most of the configs are complicated with chroot and multi servers etc., but I have reduced this now to the simplest config possible. I want to understand how the fpm is setup with nginx in it's simplest fo...
[CODE] needs to pick up its value from a [CODE] directive at the same location or in a parent container. You seem to have [CODE] defined in a sibling container. Move [CODE] to the [CODE] container.
6
5
10,563
2015-11-09T12:38:53.527
data_quality
serverfault.com
314,379
Reassign ownership and drop old owner in PostgreSQL
I have got a PSQL 13.6 database that was originally created by [CODE] , and has been populated over time. For external reasons, I now need to periodically change the owner account of the database and drop the old user accounts. When I try to achieve this I get blocked because there are objects that depend on it. I do n...
You have two options: explicitly remove the default privileges: [CODE] remove all objects and privileges the role owns: [CODE]
0
0
2,203
2022-07-13T16:19:23.850
database_errors
dba.stackexchange.com
627,054
Can a RAID5 be corrupted if Drive 0 has been failed and how could this be fixed?
I have configured RAID5 on an ASUS server and installed VMware ESXi 4.1 on it. The attached photo indicates that Drive 0 resides in a Failed state. All Hard Disk Drives (HDDs) are running Normal . Has the RAID been corrupted? How could this be fixed without losing the data?
You can not. Simple like that. Go back and install a backup. When things like that happen and you are prepared, the results are not really that bad - as you can see on what happened to me recently - RAID 6 blowing in 5 minutes . But your RAID has not failed. It is degraded. Now, go and read the documentation for your R...
-5
3
124
2014-09-08T16:42:44.853
data_quality
serverfault.com
631,120
cURL throws 504 gateway timeout error with external website on my vps
The following returns a gateway timeout on my vps (debian, squeeze) [CODE] But works fine i.e gives a 302 HTTP on my home computer. So I guess something is wrong in my vps settings. But what? The same command was working fine yesterday. Help! Edit: PHP-cURL throws a 504 as well, which is how this problem was discovered...
Figured it out!! It was giving 504 when curl tries to resolve to ipv6 On comparing the requests, the only difference was the ip address. So I tried forcing ipv4 resolving via [CODE] and it worked!
3
2
20,802
2014-09-25T08:05:31.853
infrastructure
serverfault.com
334,078
How to make my very own ubuntu minimal install?
I have made a complete application solution built on top of ubuntu. Now that I have this ready; i'm looking to make my very own install of ubuntu (the smallest footprint possible with only the very bare minimal packages that my application requires). My application consisty mainly of a mysql server, php, proftp and ngi...
It me me quite some time to figure out how remastering worked. I finally got the hang of it and wrote down the steps used to create my first live CD with installer. I want to thank Pilolli Pietro for this google code wiki page: http://code.google.com/p/ardesia/wiki/Create_a_live_distro . This line is specifically used ...
5
4
8,963
2011-11-23T13:20:08.063
database_errors
serverfault.com
930,312
Jenkins - environment variable not setting up from pipeline
Here is my script. Im trying to set up variables in pipline shell script: [CODE] But im getting: groovy.lang.MissingPropertyException: No such property: IPADDRESS for class: groovy.lang.Binding I was trying to export it and other things like useing ${env.VARIABLE} or just ${VARIABLE} still not helping to set up variabl...
Replace your double quotes with single quotes to prevent [CODE] from being interpreted as a Groovy variable: [CODE] Alternatively, escape the dollar sign: [CODE]
1
3
12,265
2018-09-10T20:47:42.340
pipeline_ops
serverfault.com
382,778
Windows 7 Unable to Boot / Access Denied for User's Folder
Today, I accidentally swapped the hard drive on my computer while my company is in sleep mode then turn it on. After the computer restarts, I can't boot into Windows anymore. The problem is that it keeps giving me the screen where I have the option to launch system repair, but when I do that, it puts me right back to t...
Have you tried error check disking the hard drive (right click the hdd on my computer and go to properties then tools) with the issue when using another hard drive? It may fix the errors that are preventing it from starting up. Also you may want to try doing a repair install through the windows install disc. As far as ...
0
1
1,837
2012-04-24T22:32:12.187
infrastructure
serverfault.com
1,066,593
Managing Storage Spaces Direct in Windows Admin Center
I have a Hyper-V server, also running Windows Admin Center, let's call it [CODE] . That server is set up as gateway. On it, there are two storage pools, which can be managed via the Server Manager normally, and some VMs. In Windows Admin Center, Storage Spaces (Direct) is not available in server management, and from wh...
Windows Admin Center uses Powershell under the hood. That kind of architecture is known to work exceptionally when managing standalone servers. Still, it may cause issues due to the infamous "Kerberos Double Hop" specifics, especially when Windows Admin Center is running in gateway mode. https://techcommunity.microsoft...
3
3
280
2021-06-13T20:32:54.880
infrastructure
serverfault.com
745,160
Apache 404 errors with "hello" as URL
My web server emails me if a 404 error occurs (to help me with missing links). I only had the usual 404's like [CODE] and so on. But lately I keep getting a request for [CODE] . I seem to get them from all over the world. [CODE] I realize that this is a shellshock attack attempt on my server (server is patched). My que...
If your system is up to date you don't have to worry. You can make custom rule to prevent most of web bots attacks, for exemple this is mine: [CODE] It will block most attacks before bots can test breach: block empty user agent or suspect AGENT limit requests to GET HEAD and POST block requests not starting with / (if ...
1
3
134
2015-12-24T16:58:30.247
infrastructure
serverfault.com
407,939
Ubuntu concurrent connections
I'm behind a proxy that is "Enterprise DDoS Protected". On a normal day with normal connections to all my servers the concurrent connections on the proxy is 17,000. Yes 17,000 is normal for the nature of my sites. 90% of the traffic is requesting bytes of data then that's it, no need to connect again for a minute. The ...
To force an HTTP keep-alive connection to close after a certain time in Apache, use the [CODE] directive. [CODE] Set this based on the expected time that the client needs to complete a set of requests to load a resource - you want to let the connection stay alive long enough for that to occur, then have the server clos...
1
3
297
2012-07-15T20:01:51.573
infrastructure
serverfault.com
1,068,197
I have created one vpc with three different subnets and I am facing issue while doing ssh from instances. getting check public key error
I have created one vpc with three different subnets and I am facing issue while doing ssh from instances. getting check public key error but succeed before. [CODE]
For ssh communication, it checks whether the key is secure or not. So, you should not give full permissions to it to everyone. change the permissions as: [CODE]
1
1
63
2021-06-29T19:48:34.650
infrastructure
serverfault.com
1,017,291
Enabling TLS/SSL on Postfix
I am working on a Postfix server which only sends mails (newsletters). I have read I should enable TLS and/or SSL on Postfix in order to increase mail deliverability performance. Is it true? Is there a difference between SSL and TLS under Postfix? I already have these three lines by default on my Postfix installation: ...
Enabling encryption doesn't help with delivery performance, but it's recommendable because it increases email privacy . Encrypting email on transport has become a standard, as you may notice from Google's Transparency Report on Email encryption in transit . While SSL and older versions of TLS have been deprecated, emai...
10
17
30,439
2020-05-15T12:01:10.863
infrastructure
serverfault.com
142,165
Trouble serving vhosts when trying to set up wildcard subdomains with dnsmasq in local development environment
I'm trying to get wildcard DNS enabled on my laptop using dnsmasq. I realize that this has been asked and answered more than once on this forum, but I can't get the solution to work for me. Steps taken so far: Installed dnsmasq Set [CODE] in dnsmasq.conf Set [CODE] in dnsmasq.conf Ensured [CODE] is in /etc/resolv.conf ...
It seems I've been laboring under a fundamental misunderstanding of dnsmasq, vhosts, and dns. dnsmasq was doing exactly what it was supposed to do, routing requests for example.dev to 127.0.0.1. While I did have vhosts set up, and set up properly, there was no local DNS server to respond and direct those requests to th...
0
0
1,193
2010-05-15T13:59:53.757
infrastructure
serverfault.com
29,086
Innodb, MySQL 5.5.28 - Segmentation Signal 11 faults, on high load. .. my.cnf file included
We have a high-end server, 128GB RAM, 32 Core , Xeon, SSD RAID 10 - running Ubuntu 12.04 with MySQL 5.5.28 . Doing random imports to large InnoDB tables, over 50+ gigs, randomly after a few hours of heavy load, mysql does a Signal 11 and crashes. We have tried to move hardware. Doing a full dump (but not a restore yet)...
It seems theoretically possible that table could still dump properly if the corruption were in the indexes, which aren't dumped. It should not be possible for anything in your configuration to cause MySQL to crash with a Signal 11, a segmentation fault . I've been staring at this for a while, now, and I haven't come up...
4
2
3,573
2012-11-22T00:03:17.107
data_quality
dba.stackexchange.com
312,980
Are for loops allowed in the "Clean Code" set of rules?
Given the set of rules explained in "Clean Code", can one really use [CODE] loops? My confusion stems form the fact that a [CODE] loop is a low-level construct per se, thus it can only be used at the very lowest level of abstraction, by the book. But then, does it mean that using the loop is forbidden in those pieces o...
I think you refer to the principle " One level of abstraction per function " in Clean Code. This general principle makes perfect sense: a level of abstraction is the hiding of lower levels of details, in order to master the complexity. Mixing different levels of abstraction therefore implies that your attempt to hide/e...
5
10
2,441
2016-03-16T22:20:26.913
api_errors
softwareengineering.stackexchange.com
4,147
How do I achieve Continuous Integration and Continuous Delivery (Ci-Cd) via JMeter?
I have prepared the JMeter test script for my project and it tests (both functionally and performance wise) various Rest Apis. I have even coupled it with Jenkins on my local machine and also implemented performance plugin. Now I want to achieve CI/CD with my JMeter script wherein whenever any developer commits a code,...
Since you're talking about making delivery/deployment decisions based on the results provided by your script(s) you need to communicate with the team(s) responsible with maintaining the official CI/CD pipeline implementation for your organisation. If they're using Jenkins and a particular pipeline implementation (multi...
0
1
165
2018-05-22T18:37:21.260
pipeline_ops
devops.stackexchange.com
425,598
How do I run multiple MVC apps within a subdomain on IIS7?
Hello and thanks for looking. Background I am currently wrapping up a development contract and the client would like for me to push a build of the application to their IIS 7-based server in which they would like to run multiple MVC apps. One of the issues I have off of the bat is that this server is already a subdomain...
First thing is are you testing these bindings from the local server? If so, two issues: For testing purposes you need to be putting your myapp alias in the local hosts file (C:\Windows\System32\Drivers\etc\hosts). You need to disable loopback protection, which will prevent you from accessing services on a server from i...
2
1
2,270
2012-09-08T16:42:47.767
infrastructure
serverfault.com
387,457
How to speed up Drupal 7 with remote DB (not DNS resolving)
we have Drupal 7 on Ubuntu LTS virtual machine (VMWare) with MySQL 5.1 server on the same physical server, but on a different virtual machine. The Drupal website is currently under development, therefore there is practically no traffic, however, despite ping and shell access being lightning fast, the Drupal site is run...
As this question is still attracting answers, I will answer it myself, since I sort of solved it back then. Basically as soon as I moved Mysql to the same vm as Drupal, everything became lightning fast. So the issue was the huge number of sql queries Drupal was issuing for every page load = bad architecture.
2
0
2,236
2012-05-09T13:56:06.907
database_errors
serverfault.com
289,884
Advice needed on system requirements
I want to set up some tools inhouse but just unsure of a few things. I want to build websites (e.g. a wiki) that can be used internally by staff (there are approximately 300 staff members). What would I need in terms of requirements of hardware software? I've asked for Windows Server 2008, IIS7, .net Framework 4.0 and ...
If your staff are anything like ours (we have approx. 130 staff), then SQL2008 express will do just fine. No special requirements on the server hardware either. Since you are seemingly a Microsoft man, I would suggest using sharepoint. As far as CALs are concerned, you'll need to check with your sysadmins what kind of ...
0
2
89
2011-07-13T13:00:00.753
database_errors
serverfault.com
80,144
Terminal Server Won't Run a Program in a Session
I'm running a Windows 2008 Enterprise 32-bit installation in Terminal Services mode. I have a program that runs locally, but will not run while connected with RDP. When trying to launch it, I can see the program running in the task manager but it never displays to the user. There are no messages, no errors, no nothing ...
Unfortunately, whether or not the application will run in a terminal session depends on how it was written. More than likely, the compatibility issue is due to the code making use of the Global Namespace, which is not allowed any longer for security reasons. I would try modifying the properties of the executable so it ...
3
2
6,535
2009-10-31T14:33:35.953
infrastructure
serverfault.com
757,667
nginx organise node js sites in directories
I'm running multiple NodeJS sites on a DigitalOcean VPS and would like to organise the sites into folders labelled by their domain eg busstopcards.co.uk. Unfortunately my /etc/nginx/sites-available/default isn't working, the domain isn't resolving to the node app [CODE] Please can someone suggest a solutions Thanks Dav...
This is a trivial use of nginx. Have you read any documentations, tutorials, or a quick start? Nginx beginners guide . My nginx tutorial , which covers a lot of basics. You need to create a symbolic link from sites-enabled to sites-available. [CODE]
1
1
69
2016-02-16T22:59:23.597
infrastructure
serverfault.com
752,986
Under HTTP2, how often are new TCP connections initiated?
I understand that HTTP2 aims to keep everything under a single TCP connection, and I was wondering how often TCP connections would be torn down. For example, if I visit youtube, do some browsing, leave the site, and come back, will I be re-using the same HTTPS connection (in terms of TCP 4-tuple, NOT session), or a dif...
There are only few guidelines in the relevant section 9 of the specification : There should not be multiple connections from the browser to the same server Connections should not be closed "until it is determined that no further communication with a server is necessary", i.e. when the tab is closed and no other tabs ha...
15
18
917
2016-01-31T10:49:41.093
infrastructure
serverfault.com
749,156
On windows 10, how do I setup a VPN client so that all users can use it (i.e. available before login)
On Windows XP, 7, 8, 8.1 you could tick a box that says 'Allow other users to use this VPN' when you initially connected the VPN. This option is no longer available - how do I set the VPN to be available for connection on the Login screen?
Old question but for anyone trying to find an answer there is a better solution via elevated powershell: [CODE] Source
7
9
64,222
2016-01-14T17:07:52.813
infrastructure
serverfault.com
509,231
Error after trying to install php5-mcrypt on Debian Squeeze
I want to install php5-mcrypt, but I get this error after entering a [CODE] Error: [CODE] Error (translated): [CODE] My sources.list: [CODE]
It seems you had different repository sources in the past and you tried to install from them: the official Debian repository the unofficial dotdeb.org repository The [CODE] package coming from dotdeb.org is currently marked to be installed, although you don't have the dotdeb.org source present anymore. And the [CODE] p...
1
1
2,331
2013-05-20T12:04:23.457
infrastructure
serverfault.com
80,567
How group by affects aggregate functions
I tried to understand the following scenarios: [CODE] That table will be used for illustration purposes. Server version : 5.6.20 MySQL Community Server (GPL) Lets try: [CODE] The query will result in: [CODE] My first question is about how I got this result?, what I think is that: The [CODE] gets called after the query(...
There are several aspects of your query. The first is that mysql by default will give you a random answer if there are several possible answers to a group by question. SQL92 demanded that all non aggregated columns in the select clause must be part of the group by clause. SQL99 loosened this restriction and requires th...
1
3
427
2014-10-18T20:04:52.917
database_errors
dba.stackexchange.com
461,455
Driver services windows web server 2008
Possible Duplicate: Drivers initialization after reboot I have a remote server with Windows Web Server 2008 SP2. It seems that video/audio drivers wont install even with the correct version of drivers. According to AIDA64 The motherboard is Intel DN2800MT. i have downloaded the latest graphics drivers but it wont insta...
There isn't any sort of driver-related service that I know of. If there was an error preventing you from installing drivers, your install would probably be fundamentally screwed in a bad way. Make sure you're up-to-date with Windows Updates, as I've seen some new driver framework-related updates recently. Go to the dev...
1
0
180
2012-12-28T15:10:58.933
data_quality
serverfault.com
39,713
SQL Index order and performance based on cardinality and data
I've been working quite a bit on a query that's not operating very efficiently on a DB2 database. The thing will return up to 30k rows or so and take up to 10 seconds. I've been working on getting this thing to run faster and I think I've finally tracked it down to an improper index. A new and more appropriate index sh...
If ID1 is more selective than ID2, then construct your index over B with (ID1, ID2, Type_Code) , and make sure there is an index over A by (ID1, ID2). If ID2 is more selective than ID1, then construct your index over B with (ID2, ID1, Type_Code) , and make sure there is an index over A by (ID2, ID1). If you are using D...
2
1
1,261
2013-04-10T19:17:16.410
warehouse_errors
dba.stackexchange.com
175,175
Disabling Triggers when not needed
Situation : Large amount of data (millions to tens of millions of rows) in several tables that is not changed often, but when it does, there are usually lots of changes. Tables each have a "summary" table associated with them that needs to be scheduled for update when any changes are made to main table. Current Propose...
Here are three four options: Option 1 - consider how long the jobs that populate the summary tables take to run. If that time is not prohibitively long, then consider running the jobs nightly regardless of whether there's been a change or not. That actual frequency of changes, especially in the biggest tables, would in...
1
2
74
2017-06-01T15:45:57.473
warehouse_errors
dba.stackexchange.com
825,107
Migrating from IIS to NGINX
I'm new at Nginx stuff. I've just migrated a website (which includes static files) from IIS to Nginx but some of my links are broken because of the case sensivity. Please note that I've installed nginx on Debian. How can I tell Nginx these links are same : [CODE] Note that I don't want to lower-case my file(s)/folder(s...
Haven't tried it but this might work: Install a samba server on the server and set [CODE] . Move your data to [CODE] . Share [CODE] though samba. Mount 127.0.0.1:/var/foo at /var/www/s2.
0
1
1,265
2017-01-09T15:51:10.460
infrastructure
serverfault.com
214,578
SSRS - select where parameter and fixed value
So there is a lot of stuff about using SSRS parameters to select multiple values but nothing about using both a parameter and a fixed value using the in select statement. So what I'm trying to do is this: [CODE] Yet when I do that it complains its can't find 'Parameter_1'. I've gotten another report to work when its ju...
Ok the problem was actually with the parameter itself. I had to create a new one in the query called @Parameter_1 and then set it up in the query parameter tab and delete the old one. Really confusing.
0
0
463
2018-08-10T09:58:14.757
bi_errors
dba.stackexchange.com
279,984
How do I clear Chrome's SSL cache?
I have a HAProxy / stunnel server that handles SSL for our sites on AWS. During testing, I created a self-signed cert on this server and hit it from my desktop using Chrome to test that stunnel was working correctly. Now I have installed the legitimate cert on that server. When I hit the site from my machine in Chrome ...
Chrome stores SSL certificate state per host in browser history. So just clear browser history ( [CODE] + [CODE] + [CODE] ), at least the following parts: Cached images and files Hosted app data Content licenses Cookies and other site data, for Chrome version 64 Solution 2. If the above doesn't help, try this: Close Ch...
122
42
418,890
2011-06-13T17:02:47.967
infrastructure
serverfault.com
39,721
Defect Management: Should I fail a test case if a defect is found that is unrelated to said test case?
I'm hoping to open an informed discussion as to the best practices when dealing with defect management. As a tester, if I'm testing a website and there are visual defects, however the test case I am testing against does not quantify the user-interface as part of the test. One option is that: As a quality assurance test...
Don't ignore the defects. Do document them in some manner. From there though, a lot of it is up to you and how your organization operates and how late in the development life cycle you're discovering these defects. The most important QA deliverable in my experience is an accurate description of how well the application...
4
4
2,210
2019-06-26T12:12:09.593
data_quality
sqa.stackexchange.com
953,810
Issue with firewalld
I just came across this issue and it's late here so I can't really think straight anymore right now. Still this is something pretty simple so I'm not really seeing what I'm missing and just going nuts here: I was setting up a server I use solely for running docker containers. I started with a MariaDB container all ok h...
Ok so today I found the answer, FirewallD doesn't play nice with Docker (or vice-versa) Meanwhile I came across the fact that FirewallD and Docker do not play along. According to the Docker documentation, the way to circumvent this is by disabling IPTables: - Docker and iptables As it says from the very first stance: O...
0
1
1,613
2019-02-13T21:02:38.397
pipeline_ops
serverfault.com
44,576
the value of undo_sql in flashback_transaction_query view is always null
so I have a table defined as follow: [CODE] and ran the following update statements: [CODE] I want to find the undo_sql for the transaction above, so I ran the following statement to find the transaction id [CODE] and ran the following statement to find the undo_sql statement [CODE] as you can see, I got nothing, if I ...
As far as I remember, you should have supplemental logging be enabled so that database can collect the data needed to reconstruct the undo statements used for Flashback Transaction Query: [CODE] For more information on enabling supplemental logging, read "Configuring Your Database for Oracle Flashback Transaction Query...
4
3
2,191
2013-06-15T03:50:09.847
warehouse_errors
dba.stackexchange.com
132,822
Performance improvement by placing tables on a virtual RAM disk
I am trying to improve performance of queries by placing the tables in a virtual RAM DISK. I am using in Oracle 11.2 Standard edition with 4G of SGA and 2G of PGA. I created a Virtual RAM DISK of size 140GB using imdisk. Then I moved only one table, which has 350 million rows and 32gb of size, to this RAM DISK. Now I a...
Why bother with a RAM disk, when you can just increase SGA, increase buffer cache, define KEEP pool, use supported, built-in tools? Why lie to the database, and make it think it uses disk and perform all the related extra unnecessary operations, while it uses memory indirectly ineffectively? Why risk database corruptio...
1
3
1,069
2016-03-21T06:56:11.277
database_errors
dba.stackexchange.com
308,070
sec_error_unknown_issuer but only with Firefox and IE6
I recently renewed the SSL certificate on my site and while initially it seemed that the certificated was installed correctly, I was shocked to discover hours ago that the HTTPS connection no longer authenticates correctly with certain browsers and versions. It currently authenticates OK with the following browsers: In...
I had the same problem - bought a basic SSL certificate (from Network Solutions), installed it under nginx, and it worked fine in both Opera and IE - but not Firefox 3.6.12. This is how I solved the problem. Note that I have root/shell access to my VPS, I don't know if you do (at least this might point your providers i...
6
7
23,652
2011-09-04T15:36:40.800
api_errors
serverfault.com
62,851
MySQL vs. Microsoft Access
I'm trying to aggregate about 500-1000 MS Excel files that deal with various small business issues (inventory, purchase orders, etc) and I'm currently trying to decide what kind of RDMS I should use. To give you more detail, the database will be mainly used by 1 maybe 2 people hosted on network server. Currently, I've ...
MS Access Vs MySQL MS Access works only on Windows whereas MySQL works on almost all platforms. MS Access does not support Partitioning feature whereas MySQL has composite, Range partitioning support. MySQL is opensource so no cost involved. Performance in MySQL is way better than MS Access MS Access database is more s...
2
6
74,239
2014-04-09T15:07:26.593
database_errors
dba.stackexchange.com
8,791
Oracle Script For Getting Long Active Sessions
Is there any script that you could provide for v$session? I seem to be encountering an issue in which my oracle active sessions are filled up. This is when I do [CODE] Here is my problem : I need a script which could determine how long the connection was held and who was holding it. I wonder where I'm getting it. If po...
Presumably they are active and doing things so looks like you might need to get more info about your sessions before killing them off. I usually use a query like this to get important info about active sessions including how long they have been logged on (oldest at top), and also how long they have been running the cur...
1
3
14,212
2011-12-05T18:07:28.443
database_errors
dba.stackexchange.com
937,186
Deploy MSI via GPO to specific users "Admin right issue"
I'm trying to deploy an MSI via GPO to specific users (120 users) from different departments and sites, the problem is that they don't have admin rights so the application cannot be installed due to insufficient privileges. Can anyone have an idea to get around this problem? Thanks
You must not be using the 'Installed Software' part of the group policy. The key here is understanding the context that the different parts of the group policy object run as in different scenarios. If you're pushing out the MSI via a script, then if it's a login script, the script runs with the logging-on user's creden...
-1
0
2,658
2018-10-25T13:33:56.937
infrastructure
serverfault.com
308,711
Aurora upgrade 2 to 3 / MySql 5.7 to 8.0: schemaInconsistencyCheck
In our attempts to upgrade our Aurora 2 MySql 5.7 DB to Aurora 3 MySql 8.0, we are running into a pre-check that we are unable to resolve. The error is: [CODE] Simple searches for this error yield this promising serverFault post . I followed the steps there: Running (Query1) [CODE] yeilds two tables: [CODE] & [CODE] Wo...
(Partial answer.) Tables with names like that are probably temp tables created during [CODE] (or any of several other DDL statements). Normally they are removed after the DDL is successfully finished. Sometimes the machine crashes leaving such files behind. Meanwhile, the original table is still intact, as if the DML h...
3
1
1,482
2022-03-14T17:57:58.510
data_quality
dba.stackexchange.com
710,187
How can I force mod_rewrite to send user info component of a URI?
A colleague recommended I repost this from StackOverflow to ServerFault: This has been driving me crazy. I have a web application that's being served via Apache Web Server. The database server that backs the application is Apache CouchDB, which exposes an HTTP API to retrieve documents and stream attachments. I've secu...
I figured it out! Rather than including the username:password as part of the URI scheme, the Authorization header needs to be set independently. The following solution works completely within a [CODE] file, which is important since OS X periodically blows away settings inside VirtualHost sites: [CODE] The way this work...
2
2
2,044
2015-08-01T16:34:03.053
api_errors
serverfault.com
259,453
Classic ASP and IIS 7.5 on my LOCAL machine
I have inherited a classic ASP project and a VB6 Component (ActiveX .dll) that goes with it. I would like to be able to debug this component by running it locally on my machine. I have a Windows 7 Home Premium (64 bit) laptop. I have setup IIS 7.5 locally (production is running IIS5), however, when I browse to the site...
It sounds like the wrong object is getting run. I'd imagine this isn't an IIS problem as much as it's a COM automation issue - you'd probably have the same issue from VBScript. Go ahead, try a .vbs file! So: Did you register the object with REGSVR32? And does this look familiar?: http://msdn.microsoft.com/en-us/library...
0
1
2,028
2011-04-13T23:21:48.250
infrastructure
serverfault.com
940,988
What does INVALIDARGUMENT mean?
I am searching all over internet but could not find any information about INVALIDARGUMENT . After stopping service in systemd, I got this response. [CODE] It looks like the application side failed to process the SIGTERM signal before receiving SIGKILL signal from systemd but in what situations does systemd returns INVA...
The "INVALIDARGUMENT" name is a "code" for exit status 2. In systemd source code (looking at v219, which is the version shipped with RHEL 7), there's a constant for it defined in [CODE] : [CODE] These constants seem to come from the LSB standard (which tried to standardize init scripts, when init scripts used to be a t...
5
6
18,816
2018-11-21T04:42:43.327
infrastructure
serverfault.com
110,993
Is it poor practice to aggregate data from different tables into one?
Background I write a lot of large reports for and generally maintain a large health records DB (write SPs, functions, jobs, etc.). The original schema, and software that uses it, is from a different vendor, so I can't change much about it structurally. There are many records that require tracking such as labs, procedur...
If I understood you correctly, you have a large third-party system, you don't have much control over it, you make complex reports that read data directly from this third-party database, your queries depend on the internal structure of the third-party database. I would approach it like this: Set up my own separate datab...
12
8
3,038
2015-08-13T23:51:52.650
database_errors
dba.stackexchange.com
453,686
Strange high CPU I/O wait on postgresql server
I'm really struggling with a performance issue currently, where all my database queries takes up to a 1000 times more than normally, when my database server is under "heavy" load. I have a server that runs ubuntu 12.04 and hosts my postgresql 9.2 database. The server is on Hetzner.de and it is a EX6s (8 core xenon with...
In short, you need faster disks. When processes are in iowait, this means that they have issued an IO request, and are waiting for the results of that request. With adequate RAM, most of your working set will be cached in RAM, and as such, reads will not contribute to much of this IO contention, so writes are typically...
6
5
12,552
2012-11-30T01:54:33.280
pipeline_ops
serverfault.com
290,596
MariaDB optimizing geo IP lookup with Maxmind GeoLite2 database
I have the following two tables that I ingest with data from Maxmind's GeoLite2 Country database: [CODE] I have been previously using the following query: [CODE] This query executes in less than ~1ms which is expected to be fast given the usage of only 1 key. Unfortunately since MaxMind now adds some additional columns...
[CODE] is inefficient. It can be turned into [CODE] . An example: http://mysql.rjweb.org/doc.php/index_cookbook_mysql#or Why use [CODE] on IPV4 values? Finding something in a range is poorly optimized, primarily because the Optimizer does not know whether there are overlapping ranges. One solution is given here: http:/...
0
1
166
2021-04-28T01:51:36.953
database_errors
dba.stackexchange.com
331,390
How to make a remote SQL Server to pull local SQL Server data
In my scenario, I have a SQL Server Express that is my data source. It periodically produce batch of data, that should be uploaded to a central repository (a SQL Server SE in the cloud). The data source know the central repository, but central repository does not know any possible data source (may change over time). I ...
That way I can exploit the fact that pulling data should be efficient [...] How do we even know it's more efficient to go from Central->Edge rather than from Edge->Central? This seems like an XY problem. A linked server is not efficient, whether it's going one way or the other. Ideally this would be completed by the ap...
0
2
87
2023-09-20T09:33:39.530
pipeline_ops
dba.stackexchange.com
243,296
Client-side certificates (Apache, Linux, OpenSSL)
My company purchased a wildcard certificate from a vendor. This certificate was successfully configured with Apache 2.2 to secure a subdomain. Everything on the SSL side works. Now I'm required to generate x509 client-side certificates to issue for this subdomain. I'm following along this page: ( http://www.vanemery.co...
Could be that you are using client certs with the wrong key usage. Please verify that your key usage has: Critical Signing Non-repudiation Key Encipherment If you are using extended key usage, check for Not Critical TLS Web Client Authentication E-mail protection On the server side verify that you have all the ca cert ...
2
3
2,484
2011-03-04T16:56:30.003
api_errors
serverfault.com
442,896
Proxy service likes Apache Http
Currently I try to simulate my app as distributed servers, so I let them run on localhost:9000 and localhost:9001, i tried using apache load balancer but it is really hard to config on mac, my idea is the second server localhost:9001 will be kept ideal and the requests only be redirected to them when the first server i...
Varnish is a good way to achieve load balancing. o I suggest you to have a look at it. Here you can find the projects homepage
0
1
44
2012-10-27T06:49:21.653
infrastructure
serverfault.com
288,222
Mail server and web server on different servers
I am writing a PHP application for a client who currently hosts their website on a shared domain with fasthosts. The PHP application is going to be stored on a dedicated server at our location. Part of the PHP application is sending bulk emails, so I am going to set up a mail server on this dedicated server. I have not...
To answer your question, Yes, it can if they have configured their domain securely. I find automated e-mail systems tend to be poorly configured. Spend the time getting it right if you do go this way. If you do, get your server listed in their SPF record . It is not necessary for your server to use one of their domains...
0
1
268
2011-07-08T09:39:35.573
infrastructure
serverfault.com
523,836
Heat Sink compound and older desktops and workstations
This is my first question asked on SF, so be gentle kids. As my desktops (approximately 110 or so) have begun to age and with my users resisting Windows 8, I've begun to notice an odd trend. We are primarily an HP shop. So the desktops I am having the issues with are DX2200 and DX2300 series business desktops. (Yes yes...
I have experienced this exact same issue with similar Pentium 4 computers from HP. Within about 9 months we reapplied thermal compound to nearly all 80 or so of these PC's. They were all about 4 years old at the time. After the 5th pc or so, our purchasing department leaned on the hp sales guy and he bought us a case o...
13
11
490
2013-07-16T20:59:34.013
infrastructure
serverfault.com
1,060,906
Size of top-level domain (TLD) servers? Especially .com?
Sorry if this is a silly question or if I'm asking in the wrong place. But I've been learning about DNS, and there's something that's bugging me about top-level domain (TLD) servers especially the .com one. If I'm understanding right, the .com TLD server has a record of every .com site in existence? I checked Wikipedia...
You are understanding things correctly. The .COM zonefile is big indeed... but you can even fetch it, it is publicly available, as for any gTLD, through ICANN centralized zone data access service you can find at https://czds.icann.org/home It will be of course multiple gigabytes long, as it contains strings, with names...
0
6
1,277
2021-04-20T06:51:23.920
infrastructure
serverfault.com
319,733
Amazon EC2 instance ssh problems
I`m new to EC2 and I'm having some problems setting up my first instance. I followed this guide: http://www.robertsosinski.com/2008/01/26/starting-amazon-ec2-with-mac-os-x/ with the difference that I used [CODE] to create my instance. When I try going to the public dns provided (ec2-107-22-254-80.compute-1.amazonaws.co...
You need to leave the trailing slash off of the hostname when you ssh. I.e., [CODE] Tip: Instead of asking Amazon to create your ssh keypair for you, you can upload your own ssh public key to EC2. This makes the ssh command much easier as you don't have to always specify "-i ec2-keypair". I wrote an article that descri...
6
7
4,921
2011-10-08T14:45:21.580
infrastructure
serverfault.com
303,471
Can I retry every SQL query in case of a deadlock exception (MSSQL)
Is it always safe to retry an SQL query in case of a deadlock exception? Can this lead to unexpected behavior or executing an operation twice? I think a deadlock exception always means a rollback even if the query doesn't run in an explicitly defined transaction.
Yes. Understand though, a deadlock is an expensive problem. Every deadlock involves a rollback. A simple retry through TRY/CATCH is a very standard mechanism for dealing with deadlocks. However, it introduces the problem of getting into a loop, so exercise caution. Here's an example of how it works . Look at the loop c...
1
5
3,348
2021-12-03T13:42:32.513
database_errors
dba.stackexchange.com
101,073
How do I fix the applet exceptions on new Tomcat install (with Apache)?
I got my Tomcat install to work and now I can receive JSP generated HTML web pages. However, my applet, that works in 'appletViewer' is throwing exceptions. I suspect one of two area for problems in my setup / configuration: path I am storing my applet files (.java, .class and .jar) proper reference to the java librari...
I got it to work tonight -- only three weeks later:( ... the problem was really looking like permissions, security, etc. to access the .jar / .class files that are being referenced. I needed to add the following statement to my [CODE] file: [CODE]
1
0
646
2010-01-09T05:26:35.647
infrastructure
serverfault.com
356,833
Unit testing mapped properties, inside service
Consider this simple method. [CODE] How would I test whether the mapped properties (on mappedVersion) act as I assume they should ? I cannot come up with any good solution for this. This is a very common scenario to be fair.
With repositories you have an extra output to test. The database. Its generally not worth trying to insert an extra mockable datalayer between the db and the repo. Instead you have a number of options. 1: Add the Item to the repo and then retrieve it from the repo. check the item is as expected. This is the simplest ap...
0
1
59
2017-09-05T10:28:08.380
api_errors
softwareengineering.stackexchange.com
866,001
windows server running on low disk space
I am facing one issue with disk space, Total disk space is 120GB, My files size is 42GB(including OS) remaining 78GB should be free space but it showing low disk space. Please check below images
Go to Options -> View and uncheck [CODE] . Your screenshot of C:\ doesn't show the pagefiles etc., so it is most probably enabled. After disabling the option the remaining files should show up and should be included in Explorers file size summary.
0
2
350
2017-07-31T09:40:41.230
infrastructure
serverfault.com
49,377
Adobe Reader - How to disable automatic updates on a computer that is offline?
I have a computer at a location that is currently without internet service. I just did a fresh install of XP SP3 and am in the process of loading basic software that will be required later. Among the software I loaded is Adobe Reader 9.1. I always disable automatic update checking for every program I install. My reason...
The official way is to use Adobes Customization Wizard - it will help you deploy Reader properly and can do this for you easily. While you're at it, get the msi packaged version of Reader 9.1 and the 9.1.3 patch . For the manual "hacker" the FeatureLockdown registry key seems to be working still in 9, check this articl...
2
3
9,056
2009-08-03T16:13:22.630
infrastructure
serverfault.com
218,054
WAL files not being deleted and pg_drop_replication_slot('barman') causes [55000] ERROR: replication slots can only be used if wal_level > = archive
My database has stopped deleting WAL files and [CODE] grows to eventually take all my disk space. I have to use [CODE] and [CODE] to delete them manually. I'm almost certain it's to do with my tinkering with replication, but I thought I removed it, and the only remnant of that I can see is the replication slot, but whe...
Set "wal_level" back to "archive", and restart. Then drop the slot. Then if you don't want leave it at "archive", set it back to "minimal" again, set max_replication_slots to 0, and restart again. Which I find strange because I'm trying to remove it, not use it. Removing a slot requires access to the slot machinery. It...
1
1
2,171
2018-09-19T15:38:45.240
hadoop_errors
dba.stackexchange.com
65,196
Kaggle Titanic submission score is higher than local accuracy score
This is the starter challenge, Titanic. The original question I posted on Kaggle is here . However, nobody really gives any insightful advice so I am turning to the powerful Stackoverflow community. Based on this Notebook , we can download the ground truth for this challenge and get a perfect score. I tested it and it ...
First question: on certain competitions on kaggle you can select your submission when you go to the submissions window. There you may not be able to on titanic one so you are stuck with 100 percent. Regarding your second question and why do you have different results locally, there is a couple of explanations, first it...
3
0
477
2019-12-20T17:08:38.197
data_quality
datascience.stackexchange.com
598,621
Boot xen server through ipxe
I'm want install Xen Server 6.2 though ipxe, I tried different configurations, no luck making to work until now. I found some may example to boot from pxe using TFTP server, and here is an example: [CODE] The problem is that ipxe uses different syntax, I could not figure out how to convert this configuration to work on...
not simple; you still have to play with pxelinux versions plus ipxe custom compilations. a real mess. Read this ipxe thread. http://forum.ipxe.org/showthread.php?tid=6829
2
1
1,788
2014-05-26T14:43:07.923
infrastructure
serverfault.com
131,602
OSX: Undeletable files
So via what I suspect is a cron'd rsync gone awry, I noticed that I have ~25000 variants of .DS_Store in a directory that's on an external disk, they're named "..DS_Store.FOO" where FOO varies. The problem is that I can't seem to delete them, even using the various tricks I've seen over the years for removing files wit...
Get all the files off the external disk and reformat it. Edit after comment : I do not know what the output of the commands was, so you would have to post that to give us more info. Without that information, the only way I can be quite sure those files will be gone is to 'nuke them from orbit' as you eloquently put it....
0
0
276
2010-04-12T14:28:17.217
api_errors
serverfault.com
171,024
"Never do in code what you can get the SQL server to do well for you" - Is this a recipe for a bad design?
It's an idea I've heard repeated in a handful of places. Some more or less acknowledging that once trying to solve a problem purely in SQL exceeds a certain level of complexity you should indeed be handling it in code. The logic behind the idea is that for the large majority of cases, the database engine will do a bett...
In layman's words: These are things that SQL is made to do and, believe it or not, I've seen done in code: joins - codewise it'd require complex array manipulation filtering data (where) - codewise it'd require heavy inserting and deleting of items in lists selecting columns - codewise it'd require heavy list or array ...
217
332
107,455
2012-10-23T15:32:00.243
database_errors
softwareengineering.stackexchange.com
269,049
T-SQL: how to show the corresponding column's row to an aggregating function's result?
Everyone, I have a question - how to show the (possibly ambiguous) column that corresponds to the value retrieved by an aggregating function? Related to the dataset below, the task is to find the DepartmentID with the lowest average Salary. The below sub-query usage retrieves an error: "Column 'Initial.DepartmentID' is...
You can use the [CODE] clause , which allows you to return the aggregate value in each row of the results without using [CODE] . You create another subquery using [CODE] , and then compare the value of each row with the minimum value: [CODE] This query will return: [CODE]
0
1
73
2020-06-12T17:38:14.970
warehouse_errors
dba.stackexchange.com
126,579
What is the best practice to detect constant and nearly constant data over time?
I'm experimenting with the characterization of data over time. I generated some synthesized data with certain periodic patterns over time every 5mins (granularity of 5mins= data generated with the interval of 5 mins). It means that for each hour I generate 12 observations and at the end of the day (24hrs) I have 12*24 ...
You attempt to check whether data is (nearly) constant, and for me, it appears unclear and ambiguous. I came up with an idea that you could try to inverse your task and try to detect phenomena that cause that data to be not constant . I think that you could establish such issues and it would tell you not only that your...
0
1
44
2024-01-25T01:56:52.123
data_quality
datascience.stackexchange.com