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 |
|---|---|---|---|---|---|---|---|---|---|---|
475,513 | Apache2 ignoring some rewrites | I'm having the weirdest problem with a previous developer's URL rewrites after moving this custom CMS to a new server. Observe this snippet of the .htaccess file: [CODE] The first part of the Health rewrite: [CODE] works as expected, but: [CODE] don't forward the rest of the URL segment as an argument. I threw a [CODE]... | You put the [CODE] in the wrong file. The rewrite that matches that URL gets sent to [CODE] . For that URL you should get: [CODE] Why you got anything at all I don't know. Possibly health_article_details.php [CODE] s health.php. | 0 | 0 | 72 | 2013-02-05T08:42:02.027 | infrastructure | serverfault.com | |
238,412 | XenServer Converting HVM to Paravirtualised | Recently I have been tasked with the daunting process of converting a setup of HVM enabled VMs (running on Citrix XenServer 5.6.0) into PV (paravirtualised) containers. The constraints of the project was that: The operating system must be functionally identical after the migration. minimal modification to the operating... | Try: [CODE] | 3 | 1 | 5,753 | 2011-02-22T00:39:14.617 | data_quality | serverfault.com | |
580,449 | PCie ssds vs raid? | I am new to the whole SSD thing, but I don't understand how the following works? I need to be very specific for this question to make sense. 1 x LSI MegaRAID SAS 9361-8i 570$ 8 x Ultrastar SSD800MH MLC 200GB 8x1450 = 11.600$ Total cost: 12.170$ Expected performance in RAID 0: read : 140x8 = 1.120.000 IOPS write : 100x8... | We use both FusionIO kit and lots of top-end SSDs, and we have seen failures in both but with the FusionIO we've not had anything that caused data loss, RAID 0 will kill your data one day, it's not an 'if', it's a 'when'. Now onto your calculations, the FusionIO stats are about what we see too but are you sure that LSI... | 0 | 2 | 1,039 | 2014-03-07T09:42:50.593 | api_errors | serverfault.com | |
32,740 | Launching Mozilla Firefox Browser | I am trying to launch this browser & the code worked previously: [CODE] | You are invoking the chrome driver so chrome browser will gets opened not Firefox browser. Moreover there is no URL defined in the code for redirecting the webpage should open. So add the following line to make this code work driver.get(" https://www.google.com "); This line will open the google page in chrome browser. | 1 | 2 | 62 | 2018-03-27T12:41:09.977 | data_quality | sqa.stackexchange.com | |
1,040,100 | NFS/krb5 authentication server lookup fails due to wrong principal name | When mounting an NFSv4 with Kerberos, authentication fails and krb5kdc.log shows the wrong principal name for the NFS server. [CODE] Principal nfs/containershost.internal.domain.tld should be nfs/nfs.internal.domain.tld . Am I correct in assuming that a reverse DNS query is being performed which is returning containers... | The nfs server resolves it's own name to containershost.internal.domain.tld . Thus, it looks for that name in keytab file. You probably should explicitly set the container name to nfs.internal.domain.tld (with -name option or host directive in docker-compose) or add yet another entry into keytab file. | 3 | 0 | 1,077 | 2020-10-26T13:32:50.647 | api_errors | serverfault.com | |
1,100,976 | Routing fwmark to VPN gateway using nftables mark | I'm trying to setup selective routing of a traffic filtered by IP address over OpenVPN on my OpenWRT router I have an OpenVPN profile up and working with route-nopull option to disable setting default gateway. The following commands are meant to have packets targeted to a set of ip addresses and marked with 0x1 mark in... | I've learned a LOT from this question, but since nftables configuration is not "a piece of cake" to everyone, I want to share my own config, I'll try to share as detailed as I can so someone might have a more intuitive idea on how to do pbr wi nftables: Step 1, define a standalone nft table. [CODE] Here I defined a sta... | 0 | 1 | 4,416 | 2022-05-15T13:39:24.073 | infrastructure | serverfault.com | |
377,487 | How fuzzy search is implemented for file paths | Say I have file paths like this: [CODE] I search for [CODE] (e.g. [CODE] or [CODE] ), and it gives this: [CODE] The questions are 2: How it actually matches the strings. How it returns the results as syntax highlighted. For (1), there is the data structure and the algorithm . In terms of data structure, I have seen a l... | I don't know how exactly Sublime text does fuzzy search as Sublime is not open source. However, we do have fzf, which is a very good open source implementation of fuzzy finder. You're probably going to be interested in the fzf search algorithm's description : Algorithm [...] FuzzyMatchV2 implements a modified version o... | 1 | 1 | 1,790 | 2018-08-26T23:54:44.700 | data_quality | softwareengineering.stackexchange.com | |
18,160 | Hyperic HQ- Monitor process statistics for 50+ processes on Linux machine | Is there an easy way to get metrics on all processes that start with the letters XYZ? I have about 80 processes that I have to monitor individually that all start with the prefix XYZ. I have created a query using the sigar shell: ps State.Name.sw=XYZ, which will give me a list of the processes that I want. What I need ... | When it comes to any kinda of trending data my current favorite approach is to use munin and it's plugin architecture. Munin plugins are extremely simple to write so it's really easy to trend all sorts of data. If you already have a script that grabs each process you should be able to generate data for each process and... | 2 | 1 | 2,420 | 2009-06-02T20:15:33.547 | pipeline_ops | serverfault.com | |
165,003 | Legally, can I re reuse code for different customers? | The company I work for develops custom factory automation applications for multiple customers. Even though each application is custom, they contain common code which is re-used across projects. One of the customers is now looking for the source code to their application, which has caused a major storm in the company. M... | This sound to me as a lacking policy of your company with customers. In another words, your agreement with customer should indicate who once the copyright of the product and the source. In most cases, software contacts do indicate that provided software is build on COTs and some proprietary systems. Thus the common com... | 3 | 1 | 1,942 | 2012-09-15T21:19:51.157 | api_errors | softwareengineering.stackexchange.com | |
764,146 | Rewrite bad url extention to .html in NGINX | A while back I made a mistake writing my urls and Google has them cached in old sitemaps. This is creating a ton of 404 errors in WMT that I need to clean up with a solid rewrite. I currently use the map module and rewrite each product individually. Example: [CODE] The mistake being in bold here: http://domain/productn... | The rewrite will look like this: [CODE] Or you might want to place it into a location: [CODE] Explanation: Both regex are identical, except the latter has a named capture [CODE] . We look for any sequence that ends in a non-dot followed by [CODE] , followed by (optional) [CODE] . Everything before the [CODE] is capture... | 1 | 1 | 164 | 2016-03-16T15:20:17.453 | infrastructure | serverfault.com | |
881,339 | Apache .htaccess and .htpasswd doesn't ask for password in Django site | I have a Django site with [CODE] configured, using Apache 2.4 as web server. Virtual Host: [CODE] I have the files [CODE] and [CODE] in [CODE] . .htaccess content: [CODE] I have searched all possible solutions for the problem, but can't find one. Is there a misconfiguration in Virtual Host that is preventing [CODE] / [... | I had the same issue and came upon this question. For me, the solution was that some [CODE] directives for the Django-powered section of my site were overriding the [CODE] directive for the site root. Something like: [CODE] I originally used the [CODE] directives to ensure Apache had access to the WSGI server and stati... | 1 | 0 | 1,332 | 2017-11-01T11:18:26.933 | infrastructure | serverfault.com | |
410,366 | Testing function that return objects | My web app is built around classes that I call widgets. Their goal is to be reusable and modular, to suit different scenarios. For example, I have a widget called [CODE] which has two functions: [CODE] : adds the "Home" breadcrumb. [CODE] : adds any number of breadcrumbs. I have this function in a separate class: [CODE... | It's worth asking yourself how you would test [CODE] if you knew nothing about it's implementation details. So, I would be tempted to just compare the output against an expected data structure. In your implementation, the thing that changes the output is the value of [CODE] . I would want to mock this in some way so it... | -2 | 1 | 65 | 2020-05-19T19:59:52.603 | api_errors | softwareengineering.stackexchange.com | |
895,840 | Strange behavior from App-V virtualized application - can't start new instance until all others are closed | I first must apologize for the vagueness of this. It is rather hard to pin down, which is why I turn to posting this. The environment is Windows 2012 R2 Citrix 7.16 servers, multi-tenant (which is the reason for App-V being used). First a few things about the application. The application is sequenced in the latest App-... | I'm answering this myself as we found the bug and I made a workaround. This is the bug, we know that now: https://support.microsoft.com/en-us/help/2536487/applications-crash-or-become-unresponsive-if-another-user-logs-off-a-r It has also appeared a few times when App-V is not used, but 98% of the time it is when the ap... | 1 | 0 | 1,762 | 2018-02-06T09:06:49.863 | infrastructure | serverfault.com | |
612,188 | High Mysql Connections | Having a challenge discovering why results are as they are. Perhaps missing something obvious. Sorry this isn't very specific. But if anyone has an pointers on areas to focus on that would be very helpful. Cheers. Load Test Its about 5486 writes to db per minute/90 per sec. I can see the following errors in the logs as... | I got down to the crux of the issue. I changed the MySQL db tables from MyISAM to Innodb (where possible as I think it can stuff things up if you use full text search). There is a bit about it here - MyISAM Table lock issue Can find loads more info with a quick Google This has fixed it. Now seeing about 60,000 successf... | 3 | 1 | 1,993 | 2014-07-13T03:26:37.233 | database_errors | serverfault.com | |
10,477 | Selenium: Problem locating dynamic buttons | I have this problem with locating dynamic buttons. It's a search for ferries, and for example, outbound ferry is [CODE] and inbound is [CODE] . These are fine and easy to locate. However, depending on the date the search can return several departures the same day, or economy/flex/business class selections. Then the but... | I'm using something like this with selenium webdriver and firefox so I'm constrained to XPath 1.0 features: [CODE] That should in theory catch any id that looks like these that starts-with [CODE] and ends-with [CODE] : [CODE] I've had some trouble making the matches with [CODE] in XPath 1.0, so I'd recommend using [COD... | 1 | 1 | 781 | 2014-12-08T08:24:44.743 | data_quality | sqa.stackexchange.com | |
682,365 | Show blocked SMTP connections in Exchange 2010 | Currently, I have an anonymous receive connector set up on my Exchange 2010 system that allows from an entire subnet. I'm looking to change this to only allow from specific IPs, but need to know when machines are being rejected. Currently, the protocol logging on the receive connector is set to verbose, and I changed t... | Have you tried SysInternals TCPView for Windows? https://technet.microsoft.com/en-us/library/bb897437.aspx I use this when I want to see the IP's of servers/devices etc connecting to a hub transport server via SMTP Port 25. | 1 | 0 | 1,957 | 2015-04-13T15:14:55.577 | infrastructure | serverfault.com | |
257,461 | Fail to copy all PostgreSQL databases between servers although there is no error message | I want to copy all databases from PostgreSQL 9.3 on Server-1 ( Windows 7 ) to an empty PostgreSQL 12.0 on Server-2 ( Windows Server 2012 R2 ). The steps are as follows: On Server-1: [CODE] Copy [CODE] from Server-1 to Server-2. On Server-2: [CODE] No error message appears, all seems to be fine. However, none of the dat... | The dump-file had a size of 0 Bytes indicating that it was empty. Repeating the dumping process delivered a non-empty file with which the import process with [CODE] worked fine. | 0 | 1 | 27 | 2020-01-15T14:54:47.910 | database_errors | dba.stackexchange.com | |
85,401 | Hand preprocessing data | I am working with a relatively small (~1000 samples) dataset that has some very messy text data (i.e lots of things missing, no real structure, etc.). I am trying to preprocess it and just going through each data sample and preprocessing it by hand is a viable option. I think that writing an algorithm to automate the p... | If you have a really small dataset like a few 100 samples it's okay to do preporcessing via hand. But since you have a thousand samples it's better to automate the process. You can use the na_values attribute in pandas to fill in the "???" or "??" value with nan. Then for each column replace the Nan values using some s... | 0 | 1 | 27 | 2020-11-14T01:22:50.913 | data_quality | datascience.stackexchange.com | |
449,215 | Considerations for spanned volumes with SAN's LUN. | I want to know, before going forward, what I can expected in lost of performance (or not) of creating Windows spanned volumes from LUN delivered by a SAN ? I don't know which kind of SAN is (we don't administer it), but they give us 10 300 Gb LUN to our Windows 2k8 R2 (Vmware) and we need larger volume so we think to s... | Time for some science, bitches . The test setup: Windows 7 x64 2Gb RAM Virtual Machine on ESXi 5.0 LUN 1: 5Gb Thick Provisioned on 2x HP P4000 Lefthand Cluster 1 exposed via iSCSI (2x 1Gb MPIO) LUN 2: 5Gb Thick Provisioned on 2x HP P4000 Lefthand Cluster 2 exposed via iSCSI (2x 1Gb MPIO) We have a total of two LUNs on ... | 4 | 12 | 4,868 | 2012-11-15T22:22:08.903 | infrastructure | serverfault.com | |
303,092 | Server dying every few days - how to investigate | I have Ubuntu 9.10 dedicated server (un-managed) and it started dying few weeks ago. Before i request hardware inspection i would like to confirm that there is no software issue of some kind going on on the server. Server is unmanaged so I need to do everything by my self. Server is hosting few WP sites and one VBulett... | Look for Memory errors and HDD errors in /var/logs/messages to start with. Is this server in a data center? With proper electricity feed? Variation in electricity can cause a server to crash and can also prevent it from booting if not enough power is available. You can also test your hardware, especially your Memory an... | 2 | 1 | 1,224 | 2011-08-19T16:23:00.290 | database_errors | serverfault.com | |
11,894 | Columns are added in wrong order | I have a encountered strange behaviour adding columns to an existing table. I run those scripts using osql several instances. Let Table [CODE] have initially three columns [CODE] , [CODE] and [CODE] . To extend this table I use the following statements: [CODE] Up to now this script worked fine. I have a script adding t... | Finally we were able to sort it out: It was a [CODE] in a block comment [CODE] . We tested the code in SSMS were the [CODE] is ignored (as it is in a block comment). osql does not ignore it! We had the two batches in this block comment in a previous update. The first was ignored. The second was executed because the GO ... | 0 | 1 | 246 | 2012-01-30T11:45:17.693 | warehouse_errors | dba.stackexchange.com | |
134,490 | RDP Connection to XP from Windows 7 crashes part of XP | I have some XP machines that my users RDP into. If I RDP into the machine from something other than a Windows 7 box, and then RDP into the machine with a Windows 7 box, the XP machines crash (not BSOD though). I get an event ID 1003 with these details: [CODE] I have this happening on quite a few machines, and I can rel... | I've tracked it down. It IS related to a color setting. On the Windows 7 boxes, we were connecting in 15 bit color mode, and on the XP machines we were connecting with 16 bit color mode. The failure happens as follows: Open a new session in 15 bit color mode. Disconnect from session (don't logout though). Connect to se... | 0 | 1 | 1,575 | 2010-04-21T16:12:51.560 | infrastructure | serverfault.com | |
53,992 | Outlook 2007: compose, and reply error with "Not Implemented." | This is happening on a Windows Vista machine with Office 2007 Ultimate. I have run repair from the control panel and also the MS Office Diagnostic tool. No problems are reported. When I started Outlook my mail box opens and I can read my messages. If I click compose or reply then Outlook gives me a dialog that says, "N... | This seems to be a fairly common problem , and it appears to be update related. Have you tried initiating the repair from the installation media (DVD) and not from Control Panel? This seems to have worked for a lot of people. | 1 | 2 | 1,234 | 2009-08-13T22:27:34.967 | infrastructure | serverfault.com | |
1,035,581 | Mail error 550 Maximum line length exceeded (RFC 5322 2.1.1) | I have a reseller hosting account containing a couple of domains. One of our clients has recently been complaining about emails not being sent. They are receiving the error " [CODE] ". After some Googling it appears that the maximum length can only contain 998 characters (+ line breaks). And upon inspection of the .eml... | The software which creates the email and submits it is responsible for ensuring that it complies with all relevant standards, such as not having excessively long lines. The mail server is rightly complaining because the software did not do so. There is nothing that the mail server can (or should) do about this. This is... | 1 | 5 | 6,003 | 2020-09-28T09:48:48.977 | infrastructure | serverfault.com | |
986,183 | Check if open SMTP connection is closed/timed out | Is it possible to send some sort of ping to a SMTP server to check if the connection is still open and ready to send a mail The connection is a keep alive and want to check if the connection is closed/timed out Or is it possible to send a no operation command to keep the connection alive? | A very quick look through the RFC shows the SMTP NOOP command . [CODE] | 0 | 1 | 1,023 | 2019-09-30T09:00:38.340 | infrastructure | serverfault.com | |
838,523 | Users get UAC when installing shared print drivers through web interface | I'm having a problem where users on Windows 7 (Only OS tried though) are getting the UAC prompt when attempting to install printer drivers from a Windows print server. However, they are only receiving the UAC prompt when trying to install the driver through the IIS site. They can install printer drivers without the UAC... | From Microsoft: You can use the Point and Print Restrictions Group Policy setting to control how users can install printer drivers from print servers . That of course has no bearing on users installing printer drivers from the printers builtin web page, which explains the UAC prompt when users attempt to do so. | 1 | 2 | 797 | 2017-03-15T19:49:00.730 | infrastructure | serverfault.com | |
364,823 | Handle Optional Logging in High-Performance Library | I'm writing a library in C++ which needs to be as fast as reasonably possible. However, I'd also like to be able to provide logging in case a user (or me) needs to debug possible problems. This library needs to be built, but also contains some header-only templated classes. As I understand, usually logging in libraries... | When it comes to performance, there is only one best practice: measure ! Don't guess around about how the performance might behave, those guesses very often wrong. For the given case, you could find the most performance critical part of your lib, measure its performance when calling an "empty" logging function (maybe t... | 8 | 4 | 1,117 | 2018-01-28T12:28:46.630 | api_errors | softwareengineering.stackexchange.com | |
132,018 | Set up DNS or F5 VIP to send traffic to a specific port | Possible Duplicate: How to use DNS to redirect domain to specific port on my server I have a clustered SQL instance set up at SERVER01\dev08 It's assigned to a static port of 1466. Can I set up something which will let users connect to SERVER01 and hit that port? If this is possible, what problems might it create (all ... | The only thing that may have a prayer of working is using a DNS SRV record. Chances are it won't work though for all (or even most) applications. You will likely have to configure the clients to use your port when they connect. | 0 | 1 | 492 | 2010-04-13T16:56:25.890 | data_quality | serverfault.com | |
88,432 | How to I prevent another process from listening on the same port as Apache | I have Apache running Solaris using the mpm module, and it listens on port 8080. Every once in a while, someone will start up a Tomcat instance on the same host. The has the affect of directing all the traffic to Tomcat. Once Tomcat is shutdown, traffic resumes to Apache. I'd like for Apache to bind this socket exclusi... | Listeners don't really just bind to a port--they bind to an address and a port. It could be that apache is binding to 0.0.0.0:8080 (sometimes written *:8080), while tomcat is binding to port 8080 on a specific interface. In that case, both binds could coexist, and the interface-specific bind would take precedence over ... | 1 | 2 | 1,722 | 2009-11-26T03:54:23.357 | infrastructure | serverfault.com | |
1,067,629 | Why do some VPN clients slow down the network connection even when they are not it use? | I work as an I.T. consultant, and I often have to install various VPN clients on my computer in order to connect to customer's networks; beginning in March 2020, I started always working from home for well known reasons. Until a couple months ago I had a 100 Mb/s ADSL Internet connection, thus I never noticed what I'm ... | I can confirm by empirical testing that those VPN clients install a network driver which gets automatically enabled on each and every network interface. Disabling this driver in the NIC properties (on NICs which are not related to that specific VPN) fixes the issue, and the VPN client still works. I'm not going to reve... | 4 | 2 | 4,666 | 2021-06-23T22:17:33.127 | infrastructure | serverfault.com | |
11,250 | Running Python scripts in linux | I'm trying to run Python scripts with a shebang on Ubuntu. When I create a python script [CODE] ... and run it I get a shell error: [CODE] How can I make it work? Solution : Remove '\r's from line endings with dos2unix. | I assume the script is executable? Also, check for carriage returns -- maybe windows got its dirty little hands on it? You can check this with 'cat -vE test.py' and look for '\r'. | 2 | 11 | 4,157 | 2009-05-22T13:35:21.157 | infrastructure | serverfault.com | |
90,884 | Replication error after server name change | I have changed the computer name of the server where SQL Server 2008 R2 is installed. Old name was [CODE] New server name is [CODE] When I try to configure replication, the following error occurs: SQL Server Replication requires actual server name to make a connection to the server ... Specify the actual server name, W... | [CODE] was giving an error about remote logins: There are still remote logins or linked logins for the server ... Therefore, I executed the following query: [CODE] ...but this gave the following error because of replication: There is no remote user '(null)' mapped to local user '(null)' from the remote server ... Then ... | 3 | 3 | 3,599 | 2015-02-03T06:56:50.643 | database_errors | dba.stackexchange.com | |
874,599 | fail2ban create jail failed | I have debian jessie, with fail2ban v0.8.13 and virtualmin. I use iptables but firewallD was install and uinstall maybe it's the problem.... the problem is: the think for all Jail 2017-09-20 11:33:45,474 fail2ban.actions.action[17998] INFO HINT on 7f00: "Command not found". Make sure that all commands in 'ipset create ... | Seems to me that during the fail2ban installation the firewalld was present, fail2ban installer detected it and created appropriate configuration for this scenario in fail2ban. You should look for firewalld configuration in [CODE] especially for file [CODE] Removing those files and restarting fail2ban should fix your i... | 0 | 1 | 809 | 2017-09-20T09:47:03.217 | infrastructure | serverfault.com | |
249,003 | How to use IN to compare a single value with a comma separated field in another column | I have a table that looks like this. let's call it [CODE] : [CODE] These are varchar values. Then I have another table2: [CODE] These ones are int. What I need is a query to compare [CODE] with values inside [CODE] . For example, I need to find inside attributeMask, rows that has [CODE] (for each row. the second column... | There is a way to do this. However, I highly recommend that you reconsider using comma-separated values within a column. If you ABSOLUTELY must do it this way, you can use the LIKE operator with wildcards. This will enable you to search the attribute mask string for values. Expect terrible performance when looking up m... | 0 | 0 | 7,170 | 2019-09-17T19:43:36.837 | api_errors | dba.stackexchange.com | |
44,675 | Tests to find which theory agrees better with observation | I have three curves ( 1.> observation: y obs , 2.> theory-1: y th1 , 3.> theory-2: y th2 ). All of these curves are functions of a single variable (say variable x .) From a computational perspective, all these curves can be thought of as arrays with discrete values. To get an idea of error bars around y obs , I use 100... | I'm not sure about the best statistical way, but one practical approach would be to compare actuals v expected for each of the two hypothetical curves. Calculating the sum of squared differences (i.e. sum((y_obs - y_theory)^2)) will give you a numerical estimate of goodness-of-fit for each curve. You could also use oth... | 0 | 1 | 25 | 2019-01-28T06:20:18.400 | data_quality | datascience.stackexchange.com | |
220,156 | How do I debug max_allowed_packet going to -1? | I am using Amazon's MySQL Aurora and using JDBI on the client side. Every once in a while, the connection goes bad and I get errors like this - [CODE] That -1 feels suspicious and seems like an integer overflow or something. Since I have multiple servers and only one of them randomly sees this, I am guessing this has s... | max_allowd_packet= set to the size of the largest packet requesting; Usually it can set it to 32M and increase it according to ur application needs. Specify it in [mysqld] and client sections in my.cnf For example [CODE] | 0 | 0 | 112 | 2018-10-15T18:26:31.310 | database_errors | dba.stackexchange.com | |
46,187 | InnoDB log sequence number is in the future | [CODE] I've never seen or had this error before. The client does not have backups so they need a recovery done. I've done MySAIM recovery before but never InnoDB. Is there any tips on how to do it correctly? From what I've read up on I need to increase a single counter ("log sequence number") which is stored somewhere ... | The only correct solution is to reinstall and restore from a backup. You say you don't have a backup, but the point here is that the idea behind forcing InnoDB recovery is that you can potentially get the server stable enough that you can make a backup. Then use it to restore on a fresh setup. Obviously, make a copy of... | 7 | 3 | 16,697 | 2013-07-11T21:00:27.513 | database_errors | dba.stackexchange.com | |
1,055,871 | Cannot read existing files from a bind mount in docker | I have a bind mount configured from a local directory to a directory in a docker container. I am able write to and read back from the mount, but when I try to read a file that already existed in the local directory I get a [CODE] error: [CODE] This is the mounts information from [CODE] : [CODE] How can I read existing ... | If the file in bind mount is a symbolic link file, the link path will be accessed inside container filesystem and most likely fail. You can check for such case by using [CODE] command. | 1 | 0 | 1,973 | 2021-03-04T03:44:05.367 | pipeline_ops | serverfault.com | |
314,153 | Acquiring new servers to run ESXi and SAN/NAS | Here is our goal: Setup new servers to turn our entire physical computer network into 3 physical groups, which are: Server 1 - NAS - Openfiler/NexentaStor CE/FreeNAS/(Other Suggestions) Server 2 - ESXi Server with the following VM's: VM1 - AD/DNS/DHCP - Windows SBS 2008 VM2 - SQL Server 2008 r2 / Database Tier - Window... | It's quite a bit to digest. This is a solution that could work, and I am a proponent of ZFS-based solutions, but I'd initially ask why you wish to have a storage server with only one VM host. Granted, you could expand to multiple hosts over time... But looking at your setup plan, I'd almost recommend a large standalone... | 0 | 2 | 499 | 2011-09-22T00:11:43.257 | database_errors | serverfault.com | |
704,837 | How to find source of system running slow clock? | I've a problem on one of my Gentoo server. After some time, the clock starts running very very slow. It takes about one minute for one second to go . The major problem is that not only the clock is impacted but the system is running slow as well. If I run [CODE] , it takes more than 10 seconds to open. A [CODE] takes a... | Changing the clocksource to tsc fixed the problem. | 5 | 1 | 960 | 2015-07-10T09:52:42.720 | infrastructure | serverfault.com | |
309,859 | How do I recover from a faulted zpool where one device is OK, but was temporarily offline? | I have a zpool with 4 2TB USB disks in a raidz config: [CODE] In order to test the pool, I simulated a drive failure by pulling the USB cable from one of the drives without taking it offline: [CODE] Data's still there, pool still online. Great! Now let's try to restore the pool. I plugged the drive back in, and issued ... | Determine if the device needs to be replaced, and clear the errors using 'zpool clear' or replace the device with 'zpool replace'. Looks like after the initial temporary failure, you may only have needed to do a [CODE] to clear the errors. If you want to pretend that it's a drive replacement, you probably need to clear... | 7 | 8 | 23,484 | 2011-09-09T19:32:07.897 | database_errors | serverfault.com | |
378,722 | Windows Server 2008 network speed slow, Xen 3.4.3 HVM ISO | I've setup a VM running Windows Server 2008 on a host node running Xen 3.4.3-5 and the following kernel: 2.6.18-308.1.1.el5xen #1 SMP Wed Mar 7 05:38:01 EST 2012 i686 i686 i386 GNU/Linux The network speed on the VM is very slow--using the online speed tests I can only get it up to 8-9mbps. The line is 100mbps burstable... | I solved this problem by installing Xen paravirtualization drivers for the NIC and other components in Windows. The default drivers on the Windows guest were interacting horribly with the Xen host node. I noticed that downloading a file in Internet Explorer on the VM would spike up the CPU on the host node to 75-90%. I... | 3 | 6 | 3,900 | 2012-04-12T01:12:00.737 | infrastructure | serverfault.com | |
711,213 | Nginx load balancer returns bad gateway error | I have three servers; two web servers running nginx and a load balancer also running nginx. I can ping/telnet/curl between the load balancer and web servers but when I try to go to the load balancer IP in my browser I get a 502 error. Here is my web server nginx config file: [CODE] Here is my load balancer nginx config... | The error message is telling you that the upstream (that is, the web server you're proxying to) is closing the connection before any response headers were sent. Examine the logs for the backend web server to see what's actually going on. | 0 | 1 | 4,148 | 2015-08-06T04:12:52.010 | infrastructure | serverfault.com | |
892,021 | Load Testing HaProxy | I've been following the guide here https://medium.freecodecamp.org/how-we-fine-tuned-haproxy-to-achieve-2-000-000-concurrent-ssl-connections-d017e61a4d27 that claims they achieved 2mil ssl connections to haproxy. I have 1 server ubuntu 16.04, 6 cores 24GB ram. I have set the file limits to infinity using systemd and se... | I was finally able to get things squared away thanks to the help of this article: https://medium.com/@pawilon/tuning-your-linux-kernel-and-haproxy-instance-for-high-loads-1a2105ea553e For me the things I was missing from the other article were the modifications to nf_conntrack and a couple of tcp kernel level tunings. | 0 | 0 | 2,397 | 2018-01-13T04:08:29.177 | infrastructure | serverfault.com | |
283,849 | Quickly set up a Windows Server and automatically install and configure software | Yesterday I spent far too much time downloading and installing software on Windows Server 2008. I only had to install a simple server for SQL Server 2008 Express using Microsoft's Web Platform Installer, then configure it to enable remote connections. Everything had to be attended, wasting my time. On a Linux system, t... | Interestingly enough, the ServerFault Blog touched on this very topic recently: http://blog.serverfault.com/post/the-state-of-management-scalability-at-stack-exchange/ What you're asking for can be done. However, in my experience the effort expended to set up the environment to do so is pretty large. When expressed in ... | 1 | 2 | 132 | 2011-06-24T15:35:27.487 | pipeline_ops | serverfault.com | |
905,785 | Network performance with an i7 6700 Skylake | We're looking into setting up multiple servers with Nginx; the estimated required capacity is 60 Gbps (six-zero gigabit per second) A nearby datacenter offers us servers with "i7-6700 Quad-Core Skylake incl. HTT" CPUs and 10G dedicated network port per server. Will this CPU be capable to handle 10Gbps of data traffic, ... | The CPU can surehyl handle 10g of traffic per port un a DECENT card (note: you say nothing about brand - brand of the network card is VERY Important here). The question is whether it can PROCESS it, and that also depends on waht it does - even NGINX being efficient, 60g is a lot and 60g is - well, there is a difference... | 1 | 3 | 181 | 2018-04-03T14:45:01.480 | infrastructure | serverfault.com | |
683,834 | SSL_VERSION_OR_CIPHER_MISMATCH in chrome 42 | My ssl-enabled site has stopped working in Chrome 42. It still works in Chrome 41. Qualys's test doesn't cover Chrome 42, but it also doesn't raise any issues that indicate it's about to stop working, either. Has Chrome 42 dropped support for the previously negotiated cipher suite ( [CODE] )? | Comparing client capabilities I have noted that Chrome 42 only supports the following elliptic curves: Elliptic curves: secp256r1, secp384r1 (It appears that secp521r1 used to be supported in earlier versions, there is a bug report for this .) While for instance Firefox 37 supports: Elliptic curves secp256r1, secp384r1... | 1 | 2 | 1,131 | 2015-04-19T09:47:29.173 | infrastructure | serverfault.com | |
239,030 | Establish connection between parent and child class | Assume you have two classes, a [CODE] who holds a set of [CODE] s and the [CODE] holds a backreference to the [CODE] . [CODE] The confusing, probably even dangerous feature of this API is that Client exposes a setManager() method that can be called by anyone, yet should only be called by the Manager::addClient() method... | One fairly standard approach would be to make [CODE] protected and declare [CODE] as a friend function in [CODE] . This will allow [CODE] access to all of [CODE] 's private and protected members, not just [CODE] , but is more encapsulated overall than a public [CODE] . See also: Specify a class member function as a fri... | 0 | 1 | 88 | 2014-05-14T09:01:47.597 | api_errors | softwareengineering.stackexchange.com | |
1,066,802 | Intermittent 104 Connection Reset By Peer in GCP us-east4 | BACKGROUND I have a long running discord bot (3+ years) written in [CODE] which has always run on GCP, zone us-east4-a. The bot runs in [CODE] using discord.py 1.7.2 and python 3.9. PROBLEM In the past month or two, I have started to see an increasing number of connection interruptions, [Error 104] Connection reset by ... | As mentioned in the Google groups discussion, “The Google Cloud Compute Engine Team is already investigating this regional issue happening on 'us-east4”. You can expect another update regarding the RCA (if any) in the public issue tracker report. Feel free to comment over there as well.” As mentioned in the update of a... | 1 | 0 | 2,434 | 2021-06-15T14:50:06.927 | pipeline_ops | serverfault.com | |
440,525 | Nginx + Haproxy + Thin + Rails - 503 Service Unavailable - | I don't know how troubleshoot this. I get "503 Service Unavailable" http error for all "nginx upstreams" proxy passing calls to haproxy fast_thin and slow_thin ( server 127.0.0.1:3100 and server 127.0.0.1:3200 ), which loadbalance on 6 Thin servers ( 127.0.0.1:3000 .. 3005 ). Static files like /blog are currently fine.... | If you're trying to diagnose 503s on the upstream do one of the following: On the local box, use [CODE] to request a valid URL on one of the upstreams directly and see the results there: [CODE] If you can't do this, update the configs temporarily so the upstreams listen on an external IP and visit the IP:port in a brow... | 3 | 2 | 2,024 | 2012-10-20T15:01:01.180 | api_errors | serverfault.com | |
653,979 | Debian iptables: Block all Incoming except special IPs or Ports | I play around with the rules for my web server, but it doesn´t work as i want. The ports seems to be reachable, but a connection won´t happen, here´s the script: [CODE] | Solution was simple, just replace the first rule [CODE] with [CODE] This doesn't block all, instead sets the policy to default block for Input connections. | -1 | 0 | 2,035 | 2014-12-20T23:45:29.420 | infrastructure | serverfault.com | |
416,816 | CIFS SPN Missing | My domain does not have a SPN for CIFS/mydomain.com. My DC is throwing ErrorCode: KDC_ERR_S_PRINCIPAL_UNKNOWN. There are a number of windows workstations on the domain that are trying to use this SPN. [CODE] What problems would this cause? Should this SPN be there by default? | I was unaware such and SPN existed... so I checked... My domain has no such SPN, and I'm not having the problem you described either [CODE] The command you posted attempts to ADD a new SPN. But with only the domain name, you are not providing an account name to add the SPN to. Perhaps you could tell us more about the e... | 0 | 1 | 8,039 | 2012-08-13T01:36:46.143 | infrastructure | serverfault.com | |
229,303 | utlrp.sql fails to execute | I just created a docker image of Oracle 11g ee following this tutorial https://vitalflux.com/how-to-install-oracle-11g-ee-on-docker/ and loaded some tables inside. The process worked fine and no errors happens during the load of a huge sql file (10K+) with sqlplus. But on the last step the process breaks. I could pinpo... | [CODE] is a subtype in [CODE] starting with version 12c. [CODE] does not exist in 11g. You have a messed up environment with 12c scripts and a 11g database. The code that fails is in [CODE] , which is called by [CODE] , which is called by [CODE] . This is an environmental issue but we do not know what you have done so ... | 0 | 1 | 2,603 | 2019-02-09T12:32:00.257 | database_errors | dba.stackexchange.com | |
152,368 | How to detect a circular reference in a hierarchy table? | I have table like this: [CODE] How to find a circular reference in table references? | Here's a thought: Add a column [CODE] Repeatedly bump [CODE] to be at least 1 more than the parent: [CODE] If rows affected drops to 0, you have no loops. After awhile, any nodes in loop(s) will have large depth values. | 2 | 2 | 2,234 | 2016-10-15T16:10:36.913 | warehouse_errors | dba.stackexchange.com | |
841,422 | Apache proxy rule config under authentication | I need to create a rule in my server that redirect two url traffic to another server just if the user is logged on my system (moodle). I believe what I need is create a [CODE] and a [CODE] rule and a [CODE] rule that check is the user is logged. like above [CODE] But it is not working, it is even reaching the authentic... | Maybe something like this will help [CODE] According to http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritecond , the variable is set after a user is authenticated. This will work only with .htaccess/apache authentication methods I suppose. I had a similar problem once, but I solved it with a php script w... | 0 | 0 | 136 | 2017-03-29T21:10:23.493 | api_errors | serverfault.com | |
605,077 | How does Intel AMT (Active Management Technology) not interfere with the TCP/IP host stack? | The Intel dev kit I've been using includes a remote management feature (also see the Ubuntu man page here ) which allows remote reboots in case the operating system hangs. It has the capability of listening a handful of ports (16992 and 16993, to be specific) on an IP address it shares with the operating system. (eithe... | After configuring AMT to listen on a shared IP address, I ran the test mentioned by kasperd in the comments above. (against my own remote host with an SSH server, not actually [CODE] , of course) Here is the result: Positive test case (using a port not used by AMT): [CODE] Negative test case (using a port used by AMT):... | 17 | 10 | 8,551 | 2014-06-14T00:21:03.813 | infrastructure | serverfault.com | |
359,720 | Return NULL in case of success | This question is a clearer version of a question I posted on SO. I have a C++ [CODE] object with a method that computes a [CODE] from a start point to a destination point. [CODE] is the owner of the computed [CODE] pointer. Now, I have a second method (call it [CODE] ), that takes the route object and tells if the dest... | Returning NULL in case of success (the most simple case for success at that) is definitely contrary to what most people will expect. Returning a pointer that the user has to manually destruct isn’t super great either. I’d suggest using C++11 [CODE] but using C++11 may not be feasible in your case. One thought I had is ... | 5 | 9 | 990 | 2017-10-25T12:47:34.870 | api_errors | softwareengineering.stackexchange.com | |
679,198 | Executing a python script through php button | I am having an issue with executing my python script through using a button on PHP. I looked through any or all relevant questions regarding my issue, and tried any answers i could find and modifying the file name to my own. This is the PHP code on my website: [CODE] The PHP code will be executing the python script, wh... | It could just be a PATH problem since the user www-data doesn't have a path set. Try using: [CODE] and see if that makes a difference (check that [CODE] is the correct path for your distribution first with [CODE] ). | 0 | 2 | 21,682 | 2015-03-30T03:39:16.560 | infrastructure | serverfault.com | |
41,288 | Database Restore Failed Due to Incompatible Version of SQL Server | I am working on different two SQL Server, I need to transfer database from one server to another but problem is the servers have different versions. Below is image of error message. Using [CODE] I have checked database version like below, First Database Version (Source Database): [CODE] Second Database Version (Destina... | +1 to Doug L., I'd recommend the same (export all data and structure into SQL script and data dumps, then import) but on top of that: if you can connect the two DBs you can cross-server SELECT/INSERT INTO the tables and data from old DB to the new one; you can also try upgrading the RTM server (if you are allowed to do... | 3 | 3 | 19,628 | 2013-05-01T08:47:12.470 | database_errors | dba.stackexchange.com | |
577,510 | How do I fix a cloned machine that wasn't sysprepped? | My Scenario I made a bunch of Hyper-V VM (Windows Server 2003) clones, without using sysprep or anything of the sort. All I did was clone, remove the computer from the domain, rename the computer, and re-join it to the domain. And everything was perfectly fine. Until I was told I had to install the SCCM client on every... | Sorry to be the bearer of bad news, but you already know what you need to do: Sysprep the existing VMs . Yes, data will be lost unless you back it up. Recreate the original W2K3 server, sysprep and re-clone . Yep, what you should have done the fist time. There is a lesson here, something to do with best practices. I've... | 1 | 3 | 818 | 2014-02-22T00:05:07.970 | infrastructure | serverfault.com | |
110,076 | Planning Poker and wordy developers | My team is composed of 4 developers; all seasoned and skilled. One of them is a wordy, well intended chap who insists on defining the technical solution to our stories before we put down our estimates with Planning Poker. He refuses to estimate if he doesn't have a rough idea of the agreed technical solution (which sou... | He seems to like things being defined formally, so a timer would be a good idea, since planning poker is defined as having set amounts of time for people to speak. He's got the wrong idea about estimation too, everyone estimates against the story and not the implementation , which is why you get such variance. For exam... | 10 | 13 | 753 | 2011-09-22T15:04:17.483 | api_errors | softwareengineering.stackexchange.com | |
652,076 | Should usergroups be enabled? | All our users are managed with a central LDAP. When my predecessor in managing the infrastructure created the ldap he decided against creating usergroups (meaning groups of the same name and GID as the user(s UID)) and all users share one primary group "users". This is the same behavior as if you would set the USERGROU... | I found two discussions on this topic: http://comments.gmane.org/gmane.linux.redhat.fedora.general/407367 https://unix.stackexchange.com/questions/156473/reasons-behind-the-default-groups-and-users-on-linux The conclusion on both is that both variants are valid and which is better depends on your usecase. It seems that... | 2 | 0 | 113 | 2014-12-12T09:28:16.240 | infrastructure | serverfault.com | |
334,201 | Clean code: consequences of short methods with few parameters | Recently during a code review I came across code, written by a new colleague, which contains a pattern with a smell. I suspect that my colleague's decisions are based on rules proposed by the famous Clean Code book (and perhaps by other similar books as well). It is my understanding that the class constructor is entire... | As someone who has read Clean Code and watched the Clean Coders series, multiple times, and often teach and coach other people in writing cleaner code, I can indeed vouch that your observations are correct - the metrics you point out are all mentioned in the book. However, the book goes on to make other points which sh... | 18 | 18 | 5,625 | 2016-10-20T22:03:37.360 | data_quality | softwareengineering.stackexchange.com | |
923,954 | What steps should I take to make sure Synology VPN Server is secure? | We we have a remote office with a Synology NAS and we would like it to connect to the home office Synology NAS. We have setup VPN Server (Synology package) on the home office NAS and enabled OpenVPN. The next step would be to open the appropriate port on our home office firewall to enable the inbound OpenVPN connection... | At the very least, you'll want to make sure you have the following bases covered: Make sure that your Synology NAS[es] and other endpoints are always caught up on security updates. Make sure both Synology endpoints have valid SSL certificates in use and that all traffic is going through encrypted ports. Configure and u... | 1 | 2 | 3,332 | 2018-07-29T00:32:24.053 | infrastructure | serverfault.com | |
310,451 | Help, ive just corrupted my ext4 partition | After troubleshooting problems with my mdadm config and kernel settings for about a week now i got careless and left my data drives plugged in after a successful boot test. i was attempting to change the MDADM super-block so the kernel would auto-detect my system drive by re-creating the array. had a backup of the OS s... | Unfortunately, although there is data on the rest of the drive there may not be a way to associated it with individual files. In a typical UNIX/Linux filesystem (including ext2 and 3...not sure about 4), information about the files is stored in the beginning of the disk (including name, attributes and location to the f... | -1 | 2 | 283 | 2011-09-12T12:17:26.037 | data_quality | serverfault.com | |
952,784 | Nginx as Reverse Proxy and LetsEncrypt | Although there's aplethora of articles on the web about this, I'm still having issues getting this to work. I've set up nginx on ubunto 18.04 - everythings is patched to date. I installed Certbot (sudo apt-get install python-certbot-nginx) I'm using "default" config as I'm not going to be running anything on this serve... | Ok, after a lot of trial and error, it seems that it didn't like certificating subdomains without the parent domain. Luckily I'm running in a VM so I rolled back to before the Certbot install. I commented out this line in the config: [CODE] ..and added the root domain sites: [CODE] I then got certificates for the root ... | 2 | 1 | 2,148 | 2019-02-07T13:20:54.430 | infrastructure | serverfault.com | |
691,066 | Limiting bandwidth on Ubuntu Linux | I am in the situation where I have to simulate a P2P-environment (for my masters thesis in computer science). To do that I am using Docker with Ubuntu to create a bunch of virtual machines that is gonna be connected in a BitTorrent network. I then need to make sure that the upload and download rate of the peers can be ... | Using tc (because it's the most current, and I'm the most familiar with it), you should be able to slow traffic down without problems. I have a server acting as the firewall (called 'firewall' -- very creative) and then a second server behind that (called 'mil102'). without any tc commands, scp'ing a file from mil102 t... | 4 | 5 | 6,662 | 2015-05-11T09:03:16.070 | pipeline_ops | serverfault.com | |
105,937 | What does this mean in MySQL? | [CODE] | The first line starts MySQL. It errors out. Looking up the error message at the URL provided by the error message suggests that: The process cannot access the file because it is being used by another process. I'd guess that MySQL is already running or didn't stop cleanly previously. If you've never seen this before, a ... | 1 | 1 | 571 | 2010-01-25T02:48:59.990 | database_errors | serverfault.com | |
125,545 | Evaluating Software Maintenance | 1. When to treat a software as deployed and when to start charging for maintenance ? In most of the cases the software we make is deployed on the web at early stages to enhance the testing process from the client side. This means that bugs keep arising and we keep fixing them alongside development. Not just that, as th... | 1. When to treat a software as deployed and when to start charging for maintenance ? When the Statement of Work is complete, the job is done. If you don't have an SoW, you're being too informal about building software for others, and you'll inevitably get into disagreements with your customers, and possibly get threate... | 2 | 4 | 861 | 2011-12-16T07:28:35.583 | pipeline_ops | softwareengineering.stackexchange.com | |
83,794 | One foreign key for two columns | I have two tables, [CODE] and [CODE] [CODE] has the following columns: [CODE] [CODE] has the following columns: [CODE] When I write query: [CODE] it would give me empty set. Is it issue with the fact that I use same foreign key for two different columns in the same table? | The query results are correct, as your query finds all teams and results where a team played against itself ( [CODE] ). You probably want to use 2 joins to [CODE] in you query: [CODE] | 4 | 10 | 4,997 | 2014-11-27T11:11:34.587 | warehouse_errors | dba.stackexchange.com | |
610,677 | Puppet node does not pull changes from master | I have followed the following three How-To's [CODE] [CODE] [CODE] I get to the point of being able to start the puppet node, and on the master using [CODE] seeing the certificate and accepting it using [CODE] However passed this point the node does not pick up the changes from the master. The master has the following n... | I see you do not have logs. I would stop [CODE] on the master server then run it this way: [CODE] On the node server, stop [CODE] service and run it verbose with [CODE] : [CODE] This should give you some output that will hopefully help troubleshooting. My guess: Certificate issues. It usually is with [CODE] . | 3 | 4 | 6,298 | 2014-07-07T15:50:52.747 | pipeline_ops | serverfault.com | |
11,255 | Why for logistic regression the error is given by [y ln(sigma(x)) + (1 − y) ln(1 − sigma(x)] | Why for logistic regression, with target values 0 or 1, it will not work to take the sum of the squares of the difference between target value and prediction, but rather: $$ error({\bf w}) = -1/m * \sum_{i=1}^{m} [ y_i \ln (\sigma({x_i})) + (1-y_i) \ln (1 - \sigma({x_i} ) ] $$ | This is the log-likelihood: $\log P(x; w) \equiv \log \prod_i P(x_i | w) = \sum_i \log P(x_i | w)$, where $P(x_i | w) \equiv \left\{ \begin{array}{rl}\sigma(x_i), & y_i =1 \\ 1 - \sigma(x_i), &y_i = 0\end{array} \right.$ Why the log-likelihood? When you have a probabilistic model, such as logistic regression, it's one ... | 2 | 4 | 308 | 2016-04-16T15:35:41.177 | data_quality | datascience.stackexchange.com | |
699,230 | ECC memory errors causing random server reboots | I'm running ubuntu server 14.04 on Supermicro X10SLM-F / Xeon E3-1271 v3 Memory: SuperTalent 32GB DDR3 1600 ECC About every 4 days, the logs on Ubuntu will show this: [CODE] Immediately after this the server reboots itself in a "power-cycle" fashion. When I look in the BIOS event log, I see this: [CODE] And the descrip... | The system should not reboot upon correctable memory error. Do you see additional information/pattern via [CODE] ? The BMC watchdog could reboot the system, check if it is enabled via [CODE] . As you already have the information on the location of the bad memory module, replace it and if the problem manifests again, th... | 2 | 1 | 17,980 | 2015-06-15T21:30:03.163 | infrastructure | serverfault.com | |
335,629 | Hierarchical structure that needs to enforce availability | The project I am working on has deep parent/child relationships that needs to enforce availability. Imagine we are a large Worldwide Electronic Seller (Best Buy) and selling mobile phones We have Regions (Asia,Europe,North America..), Countries within Regions , Warehouses within Countries , Stores which are working wit... | After going trhough great responses on here . I have implemented (Joel Brown's answer on the link) https://dba.stackexchange.com/questions/28845/modelling-hierarchical-attributes without visitation numbers . I went through use cases and that approach is solving each of them also it is generic enough that allows me to o... | 3 | 0 | 253 | 2016-11-08T14:55:35.523 | warehouse_errors | softwareengineering.stackexchange.com | |
609,674 | Using nginx to access internet through intranet | I don't know if I am going about this in the right way, but here's what I need to do. I have a website that's available on the internet. But I have some users who only have access to the intranet. I want to create a proxy to allow these users to access this one site. What I've set up right now is an Nginx set up where ... | There's something that you haven't thought of yet - even if you can get to proxy.local/somesite.com, all the links will still point to somesite.com. Apache has a module for overcoming this issue (that I've never used), however NGinx does not. You should try Squid, you can set up ACLs that limit which sites get access a... | 0 | 1 | 991 | 2014-07-02T20:40:35.387 | infrastructure | serverfault.com | |
320,414 | Why won't this UDF work in this check constraint? | I’m trying to use a UDF as an alternative to using a SELECT command within a check constraint. I need to put a constraint on the report table to ensure the signedBy field is the PK of a personnel record for which there exists a record in the auth table with their personnel number and the authType of 8 (which would indi... | The error is because the expression in a [CODE] constraint must result in a boolean value (though there is no [CODE] datatype in SQL Server). Yours returns a [CODE] value. You can technically solve this by changing your [CODE] constraint to: [CODE] but this whole method - of subqueries in [CODE] constraints - is a bad ... | 8 | 17 | 813 | 2022-11-30T20:33:07.480 | data_quality | dba.stackexchange.com | |
167,390 | How can I add more than 255 machines to a single Class C network? | Possible Duplicate: How does Subnetting Work? I'm mainly a programmer. I have no idea beyond some basic theory when it comes to Networking/Administrating. My university feels that we should course at least the basics in Networking and I'm psyched. It's something incredibly new to me and I'm enjoying the class a lot. Ye... | I'm fairly certain that the concept your teacher is pointing you towards is NAT (Network Address Translation). It's a function performed by a router which allows a (usually private) network to share a (usually public) IP address. This is one of the primary functions of any off the shelf router you use to connect a home... | 1 | 4 | 41,079 | 2010-08-05T14:09:50.667 | data_quality | serverfault.com | |
394,201 | SSH into Fedora 17 will not work with new users | I just deployed a new Fedora 17 server on the Amazon EC2. I was able to log in as ec2-user with my generated keypair, but I cannot log in under normal circumstances as a user I created. This is just a normal ssh: ssh user@ip-address Any ideas on what is going on here? EDIT: This is a snippit from my sshd_config file [C... | Interactive authentication is disabled. Your client is using the default keypair, which I assume you are using for ec2-user. From the information you've provided it appears that you have not copied the public key to the new user's [CODE] . Either create a new key-pair for the new user and add that to your local [CODE] ... | 0 | 4 | 2,773 | 2012-05-31T01:15:45.273 | infrastructure | serverfault.com | |
779,808 | Cron is retrying a job every 15 minutes | I have an Amazon Linux AMI with this in crontab: [CODE] This calls the script [CODE] every Monday at 7am. This script collects some data from the database and sends an email to each user. It returns a list of all the email addresses to which it sent an email. Today it had to send 2608 emails. The script takes a while t... | It is not a cron issue, rather [CODE] restarting the download after reaching the default timeout of 900 seconds: [CODE] Set the read (and write) timeout to seconds seconds. The "time" of this timeout refers to idle time: if, at any point in the download, no data is received for more than the specified number of seconds... | 0 | 6 | 1,931 | 2016-05-30T11:57:36.827 | infrastructure | serverfault.com | |
126,048 | I am unable to find login page for phpmyadmin | I was using phpmyadmin(in Wamp) without a password for root. I thought to set a password for root and goto Privileges page and set a password for root. Now whenever I go to localhost/phpmyadmin page it gives me the following error. [CODE] I don't know that what is the problem. It is not showing me a login type page to ... | This is a configuration issue. To get phpMyAdmin's username / password login, you need to set the right Auth setting in your config.inc.php , probably "cookie": auth_type = 'cookie' prompts for a MySQL username and password in a friendly HTML form. This is also the only way by which one can log in to an arbitrary serve... | -1 | 3 | 9,090 | 2010-03-23T19:23:02.707 | infrastructure | serverfault.com | |
395,469 | HP NC362i Integrated DP Gigabit Server Adapter #2 Network link is disconnected | I am using leaseweb dedicated server. Recently server became unavailable. I had to use forced restart via management panel of leaseweb. I am checking errors and i found these 2 errors below [CODE] another error [CODE] Does anybody know anything about this errors ? I am using windows server 2008 r2 and asp.net 4.0 thank... | The first error is caused by the link dropping for some reason or another. This could be a problem with the NIC, the cable, or the switch it's connected to. Contact your host about this, as it's not a problem you can resolve. The second error is a known issue and this TechNet article has a fix . Essentially, it was an ... | 1 | 2 | 1,134 | 2012-06-04T18:15:48.420 | infrastructure | serverfault.com | |
736,837 | Finding source of rapid concurrent mysql connections | So we have a large number of scripts running on our server that periodically open up mysql connections and we are generally good about closing the connections as soon as they are done being used. Lately though we've been seeing massive spikes in connections (upwards of 8000) which crash our server. The outage only last... | You can capture the traffic with tcpdump, store it and later analize it. [CODE] And could be a good idea forbid the MySQL traffic and let pass just the authorized clients. | 1 | 0 | 84 | 2015-11-16T22:23:29.743 | database_errors | serverfault.com | |
305,796 | Debug short connection stalls | I have an Ubuntu homeserver that I use as server/NAS/NAT/router. My problem is that lately I've experienced that the (Internet) connection can sometime stall for a couple of seconds. If I try to SSH into the router during that time, it will not connect until the connection comes back online. When the connection is stal... | There are a few places you can start. I would install mtr and screen (available via apt-get): http://www.bitwizard.nl/mtr/ Then login to your router and setup two screen sessions. One mtr to a local box on your local network, the other an mtr to some reliable internet site like google.com. Let these run. Then the next ... | 0 | 1 | 146 | 2011-08-28T14:56:24.890 | infrastructure | serverfault.com | |
390,661 | .bashrc and .ssh/ disappearing seemingly at random | I have a server that has been running Fedora 16 ( 3.1.0-7.fc16.x86_64 ) for about a month now. I only log in every few days or weeks, but when I do, sometimes files are missing from my home directory. I don't keep any documents or whatever in there, so I can't say to what extent I have the problem, but I do know that t... | If you have root-level access to the server you can install and enable [CODE] which tracks filesystem-level changes and will help you identify what is responsible for removing the file. You'd then set up a watch for writes to your home directory (deleting a file from a directory requires writing to the directory contai... | 2 | 3 | 2,324 | 2012-05-19T15:03:43.070 | infrastructure | serverfault.com | |
281,900 | Using a UTM with a Link Aggregrator | I consider changing my office's internet access infrastructure to multilpe ADSL lines aggregated with a link aggregator ( Peplink B710 ). I plan to place my existing UTM ( FortiGate-100A ) after the balancer. Should I expect any problems with this configuration? I am afraid that the multi link , multi IP network might ... | If the network traffic sessions are not stateful end-to-end across the multi-link device, through the UTM, all the way to the end-clients, then some applications may not work. In those cases, the end-point applications may wind up seeing something that looks like a session hijack attack, if multiple IPs (as the result ... | 2 | 1 | 215 | 2011-06-19T08:59:59.107 | infrastructure | serverfault.com | |
443,189 | TMG setup exit with installation failed error when adding network adapter | I have setup a server for TMG installation. When I run setup it works fine until it gives me option to setect network. When I click on add option to select internal network, setup exit and gives an error of installation failed. Event log shows following message: | While troubleshooting further, it was noticed that the ISO file was mounted using UltraISO. The ISO extractor tool stripped the file properties that had the digital signature and version info. After extracting setup files from ISO using WinRAR, installation successfully completed. This is link to source that helped in ... | 0 | 0 | 299 | 2012-10-28T20:27:52.750 | infrastructure | serverfault.com | |
166,780 | Feasibility of Partitioning existing tables with huge data in Oracle | We have a set of 24 tables that take up about 1tb+ data which is why DBA suggested to use partitioning to better handle usage. The only issue being the partitioning of the existing tables is something they are not advising as data transfer from current to temp table will take a lot of time(dbms_redefinition), which is ... | Oracle Database provides a mechanism to make table structure modifications without significantly affecting the availability of the table. The mechanism is called online table redefinition. Redefining tables online provides a substantial increase in availability compared to traditional methods of redefining tables. You ... | 2 | 2 | 5,245 | 2017-03-10T05:11:15.743 | database_errors | dba.stackexchange.com | |
301,187 | Backup datacenter for web-app without DNS failover/rr | We have some servers which run a web-app, all the servers run in a single datacenter and we've never had any issues. However as we start to get bigger I've had to think about what we're going to do if our datacenter goes down. It's not cost-effective for us to have servers in two different datacenters running 24/7 so m... | So, if your site is reachable at www.example.com and you want www.example.com to go 'somewhere else' at certain times, there aren't a ton of choices. As you said, dns failover won't work for you, because you want the cold site carrying 0 traffic and instant fail back and forth. So, we're looking at some IP based failov... | 0 | 0 | 367 | 2011-08-15T12:43:43.297 | database_errors | serverfault.com | |
62,361 | How can I speed up a Postgres query containing lots of Joins with an ILIKE condition | I have an odd problem which I really don't understand. Simply put I have a join containing 4 table joins, which I believe all have appropriate indexes, but which takes a ridiculous amount of time to query, unless I remove bits of it. The greater picture is that there are 3 types of object A, B and C each has it's own t... | I see a couple of issues. The biggest one is that PG is using a sequence scan on A when filtering A . I think you need a composite index on A.flag AND A.strvalue. If there is already an index available, PostgreSQL is choosing not to use it for some reason. This seems to be eating up 92% of your cost estimate and is lik... | 2 | 6 | 5,815 | 2014-04-02T16:01:52.983 | warehouse_errors | dba.stackexchange.com | |
366,503 | Fedora 15: em1 recently dissapeared and hostapd no longer serves internet to wirelessly connected devices | I have a laptop running hostapd, phpd, and mysql. This laptop uses an Ethernet connection to connect to the internet and acts as a wireless access point for my workplace's wifi devices. After installing some software and reconnecting my Ethernet elsewhere, my "em1" device is no longer present and wirelessly connected d... | Installing the latest version of Fedora solved my problem. Although the device is still named p4p1, all modules that I was previously using works. Another fix for this issue is to install Fedora 15, update it so that the name of the device changes, then install all of the software. | 0 | 0 | 967 | 2012-03-05T16:29:42.377 | database_errors | serverfault.com | |
67,134 | Proxy mail to different smtp server with Postfix | How can I forward (or proxy) mail to different smtp servers depending on the To address? I've got one machine with an SMTP (postfix) server listening on port 25. I want to use Lamson ( http://lamsonproject.org/ ) to handle some incoming mail and some mail I want to have postfix to handle. My idea is to setup Lamson to ... | Postfix is extremely flexible (and therefore, complex) in its configuration, so there are various ways to achieve this. The simplest way would probably be to use a [CODE] table. First, enable the use of a transport table in postfix: [CODE] You'll also have to make sure that Postfix accepts mails for the addresses that ... | 12 | 20 | 29,797 | 2009-09-20T16:29:52.730 | infrastructure | serverfault.com | |
884,456 | Can't connect to site in IIS through DNS Alias, but can connect through localhost | I have a site in IIS configured and visible over localhost. I have also set up an CNAME Alias within the DNS to point to this server as 'main' and set up the bindings for the site with 'main' over port 80. From the server the site is configured on, I am able to view the site as Localhost, and can ping the Alias, which ... | After prompting from @simlev, running [CODE] showed that the IP address I was expecting was not present in the list listening to port 80. Running [CODE] gave me the IP Listen List, which also was missing my external IP address, only [CODE] After running [CODE] to add the IP address of my server, the site can now be acc... | 0 | 0 | 5,208 | 2017-11-21T13:40:35.767 | infrastructure | serverfault.com | |
343,242 | mysql Innodb engine disappear | I had to change the tmpdir directory from /tmp to /db/tmp/ folder due to the fact I didn't have enough space. When I changed my path and I ran SHOW ENGINES; I got below result; ARCHIVE MRG_MYISAM CSV MYISAM MEMORY But, when I changed the directory back to /tmp my Innodb engine came back. SHOW ENGINES; ARCHIVE MRG_MYISA... | You should add the following to /etc/my.cnf [CODE] then [CODE] (For tmpdir , restart is required) Also, run this in Linux just in case: [CODE] Give it a Try !!! | 2 | 0 | 172 | 2011-12-21T19:43:23.223 | database_errors | serverfault.com | |
936,292 | Poste.io - can't login by mail application - bad SSL certificate | I have a proble with poste.io and configuration with nginx-proxy. DOMAIN is valid domain :) This is my docker-compose for poste.io: [CODE] And this is configuration for nginx-proxy: [CODE] Almost everything works fine (I can login into dashboard with https, send and receive mail via roundcube), but I can't login to mai... | I found solution. Solution is use external volume for well-known. After that in Poste.io attach external volume to [CODE] And [CODE] For each nginx container. After that you can call TLS certificate for Poste.io . | 0 | 0 | 2,407 | 2018-10-19T09:43:55.127 | api_errors | serverfault.com | |
847,234 | MySQL root user with no password (on local dev) stopped permitting access after update | I have MySQL running on a virtual machine on my laptop within a host only network (no access to the wider internet except when I turn on the NAT interface to update the O/S). For convenience, I have the root user with no password. I have a number of projects that are setup to access the database this way within my deve... | I'm not sure if the update changed the plugin for root@localhost or if the plugin remained unchanged and MySQL's behavior changed, but I resolved this problem by changing the plugin for root@localhost to [CODE] with the following SQL: [CODE] | 1 | 1 | 1,636 | 2017-04-28T18:56:09.397 | database_errors | serverfault.com | |
998,340 | problems with bridge-networking libvirt on centos 8 | I am running a centos 8 as virt-host with libvirt an kvm/qemu. Networking is set to bridge-mode with virbr0. Suddenly and over-night this stops working: The clients don't connect anymore, and if I try to connect the network in virtual-machine-manager I get "Bridge virbr0:Empty Bridge" and this even before starting any ... | after I nuked and paved a 5th time I did this: [CODE] Then I cheated and added the static ips to the br0 with nmtui and fired up libvirt... viola... working | 1 | 1 | 3,341 | 2020-01-09T18:54:52.880 | infrastructure | serverfault.com | |
879,354 | Terraform dependency on template | I have a template file that is used to create a config file that is then used to help provision an instance. If the template file changes I want "terraform apply" to trigger the regeneration of the config file and then when the config file changes I want that to trigger the regeneration of the instance. Is there a way ... | You could reduce complexity and fix the dependency chain by utilizing the feature of provisioners outlined here . Specifically, I think you can remove the [CODE] provisioner and instead do the following: [CODE] | 0 | 1 | 665 | 2017-10-19T23:06:36.963 | pipeline_ops | serverfault.com | |
58,312 | How to get the name of the current database from within PostgreSQL? | Using [CODE] in PostgreSQL will connect to the named database. How can the name of the current database be determined? Entering: [CODE] produces: [CODE] | The function [CODE] returns the name of the current database: [CODE] It's an SQL function, so you must call it as part of an SQL statement. PostgreSQL doesn't support running functions as standalone queries, and has no [CODE] statement like some other SQL engines, so you just use [CODE] to call a function. | 200 | 298 | 291,696 | 2014-02-05T21:16:56.757 | database_errors | dba.stackexchange.com | |
4,054 | ts_rank massively slows my query, how can I improve performance? | Here's the table definition [CODE] and the query [CODE] Here's the query plan for the slow query [CODE] Here's the query plan without the [CODE] [CODE] I'm not sure why adding [CODE] to the query is causing it to balloon in time like this. Is there anything I can do to optimize the query? please note that removing the ... | [CODE] will rank all rows, most of which will probably have a ranking of 0. So it's faster to do a search without [CODE] and then [CODE] the results of that search using the same query. So you'd probably want to do something like [CODE] | 8 | 3 | 4,236 | 2011-07-23T03:13:17.137 | database_errors | dba.stackexchange.com | |
177,246 | Remove roles and users from postgres AWS RDS | I need to remove roles and users from postgres AWS RDS. Can you please suggest on this issue, please share the queries for this. | If the account is authorised in postgres its just the same command as it would be in a normal postgres server: [CODE] would hit me for example for full details look here: https://www.postgresql.org/docs/current/static/app-dropuser.html dropping groups is near enough the same, documentation here: https://www.postgresql.... | -3 | 1 | 1,244 | 2017-06-26T09:12:52.313 | warehouse_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.