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
69,652
Deadlock with simple queries in sql server 2008
I have an application that must delete and insert registries from a table, the table is storing the historic registries for an access control and is stored with the datetime for the check in the system. Now this is the issue. I have a threadpool in which each thread works over one day in a time period (normally a month...
Based on what I see in SQL Sentry Plan Explorer PRO *, looks like two different jobs are fighting over who is going to get to delete some rows ( click to enlarge ): Maybe there is some overlap because Microsoft does some not-so-optimal things in [CODE] , for instance letting each invocation of the procedure grab [CODE]...
3
5
1,812
2014-07-03T14:46:17.840
database_errors
dba.stackexchange.com
562,911
Trying to install RabbitMQ with Puppet
Here is error I am getting: [CODE] This happens after I run sudo puppet apply manifests/site.pp. Here is my Rabbit class: [CODE] I am trying this on Ubuntu 12.04 LTS VM. Any ideas? This is driving me crazy, I have been stuck for hours trying to figure this out.
I am also having this problem. The cause is that upon installing 'rabbitmq-server' package on Ubuntu, an instance of rabbitmq starts . This is by design. Sadly. As for a solution, I haven't found one yet. Edit I don't know if this is the case for you, but in my case, I was changing the node name in puppet from 'rabbit'...
4
3
2,266
2013-12-21T16:29:31.680
pipeline_ops
serverfault.com
840,182
Group Policy is not applying or being dected by certain users on the same doman
I have recently been experiencing an issue when attempting to push out Group Policy updates. The updates I am attempting to apply are basically just updating parameters in .txt file that resides on a user's PC. These .txt files are used to control a program used by most all users on our domain. This being said, when I ...
If you removed authenticated user from the security group filtering on the GPO, then you need to set in the security of the GPO domain computer to read only to have the GPO work. As joeqwerty found the link, it's because of those update: https://support.microsoft.com/en-us/help/3163622/ms16-072-security-update-for-grou...
2
2
63
2017-03-23T14:34:45.100
infrastructure
serverfault.com
281,515
Periodic unresponsiveness in tomcat
I am experiencing periodic unresponsiveness in tomcat in our production environment. I cannot reproduce this in a test environment, and nothing appears in the logs prior to or during the event. Tomcat continues running, but stops servicing requests. I've read this thread and have placed garbage collection output option...
To start, here's a useful link on "Tuning Garbage Collection with the 5.0 Java TM Virtual Machine" This does sound like GC pauses making tomcat unresponsive. One thing to start with is a "low pause" garbage collector with the option [CODE] .
1
1
2,088
2011-06-17T13:46:09.430
infrastructure
serverfault.com
145,522
For what reasons should I keep "using" section clean in C#?
Once when I was refactoring my code, I went up the IDE to the using section of my C# class, and cleaned unused namespaces and duplicate namespaces , and sorted them all. My pair (pair programming) asked me the reason. I had no idea why I did that. I did it out of my habit to keep all of my code clean and tidy. I mean, ...
There is no performance difference, no matter how many [CODE] directives you have. But I think it makes sense to keep them clean for two reasons: If you look at the [CODE] s, you can see what dependencies does the file have. This can help you figure out what the type(s) in the file do. If you do this, having the [CODE]...
11
23
993
2012-04-22T09:55:06.793
data_quality
softwareengineering.stackexchange.com
300,841
What does "through another column" mean in the MySQL docs?
In the MySQL doc section on avoiding full table scans , one of the cases in which MySQL will use a full table scan is described like so: You are using a key with low cardinality (many rows match the key value) through another column. In this case, MySQL assumes that by using the key it is likely to perform many key loo...
The statement you quote is in contrast with the previous bullet point, which says: You are comparing indexed columns with constant values and MySQL has calculated (based on the index tree) that the constants cover too large a part of the table and that a table scan would be faster. In other words, the first case (compa...
0
2
73
2021-10-07T19:37:36.423
database_errors
dba.stackexchange.com
1,145,058
How can i monitor Openstack with prometheus and grafana
I installed openstack with devstack on Ubuntu 20 and installed prometheus and grafana with node exporter and it showed on grafana no issues, but how to monitor openstack components Nova.... There is a Openstack Exporter in grafana but its show as empty Thanks in advance
You write that you already have prometheus running so I will not go into details about that. The description in the docs are kind of straight forward. It offers different installation methods (docker/podman container or via snap). Both options to start the exporter worked for me (podman container and snap). Configure t...
0
0
888
2023-10-03T22:10:15.063
pipeline_ops
serverfault.com
751,817
Error in crontab - bad minute
could anyone give me a clue what am I doing wrong in the crontab below? I'm getting [CODE] error... Here the entries: [CODE]
crontab should tell you which line the error is on, so focus on that. I suspect you have a line that's been split in two and "in reality" doesn't have a valid number at the start of the line.
0
1
1,170
2016-01-26T12:54:55.807
infrastructure
serverfault.com
230,153
Lots of DNS queries
I have a lot of this entries in /var/log/syslog , 1 each 20 seconds. I see that are rejected but nevertheless I don't think is a good thing that somebody is pinging my server for DNS checks or whatever they are. [CODE] Any suggestions?
Someone is attempting to resolve those domains against your DNS server, and you clearly don't have recursion or query enabled for people outside of your network. I wouldn't be worried.. It happens when you put a DNS server public..
2
10
1,498
2011-02-02T14:00:53.630
infrastructure
serverfault.com
356,105
smbclient NT_STATUS_ACCESS_DENIED on directories when Windows doesn't
I'm setting up BackupPC on a server and it uses smbclient to backup Windows 7 workstations. smbclient logs in correctly to \\TESTHOST\C$ as TESTDOMAIN\backupoperator (Which is also a domain admin and a "Backup Operator" on the TESTHOST) but returns NT_STATUS_ACCESS_DENIED on directories within user home directories suc...
You are going to need to exclude each of the folders that are giving you errors. You need to do this as the files you getting errors on are junction points (like symlinks) and smbclient cannot handle accessing them in samba-3.6.* (from what I can tell). I only want a limited backup of user data. So, the directive I am ...
6
2
12,254
2012-02-02T09:50:54.207
database_errors
serverfault.com
1,089,584
Allow access to remote VM with Postgres only from VPN access
I'm missing knowledge about VPNs. Given is a remote VM with Postgresql. The Server has a public IP. Is (and if how) is it possible to: Database Level: allow connections to postgres (pg_hba.conf) only if the user has the company VPN activated ( Server Level: close the public IP but allow access to the server if the user...
Quite possible. Database Level: allow connections to postgres (pg_hba.conf) only if the user has the company VPN activated ( Pretty simple - add a line that would match both certain database and the VPN IP prefix which the user connects from. Server Level: close the public IP but allow access to the server if the user ...
0
0
1,273
2022-01-10T17:29:29.830
database_errors
serverfault.com
227,738
How do I get a project owner to participate in acceptance testing?
I have started using Pivotal tracker for a project I'm working on. Conceptually, this seems really cool and I'm interested in using the agile model. However, I have one problem with everything talked about in the video. At 4:19 in the linked video they talk about story acceptance and how it should be done by the projec...
What you are mentioning is a classic problem that many companies have introducing agile development. Unfortunately, there's no easy solution. For the specific problem of acceptance, the "standard" workaround is having someone in the team acting as a proxy for the product owner. This is not great but it can work as long...
2
9
179
2014-02-04T23:42:19.473
api_errors
softwareengineering.stackexchange.com
388,648
64Bit ubuntu and 32Bit apps
I am trying to run a 32bit server process on my VPS, however when I do so it is having problems loading the shared libraries the process needs. When googling around they suggest "sudo apt-get install ia32-libs", when I do this I fear Ubuntu wants to replace every single package I have installed with 32bit ones, all kin...
"What am I doing wrong?" Well, it looks like you have mixed up a Ubuntu installation with lots of third party (Dotdeb / debian) packages and ended up in DEB-hell. Sidenote: The packages from Dotdeb should work on Ubuntu, but no additional support will be provided. Anyway, installation of [CODE] on Ubuntu should look so...
1
1
290
2012-05-13T11:52:37.073
infrastructure
serverfault.com
380,549
How should I implements functions which are used for the same purpose when using strategy design pattern?
First of all I am going to give you a brief explanation of what i am after doing. I want to write a program that applies filters to an image using a strategy design pattern. I have read some documentations about the pattern and decided to use it like this. First I will create an Interface called FilterStrategy which ha...
I would implement a parent class for your filters eg [CODE] This FilterBase would implement the read, write, convolution and display methods. Then when your classes BeautifulFilter and UglyFilter inherit from it, they would be able to access the methods themselves.
1
6
143
2018-10-25T07:26:45.350
data_quality
softwareengineering.stackexchange.com
1,075,090
Error establishing a database connection on Bitnami Wordpress Site
I'm running Wordpress Bitnami website on an ec2 instance. Operating system is Debian Linux Earlier today, I noticed my site becoming slow whenever I upload products(Content) I have done technical research on increasing the speed,so one of the options was to resize the instance type from t2.micro to t2.xlarge. Then I re...
Regarding changing IP address, add an elastic IP address. The standard public IP changes when an instance is stopped and starts, but an elastic IP is permanent. Note that the private IP address does not change. Check your wordpress configuration file wp-config.php to work out that domain / IP you gave for your database...
0
0
594
2021-08-19T19:55:33.227
infrastructure
serverfault.com
976,162
Windows Server 2016 guests in WSFC cluster randomly quarantined due dropping heartbeat routes
Having 2 guest Windows Server 2016 OSes hosted by Hyper-V Server 2016. The guest OS cluster is very unreliable and one of the nodes constantly gets quarantined (multiple times per day). I also have Windows Server 2012R2 cluster. Those are hosted by same Hyper-V hosts and have no issues whatsoever. That means I have the...
I just had the same problem with a Windows Server 2019 Failover Cluster (for Hyper-V 2019). I usually also disable IPv6 on my Servers and that caused the problems. The cluster threw lots of Critical Errors and sometimes did a hard failover, even though a file share witness was also in place and working(?!). Errors and ...
3
3
6,407
2019-07-22T09:31:53.427
data_quality
serverfault.com
757,715
When I write my server ip on browser I get the following output :
While accessing my server with ip in browser I get the following output : http://example.com/wp-admin/install.php Can anyone help me to detect the problem ?
what you want the output to be? It seems that you have placed wordpress setup on the web root folder. you can install wordpress and build your site on top of it.
-4
1
51
2016-02-17T05:37:19.913
infrastructure
serverfault.com
10,198
source and target functions in igraph package in R
What are the source and target functions in igraph package in R? so that source(s->t) = s and target(s->t) = t I am working on this directed graph example: [CODE] edit: I am trying to write a function like this: [CODE] The problem is the string. It includes quotations while E(network)[str] does not work with quotations...
Given [CODE] you got [CODE] and [CODE] [CODE] is an important base function.
0
1
275
2016-02-11T10:02:59.413
data_quality
datascience.stackexchange.com
14,099
How to configure single nginx ingress with letsencrypt and multiple bitnami wordpress containers?
I'm using bitnami/wordpress helm chart to create many websites which should run on different domains. I'd like to auto secure them and use a single ingress to route traffic. I'm using this tutorial https://docs.bitnami.com/tutorials/secure-wordpress-kubernetes-managed-database-ssl-upgrades/ to create ingress nginx cont...
Same TLS secret will not be mapped to two ingress at the same time within a namespace.It will map to the first deployed ingress. Create the same secret with a different name and map it to the other ingress for it to work.
0
1
724
2021-06-05T12:26:11.187
api_errors
devops.stackexchange.com
627,546
OpenVPN cannot connect to local machine that has two NIC cards
This is my first time EVER posting to these forums. Most of the time when I have an issue I can usually solve them by searching forums/Google. But this one issue has me stumped! My company just deployed a VMware ESXI server that has a VM of pfsense which is setup for routing all LAN and WAN traffic for the most part al...
I solved it my self, I had to create a new routing table. Here is what I did: Added new routing table to /etc/iproute2/rt_tables [CODE] Added routes to LAN config /etc/sysconfig/network-scripts/route-ens160: [CODE] Added rules to LAN config /etc/sysconfig/network-scripts/rule-ens160: [CODE] Restart network: [CODE] Veri...
0
0
618
2014-09-10T12:53:57.693
infrastructure
serverfault.com
784,823
Permission denied for dovecot to access mail directory
I have setup a mail server using Postfix & Dovecot on CentOS 7. When I try to fetch email using thnderbird or any other email clients, I get this error in my maillog file: [CODE] It seems my user [CODE] does not have sufficient permissions to access (read/write) this directory: [CODE] How to solve this?
Do not use LDA from postfix, use dovecot's [CODE] instead. Detailed explanation can be found at http://wiki.dovecot.org/LDA/Postfix If implemented, [CODE] become the only service that have an access to the storage so there is no permission collision between [CODE] and [CODE] .
0
0
1,429
2016-06-18T22:48:30.140
infrastructure
serverfault.com
437,021
Designing a model for a small business which provides multiple services which generate documents
I am designing a system for a company which provides multiple services to users, all of which generate a document. The documents all have a validity period. Some of the services can be grouped, and their documents have the same length of validity. None of the services have the same parameters, except for the general on...
I currently work in an insurance project and we also have to deal with documents to be created/printed/emailed/downloaded a lot too. The main point I learned from that is: A document is just a report of data what actually was recorded before in the application. The implication of this is that your main application shou...
0
0
105
2022-02-26T22:23:50.860
api_errors
softwareengineering.stackexchange.com
615,907
Ubuntu init script
[CODE] this is the daloradius log, and someone told me , it is sql services haven't started, what is why i would like to delay the start daloradius service. belowing is my method to let daloradius service start after 200 seconds. i would like to let the script sleep 200 seconds only start the daloradius. this is the co...
Here is your problem: [CODE] This (2) means [CODE] , i.e. the socket is not present. Did you actually install the MySQL server? [CODE] Did you start the server? [CODE]
1
1
940
2014-07-28T06:38:20.420
infrastructure
serverfault.com
666,599
Backup jobs in ARCServe fail trying to back up deleted files and directories. How can fix this?
I am using ARCServe r12 SP2. Our daily backup jobs are failing while trying to back up files and directories on a remote server that have been deleted. How can I fix this?
Had this problem with old arcserve version, it make a difference if you select a path to get all under (like c:\ all sub dir), than just selecting some under a root (like d:\group\share1, d:\group\share2, etc..) In that case if share1\ is deleted then it throw out a error. nb. From the arcserve version I was using I ha...
0
0
105
2015-02-10T21:49:20.113
database_errors
serverfault.com
515,881
Why does ipv6 not specify a protocol version?
I am relatively new to dealing with network packets, but as I look into the ipv6 header formats, I do not see a place where the ipv6 headers define what protocol is used in the data section -- but the ipv4 protocol does. Am I missing where ipv6 gives the protocol information, or is that information no longer deemed nec...
It turns out that the "Next Header" field in IPv6 does the same thing as the "Protocol" field does in IPv4. See http://en.wikipedia.org/wiki/List_of_IP_protocol_numbers .
0
2
933
2013-06-14T15:33:41.447
infrastructure
serverfault.com
35,876
Protractor - How can I bypass the mixed content error
I am getting the below error when I was trying to approve a document in a webpage [CODE] It is because my test is trying to load a non secure page over a secured page. The page is loaded, but I am not able to proceed further. I am using Protractor-cucumber-javascript framework. Could someone help me to bypass this erro...
This is actually a security feature of your browser . If you know that the content from this HTTP url is safe, and if you are using Chrome, you should be able to instruct Chrome to load insecure content by specifying [CODE] command-line option in your config: [CODE] *In general, though, this is not ideal security-wise ...
1
1
632
2018-10-02T10:13:16.530
data_quality
sqa.stackexchange.com
1,020,548
nginx: use geo module with a domain instead of IP
I use nginx to host wordpress. Naturally I'm looking to secure the wp-admin and wp-login.php pages so they are only accessible to pre-authorized servers. In my sites-available I'm defining the allowed IP(s). And later using variable $wpadmin to allow / disallow wp-admin page: [CODE] Now my problem is that IP "1.2.3.4" ...
This would be possible with [CODE] module. It can do a reverse DNS lookup for the remote IP, and subsequently you can allow/deny based on incoming hostname.
1
1
487
2020-06-08T16:28:47.317
infrastructure
serverfault.com
41,569
Is it there anyway to restore updated records in Microsoft SQL Server 2008 R2?
We have an test database configured with our web application. Due to internal web application error the entries were get updated in the database. Is it there any way to recover the updated records? My problem in brief : My web application form has five fields such as [CODE] . The database also configured with same colu...
If you've ever taken a backup, and your recovery model is BULK LOGGED or FULL , then you might have some luck. Unfortunately if never took a backup before you had your problem, then you are probably bang out of luck (as Martin Smith pointed out in his comments below). You can check whether you've ever taken a backup by...
1
3
4,335
2013-05-06T06:45:17.673
database_errors
dba.stackexchange.com
29,077
restore compressed dump query in postgresql asks password
I'm using ubuntu OS and I took backup using [CODE] in the file path as... [CODE] Later, I tried to restore it back using these following below... [CODE] all these 3 restore option I used asks password, but I have only one login and I tried it and its not accepting it I also tried root password and linux login password ...
Find the postgresql installation folder containing pg_hba.conf . Edit the authentication chapter at the end of this file, adding [CODE] and restart. After that postgresql should not ask for the password to authenticate into any account if this is done from the same machine where the postgresql server is running. Afterw...
1
3
4,975
2012-11-21T07:39:12.927
database_errors
dba.stackexchange.com
284,259
Puppet: variable overriding best practices
I'm wondering what are best practices for overriding variables in puppet. I'd like to have all my nodes (which located in different places, some of them are qa, some live) with same classes. Now I have something like this: [CODE] So, I'd like to have some defaults in base_linux, which can be overrided by linux_qa/linux...
It seems I've found nice way to do this: instead of defining variables in classes, it's better to make variable-only node templates. So, I've end up with something like following: [CODE]
1
2
9,743
2011-06-26T11:35:30.813
hadoop_errors
serverfault.com
908,224
Android OpenVPN disconnects the SSH tunnel
I want to tunnel my OpenVPN traffic through an SSH tunnel. I have An OpenVPN server behind a router running on port 4321 SSH server on the same machine on port 22 Router forwards ports to the server's IP to 1234->22 and 4321->4321 The server is configured this way: [CODE] And my client side looks like this: [CODE] If I...
The question is old, but since there is no accepted answer I thought my answer might help anyone facing this issue... . This happens because the packets passing through the ssh tunnel are forced to pass through the vpn app once the vpn client connects. This is why the VPN app connects immediately for a blink which caus...
0
2
897
2018-04-18T10:53:48.207
infrastructure
serverfault.com
6,920
SQL Server: hierarchy of permissions for schema?
We have several databases under development and I would like to start using SQL Server schemas for permission management and logical grouping of database objects. Under Schema Properties there is explicit permissions like [CODE] What is the hierarchy of these permissions? The idea is to grant [CODE] for admin AD group,...
Quick answer: For developers, you can GRANT CONTROL on that schema. Background: To see what can be [CODE] ed: GRANT Schema Permissions To see what each permission means: Permissions Naming Conventions The intersection of these two give the schema permission meanings: [CODE] implies the rest and is the highest permissio...
6
7
3,981
2011-10-18T07:18:21.377
database_errors
dba.stackexchange.com
485,690
Unable to Create System DSN
Environment: Windows 7 Professional 64-bit Operating System Problem: (ODBC Data Source Administrator) Opening Administrative Tools -> Data Sources (ODBC) -> Click "System DSN" tab. Error: ODBC System DSN Warning You are logged on with non-Administrative privileges. System DSNs could not be created or modified. Failed T...
In my case [CODE] was missing, which is where 64-bit odbcad32.exe loads list of DSNs from. So I just created [CODE] and [CODE] under [CODE] and that annoying dialog box went away.
5
10
21,560
2013-03-07T17:22:35.780
infrastructure
serverfault.com
149,978
Problem in Installing Wordpress
I try to install Wordpress in a Windows Client with [CODE] which provided by Microsoft. I had tostop installation process 3 time and installing PHP and mysql Extention manually. but everytime I continue setup by [CODE] andfinally it show me a success message. But when I try to see installed wordpress in my client I see...
What if you uninstall PHP and reinstall it to C:\PHP? I've seen problems when PHP is installed to a path that includes a space.
1
0
270
2010-06-10T08:24:39.253
database_errors
serverfault.com
847,742
"vsftpd.service: cgroup is empty" service fails to start
I have a CentOS 7.1 machine, recently installed with no other services currently configured. I have installed vsftpd via [CODE] , but when I go to start the service (via [CODE] ), I get the response: Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" ...
The problem for me was that the default install for [CODE] on CentOS 7 expects IPv6 to be enabled on the host. In my case, it wasn't, and I hadn't noticed the difference between my local VM and what our service providers had given us. In the configuration file [CODE] change the lines (near the end of the file): [CODE] ...
0
2
3,995
2017-05-02T10:47:13.160
infrastructure
serverfault.com
349,593
loading testing from a one ec2 linux/ubuntu instance to another ec2 linux/ubuntu instance
I wanna run a load/stress testing on ubuntu ec2 small instance. I could have done it using Jmeter from my laptop itself, but that would actually consume lot of bandwidth and also I feel I cant get the real the performance and stress statics. I am looking for a either a method or a app, similar to jmeter which would ban...
Siege This would probably be my preference - Some of its options include the number of simultaneous requests, delay between requests, and number of times each user should make a request. Most importantly though, it lets you specify a URL list which it can be setup to access at random - this will provide a more realisti...
0
2
586
2012-01-13T11:00:41.563
infrastructure
serverfault.com
985,997
Assign IPv4 address to Ubuntu OVA on ESXi
How can I get an IPv4 address for an Ubuntu 1904 VM on ESXI 6.7, deployed from the Ubuntu OVA? I'm deploying the OVA using [CODE] , and I've provided the below spec file. Of note are the [CODE] , [CODE] and [CODE] fields. [CODE] When the VM comes up, it has an IPv6 local-link address ( [CODE] ), rather than an IPv4 add...
I've not done this myself but it looks to me that for ESXi (which unlike vCenter has no db to store the properties) you need to add the following to your spec file [CODE] I found an example of this in Step 6 of https://www.virtuallyghetto.com/2016/04/slick-way-of-deploying-ovfova-directly-to-esxi-vcenter-server-using-g...
0
1
628
2019-09-28T10:29:50.857
infrastructure
serverfault.com
190,650
Duplicated id error, key is actually NOT duplicated
I have the following query: [CODE] So I was trying this query and it throws the following error: [CODE] Problem is, [CODE] DOESN'T exist. When you perform a single insert with the hardcoded id as 108, it performs it, however, when you try and loop it like this here, it doesn't. Any idea how can I accomplish this? EDIT ...
You're trying to insert the same id twice, because [CODE] doesn't get incremented until commit. What you want to do is precisely what the [CODE] does on [CODE] [CODE] Hint: [CODE] It'll look like this, [CODE] But even better because [CODE] has a [CODE] just remove it entirely.. [CODE]
0
4
3,564
2017-11-10T17:37:27.013
data_quality
dba.stackexchange.com
17,294
NLP: What are some popular packages for multi-word tokenization?
I intend to tokenize a number of job description texts. I have tried the standard tokenization using whitespace as the delimiter. However I noticed that there are some multi-word expressions that are splitted by whitespace, which may well cause accuracy problems in subsequent processing. So I want to get all the most i...
The multiword tokenizer 'nltk.tokenize.mwe' basically merges a string already divided into tokens, based on a lexicon, from what I understood from the API documentation. One thing you can do is tokenize and tag all words with it's associated part-of-speech (PoS) tag, and then define regular expressions based on the PoS...
9
2
12,867
2017-03-02T07:04:41.123
data_quality
datascience.stackexchange.com
786,584
Etherchannel / Inter-vlan issue
I have two Cisco 3850 switches (3850-1, 3850-2). I have VLANs 1,2,3,4,5 setup (192.168.1.0 - 192.168.5.0) using built in DHCP from 3850-1. 3850-1 is 192.168.1.3 3850-2 is 192.168.1.4 I have an etherchannel setup between the two. I have them presently set to allow all VLANs (will limit later). Each VLAN has HSRP configu...
Etherchannel wasn't setup completely. Switched to LACP from PAgP. THis link helped. Essentially, I had an incomplete configuration on one end. Going through and rebuilding int PO1 on each switch using LACP instead of PAgP fixed it. Works great. https://www.quora.com/What-is-difference-between-LACP-and-PAGP-protocol
1
0
893
2016-06-27T21:05:16.097
infrastructure
serverfault.com
6,048
Should I use a decision tree or logistic regression for classification?
I am working on a classification problem. I have a dataset containing equal numbers of categorical variables and continuous variables. How do I decide which technique to use, between a decision tree and logistic regression? Is it right to assume that logistic regression will be more suitable for continuous variables an...
Long story short : do what @untitledprogrammer said, try both models and cross-validate to help pick one. Both decision trees (depending on the implementation, e.g. C4.5) and logistic regression should be able to handle continuous and categorical data just fine. For logistic regression, you'll want to dummy code your c...
17
26
50,692
2015-06-09T09:37:11.537
data_quality
datascience.stackexchange.com
892,923
Heroku - Distributing monolithic Rails app
We have a pretty sizable monolithic Rails app that has a few functions (in parenthesis is the estimated % out of the total codebase): Marketing site when users are not logged in: homepage, additional landing pages, SEO pages, registration/login pages, etc (5%) Logged in user facing pages: after logging in, users can se...
Simple answer here would be to split into two dynos, and put a layer 7 router like HAProxy, Varnish, or whatever heroku provides in front of it. /admin/* goes to one dyno, everything else goes to the other. Its the same app on both, its just not calling certain parts of the site. HOWEVER This only helps you if this is ...
2
0
73
2018-01-18T20:46:46.500
infrastructure
serverfault.com
633,247
Ssl error on mobile devices
I have a website which is ssl installed and working properly on pc's and also on Mac. But when I open it from mobile devices it gives an error that says server's certificate is not trusted. You can look website at https://hepsibebek.com What should I do to solve this issue? Thanks in advance
You web server is not sending the intermediate certificate(s) and hence some browsers may show the warning. [CODE] The steps to install and configure the intermediate certificates vary depending on the web server you are running. You can use an SSL installation checker to validate the installation once you have made th...
-1
5
5,795
2014-10-03T07:14:36.807
infrastructure
serverfault.com
341,497
How to share a SQL DataBase over the internet?
According to the above figure how can I share a database over the internet that is hosted on a server and allow a remote PC to connect using its static IP and using a connection string.
Use a VPN tunnel to connect your remote PC to your main network. You don't have to worry about exposing your SQL server to the internet that way. If you have multiple PCs at the remote site, you might want to use your router hardware to establish a VPN tunnel.
2
2
2,683
2011-12-16T06:06:10.830
infrastructure
serverfault.com
70,030
Deploy SSRS 2012 report to a distant Sharepoint 2010 server
My installation : - SQL server 2008 r2 + Sharepoint server (main farm) = VM1 - SQL server 2012 + SSRS 2012 (not native mode) = VM2 I would like, if possible , make my SSRS configuration manager (VM2) to point to the report server database (VM1). The problem is that as I installed SSRS in Sharepoint integrated mode (not...
Problem solved. I think it came from the absence of an Active directory to manage users. With it, users are defined precisely and the installation runs perfectly.
0
0
66
2014-07-09T09:34:14.360
bi_errors
dba.stackexchange.com
301,277
Which UDP ports are required to resolve external hosts?
Today I asked my hoster to block all UDP ports except port 53. Due to daily UDP attacks, this was currently the only option to stop flooding my lines. Now since the block is in place, I cannot wget anything anymore. [CODE] Nothing has changed on the server it self. Only at router level. Port 53 is still open, i see hit...
To resolve a host, you need UDP 53 outgoing (I'm supposing you're behind a stateful firewall). To use wget and curl with default port options, you will need TCP 80 outgoing . You will not be needing any incoming ports for this specific purpose. To check whether you can resolve hosts, you can use the dig command. If you...
0
3
1,685
2011-08-15T17:13:39.120
infrastructure
serverfault.com
65,854
Should I split these fields or leave as one?
I want to create a database listing characters in each book of the A Song of Ice and Fire series, listing the name of the character and the page in which they appear. I could just use three fields (not including the primary key,) Name, PageIntroduced, and BookIntroduced, but the Name field isn't atomic; I could be subd...
Splitting given names from surnames is not normalisation. What would be normalisation would be if you created a series of tables that contained additional details about some of the columns in your table. For example, you could create a [CODE] table that contains information about the house other than the name, such as ...
2
3
137
2014-05-25T11:51:12.100
warehouse_errors
dba.stackexchange.com
83,612
Where to Find Cheap Server Hardware?
I want to build a server for my small business, but my budget is incredibly small (would prefer to stay under $1,000, not including operating system costs). I'm perfectly content with refurbished hardware, so long as the CPU supports hardware virtualization and Windows Server 2008 R2. I'm also perfectly content with bu...
Well, in most people's conception of the word "server" you're not going to have much luck, but 1,000 is plenty for a quality desktop made from parts, even including RAID and name brand parts. I'd go out and put together a last generation ( core 2 quad ) quad core box with plenty of ram, a motherboard with on board RAID...
4
5
9,448
2009-11-11T14:22:14.487
data_quality
serverfault.com
14,645
Keeping an eye on contention
In SQL Server, I am using the following command to see blocked sessions: [CODE] This is super. The problem is I need to see what block sessions there were in the last 30 minutes. This isn't easy because, the blocked sessions can be come unblocked.can go a so they won't be returned by : [CODE] Any ideas? Thanks
Adam Machanic wrote the everuseful sp_whoisactive that can handle the task. A description of the procedure can be found at SP_WhoIsActive: Get detailed information about the sessions running on your SQL Server system
1
2
255
2012-03-08T15:50:57.150
database_errors
dba.stackexchange.com
655,865
CentOS 6.5 Dependency errors while installing hhvm
I am trying to install hhvm on newly created droplet. For this, I am following this guide . After adding the Gleez repository, I tried running [CODE] Lots of lines, and then at the end: [CODE] But it gave me lots of error. I want to understand why this kind of error happens and what is workaround? Since today I have be...
Your local yum cache appears to be out of date. Run [CODE] and then try again. Or it could be that the repository is broken. In that case you'll need to contact the repository maintainer.
2
2
3,014
2015-01-02T10:17:45.683
infrastructure
serverfault.com
1,113,492
SSL stapling and variable SSL certificates in NGINX
I have several domains, all of which are served by the same NGINX instance. I am trying to setup a generic server configuration for HTTPS, such that every domain uses its own certificate and has SSL stapling enabled. These settings as defined in [CODE] are as follows: [CODE] Every domain has a server block assigned to ...
The behaviour of [CODE] being silently disregarded when using variables in the file name is tracked as defect #1813 . The only documentation that even suggests that this is a special case is in the documentation of the [CODE] directive (emphasis mine): Since version 1.15.9, variables can be used in the file name when u...
0
1
408
2022-10-19T14:33:16.993
api_errors
serverfault.com
697,743
Apache and mod_wsgi returning 504 error when posting specific SVG string
I have a wierd 504 error occuring in Apache + mod_wsgi when I post a specific SVG string. The backend application is Python Flask, but it does not seem to get to the application at all. Here is one request that returns a 504 error: [CODE] And here is another one that returns with 200: [CODE] The difrrerence is that I o...
Look in your httpd.conf file and increase the Timeout value. [CODE] Save the file and restart apache.
3
0
3,294
2015-06-09T18:38:52.010
infrastructure
serverfault.com
102,538
How does my DHCP server know my machine's hostname when I didn't define one in dhclient.conf?
I'm trying to resolve some funky DNS issues related to DHCP on our network (I suspect we have more than one DHCP server running at the moment), and while trying to figure that out, I noticed something strange with a new server I just set up. The server in question is a Xen virtual machine running Ubuntu 9.10 Server. Th...
OK, after a long time trawling the Internet and trying to read through [CODE] pages, I mostly figured out what's going on: [H]ow in the heck did it know to send the server's real hostname if the configuration isn't set up to send it in the first place? Apparently, [CODE] , and more specifically, [CODE] , has special si...
13
12
21,144
2010-01-14T05:12:13.457
infrastructure
serverfault.com
934,445
Non supported SSL cipher, how to disable it?
I have a linux system with a a version of [CODE] and an Apache [CODE] The Apache has issues connecting via secure LDAPS to a remote DC Windows 2016 server. I have traced the problem by capturing packets. Here is the output from the openssl test command [CODE] In the network dumps, it is shown that the cipher TLS_ECDE_R...
I don't think that [CODE] / [CODE] affects how Apache talks to the LDAP server , instead it's a setting for [CODE] describing what ciphers to offer to HTTPS clients. That's unrelated setting. I'm afraid you will have to set the list of supported ciphers on the Windows LDAP server to something less strict that's still s...
1
0
1,383
2018-10-08T07:01:05.930
infrastructure
serverfault.com
447,831
Issue multiple claims in a single rule
Is there a simple way to issue multiple claims in a single ADFS Claim rule? The only example I can see is ones which query an attribute store, and each retrieved column is mapped to a different claim type. I tried an "obvious" approach of using [CODE] rather than [CODE] , putting the two types in brackets (as per SQL e...
An ADFS rule is composed of a condition, the [CODE] token, a command ( [CODE] or [CODE] ), and terminated with a semicolon. You cannot issue multiple literals per rule, but you can use powershell to make it easier to work with. Instead of going in the UI, and going through that wizard 5 times, you can use [CODE] to set...
4
4
6,369
2012-11-12T13:52:14.447
infrastructure
serverfault.com
96,480
Terminal Services Explained
Can someone cleanly delineate the following services/roles for me? I'm lost in the MS TechNet explanations. Terminal Services Web Access Terminal Services Gateway Terminal Services Remote App What are the pros/cons of each, especially from a security standpoint? If I just connect to a remote server over port 3389 using...
•Terminal Services Web Access: main benefit: With TS Web Access, a user does not have to start the Remote Desktop Connection (RDC) client to start a RemoteApp program. Instead, they access the Web page, and then click a program icon. For details see Terminal Services Web Access (TS Web Access) •Terminal Services Gatewa...
5
3
1,099
2009-12-21T21:59:56.290
infrastructure
serverfault.com
15,511
How to manage Env Variables / Configs on a Helm Chart + Github Actions + Github Secrets
I have a Rest API in Python that has several Configuration variables that are setup at startup time. This variables are read from the environment variables of the host machine. Our production environmant is on a kubernetes cluster that is deployed with github actions and a helm chart. The problem I have is that wheneve...
The process itself looks fine to me, what I would do is: Add a test in the last step that runs helm template on a few targets that may get this parameter, to verify it is not failing. Add the parameter in a way that will not break the pipeline if it is missing, or put a default in the code that will not cause damage.
3
1
1,611
2022-02-23T22:07:48.673
api_errors
devops.stackexchange.com
152,519
What could cause sudden crash of a MySQL 5.0.67 installation?
I have an old Ubuntu 8.10 32-bit with MySQL 5.0.67. There's 5.7GB of data in it and it grows by about 100MB every day. About 3 days ago, the MySQL instance begin dying suddenly and quitely (no log entry) during the nightly mysqldump. What could be causing it? Upgrading MySQL is a long-term project for me, unless there ...
Is there a very large table that is being dumped or a bunch of medium sized ones? are you using the -q option with mysqldump? Is there a large table that you're dumping that is being written to? If so, locking a large table will prevent any other threads from executing due to the lock held which might cause your webser...
0
1
894
2010-06-18T14:19:26.153
database_errors
serverfault.com
120,889
Apache Config: RSA server certificate CommonName (CN) ... NOT match server name?
I'm getting this in error_log when I start Apache: [Tue Mar 09 14:57:02 2010] [notice] mod_python: Creating 4 session mutexes based on 300 max processes and 0 max threads. [Tue Mar 09 14:57:02 2010] [warn] RSA server certificate CommonName (CN) `*.foo.com' does NOT match server name!? [Tue Mar 09 14:57:02 2010] [warn] ...
You have two [CODE] 's configured with different SSL certificates. In every [CODE] you must define [CODE] parameter, which match [CODE] field from SSL certificate. But [CODE] - [CODE] mismatch shouldn't cause apache to crash. Probably one module has memleak or memory corruption error. Do you have any non standard modul...
6
6
29,798
2010-03-09T20:03:15.243
infrastructure
serverfault.com
196,304
Slow JOIN on tables with millions of rows
In my application I have to join tables with millions of rows. I have a query like this: [CODE] The table "files" has 10 million rows, and the table "value_text" has 40 million rows. This query is too slow, it takes between 40s (15000 results) - 3 minutes (65000 results) to be executed. I had thought about divide the t...
I think you need this index (as Krismorte suggested ): [CODE] The following index is probably not required as you appear to have a suitable existing index (not mentioned in the question) but I include it for completeness: [CODE] Express the query as: [CODE] This should give an execution plan like: The [CODE] is optiona...
9
7
28,691
2018-01-26T06:40:06.770
database_errors
dba.stackexchange.com
140,488
Mysql: create index on 1.4 billion records
I have a table with 1.4 billion records. The table structure is as follows: [CODE] The requirement is to create an index over the column [CODE] . The table size is about 34G. I have tried to create the index by the following statement: [CODE] After 10 hours' waiting I finally give up this approach. Is there any workabl...
Could it be your system just is not up to the task? I do not use MySQL (SQL Server here), but I know the pain of indexing an 800 million entry table. Basically.... you need the right hardware for that (as in: lots of fast discs). I now use nearly a dozen Velociraptors and performance is great ;) SQL Servers (not as MS ...
10
4
27,320
2010-05-10T16:58:28.983
database_errors
serverfault.com
366,991
Setting up an open WiFi access point & seperating networks
I have been asked to setup a public Wi-Fi point in a cafe. I've recommended they get two separate internet connections to ensure the two networks are separate however they haven't the budget for this setup. I need a Public & Private WiFi networks on the same internet connection that can't talk to each other. They have ...
Well, according to the documentation , yes. Your device will do what you want, however setting up repeaters and such is always a pain (check your MAC addresses!). Basically, you just establish two SSID's (ClientPrivate and ClientPublic) then set additional security like client isolation on the public network. Also, mak...
0
1
695
2012-03-06T21:28:26.053
infrastructure
serverfault.com
325,204
Split DNS - Cleanest solution for easy maintenance?
We have split DNS set up for our domain, which causes internal clients to resolve different DNS records from external clients. As it is right now, the two zones are managed completely separately. For records that differ between internal and external, it's no problem, but for everything else, all of the records have to ...
In a network where one of the authoritative nameservers sits on the border of the internal network, I use [CODE] views and the [CODE] directive: [CODE] : [CODE] [CODE] : [CODE] The zones are chosen based on view definitions: [CODE] To be able to assign a record different targets for internal/external queries, add two f...
3
2
2,072
2011-10-27T04:14:19.217
data_quality
serverfault.com
301,839
Time taken for authentication to work again after changing system time
One of our domain controllers clock drifted way out of sync with the rest of the network (thanks to me forgetting to turn off VMWare's time synchronisation), which caused a whole bunch of servers to lose their ability to authenticate, given that kerberos requires close time synchronisation between servers. I manually l...
w32tm /resync should do the trick. This command will resync the time on the local computer to it's time source, which in an AD domain should be the authenticating DC or the PDC emulator. Running w32tm /resync /computer:COMPUTERNAME will send the resync command to the remote computer specified by COMPUTERNAME (in case y...
6
2
142
2011-08-16T23:02:17.787
api_errors
serverfault.com
587,261
Best Practice/Workflow for bulk renaming domain PC's
So I've had to deal with renaming whole rooms of PC's before due to them being swapped out and incorrectly named or generally being moved around but I've never settled on a decent workflow. I'll give an example of the most recent situation. (Win 7 PC's and a Win 2012 server) Approx. 30 PC's numbered from 1 to potential...
I have been in a similarl situation before; The way I did is was using netdom, less clicks, and you can use a batch file or psexec to make life a lot easier/quicker. e.g. [CODE]
0
2
1,460
2014-04-07T17:26:10.417
infrastructure
serverfault.com
6,955
Automated Testing Involving Internet Explorer_Server Controls
I've been tasked with developing a method to functional test and load test an application we're implementing in our environment. The vendor created a shell which uses [CODE] controls to display content and get input. The problem lies in that I cannot get the raw HTML from the control, I get [CODE] when I try to get the...
This is super painful. My company ended up purchasing Test Complete to make this reasonably testable. It has some windows spy tools to find that order of objects and good hooks into the system. You could also use a GUI tester like Sikuli.
8
1
887
2013-10-10T14:09:00.237
data_quality
sqa.stackexchange.com
611,639
Using python in FreeRADIUS
There seems to be documentation lacking on how to use the python module in FreeRADIUS. I want to use python to interpret a MAC address (in %{Calling-Station-ID}) and return an IP address. In my [CODE] I have: [CODE] This returns: [CODE] What is the proper way to create a python module for FreeRADIUS? EDIT: I found out ...
The correct way is without quotes: [CODE] In my examples above, I had quotes around [CODE] .
1
1
6,239
2014-07-10T16:19:00.390
infrastructure
serverfault.com
504,786
How to relocate the database directory for Red Hat Directory Server 9.0
I am running RHDS in a VM, but would like to store the data and logs on a separate volume, that is on a SAN. The partition is ext4fs on /sdb1 and is mounted as /data. I tried many variations of the different approaches described here. First, after a fresh install of RHDS, before I created any instances, I created the f...
The following procedure works successfully for me with 389-ds 1.2.9.14: create a new instance make sure dirsrv is stopped: [CODE] move the [CODE] directory to the data partition; in my case [CODE] create a symbolic link from [CODE] to [CODE] move the [CODE] directory to the data partition; in my case [CODE] create a sy...
1
0
1,142
2013-05-03T14:03:49.900
infrastructure
serverfault.com
220,353
Emulation of MMU accessing the contents of the registers
I'm having a play around with emulating a simple old CPU. I've set the structure up, so far anyway, as follows: The device is the main and creates an instance of the CPU. The CPU then creates instances of the registers, clocks and MMU . I'm in the position where the MMU needs to access the contents of the registers, ho...
but that seems unwieldy Nope, that is exactly how it should be done. You need an argument for a method? Pass the argument in. It's a core language feature! An example of how this may be useful is if the MMU loads from memory where the pointer is a value in the register- this may be any register. Simply pass in the appr...
3
1
895
2013-12-05T10:18:26.613
api_errors
softwareengineering.stackexchange.com
922,491
Cloudformation Trouble with Parsing
I am having some issues w/ using CloudFormation and CloudFront. I have been using the AWS resources to form my template, found here [CODE] I keep getting [CODE] which is right after the DistributionConfig. I have tried putting this through JSONlint but did not get any hints on it and its getting increasingly frusterati...
This line: [CODE] Is out of place. If you look in this official AWS resource , you can see that "ViewerCertificate" is not a valid property of "AWS::CloudFront::Distribution".
0
0
122
2018-07-18T14:36:58.847
infrastructure
serverfault.com
1,153,535
How to block unrecognized hostnames in .htaccess (A Domain Name I Don't Recognize Is Redirecting To My Site)
I'm using Dedicated IP on a shared linux server... At first, I saw that an unfamiliar hostname displayed my own website like a mirror. I scanned the A records of this site to investigate what was going on. And I noticed that my IP address is in the A record of the other domain. To resolve this conflict i used the follo...
This problem should be resolved in your virtual host config and not with .htaccess. If you are using a website hosting company and do not have direct access to the Apache virtual host config, then this problem is a direct result of a misconfiguration on the server they manage. Simply put, using a [CODE] directive withi...
-1
2
171
2024-02-14T00:45:22.987
infrastructure
serverfault.com
27,357
Unable to open .sps.bak database backup file with SQL Server 2012 Express edition
I am using SQL Server 2012 Express edition. Client sent me the SQL Server backup file with the extension [CODE] . I am not able to open it with SSMS. Please somebody help me here. I get the following error message. Restore of database failed. System.Data.SqlClient.SqlError: the database was backed up on a server runnin...
That's probably a Sharepoint backup. Restore it in Sharepoint, or ask for a SQL server backup Your error message shows that you are connected to a SQL 2008 server, not SQL 2012, and that the backup was performed on a SQL 2008 R2 server. You need an R2 server, or SQL 2012, to restore it.
1
1
258
2012-10-22T09:27:25.773
database_errors
dba.stackexchange.com
434,638
Creating a "fake" open relay to capture non-relayable outgoing mail with postfix
We occasionally have customer-provided servers in our technical support and engineering departments. They're isolated on their own VLAN, with strict firewall rules in place to minimize possible bad behavior. We've found ourselves needing to capture (instead of block) outgoing mail by these machines. Redirecting ports a...
Set up [CODE] -- it is included in Postfix source distribution, but may not be present in binary package.
4
3
961
2012-10-03T22:46:45.760
infrastructure
serverfault.com
977,539
exim4 configuration with SMTP: daemon abandoned
I'm trying to configure [CODE] to send emails on [CODE] . I have a [CODE] server [CODE] , which listens on port [CODE] . (tested with telnet) I'm able to send email with telnet connecting to this [CODE] . I need to send message with [CODE] script, which I found here w3schools php7 email send I think the problem will be...
You can't start exim again when it is already running. You must first stop exim, then you can start it again.
0
0
1,251
2019-08-01T08:26:45.213
infrastructure
serverfault.com
274,962
Creating big shared database
I wish to create DB in Firestore. My program will have multiple user and each user will have calendar and can create an event. The user can share this event with any other user (Similar to Google calendar) but each user can add comment only visible to self on that event. So my question is how to manage that. Options: C...
You should avoid duplicating rows in a database design. You have a many-to-many relationship between events and users, so you will need the "connection" table between them to do that. There will be a one event to many connection relationship and one user to many connection relationship. The connection table will have F...
0
1
47
2020-09-04T10:50:41.367
database_errors
dba.stackexchange.com
252,424
Quantifying the advantages of a modern version control system
I've worked as a team lead/developer in a large financial enterprise environment for the better part of three years. Our production release process is a nightmare because it revolves around Clearcase. We have a change management group who executes all releases and who will only allow code into production that was taken...
I've been in very similar situations (in the aerospace and automotive industries). Don't expect to progress very far in this or subsequent meetings. Both of these situations outlasted my desire to continue fighting for improvement, but here is the best tactic I've seen so far... You say "this process has worked for 20 ...
24
22
2,243
2014-08-06T04:32:39.867
api_errors
softwareengineering.stackexchange.com
336,003
Mysql 5.7 Slave replication is Slow
We are trying to debug a slave lag issue - it is currently lagging behind the master by 24 hours. Deployed on a AWS EC2 machine Database size is around 600 GB Grows at roughly 500 MB to 1 GB per day In order to debug this problem , we bumped the instance type from "c5a.xlarge" with baseline IOPS of 1600 and peak 13000 ...
One reason the replica may be falling behind is the difference between the multiple concurrent writes on the primary server and the single (by default) write thread on the replica. The setting of [CODE] should not be much lower than the number of concurrent active connections on the primary, for the replica to be able ...
1
1
49
2024-02-19T10:35:44.163
database_errors
dba.stackexchange.com
685,202
Is it possible to ssh or rsync into a system whose file-system has remounted itself read-only?
I need to login to a system that went into a read-only state. I can ping it just fine but I can't ssh in anymore. Is there some special command line flag/parameter I can pass ssh that lets me login into a system that has gone into read-only mode? Forgot to add the exact connection error: OpenSSH_5.3p1, OpenSSL 1.0.1e-f...
You could login by invoking a no-login shell session. For example, you can pass a command to [CODE] after successfully authenticating: [CODE] Of course, this uses [CODE] as the shell. Different shells will require appropriate parameters in order not to trigger a [CODE] / [CODE] update, as well as not trying to do thing...
4
1
1,434
2015-04-24T03:03:03.157
infrastructure
serverfault.com
458,429
Dell PowerEdge 2950 getting PCIe Degraded Link Width Error : Internal Storage Slot
I have a Dell PowerEdge 2950 getting a "PCIe Degraded Link Width Error : Internal Storage Slot" its out of warranty so I can't harass Dell about it, thought i'd see if anyone here has experienced this. I have already removed and reseated the backplane, riser card, RAID controller, and the RAM on the Controller. Even re...
Your RAID controller card (probably a PERC 5/i) is in a multi-lane PCIe slot (probably x8), but it is operating with fewer lanes than optimal (probably either x4 or x1). It may still work fine, but if it does work, its maximum throughput for sequential read/write operations will be slower than normal. Troubleshooting s...
3
4
12,419
2012-12-15T23:16:00.280
infrastructure
serverfault.com
328,996
Is it possible to synchronize the states of TCP proxies in real time (for real-high-availability of SLB)?
Consider that there are two server Load Balancers working in TCP proxy mode (e.g., for L7 Load Balancing). Is it possible to synchronize their states in real time so that they can be a backup for each other? In case that one is down, the other still has all necessary states to uninterruptedly support all existing TCP c...
You can use the stick-table replication that we added to HAproxy for use in the Loadbalacer.org appliance. Here is an example config: (the important bit is the peers section) [CODE] You will also need to change the way that you start HAProxy: Check out the detailed documentation on peers: http://haproxy.1wt.eu/download...
4
4
7,697
2011-11-08T18:24:33.340
database_errors
serverfault.com
1,109,674
what is best config for php-fpm and nginx with this server?
I have a server with following specs and was wondering what's the best config I can set for nginx and php-fpm? RAM: 96GB CPU: 48 Cores SSD: 200GB OS: Drupal Daily users: 52k to 55K PHP: 7.3 Mysql: 8.0 I have the following nginx config: [CODE] and use the defailt php-fpm settings but I sure do need to change it since I'...
Improvements should be looked in following components in this order: Drupal optimization / caching options, for example utilizing APCu for data caching MySQL database optimization / settings PHP optimization (Opcode cache) There isn't much point optimizing nginx, since majority of request processing happens in PHP / My...
2
0
865
2022-09-01T09:05:12.757
database_errors
serverfault.com
106,380
What web server code should i consider for file hosting?
What web server code should I consider using for file hosting? (http deamon, i dont think i can choose FS. I may be able to choose an randomly offer linux distro the host offers) The web server will only host files, with no need for cookies, reading a database, etc. The requirements are; Must be able to rewrite urls. E...
Do you mean physical server or Operating System plus software stack? If the former then pretty much anything you can buy right now will do, you'd have to go out of your way to buy something that couldn't do this but of course what matters isn't functionality but resilience and load-capability. If the latter then the mo...
1
0
158
2010-01-26T13:28:46.540
infrastructure
serverfault.com
791,818
Unknown ssh connections found in lsof -i has my server been compromised?
I have a Digital Ocean droplet running Ubuntu 14.04. I use it for running quick node.js tests on a publicly available server. I just logged in via SSH and did [CODE] to see what ports I was using. At the bottom of the list I noticed: [CODE] I didn't expect these ssh connections (it should only be me!) so I looked up th...
No, this isn't evidence of a compromise. Any server on the Internet can expect regular attempts to brute SSH and other types of logins. These types of attacks are automated, and not targeted. Usually the goal of the attack is to install a bot that can be used to send spam or initiate more attacks. The attacks are usual...
3
3
2,437
2016-07-25T14:54:20.117
infrastructure
serverfault.com
312,025
Throwing an exception from within a constructor of an exception
As I was TDD-ing some code, it occurred to me that one of my typed exceptions could potentially throw a [CODE] while creating its error message. Here's the constructor for the typed exception in question: [CODE] If [CODE] is null, then the constructor of [CODE] will throw a [CODE] . My first reaction was to think "Well...
IMHO, it is not OK . When you throw a [CODE] , the most important aspect is that this error happened. Secondary errors or usage bugs might be of interest of course, but they are secondary and masking the original one is a really bad idea I think. Of course, one cannot avoid all errors (esp. like the mentioned [CODE] or...
4
4
275
2016-03-07T20:10:36.697
api_errors
softwareengineering.stackexchange.com
137,033
Constraint on row value based on values in other rows
Is it possible to have a table with four columns: [CODE] and then constrain it so that if I already have one entry like [CODE] an attempt to insert another entry with the same date and user_id but a different rate would fail? i.e. [CODE] would fail, but [CODE] or [CODE] or [CODE] would be fine? To be clear, the date an...
As @NeilMcGuigan suggested, an Exclusion Constraint is the key here. The part I was unfamiliar with was the ability to use the <> operator. As available post Postgres 9.0: [CODE] Two helpful links are: http://www.tutorialspoint.com/postgresql/postgresql_constraints.htm -- a short tutorial on constraints in Postgres, wi...
5
4
2,628
2016-04-29T20:34:07.227
database_errors
dba.stackexchange.com
299,704
What is the preferred way to host the Active Directory service, given that we are a Linux shop?
We would like to employ Active Directory to handle duties including DNS, LDAP, domain-controller stuff, etc. The obvious way to do this would be to install Windows and run AD from there. However, we are almost exclusively a Linux shop, and are contemplating running Windows on a VM hosted on Linux. Does this sound like ...
I fear this might be a little silly. I don't think that VirtualBox has anywhere near the performance of VMware, not to mention features (which, granted, you might not need.) But it's silly anyway for an entirely different reason. Virtualized Windows is still bloody Windows. Just because you're hosting it within Virtual...
0
2
119
2011-08-10T16:11:52.667
infrastructure
serverfault.com
82,239
Command Line tool for Linux to test Windows Radius
Anyone know a tool that works to test authentication against a Windows Radius Server? I have tried [CODE] with: [CODE] But I get: [CODE] On the server in the log there is: [CODE] I'm new to Radius, so its possible I haven't configured something right. All I did was install the service, and added my ip as a RADIUS Clien...
Got it working, I removed the policies that were there. Then added one for a group I am in, and also had to add PAP authentication. More information on why I was denied was available in the Event Viewer.
5
2
22,333
2009-11-06T15:48:11.063
api_errors
serverfault.com
23,803
Using random forest to estimate a numeric using ranges?
I have a problem where I'm trying to estimate a numeric number given a set of features. The number ranges from 160 to 240. Could I label the data using ranges i.e. ( 160-165, 166-170, 171-175, etc, etc ) and then use a random forest to classify? What would be the pros and cons of that vs using a linear regression? It s...
A simple solution to this problem would be to first use some algorithm to perform regression to predict the dependent variable (since the dependent variable is quantitative) and then group these predictions into buckets of the desired width using a loop to iterate over the predicted values. Example: The vector of predi...
-1
0
724
2017-10-15T00:35:17.697
data_quality
datascience.stackexchange.com
977,965
API Gateway and VPC access lists
My understanding is that controlling IP address access to AWS api-gateway is via Resource policies . This does not sound ideal as it would involve deploying the API each time new access was required (change control issues). Can this access not be decoupled from the API element and added to the VPC access list policy? I...
To answer your direct question, No, you can not control access to API Gateway via NACL's There are five ways to control access to API Gateway. If it is a private api you can create an Endpoint Policy [4]. If it is public then you use can use 2,5 or 6 below or setup AWS WAF and define the IP addresses there. Resource po...
0
1
225
2019-08-05T07:31:29.567
api_errors
serverfault.com
59,141
Cannot stop MySQL 5.5 replication threads
We have a master-master replication setup using MySQL 5.5. On one of the servers I am trying to stop the slave thread, but without success. To ensure that the replication does not connect to a real server, I set [CODE] to a nonexistent address. I have run the [CODE] command multiple times, but I am still seeing [CODE] ...
To halt replication from starting up on a restart of mysqld you should add this to [CODE] [CODE] Don't worry about the SQL Thread. It reads from the local relay logs. Once all SQL statements and changes are read from the relay logs and processed, the SQL threadwill just sit there. You can prove that by running [CODE] a...
0
1
2,385
2014-02-18T17:53:18.170
database_errors
dba.stackexchange.com
259,171
ASA Anywhere v9 - MS SQL 2005 : Conversion Tools
im hoping for some advice and hopefully information regarding the conversion of an ASA Anywhere v9 Database to MS SQL 2005 Standard Edition. Basically our v9 ASA database is no longer supported by Sybase, due to the costs involved upgrading it to a supported version we have opted to move the entire system over to MS SQ...
The Microsoft Sybase migration utility should do the trick nicely for you. I'm currently migrating a database (much larger than yours) and that's what I'm using for the most part. Because of the size of the database that I'm moving it took 5 days for the initial data load. A database that size, with a decent speed netw...
0
0
421
2011-04-13T10:59:50.960
database_errors
serverfault.com
470,925
Is there a a way to import DNS zones from a slave to the former master?
The former master dns server crashed. I'm trying to use [CODE] to get zone data from the slaves servers, which I don't control ( peer1.net ), and I get transfer failed messages [CODE] Slaves aren't capable to transfers zones? Is there a way to build bind's zone files? about the backup the backup disk somehow trashed an...
Of course you realize, that the slave in a bind implementation generates a copy (without your comments) of the zone files. You could simply copy these zone copy files into the master and use them while you are retrieving the original zone files on the masters from backups.
2
1
3,159
2013-01-21T01:22:50.363
hadoop_errors
serverfault.com
586,591
Relationship between KVM Virtualization Host and Guest resource utilization
I have a KVM Virtualization host with 8 cores and 32GB of RAM. The machine is used to host VMs used in evaluating software, configurations, etc. Typically there are 2-4 VMs running simultaneously. The host machine is running Ubuntu Server 12.04 LTS. It is a bare bones installation with only KVM installed. Typically gue...
KVM starts and runs a process for every virtual cpu you assign to a guest. Dual core VM means two host side threads. The guest schedules a vcpu, the commands are passed to the host and get executed in the appropriate thread. Java is generally known to be resource hungry. 80% isn't bad because that's just one host core....
1
1
953
2014-04-04T01:06:59.940
infrastructure
serverfault.com
155,727
SQL command to clean job queue in pgAdmin 4
I have a Postgres 9.6 installation on a developer pc and a restore seems to have failed. Even after reinstalling (remove Postgres and PgAdmin completely, incl. database and installed new version) the boxes are popping up (even though these tables do not even exist anymore). How to remove these scheduled jobs? Is there ...
The file C:\Users...\AppData\Roaming\pgAdmin\pgadmin4.db is an sqlite-database. Open it (e.g. with https://sqlitebrowser.org/ ) and delete all rows in the process table. Then restart pgAdmin - the boxes should be gone.
1
4
9,261
2016-11-18T18:42:52.867
database_errors
dba.stackexchange.com
178,559
The MySQL service is in the status "starting" on windows
I have several months working to "MySQL-5-1-47" on windows 2003. When I restarted, the service "MySQL" stay in this state "starting". The only way to raise the service was running the program directly: [CODE] This is the MySQL error log [CODE] The last lines are after loading the program from the shell Thank.
Check out http://bugs.mysql.com/bug.php?id=49637 . It describes the same symptoms that you are having. Ensure that your variables (such as tempdir) are defined correctly.
3
1
22,551
2010-09-06T19:45:05.477
database_errors
serverfault.com
854,904
Detect faulty physical links with ping
I have a question regarding detecting a physical link problem with ping. If we have a fiber or cable which has a problem and generate some CRC errors on the frame (visible with switch or router interface statistics), it's possible all ping tests would succeed, because of the default small ICMP packet size and statistic...
[CODE] is a fast diagnostic method, useful to identify macroscopic network problems. For example, if one thousand intra-LAN pings show a 2% packet loss, than you have a significant problem. Your observation about ping size is valid: bigger pings result in more network load/stress. Rather issuing bigger than MTU pings, ...
1
2
308
2017-06-09T16:30:54.480
api_errors
serverfault.com
527,972
DHCP/static IP nomenclature
I've just inherited systems administration for a small network, on which we have exclusive access to the first 128 IPs on a private virtual subnet. We have a DHCP server which binds IP addresses to specific MAC addresses, as defined in the [CODE] file on the server (CentOS 6.2), as follows: [CODE] However, in that file...
When a fixed IP is handed out by a DHCP server based on the client's MAC address, that is called a [CODE] and it is not a static IP address. An address that it hardcoded into an interface's config file with the static option is a static address. It is independent of your DHCP server. The comment is likely there so that...
2
3
371
2013-08-01T13:40:16.053
infrastructure
serverfault.com
417,390
Cannot setup MySQL SSL: unable to read certificate
I want to enable MySQL SSL. I have all the certificates and keys in [CODE] . They are also (successfully) used by Apache2. I don't have SELinux or AppArmor running. I configured [CODE] as follows [CODE] I have set permissions so that users in the [CODE] group can read the files, and added all required daemons (ie. [COD...
The problem lies in file ownership. I have seen the same with [CODE] and have been able to resolve for that specific application. Since the SSL certificates directory is owned by group [CODE] and since [CODE] runs as [CODE] group, Linux won't allow reading the private key. With dkim I successfully forced the program to...
2
3
11,868
2012-08-14T14:42:35.437
database_errors
serverfault.com
817,277
CTRL+C on 200k files aws s3 sync
I'm syncing a directory containing 200k files (140GB) to a bucket using the following command [CODE] I took along time. The network was not so fast. And it barely upload 5GB files. Ouput Window If I CTRL+C on the console, what is the consequences? Will it continue the progress when I re-run the program?
Best guess is it will stop, and there may be a partially uploaded file, but that should get removed. I wouldn't expect any repercussion or problems. Try parallel uploads if latency is your issue.
1
1
296
2016-11-27T02:22:50.517
infrastructure
serverfault.com
1,070,083
Users unable to create files/directories on NFSv3 mount, but can modify
I've got two RHEL 6 servers, one is an NFS server (we'll call it [CODE] , say its IP is [CODE] ), and the other is a generic client for all intents and purposes (we'll call it [CODE] , say its IP is [CODE] ). Both [CODE] and [CODE] are connected to the same centralised authentication system, so UIDs/GIDs are the same f...
Deleting a file requires write privileges on the directory. You have correctly set [CODE] in the mount options, but something seems to be wrong on the NFS side (since you can delete files by logging in the server). Some things I would do: Check the default umask. Check permissions on the files using [CODE] and [CODE] ....
4
1
3,145
2021-07-20T02:47:49.343
api_errors
serverfault.com