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
208,712
MySQL database cannot accept SSL connections (Certs are UTD)
Not sure if this is the right place for this kind of question, but I have a MySQL Database running on an Azure VM. Everything was working great, until last week it seemingly randomly stopped allowing SSL connections. From everything I've seen looking through the certificates on the VM and the ones assigned to the VM th...
The issue was not with the database, but with the connector. As of v8.0.8 of the MySQL connector, they made it default to use SSL. If you want to not use SSL you just have to add "SslMode=none" to the end of your connection string.
0
0
60
2018-06-04T15:29:53.053
api_errors
dba.stackexchange.com
345,828
Unable to reinstall Nagios
I installed nagios messed up the configuration and uninstalled it. Now I am trying to reinstall but I get errors and cant install. [CODE]
Remove /etc/nagios3 directory: [CODE] And then you can install it again. Only notice: if you will remove package including it's config files, you have use a [CODE] option for apt: [CODE]
1
4
4,695
2012-01-02T07:11:00.103
infrastructure
serverfault.com
152,123
PowerShell and SQL Server export XML
I have a stored procedure that ends with FOR XML EXPLICIT and I need to put the xml file in a folder. I've set up the following PowerShell, and run the script providing the two parameters. The name of the script is xml.ps1 [CODE] I see the xml output in the PowerShell screen, but no text.xml file is output.
I turned your PS into a function, just changing the calls, ran it through the PS ISE, and it worked just fine for me in testing, outputting the data to the location. I would ensure that you have the ability to write to the root of the C: drive. Typically this can require admin permissions. It's possible you are swallow...
2
1
5,391
2016-10-12T18:32:28.507
database_errors
dba.stackexchange.com
680,650
Nginx fastcgi_cache hide Set-Cookie when serving from cache
I'm trying to use nginx fastcgi_cache to serve some pages from my site, it worked fine but I found that sessions were being duplicated to all the users because Set-Cookie was cached in the response. I've tried several solutions, but I don't want to disable cookies in those pages, only to ignore them when serving from c...
Try to use [CODE] : [CODE] This will hide all cookies when the request hits cache. official docs
3
1
7,866
2015-04-06T08:51:53.253
data_quality
serverfault.com
843,972
Ansible installs the Windows patch successfully but yet exits with fail code
[CODE] Playbook below. [CODE]
Looks like it's not an ansible problem, but wusa one. Judging by exit code 5, and this MS doc Installing an update using WUSA or the WUA APIs on a remote machine is not supported. And ansible uses PowerShell remoting to manage Windows hosts. See also: https://superuser.com/questions/894826/invoke-command-using-wusa-exe...
0
0
1,050
2017-04-11T18:55:32.037
pipeline_ops
serverfault.com
1,822
Selenium 2.0 Webdriver file structure for automation testing
My team uses Selenium 2.0/webdriver to test our enterprise web app. We've been learning and playing with webdriver commands for a while. Each team member has their own style to keep their script files. Now we are trying to settle the file/folder structure that suitable for everyone. We want to keep our structure clean ...
There is nothing inherently clean or good about a directory structure. Rather, the virtue of a directory structure is in relationship to your needs. You have a directory structure now. Have you or any of your teammates noticed any problems with it? If not, it is a good directory structure for now. Later, circumstances ...
6
1
3,161
2011-09-18T15:39:24.163
data_quality
sqa.stackexchange.com
255,197
Configuring TMG to allow a connection through the firewall
Here's the basic outline of the problem: I'm trying to ping from 192.168.0.2 to 192.168.10.2, but the ping dies on reaching 192.168.10.1. Obviously TMG is blocking it with the firewall. :) Assuming this is a fresh install, what do I need to do in order to let the ping through? I've tried creating a new Firewall rule to...
Sanity check: Can you see it blocking it in the Logging interface, using log time: Live? Create a new Firewall Policy rule that allows Ping (yes, it's called the Ping protocol, not ICMP Echo or anything posh like that) from the 0. subnet through to the 10. subnet. If they're defined as separate networks, a "Ping" rule ...
1
1
9,945
2011-04-03T21:45:29.277
infrastructure
serverfault.com
675,335
pfSense/strongSwan "deleting half open IKE_SA after timeout" - IPSec connection Android 4.4 to pfSense 2.2.1 fails
pfSense in version 2.2 switched from Racoon to strongSwan . Since that change, users can no longer connect to the VPN from Android clients (Type IPSec Xauth PSK ). The current configuration on Android is as follows: |_. Name | _[irrelevant]_ | |_. Type | IPSec Auth PSK | |_. Server address | $THE_PFSENSE_IP | |_. IPSec...
I've been having this exact same issue. As per this [ IKEv1 can't connect from Android's default vpn client ], there is a bug in the current Android VPN IKEv1 client that happens if aggressive mode is selected and a "IPsec identifier" is used to configure the Android client. The solution is to clear the "IPsec identifi...
0
1
14,240
2015-03-13T17:12:39.607
api_errors
serverfault.com
221,126
How is a committer expected to behave?
In open source projects there is typically a set of devs that have permissions to commit code - the committers -, and others that "pull request" or send patches, the "general public". I find a annoying when the committer signs the commit with its own name, and writes in the commit message a "Thanks to ...". the committ...
Ad 1. That's the reason git has separate author and committer entries in the commit metadata. So there it's obvious they should keep the contributor in "author" and themselves as "committer". Git and Linux projects also have this 'Signed-Off-By:' tag. It is simply used as part of the commit itself – so we are back to "...
3
5
245
2013-12-12T07:26:52.153
data_quality
softwareengineering.stackexchange.com
619,794
Apache SSL Port Redirection (8443 to 443)
I've got a Tomcat server (JIRA) working behind an Apache reverse proxy server (took a while but I got there). I'm upgrading my old server and adding Apache to give me some extra functionality and security. The old server was accessed on [CODE] I want to be able to get Apache to forward anyone who visits the old address...
You still need to be using SSL on port 8443 in order to to read the request and make a response.
2
2
43,917
2014-08-12T09:38:34.233
infrastructure
serverfault.com
126,320
How to normalize the features without the knowledge of the min and max values in online learning?
I am developing an online learning platform where input features are gathered from various sensors. However, these features may have vastly different ranges. For example, displacement values may be measured in millimeters while voltage values are measured in volts. To help facilitate the training of the neural network,...
Interesting challenge. You have multiple ways to deal with it: Pre-define min-max values Instead of using data to estimate them, you could provide those as constants. This would require knowledge of the data, but that would work. Running/Adaptive min-max values You can estimate the min-max values over the last $N$ time...
1
2
47
2024-01-08T12:48:03.690
airflow_errors
datascience.stackexchange.com
44,911
Perfmon not showing recently added databases
Problem: I have a production server ( 64-bit Windows server 2003 R2 ), when i try to add Sql:Databases counter in the perfmon, it does not show me the recently added databases to select from. Addition Info: Now i had the same problem on another server which is my standby server. In this case i re-build the perfmon coun...
Are you sure you have the latest service packs, etc? I just tried this on one of our servers (Windows 2003 R2, x32, SQL Server Express 2005 latest) and it worked fine. Otherwise, try (from the command line): [CODE]
0
1
301
2009-07-23T23:43:10.527
infrastructure
serverfault.com
233,969
Server Principal SID showing as NULL and name as empty string
In my SQL Server 2016 server,i set up a user logins Audit for Login successful and Login Failed action. Here is the script. [CODE] In the Audit Logs, I can see lots of failures with Server Principal SID as NULL and name as empty string.Earlier when i set up the login i didn't give any filters and that time the Audit lo...
I created the exact same audit and couldn't reproduce the problem you describe. When I log in with a login that doesn't actually exist: And for an intentionally wrong password: I even tried a name with a huge number of leading spaces and tabs, just to see if the name would get truncated and look blank, but leading whit...
1
2
540
2019-04-04T16:03:51.750
database_errors
dba.stackexchange.com
926,034
Do I need a dovecot.socket?
My email server with dovecot works fine. I turned off IPv6 and encountered the following error in syslog: [CODE] I commented all IPv6 settings in [CODE] out, performed a [CODE] and now the file looks like this: [CODE] The current state of [CODE] is [CODE] : [CODE] But, when I try to start the service, I get the followi...
Dovecot probably already listens in the sockets, this is a common configuration for dovecot. Try this command to verify. [CODE] If dovecot already listens on these ports, then systemd can't also listen on these ports. If you have dovecot listening, you don't need [CODE] .
1
2
3,024
2018-08-12T13:03:51.260
infrastructure
serverfault.com
152,795
High write latancy in temp db
I'm in a sort of "accidental dba" role at the moment. I'm attempted to monitor and improve a db. I've been using a script from a Udemy course (I could post but it might be a bit long). I've been running it for 5 mins every hour to capture samples of disk latency, I'm unsure if that's a good way to do it. But I notice q...
Rather than picking random metrics and trying to tune them, what you want to do is step back and ask SQL Server, "What have you been waiting on?" My favorite way to do that is with the open source tool sp_Blitz (because, uh, I wrote it.) You can download it from FirstResponderKit.org , run the sp_Blitz.sql script to in...
2
5
2,528
2016-10-19T20:03:55.627
api_errors
dba.stackexchange.com
7,448
Using XCACLS to set permissions with long filenames
We need to set permissions on users' directories on a Windows 2000 Server. This happens regularly enough and they must also be set in the order below or the backups crap out. This is the basic script: [CODE] My problem is that this script doesn't work on all files in some directories. The files it seems to fail on are ...
There is a limit of around 260 characters on the length of filenames, however there is a massively cunning and sneaky way to get round this :-) The limit is in the Win32 subsystem not in the kernel. If you prefix a file name with \?\ this causes the Win32 subsystem to pass the name directly to the kernel without any pr...
1
4
4,160
2009-05-12T15:54:09.647
database_errors
serverfault.com
57,393
multiplying two array in python3.7
I am trying to multiply two array in python 3.7 using numpy by using the following syntax: [CODE] but this error arises [CODE]
You are simply defining your array so that it is made of python [CODE] s. That is a different data structure which is not able to be multiplied, unlike an array. Just change your code to this: [CODE] The only difference is using square brackets instead of curly ones. These are python [CODE] objects (or standard arrays)...
1
2
188
2019-08-11T18:09:20.690
data_quality
datascience.stackexchange.com
283,450
How to route public static IP to a virtual machine on a vmware ESXi host?
I have 5 static IPs from my ISP (Comcast) and I have a physical machine with VMware ESXi 4.0 on it that is hosting multiple virtual machines. Right now I am just using the default vmware virtual network (vswitch0) with DHCP from the Comcast IP Gateway Router and everything is working fine. Each virtual machine can acce...
Since your VMs can talk to the inside of your Comcast router over vSwitch0, the physical nic used by vSwitch0 is also connected to the inside. I don't have that hardware at my disposal, and the Internet provides conflicting information, but I suspect that the router actually figures out which traffic to NAT, and which ...
3
3
20,527
2011-06-23T14:44:47.133
infrastructure
serverfault.com
207,791
Host multiple sites in folders on one apache2 server
I'm trying to setup apache2 to host multiple sites, but using the same root-URL and differing in subfolder only, i.e. hxxp://example.com/site1/ hxxp://example.com/site2/ It should be easy but I have, after several hours of googling, still not found the right way how to do this. I can find site1 by surfing to http://exa...
The "problem" is that you use VirtualHosts for something it wasn't really designed for. http://httpd.apache.org/docs/2.2/en/vhosts/ A "site" is defined by a own Domain OR IP. So if you make a VirtualHost config for a subfolder (like you) there is a conflict (dunno what your decision factor is? I mean ServerName/ServerA...
0
0
461
2010-12-01T11:14:20.800
infrastructure
serverfault.com
544,947
How to modify iptables so a port is accessible on the server
when I do [CODE] from my linux box I can see that it is returning some data However, when I run curl on this machine from another machine on the same network e.g. [CODE] I get an error [CODE] Even though I can run other things like [CODE] or [CODE] Is there something I can do with iptables to make this work or somethin...
Open port 443 which is the default for https [CODE] Note -I is important. If that works use [CODE] to update [CODE] .
0
1
2,617
2013-10-09T18:57:56.143
infrastructure
serverfault.com
603,881
WebSphere - Jython command to view an Application's memory usage
Using IBM WebSphere Application Server version 8.0.0.1, is there a way to view the memory usage of a running application on the server? Something with Jython or Jacl? I can view the memory usage of a Application Server, but not the individual applications themselves.
All applications share the JVM heap. There is no clear delineation of which application is using which. You could force a heap dump and use some of the IBM diagnostic tooling to look at the output and try to manually determine which objects belong to which application, but even that will be confused by shared objects.
1
1
457
2014-06-09T16:12:42.737
infrastructure
serverfault.com
127,819
Routing to a Terminal Services Cluster
I am trying to connect to a Load Balanced Windows 2008 R2 cluster using Remote Desktop Services. I have no trouble connecting to the the Servers' IP addresses (.253.16 and .253.17) or the Cluster address (.253.20) from inside the subnet (.253). The trouble is when I try to connect from the other subnet(.251). I can rem...
The error message you're describing shows the ASA's stateful packet inspection at play. The "no connection" means just that: the ASA doesn't have an entry in its connection table for a TCP connection between 192.168.251.2:4283 and 192.168.253.16:3389. I would set up a capture as follows: asa(config)# access-list RDPcap...
2
1
747
2010-03-30T18:50:16.327
infrastructure
serverfault.com
220,416
"Enterprise" version of GPL'd code?
I know that there are a number of discussions about the GPL on this site but I just ran in to an interesting case of apparent misuse that I (surprisingly) haven’t seen discussed anywhere. The CFEngine configuration management program is apparently distributed under the GPL (it even appears to be an FSF project ) but th...
Dual licensed models work under the theory that, if you want to write a closed-source application, you can earn that right by paying money for a commercial version. Otherwise, you can get the software for free, so long as you abide by the terms of the GPL (which is, at least in theory, designed to promote open-source s...
6
13
391
2013-12-05T21:58:09.757
api_errors
softwareengineering.stackexchange.com
702,879
Application layer firewall for WebSockets?
My team has built an intranet portal in Amazon AWS for a client, and on it, we have used WebSockets to do things like notifications and other minor stuff. We mostly send events from the server, but we also use it so the client can quickly notify the server of user presence. One of the client's requirements was that we ...
If you need a WAF with Websocket support, look into Wallarm It installs directly into NGINX as a software module and is able to parse Websocket starting with version 2.0. More info here
4
1
2,327
2015-07-01T15:57:54.513
api_errors
serverfault.com
785,832
mount(2): Stale file handle NFS after update server to Debian 8
I've several server that mounting NFS on remote backups server Everything worked until I did an update on the NFS server to Debian Jessie. Now some machines work and others not work. Try several docs over internet about problem and i do not get a solution [CODE] Server [CODE] Two clients has a same Centos 7 version. Tr...
Problem it's a not trivial question. I update my systems to XFS and put long disk (20TB) Find this question Big XFS filesystem NFS export mount fails with stale nfs handle and read, XFS & Inode64 for I understand concept. After this, remove disk, and reformat with older ext4 system ;-)
3
0
2,132
2016-06-23T13:36:56.267
database_errors
serverfault.com
91,932
Idea for manking tables for a pharmacy
OK I'm not into Database management, but I got this problem, also not sure if I'm posting it at the right place or not. So, my Dad works in a pharmacy and all the work there is on paper and is done manually. He asked me if I can develop an app which He can use. I'm stuck at the part where I gotto decide how to design t...
Normalization is hard :/ Guys I had a go, but I doubt it's correct - please be gentle. For example we can SUM to get current stock, but the joins seem kind of unnecessary instead of using a figure stored somewhere. I would love to see the thought process of someone experienced designing this. Anyway: [CODE]
1
1
3,220
2015-02-13T22:29:11.133
api_errors
dba.stackexchange.com
685,134
IDN domain names on IMAP / POP3
I'm setting up a mailserver solution (Postfix, Dovecot) and I'm wondering about IDN (Internationalized domain name) on the IMAP / POP3 side. Should I use the ASCII-encoded (PUNY / ACE) format for Dovecot user logins or should users rather login with the "user-friendy" Unicode format? I'm almost sure the ASCII-encoded d...
The right answer is to use the ACE format (xn--XXXXX.tld). In theory, Dovecot does not have a problem working with more or less any characters in domain name (but it has to be enabled in its configuration via [CODE] ). On the other hand, MUAs doesn't seem to support this, they expect the ascii-encoded string (though i ...
3
0
575
2015-04-23T20:03:39.023
infrastructure
serverfault.com
171,107
HyperV/VMM folder- and VM-level permissions?
With VMWare and vCenter, I'm used to creating folders in a filesystem manner to delegate permissions to users within the organization. For example, I might create a folder named QA, place all the QA VM's within that folder, and allow the QA Active Directory group to only have console access to this VM (unable to change...
In Hyper-V you normally keep all the VHD files together in a central folder that normal users have no access to. It's a different way of securing the system; complete separation of hosts from users. Because of that users who will be creating and modifying VMs have to have some kind of administrative access to the Hosts...
1
1
3,280
2010-08-16T17:47:03.410
infrastructure
serverfault.com
858,953
Using networks in Docker Compose file
I'm trying to understand how the containers talk to each other with Docker Compose. I'm working in a VM with no domain name, so I use IP address:port. I want a simple Wordpress app using the standard images : [CODE] , [CODE] , [CODE] . Next to that, I want a phpMyAdmin container with its own [CODE] , linking to the Mar...
Actually it was the quote : I set the environment variable for the db with quotes, that are escaped by phpmyadmin, so instead of connecting to host [CODE] it tries to connect to [CODE] : [CODE] It should be : [CODE] That was a pretty lame problem, but the whole thing about networks in Compose isn't too clear, and I hop...
1
0
2,921
2017-07-02T10:30:36.557
pipeline_ops
serverfault.com
1,130,899
IIS returning empty body with 200 response for certain URLs
I have a really strange issue on IIS, where any URLs containing certain keywords (e.g., card, bet, loan, jewelry) return a blank page. It's a 200 response with IIS headers in-tact, but the response body is empty. This applies to all sites on the server, and I've tried setting up a small test site with two files: index....
The issue turned out to be a piece of malware which had installed itself as an IIS module named HTTPCacheLog. I removed the module (and deleted the DLL in the inetsrv folder) and everything is working again now.
2
2
1,060
2023-05-11T09:05:14.587
infrastructure
serverfault.com
265,508
How to quickly cascade rare delete to a large table?
I have a schema that looks like this: [CODE] This schema can't be changed. We need to support the rare operation of deleting from [CODE] or [CODE] with the delete cascading to the [CODE] table. These deletes rarely happen compared to inserting/selecting data from the [CODE] table (but at least ~20-30 times a day). A ma...
The GIN index certainly can be used for the cascading delete (you will need to [CODE] before creating the index). How much space it will save you is hard to predict, it would depend on how much duplication there is in the values of those columns. Having 3 separate GIN indexes will also work, and is likely slightly smal...
0
1
709
2020-04-21T14:17:19.237
warehouse_errors
dba.stackexchange.com
35,815
Test automation role: challenges beyond automated tests and frameworks?
Before asking the actual question, let me describe the current situation. The IT department consists of a few Scrum-like teams, with one or two software testers per team . Furthermore there are two overarching roles not bound to a team: the QA team lead , and a test automation expert . The test automation expert has ac...
What's the overall execution time? How does the feedback loop look like? Talk On: Accelerate Automation Tests From 3 Hours to 3 Minutes Can be detailed results provided in a few minutes( or even better in seconds without compromising quality ) on the overall health of the build to the relevant stakeholders with relevan...
6
4
388
2018-09-27T07:58:07.263
database_errors
sqa.stackexchange.com
267,840
WRT320N wireless router with lots of ipods connected
I want to use a WRT320N with DD-WRT as an (unprotected) access point for 80-120 iPods, iPhones, and other phones with wireless capability, as well as one wired desktop. Will this work at all (will I be able to connect this amount of devices at all)? The WRT320N will be connected to a switch and probably reach around 2M...
You may run short of channel space/responsiveness across the wireless devices. The typical rule of thumb is somewhere around 30 devices per channel, but even that was determined a while ago - before a lot of the new streaming content across the Internet (e.g. Youtube, iTunes, etc.). Even with devices capable of running...
1
0
145
2011-05-09T18:25:42.797
infrastructure
serverfault.com
169,342
How to run SQL Profiler to monitor 1 specific stored procedure?
I have an issue where a stored procedure will run properly when executed from SQL Management Studio, but when the stored procedure is called from an application, it doesn't return the results to the application. This application regularly utilizes stored procedures as part of it's operation, so why this specific SP isn...
Following code will do trace one stored procedure. Check for folder location, duration and like statement for the name of your stored procedure. I also excluded any replication related stored procedure in case you have replication. Let me know if you run into any issues. [CODE]
1
0
2,059
2017-04-06T17:02:16.103
database_errors
dba.stackexchange.com
1,143,732
Windows NTFS filesystem - user cannot access file using Administrators group permissions
There is a shared folder on the computer running Windows 2012R2 with a NTFS filesystem. There is a local User X who is part of the local Group Administrators on the computer. The Shared folder is configured like this for Sharing permissions and local Security permissions: Sharing -> Permissions -> Full control for User...
Check to what the permissions apply: Open properties on the folder, switch to the security tab and klick advanced. Select your admin group and klick edit. Check what is selected on [CODE] Also check the inheritance (marked green in the picture). If it is disabled, you might want to enable it. This will rewrite all subf...
0
0
69
2023-09-14T17:55:27.723
infrastructure
serverfault.com
327,941
How does memory assignment to a NVARCHAR(max) variable work?
I have inherited a system where stored procedures have their variables declared as [CODE] : [CODE] How does memory assignment to a [CODE] variable and [CODE] work? Does SQL assign 2GB of SQL memory for the variable, and 2GB for [CODE] command each time this stored procedure is invoked?
Does SQL assign 2GB of SQL memory for the variable No, as with other languages with variable length strings that can be huge it will allocate as much as it needs (plus a little for overheads) and if you add more to the string later in your procedure more memory is allocated (this allocation may fail as you hit a memory...
-1
2
98
2023-06-06T07:53:31.117
database_errors
dba.stackexchange.com
188,292
Search on concatenate columns
I have this : [CODE] I get the list like this [CODE] But I would like to be able to search on the column [CODE] . Is it possible without a subquerie or CTE (like below)? [CODE] I tried with the first column !? [CODE] I would like to be able to do something like this. [CODE] For the moment I do: [CODE] Fiddle if needed ...
The usual way to do this, is to use a derived table: [CODE] That is extremely basic and generic SQL and any obfuscation layer (aka "ORM") should be able to deal with that. Other options you have: 1. Use a view Create a view with the calculated function and tell your obfuscation layer to use that view. 2. Create a "virt...
2
4
2,886
2017-10-12T07:29:01.090
warehouse_errors
dba.stackexchange.com
81,305
How do I unit test queries which are based on dates from now?
I've had a hard time making unit test for most of my queries because they are tied very closely to current dates and data which is added to the database could modify the result of the unit test. For the most part I've been able to avoid problems by relying on a second version of the database filled with immutable dummy...
Why I would not change the application I do not like the answers which propose to change the application to fulfill testing needs. To me this is the most wrong way to go. The implementation should only be driven by concepts, requirements and design decisions of the application, not of any helper tools used while implem...
2
1
6,104
2014-10-28T16:06:35.287
database_errors
dba.stackexchange.com
160,596
No DAC connection could be established on the default port. Make sure DAC is enabled
I could not establish a local DAC connection using SSMS while I was logged into the Sql-Server's Operating System's Remote Desktop. First reason was SQL-Browser Service turned off. Lateron, second reason I was pointed to was this "DAC is not activated" error: "No DAC connection could be established on the default port....
From Using a Dedicated Administrator Connection : By default, the connection is only allowed from a client running on the server. Network connections are not permitted unless they are configured by using the sp_configure stored procedure with the remote admin connections option . From that latter page: SQL Server provi...
0
5
1,750
2017-01-10T17:08:38.700
database_errors
dba.stackexchange.com
177,273
Set up HTTP Proxy for Tomcat Web server
Basically, I'm trying to make SOAP calls from a Tomcat server via a corporate proxy/ firewall (which I have no direct control over), I've tried to add info to the catalina.properties file as shown: [CODE] I'm still getting timeouts in the stdout logs. Do I need to do anything else and if not is there another way to tes...
Create a setenv.sh (or setenv.bat if running windows), if you don't already have one, and add the following java options: [CODE] This should work nicely.
4
8
40,076
2010-09-02T09:43:39.827
infrastructure
serverfault.com
1,017,914
nginx use-proxy-protocol with Kubernetes cluster
I have a Kubernetes cluster with an external load balancer on a self hosted server running NGINX. I tried to activate the [CODE] in order to get the [CODE] of clients but NGINX logs are [CODE] Here is my NGINX configuration file: [CODE] Here is my [CODE] for the ingress-controller: [CODE] Everything was working fine be...
Nginx allows you to specify whether to use proxy_protocol in incoming or outgoing requests, and you're confusing the two. To use proxy_protocol in incoming connections, you have to add [CODE] to the [CODE] line like this: [CODE] To use proxy_protocol in outgoing connections, you have to use the standalone [CODE] direct...
4
5
7,687
2020-05-11T15:03:29.790
pipeline_ops
serverfault.com
221,054
Table column length is fine in MySQL 5.5 and 5.6, but upgrading to 5.7 results in too many columns
So I have a CMS that is being upgraded from MySQL 5.5 -> 5.7. One table has a 1000+ columns, but it works fine in 5.5 and 5.6. When reaching 5.7, queries involving this table result in a [CODE] error. (all tables in DB are [CODE] ). It works fine in MySQL 5.5 (the related CMS works fine). I upgrade to MySQL 5.6 and eve...
A guess... See what you get for [CODE] This may indicate that you are not really using MyISAM everywhere. In the future, MyISAM is likely to go away. So, start thinking about how to deal with InnoDB. [CODE] is perhaps always worse than a suitable [CODE] . More than a hundred columns in a single table is usually a bad s...
2
1
430
2018-10-26T04:05:12.540
database_errors
dba.stackexchange.com
271,741
Filling in Dates - Postgres/Redshift SQL
I have a dates table with a "calendar_date" field and I have been trying to utilize it for when I need to fill in missing dates when an id does not have a record for a particular day AND have the daily count = 0. I cannot seem to find the proper solution for it. Result example: [CODE] Any ideas/help would be appreciate...
In Postgres (which you explicitly tagged) you can do it like this. But I suspect you don't really use Postgres and the following is not supported by Redshift. [CODE] The query first creates a list of all IDs and dates in the desired interval. This is necessary because you also want to group by the [CODE] column. Then a...
0
0
594
2020-07-27T21:07:29.403
warehouse_errors
dba.stackexchange.com
487,840
Stop server's use as proxy
I have a vps server on which I have configured apache as a webserver. Because of unexpected high usage of bandwidth, I checked the access log of my server yesterday. There were a lot of requests of the form [CODE] The server config Part related to proxies is as follows [CODE] The bandwidth report that I have has almost...
[CODE] This directive enables forward proxying , which is why Apache is allowing the requests you see. This directive is not necessary for reverse proxying (i.e. [CODE] ) and so you should not enable this. Remove this line or change it to [CODE] .
0
2
188
2013-03-14T16:01:12.977
infrastructure
serverfault.com
345,413
ASP.NET MVC, IIS 7.5 - Losing Sessions Across Servers (Load Balanced)
We have a site running on 3 web nodes. We are using SQL Server session storage. We recently added two more only to find that users' sessions are lost when they are sent to one of those machines. We have checked the site ID as well as the machine validation key and decryption key. EDIT: I did forget to mention that the ...
Have you confirmed that the machine key is working? One way to do this is if you have forms authentication, you can have a few lines of code that attempts to read the authentication cookie. If the machine key is invalid, you will not be able to read the cookie, and User.Identity.IsAuthenticated will be false. The machi...
1
1
3,966
2011-12-30T18:49:56.590
database_errors
serverfault.com
334,722
ESXi 5.0 iSCSI Timeout increase to upgrade Equallogic Firmware
As I understand it one can upgrade the firmware on a Dell Equallogic server in about 15 seconds and it can be done whilst an ESXi host is connected and VMs are running but that the iSCSI timeout value needs to be increased to avoid errors on guest VMs. I've searched VMWare and Dell's sites but can't find a best practic...
According to the docs it should be the "Session Recovery Timeout" parameter. But keep in mind that the guest OS's would have their own timeouts - these might need a change as well.
1
0
6,461
2011-11-25T09:56:36.287
infrastructure
serverfault.com
35,662
PostgreSQL 7.4 data corruption
We're dealing with the following situation (PG version is 7.4.30): somehow, a DB has gone missing from pg_database (psql \l listing doesn't show it anymore). More, while you can still \c to it, a \d table listing only shows a fraction of the tables. A \d on the existing tables shows missing columns as well.. However, a...
First, if you haven't done the first two that vyegorov suggests do it now. If you have already vacuumed, it is not clear what sort of damage you may have already done in this case. This error should not be possible on new versions of PostgreSQL due to a number of checks, and had you upgraded some time ago, this wouldn'...
3
5
588
2013-02-28T11:09:39.503
database_errors
dba.stackexchange.com
9,942
Prevent ${PIPELINESTATUS[0]} from being evaluated in Jenkinsfile
Below is a script I am running in the deploy of a docker container. The [CODE] command is returning non-zero when the container was not correctly built/tested, hence the [CODE] . How can I prevent Jenkins from interpreting the ${PIPELINESTATUS[0]} as a variable replacement in the script? [CODE] EDIT1: To clarify - this...
There seems to be some syntax issues and also I would suggest to use [CODE] instead if using [CODE] shell. Try the below code and see if this works properly. (EDIT - Put shebang on first line to accept as answer) [CODE] In the above code, I have made changes in the way you were trying to get output of command [CODE] us...
2
3
1,351
2019-11-26T15:42:40.110
pipeline_ops
devops.stackexchange.com
593,463
SMTP Server will not send to connected VPN domain
I have a Windows 2012 web server that is connected to a company's VPN (vpn.company.com) to access network resources and needs to send emails to users of that company as well. When the web server is not connected to the VPN, emails can be sent to anyone successfully. However, as soon as I initiate the VPN connection, an...
As relay is denied, I guess it tries to connect to the SMTP server through VPN, and the SMTP server (@company.com) denies the connection because it does not come from the Internet. Try using a smarthost on the Internet for this delivery domain.
1
1
1,201
2014-05-06T17:35:35.947
infrastructure
serverfault.com
283,251
Alternative to using getters/setters in a simple class
I'm writing a minesweeper game with [CODE] . To represent each tile, I wrote small [CODE] class that contains information about the possible state of each tile (whether or not it's flagged, whether or not it has a bomb under it, and whether or not it's "hidden"). This is the interface so far: [CODE] I could have made t...
Yes, having exactly one getter/setter pair per private flag is a code smell. If you aren't providing a simple interface to hide some implementation details, you're not benefiting very much from using a class. My main concrete suggestion would be to represent the internal state in a way that makes "bad states" theoretic...
2
3
1,852
2015-05-07T19:27:57.147
api_errors
softwareengineering.stackexchange.com
129,190
Limit connection numbers with pgbouncer
So I have this pgbouncer config: [CODE] And the goal is to limit the number of connections from a specific app - when the db name is database_with_conn_limit, only 55 connections are allowed. Basically, the apps are identical, but I want one to be limited in connections and the other one grab as many as it wants. Is th...
You don't have to "specify [CODE] for my_db, too". But your config won't limit the number of connections though. You need to limit [CODE] for that like here: [CODE] Otherwise you limit the number of sessions in pool, but not the number of connections... You can also just set different limits per database+user pair inst...
6
5
1,729
2016-02-13T15:42:01.977
warehouse_errors
dba.stackexchange.com
405,756
Analyse/show user why data has been filtered out by SQL
Sorry for the bad title. Couldn't really think of a good name without an explanation. In our system (source is inside Oracle PL/SQL packages) we have quite a lot large SQL queries with a sh..load of variables, dozens of joins to multiple tables and a lot of conditions. Some of those tables and variables are even config...
You might want to pull the join logic into an inner query, and then have your "prod" and "debug" filtering applied to the same inner. E.g. starting from [CODE] You first create [CODE] Then the inital query becomes [CODE] And when you want to debug why you didn't find any rows matching [CODE] [CODE]
0
1
62
2020-02-26T08:06:16.977
warehouse_errors
softwareengineering.stackexchange.com
337,490
Mutability and objects; how to properly manage data?
Objects tend to confuse me some. In understand the concept and use, certainly, but I feel like the functional paradigm is somewhat restricting my use of them. At the moment, I'm creating a simple code for a game of cards. Each player might have a simple object, like this: [CODE] and a object for a deck: [CODE] So for d...
It is quite simple: if you want to go the "pure functional road", you need purely functional data structures , which means immutable data structures, which in OO languages means immutable objects. For representing card decks, a very efficient, immutable structure is a stack, implemented as a single linked list (and not...
5
1
560
2016-12-04T20:47:31.763
api_errors
softwareengineering.stackexchange.com
1,099,982
How to install Google Cloud Ops Agent on Ubuntu 21.10?
I'm attempting to install Google Cloud Ops Agent on Ubuntu via Docker and running into a couple issues. Firstly, running the following returns an error saying that some GPG signatures can't be verified: [CODE] Error: [CODE] To get around this, following some advice I found online I added: [CODE] Giving me the following...
You're missing a package required to import the gpg key, so you get the initial error because the import fails. Replace the packages installation line with the following: [CODE] Tip: Use [CODE] in scripts instead of [CODE] , since apt is meant to be easy to use for end users, the "real" work is done behind by apt-get. ...
0
1
1,479
2022-05-02T20:53:17.627
pipeline_ops
serverfault.com
72,350
Why is my composite index not used for this table?
I am working with a fairly complicated schema, but I've simplified it for the purposes of this question. [CODE] I'm doing a complex query that includes a few joins, and slightly more complicated logic, but an EXPLAIN on that query revealed that 80% of the time was spend doing a Seq Scan on this table. I read this artic...
As @dezso suggested, the table with test data was not big enough for the query planner bother going to the index. After I imported a larger set of data, the query uses the index as expected.
3
1
1,432
2014-07-25T04:20:45.620
database_errors
dba.stackexchange.com
308,755
Permissions on ubuntu
I just installed Ubuntu and LAMPP. I am very new to all of this so bear with me. I've installed LAMPP to /opt/lampp My /opt/lampp/htdocs folder is where http://localhost points at. For the past hour, I wasn't able to write in that directory. I finally did [CODE] and now I cant write. (rondog is me, the only actual "use...
One possibility is setting the Apache user and group to [CODE] . This way, folders and files created can always be used by you and the server. It can be done as follows: Edit (or create if it doesn't exist) [CODE] and add the following lines: [CODE] Save the file and restart the server: [CODE] Your newly added user sho...
1
3
3,146
2011-09-06T20:03:10.740
infrastructure
serverfault.com
677,206
Specify which directores to look for .htaccess file
I'd read that enabling .htaccess for all directories causes a performance overhead, because all subfolders are also scanned for .htaccess files. I'd like to only have the .htaccess file read in: /var/www/xgclan.com/public_html and /var/www/xgclan.com/public_html/forum I've configured the following in my apache2.conf (f...
Have you tried adding the Directory section withing the VirtualHost declaration? What is your error_log output when accessing the host on the browser? Do you get any error as stated in the apache docs ? Ok, so if you want apache to scan just two specific folders out of the whole virtualhost directory for .htaccess file...
1
1
209
2015-03-21T13:25:05.317
infrastructure
serverfault.com
841,850
isolcpus - binding not working
I am using isolcpus to isolate cores. I would like to bind specific threads to cores, but it is not working. The threads are moved to different cores after I bind them. Cores 13, 14, and 15 are isolated: [CODE] top -H -p [CODE] -d 1 shows this: 5017 and 5018 should have been bound to 14 and 15 and 5014 and 5016 should ...
Since I've worked with CPU isolation in the past, I created a tool to help me since I found out the hard way that it was surprisingly complex to get it right. The tool is available here: https://github.com/OpenEneaLinux/rt-tools It's the [CODE] script that you should look at and get inspired by. One caveat though: It m...
2
0
1,465
2017-03-31T17:38:25.807
infrastructure
serverfault.com
379,090
Directory permissions on Ubuntu Server 10.04 LTS
I have set up a second drive on Ubuntu Server. The directory displays correctly but Windows users cannot write or create files on the directory. I have Samba set up so Windows can access the drives. here is the last bit of my [CODE] [CODE] I want the directory to be shared with writable permissions to everyone who can ...
I can see that you allow guests to access this share. So I believe you want to allow write access as well to everyone. If this is the case force Samba to act as a specific user and group for read / write access to this share: [CODE] You should replace usergroup and user by the correct user group and user of your Linux ...
0
0
727
2012-04-13T07:26:30.380
infrastructure
serverfault.com
84,140
Will enabling row movements on list-partitioned table cause performance problems(oracle 11g r2)
Our incident management system has run for years, and the large quantity of closed incident tickets makes the table rather huge and slows down the search queries. Our database version is oracle 11g r2 enterprise edition(partition option added). The concerned two large tables are: [CODE] and [CODE] (one incident corresp...
You should be fine; the [CODE] would be a show-stopper if you were using it Temporarily, there would be "holes" in the data files, but Oracle will fill them in without any intervention. Ensure you have automatic tablespace management enabled. You can invoke that command but no need to; let Oracle take care of it The pe...
1
2
2,585
2014-12-03T01:33:47.837
database_errors
dba.stackexchange.com
479,890
I've to test old HIPPI network cards in Linux. How can I do this?
LSPCI does show the cards have been recognised by the system but I really don't know what to do to check the cards functionality. How can I setup a test network or something else to verify the cards aren't broken? It would be really helpfull if someone has an idea because we have a customer who is still interessted to ...
You could just: connect them to another network card in the same machine with some network cable, then [CODE] them both while making sure they are in the same network (use a different IP that belongs to the same network as specified by the netmask, e.g. 192.168.0.1/24 and 192.168.0.2/24). then check [CODE] and make sur...
0
2
99
2013-02-18T10:46:52.197
infrastructure
serverfault.com
144,056
Connection Reset on MySQL query
OK, I'm flummoxed.(i've asked this question over on Stack too - but I need to get it fixed so I'm asking here too - any help is GREATLY appreciated) I'm trying to execute a query on a database (locally) and I keep getting a connection reset error. I've been using the method below in a generic DAO class to build a query...
OK, for anyone else experiencing this problem - the issue is to do with Zend_Db_Statement - or rather the preg library that this component relies on. It's been flagged in the Zend issue tracker: http://framework.zend.com/issues/browse/ZF-8399 , but its not strictly a problem with the Zend lib. You may or may not experi...
1
1
4,087
2010-05-21T11:05:45.923
api_errors
serverfault.com
587,418
Apache 2.4 - 403 HTTP status code
I'm getting a 403 error message with Apache, in Debian Testing. Apache version: [CODE] Firefox, "No proxy for" configuration: [CODE] [CODE] UPDATE 1: SELinux does not seems to be installed: [CODE] UPDATE 2: [CODE]
client denied by server configuration: /home/username/Development/PHP/foo.dev.com/public_html/ This make me think about a similar issue i had : Ensure that [CODE] user has the [CODE] bit permission set for each folders on the path to [CODE] Either by making [CODE] the owner of the folders : [CODE] Or grant the [CODE] b...
2
1
2,856
2014-04-08T10:25:47.003
api_errors
serverfault.com
761,434
Problems connecting to SQL Server using ODBC
Since three days ago I have problems connecting to SQL Server on a local network using our Access based application which uses linked tables. It happened suddenly and it only happens on my PC which I use for development. All other clients on the network can connect as usually. I tried to create new DSN connections usin...
At a quick glance, looks likely to be a delay caused by DNS hostname lookup. I'd try setting the target hostname to its IP address, and retest.
0
2
5,374
2016-03-03T21:30:23.730
database_errors
serverfault.com
826,593
diagnose purple screen of death ESX 6.0
Our server keeps crashing with a purple screen of death. I have tried interpreting the crash dumps but to no avail. I have an HP Proliant DL360 G7 with ESXi 6.0 running on it and I have other identical servers with the same software with no issues, but this one just keeps crashing about once a week with the following e...
I suggest troubleshooting or following the guidance of the error message. Things you can do: You're running ESXi build #3620759 from March 2016. UPDATE YOUR ESXi INSTALLATION!! HP servers have comprehensive diagnostic messages and logging. Look at your ILO3 interface and open the HP IML log. That will tell you what is ...
-1
2
2,004
2017-01-16T17:37:53.670
infrastructure
serverfault.com
833,429
What's the best way to speed-up data retrieving from a remote MySQL database server?
Scenario Two servers: ApplicationServer1 and MySQLServer1 MySQL remote database server is connected to ApplicationServer1 through an SSH tunnel (kept alive using autossh) The problem Since I separated the database from the application, the latter slowed down a lot. SSH tunnel is used in the server stack to increase sec...
How can I speed up the connection between ApplicationServer1 and MySQLServer1? By keeping them on the same high-speed network. I know that's not what you want to hear, but it's the right solution. Application servers should not be separated from their backing servers by more than a millisecond or two at the very top en...
3
3
2,616
2017-02-18T21:05:30.767
database_errors
serverfault.com
334,956
Mailman for lists with an external mail server for mailboxes
I learned how to setup Mailman with Postfix for a domain like "@lists.domain.com But for regular mailboxes for this domain, I'd like to use the free email hosting solution of the hosting company (gandi). They also offer the SMTP service. Given that there can be only one MX record for a domain, what is the best way to c...
Subdomains are the solution. A subdomain can have an individual MX record.
0
2
482
2011-11-26T10:52:47.560
infrastructure
serverfault.com
72,049
add column without metadata lock in mysql 5.6
I am using [CODE] . I need to add new [CODE] column. [CODE] requires no [CODE] lock. In order to avoid this [CODE] introduced [CODE] . Here is the reference articles http://www.mysqlperformanceblog.com/2013/07/05/schema-changes-whats-new-in-mysql-5-6/ . Executing the following sql throws [CODE] Is there a way to [CODE]...
I have executed the very same query on 5.6.14 and got a positive result: [CODE] So I am sure that this kind of operation can be done online. You are probably experiencing some of the exceptions shown at: http://dev.mysql.com/doc/refman/5.6/en/innodb-create-index-limitations.html My bet would be on having outdated tempo...
5
4
16,717
2014-07-22T11:07:13.013
database_errors
dba.stackexchange.com
203,789
Is it technically possible to write a JS interpreter using Lisp macro readers, in the browser?
Using macros readers , it's possible to interpret JavaScript, and have it compiled just like normal Common Lisp code. Hence getting the benefits of Lisp implementations, notably their performance. Which would mean having native performance in the browser, without cheating . Would it be technically possible to build thi...
Sorry, but your assumption is wrong. Lisp is nice and all, but it isn't magic dynamic performance pixie dust. Compiling/running something that looks sort of like basic JavaScript is one thing. But it is not what is needed. Add in what is necessary to have said JavaScript have variables that autoconvert between integer,...
4
5
1,018
2013-07-05T07:29:23.470
api_errors
softwareengineering.stackexchange.com
151,240
How to use basic auth for single file in otherwise forbidden Apache directory?
I want to allow access to a single file in a directory that is otherwise forbidden. This did not work: [CODE] When I visit [CODE] I get the Forbidden message of the [CODE] directory, but not the browser login popup from the basic auth, so the basic auth does not work on the file. How can I make an exception for allowed...
Try this: [CODE] Files nested inside a Directory will only apply therein so your code block is more logically organized, and I think using the 'Satisfy any' will allow them to be merged as planned. I'm not sure if it's actually required so try it with and without the satisfy line...
8
15
19,017
2010-06-14T22:41:56.350
infrastructure
serverfault.com
940,234
Task Scheduler not responding when attempting to create a new trigger on all Windows 2008 R2 servers
Issue: Task Scheduler not responding when attempting to create a new trigger or edit a trigger in Windows 2008 R2 The issue happens on ALL our Windows 2008 R2 servers. The issue happens regardless of which user account I log on with. I also notice that once Task Scheduler freezes and I close it, I can re-open task sche...
I know this may seem like a dumb question, but have you tried just waiting for the process to complete? Don't terminate the frozen window or anything. That has actually been my problem. I ended the task before it could complete every time, so the problem "persisted" until one day I just waited and after a couple minute...
3
0
3,150
2018-11-15T20:00:29.540
infrastructure
serverfault.com
620,211
Port Mirroring to Mac Thunderbolt Ethernet
I have a switch with port mirroring enabled. So one port is the source port, and the other is the mirror port. In the source port, I have a wifi router plugged in. The mirror port is connected to my Mac using an Ethernet/Thunderbolt adapter. I'd like to be able to connect a device to the wifi router and see all traffic...
Other devices traffic on the Wi-Fi network. In that case, Charles should not be expected to capture any traffic; it inserts itself as a proxy to capture Web browser traffic to and from the machine on which it's running (and that works by inserting itself as a Web proxy, so it won't catch, for example, HTTP traffic done...
0
1
1,146
2014-08-13T17:07:15.410
pipeline_ops
serverfault.com
9,631
Partial restore to a different database
I have a database with 3 filegroups: PRIMARY, AP, and GL. I did a full database backup. I did a partial restore of just the PRIMARY and AP files successfully using this command: [CODE] Is it possible to do this same partial restore, but to a different database? I have a database called TestPartial1, which I am trying t...
Is it possible to do this same partial restore, but to a different database? Short answer I'm afraid, no. Best bet is to do a partial restore to a new database then copy the tables and data to your target with: SSIS Transfer SQL Objects Task . If this is a one off just use the import/export wizard in SSMS. Use an INSER...
1
4
3,147
2011-12-22T18:40:31.793
database_errors
dba.stackexchange.com
37,489
Expanding parent-child tree with additional tables
I have readonly access to a table (Oracle database) which contains a hierarchical structure, represented via parent-child. I need to add another table, which will expand the existing hierarchical tree. The new table needs to add levels to the tree, including entire sub-trees. The problem is this: Any node in the expans...
Here's an idea: build your "expansion table" with something like this: [CODE] The [CODE] column should indicate where the parent comes from, e.g. you could use [CODE] of original, [CODE] for expansion. (Add a primary key on [CODE] , of course.) To handle the querying, use a view defined like this (pseudo-sql): [CODE] Y...
2
4
749
2013-03-24T08:44:22.700
database_errors
dba.stackexchange.com
943,363
How to assure the same MAC address is used to bond interfaces using anaconda kickstart installer?
I observerd that the bond0 interface I create at install time may randomly use the MAC address of the first or second interface. This is causing problems because it means that the ARP information of the server would not be consistent. I want to force the bonds to always use the first (eth0) interface, preferably withou...
To answer your question, you should try [CODE] to your [CODE] variable, it is expected to do what you want. I don't understand why you say that the server ip would not be stable : as soon as the bond is up, it will always keep the same mac address (either eth0 one, or eth1 one, we just don't care), considering we are r...
1
1
1,539
2018-12-07T18:43:38.577
infrastructure
serverfault.com
19,946
Maximum size of SharePoint content databases
Another question from talking to the SharePoint gurus while teaching MCM yesterday. The SharePoint guidelines are that content databases above 100GB are not supported. Without getting into the reasons behind those guidelines, I'm interested to hear about content databases larger than 100GB and your experiences with the...
We have a DB's at 111 and 102GB, respectively, that get backed up in under 30 minutes on a GigE network. I have heard that larger databases can have problems with long-running stored procedures, but have seen no demonstration of it. A nice quote from The "Scaling SharePoint 2007: Storage Architecture" whitepaper: "...T...
8
8
9,890
2009-06-04T18:39:06.883
infrastructure
serverfault.com
24,559
Find which numbers in [1, 161] are not in the result set?
How to find which two number in [CODE] is not in the result set? Can I find this two numbers using sql command? [CODE] The sequence is from 1 to 161, there should be 161 numbers, but only 159 numbers are in the resultset. [CODE] How to find the missing numbers?
To find gaps in a number range: Test table and data: [CODE] Query: [CODE]
3
11
2,537
2012-09-19T19:11:46.053
warehouse_errors
dba.stackexchange.com
509,887
Install PHP 5.2 on CentOS 5.9: undefined symbol php_sig_jpg
I have installed PHP 5.2 from source (we're moving some sites that require 5.2, unfortunately) to a CentOS box. PHP is compiled from source, but when I try to start apache I get the following error: [CODE] I have libpng, libpng-devel, gd, gd-devel, libjpeg, and libjpeg-devel all installed as well but can't figure out w...
This looks like you are missing some part of the gd library. Check out what php/gd-related packages you have with this: [CODE] If you have not already, you may want to use the source RPMs to build custom RPM packages. This is often a less-brittle way to build and deploy from source on RedHat-based distros.
0
0
679
2013-05-22T13:33:46.160
infrastructure
serverfault.com
1,107,102
Ansible 'ping' fail - 'session request sent', but 'read header failed: Broken pipe'
I'm a newbie at Ansible and my goal is use this tool to configure Moxa switches by SSH interface. I'm able to connect via SSH from my Ubuntu PC without problems: [CODE] however after I send a ping message like this [CODE] I receive this error message [CODE] Any ideas how to solve this problem? SO: Ubuntu Server 20 Rega...
According the output provided it seems that you try to establish a SSH connection to a switch. Such devices may not have all capabilities for Python scripts. Because of [CODE] module – Try to connect to host, verify a usable python and return pong on success it " is NOT ICMP ping, ... just a trivial test module that re...
2
0
1,569
2022-08-01T11:52:35.233
pipeline_ops
serverfault.com
104,694
Design for scientific data. Data table with hundreds of columns or data table with a generic value column and hundreds of rows (EAV)?
I am trying to improve the data storage in biomedical science lab where I recently started working. The existing workflow is atrocious, involving many differently formatted Excel sheets that all get aggregated through a process of copy-paste and buggy macros. My intent is to create a simple python script which aggregat...
What you are describing is the EAV (Entity Attribute Value) model which most database professionals would run a mile from. It's also sarcastically called the OTLT (One True Lookup Table) and is a classic novice mistake. Your hunch is correct! Here (and here ) is the opinion of Joe Celko (a veteran SQL programmer who is...
6
6
1,258
2015-06-21T19:09:43.083
warehouse_errors
dba.stackexchange.com
184,599
Not able to manage DB using Webadmin in Plesk
I have a VPS running on CentOS 5 with Plesk 9. I've just added a DB and setup WP. Now I need to access DB using phpMyAdmin. The problem is that phpMyAdmin is not laoding when I click WebAdmin. I've looked at different guides, like this one: http://tutorials.ausweb.com.au/web/Tutorials/Plesk-9/Plesk-9---how-to-manage-yo...
Two things to check: You have an entry for localhost in the /etc/hosts file (it should be [CODE] ) Check PHPMyAdmin is installed. I think it comes by default in Plesk, but go to either Server or Settings (I can't remember which one), Updates (bottom right), click your current version of Plesk and type in "php" - look f...
0
0
2,712
2010-09-25T11:41:39.977
database_errors
serverfault.com
619,046
The MailSpool service is not available
I started getting errors: [CODE] It started happening after installing newest windows updates. I cannot even access CF administrator. [CODE] There is a log after last reboot: pastie.org/9456023
Two files got corrupted: \lib\neo-cron.xml \lib\neo-mail.xml Restored them from the backup, restarted server and worked
0
1
177
2014-08-08T16:13:26.517
infrastructure
serverfault.com
323,649
Is londiste compatible with postgres 12.1?
I have two PostgreSQL databases both running version 9.1.24 (no logical replication available). DB-A delivers changes to DB-B using londiste (skytools 3). I have almost zero knowledge of pgq/pgqd and londiste. My goal is to upgrade both databases to PG 12.1 with almost zero-downtime. So, without going into details, I'm...
You should upgrade to v15 at this point. Don't even consider using anything else than logical replication from v10 on. Yes, it will mean some research and a redesign, but it will get rid of third-party software you say you don't know.
1
0
57
2023-02-16T20:49:58.470
database_errors
dba.stackexchange.com
1,003,301
How to make a secure communication between nodes for replication?
I searched for the best way to establish a replication between two servers with CouchDB but I do not find any infomation on it. The manual in https://docs.couchdb.org/en/stable/setup/cluster.html does not talk about this. Currently, I am using a SSH permanent connection between the two servers using a certificate witho...
Well, after some study and tests i thing i manage to work. For reference for future users, i post my solution here. 1) The SSL tunnel is valid and works quite well BUT I believe that it consumes more resources from the server. The tunnel must keep open al ltime. The HTTPS solution is a "on-demand" solution. 2) To enabl...
1
0
487
2020-02-16T19:27:05.197
database_errors
serverfault.com
161,240
Efficient sensor data storage
So, I have a task to produce design to store data retrieved from sensors, like temperature, pressure, roll etc. First prototype was quite simple, I created TimeSync table consisting of 2 columns: ID increment, and Time. Then for each value I would create table of 2 columns: foreign key to timesync id, and value as floa...
This is one possible approach, although it does not produce exactly what you're asking for, it may be a proxy to get there: [CODE] (I've changed "value" to "value_1" and "value_2" for ease) At this point, we do two things: a UNION of table_1 and table_2 to get all the existing "time" values, then, for each time, make a...
0
0
516
2017-01-16T16:32:08.043
airflow_errors
dba.stackexchange.com
1,155,631
what is the link between SAR memory output and free command?
I now understand a bit more RAM usage in linux OS and I knwo that I can use free -h to have correct knowledge about RAM utilization in my server. but I also have SAR that is working on my server and I don't see the link between SAR outputs and free output. this website write some relationship between these command outp...
Both [CODE] and [CODE] get their information from [CODE] . man free describes exactly which values from [CODE] correspond to its output. [CODE] value is [CODE] in [CODE] [CODE] value is [CODE] and [CODE] in [CODE] [CODE] Sum of buffers and cache man sar doesn't have such a description but from the source code of rd_sta...
0
2
57
2024-03-04T10:02:23.573
infrastructure
serverfault.com
195,702
pgAdmin 4 v2.1 download - could not verify .sig file
I downloaded the installer and .sig file for the latest pgAdmin 4 v2.1 from their website , given the recent malware/security issues I thought best to verify the installer using Kleopatra (part of Gpg4win ) before doing anything, but got this message: I have emailed the maintainer as listed on the download page but yet...
works now after the maintainer sent me his public key, which I had to certify first, once that was all set up I was able to verify the .sig file.
0
0
139
2018-01-18T16:14:28.750
warehouse_errors
dba.stackexchange.com
1,128,820
Why is my naked domain working when I only configured the www?
I set up my domain on heroku/cloudflare. In my heroku settings, my domain is listed as [CODE] . While testing and iterating on configuration, I removed the other entry I had previously added for [CODE] with its own DNS target from heroku. On cloudflare, I have two DNS records. One is [CODE] since my domain is on Godadd...
I don't know what you've configured, but your DNS servers reply fine for both [CODE] and [CODE] : [CODE] Cloudflare happily serves content at both http and https, with and without [CODE] .
-1
0
264
2023-04-17T05:25:14.570
infrastructure
serverfault.com
906,814
Rewrite Performance, and rules that work in .htaccess but not vhost
I'm working on moving my .htaccess rules over to our vhost_ssl.conf file. I'm hitting some snags with rules that worked fine in .htaccess but aren't working in vhost. For example, in .htaccess this works fine: [CODE] With the idea being that if someone visits example.com/example - they get redirected to example.com/exa...
Remember to add the leading slash Read the Apache documentation, especially the part about where you often don't need mod_rewrite for a lot of things (which can be handled with mod_alias): https://httpd.apache.org/docs/2.4/rewrite/avoid.html Remember that - even with flag L the rewriting may not be done, but starts ove...
1
1
724
2018-04-09T18:49:08.597
infrastructure
serverfault.com
61,796
Easy multi-level authentication for sudo
I have a FreeBSD server with password-based SSH enabled. I would like to enable [CODE] , but I do not want a potential attacker to be one password away from root access. My current solution is logging in as root using a public key (remote password authentication is disabled for root), and my normal user is not in wheel...
You already solved this via OTPs (more security = more hoops), and I cannot comment on pam_ssh_agent_auth. But it seems as though your real concern is not with sudo but with network-level access. In other words, you seem concerned with privileges granted to users from a particular host or hosts rather than a particular...
6
2
2,898
2009-09-03T01:54:44.777
api_errors
serverfault.com
137,964
PHPMyAdmin: "General relation features: Disabled"
I've been looking around for something like this for a while, and I've found some tips on similar issues, but not exactly the same. I really don't know what to do. I downloaded and installed WAMP, and I have a MySQL and PHPMyAdmin setup according to common indications that can be found everywhere (securing MySQL root a...
I just had to logout and login to see the new features, try that
1
2
6,014
2010-05-03T07:03:56.410
database_errors
serverfault.com
568,319
redundancy in a single SCSI target
following-on from my earlier question about resurrecting an ancient Intergraph 6800 machine ( licence file for extra logins on ancient Unix (CLIX) system ), the original problem was a failed hard disk so This Must Not Happen Again. All the crucial data are on the separate /usr partition so I was wondering about making ...
There are SCSI-to-SCSI RAID devices that will do exactly what you're looking for. I'm dubious that you'll be able to find brand new ones for sale, seeing as how SCSI is more of a legacy technology, but I bet they're still out there on secondary markets if you look. Devices like the Adaptec AEC-4412 were mean to expose ...
2
3
151
2014-01-19T10:02:33.047
infrastructure
serverfault.com
986,796
Does Barman need ssh connection setup when installed on the same host as the PostgreSQL host?
I'm trying to configure Barman ( pgbarman ) to work alongside the PostgreSQL database on the same host, i don't want to install barman on a separated host, but I can't find any documentation about such approach. All of the resources on the internet are about setting up barman on a separated server, then configure a SSH...
The following setup would enable Barman to backup the database using the pg_basebackup, and receive the WAL logs using the pg_receivewal, where Barman installed on the same OS as the PostgreSQL Database (No SSH/RSYNC): 1st. prepare the Global/General Configuration File (barman). 2nd. prepare the Server Configuration Fi...
-1
0
1,297
2019-10-04T14:56:01.400
database_errors
serverfault.com
837,874
Can not ssh to google computer engine
I have create vm on gce , but I can not ssh: My server: ssh from brower gcloud command: [CODE] my firewall:
For some reason, I have add router and everything ok
1
1
3,309
2017-03-13T04:27:13.637
infrastructure
serverfault.com
938,267
Glusterfs FUSE client black magic (automatic high availability)
Quick question regarding the Glusterfs FUSE client black magic. I currently have a gluster 3 node doing a single replica volume. On my gluster fuse client i am pointing to one of the glusterfs nodes as a mount point. I noticed after I shutdown the specific glusterfs node in question, i was still able to do reads and wr...
On my gluster fuse client i am pointing to one of the glusterfs nodes as a mount point. I noticed after I shutdown the specific glusterfs node in question, i was still able to do reads and writes to the volume and also noticed that the changes are being made to the other replicas. The gluster fuse client uses the node ...
1
0
896
2018-11-01T20:53:00.597
database_errors
serverfault.com
155,362
Can a 2008 SSIS package Connect to a Newer SQL Instance?
I am working on a project to upgrade a SQL Server instance from 2008 R2 to 2016. This server is also running SSIS 2008. Based on the MS documentation , it appears that different versions of SSIS can co-exist on the same server. I would like to take advantage of this by leaving SSIS 2008 in place, yet also installing SS...
SSIS can connect to many different servers based on the connection type used in the SSIS package. Since even SQL Server 2016 SSIS still uses Native Client 11 (and has since 2012), you should not have any issues connecting from SSIS 2008 R2 to SQL Server 2016. SQL Server 2008 R2 uses Native Client 10 or 10.1 but has no ...
0
1
2,200
2016-11-15T20:37:48.610
database_errors
dba.stackexchange.com
1,050,868
Kubernetes OCI runtime exec failed - starting container process caused "exec: \"etcdctl\": executable file not found in $PATH": unknown
Background Created a fresh Kubernetes cluster using [CODE] and then joining the 2nd control plane node by running the below. [CODE] Question Is etcdctl commands supposed to come back with a return value? Either using the command directly or using the docker exec method shown below. I have these packages installed kubea...
The error mentioned by OP is caused by non existing etcdctl exacutable in container. Why? Because he used the wrong container. Look at the following command: [CODE] Notice the container is [CODE] . It's not an etcd container. But why?? what is this pause container? I won't answer this question because somebody already ...
1
1
12,256
2021-01-23T00:07:55.113
pipeline_ops
serverfault.com
208,489
Ubuntu 10.04 LTS Virtual Machine on VirtualBox not able to use network
Hey all, no matter what Network Adapter I use on VirtualBox for my newly setup Ubuntu VM, I cannot get a valid IP when I do ipconfig. All I get is a loopback address. Does anyone know what I would do to fix this and which Network Adapter in VirtualBox I would use to properly connect to my actual PC (host) and the outsi...
for anyone with the same problem this is how you would do this: change eth0 to eth1 in /etc/network/interfaces, and choose the bridged network.
0
0
296
2010-12-02T19:11:20.913
infrastructure
serverfault.com
303,394
Problem with "in" a system query in Oracle
I have this query and I want get the top 5 of [CODE] . After that I want to display additional information for each of the sub results. The following query works fine when the [CODE] statement returns only one result ( [CODE] ) and in the main [CODE] I use an equal sign, but if I want to return more than one row within...
Try this one - it seemed snappy on most databases I've tried it on [CODE]
1
1
62
2021-12-02T11:47:18.400
database_errors
dba.stackexchange.com
283,266
Managing logs for several dynamic instance on Amazon
I have this problem or rather an itch that I could really use help with. I use autoscale and several instances on Amazon. Problem is I have all these logs PHP, Apache, system but also my web app generating traffic logs etc etc. I want to consolidate all these logs. I know syslogd etc exist, but I was wondering whats th...
The simplest, easy solution is probably syslogging to a central logserver, e.g. with syslogd. It's simple, free, and widely used in production environments. You could then use Graylog2 as a free log analyzer. It's a bit like Splunk, but much more affordable. Also interesting for your toolbox is logstash , a tool for ma...
2
4
522
2011-06-23T02:02:37.010
pipeline_ops
serverfault.com