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 |
|---|---|---|---|---|---|---|---|---|---|---|
952,658 | PHP FPM .conf per site vs server PHP pool performance tunning | I saw this article how to tune the PHP FPM https://medium.com/@sbuckpesch/apache2-and-php-fpm-performance-optimization-step-by-step-guide-1bfecf161534 this article shows Excel sheet to calculate best php poold. conf values calculated to the server's hardware. Until now I used one .conf pool.d file for each web site, ho... | If these "tuned" values are calculated based on the maximum capacity of your server and you put the same values to every site, you'll consume your resources multiple times. Instead, these values should be distributed between the pools so that the sum from all pools is equivalent with the "tuned" value. And this is if t... | 0 | 0 | 616 | 2019-02-06T18:47:14.763 | infrastructure | serverfault.com | |
611,351 | LXC networking not giving outgoing connection | I have a LX container on Ubuntu 13.04 which has worked flawless for the last 161 days. I restarted the host and started all the LXC's and I'm allowed to connect to the LXC containers from the outside. But I can't establish connections from inside a LXC and out. Trying to ping Google.com or any other site doesn't work. ... | It seems that I was missing some details when using prerouting. Adding [CODE] to my iptables solved the issue. | 1 | 2 | 639 | 2014-07-09T19:17:14.803 | pipeline_ops | serverfault.com | |
539,807 | hostapd, rtl8192se and wpa not working: EAPOL-Key Timeout | Ubuntu 12.04.2, 3.2.0-49-generic, x64 hostapd from saucy (hostapd_1.0-3ubuntu2_amd64) Have tried from precise-updates as well to no avail. You can see in the debug output below, hostapd sends the EAPOL-Key request to the client, but hears nothing back... I've tried: WPA only WPA + WPA2 several hostapd versions from 0.7... | I met the similar problem with hostapd_1.0-3+b1_armhf.deb several days ago, when i setup wpa on my ap (raspberry pi), evenif the passpharse was inputted correctly, the connection always failed by password authentication. After trying a newer version(hostapd_2.1-0ubuntu4_armhf.deb), the problem is gone. I don't know the... | 4 | 1 | 4,700 | 2013-09-18T07:27:50.987 | infrastructure | serverfault.com | |
575,281 | Using isc-dhcp-server to allocate addresses from subnet different from server subnet | I'm trying to break my network into different subnets. Server is located into 192.168.15.0/24 subnet. I have the following declaration in my dhcp.conf: subnet 192.168.15.0 netmask 255.255.255.0 { [CODE] }; When I'm trying to change it to another range: subnet 192.168.14.0 netmask 255.255.255.0 { [CODE] }; No addresses ... | I am not fully sure what you are trying to achieve. I can see two possibilities: You have TWO subnets with router in between and want to have ONE DHCP server responsible for IP address assignement. In this case you likely should have a look at dhcprelay (which is also a part of isc-dhcp) or so called "ip helper" or "dh... | 0 | 1 | 3,387 | 2014-02-13T10:18:01.097 | infrastructure | serverfault.com | |
364,852 | really simple: file permissions | I really don't understand. I have on my localhost web projects on the path [CODE] I have changed ownership of that files to my user name via [CODE] . Now, assume I have [CODE] directory inside project (so the path is [CODE] ) and I type command: [CODE] so the permissions are: [CODE] but when I try to [CODE] i get permi... | Read (r) has nothing to do with accessing a directory. It's the execute (x) bit that allows you to cd into a directory. | 0 | 2 | 142 | 2012-02-29T13:28:24.527 | infrastructure | serverfault.com | |
748,264 | SPF check failed | I am having trouble with failing to deliver mails with my setup. Server 1 - [CODE] + Direct Admin IP: [CODE] , default domain (provided by hosting company: [CODE] Server 2 - [CODE] , IP: [CODE] , default domain (provided by hosting company: [CODE] A Jira instance runs on [CODE] , I am sending an invitation email being ... | The problem is that the email is sent with the envelope sender set to your gmail address. That means that the SPF record that is being checked is the record for gmail.com, not the one for your own domain. You need to fix your setup so that you either use your own address as sender, or so that you send your emails throu... | 0 | 1 | 1,137 | 2016-01-10T19:53:35.217 | infrastructure | serverfault.com | |
663,584 | Trac/Apache Displays Script Contents (WSGI) | I am struggling with a new Trac 1.0.3 install (from source after having same issue installing via [CODE] ). Debian 7.8 Apache 2.2.22 Python 2.7.3 Genshi 0.6 Sqlite 3.7.13 WSGI 3.3 I created the Trac environment in [CODE] and [CODE] holds [CODE] . I've updated Apache... [CODE] and my site's conf... [CODE] My [CODE] (whi... | Resolved my problem... Apache configuration... [CODE] Compare this config to that posted in the question. | 1 | 0 | 486 | 2015-01-30T00:07:18.383 | infrastructure | serverfault.com | |
887,736 | Data Transfer Pauses on LSI 9271 RAID Controller | I have a server equipped with a LSI 9271-8i RAID controller, with 4 x 4TB organized as RAID-5 and 1 x 8TB as JBOD (which is called RAID-0 in the controller). When I copy bigger amounts of data (~1 TB), I can observe the following: for the first few gigabytes the transfer speed is fine and limited by the disk or network... | I had a similar issue with a 9260-16i. It was not temps as I have dual 92mm fans blowing right on the LSI. I have a second server set up same way and it was fine. What I discovered was the server with the issues was set with a 64K strip size and working server had 256K stripe size. I backed up the problem server and re... | 1 | 1 | 498 | 2017-12-12T15:12:35.107 | api_errors | serverfault.com | |
191,760 | More than 15000 sleeping sessions in SQL Server 2014 | The CPU utilization is going to 100% regularly, and when I check SP_who2, it is showing around 20000 sessions, most of them are sleeping (also utilizing the CPU). I think the CPU load is related to the sleeping sessions The application name is showing as Microsoft JDBC. Most of the sessions are showing 'SOS_SCHEDULER_Y... | The application probably is leaking connections. I have no idea what they mean by The application team is telling they are using some 'Connection Pool' for the the connection management. But it sounds as they are trying to implement their own connection pooling system. Generally connection leaking happens when you have... | 4 | 7 | 15,181 | 2017-11-27T04:22:46.717 | database_errors | dba.stackexchange.com | |
260,740 | impdp - ORA-39000: bad dump file specification | While importing a dump file using the command: [CODE] The following error arises: [CODE] | The syntax for impdp for Oracle 11 is here . The FILE parameter that you have used should be DUMPFILE. Log should be LOGFILE. Here is an example from the documentation [CODE] | 2 | 1 | 23,516 | 2020-02-27T14:53:22.077 | warehouse_errors | dba.stackexchange.com | |
444,761 | Trying to get a local copy of my Linodes disk image but getting permission denied when logging in via SSH | I'm following this guide so I can download a copy of the disk image as I want to migrate to another host. When I get to the stage where this command needs to be entered: [CODE] (with the correct IP and a filepath of '/linode.img') I get a permission denied error, and I'm certain that I'm using the correct password as i... | I'd argue that you're doing it wrong. Here's what I'd do: Debian/Ubuntu On the old server [CODE] On the new server [CODE] RedHat/Centos/ScientificLinux/etc.: [CODE] and to restore [CODE] That'll install the packages that were on the old server, on the new server. Then the remaining thing to do is to use rsync to copy t... | 1 | 3 | 943 | 2012-11-02T12:42:53.700 | infrastructure | serverfault.com | |
114,509 | memory bound for kernel tricks in machine learning | Based on Andrew Ng's lecture on Kernel , you use training samples (referred as landmarks l) and use them during prediction to construct the higher dimensional representation of the given sample. This new representation of x (f) gets multiplied by w for the final prediction. If I were to implement this, does this mean I... | You have to store training samples for prediction because you need to calculate the similarities between the point for which you make a prediction and the landmarks, $f_i = \mathrm{sim}(x, l^{(i)})$ . This is similar to the $k$ -nearest neighbors algorithm where you predict the value of a test point based on the values... | 2 | 0 | 87 | 2022-09-19T00:30:23.143 | data_quality | datascience.stackexchange.com | |
260,799 | Would forcing developers to fix at 3 AM the build they broke undermine motivation? | Breaking the build is a bad thing. Different teams take different measures to encourage their members to avoid breaking the build at all costs. Some measures are moderate. For example Joel Spolsky tells that his Excel team had a rule that “whoever broke the build had to babysit the builds until someone else broke it.” ... | Broken builds happen. It is impossible to completely avoid them. Developers may be distracted while merging changes, or may simply not have run all of the tests in a very large system where a complete test run may take a significant length of time. Whatever the reason, it is important to realise you cannot always ensur... | 1 | 6 | 356 | 2014-10-24T03:52:35.700 | api_errors | softwareengineering.stackexchange.com | |
426,995 | Strange FTP issues - some files are not downloaded | I have a machine, which cannot fetch some files from remote servers by FTP. Machine is powered by CentOS. I tested FTP on three files: [CODE] From them, I can always successfully download only one - ll091212.004. Two others are downloaded by about 90% (I can see them on disk) and then FTP transfer hangs without any err... | You can also check your firewall and look for ip-based traffic limitations | 0 | 0 | 88 | 2012-09-13T08:34:38.727 | infrastructure | serverfault.com | |
121,631 | Postfix dynamic smtp_helo_name | I have a mail server that relays e-mails for two different domains. I want the [CODE] to be different based on the domain. I'm assuming there is no way to do this via checking the mail headers, so I was wondering if there was a way to do it by sending mail for one domain to one IP address, and mail for the other to ano... | This should work (not tried it, though): Define a separate transport for the other domain and then route mail to this transport using [CODE] option in main.cf. Something like this: In 'master.cf': [CODE] In 'main.cf': [CODE] In 'relay_maps': [CODE] And run 'postmap /etc/postfix/relay_maps' | 4 | 2 | 8,000 | 2010-03-11T18:51:55.690 | infrastructure | serverfault.com | |
297,843 | How to decouple SELF as a special word within Rebol objects? | Rebol has no keywords . It's a concept that forms a part of what makes the language so versatile—any word can be reassigned, any word can be assigned the value of a 'built-in' function—and one that in the general flow of the language holds true*. However there are notable exceptions within two of Rebol's basic structur... | Is there an approach to removing the special qualities of these words that'd work while retaining the characteristics of each type? Well, what are those characteristics? For SELF: Points to the object instance so it can self-reflect. Cannot be overwritten by your own code. Automatically present without you having to as... | 2 | 2 | 134 | 2015-09-21T17:45:20.687 | api_errors | softwareengineering.stackexchange.com | |
47,248 | Importing a large column (8000 chars) from Excel using SSIS | I'm trying to set up a regular import of an excel spreadsheet that we get from a vendor. I'm using SQL 2008 R2 SSIS to import it into a table. The problem connection manager is an OLE DB connection to the spreadsheet. The spreadsheet is Excel 2005. The database connection manager is using Native OLE DB\SQL Native Clien... | We finally resolved the issue. It turns out that SSIS calculates the length based on the first handful of rows in the excel file. When we moved the rows with the longer data to the top the columns changed to unicode text (allowing for the extra length). | 7 | 5 | 15,484 | 2013-07-29T21:56:51.640 | warehouse_errors | dba.stackexchange.com | |
220,926 | Binary data storage scheme (saving user-uploaded files) | In our app we are currently saving binary data to the database (terrible, I know; but this is legacy stuff and it wasn't my decision). We're trying to migrate this data out to an external device and I'm trying to come up with a scheme to save these files. We have multiple tenants, I'd like to have a directory per tenan... | The idea of hashing the directories (not to be confused with generating a hash of the file name) and thus breaking it down into multiple directories is a good one. If its multi-tenant, you probably have a database id for the clients. And its a good idea to track the existence of the files in your db with a unique id (a... | 2 | 3 | 538 | 2013-12-10T18:16:11.013 | api_errors | softwareengineering.stackexchange.com | |
719,996 | iptables setup for bridge, redirect dns traffic | I am trying to forward dns traffic on a bridge to a local dns server and it wasn't working. As a thought exercise I decided to block all traffic and that too isn't working. Here is my setup : [CODE] results for [CODE] (The MAC addresses are for eth0 and eth1): [CODE] results for [CODE] : [CODE] This is only part I wasn... | Traffic going over a bridge doesn't (necessarily) go through netfilter. Check the value of the [CODE] sysctl; if it's [CODE] , then that's the problem -- set it to [CODE] and all will be well again. On kernel 3.18 or later, you may need to load the [CODE] module in order to make the above sysctl available. | 1 | 0 | 665 | 2015-09-04T03:22:54.517 | infrastructure | serverfault.com | |
484,770 | TXT record for a server behind a router? | I've found this wonderful explanation of SPF on http://www.openspf.org/SPF_Record_Syntax and i had it working on my older setup. Setup has changed and i find myself in the ropes again. I have an external DNS service. A router on a dynamic IP connection. A server with a 10.0.1.3 internal ip. DNS records on this server, ... | SPF depends on DNS. The DNS system uses Time To Live to reduce request load on DNS servers. This means changes in DNS don't instantly propagate to the entire internet. Therefore, it is not really possible to make your planned config completely failsafe as long as the public IP of your mail server can suddenly change. Y... | 4 | 1 | 757 | 2013-03-05T10:28:27.030 | infrastructure | serverfault.com | |
1,017,432 | nginx config causes "Primary script unknown" | I am having a really puzzling issue with my nginx config. I keep seeing this error: [CODE] I did try the suggestions in this question and also this one but nothing has worked. I am asking as a separate question in the hope that someone can help me out (after 2 days stuck on this). This is my nginx/sites/available/apist... | You're probably facing bug or feature ticket 321 : try_files clears $fastcgi_path_info. Add this before your try_files: [CODE] | 0 | 0 | 277 | 2020-05-16T17:16:43.527 | infrastructure | serverfault.com | |
460,700 | Extending Ubuntu LV - added new HDD | I have installed a new hard drive into my pc and followed this guide to extend the logical volume but I have barely gained any space? http://support.cloud.eduserv.org.uk/entries/21157521-extending-an-ubuntu-vm-s-disk-space-using-lvm I started out like this [CODE] I installed a 250GB hdd and followed the above guide and... | fixed [CODE] what was missing... Find Free PE / Size 57574 / 224.90 GiB and run [CODE] then [CODE] | 1 | 1 | 106 | 2012-12-24T19:13:48.357 | infrastructure | serverfault.com | |
759,494 | Is it possible to run the Cisco NX-OS 6.x copy command without the prompt to select a VRF? | I am currently working with a network scanning tool that logs into Cisco routers and runs commands on those routers. The problem I'm encountering has to do with what the copy command expects. The copy command (documentation link below) prompts the user: Enter vrf (If no input, current vrf 'default' is considered): Pres... | The vrf statement is optional at least in the 7.x code on 5500's and 9K's I have access to at the moment as well on 6.2 on 7K's I've used recently. Indeed, the point of the default vrf is that it's taken as the vrf when something else isn't specified. One thing you might consider trying is the command: [CODE] which wil... | 1 | 1 | 803 | 2016-02-24T16:21:52.003 | infrastructure | serverfault.com | |
618,718 | Synology NAS 3 HDDs corrupted | Its the first time I am interacting with NAS. In our NAS Server we have 5 hard disks and three out of five are now corrupted. Do we need to buy 5 new HDDs or we can buy 3 HDDs and used the old two Hard disks with the new ones. Thanks! | You should use 5 matching drives. So either get 3 new ones that are the same size as the old ones, or buy 5 all new drives of the same size. It will work with mixed drives, but probably not the way you want. | -3 | 0 | 82 | 2014-08-07T13:40:20.750 | data_quality | serverfault.com | |
379,964 | What tactics to use to load the referenced data in repository implementation? | Say that I have a repository that is used as READ-ONLY data provides (never for the writes/updates) - the query part of the CQS, NO event sourcing, hitting relational DB. One of the essential rules - application logic is dictating the interface and the models to be restored from the repositories, no exposure of the und... | There is definitely an interesting problem at play here; but I think you're looking at it the wrong way. Your question is, at some points, dangerously close to becoming an XY problem , as you seem to be indirectly asserting that caching (Y) is the solution to loading referenced data (X). Some short feedback on why I'm ... | 4 | 3 | 404 | 2018-10-13T19:32:32.277 | database_errors | softwareengineering.stackexchange.com | |
1,030,039 | How to set up connectivity between virtual machines on different VMware dedicated servers? | I have 3 dedicated servers at Hetzner with VMware vSphere. [CODE] All servers use Pfsense and have WAN and LAN IP-addresses. Some virtual machines are accessible via the WAN via manually configured port forwarding. Most virtual machines don't have external IP addresses, but I'd like to configure vmware01/vmware02 to ba... | You can use Hetzner's vSwitch feature to set up a VLAN that connects to each of your root servers. You can use a VLAN ID between 4000 and 4091. Then on each server you will configure the VLAN to have any networking configuration you wish. | 0 | 0 | 278 | 2020-08-13T19:56:46.387 | infrastructure | serverfault.com | |
1,054,230 | nginx reverse proxy subdomain problems | I'm using nginx as a reverse proxy for multiple services. I'm running (phpmyadmin, MySQL, graphql api, nextjs-apps etc.). I'm going to refer to my domain as [CODE] I previously used [CODE] to access phpmyadmin, I now want to change this to [CODE] because I want to use [CODE] as TCP proxy for my MySQL server. The approp... | It's working now. I don't know why or how, but it's working and I'm going leave it there. I didn't change any config files in the last few days, and when I tried it today, it worked. subdomain was created about 3 weeks ago so that couldn't be the problem. | 1 | 0 | 533 | 2021-02-19T09:04:13.037 | database_errors | serverfault.com | |
1,032,011 | Restore Default sources.list on Ubuntu EC2 | I have crashed my [CODE] file on an Ubuntu EC2 system. Is there a way, without reinstalling it, to get the [CODE] back? I tried to find a copy with Google, but had no luck. Thanks for your help. | The easiest: spin up another instance from the same AMI and copy it from there. A tiny one like [CODE] will cost you a fraction of a cent for the few minutes that you’ll need it for. Hope that helps :) | 1 | 2 | 305 | 2020-08-30T04:36:25.323 | database_errors | serverfault.com | |
295,030 | postgresql: Replaying of streaming WAL files is slow on some standby servers | Environment: Postgresql 9.6.21. Multiple standby servers managed by patroni [CODE] Some of the pg_settings values: [CODE] We have attempted with changing the number of synchronous standby from 1 to 3. Tried changing [CODE] to [CODE] . Problem: The replay lag (precisely this - [CODE] ) is varying on different standby se... | I wouldn't call 200 WAL segments per minute (over 3 GB, if you have the default segment size of 16MB) "moderate". It may well be that the single thread that replays the WAL information is the bottleneck – but that wouldn't explain the discrepancy between the standby servers. To debug that, set [CODE] to a low value lik... | 5 | 0 | 991 | 2021-06-30T05:06:39.387 | pipeline_ops | dba.stackexchange.com | |
500,395 | Hyper-V Image Memory inconsistent | I have a server that is running Windows Hyper-V. Today I noticed that one of the images was consuming a large amount of memory on the server and choking off the other images. In the Hyper-V manager is shows an Assigned Memory of 30235 MB, and a Memory Demand of 45050 MB. But when I enter into the actual image and call ... | To support Dynamic Memory on Windows Server 2008 Standard , you must be running at least Service Pack 2 and you must install hotfix KB2230887 . The hotfix will add support for Dynamic Memory for the Standard and Web editions of Windows Server 2008. Not sure what Windows will do otherwise. As well, depending on the work... | 0 | 1 | 116 | 2013-04-17T23:28:40.943 | infrastructure | serverfault.com | |
1,453 | Setting up SSL on my server | I run a web server that hosts three different domains using named virtual hosts. What do I need to do to enable SSL connections (https) to these domains? EDIT: As Joel pointed out I forgot to state that I'm running Apache 2.0 on Scientific Linux which is just RHEL rebranded. | The exact process is different depending on your platform and web server, but the basic process looks like (assuming you want a signed certificate that works for just about anyone visiting the site): Verify that the WHOIS information on the domain name is correct and that the administrative contact has a valid e-mail a... | 3 | 3 | 310 | 2009-04-30T18:50:53.570 | infrastructure | serverfault.com | |
273,596 | web application lag when connecting to VPN database | I have a network traffic question, that I may get a lot of answers for. At work, I'm VPNing to a client's internal network where they have their stage SQL database. Every time I stage development (fixes/enhancements), I like to do a round of quick QA. When I run SQL queries in SQL Server Management Studio, things don't... | When you use remote desktop, only the screen updates are being sent to your PC, so the traffic going across the VPN is minimal. In that scenario, the database call you are making from Remote Desktop TO SQL Server is actually happening on the local network on the other side of the VPN. Your machine is just getting the R... | 1 | 0 | 2,923 | 2011-05-20T17:47:10.090 | database_errors | serverfault.com | |
103,919 | Query to return zero entries with COUNT | I have a problem with one task. I need to display various information through two diferent queries.(or one if it could be possible) The table has these fields. Location is set to x [CODE] My first query is to get all entries from certain types [CODE] which gives me [CODE] Next thing i need to get entries that have a ce... | The way I'm understanding your question is that since the arrays for a and b don't have a value for 'in location y', the loop 'skips over' it and displays the value 1 for d in the first open row. You could try pulling out locations for all the arrays (even the non-y values), and then using an if statement to display ei... | -1 | 0 | 1,405 | 2015-06-12T16:51:38.027 | warehouse_errors | dba.stackexchange.com | |
44,470 | "SSL error parse tlsext" on large commit to SVN via Apache, Gentoo | This happens only on large commit (resulting in a failed commit): Revelant section from virtual host config in Apache Require valid-user Dav svn SVNPath /home/svn/ Commit result: Transmitting file data ..............................svn: Commit failed (details follow): svn: PUT of '/!svn/wrk/48583f7d-0e01-410d-8941-33d2... | I haven't experienced this issue, but I spent a while googling around and found that it may have been introduced in Apache 2.2.12 or 13. It is suggested that downgrading to 2.2.11 may fix it, as well as setting SSLProtocol -ALL +SSLv2 +SSLv3 in your Apache config. Neither one seemed definitive. Good luck! Hope you find... | 10 | 7 | 8,549 | 2009-07-23T07:47:00.740 | infrastructure | serverfault.com | |
4,028 | Xen vs. VirtualBox under heavy load? | Which performs better under heavy CPU and memory usage on the virtual servers, Xen or VirtualBox? | Xen will generally perform much better than VirtualBox because VirtualBox runs the guest OS in a way that the guest OS does not know it is running in a virtual environment. Or to put it another way, the guest OS is not modified to run virtually. Because of this, VirtualBox has to 'trap' kernel type instructions, run so... | 11 | 26 | 18,706 | 2009-05-04T14:28:51.420 | infrastructure | serverfault.com | |
22,509 | Optimizing MySQL for Read-Only? | We have 14 GB worth of CSV's which total 138 million rows. I imported this into a MySQL table first with InnoDB, and then tried again with MyISAM. In both cases, a simple SELECT on primary key (which is just an autoincremented int) took 6-7 seconds, though MyISAM sometimes was a little faster at 5-6 seconds. We only ne... | MyISAM ROW FORMAT If the table is a lot of VARCHAR fields, I would love to suggest the following For every MyISAM table you load, do this beforehand [CODE] This will increase query performance up to 15-30% without changing anything else . The side effect of doing this is having bigger tables and bigger indexes. I have ... | 6 | 3 | 4,477 | 2012-08-15T08:18:05.983 | database_errors | dba.stackexchange.com | |
22,219 | How to use automation to test an application that terminates all other sessions? | I have a Test case in which I logs into the application, then on the Home page there are 7 links and I need to perform testing for all these 7 links by clicking each link and performing a series of actions for each link. I can do this sequentially very easy by clicking on first link then performing all actions related ... | It appears that the application does not allow multiple sessions. Given this, testing will not be able to use multiple sessions either. Testing should only test the app 'as designed' and the design only allows for 1 session. Otherwise you are likely to start to run into either the issues that led to the application req... | 1 | 1 | 2,062 | 2016-08-24T05:49:50.860 | data_quality | sqa.stackexchange.com | |
21,412 | Real time monitoring of MS Windows servers and their services | We have a bunch of large HDTVs in our monitoring office keeping an eye on all of our production equipment. We are monitoring: Cisco routers HP switches HP proliant servers Windows 2003 IIS SQL server At the moment we use Nagios for uptime/availability and alert sending Cacti for bandwidth usage Perfmon running on Vista... | I would seperate out the charting/display from the montioring/alerting piece. You haven't said how many object you have. For most shops I'd write a powershell script to get the counters I want and pipe the output to powergadgets and for small shops use polymon to monitor the windows stuff and groundwork to monitor the ... | 14 | 4 | 12,711 | 2009-06-07T07:58:04.513 | database_errors | serverfault.com | |
231,777 | User rank based on cumulative rows | UPDATE: Full table schema and data: https://www.db-fiddle.com/f/jT3Mfwd1BJ8GrsBxxPDC8M/1 Table structure (some fields are hidden): [CODE] Rank is calculated based on sum of [CODE] of user's activities. I saw many questions here and on Stackoverflow but my problem is more complex. I need 3 rank values per user: global, ... | Using window ranking functions. I used [CODE] but you could as well use [CODE] or [CODE] depending on what you want to happen on ties. Unfortunately, window functions have been introduced in MariaDB 10.2 , so you'll have to upgrade from 10.1, in order to use this: [CODE] Tested at dbfiddle.uk | 1 | 1 | 458 | 2019-03-10T12:36:36.043 | database_errors | dba.stackexchange.com | |
123,683 | Problem trying to remove sub-query and use WHERE only to return certain rows | I am extremely new to SQL queries. I am studying for Microsoft 70-461 and came to an example that I thought could be simplified, but my version is returning the wrong results, and I wanted to understand why. This study guide show this query: [CODE] Which correctly returns 6 rows, My query: [CODE] Returns 231 rows, the ... | Without a predicate to describe matches between the two tables, you're simply listing all product / Japanese supplier combinations, regardless of whether or not the supplier is the right one for each product. [CODE] | 2 | 6 | 55 | 2015-12-15T02:05:37.817 | warehouse_errors | dba.stackexchange.com | |
163,238 | Most efficient way to join two tables with MAX value | I am optimizing a query, where I have to join two tables, let's say [CODE] and [CODE] table, and return multiple columns from both table for the last [CODE] from the [CODE] table for each Product in the [CODE] table. [CODE] table has around 13 Million rows and the [CODE] table has almost 2 million rows. Sounds pretty e... | You need to think about how you would like to solve this if you had a paper-based system. Like - do you want to use each ProductID one by one and find the newest one? Then your Nested Loop that calls a Seek using TOP 1 on an Index on (ProductID, Transaction Date DESC) will be best. Do you want to search through all you... | 4 | 2 | 6,875 | 2017-02-04T23:24:54.610 | warehouse_errors | dba.stackexchange.com | |
386,007 | Should detected vulnerabilities in old commits be remedied? | One of my projects on GitHub has received a vulnerability alert, in this case of moderate severity. The vulnerability has been detected in a dependency of an old version of the code. Current versions do not use this dependency anymore. Nevertheless, old commits may potentially be checked out and run, and open up the ap... | I see two viable options here. First, release a patch version of the problematic version. For example, if the problematic version is version 3.3 and you're on version 5.1, you can release a 3.3.1 that would address the vulnerability. This would allow users who can't upgrade to major versions (for any number of reasons)... | 8 | 13 | 416 | 2019-01-23T15:36:31.910 | api_errors | softwareengineering.stackexchange.com | |
1,092,687 | iptables list line numbers script iptables-save -bash: number-rules: command not found | I am trying to use a script for showing iptables line numbers from [CODE] command. The script was taken from this site: https://blog.oddbit.com/post/2018-02-08-listing-iptables-rules-with-li/ And is as follows with [CODE] name: [CODE] When I execute it throws below error: [CODE] I checked [CODE] with [CODE] And changed... | You need to make sure [CODE] is executable and then need to use [CODE] to execute it from the current working directory, as that's not in your path - so [CODE] | 0 | 2 | 413 | 2022-02-04T16:55:34.180 | infrastructure | serverfault.com | |
86,871 | Transactional Replication - Replication Order of Related Tables | ** This was previously asked on Stackoverflow - I removed it from there and recreated here ** I have an issue with SQL Server Transactional Replication. My topology is as follows (and this cannot be changed, so I'm trying to work within the limitations that it has). I have a publisher database (SourceDB) that is used b... | Looks like the pertinent part (in this case) was to ensure that both the parent and child tables are contained within a single publication; once we did this, then everything started to behave as it should, and 30 or 40 tests later we haven't seen any failures. At a guess... this means that both tables' log entries will... | 1 | 1 | 512 | 2014-12-23T13:24:14.370 | database_errors | dba.stackexchange.com | |
120,538 | Etag configuration with multiple apache servers or CDN / How does Google do ETags? | I have an application which is served from two apache2 servers and I want to configure the ETags on static content. In the future I would also like to use a CDN. I see that this is supposed to be a problem because the Etag information will be different from server to server... The ETag format for Apache 1.3 and 2.x is ... | You can configure Apache so it doesn't use the inode as part of the hash. See the FileETag directive. | 4 | 2 | 4,804 | 2010-03-08T23:25:02.537 | infrastructure | serverfault.com | |
287,036 | Restoring a SQL database in a production environment as an update mechanism | I'm a sysadmin who has recently been landed with some SQL DBA responsibility. Not reluctantly I might add, this is a world I'm very much looking to get immersed in. I am curious about one of the aspects of our existing setup (where DBA tasks were previously largely left to the developers), namely the update mechanism f... | As a general rule, I have an issue with the development team applying changes to a production database I am responsible for. If I was in your shoes, I would change the process so I applied all database changes in Production. This eliminates surprises (for you) and adds a new set of eyes to the process at the very point... | 2 | 2 | 128 | 2011-07-05T07:45:35.440 | database_errors | serverfault.com | |
362,014 | git, nagios and hooks, corrupted git repo | Background We're using nagios to monitor our infrastructure. We don't have the nagios configs under version control at the moment, and there are two of us that manage nagios configuration. As such, I'm working to get our nagios config into a central git repo, using some hooks to do syntax checking and then if the confi... | You're doing: [CODE] in your hook. Although it's not touching your usual working-copy it is updating references in the git-dir (specifically the [CODE] reference), as shown in your error: [CODE] Your hook is doing [CODE] to reject the update, but it's not (re)resetting the [CODE] reference after failure. I think you ne... | 13 | 7 | 1,472 | 2012-02-20T23:08:41.540 | data_quality | serverfault.com | |
310,149 | What is the DRY-est factory pattern to instantiate subtypes based on one of their properties' values? | Take the following class hierarchy: [CODE] [CODE] [CODE] [CODE] Each client must define a value for an enum property named [CODE] (string property [CODE] in the original version of this question; hence the accepted answer). [CODE] should then be able to instantiate by client type. [CODE] [CODE] could be a static proper... | It looks like you're combining a factory with a service-locator. Anyway, you can build a [CODE] instead of the array of types and querying them for which Url they respond to. This is even more flexible, because then you can allow your application to register new Clients at runtime, if that ever becomes necessary. | 1 | 6 | 730 | 2016-02-15T13:38:53.907 | api_errors | softwareengineering.stackexchange.com | |
163,946 | Code Design question, circular reference across classes? | I have no code here, as this is more of a design question (I assume this is still the best place to ask it). I have a very simple server in java which stores a mapping between certain values and UUID which are to be used by many systems across multiple platforms. It accepts a connection from a client and creates a clie... | A general way these references are broken is via interfaces. Instead of the parent class having a reference to the mapper, have it hold a reference to IWhateverParentNeedsFromMapper. Instead of the mapper having a reference to the parent, have it hold a reference to IWhateverMapperNeedsFromParent. Often, thinking about... | 5 | 9 | 2,000 | 2012-09-06T16:57:51.703 | api_errors | softwareengineering.stackexchange.com | |
105,641 | Oracle - Using index on unique constraint, what the deal? | Using Druid to generate SQL script for Oracle, I have seen a difference between the version 3.10 and 3.13 and I would like to understand what going on. SQL generated by Druid 3.10 : [CODE] SQL generated by Druid 3.13 : [CODE] As you can see, the only difference is that Druid don't generate anymore a [CODE] after the [C... | If the [CODE] clause is omitted, the index will be still created automatically with the same name as the constraint, in the same tablespace where table is created. This will not cause an error. http://docs.oracle.com/database/121/SQLRF/clauses002.htm#SQLRF52225 If you specify schema.index, then Oracle attempts to enfor... | 1 | 3 | 4,120 | 2015-07-01T09:30:57.510 | database_errors | dba.stackexchange.com | |
457,130 | Why OOM-killer invoked even when huge amount of RAM is free | On EC2 ebs-backed xlarge ubuntu instance, oom-killer is getting invoked. From /var/log/syslog output below, it appears that ZONE_NORMAL is running out of memory: [CODE] but why is ZONE_NORMAL allocated only 11MB of 15GB total RAM? Or is there some other reason for running out of memory? RAM available on machine (xlarge... | Looks like pretty legitimate OOM for me: You have one NUMA node(namely Node 0) which has three zones: [CODE] which has 15880kB free [CODE] which has 48996kB free [CODE] which has 11588kB free Almost all of your memory [CODE] is in [CODE] LRU list. Memory sizes in table are in pages (which on your architecture most like... | 8 | 14 | 14,323 | 2012-12-11T17:25:43.077 | infrastructure | serverfault.com | |
190,546 | A good C Variable Length Array example | This question got rather a freezing reception at SO, so I decided to delete it there and try here instead. If you think it does not fit here either, please at least leave a comment on suggestion how to find an example I'm after... Can you give an example , where using C99 VLAs offers a real advantage over something lik... | I just hacked up a little program that generates a set of random numbers restarting at the same seed each time, to ensure that it's "fair" and "comparable". As it goes along, it figures out the min and max of these values. And when it has generated the set of numbers, it counts how many are above the average of [CODE] ... | 9 | 10 | 19,633 | 2013-03-14T13:35:33.547 | api_errors | softwareengineering.stackexchange.com | |
235,309 | Best method of creating constant value | I have a query with a hard coded value which is also hard coded into my application (which has a comment saying that the value should be the same as the value hard coded into the query). What would be considered the best way to make that value discoverable outside of the single query it is being used in? A UDF immediat... | Scalar UDFs don't have to kill performance when they return a constant value. You can save off the function value to a local variable or parameter and use that variable in your query [CODE] On the other hand, if the constant is used in the [CODE] clause the estimates may be better using the literal. Unless an [CODE] is... | 1 | 2 | 898 | 2019-04-20T13:51:58.190 | warehouse_errors | dba.stackexchange.com | |
533,269 | Abbreviating a URL using IIS6 | Our web server is running IIS 6.0 and I have set up an abbreviated URL which points at the IP address of the web server. IIS is configured to bring up a web page located in a certain directory when a request comes in via the abbreviated URL. The problem that I am trying to resolve is, how do I configure IIS so that whe... | You need to set up host header recognition - go to the IIS management MMC, Web Sites > Right click on the site you want to add the short URL to, on the Web Site tab click "Advanced", Click "Add" and set the TCP port to 80 and the Host Header Value to the short URL. To make sure I understand what you're asking, when you... | 1 | 1 | 44 | 2013-08-23T13:59:53.840 | infrastructure | serverfault.com | |
266,155 | Design pattern for composition workflows | Please bear with me as I find this tricky to articulate exactly what I am after (probably not a good sign..). I have several services set up which can be combined in a particular order to create workflows. For example, imagine I have the following services: 1) HTTP -> File Store (takes a file over HTTP and stores it) 2... | Not sure really whether this will help but in F# you could create a computation expression something like the following, [CODE] This can be built from the following functions [CODE] you can then compose simple async workflows yourself to get the desired result. [CODE] Of course this implementation is language specific ... | 3 | 1 | 5,160 | 2014-12-11T10:00:06.807 | data_quality | softwareengineering.stackexchange.com | |
3,848 | SQL Xml returning empty root tag on empty record set | I am working on xml explicit to generate user defined nodes in xml output using Sql Server 2005 Express edition. The below code works fine, just that i couldn't manage to generate a empty node when no record set exists in the Users table. CODE: [CODE] OUTPUT: [CODE] Expected Output on Empty table: [CODE] Note: I don't ... | A possible solution to your question is neither elegant or clean (IMHO), but it does satisfy what you are looking for: [CODE] The output for this on my system is: [CODE] Please let me know what you think. Edit: I took your select statement and made it a subquery. The subquery is run first and generates the output XML s... | 4 | 6 | 10,574 | 2011-07-14T04:54:40.013 | database_errors | dba.stackexchange.com | |
179,850 | Need help in writing stored procedures in MYSQL? | This is my update query : [CODE] I'm new to Mysql programming, can anyone help me in designing this update process in a Stored Procedure. My table looks like this: CREATE TABLE [CODE] ( [CODE] varchar(100) DEFAULT NULL, [CODE] varchar(1000) DEFAULT NULL, [CODE] varchar(100) DEFAULT NULL, [CODE] varchar(50) DEFAULT NULL... | It might some help you. [CODE] | 0 | 1 | 90 | 2017-07-14T11:06:06.223 | database_errors | dba.stackexchange.com | |
89,784 | Duplicate databases error | I have two Oracle 11gR2 databases on separate servers. I want to duplicate these databases. For this, I do these steps : In auxiliary db : create password file with password that is same if target password In target database: Create a pfile and set db_name to auxiliary db in tnsname.ora set the auxiliary db with sqlplu... | the error messages you got because you don't have privileges to log in to the server so you need to grant the user the necessary access. some tips to solve this issue: 1) Mount the remote disk locally (map network drive). 2) Use rman CATALOG command to make the backups available. 3) user has enough privileges on ORACLE... | 0 | 1 | 278 | 2015-01-21T09:08:18.720 | database_errors | dba.stackexchange.com | |
723,842 | tcp_tw_reuse and tcp_tw_recycle not working in specific environment | We are running HAProxy to direct mysql traffic from PHP to a set of mysql servers. However, due to an issue with the way the mysql-client sends TCP packets, we get a ton of connections in TIME_WAIT with concurrent port utilization at 50k+ , and end up with SOCKERR messages on HAProxy due to port exhaustion under extrem... | Found the root cause. tcp_timestamps must be enabled on the local server as well as whatever outbound server you are trying to reach. tcp_tw_reuse and tcp_tw_recycle depend on tcp_timestamps to determine which ports to reuse. See this - http://vincent.bernat.im/en/blog/2014-tcp-time-wait-state-linux.html | 0 | 1 | 2,353 | 2015-09-21T20:39:53.837 | database_errors | serverfault.com | |
200,704 | Controlling cookies with many tabs | I have a peculiar problem. My application has different levels of authentication. One specific level of user (super user) needs to be able to use the application as another user (subordinate user) that has lower privileges. We decided that when the super user selects to be a subordinate user then another tab in the bro... | You could have each tab generate a cookie with a unique id in the name such as "mysiteCookie" + unique value. Keep the "mysiteCookie" base the same across all tabs. That should be enough to keep each cookie separate. In order to read the correct one you could set up two javascript methods, one used for navigation that ... | 5 | 1 | 4,194 | 2013-06-06T18:36:00.413 | api_errors | softwareengineering.stackexchange.com | |
289,858 | How many subnets can I create (max) inside of the network 192.168.123.X/26? And why? | We discuss that topic but we have too different interpretations. That is why I'd like to know how to resolve this issue. What is the truth? Can I define max 64 subnets or max 4? Writing down an opinion will not suffice, sorry. We already have 2. We need to scientifically show (for example with official network standard... | A /26 network has 64 addresses. Since the definition of a subnet is that it contains at least 2 addresses, the technically correct answer is 32. However, for practical implementations the actual answer is more like 16, since in order to be really useful, 2 addresses in each subnet (the network address and the broadcast... | 1 | 9 | 8,983 | 2011-07-13T12:07:07.463 | infrastructure | serverfault.com | |
165,164 | Statistics on index on partitions not used in query on the whole table | The following join has very different row estimates when doing a join on the partitions vs when joining on the whole table: [CODE] For all partitions: [CODE] The statistics for these indexes on the partitions are visible: [CODE] This (with statistics on the index on the partition) results in the following (fine) query ... | Make sure not only partitions are indexed, but also the master table is indexed in same way and ANALYZEd. This could make the planner include index-based estimates on a single partition, but ignore them on master table level. If expression index or statistics for master table is missing, the planner is not able to infe... | 9 | 1 | 698 | 2017-02-22T10:47:48.690 | database_errors | dba.stackexchange.com | |
27,425 | Is the optimisation fence behaviour of a CTE (WITH query) specified in the SQL:2008 standard? If so, where? | I see frequent references to [CODE] queries (common table expressions, or CTEs) acting as an optimisation fence, where the server isn't permitted to push filters down into the CTE queries, pull common expressions up out of the CTE, etc. It's often claimed to be a behaviour required by the SQL standards. CTEs are defini... | I think it's an implementation detail. A conforming implementation is not required to perform the exact sequence of actions defined in the General Rules, provided its effect on SQL-data and schemas, on host parameters and host variable, and on SQL parameters and SQL variables is identical to the effect of that sequence... | 26 | 10 | 4,167 | 2012-10-22T23:01:59.847 | database_errors | dba.stackexchange.com | |
344,544 | What is the first digit for in 4-digit octal Unix file permission notation? | 3-digit: [CODE] 4-digit: [CODE] What is the first octal digit for in 4-digit octal Unix file permission notation? | From [CODE] : A numeric mode is from one to four octal digits (0-7), derived by adding up the bits with values 4, 2, and 1. Any omitted digits are assumed to be leading zeros. The first digit selects the set user ID (4) and set group ID (2) and sticky (1) attributes. What are "set user ID", "set group ID", and "sticky"... | 58 | 61 | 31,708 | 2011-12-28T00:13:58.707 | infrastructure | serverfault.com | |
1,018,403 | GCE: Instance has no connectivity after being cloned from a working instance | I'm currently trying to "clone" a working Ubuntu 18 instance. Essentially I just want to make multiple instances from a single preconfigured Ubuntu 18.04 instance. The preconfigured Ubuntu instance is using Google's stock Ubuntu 18.04 LTS image and is fully functional and reachable. I have attempted to clone it in two ... | It is possible that the guest OS is not installed on your machine. I would suggest to first validate your guest environment and if it is not installed you can install the guest OS using one of these methods. Use the import tool. For instructions for how to use the import tool, review Making an image bootable. Connect t... | 0 | 0 | 573 | 2020-05-23T19:28:27.287 | pipeline_ops | serverfault.com | |
58,343 | App server takes a long time to connect to MySQL Server | I have a strange problem that I couldn't figured out and would like some expert advice to handle this thing. My database is running on a seperate machine My application server tries to connect to login and it keeps on waiting for response New connection Thread is created by MySQL My application server keeps on waiting ... | Can you log in without delay from the database server? If so, it is likely a network problem. What network hardware sits between these devices? Have the NICs been tried and tested on other subnets/connections? If you cannot login quickly, check the db server logs (out of disk space, full /tmp dir, timeouts etc). It cou... | 2 | 2 | 2,953 | 2009-08-25T10:20:13.750 | database_errors | serverfault.com | |
287,802 | nginx + fastCGI + Django - getting data corruption in the responses sent to the client | I am running Django behind nginx using FastCGI. I have discovered that in some of the responses sent to the client, random data corruption is occurring in the middle of the responses (might be a couple hundred bytes or so in the middle). At this point I have narrowed it down to either being a bug in either nginx's Fast... | Do you have any kind of nginx caching ( bypass / no_cache ) directive active for the fastcgi responses? In nginx' 1.0.3 Changenotes they fixed a response corruption: Bugfix: a cached response may be broken if "proxy/fastcgi/scgi/ uwsgi_cache_bypass" and "proxy/fastcgi/scgi/uwsgi_no_cache" directive values were differen... | 10 | 1 | 1,879 | 2010-10-22T11:34:29.637 | data_quality | serverfault.com | |
28,154 | How to measure improvement after splitting tablespaces into multiple disk volumes? (Oracle 10g AWR) | I have a recently released 10 000 user analytical application that is suffering from performance issues because of excessive amount of transactions. Apart from re writing many of the SQLs in the application for better performance we are also on top down approach where we are adding more volumes and tweeks to memory etc... | From user APC: The AWR has this section called IO Stats. Not unreasonably, this is where it reports the statistics for IO activity. Within that section there are figures for each tablespace. You need to run these reports against the target database. Ideally you want several different runs, each run being no more than t... | 1 | 1 | 328 | 2012-11-04T18:51:29.040 | database_errors | dba.stackexchange.com | |
300,526 | Aws rds downsizing alternatives | I've recently increased my General Purpose SSD storage up from 1000Gb to 6000Gb in an accident. Now i'm trying to bring the storage size down to the original 1000Gb but i can't do it over the console. I also tried taking a snapshot and then allocating a smaller storage size down but once the snapshot is restored it goe... | First, you should not try to squeeze 900GB of data in only 1000GB of disk. This does not leave room for maintenance. I recommend 2*900 or at least 900 + the size of the largest table. I don't happen to know how RDS does size changes, but it may be that they take some shortcuts when growing, but cannot use similar short... | 0 | 0 | 325 | 2021-10-03T14:31:58.597 | database_errors | dba.stackexchange.com | |
998,642 | kubernetes not connecting to docker hub | Alright, so I am trying to publish a private docker image to kubernetes, and I am running into some odd issues. I start of with logging into docker [CODE] and that will store my password in a config file for me, so I run this [CODE] I would expect that to pick up the url in the [CODE] file, but I get this error [CODE] ... | [CODE] You are conflating the [CODE] argument to [CODE] , which determines the kubernetes server to which it will connect, with [CODE] You will want to use the provided [CODE] command (versus the [CODE] type) because the [CODE] that is created by the specialized version is not just the [CODE] file uploaded to the clust... | -1 | 0 | 373 | 2020-01-12T19:58:26.663 | pipeline_ops | serverfault.com | |
122,624 | TrustedInstaller.exe takes a lot of CPU | Does anyone know how to fix issue with TrustedInstaller.exe when it takes a lot of CPU? Operating system: Windows 2008 x64 Windows' Modules Installer service is set to Manual. | Windows Server 2008 will run TrustedInstaller.exe shortly after rebooting after installing the monthly Windows Updates. The program will take up ~75-100% of a CPU core for up to 30 minutes or more, as it is running the malicious software removal scanning code. While this is running on a single-core machine, certain pro... | 12 | 9 | 68,410 | 2009-06-03T00:18:55.600 | infrastructure | serverfault.com | |
142,928 | Inserting 500K records into SQL Server 2008 is taking 15s; how to optimize? | I have a SQL Server 2008 machine that is running backed by a SAN (not entirely certain of the SAN configuration). I've been noticing that some queries are slow to respond, so have been running some tests trying to optimize/index the slow parts. I am not a SQL Server DBA (background is more MySQL centric), but have the ... | It isn't just doing one insert operation per row, there is one insert per row per index with the associated sorts too. Each of those sorts may be spooling to disk (and probably is with that much data) to there is a lot of IO going on. When completely rebuilding a table's contents (i.e. starting with a blank table) it i... | 0 | 4 | 2,049 | 2016-07-04T14:29:39.003 | database_errors | dba.stackexchange.com | |
140,170 | SQL Server AG in primary site with separate WSFC AG in secondary site | I would like some feedback from those experienced with SQL Server Availability Groups (AGs) in multiple sites. We have a scenario where there are five SQL Server 2012 Enterprise Edition servers in a one-site AG under the same WSFC cluster. We are looking to setup a secondary DR site and would like some guidance on whet... | 1.Can a separate AG be a 'recipient' (restore target) of Log Shipping? In other words, can I have the primary server in a separate Availability Group be applying log backups (from log shipping) and when ready to cut over to this secondary AG, issue a RESTORE BACKUP WITH RECOVERY? No, databases involved in an availabili... | 2 | 1 | 93 | 2016-06-01T21:51:27.850 | database_errors | dba.stackexchange.com | |
114,918 | Domain controller at the Disaster recovery site | We recently created a DR site, using VMware SRM. The domain controllers at the main site are physical and we also need a DC at the recovery site. The link between the sites is fast (20MB/s). I installed a Windows 2008 domain controller DRDC1 at the recovery site and joined to the domain without problems. Would it be a ... | It's unclear what you mean by "will it confuse the fail-over?" It's a good rule-of-thumb to always configure Active Directory with the true physical topology of your network. You should create a Site and Subnet object(s) for the DR site, and appropriately connect it to the rest of your AD with a Site Link. Other Domain... | 1 | 4 | 1,859 | 2010-02-20T14:09:09.547 | infrastructure | serverfault.com | |
167,382 | CronTab: Not running my PHP scripts? | final edit: i have moved this to 406 Error with GET Cron Job? EDIT 4: i am getting a 406 error page with this cron! here is the crontab (copied from cPanel): [CODE] here is the log: [CODE] i have php set up on a virtual machine running linux. i've set my crontab to: [CODE] however, the cron does not seem to be running.... | You can use the web version in the cron if GET(lwp-request) or curl is installed on the server GET [CODE] curl [CODE] | 2 | 2 | 11,564 | 2010-08-05T13:38:05.393 | infrastructure | serverfault.com | |
1,010,991 | MySQL crashes after upgrade to mysql 8 | After we upgraded our database to MySQL 8, one query stopped working and is causing the database to crash. MySQL version 8.0.19, before: 5.7 Error.log output: [CODE] This is a constant crash and only happens after one certain action in our application, however, we're not very experienced in MySQL and/or databases. Hope... | Did you run mysql_upgrade after upgrading? Run "check table" on all tables to see if there is any corruption. Does your server have ECC memory in it? Are there any hardware warnings/errors (EDAC, MCE) evident in dmesg or syslog? It is plausible that you are hitting a bug. MySQL after 5.6 is, in my rather extensive expe... | 0 | 0 | 2,121 | 2020-04-05T10:44:16.357 | database_errors | serverfault.com | |
1,070,474 | Windows Server 2019 Essentials not showing System Protection > Create Restore Point | The entire System Protection tab is gone! I wanted to create a restore point before installing something, and I wanted to change some "Previous file versions" settings on a network share. What's going on? I seem to get previous file versions at the regular interval, twice a day. But I can't see or create restore points... | Apparently that's not a thing in Windows Server 2019 Essentials. Which is weird, because the option to create a restore point shows in the start menu: I found a reply here that says this isn't an option for this OS: https://social.technet.microsoft.com/Forums/en-US/90fd10a5-cb2c-4090-93a9-fd2ea478feca/windows-server-20... | 0 | 0 | 4,769 | 2021-07-23T21:20:34.607 | database_errors | serverfault.com | |
108,913 | MySQL IN() statements: Avoiding duplicate lists | I need to check that two columns both appear in a list of IDs. So right now I have this: [CODE] The problem is that the list of IDs can get pretty big; into the thousands. I can't find a way without another temp table that lets me check that two columns are in a list without defining the list twice. I'm concerned that ... | You can create a temp table, insert your parameters there and then join it: [CODE] | 0 | 2 | 52 | 2015-08-04T01:47:58.737 | database_errors | dba.stackexchange.com | |
56,224 | PostgreSQL FTS and Trigram-similarity Query Optimization | I have recently started working on PostgreSQL and I have around 12M rows to handle in which I want to apply Full Text Search . I don't have any prior experience in handling such databases. I have tried to optimize the query but I doubt that it has been fully optimized. Right now I'm using GIST Index as I read that upda... | Assessment In your last query, the bitmap index scan looking for 'hat' produces 307 hits. Postgres then runs a bitmap heap scan to filter merchants similar enough ( [CODE] ), producing 12 rows. Your test is with 30K rows, so your real life query will produce around 300 times as many hits, 90k / 3.5k for the test case a... | 5 | 10 | 5,958 | 2014-01-06T18:48:04.877 | database_errors | dba.stackexchange.com | |
215,274 | Issue with maxWorkerThreads and thread count | I have created an ASP.net application which creates thread in infinite loop. And set maxWorkerThreads to 20 in processmodel in machine.config. When i checked Thread count in perfmon there was around 7000 threads created in worker process. Or how can we restrict thread creation in ASP.net with IIS6/7. | If the app isn't using the ThreadPool, that setting won't apply. Also, I believe the app can set that value itself if it chooses -- machine.config won't override explicit programmatic parameters. Is this an app you have source for, or a third-party app you can't get under the hood of? | 0 | 0 | 1,313 | 2010-12-22T13:45:52.120 | infrastructure | serverfault.com | |
975,581 | OpenVPN2 server, use TLS for handshake but only require username/password for auth | I'm trying to setup [CODE] [CODE] for only requiring username and password for authentication, but still use [CODE] for encryption on handshake etc., but not require [CODE] [CODE] . Is that possible with [CODE] ? This is my [CODE] : [CODE] I'm going to look at https://openvpn.net/community-resources/using-alternative-a... | You can skip certificate authentication using [CODE] and [CODE] in the configuration. Best to use [CODE] with a preshared key between client and server, too. | 0 | 1 | 111 | 2019-07-17T11:56:50.483 | api_errors | serverfault.com | |
85,450 | How to refit GridSearchCV on Multiclass problem | I'm trying to use GridSearchCV for my Multiclass problem. For starters, wanted to test it on KNeighborsClassifier. First, here's the code where I define the function which uses GridSearchCV: [CODE] And, here's where I use it, when I try running a K nearest neighbors classifier: [CODE] Under the current state of the abo... | Nevermind, I realized my mistake. precision and recall don't work with multiclass data. They should be replaced by precision_macro and recall_macro instead. Speaking of which, the one place where I tried using them on the code should be also changed into: [CODE] | 0 | 0 | 3,016 | 2020-11-15T16:57:28.717 | data_quality | datascience.stackexchange.com | |
316,686 | Repurposed Cassandra node unable to bootstrap, returns "IllegalStateException: Unable to contact any seeds" | Not sure if this is bug with cassandra 4.0.5 but when i remove data directory and clean up all other directory and try to join node to cluster i get below error. 4.0.4 seem to be works fine [CODE] | I'm not aware of any changes in Cassandra 4.0.5 over 4.0.4 that would cause this problem. In my experience, the most common causes of nodes unable to gossip are: Network issue where there's no connectivity between nodes on the gossip port. Check that the firewall is not blocking internode communication. The clocks are ... | 2 | 1 | 847 | 2022-09-09T09:37:55.890 | database_errors | dba.stackexchange.com | |
117,256 | Trying to fill null values with sub-grouped mean value using pandas fillna() and groupby().transform() is doing nothing with the null values | I'm doing EDA on the US police shooting dataset where I'm stuck with filling the 482 null values for the [CODE] column. Since no strategy was mentioned on how to fill them, I want to fill the null values with the mean age of the respective [CODE] in a [CODE] to which the victim belongs. There are a total of 7729 rows. ... | The groupby + transform will not work in the case, we want to impute null values since transform aims to transform all the values of the column. Its difficult to determine what's wrong with your current piece of code because its multilevel groupby. But you could rather loop through all the races, query based on gender,... | 0 | 2 | 1,357 | 2022-12-22T19:03:03.100 | data_quality | datascience.stackexchange.com | |
363,615 | Cisco Extended ACL on 2811 Not Working Properly | I am almost positive this is an issue of missing a key component or not declaring/applying the ACL properly, but I am unable to figure out the fix on my own. What I am trying to do is only allow PC2 to send any traffic to PC3 and PC1. Essentially PC4 should be inaccessible to PC2. Since I am unable to post images yet, ... | Your access list is specifying [CODE] as the source and [CODE] as the destination - other traffic ingressing on the [CODE] interface will not be allowed (and I think it's a little strange that they're sending ICMP Unreachables instead of just dropping the packet, but there you have it). If you want to allow pings to th... | 1 | 2 | 654 | 2012-02-25T00:16:26.173 | infrastructure | serverfault.com | |
594,606 | cyrus-makedirs or mkimap missing on Ubuntu Server 14.04 | The Cyrus manual says that [CODE] should be run to configure the directories. It appears that this command does not not exist, however. With a bit of research it looks like there is a debian/Ubuntu version of this called [CODE] ( http://manpages.ubuntu.com/manpages/trusty/man8/cyrus-makedirs.8.html ), but that doesn’t ... | I installed cyrus using apt-get on Ubuntu 14.04 and then makedirs is located in: [CODE] I created the imap folders using: [CODE] Hope that helps. | 0 | 0 | 335 | 2014-05-12T18:10:09.333 | infrastructure | serverfault.com | |
305,413 | How can I tell if a disk is failing on ESXi / what do these errors mean? | I have a server running VMware ESXi v4.1.0 348481. It has a hardware RAID10 and a SATA backup drive. I have a VM running which has it's primary boot vmdk on the RAID10 datastore, and a 600 GB vmdk on the SATA backup drive's datastore. The VM runs Debian linux with the FreeBSD kernel, and uses ZFS for the backup drive. ... | Those errors do indeed indicate one of the SATA drives has encountered enough bad blocks to run out of block-reallocation space. That drive is bad, and needs to be replaced. I'm not sure where in the vSphere client that information is displayed, but the log entries are pretty clear. If your hardware allows it, a hot-sw... | 10 | 5 | 13,640 | 2011-08-26T19:50:32.387 | database_errors | serverfault.com | |
232,452 | How Do I Build My Own WebServer? | I'm looking to move my current websites from my host to my own webserver. I currently have 92 websites and I run a lot of cron jobs, which my host constantly complains about. We only get to use 60MB of memory, and I apparently exceed that far too often. So... in building a webserver just for my own needs, I want to buy... | If you want to go with something mainstream with good support, have multiple domains for your sites, only one routable IP address and the ability to expand upon it yourself, I would go with either your RHEL (Red Hat, CentOS, Fedora - whatever you like) solution with apache or Microsoft Windows with IIS. This way you ha... | 0 | 1 | 294 | 2011-02-08T00:31:51.170 | infrastructure | serverfault.com | |
1,104,068 | Does a Synology DS36xx have any kind of battery-backed cache for the RAID controller? | I've used Dell Perc RAID controllers in the past. In those systems, the (hardware) RAID controller usually has an onboard battery backup system that stores the cache state in the event of a sudden power interruption. This is critical to prevent file system corruption. Our organization is now getting Synology DS36xx NAS... | Those NASes don't use any battery backup for their cache. Seconding djdomi's comment: They basically use software RAID and the main memory used as cache isn't backed up. So, make sure you hook them up to a UPS at all times if you're concerned about your data (use a data link or SNMP for safe NAS shutdown on power failu... | 0 | 2 | 201 | 2022-06-25T00:07:42.303 | data_quality | serverfault.com | |
442,094 | How do you create large, growable, shared filesystems on Linux at AWS? | What are acceptable/reasonable/best ways to provide large, growable, shared storage at AWS, exposed as a single filesystem? We're currently making 1TB EBS volumes ~biweekly and NFS exporting with no_subtree_check and nohide. In this setup, distinct exports appear under a single mount on the client. This arrangement doe... | How about XFS (on top of LVM)? It is more mature than ext4, and there is the possibility to do incremental dumps of the filesystem. You might want to check its wikipedia article and the benchmarks against ext4 referenced therein. | 8 | 1 | 920 | 2012-10-25T02:38:32.673 | database_errors | serverfault.com | |
75,425 | Sql Server 2012 Change Data Capture weird behaviour | In my Sql Server 2012 I have the following table in a database [CODE] when I update the Address field (nvarchar, not null ), it is captured as below NULL 3 2 mahmood True here 111 2014-09-01 14:42:28.913 NULL 4 2 mahmood True there 111 2014-09-01 14:42:28.913 but when I update the Score field (nvarchar, null ), this is... | Here is the MSDN Large Object Data Types Columns of data type image , text , and ntext are always assigned a NULL value when __$operation = 1 or __$operation = 3. Columns of data type varbinary(max) , varchar(max) , or nvarchar(max) are assigned a NULL value when __$operation = 3 unless the column changed during the up... | 2 | 7 | 1,242 | 2014-09-01T11:14:19.717 | database_errors | dba.stackexchange.com | |
694,572 | Installing Java 32bit rpm on 64bit CentOS | Downloaded the - jre-8u45-linux-i586.rpm Opened console - su [CODE] [No java was installed before] [CODE] [CODE] [Tried installing] [CODE] Clearly I have it on the desktop Opened File System - [CODE] , which I created Tried moving the [CODE] file from desktop to [CODE] , but I get: [CODE] So I have two problems Install... | First, you don't need to create /usr/bin/Java or any directory. Secondly, your invocation of rpm is pointing to the rom in the current directory, which is the directory you made, you would need to point to it as ~/Downloads/java....rpm. Finally, you should use yum to install rpms because it will help pull in any needed... | 0 | 1 | 2,071 | 2015-05-26T19:27:26.457 | infrastructure | serverfault.com | |
508,169 | htaccess issue - 500 internal error | I have installed an app which has the following rewrite rule. It runs fine in a VPS setup - but in every shared hosting it is showing 500 error. The log is showing "bad delimiter" - I am completely clueless after trying for some time. Please help [CODE] Thanks | While I'm not sure that this is the culprit, spaces in urls need to be treated specially, in this case, escaping the space with a [CODE] . Turning [CODE] into [CODE] should resolve one possible problem. | 0 | 2 | 124 | 2013-05-16T05:12:52.453 | api_errors | serverfault.com | |
177,401 | Wget, Curl, Yum Fail but Ping works - CentOS 5 | We currently have three webservers. Servers one and two behave, but I'm having real problems with the third. [CODE] , [CODE] and [CODE] all fail to make their connections - that is, they all hang after resolving the host and attempting a connection. Example (I have tried many different urls): [CODE] ... hang [CODE] ...... | You have firewall rules in place that are blocking port 80 outbound, or refusing the reciprocal inbound response. These can be software firewall rules which may be blocking port 80 specifically or all of TCP (PING is ICMP), check with: [CODE] as ErikA pointed out above. It could also be a hardware firewall issue - is t... | 10 | 3 | 45,212 | 2010-09-02T16:15:45.243 | infrastructure | serverfault.com | |
446,139 | Can a Domain Object always be "completely ignorant of persistence" and yet still possible to persist? | Domain Object, while not necessarily a design pattern , can at least be considered as a design "concept", and one of its points is: https://wiki.c2.com/?DomainObject Domain objects should not direct their persistance. They don't know how to be persisted and even if they will be persisted. The infrastructure layer is th... | I've been thinking about this for some time now and have decided to revisit it, which means I'm now going to take a shot at answering my own question. I will say that yes , in an ideal world, "persistence ignorance" means exactly what it says, in the 100% literal sense, which is most clearly articultaed by what @Flater... | 4 | 0 | 896 | 2023-06-18T01:26:06.467 | api_errors | softwareengineering.stackexchange.com | |
476,527 | Is it good practice to use NTFS Compression on IIS Log folders? | Is it a good practice to use NTFS Compression on a IIS Log folders and files? I was able to go down from 20GB to 7GB by doing this. The IIS logs are per day, and have an average size of 20MB but some extreme days have 200MB. I'm wondering if IIS has to open the whole file in memory, forcing NTFS to unzip 20MB (or 200MB... | As Evan already gave a general answer, I like to address two of your sub-questions: Does IIS flushes logs every X minutes? http.sys, the kernel mode part of IIS is responsible for logging and it buffers the data in memory before writing it to the log files. I'm not certain but I don't think it does the flushing every x... | 13 | 10 | 5,866 | 2013-02-07T18:12:44.843 | infrastructure | serverfault.com | |
71,397 | Best way to evaluate performance for my case | I have dataset that looks like this [CODE] where F1 to F6 are the features and A1 to A3 are the prediction attributes. as you can see most of the records are [CODE] when I build my prediction algorithm and try to evaluate the performance I use f1_score but due to most records have [CODE] values, I get high f1_score . w... | It's not possible to obtain a single f1-score when there are several classes, probably you are using micro or macro f1-score? First don't use the micro F1-score, since it gives the same weight to every instance and therefore gives a lot of weight to the "X" class. Macro F1-score should be closer to what you want to eva... | 0 | 0 | 38 | 2020-03-29T09:13:18.480 | data_quality | datascience.stackexchange.com | |
231,199 | Can't change MongoDB default DB path | I know there are multiple questions on the same issue and I followed them but not sure what is happening here. First of all I am trying to change the default db path to a a separate mounted disk. And I changed the group and permissions and I updated the SELinux Contexts. But still I can see that the db is not starting ... | Run the following command to enable the user to write to [CODE] [CODE] | 0 | 1 | 805 | 2019-03-03T22:50:43.507 | database_errors | dba.stackexchange.com | |
969,869 | How to test whether unknown user sent mail in postfix? | Good day to you all, today, I was setting up a postfix mail server. Everything works well: mails get forwarded from my server's mail address, [CODE] , to my personal email [CODE] . When testing with telnet, like this , I found that I could send mail only to [CODE] . The problem The thing is: My logs show me that I get ... | If any mail was sent, it would be in the log. | 0 | 2 | 881 | 2019-06-02T23:22:19.553 | infrastructure | serverfault.com | |
163,489 | Why does java.util.ArrayList allow to add null? | I wonder why [CODE] allows to add [CODE] . Is there any case where I would want to add [CODE] to an [CODE] ? I am asking this question because in a project we had a bug where some code was adding [CODE] to the [CODE] and it was hard to spot where the bug was. Obviously a [CODE] was thrown but not until other code tried... | This design decision appears mostly driven by naming. Name ArrayList suggests to reader a functionality similar to arrays - and it is natural for Java Collections Framework designers to expect that vast majority of API users will rely on it functioning similar to arrays. This in particular, involves treatment of null e... | 44 | 39 | 152,977 | 2012-09-03T14:30:44.537 | api_errors | softwareengineering.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.