question_id
int64
1
1.16M
title
stringlengths
10
191
question_body
stringlengths
6
2k
answer_body
stringlengths
0
2.5k
tags
stringclasses
73 values
question_score
int64
-15
1.65k
answer_score
int64
0
2.91k
view_count
int64
4
1.24M
creation_date
stringdate
2008-08-01 18:45:00
2025-06-19 04:44:02
category
stringclasses
12 values
source_site
stringclasses
8 values
1,093,217
Why does our Tomcat Java application suddenly open hundreds of connections to our database?
We have a Tomcat application running on Elastic Beanstalk and our MySQL database is hosted on AWS RDS (2 or 3 t3.medium instances). Ever since we upgraded from MySQL 5 to MySQL 8 (currently 8.0.23), we've been having an issue that occurs about once a week. Most of the times the database is fine, but then, all of a sudd...
Where should we look to find the root of the issue? Enable the slowlog in MySQL and (after the spike) investigate what queries were running at that time. If the slowlog does not show much, lower [CODE] before the next spike. (I don't know if Tomcat has a log.) Does it happen at the same time every day or week? When doe...
1
1
435
2022-02-09T21:53:43.670
database_errors
serverfault.com
990,378
Best solution to allow external developers access our internal Git server?
My company outsources a lot of software development. Usually the suppliers manage the source code until the application is finished and then hand it over to us. This has obvious downsides: (1) we have no control over who has access to the code during development; (2) we are unable to conduct code reviews or static anal...
We used to host our own source control server in the office. The development team grew in size, and so did the administrative effort required to maintain the server. Also we started using freelance developers working outside the office. In the end we moved source control to a external hosted git hosting. There are many...
0
1
813
2019-11-03T04:45:52.357
infrastructure
serverfault.com
633,043
Is there a way to have puppet create a user's home folder (managehome) but not delete when ensure is 'absent'?
My first thought was doing something like this: [CODE] A couple of problems with this: If I wanted to use another [CODE] type attribute, I'd need to change [CODE] in two places. I would need to change all [CODE] declarations to use [CODE] . I would much rather use a built-in type then a defined type. Perhaps there's ei...
There are a few ways to handle this, you could simply use your ternary check directly in the user declaration like so: [CODE] This is assuming you are parameterizing your values here, and I'm guessing that's not necessarily the case. You would still have the issue of having to update all your type references which can ...
2
5
3,614
2014-10-02T13:01:21.263
pipeline_ops
serverfault.com
266,606
SQL Job runs without it schedule and renaming or deleting it causes other jobs fail
I recently migrated the SQL 2008 to SQL Server 2016. I started noticing a strange issue where one of the SQL Job is causing the failure of other jobs. This job is disabled and there is no schedule and it keeps running on its own. When I rename or delete this job, Other jobs starts failing. As soon as I create the job w...
I think you should run profiler in here to see if something is running manually your job with very specific filters like the job name.
-1
0
118
2020-05-06T15:52:38.487
database_errors
dba.stackexchange.com
723,583
Using heartbeat with systemd
I'm using a simple setup with heartbeat handling a shared filesystem implemented with drbd and served via apache. I'm using /etc/ha.d/haresources to define the ha resource, this way: [CODE] This works fine if using the old debian sysvinit, but has a race problem with systemd because stopping apache is done asyncronousl...
Systemd itself (on Debian 8) is just using the good old init-scripts. [CODE] That's not a systemd problem. Systemds 'systemctl' also doesn't work asynchronously by default. That's what the [CODE] option is for. You're also probably not using systemd-tools at all when issuing commands like that in heartbeat.
1
1
2,354
2015-09-20T12:28:55.423
infrastructure
serverfault.com
182,785
Is it possible to keep track of which rows were selected and fetched last in MySQL?
I am working on a small website using Java where the user posts are stored in MySQL, I am getting the posts 5 at a time (5 rows using [CODE] ) by most recent one (using timestamp [CODE] ) and send it to the front-end . The problem I am trying to solve is to be able to fetch the next 5 that are not the same rows that we...
Although you can track which rows were selected last using MySQL Enterprise Audit , this would be a little like using a Saturn V rocket to go to the corner store... The cost would be ridiculously high for such a small function. Since you are ordering rows by timestamp, I am assuming your timestamp value is unique. Woul...
0
3
139
2017-08-06T00:14:59.157
database_errors
dba.stackexchange.com
899,174
Google rejecting emails
Google is rejecting emails and send me [CODE] A PTR record does exit for both IP's as well as an A record for what is shown in the PTR record. I have done this in the past with no issue. Only thing I can think of is there is a subdomain for the box (foo.nyc.example.org). Is there any of troubleshooting to see what sned...
Adding the v6 address and FQDN to /etc/aliases seems to have fixed it.
0
0
1,026
2018-02-27T18:25:31.377
infrastructure
serverfault.com
252,631
wget: download a website which is password protected using a form
I have a problem with downloading a website using [CODE] . First I need to login to the website with a username and password: wget --save-cookies cookies.txt --post-data --cookies=on --keep-session-cookies --post-data="strUser=username&strPW=password" http://hostname/wwwawelle/member/nixlog.asp Then I try to download t...
If the site is saving the session with cookies you can log on using a browser, then have wget use the appropriate cookie to continue accessing the site. However, if the site uses other means, such as PHP $_SESSION variables you're out of luck. If this is a site to which you have legitimate access surely you can configu...
1
2
8,974
2011-03-28T09:18:33.820
infrastructure
serverfault.com
1,144,673
Changing name/ip of Domain Controller/DNS/DHCP Server after migrating from 2012 to 2019
We are prepping a migration of our AD server (DNS/DHCP/Print/Azure AD Connect) from 2012 to 2019. I can't find a definitive answer on changing a DC's ip/computer name post-migration. Prep: spun up new server 2019 vm joined to existing 2012 domain controller, all computers/users appear to be syncing correctly both ways ...
Per Microsoft, renaming a domain controller is a bad idea and should be avoided. Microsoft compiled a list of many of the problems you may encounter below. https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/rename-dc-to-preserve-old-name-and-ip-address/ba-p/850935 Generally, it isn't a good idea to...
1
2
585
2023-09-28T19:05:22.750
infrastructure
serverfault.com
253,908
Is RAID 1 overkill on Amazon EBS drives in terms of reliability?
My thinking behind this is that RAID 1 creates two or more copies of the data on multiple EBS drives. Yet, aren't Amazon EBS disks virtually fail-safe because they live on multiple physical drives? So then in terms of reliability, you aren't gaining much by adding RAID 1. Is this correct or my facts wrong? I realize yo...
Behind the abstraction the drives are already redundant. It is fine to run them in RAID 0 for speed. What is optimal is to use the snapshot functionality for backups. On RAID, this can be done by breaking down the RAID or freezing the volumes, snapshotting, then returning the drives to normal use. Alternatively, writin...
7
4
6,822
2011-03-30T23:16:14.917
infrastructure
serverfault.com
764,793
Physical storage devices, such as tape and changer devices, not visible when booting Debian 8 Jessie, with hpsa driver.
Question Not detecting all physical devices behind Smart Array controller after upgrading to Debian 8 Jessie HP P212 Smart Array Controller and HP 1/8 G2 LTO-5 3000 SAS Autoloader Debian 7 Whezzy kernel 3.2.0-4-amd64: [CODE] Debian 8 Jessie kernel 3.16.0-4-amd64: [CODE] Missing devices are not detected even after a scs...
We are have following hardware HP StoreEver 1/8 G2 LTO-6 Ultrium 6250 Tape Autoloader With the original Jessie Kernel 3.16.0-4 the autoloader is not found. Adding the kernel from backports (jessie-backports) is sufficient. [CODE] and now the autoloader shows up [CODE]
1
1
707
2016-03-19T14:10:25.947
infrastructure
serverfault.com
349,954
Data Store/Volume disconnecting. How to resume copy of VMDK?
I'm having an issue with my ESXi 4.1 hosts losing the datastore with FC SAN after a power outage. All 3 hosts disconnect so it's definitely a SAN issue. I've tried to resolve the issue on the SAN side with the SAN software support and Adaptec hardware support. No luck there. So I'm stuck with a SAN that will randomly d...
Its a long shot, but i think vmware converter has an ability to do incramental updates to an export. So you could try kicking off an export, after it fails, try appending the export. Other than that, my best reccomendation would be to get the SAN vendor in to figure out what's going on. Secondly, since it's fiber chann...
2
0
2,732
2012-01-14T19:23:44.553
database_errors
serverfault.com
55,786
Recovery from datafiles
Thanks to the recent weather/floods, we lost many of our servers. This included our central database server as well as the server that holds our backups. The database server was running Oracle 12c enterprise on RHEL6. We offload our backups to an offsite facility once a month. Long story short, our most usable backup i...
Right, For anyone else who might come across this post - I am just adding this information for the sake of completeness. It took me a long time to get this sorted. I booted off of a SystemRescueCD and ran testdisk. It managed to recover my LVM partitions, which I couldn't mount due to damage to the disks. I tried numer...
1
2
267
2013-12-29T23:39:58.137
data_quality
dba.stackexchange.com
414,548
How to show fluctuating data smoothly and accurately?
I am working on a project in which I have to read data from liquid level sensor installed in tank which measures fluid level and sends output in millivolt. The device has predefined ranges of voltage to decide fluid level from voltage. The tank might be fitted on moving vehicle as well. I have to represent this data on...
As @amon already noted, domain knowledge may help to find an appropriate function. For a vehicle tank you need to consider two types of value change: slow fuel consumption and fast fill. There are also at least two types of measurement error sources: quick fluctuations due to movement (noise-like) and medium-length abe...
4
6
785
2020-08-06T18:28:52.603
airflow_errors
softwareengineering.stackexchange.com
840,780
Investigating Sysvol replication issues when promoting domain controllers with DSC in Azure
We're using PowerShell DSC to automate the deployment of a number of small self contained environments, in these environments we are deploying 2 domain controllers and use DSC to setup the domain etc. This is all working fine except for the fact that once deployed and running, at some point the sysvol replication betwe...
I think this is a DNS issue. You should not use [CODE] as primary DNS on these machines but instead use the real IP address and set the IP of the replica DC as secondary DNS server. This seems like the solution least people have problems with. This is an issue which is discussed over the years with various opinions, ev...
3
0
1,735
2017-03-27T09:58:29.677
database_errors
serverfault.com
1,016,273
dhcpd unexpectedly destributes a useless route for another subnet as a default gateway
Our dhcpd.conf defines two subnets such like, [CODE] But a dhcp client receives both gateway address as default gateways such like, [CODE] Why does this happen? And how can we do anything to fix that?
I don't have enough reputation points to ask a couple of questions via comment. It would help to see your entire dhcpd.conf file and your network interfaces config as well as what distribution you are using. From the information you provided I would assume you have a multi-homed DHCP server with at least two interface ...
0
1
186
2020-05-08T11:52:41.000
infrastructure
serverfault.com
247,022
Hosting: 1 Windows, 1 Linux, 1 Internet IP Address. How?
I have 1 Internet IP address. I have 2 PHYSICAL web servers. 1 Windows IIS7 hosting 3 websites. Host-header names are configured in IIS7. This works OK until I add: 1 Linux (Ubuntu lucid) Apache2 hosting 1 website. VirtualHost is configured in Apache2. I followed theses steps: http://ubuntu-tutorials.com/2008/01/09/set...
One possible solution is to give the external IP address to the Ubuntu system and the use it's Apache to reverse proxy for the IIS7 server. Create a virtualhost for each of the hosts on the IIS server in for example [CODE] [CODE] Enable proxying [CODE] Enable the iisproxyhosts and retstart apache [CODE]
0
3
547
2011-03-14T02:36:00.910
infrastructure
serverfault.com
287,133
LEFT JOIN subquery fails in the presence of an EXISTS clause in the main query
I have this query: [CODE] The inner query ➊ when run on its own yields results, e.g. sent: 15 for contact 1 . This is the correct, expected data. However, running the whole query gives NULL for the whole sent column! Which is vexing me. Eliminating the WHERE clauses at ➋, or eliminating the EXISTS at ➌, or including th...
This looks like a bug. Please send a bug report to MariaDB. Some details: First, make sure it is a bug. Query A produces a single row (assuming that [CODE] has a unique (or primary key) constraint: [CODE] Query B produces one row (with value [CODE] in [CODE] ) [CODE] Query C produces a single row but with value [CODE] ...
0
1
993
2021-03-16T15:50:59.227
database_errors
dba.stackexchange.com
390,028
unpredictable mysql server behaviour on left join
[CODE] Now, if I try to execute: [CODE] returns different result! Any one can explain this behavior? Thanks
if you check execution plans with [CODE] you'll see that first query has [CODE] . T hat's it - mysql does JOINs first, and then filters the result. Since no join output row matches your filter you get empty end result. The second query does an OUTER JOIN with a condition that is always false, returning NULL for [CODE] ...
0
3
121
2012-05-17T14:03:03.413
database_errors
serverfault.com
157,078
Is it worth moving from Microsoft tech to Linux, NodeJS & other open source frameworks to save money for a start-up?
I am currently getting involved in a startup, I am the only developer involved at the moment, and the other guys are leaving all the tech decisions up to me at the moment. For my day job I work at a software house that uses Microsoft tech on a day to day basis, we utilise .NET, SqlServer, Windows Server etc. However, I...
£100/month? How much do you cost? How much is going to cost your training ? If it's £100/month but you can get a .NET app up in a month, while you will need at least 3 to 6 months to get your node.js/C++ app running, go for the .NET. Seriously. Your time is way more expensive than these little £100/month. Ideally, yes,...
32
35
6,674
2012-07-17T14:31:11.157
database_errors
softwareengineering.stackexchange.com
387,065
Can an entity include "technical" (not business related) information?
I want to to follow a clean architecture rules (with domain and architecture layers). I have a problem with properties that an entity should or should not have. Let's say that I have a User domain. It has all the business related properties (like first name, last name, email, mobile phone number, etc.). But there are a...
Answer Based On Comments With the provided update, User entity is something that can hold some implementation of Credit Card, whether it be Stripe or whatever other external thing that is outside of your system, so any unique identifier in this context represents both User and Card combined instead of uniquely identify...
0
2
195
2019-02-12T16:03:06.550
api_errors
softwareengineering.stackexchange.com
593,828
SNI error over SSL on some Android devices
I am getting an SNI error: [CODE] On some Android phones when making SSL requests to my domain. This is despite ensuring that the Host header is set on the client. I have also tried setting: [CODE] In my apache conf, but I still see this error. Can someone point me a way forward?
According to this report https://code.google.com/p/android/issues/detail?id=35050 your problem could also arise from a bug in Androids implementation of the libcore/luni/src/main/java/libcore/net/http/HttpConnection.java. Due to this bug the SNI at the TLS layer is the hostname of the proxy instead of the hostname prov...
4
2
2,529
2014-05-08T05:48:31.647
infrastructure
serverfault.com
40,583
Simple MySQL query randomly takes forever
I'm having an issue on my server with a simple PHP send emails script that runs every minute via a cronjob. The script contains a MySQL query that runs very fast most of the time, but randomly will take "forever". It feels like a similar problem to this: https://stackoverflow.com/questions/976739/mysql-query-randomly-t...
To speed up the execution of your query, you need to create a compound index: [CODE] More information: Multiple-Column Indexes
5
3
3,355
2013-04-21T23:34:57.407
database_errors
dba.stackexchange.com
702,453
403 despite of 'require all granted' in every directory
I tried to run a simple apache 2.4.12 server with a single static index.html page only. After some configuration it starts correctly, but client gets the 403 response with "Forbidden You don't have permission to access / on this server." httpd.conf: [CODE]
Problem solved after finding this clue in logs: [Tue Jun 30 09:43:19.158971 2015] [core:error] [pid 7735:tid 140653090862848] (13)Permission denied: [client censored_ip:44459] AH00035: access to / denied (filesystem path '/home/nnc/www') because search permissions are missing on a component of the path I had to change ...
0
1
3,271
2015-06-29T21:26:26.210
api_errors
serverfault.com
668
Audit logins on MySQL database
Is there a way to audit logins to MySQL? I'd like to be able to create a username for each employee and thereby create an audit trail of logins. However, googling has turned up no good results. The more we can audit, the better. At the very least, it would be nice to know who logged in when. It would be even better to ...
You would probably want to use the general query log . The general query log is a general record of what mysqld is doing. The server writes information to this log when clients connect or disconnect, and it logs each SQL statement received from clients. One important thing with logging for security is that an attacker ...
13
8
41,346
2011-01-17T21:19:57.870
database_errors
dba.stackexchange.com
246,089
Memory issue in Transactional Replication
I want to replicate a data of 500 GB through transactional replication once in a day, so my query is this, will it create a new file in the snapshot folder on daily basis of 200-300 GB or will update it only. What can I do if i don't have too much memory for this file, can we not transfer our data without generating th...
The SQL Server Snapshot Agent will use BCP to create an initial snapshot of the data and objects to be replicated. These are stored on disk in the default installation folder. You can specify a different location if you are concerned about space issues in the default location. Once the snapshot has been distributed to ...
0
2
272
2019-08-23T11:56:04.673
api_errors
dba.stackexchange.com
229,060
Does DDD make sense for apps which mostly present data?
I'm responsible for designing a dashboard and data manipulation front-end for a sale transaction database and am not quite sure what type of architecture to use. The database is populated by an external ETL system. The required functionality for my app is very simple; it must display a few alerts of exception condition...
If there is little behavior a DDD approach can be overkill, its your application its totally data-centric and with little logic probably the coupled solution can be a good decision. I don't know what technology are you planning to use, for a system like that i probably choose a framework like rails, grails or django an...
6
5
1,470
2014-02-15T03:57:40.403
bi_errors
softwareengineering.stackexchange.com
74,956
Steps to debugging a PCI-Cardbus bridge on Linux
I have a PCI to PCMCIA adapter card that's installed in a Dell server running Linux 2.6. The documentation indicates that it works with both 3.3V and 5V cards, and with both 16-bit PCMCIA and Cardbus. When I insert a 16-bit PCMCIA card, the card is recognized, appears in [CODE] , and everything works. When I insert a C...
Problem Resolved The problem was a PCI bus overlap issue. The BIOS-provided PCI bus numbering didn't leave any space for the Cardbus bus on the other side of the bridge to receive a bus number. This was indicated by the message "Upper limit for fixing this bridge's parent bridge: #0a" in dmesg (unfortunately it wasn't ...
0
0
1,037
2009-10-15T21:52:35.360
infrastructure
serverfault.com
223,598
How to prevent deadlocks in many-to-many insert/update trigger function?
I'm having a problem with deadlocks on a many-to-many insert and am pretty far out of my league at this point. I have a [CODE] table that receives thousands of records per second. One of the columns is a PostgreSQL [CODE] type with zero-to-many urls in the array. It looks like [CODE] . What I'm tryin to accomplish from...
This ultimately boiled down to 2 things. Concurrent writes will eventually deadlock if the inserted data isn't sorted before inserting. Within my trigger function all inserts were sorted but there was no way to sort all the urls being added concurrently . The only way to solve this issue was to back up one level and do...
2
3
6,319
2018-11-28T00:18:46.250
database_errors
dba.stackexchange.com
608,059
squid3 with tcp_outgoing_address could not connect to anywhere
I have one server with 3 interfaces (3 physical lan card), which are connected to 3 different routers. Each router has a different subnet, i.e. the 3 interfaces of server belong to 3 different subdomains: [CODE] I have installed a squid server on the server with minimal configuration, and it indeed works fine with web ...
OK, after some further research, I think the answer is [CODE] . I followed the steps here: Can't ping multihomed Linux machine on non-default interface And it works like charm!
0
0
1,399
2014-06-26T09:30:50.927
infrastructure
serverfault.com
255,127
XENServer hard disk crashed - Save my soul
I am in the worst possible situation. Any help is like saving my soul and even more... I had a machine on which Citrix Xen Server was installed and had three VMs and I was working on those machines with almost zero knowledge of XenServer. Oneday I couldn't boot my machine and finally I had to recover my VMs. I made a c...
Your best bet: Get a professional who really knows what he is doing have a look onto this. Other than that, your first step must be to make an exact copy, bit by bit, of your disk in order to prevent doing more damage while you try to repair things. Get a second hard disk which is at least as big as the one you try to ...
1
1
2,418
2011-04-03T12:42:09.440
infrastructure
serverfault.com
626,276
How do I interpret this Load Test result?
We used BlazeMeter to evaluate our site's capability to handle load. I set up a simple script that logs in (using a special page which ensures each load test user has a different account), visits several pages along a common route, and ends with generating and downloading a PDF report. These reports are generated on-th...
Latency is the delay involved for your request to reach the server. The response time that is required to receive a response from the server is the sum of the response time + latency. High latency and reasonably low response times indicates that nothing is wrong with application under test but you're hitting some envir...
0
0
861
2014-09-04T14:49:03.203
infrastructure
serverfault.com
692,255
CPU seconds value very high on apache mod status even though page is generating very fast
We have a VPS on wich we have a few websites. In the last days it has experience a big load and has sometimes even stoped responding and had to restart it. After looking into it, we seem to have a high usage of CPU from apache. We are now looking at the stats from mod_status to find the source. Below is one example. Wh...
I have seen this when the MySQL server seems to be responding slowly, causing the process to lockup, which burns through the CPU while it waits, so worth taking a look at your SQL while its struggling to see if that's the real cause.
0
1
546
2015-05-15T09:57:28.473
infrastructure
serverfault.com
185,943
Password expiration notice for Active Directory
Are there any tools/apps/scripts out there that will do password expiry notification for Windows 2008 Active Directory credentials? This is needed for our web apps that use Active Directory for LDAP authentication. The problem is those apps do not notify you that your password is going to expire when you login. We have...
If you're willing to put forth the effort to make the program, it isn't hard to figure out. The root domain object (DC=company,DC=example,DC=com) has an attribute called maxPwdAge, and the individual user accounts have an attribute called pwdLastSet. Both of these attributes are timestamps in 100 nanosecond intervals. ...
3
1
1,184
2010-09-29T19:18:40.110
api_errors
serverfault.com
952,217
Error ID0006 while configuring AD FS Authentication in Exchange 2013
I have a fresh installation of Exchange 2013 (with SP1) hosted on a Windows Server 2012R2 box. I want to configure it for ADFS authentication. I ran the powershell commands to set the ADFS authentication to true. [CODE] After restarting IIS, I get the following error: Server Error in '/ecp' Application. ID0006: The inp...
What are you using for the ADFS certificate, issued by the Enterprise CA or public CA? You should import the root certificate of the ADFS certificate chain to the “Trusted Root Certification Authorities Store” on the Exchange Servers. What is your Exchange CU? Try the latest CU. In another way, try to re-configurate th...
0
0
830
2019-02-04T11:28:16.757
api_errors
serverfault.com
684,838
Use same gateway on Amazon VPN (VPC)
I'm trying to create a VPN on AWS but it returns an error: [CODE] I was wondering if it's possible to use same Gateway on my account and another account that is not mine. I've make it working when change zone but i would like to use the same region that receive the error.
Pretty certain that is not possible. You need to make a new Customer Gateway with a new IP Address. A gateway can only map to one IP address. And the Customer Gateway IP address can only exist once per region, and I mean for the whole region across subscriptions.
0
0
461
2015-04-22T23:02:57.603
infrastructure
serverfault.com
523,324
access log to contain indication when someone telnet my server and typed garbage
I have apache 2.2.22 server installed on ubuntu linux. I created a virtual host on port 443 and I want all telnet indications to that port to be listed in the access log. so for example if I telnet to that port on port 443 and I don't write anything, it disconnects me after a few seconds and then it shows an indication...
The reason for this is that the connection to port 443 is handled in two steps. The first one is the SSL negotiation. For this to work, the client needs to speak valid SSL. The second step is the actual HTTP. Only the second step is logged in the access log. Since, when you're telnetting, you aren't doing a successful ...
1
3
744
2013-07-15T08:42:43.120
infrastructure
serverfault.com
569,211
Dovecot - [IN-USE] Internal error occurred
I have Debian 7.3 VPS with Webmin, Apache, MySQL, PHP and Postfix and DOvecot for handing emails. Throughout Webmins "read user mail" option, I can send/receive emails, but it looks ugly and it is not practical and not very usefull. So I installed Roundcube and tried to login and got this message: "Login failed." So I ...
It's quite clear why the pop3 log in is failing. The connection is being made without encryption and dovecot's default configuration prohibits unencrypted, plaintext logins. However, I'd recommend against pop3 if we can fix your imap issue. The IMAP is a different story because it is connecting with encryption. I don't...
0
1
6,980
2014-01-23T00:33:52.133
database_errors
serverfault.com
656,199
How to set ethernet devices to specific hardware on Centos 7
I have a Centos 7 system where I've disabled the new network naming system and reverted to the old system (eth0, eth1, etc.). I've done this because I'm using this in an RDO Openstack setup, and this needs the same ethernet device names on a few different hosts. Some of these hosts are virts under kvm and use the eth n...
I investigated further and found more details. The reason for this unfavorable behaviour were race conditions between the kernel and the udev software (the developers stated in a bug report). So the developers of udev have decided to remove the reliable naming of NICs as ethX and force a less predictable naming instead...
2
2
9,574
2015-01-04T16:14:56.267
infrastructure
serverfault.com
333,959
Does it make sense to have a custom textual data format?
We have a database backing an iOS and Android app whose primary data is a simple text field. We have a build tool which builds the database - taking a raw [CODE] file which is a custom data format, which looks like: [CODE] or something along those lines. To build the database, a parser was implemented to take the raw [...
Does it make sense to have custom data formats like ours, when there are widely-adopted standard formats for data (e.g. relational structure in relational databases, or even NoSQL databases that have the entries as structured JSON)? No. The thing is, not only do things like JSON and relational databases exist, they're ...
1
9
121
2016-10-18T14:39:31.713
api_errors
softwareengineering.stackexchange.com
268,584
Memcache - PHP- Ubuntu :: cd: /var/lib/memcache: No such file or directory
I installed memcache PHP module on Ubuntu 10.04 My Steps: install php5-memcache ( http://pecl.php.net/package/memcache ) restart apache get phpinfo() [CODE] try to find path: /var/lib/memcache (inside memcache.ini) : [CODE] get error: [CODE] Why I don't have this directory? Thanks, Yosef
on our Ubuntu 10.04 with php5 with memcache support and running memached services there is also no /var/lib/memcache. For me it is not clear why you are looking for this directory at all. Kind Regards Stephan
0
2
932
2011-05-11T13:56:09.057
infrastructure
serverfault.com
808,879
The Server Manager WinRM plug-in might be corrupted or missing on W2K12R2
Today I have been totally defeated by this infamous 2012R2 error: [CODE] I have repeatedly tried each of the solutions proposed here , here and here . No luck. There is no single error in the event log. Of cause I can add-remove roles with Powershell or completely wipe this machine. Still I am looking for the normal so...
It appears that WinRM/WSMAN configuration has to be reset to default values. Thanks to this post I have found where does it reside. So copying [CODE] registry settings from the fresh Win 2012 R2 install to the problem machine eliminates this error. Just for the case these settings as of 17 Oct 2016 from fully updated f...
7
2
45,093
2016-10-13T15:48:58.827
data_quality
serverfault.com
7,461
Performance of inner join query for certain condition
I have one question about inner join query in SQL Server 2008. Is there any situation where NOT to use inner joins. I have one scenario please tell me that here inner join is fruitful or not. I have 2 tables Table1 Columns: T1Id, Code and Name1, (Here Code is unique column) Table2 Columns: T2Id, T1id(reference from Tab...
Run one query, make sure you have good indexes [CODE] A graphical query plan will show where you need indexes A million rows isn't much and well within capability of SQL Server
3
3
1,228
2011-11-01T09:29:12.677
database_errors
dba.stackexchange.com
102,634
How to subtract records from a table based on their existence in another
I have an Access 2010 table [CODE] [CODE] It assigns employees to zero or more projects for given work weeks, thus, all four columns make up the composite key. I have another table, [CODE] , having identical structure, containing data to be used to update [CODE] according to different options. Option 1 Keep all existin...
It seems the answer was hiding in plain sight: [CODE] or [CODE] depending on which is most appropriate. I don't know how I failed to see it first time around!
0
0
1,245
2015-05-28T01:56:33.843
warehouse_errors
dba.stackexchange.com
37,603
Run Multiple Remote Jobs
I need to manually run a job on more than 150 sql server instances (sql server 2000, remote) from a sql server 2005 instance (the local server). The job is the same on all these instances. The job just calls a stored procedure without parameter, which is also the same across all the instances. These jobs are on a sched...
I'd say the easiest possible way to do this is through PowerShell and SMO. Take the following code for instance: [CODE] All this does it loop through a list of servers (explicitly stated at as string array variable, but can easily be obtained also from a SQL Server database table, a text file, etc.), connects to the cu...
5
4
2,632
2013-03-26T16:20:00.910
bi_errors
dba.stackexchange.com
36,445
Network monitoring on a virtual web server
I am not a sys admin, I just play one occasionally for clients. I'm a developer, and usually look for the easiest solutions available for deploying applications. I have a dedicated virtual web server at Mediatemple.com using CentOS and Plesk. For the last two days it's been absolutely slow as can be and I have no idea ...
Start w/ the basics: top will give you an idea of some user-land process has run away with memory or CPU. I'm not familiar with Mediatemple.com's virtualization offerings, but there shouldn't be anything that you "shouldn't" look at inside the VM. You say "everything on the application end checks out okay". Does that m...
0
3
115
2009-07-06T15:56:31.300
pipeline_ops
serverfault.com
253,838
Running software router in VM, MAC Address issue
Hey everyone. I am trying to setup a slew of VM's for testing out a bunch of routing software packages like m0n0wall, pfsense, endian, vyetta, and more. I have a beefy vm server with 2 onboard NIC's and 1 Quad intel card. I have Vmware server 2 running on this box for my virtual host. So far I have a VM of endian runni...
It's tough to tell from this whether your problems are due to virtualizing the endian setup or not. One way to find out would be to install endian directly on the host hardware (you could swap out the hard drive to avoid reinstalling VMWare later). We've been running several (mostly pfSense) routers as VMs with bridged...
1
0
448
2011-03-30T20:03:03.257
infrastructure
serverfault.com
58,089
Windows Server 2008 Datacenter - How to obtain product keys for installing guest VMs?
Possible Duplicate: Can you help me with my software licensing question? My company has just recently purchased a server with Windows 2008 Datacenter. We plan to virtualize dozens of servers on the system. The reason for going with Datacenter is that it allows unlimited virtualization licenses for all versions of Windo...
Ugh. Lots of misinformation here it seems. You don't need a Software Assurance Agreement to use any of the lower Windows Server editions (Standard/Edition) or the previous versions (Windows 2008 non-R2, Windows 2003, Windows 2000), these are covered by the DataCenter license. Software Assurance will let you upgrade to ...
1
3
7,865
2009-08-24T18:52:14.257
data_quality
serverfault.com
256,953
Same session ID(with same SQL text) but 3 different connection ids
I was listing out all sessions open in my sql server 2016 production server. I have issues with slow performance and i have been investigating it. I see that i have several same sessions(session_id) with multiple connection_ids. All are in suspended state(must be waiting for some resource..investigating this also) and ...
The clue here is that those connections each share a "parent_connection_id," which per the docs : Identifies the primary connection that the MARS session is using I noticed the aliases used in those queries heavily implies your app is using Entity Framework. Default connection settings (scaffolded out by the Visual Stu...
0
2
2,297
2020-01-08T20:13:24.287
database_errors
dba.stackexchange.com
23,607
What are the best way to handle missing values
Suppose we have a dataframe df in python, with numerical and categorical variables. For [CODE] , when do we replace by mean and when by median. For [CODE] , is there an approach which needs to be followed.
In my experience, there is no one correct answer to this question. It depends mostly on your problem itself. I'll base my answer on most general cases though. For most Numerical data, a parametric method is the best way to go. If you have some sample data which you can use as a baseline. Try using a parametric method s...
-1
1
489
2017-10-08T10:15:40.980
data_quality
datascience.stackexchange.com
497,163
Server crash when creating a swapfile on a running machine (CentOS Linux)
I created a swap file with root on a running server, using swapfile creation guides which I found on the net ( http://blog.serverbuddies.com/adding-additional-swap-space-to-your-linux-server/m Create swap file on a running Linux machine , and http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/ ) I made sure that ...
Short answer is that writing the swapfile should not have caused the symptoms you describe even if all the space was used up. There may be something in your logs describing what happenned here. Running an fsck against your root partition might be a good idea.
1
1
478
2013-04-08T08:30:57.237
infrastructure
serverfault.com
3,515
trigger command on registry update
I'm fairly new to CI/CD so this is probably a noob question. Anyway, here's my current setup: * Bitbucket repo * Registry service on AWS (ECS Registry) * Pipeline on Bitbucket that builds a docker image on master branch update and pushes it to the registry. So far so good, I'm missing the last part where my server (EC2...
The key words here are: Pipeline on Bitbucket You already have a pipeline. This is where you would stick the deployment command. AFAIK there is no standard tooling for registries to 'push out' any changes; you'd have to code a custom integrator that continually polls for changes and compares. This would be a lot of wor...
3
2
56
2018-03-02T09:29:12.653
pipeline_ops
devops.stackexchange.com
951,099
How to globally set Apache log folder and file using ServerName of VH
I have multiple Apache configuration files [CODE] , [CODE] ,... and would like to set for all these a scheme for the log file and level. Currently, one example of such a configuration file looks like [CODE] Question 1: How can I globally set: (1) the [CODE] for all (or, even better, for a given list of) configuration f...
As far as I know you can't use a variable. But... When the filename in a CustomLog (or the ErrorLog) directive is not absolute, in other words when it does not start with a leading / slash, it is relative to the ServerRoot . The ServerRoot can be set in your httpd.conf or it uses the compile time default. You will typi...
2
0
107
2019-01-28T10:59:18.040
infrastructure
serverfault.com
930,665
What makes a kubernetes node unhealthy?
We've experienced 4 [CODE] events(revealed by the command [CODE] ) on our GKE cluster during the past 1 month. The consequence of node-auto-repair is that the node gets recreated and gets attached a new external IP, and the new external IP, which was not whitelisted by third-party services, eventually caused failure of...
The master essentially performs a health check on the node. if the node can't respond, or if the node declares itself NotReady, it will be repaired by node autorepair. There is also a Node Problem detector on GKE nodes which can detect issues on the OS. Any of the mentioned conditions can cause the node to go into NotR...
3
2
2,028
2018-09-13T02:24:29.710
pipeline_ops
serverfault.com
671,561
Asterisk flooded by incoming SIP connection from unknown peer
Hello i just installed an new asterisk configuration with freepbx and signed for a SIP account. I setup the SIP trunk with my provider data, launched the console with the asterisk -vvvr command to debug then i noticed that the logs are flooded by entries like this: [CODE] I just can't debug my trunk because of thoses p...
Well, i found out i was allowing SIP guests. Seems like many bots are looking for unsecured servers to spam or relay. So i just disabled this option, and my logs are now back to a normal state.
1
1
6,380
2015-02-26T09:44:26.563
infrastructure
serverfault.com
116,721
Cannot connect to SQL2008 in Virtual PC from host Windows7
I have SQL2008 installed on Server2008 in a Virtual Machine (using Microsoft Virtual PC). My host OS is Win7 X64. I've installed SQL Enterprise Manager on the host, but although it sees my SQL server when I browse for servers, it will not connect - giving Error 40 could not open a connection ( as described here ). I've...
OK - so it was to do with the NAT I was using. Here's my solution, with some description, if you're having the same problem. Using NAT means that all of your Virtual Machines will be able to talk to each other, but you won't be able to communicate with them externally. Using the Host's network card for the Virtual PC d...
1
2
1,320
2010-02-25T13:12:27.510
database_errors
serverfault.com
520,879
What tech. is required to build a firewall that dynamically opens ports after users authenticate through a web form against Active Directory?
I need to expose via Internet an insecure internal web app that can't be modified to be made intrinsically more secure. The most common solution for this problem is to access the web app through VPN. Unfortunately, this isn't possible in my situation so I'm left scrambling for another solution. At some point I've exper...
If you are using Linux for your firewall, look at [CODE] which is how the firewall is implemented. The Shorewall documentation will point you in the direction of [CODE] . It may be possible to get [CODE] to add the appropriate entry when it sees an login success message in a logfile. In my case I use authentication per...
1
0
321
2013-07-04T14:56:42.023
api_errors
serverfault.com
170,192
nginx + PHP-FPM = "permission denied" error 13 in nginx log; configuration mistake?
I've got nginx 0.7x + PHP-FPM running under PHP 5.2.10 on one RHEL5 server, but trying to duplicate that setup under the bundled-in PHP-FPM in PHP 5.3.3 on a second server, I'm having some trouble with permission errors every time there's a GET. FPM is started, and confirmed that fastcgi is listening on 9000, but each ...
You need to ensure you have [CODE] on all of the directories in the path leading to the site's root - so [CODE] , [CODE] and [CODE]
25
63
68,040
2010-08-13T13:21:46.713
data_quality
serverfault.com
162,442
Oracle strategy
I would like to ask you to help me with following situation: I have 2 servers. One is production and secondary is backup. Both are in 2 different geographical localizations. Switch between them in case of trouble with production is not essential. It could take max 1 hour. Both servers have installed JBoss EAP 6.5 and O...
Depending on whether you are running Windows or Linux, for the database i would have a non data guard standby, where you ship redo to the database throughout the day. Since you have standard edition, you can either use rsync or robocopy to incrementally copy the files that are not already there. If you run the commands...
2
1
67
2017-01-27T14:16:24.283
database_errors
dba.stackexchange.com
628,822
OpsCenter 5.0: Unable to get definition for cassandra-yaml for cluster settings
Adding a cluster in OpsCenter 5.0 without problems. As far as I can see, there are no errors in opscenterd.log. However, the web interface doesn't show any nodes. I can see that all XHR calls in the browser look good though. If I try to click "Cluster Actions" -> "Configure", I get this: [CODE] I've tried re-installing...
Well this is awkward. It turned out to be BitDefender Endpoint Security that blocked something. After adding our internal IPs to the "Traffic Scan Exclusions" in the policy, all seems fine.
0
0
89
2014-09-16T10:05:45.780
database_errors
serverfault.com
149,557
Nginx Static Content Server Maxing Out?
I use nginx to serve the static content for a decently busy website of mine. I have the logging disabled, and 4 worker processes enabled with 5,000 connections per worker (which should yield a max connection limit of 20,000. The server is only operating at about 10% CPU usage and 50% ram, but it's very laggy, and somet...
Some hints where to look at: You must have error logging enabled and look in there all the time. It gives a lot of information. What is IO untilization? Do you have Munin installed? Munin graphs give a lot of information as well. Do you have nginx-status module enabled in Nginx? If yes, what numbers it shows? What else...
0
1
1,687
2010-06-09T08:36:00.413
api_errors
serverfault.com
320,141
Putting server configurations in version control via SSH
I have a bunch of *nix servers in production. I would like to put it's important configuration files in version control The basic idea I had was to Put a distributted version control system so that each system's configurations are saved on its own drive. The way configurations are changed are either through an editor o...
I did something similar to this. However we would manage configuration files in Puppet which would then be stored in SVN. I have two other linux admins on a server farm of 160 servers and this worked well. It provided change history (SVN) as well as configuration management via Puppet.
4
5
170
2011-10-10T13:20:11.727
infrastructure
serverfault.com
1,077,658
SRV records not created on new domain controller
I've stood up a new domain controller and attached it to my existing domain and that seemed to complete without issue. But then when standing up a new server and attempting to attach it to the domain using the new domain controller I got an error that it couldn't find the domain controller. It turns out the new domain ...
I had this issue register in DNS setting
0
0
876
2021-09-15T14:37:20.503
infrastructure
serverfault.com
801,239
Monitoring AWS instance with Check_mk
I installed OMD V1.20 (CentOS 7.x) with the help of this tutorial . I was able to successfully add the server itself as host and it showed some 18 processes and is running fine. After that, I proceeded with installation of [CODE] in an AWS instance (Ubuntu 4.8.2). I am able to successfully test it using [CODE] from the...
Make sure you edit the agent type of the host to "Check_MK". If it says "No Agent" this is why you only see ping. After you check this make sure to re-inventory the host.
0
0
2,188
2016-09-06T03:47:20.150
pipeline_ops
serverfault.com
164,909
Integrating with a payment provider; Proper and robust OOP approach
History We are currently using a so called redirect model for our online payments (where you send the payer to a payment gateway, where he inputs his payment details - the gateway will then return him to a success/failure callback page). That's easy and straight-forward, but unfortunately quite inconvenient and at time...
As a developer working almost exclusively with payments I perhaps can give you some pointers about where the possible pitfalls are. I'm working for a site with high traffic, ~40 active payment service providers (PSPs) and dealing with tens of thousands transactions per day. And trust me, the sh*t will always hit the fa...
8
8
2,710
2012-09-14T15:49:05.083
api_errors
softwareengineering.stackexchange.com
513,815
Email issues with only an A Record Pointed
Configuration: Go Daddy: Registrar of domain. DNS is here. A Record is pointed to bluehost. Bluehost: Host of the website files. Basically, I have a PHP based contact form that utilizes mail(). Whenever a contact request is sent through with the recipient being an email address at the domain hosted with Go Daddy, the e...
MX Records & Local MTA Records With most MTA's, if the email domain is listed in the MTA's "local" delivery list, then DNS is never consulted. I think Bluehost uses Plesk/cPanel. On these systems, local email delivery is enabled by default. As a result, email from your web form to your own web site domain will fail. Em...
0
1
191
2013-06-06T15:23:13.583
infrastructure
serverfault.com
142,314
Repopulating PostgreSQL database with data directory from another database Instance
I have had to delete PostgreSQL for an issue and reinstall it, however before uninstalling I did not execute the command pg_dump. I still have the data directory from this instance. After reinstalling PostgreSQL, I receive all the same tables and schemas from my prior database, but not the same data. The data directori...
Assumptions I'm assuming you have two instances each one with a different data directory but with the same schema for the same version of postgres installed. I'm also assuming when the server starts is using your newly created, possibly empty, instance What to do You should try to start a new instance of the server poi...
0
0
429
2016-06-27T05:13:38.413
database_errors
dba.stackexchange.com
605,372
Problems compiling PHP make: *** [sapi/cli/php] Error 1
Here is the message I am getting: [CODE] Also I have been receiving allot of warnings while I was compiling with Make. e.g: [CODE] They are many more of those. Here is my commands: [CODE] I am login in as root. Here are more details: PHP-5.5.13 Mac OS X 10.9.3
looks like PHP cannot find the symbolds because iconv renamed them. See the following link for details: SuperUser Answer by fidell qoute: The MacPorts iconv library renames the symbols to _libiconv_open and _libiconv_close. That's why PHP couldn't find them,... Run nm /opt/local/lib/libiconv.dylib vs nm /usr/lib/libico...
0
1
2,512
2014-06-16T06:43:48.950
infrastructure
serverfault.com
889,095
Send HTTP request through proxy server to Internet
I have a client that has no direct access to the internet. But it is connected to a server on a LAN connection, whereas the server has access to the Internet. I'd like to send an HTTP request from the client through the Server to the Internet. How can I do this? [CODE] Steps: Client sends request to Server on LAN at ht...
There is two solutions. First - configure NAT on server, Second - configure HTTP Proxy. So, from my point of view, for your situation best way - configure NAT, you don't need to install any additional software, just configure firewall. To configure it on [CODE] you should do two steps: First of all make sure the packet...
1
3
1,908
2017-12-20T19:55:10.200
infrastructure
serverfault.com
248,763
Using XQuery to filter out some children, but preserve parents
[CODE] Gives the following resultsets Original: [CODE] Filtered to exclude non-(b|c) - but parents are missing: [CODE] What I want (available with delete steps but not with .query): [CODE] Is is possible to preserve the parents in an XQuery?
You may try following [CODE] But it may not be suitable if your real XML is more complex and you have to exclude node at a deeper level of nesting. Speaking honestly, I don't think that XQuery is the good tool for such sort of tasks. In essence we have XML and we need to remove a node somewhere within, i.e. we need to ...
9
9
1,344
2019-09-13T23:02:32.310
warehouse_errors
dba.stackexchange.com
231,174
How to mark unit/integration tests when they do not apply for the current test configuration - Inconclusive or Passed?
In my test environment we are running the same set of integration (and sometimes unit) tests against different systems that have different capabilities. Some of the tests cannot be executed against some of the systems because a feature that enables this scenario is missing or we need completely different behavior. Curr...
If your test framework supports it, you should mark tests that can't be executed due to missing (external) dependencies as skipped. That gives the clearest picture in the overview. If the test framework does not support a 'skipped' status, then 'inconclusive' is a next-best option. At least, 'inconclusive' won't give a...
0
4
227
2014-03-04T12:15:15.670
api_errors
softwareengineering.stackexchange.com
172,608
Access Control not logging successful logins on MongoDB 3.4 Community
After adjust the verbosity of the parameter "accessControl" with the command: [CODE] The log file still not login successful login. On mongo 3.2: [CODE] On mongo 3.4: Only unsuccessful auth like: [CODE] So I can NOT upgrade my environment from 3.2 to 3.4 safely. I'm using MongoDB Community Version by repos: [CODE] Env1...
I found the problem: The systemctl call by default uses: [CODE] After some testing I changed this to [CODE] Procedures to change systemctl on Ubuntu: Edit: [CODE] Change: [CODE] Run: [CODE] And the problem was solved!
2
1
1,998
2017-05-03T11:07:04.213
database_errors
dba.stackexchange.com
486,645
kickstart partitioning error with LVM
In Kickstart, I keep on getting the error; Adding this partition would not leave enough disk space for already allocated logical volumes in vg_ibus I do not get why I am getting this error. This device (ciss/c0d1) is 450G. I simply want to make one Logical Volume inside that Volume Group. These commands are from the Ki...
It's likely not exactly 450G. Try to set a smaller size and use [CODE] so that the logical volume will grow to capacity of the block device. (Same as you are already doing for the physical partiion.) [CODE]
2
3
2,007
2013-03-11T13:27:28.770
infrastructure
serverfault.com
17,146
executeAsyncScript method doesn't appear when driver is instantiated as "Webdriver driver"
Going through the Webdriver Timeouts I noticed that for setScriptTimeout, if I type [CODE] I cannot see the method to select for "executeAsyncScript" when I type "driver." (driver dot) But if I type: [CODE] I can see the method for "executeAsyncScript" and so I can type [CODE] What is the reason for this?
As you can see in the Javadoc , the method [CODE] is inherited from the class [CODE] , while the interface [CODE] has no such method. Because you declare your variable as a [CODE] object you cannot call its subclass methods.
0
2
122
2016-02-19T10:04:09.913
data_quality
sqa.stackexchange.com
120,407
How can you achieve and maintain flow while pair programming?
Flow is a concept introduced by Mihaly Csikszentmihalyi; in short, it means to get into the "zone". You feel immersed in your task, focused; the task can be difficult but challenging at the same time. When people achieve flow their productivity shoots up. Programming requires a great deal of mental focus because we oft...
Edit: Disclaimer - This is how I define "the zone": [CODE] I try to avoid this state because, while I may produce correct code in the zone, I and other developers will have a hard time understanding it later on. To put it short: reading code that was written in the zone may often require the reader being in the zone. T...
18
16
2,091
2011-11-18T03:01:56.820
api_errors
softwareengineering.stackexchange.com
172,107
Deny access to removable storage media for Windows XP client machines via Group Policy
I am currently editing a GPO for user accounts of a particular OU and I want to disable removable drives access on a particular OU, problem is that all the client machines are Windows XP and the currently available policy works for clients that have Vista or above. How do I achieve this without having to manually go ar...
Found a post shows me a workaround how to do it! Hurray on to using the solution!
3
1
2,210
2010-08-18T22:45:38.047
infrastructure
serverfault.com
525,212
Forefront TMG is Stop Internet after few min after enabling HTTPS Inspection
Forefront TMG is Stop Internet after few min after enabling HTTPS Inspection, specialty I am enable to block other https websites but gmail is not blocking till i enable https inspection & if i enable https inspection internet will stop working after few min, FFTMG 2010 server not hung, its still response but there is ...
This is a very common problem with TMG, not be design, but by the implementation you decided to use, you need to make sure that you understand the HTTPS inspection before you actually enable it. I found out that SecureNAT clients does not work with HTTPS inspection, you will either need to enable the WebProxy clients o...
0
0
1,187
2013-07-22T07:40:41.360
infrastructure
serverfault.com
186,564
Ubuntu Linux, interpretation of top command result
I am a newbie to Linux OS and I had trouble on my drupal based sites which had turned out to be really slow. I am using 2 separate servers for hosting and MYSQL. On preforming the top command, I got the following result [CODE] The CPU usage for mysql process is 99.7%. Does it mean that my processors are maxing out. Wha...
You should check out why MySQL is so loaded, if you already have 2 or 4 cores that's probably not your problem. A good, cleverly optimized db system will be able to use much more ram before maxing out CPU time. Some things to look at before thinking about hardware upgrades are: table indexes slow queries tmp tables set...
0
0
1,943
2010-10-01T12:06:07.287
database_errors
serverfault.com
351,830
Tomcat configure maxThreads per webapp
i've asked this question once on stackoverflow. Sadly with no response. However i think this place might be more appropriate. Is it possible to configure tomcat to use a predefined number of threads per webapplication? The idear behind this is, if i deploy several applications on tomcat and let's assume one of those ha...
maxThreads setting is specified at connector level so you could define 1 connector per app and serve only one app through each. You will probably need a reverse proxy for that depending on your environment and application needs. Obviously you could also launch multiple tomcat instances although that would be much more ...
2
3
1,326
2012-01-20T10:21:14.823
database_errors
serverfault.com
679,643
What should I do to know if SSL is working?
I am working with NGINX, I just set up a domain and subdomain where I need to have SSL on both. Look at the server block for the subdomain [CODE] if I enter to that subdomain everything works propery, but, how should I know if the SSL it's been set up ?
You can run the following tests: [CODE] this will tell you if there is something listening in that port [CODE] [CODE] this will actually query the service and retrieve the certificates, you should be able to check the chain of trust using [CODE] as well. [CODE] use a third party service like the one provided by SSL Lab...
0
7
1,995
2015-03-31T18:28:39.503
infrastructure
serverfault.com
118,698
Tensorflow 2.11 error: AttributeError: module 'tensorflow._api.v2.compat.v2.__internal__' has no attribute 'register_load_context_function'
I had to update Tensorflow to the currently latest version 2.11. when importing i get "AttributeError: module 'tensorflow._api.v2.compat.v2. internal ' has no attribute 'register_load_context_function'". I have also completely reinstalled a full anaconda environment and downgraded Python to the version compatible with ...
According to this source , this error may be happening because you have the Keras package installed in your environment. Try uninstalling it: [CODE]
0
0
1,837
2023-02-21T17:44:33.587
data_quality
datascience.stackexchange.com
189,788
Does Windows 2008 R2 Server Core support AppFabric Cache Clusters?
I'm developing a solution that relies on Windows Server AppFabric's distributed cache features. Our current deployment scenario is to deploy use the same hosts for the cache cluster that our web apps and services run on. This has lead to a few issues regarding memory availability (causing the cluster to throttle). I ca...
No, at this time, Server 2008 R2 does not support .NET 4. http://social.msdn.microsoft.com/Forums/en/netfxsetup/thread/0cb922d1-b85e-43ba-b8ac-26400491480f Since AppFabric has a dependency on .NET 4, this would stand to reason that it won't work.
1
0
603
2010-10-11T16:27:45.190
pipeline_ops
serverfault.com
852,144
How do I remotely manage Hyper-V 2016 standalone via Windows 10?
How do I connect to my Hyper-V 2016 standalone via my Windows 10 laptop? Background: I'm setting this up as a home lab. I've followed a few guides , but I have not yet found a guide/Youtube tutorial that seems to work for the free edition of Hyper-V 2016. This is a "hello world" for Hyper-V standalone, and I can't find...
Found my specific issue :) I was using an invalid hostname, and the DNS wasn't resolving properly. WRONG: server-1.local RIGHT: server-1-local But on a different note, I also found that the Microsoft doc ( Remotely manage Hyper-V hosts with Hyper-V Manager ) didn't document all the instructions necessary for me to make...
7
22
55,655
2017-05-25T06:54:24.827
infrastructure
serverfault.com
427,580
How to enable compression for ssl in apache2?
We enabled SSL for our site, but now the client (Chrome browser) is reporting that content is not compressed. How to check if it is working? How to debug it?
SSL Compression isn't recommended but you enable it with directive [CODE] More information: http://httpd.apache.org/docs/2.4/mod/mod_ssl.html#SSLCompression
2
1
1,711
2011-06-16T16:31:15.337
infrastructure
serverfault.com
353,128
Recompiling python with SSL support on ubuntu
I have built/installed Python 2.7 on my Ubuntu 10.04 and I just saw that SSL is not activated. Do I have to rebuild Python ? How can I rebuild it with SSL support and update my current install ? I would not like to have a new install in parallel . Trying to use oauth2: [CODE] Traceback (most recent call last): File "",...
To link custom built software with library you need to have C headers installed. In ubuntu they are in -dev packages (libname-dev). In your particular case you need to install libssl-dev ( apt-get install libssl-dev ) and If you need SSL related functionality in standard library, then you should rebuild your python 2.7...
6
7
23,536
2012-01-24T15:46:10.103
api_errors
serverfault.com
1,051,051
Iptable rules for SMTP NAT to borrow static public IP of data center server
I'd like to run my own mail server on my (decent) home ISP connection rather than trusting my emails to any data center provider - mostly because I already have a machine running. Although in practice, my public IP never changes, my ISP would not provide me with a proper static IP for which I could adapt the reverse DN...
Run the mail server on the VPS. Encrypt data in motion by enabling TLS for all protocols. Encrypt data at rest with disk encryption. If you don't trust the provider, consider a more complex setup of doing the encryption yourself, and entering the key on instance boot. Back up data and get it off site to home and a diff...
0
1
430
2021-01-25T00:14:53.453
infrastructure
serverfault.com
336,697
Installing PECL package on Ubuntu -- cannot find config.m4
I've got a new Ubuntu installation set up and running, it servers PHP pages on Apache, everything works normally. I'm trying to install a PHP-PEAR package called SCA_SDO , there's an issue with some programs I'm unfamiliar with such as phpize (prepares a PHP extension for compiling), and advanced features of the PECL i...
PHP 5.3 can't compile with this package.
2
2
8,119
2011-12-01T16:39:09.573
infrastructure
serverfault.com
23,194
configure remote connection for multiple instances sql server 2008
I've installed 2 instances of SQL Server 2008 R2 onto our local windows server. For the purposes of testing I've turned off the firewall. I'll get the firewall back up after I manage a successfull remote connection. The server isnt exposed anyway. TCP\IP is turned on for both instances. The default port is assigned to ...
I needed to clear out the values in the TCP dynamic ports. I had 0 in there.
2
1
3,825
2012-08-27T12:34:59.133
database_errors
dba.stackexchange.com
10,340
Primary key index with a DATETIME as first part of the compound key is never used
I have a problem with INDEXING a DATETIME (or even a date) as first part of my PRIMARY KEY. I use MySQL 5.5 Here are my two tables: [CODE] I fill both table with exactly the same data (near 10 000 000) But: stats table use a DATETIME for dateDim stats_todays use un INTEGER with TO_DAYS() for dateDim My question is: why...
This is a bug in 5.5.x. See here That suggests that your query should be [CODE]
17
6
3,665
2011-12-30T13:28:38.703
database_errors
dba.stackexchange.com
37,600
Read-only root file system - ext3 error?
I have a problem with ext3 filesystem. It's not writable and I can't remount it. [CODE] Can I fix it without server restart?
It's probably dropped into read-only mode at the LVM level ( [CODE] will lack a 'w' in the second caracter of the [CODE] column), so you might be able to flick it back with an [CODE] . Alternately, the VG may have dropped write access (typically caused by a hardware failure), in this case indicated by a lack of [CODE] ...
4
7
30,195
2009-07-08T10:51:58.827
infrastructure
serverfault.com
855,914
Prevent MITM for an AWS RDS MySQL instance
What prevents anyone from sniffing (MITM) the traffic between an RDS MySQL instance (outside of a VPC) and a Web server if an SSL connection is not setup (default on AWS) ?
Generally nothing can prevent from MITM if both of these conditions are true: There's no encryption. The attacker can see the data i.e. has access to anything the unencrypted data goes through. There are many Scenarios for Accessing a DB Instance in a VPC . I need to assume, based on your question, the worst case scren...
0
1
314
2017-06-15T08:06:18.323
database_errors
serverfault.com
581,456
How should DNS be configured for remote VPN access to a Windows Domain?
Suppose you have a small windows domain configured as follows: domain name is [CODE] (as per these guidelines ) [CODE] is at 10.10.10.3 [CODE] is at 10.10.10.4 [CODE] and [CODE] are running the AD-integrated DNS and DHCP Server roles AD DHCP is configured with an address pool from 10.10.10.50-99 AD DHCP is issuing clie...
For Windows laptops that sometimes connect via VPN, how should their DNS be configured? The Network Adapter should be configured with DNS local to itself, either ISP or Home Router DNS. The VPN Adapter should receive the AD DNS servers via DHCP you have listed when connecting to the VPN. In addition, DHCP should be han...
7
2
12,706
2014-03-12T02:17:08.873
infrastructure
serverfault.com
316,042
Need help with left joins to avoid duplicate rows while appending column from another table in MariaDB?
I have this query which is meant to output the guest's name, how much they paid and the description for the associated item they have paid for. [CODE] This output is not correct because it duplicates the rows and makes a mistake in appending the column from the extra_test table. I have exprimented with LEFT and RIGHT j...
I think there is something missing in your schema. extras_payments_test relates to booking_test, and extra_test also relates to booking_test. But how can you know which payment is related to which extra? When you write: [CODE] It means: for each record or extras_payments_test, give me matching records from booking matc...
0
0
7,056
2022-08-25T10:52:04.800
database_errors
dba.stackexchange.com
197,961
Is Domain Entity violating Single Responsibility Principle?
Single responsibility ( reason to change ) of an entity should be to uniquely identify itself, in other words, its responsibility is to be findable. Eric Evan's DDD book, pg. 93: most basic responsibility of Entities is to establish continuity so that behavior can be clear and predictable. They do this best if they are...
Behavior in this context is refering to semantic behavior. For example, a Property on a class (i.e. attribute on a domain object) that is used to uniquely identify it has a behavior. While this is not represented in code directly. The expected behavior is that there will not be any duplicate values for that property. S...
16
7
4,246
2013-05-13T17:36:53.937
api_errors
softwareengineering.stackexchange.com
108,899
SQL Server Services empty in SQL Server configuration
As I upgraded from Windows 8.1 to Windows 10, I noticed that the SQL Server Services in SQL Server Configuration Manager is empty. SQL Server still works perfectly well at the moment. SQL Server 2014 is installed on a local machine. I have read blogs - https://www.mssqltips.com/sqlservertip/2492/why-is-sql-server-confi...
I did the upgrade on my laptop with SQL Server 2008 R2 and SQL Server 2012 already installed. The issue I had was that SSCM actually disappeared from the Start Menu, if after repair it would not put them back. I ended up finding them under the Windows root directory, but have since done a complete reinstall of Windows ...
9
1
16,929
2015-08-03T20:52:06.237
database_errors
dba.stackexchange.com
930,465
Dell R610 Cannot create VD with disks
I'm having an issue adding some additional drives to my Dell R610. I first tried using a few HGST 600gb sas drives model: HUC106060css600 I then tried to use a few HGST 600gb sas drives model: HUC109060CSS600 The issue I am having seems strange to me but I am somewhat new to this. I can see the drives in the PERC and a...
It seems the issue is with the firmware on these specific drives. Attempting to write anything to them and sometimes even just a read on them results in a fault. I have since tested other non-certified drives; including consumer grade sata drives. They worked just fine. I have not yet messed with trying to flash a diff...
4
0
305
2018-09-11T18:39:09.263
infrastructure
serverfault.com
137,318
Slow query / Indexes creation (PostgreSQL 9.2)
I have the following Query: [CODE] Explain analyze link: http://explain.depesz.com/s/Oc6 The query is taking ages, and I can't get the problem solved. These are the index I've already created on the inode_segments table: [CODE] These are the index I've already created on the inodes table: [CODE] Question: What else can...
Perhaps this will help. If you'll rely on the account_id from full_path often, then you'll benefit from a function and a functional index for it: [CODE] Ensure [CODE] has an index (or key much better if applicable) on [CODE] ! You run the function [CODE] several times for each row, this is likely taking a significant t...
1
0
103
2016-05-03T03:39:38.097
database_errors
dba.stackexchange.com
154,393
permission 403 error
I switched from opensuse yesterday and i'm trying to configure the personal pc. In opensuse was pretty easy because i only needed to use the yast. Now: I've got 403 error [CODE] /etc/apache2/sites-available/ros [CODE] The /etc/hosts file [CODE] Also in /var/log/apache2/error.log [CODE] I have chown the /home/daniel/Pub...
Your home directory is probably 700. Apache just needs +x to get into the directory so we can just do this [CODE] As long as /home/daniel/Public/ros is 755 you should be good to go.
0
1
428
2010-06-24T10:36:11.707
api_errors
serverfault.com
330,947
Rename url hiding file extension
I want to show the URL [CODE] as [CODE] [CODE] and [CODE] in the URLs may be present, but not always. I have put this .htaccess file in designit folder: [CODE] Now, It is showing [CODE] as [CODE] but it is not showing [CODE] as [CODE] I get "Internal Server Error.The server encountered an internal error or misconfigura...
Here's your solution: http://some.com/designit/portfolio/website/nature should give http://some.com/designit/portfolio.php?cat=website&subcat=nature You only need one rewrite rule: [CODE] Please note that: cat and subcat should only be alpha caracters (you may change it to fit your needs) you don't need to test whether...
2
2
265
2011-11-14T08:52:52.067
infrastructure
serverfault.com
933,659
wordpress ERR_TOO_MANY_REDIRECTS through varnish, but not through apache
I'm having this weird problem with a varnish-wordpress setup. I get TOO_MANY_REDIRECTS when I try to divert traffic through varnish, but if I configure apache directly with a vhost listening on 443, it works just fine. Relevant parts of default.vcl in varnish: [CODE] I'm using pipe temporarily, in order to make sure I ...
Basically the problem was related to wp-config. I inserted this code: [CODE] And it worked. Initially I simply tried $_SERVER['HTTPS'] = 'on';, but I received a 50x error. Not sure exactly why. On other wp installation, the simple directly did work. I'll have to do some more tests in the future.
1
2
1,942
2018-10-02T17:39:35.167
infrastructure
serverfault.com