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 |
|---|---|---|---|---|---|---|---|---|---|---|
224,663 | CPU and Hard Drive Spike for 20-30 Minutes | I'm collecting data on the performance of our Microsoft SQL 2008 server in preparation for moving it to Azure. It's a very low load server (currently max concurrent transactions max out at 3), however, about once a day there's a CPU and hard drive activity spike for about 20-30 minutes. Transaction activity during this... | ...once a day there's a CPU and hard drive activity spike for about 20-30 minutes...the buffer cache hit ratio drops to almost 0 at the beginning of this spike (returns to 99+% quickly). This spike is almost certainly due to daily maintenance tasks - specifically, index rebuilds and [CODE] . These are very resource-int... | 0 | 0 | 99 | 2018-12-11T15:36:51.903 | warehouse_errors | dba.stackexchange.com | |
2,973 | How to insert values into a table from a select query in PostgreSQL? | I have a table [CODE] and a table [CODE] . Now I want to insert a row into [CODE] from [CODE] . Is there any short SQL-syntax for doing this? I have tried with: [CODE] but I get a syntax error: [CODE] I now tried: [CODE] It worked better but I got an error: [CODE] This may be because the columns are defined in a differ... | Column order does matter so if (and only if) the column orders match you can for example: [CODE] Or if they don't match you could for example: [CODE] but relying on column order is a bug waiting to happen (it can change, as can the number of columns) - it also makes your SQL harder to read There is no good 'shortcut' -... | 393 | 569 | 918,465 | 2011-05-27T08:33:05.377 | database_errors | dba.stackexchange.com | |
598,676 | Failed to stop TeamCity build agent service via net.exe. Failed to start process. Return code was 2 not equal to zero. | I installed TeamCity locally on my Windows 8 machine. When I open TeamCity via my browser it shows 0 agents. When I look at the agents, I see 1 agent disconnected with a message that it unregistered itself and the message "will update". I wait but nothing happens. I checked the log file in [CODE] and saw that message "... | The solution turned out to be to grant permissions to manage that service to the account the services are running as. You can find a detailed walkthrough on Thom's HeadSpace blog at: http://thommck.wordpress.com/2011/12/02/how-to-allow-non-admins-to-start-and-stop-system-services/ I'll put the summarize notes here, but... | 1 | 1 | 1,466 | 2014-05-26T22:35:33.353 | infrastructure | serverfault.com | |
109,400 | What it is a data structure of a certain type called? | I'll try to keep this as much language agnostic as I can but I'll give the examples in C# since I now know how to solve it that language. The question came to mind when I was thinking of how could I instantiate many objects of the same type. Lets say I wanted to create one rectangle, I would do: [CODE] Now, if I wanted... | You are creating an array, which is something built in to the language, in the case of C#. If you want a nice collection object you can create the collection you want, say an ArrayList, or better, ArrayList and call the Add() method in a loop, adding a New Rectangle each time. The specifics do vary from language to lan... | 1 | 5 | 277 | 2011-09-19T22:44:08.127 | api_errors | softwareengineering.stackexchange.com | |
145,843 | database inaccessible and stuck in startup state | Situation I have 7 databases which are inaccessible. In the sql server error log, I see them starting up but they never become available. In sysprocesses, I see them stuck in IO_RETRY wait type. select spid, lastwaittype,cmd, status from master..sysprocesses order by spid; Effects The above situation is causes CPU cons... | What do I want now? Remove these databases in any way possible, so that they don't consume any resources. I don't mind trying unconventional methods . To remove them just stop SQL Server and delete MDF and LOG files. I assume you have good backups. | 1 | 0 | 530 | 2016-08-02T15:52:59.847 | database_errors | dba.stackexchange.com | |
497 | What statistical model should I use to analyze the likelihood that a single event influenced longitudinal data | I am trying to find a formula, method, or model to use to analyze the likelihood that a specific event influenced some longitudinal data. I am having difficultly figuring out what to search for on Google. Here is an example scenario: Image you own a business that has an average of 100 walk-in customers every day. One d... | For the record, I think this is the type of question that's perfect for the data science Stack Exchange. I hope we get a bunch of real world examples of data problems and several perspectives on how best to solve them. I would encourage you not to use p-values as they can be pretty misleading ( 1 , 2 ). My approach hin... | 23 | 13 | 749 | 2014-06-20T03:18:59.477 | api_errors | datascience.stackexchange.com | |
999,728 | Nginx selective TLS passthrough reverse proxy based on SNI | I have system of IoT devices behind a NAT, so they are not accessible from the public internet (although it's desired). To overcome this I tied them into a VPN, with one member exposed to the public internet to act as a gateway. The VPN has an internal domain set up, and each member of the network has a subdomain based... | This does the trick: [CODE] | 1 | 1 | 3,480 | 2020-01-21T01:05:47.257 | infrastructure | serverfault.com | |
294,161 | Enforce that every company has at least one CEO | I've a requirement to ensure that every company has at least one CEO. Example database model with requirements db<>fiddle . Basically, a CEO can't be removed from a company without naming another CEO. The CEO can't take another role in the company, when there is no other CEO. But it's OK to remove all 3 entities: compa... | The main problem with your trigger is that it's oblivious to concurrent changes. You requested an example in the comments so here's a simple one. Starting from the dbfiddle with 'lisa' being CEO of 'amd', let's add a second CEO: insert into staff values (alice', 'amd'); insert into roles values (2, 'ceo', 'alice'); tst... | 2 | 2 | 212 | 2021-06-11T22:51:43.950 | data_quality | dba.stackexchange.com | |
128,202 | What does a code review look like? | I'm writing a code review process document for our team; we've never had a formal process in place although we do do some code review. I've found lots of articles talking about how important code review is, but I have one question in particular that I haven't found the answer to on the web... is the programmer part of ... | A formal code review could go like this: Programmer sends material to reviewer Reviewer goes over material Programmer and reviewer sit down go through the material. Programmer takes notes. Design discussion are postponed. The programmer corrects whatever came out of the review. The programmer should always talk to the ... | 38 | 40 | 8,070 | 2012-01-03T21:37:20.853 | api_errors | softwareengineering.stackexchange.com | |
1,038,873 | HAPROXY : reverse proxy with TLS termination | I'm a newbie with HAProxy, and I want to use it to redirects HTTPS incoming requests to my HTTP backends servers. I know, how it is possible to do it with Nginx, like this : [CODE] But I don't know how I can do it with HAProxy ? I have already tried several things. But each time I only had HTTPS to HTTPS redirects. Can... | I prepared a clean working sample, from which you can set up a clean configuration and add the functions you require. In general, what I teach people learning about different applications and topics is, that they should be able to understand the basic function of each line of configuration. This can be achieved by read... | 2 | 0 | 4,798 | 2020-10-15T18:41:09.570 | infrastructure | serverfault.com | |
242,435 | Does NetworkSolutions have a good DNS service? | I'm recovering from a DNS disaster and I need some good advice on an alternate solution. My company owns a domain name through NetworkSolutions. Our website is hosted by another company who also maintains our DNS records. Our email is hosted by Google Apps, and the MX records are maintained through the afore-mentioned ... | I just checked my network solutions account for my personal domain and yes it does support TXT records. I'd say the UI is very simple. The only thing that might confuse some people is they use the standard . at the end of a full hostname in their Web UI. So if you have a domain example.com and you are making a CNAME re... | 3 | 2 | 4,226 | 2011-03-02T21:19:35.877 | infrastructure | serverfault.com | |
104,454 | Defining a function in Pandas | Hello Data Scientists, Disclaimer: I am a Beginner learning Python and at the same time just trying out a lot of things. I am doing some data extraction on a file with with weekly deaths in Switzerland between the years of 2010 - 2019 (to be found at https://opendata.swiss/en/ ). I narrowed down the age group of 0-64, ... | If you want to get the total number of deaths for each year in the data there is a much easier way than manually going through all the years and subsetting and summing the data. pandas has the [CODE] and [CODE] methods for this: [CODE] This line of code makes groups in the dataset based on the [CODE] column, and within... | 1 | 0 | 28 | 2021-11-24T19:55:46.047 | data_quality | datascience.stackexchange.com | |
29,161 | Opera and Safari webdriver configuration doesn't work properly on Windows | I use Selenium WebDriver in Java and I need to configure Safari and Opera browsers. For Opera almost work properly but I need to set Binary [CODE] Is it possible to skip line setBinary and still working? Second question is about Safari web browser. I use this code: [CODE] and occurs error org.openqa.selenium.WebDriverE... | Safari: Let's get this one out the way. Like fellow contributors already commented below your question, testing Safari on Windows will be an uphill battle since Apple basically dropped this configuration. Since you won't likely be able to run and test the latest Safari browser on Windows, you're just better off setting... | 4 | 2 | 3,079 | 2017-08-21T13:26:39.580 | data_quality | sqa.stackexchange.com | |
47,409 | Target Encoding: missing value imputation before or after encoding | I want to perform a target encoding for my categorical features although I am not sure when to perform the data imputation if any of them has missing values. Let's say I have a few continuous features, Cnt1-Cnt5 (without NA's) and two categorical features, Cat1 and Cat2, with Cat2 having missing values. Let's also assu... | If you want to do TargetEncoder you have to impute the missing values first. First of all you should convert your categorical features into [CODE] , using [CODE] or [CODE] . I used a huge numeric value (my choice : 8888) in order to fill the [CODE] values, before running [CODE] . Then transform your matrix to int, it w... | 3 | 2 | 2,607 | 2019-03-16T10:57:11.730 | data_quality | datascience.stackexchange.com | |
56,267 | How to use a deep learning algorithm to cluster image *styles* in an unlabeled data set? | I have a hard problem, and I'd be interested in hearing people's thoughts. I have a set of images depicting a large variety of phenomena, but only a few styles . The images are already labeled by phenomenon, but not by style. The distinction between image styles is largely based on what technology was used to produce t... | You can use a pretrained model, extract features, and try to cluster images based on these features. The success will be contingent on the "style" you want to distinguish (and if the derived features represent the different styles). I had a similar problem and used [CODE] and [CODE] features to cluster images using [CO... | 1 | 1 | 407 | 2019-07-23T19:23:59.510 | data_quality | datascience.stackexchange.com | |
669,509 | crontab grep function execution | When I tried exection grep function in particular directory its working on that directory but when I am trying to execute using absolute paths grep is not working for example [CODE] The above command output getting as empty file. Is it possible to schedule grep in crontab to match text and generate valid output ? | The [CODE] in your crontab file gets turned into a newline character unless escaped with a backslash. Try [CODE] see [CODE] for details. | -1 | 1 | 1,907 | 2015-02-18T06:57:52.910 | infrastructure | serverfault.com | |
856,766 | Making NWAM go away in Solaris 11.3 | In configuring a Solaris server I generally want to configure networking manually via [CODE] and [CODE] , as opposed to using NWAM (Network AutoMagic.) I came to learn in Solaris 11.0 that it was important to ensure NWAM was fully disabled if it wasn't being used. In that version, at least, I was able to accomplish thi... | Ok, after writing the question it occurred to me that I ought to RTFM the documentation written specifically for version 11.3. From that, it seems that rather than disabling NWAM , you now will instead want to set the active network mode to fixed mode . Evidently, the same procedure as noted in the question for disabli... | 0 | 0 | 818 | 2017-06-20T09:29:19.687 | data_quality | serverfault.com | |
267,746 | How to test network connectivity API using TDD? | I'm currently trying to add TDD on my workflow. I fail to create tests where I can easily test a library that requires remote connections. More precise, my program uses snmp4j library. Currently I'm working with 1 release behind due to I don't know what's the impact of the new API release on my code. So I read that imp... | In their book Growing Object-Oriented Software, Guided by Tests , Steve Freeman and Nat Pryce tackle this very issue. I do recommend that as a worthy read, since it's full of interesting examples and I'll probably just misquote, anyway. Rephrasing, they argue that instead of mocking the external API you have no control... | 5 | 5 | 1,191 | 2014-12-31T13:58:45.167 | api_errors | softwareengineering.stackexchange.com | |
1,060,159 | How to resend bounced email messages using mutt | Background An email relaying issue was resolved. 32 email messages to sponsors had bounced to root. I copied /var/mail/root to /tmp/root. I deleted irrelevant messages from /tmp/root (using mutt). All the bounced messages had the same sender. Requirements An efficient way to do the following for all 32 messages: Extrac... | In mutt, start in the message index listing the bounce notification messages of interest. With the cursor on a bounce notification message, type v to open the Attachment Menu for the bounce notification message. The Attachment Menu lists all attachments. A description of each attachment is shown. The subject of the ori... | 0 | 2 | 410 | 2021-04-12T18:01:57.220 | infrastructure | serverfault.com | |
271,287 | Should I generate reports client or server side? | I am thinking of a standard AJAX setup (JS PHP MySql). I want to generate reports (charts, tables, etc) probably using at maximum a few dozen data points (certainly never over 1k). I am unsure whether to download all data on initial page load and generate charts when the user changes a parameter - say start date for ex... | You are in the land of "depends" I tend to favor client side reporting. However if it takes longer to transfer the data points then your in sever land. There is no standard answer. For smaller data sets client side is fine and common. No real performance concerns with small data sets other then off loading chart genera... | 1 | 1 | 3,637 | 2015-01-27T15:22:21.830 | database_errors | softwareengineering.stackexchange.com | |
383,252 | Change VMWare vSphere Memory Usage Charts to MB or GB | Is there a way to set VMWare vSphere Client to show my OS memory usage in MB or GB instead of KB? | I haven't seen such an option, but you can export the data and import it in Excel. | 3 | 1 | 2,230 | 2012-04-26T03:28:15.227 | infrastructure | serverfault.com | |
742,230 | mongo db installation showing storage engine error | I just installed monodb(version 3.2) at my windows machine. I created /data/db directory also. when i give the command "mongod" to start it, it shows the following error [CODE] previously I installed version 3.0 but no error like that. Can any body help me with this? | In there site they are saying that the default storage engine is "wiredTiger" but it has been also said that wired tiger does not work in 32 bit environment. so I wrote in my command line [CODE] to switch to mmapv1(the default storage engine og 3.0 version) and it's working now. | 2 | 3 | 16,028 | 2015-12-10T17:57:02.093 | database_errors | serverfault.com | |
722,538 | multiple client istances for openvpn connections | Good day At my company, on windows machines, we have different client connections open with openvpn like this: [CODE] They are completely different servers in different locations with their own subnets and iptables rules, this because we have offices running in heavily censored places that need specific rules for each ... | Debian-based systems should be able handle multiple VPN connections just fine. Just put the configs in [CODE] . If you haven't modified your [CODE] then the startup scripts will startup an instance of openvpn for each *.conf in this directory. Of course this assumes that your various VPNs don't have conflicting routes ... | 6 | 4 | 8,751 | 2015-09-15T19:39:19.410 | infrastructure | serverfault.com | |
143,847 | Adding dynamic business logic/business process checks to a system | I'm wondering if there is a good extant pattern (language here is Python/Django but also interested on the more abstract level) for creating a business logic layer that can be created without coding. For example, suppose that a house rental should only be available during a specific time. A coder might create the follo... | This is fine, but I don't want to have to code something like this each time a new rule is needed. I'd like to create something dynamic, ideally something that can be stored in a database. Well, judging from your requirements, you will have to code something. A new logic rule means a new implementation. How can you san... | 2 | 3 | 1,606 | 2012-04-10T20:07:04.500 | data_quality | softwareengineering.stackexchange.com | |
1,029,944 | Apache ErrorLog: cannot use a full URL in a 401 ErrorDocument directive --- ignoring | I use the .htaccess file on my Apache to display custom error documents. This all works fine too. But I still see lots of this error in the log: [CODE] Line 6 of my .htacess looks straight forward: [CODE] Why can't a full URL in a 401 ErrorDocument directive be used? Bug or Feature? | You can use only local URL-path in response to code 401. It is because when you specify an ErrorDocument that points to a remote URL (ie. anything with a method such as http in front of it), Apache HTTP Server will send a redirect to the client to tell it where to find the document, even if the document ends up being o... | 1 | 1 | 2,516 | 2020-08-13T08:41:55.783 | api_errors | serverfault.com | |
976,895 | Fail2ban won't ban IPs | I installed the Fail2ban on my Ubuntu 18 server with etc/fail2ban/jail.loca l file [CODE] after restart fail2ban service I can allways see attemts to login auth.log [CODE] How to ban these ips? Thank you for your help. | Your problem is here: [CODE] The Jail Option [CODE] defines the Path to the log file which is provided to the filter If the attempts appears in the [CODE] , that should be defined in your [CODE] , instead of this [CODE] . Additional hint: [CODE] is extremely low and will probably ban legitimate users, including yoursel... | -2 | 4 | 392 | 2019-07-26T18:49:46.587 | infrastructure | serverfault.com | |
366,659 | Xen Bridge Over VirtualBox Bridge | Short version : Will a Xen bridge work over a VirtualBox bridge? If so, how does it work? Long version : I have Debian 6 (Squeeze) 64bit installed as a guest in VirtualBox, which is setup as a bridge connection using my local NIC in my laptop (not wireless). Xen installs fine and I can start VMs. However, bridge networ... | It is possible to run Xen paravirtualization bridge from within VirtualBox. Just allow promiscuous mode in the virtual machine settings, and do not use a wireless NIC for the attached bridge adapter in VirtualBox. Here are my settings: I tested both using Xen and a Debian bridge, they both work fine. I know this is not... | 3 | 3 | 2,037 | 2012-03-05T23:58:29.410 | infrastructure | serverfault.com | |
105,721 | Use trigger to synchronize columns with fields in json column on insert or update | I'm a bit of a database/postgres beginner,so bear with me. If I have a table, something like this. [CODE] I'm looking to create a trigger before insert or update that will set the columns [CODE] and [CODE] to the values of fields with the same names in [CODE] . So for example if [CODE] contained the below and [CODE] wa... | Actually, this is all you need: [CODE] The manual (since pg 13): [CODE] ( [CODE] [CODE] , [CODE] [CODE] ) → [CODE] Expands the top-level JSON object to a row having the composite type of the base argument. The JSON object is scanned for fields whose names match column names of the output row type, and their values are ... | 6 | 4 | 7,248 | 2015-07-01T22:19:14.133 | data_quality | dba.stackexchange.com | |
365,020 | Big SQL database platform that performs well | I would like to know your opinion on which DBMS (probably SQL) can perform fairly well and not stress the server too much from the CPU / RAM point of view. I'm used to MySQL but I found (maybe it was a bug of MySQL at the time - about 4 years ago) that a database of 1GB (or was it 10GB ? oh well ...) causes system to e... | MySQL should do fine for you given you code the SQL well and have appropriate indexes defined for the queries you are running. You can tune memory but the biggest factor will be your sql and the access plans based upon available indexes. Before anyone says it, yes PostGreSQL would also do fine as would Oracle, DB2, SQL... | -1 | 1 | 208 | 2012-02-29T20:05:44.230 | database_errors | serverfault.com | |
19,179 | Is there a way to use a SQL Server 2000 database in SSIS 2012? | I just got my first chance to install SQL Server 2012 on a test machine. I also installed all of the management and Visual Studios components. I created a copy of one of my SSIS 2008 packages and converted it to 2012. The conversion worked jsut fine, but I'm now getting an error stating that connections to SQL Server 2... | Apparently, the SQL Server Native Client 11.0 (the one that ships with SQL Server 2012) does not support SQL Server 2000. All you have to do is change the data source to use a .Net Provider (SqlClient Data Provider) instead of the Native OLE DB provider. The .Net Provider probably doesn't perform quite as well as the N... | 3 | 1 | 2,033 | 2012-06-13T13:44:42.173 | database_errors | dba.stackexchange.com | |
1,129,535 | Setting up GeoIP to work with Nginx on Debian 11 | I am trying to set up Nginx v. 1.24.0 and GeoIPupdate to work so that users not from a specific country do not get access to the web server. However, as I'm following every guide I see that it is outdated, either the links do not work, because MaxMind deleted them, or they assume I have the module needed to be installe... | I fixed it myself in the most hilarious and sad ways possible. Keep in mind, I have been researching this weird bug for a few days now, and I found it it was because I added a tab so my OCD could be happy in the configuration files. I copy and pasted this and it worked. https://gist.github.com/dunderrrrrr/8d3fced1f73de... | 0 | 0 | 1,513 | 2023-04-24T13:39:13.513 | infrastructure | serverfault.com | |
321,575 | SSIS OLE DB Destination REPLACE instead of INSERT | The information flowing from an OLE DB Source to an OLE DB Destination is getting inserted, allowing duplicate records to be submitted after the package is run. Is there a good way to replace these records instead of inserting them to avoid duplicates? I'm using Visual Studio to edit the package if that helps. | What you're looking for is how to implement an upsert (insert/update) pattern. When you're adding data to a table with existing data, there are 3 conditions you need to account for: This record is brand new This record exists and is different This record exists but is identical Andy Leonard has a great series, the Stai... | 0 | 0 | 398 | 2022-12-30T14:55:56.423 | data_quality | dba.stackexchange.com | |
84,725 | Why is accessibility important? | It seems to be quite a big thing right now and experience with converting web sites to be more accessible seems to be a common criteria for jobs. My question is, why is it important? Is it a legal issue? Can I get sued if my web site does not comply with some accessibility standard? If so, what law would I be breaking?... | This is a bit of a minefield you've strayed into and it's prone to religious warfare. Here's my take on these issues: Is it a legal issue? This would very much depend on where you are, where your servers are, where your customers are and the relevant laws in each of these jurisdictions. There is some evidence that this... | 7 | 12 | 495 | 2011-06-17T05:33:53.647 | api_errors | softwareengineering.stackexchange.com | |
189,625 | Plesk/qmail - Add original recipient to the mail header (required by Tobit David) | I have a server running Plesk 8 and qmail as the MTA. Now I switched one domain from multiple POP accounts to only one catchall because the mail app at the customers side (Tobit David) has the ability to deliver the mails to the right user by reading a specific header field (can be configured by the admin - that's me ;... | Fixed! I found this link where someone had exactly the same problem: http://shyper.net/plesk-x-delivered-to/ Quick solution Create the folder [CODE] Create a file [CODE] with this content [CODE] Make it executable [CODE] Register this file as a handler in plesk [CODE] ??? Profit! | 1 | 1 | 979 | 2010-10-11T07:16:36.890 | infrastructure | serverfault.com | |
1,064,287 | convert strings from mixed to upper case in windows batch scripting | Is there a way to convert strings from mixed to upper case in windows batch scripting? I am writing a batch file to create certain objects and grant user groups access to them. That is, I should issue commands like [CODE] The objects should be in upper case, but the user groups are not. How do I converts a string like ... | I’m not sure I understand your question 100%. You seem to be asking how to convert (the value of) a variable in a Windows batch file from mixed to all upper case. If so, the Super User question How to make uppercase all files and folder on a directory? , by seçkin bilgiç , contains an answer. Assuming that your variabl... | 1 | 2 | 3,079 | 2021-05-21T06:41:31.143 | infrastructure | serverfault.com | |
196,789 | MIT License: Why isn't it considered viral? | The first part of the license implies you can do basically whatever you want with it (copy, modify, sell etc). But the second part says that these freedoms must propagate into all copies of the software. My interpretation of that is, you can incorporate the software into your proprietary project, but that portion must ... | Not quite. Here's the basic idea. As you pointed out, "you can incorporate the software into your proprietary project, but that portion must remain open" under the MIT license. If you have 100 features in your proprietary product, and one of them is based on MIT-licensed code, that's fine. However, if you have 100 feat... | 13 | 22 | 5,317 | 2013-05-02T03:14:31.237 | api_errors | softwareengineering.stackexchange.com | |
274,983 | Why does 'zip' ignore the dangling tail of the collection? | C# , Scala, Haskell, Lisp and Python have the same [CODE] behaviour: if one collection is longer, the tail is silently ignored. It could be an exception thrown as well, but I didn't heard of any language using this approach. This puzzles me. Does anyone know the reason why [CODE] is designed that way? I guess for new l... | It's almost always what you want, and when it isn't, you can do the fill yourself. The main issue is with lazy semantics you don't know the length when you first start the [CODE] , so you can't just throw an exception at the start. You would need to first return all the common elements, then throw an exception, which w... | 13 | 13 | 4,616 | 2015-03-02T17:19:47.827 | api_errors | softwareengineering.stackexchange.com | |
763,842 | Remove .php extension while running wordpress in root directory | I have wordpress installed in the root directory of the domain. I am using pretty links and fast cgi caching. Now I have a directory inside the root directory (e.G. "/course/") that contains some .php files that have nothing to do with wordpress. I would love to access these files without the .php extension. On another... | Moving the [CODE] under the [CODE] block and adding these additions below them finally worked for me: [CODE] Here is the complete server block for reference: [CODE] | 1 | 0 | 797 | 2016-03-15T13:12:57.470 | infrastructure | serverfault.com | |
658,313 | Postfix forwards to Gmail being rate limited even with unmodified headers | I've installed Postfix on Ubuntu 14.04 with the defaults. I then configured some virtual aliases to forward email from a few addresses to various personal (mostly Gmail) accounts. This is just to make these addresses all connect cosmetically to the domain on the website we are hosting. Unfortunately, in a short amount ... | Short answer Do not forward spam. Reject it or Drop it before forwarding. Long answer GMail hates spam as much as you do. So Gmail began to rate limiting your server because your server who throwing the spam upon them. The article that you refer to was talking about domain not IP address. Both was different factors to ... | 1 | 4 | 1,546 | 2015-01-09T06:13:04.457 | api_errors | serverfault.com | |
1,111,207 | Hyper V Dedicated Network Traffic for Hyper V Replication between two Hyper V Server | our scenario The scenario is applied exactly with our planning setting, we need to configure Replica on our VM inside Hyper-V, the issue is how to configure or dedicate a specific network for a replica that all data and traffic included (VMs) should be transferred from Physical Server 1 to Physical Server 2 through the... | This seems like overkill to me to be honest, but the answer to your question is just to configure the 10G SFP+ ports with IPs in a subnet which is specific to them, and then configure the Hyper-V replicas to use either those IPs or hostnames registered for those IPs. | 1 | 0 | 523 | 2022-09-21T07:57:40.393 | database_errors | serverfault.com | |
159,092 | table is corrupted after getting 1114 error : table is full | PC is Intel Core 2 Duo with 4G of RAM. Windows 7 32bit innodb_buffer_pool_size=1G with innodb_buffer_pool_instances=2 I was loading data from CSVs into mysql table using mysql import command. Mysql gave me Table Full Error: 1114 at when my table size was exactly 4G. (Size of .idb file in the ProgramData directory.) Aft... | For me, the solution was to moving to 64bit operating system as suggested by @mustaccio originally in the comments. Thanks to @Rick_james and @mustaccio for their support and instant replies. | 1 | 0 | 614 | 2016-12-24T14:18:53.907 | database_errors | dba.stackexchange.com | |
229,029 | Postgres permission denied | I'm a rookie with postgres, and after I started the postgresql-11.service, I enter in 'su postgres', and try create my db, but appear this message: [CODE] Can anyone help me? | [CODE] needs to connect to a database to issue a [CODE] SQL statement, and by default it will use: a Unix socket domain connection the current username from the shell as the database user (so [CODE] in your case) [CODE] as the database When it does that, in your case you get this error message: createdb: could not conn... | 2 | 1 | 10,610 | 2019-02-06T13:08:50.730 | database_errors | dba.stackexchange.com | |
363,184 | Why do beginners still write SQL? Why do we not push them to use a higher level abstraction? | Every day I see SO questions with some variation on this theme (C#-ey pseudocode) [CODE] I regard this construct/methodology as pretty low level: Many times over tens of years, people have built some SQL-generating abstraction layer flavoured more like a high level language which makes the SQL part de-facto low level I... | Simple. Because there is no way you would really understand how to use a database if you're only interacting with it through the ORM. This already happened in practice to many beginner programmers out there. They have never written a single line of SQL, because their favorite ORM does it for them, and, surprise, surpri... | 8 | 54 | 9,702 | 2017-12-30T23:42:36.310 | database_errors | softwareengineering.stackexchange.com | |
1,137,198 | Unable to compile regular expression in Fail2Ban | I'm trying to get this regex working in Fail2Ban: [CODE] In a regex tester it's working very fine. When testing in Fail2Ban, I get this error: [CODE] This is a line from the log I want to crawl: [CODE] Basically I want to block an IP if there is a block on DPT=5003 Can somebody help? Thanks! | The regex [CODE] uses PCRE named capture group syntax [CODE] which [CODE] , being written in Python, doesn't understand and doesn't use. You need to use [CODE] own substitution [CODE] to capture IP or hostname. See the Developing Filters from [CODE] docs. Update: [CODE] substitution is also recognized, but isn't docume... | 0 | 0 | 194 | 2023-07-14T13:34:36.843 | api_errors | serverfault.com | |
543,351 | Sharing an EC2/EBS RAID10 Array using NFS | I created a 10 disks RAID10 using EBS on AWS EC2 using mdadm on a ubuntu 12.04.2 LTS instance. Let's call this instance A. It works fine and I can create files and folders perfectly in the volume. I want to share the volume via NFS to be accessible via another instance B. So, I installed the NFS server on instance A an... | Did you try with a normal user? According to GNU/Linux Desktop Survival Guide , [CODE] , so root user on B will have virtually no privilege on A. | 1 | 2 | 440 | 2013-10-02T17:22:27.857 | infrastructure | serverfault.com | |
946,171 | Google Compute Engine Ubuntu - OpenSSL 1.1.1a | After performing [CODE] on my Ubuntu 18.04.1 LTS server running on Google Compute Engine I was unable to connect to my server via the WEB SSH. The window is stuck with the following message: [CODE] After some investigation, thanks to frequent snapshots it transpired that apt-get upgrade has updated the [CODE] to versio... | Sometimes these types of issues are transient and the following SSH connection attempt succeeds if the instance was still booting up during the initial attempt. The error you found in the auth.log is very generic, you can review the serial console output to view some additional details to help you troubleshoot the prob... | 0 | 0 | 239 | 2018-12-20T18:14:11.807 | infrastructure | serverfault.com | |
411,382 | Lots of FAILURE AUDIT: an account failed to log on entires in Security Log | I have received lots of failure audits on my server. From the log, I have identified the particular machine that is the culprit. How can I identify which process is sending the login request? Do you have any idea how to find out? Below is the detail of the log. Security log on \QKSRVDC212: [CODE] | On the login source system 'QDMNT140' use [CODE] to see which process has the matching source port '3973' open. Replace 3973 with whatever the port changes to if it's not static. | 9 | 1 | 7,550 | 2012-07-26T09:42:31.757 | infrastructure | serverfault.com | |
355,257 | Handling RuntimeExceptions thrown from Services and Libraries | I am working on a ReST based service which calls other ReST based services and also deals with Persistence in a database. So a typical call might look like Get some data from the database. Make a call to an external service using a ReSTClient to create a record. Persist the response to the database. Make another call t... | I would mainly go the way you described. The only situation where I'd go for local try/catch were if I had to do some rollback action - if ever possible. To the user a 500 error code is perfect (that's what the standard defines, so let's not change that), and I agree that specific error messages don't make sense (somet... | -1 | 0 | 63 | 2017-08-07T17:19:39.220 | api_errors | softwareengineering.stackexchange.com | |
757,831 | nginx is sometimes slow - what can I optimize? | I have always different loading times of my website. Sometimes my website is very fast, but sometimes it's very slow (especially at the evening when there are the most visitors). Here are my configuration files: nginx.conf: [CODE] default.conf: [CODE] php7.0-fpm: [CODE] | If you have many anonymous (ie not logged in users) nginx fast_cgi page caching will reduce your server load and improve response times significantly. I've written a tutorial, you can find the applicable page here , but go back to part one for the config file downloads. If you can't cache your pages, even for a short t... | 0 | 0 | 2,409 | 2016-02-17T14:03:31.667 | infrastructure | serverfault.com | |
323,127 | Multiple php-cgi.exe processes on IIS | The production server runs a PHP application on IIS 6.0. During the peak hours we have had a few issues where the php-cgi.exe processes increase in numbers and approach around 200. The server comes to a crawl and we have to restart the server a multiple times to restore the normal behavior. When the server is running n... | IIS6 CGI is typically 1 request -> 1 process. 15 concurrent PHP-CGI processes is likely due to 15 concurrent PHP-CGI requests. Or you've got a high hang-rate for the PHP processes, and they're just not exiting properly. On Windows, process startup isn't as cheap as on *nix (I'm told); Windows threads are lightweight an... | 3 | 4 | 33,385 | 2011-10-19T15:31:19.943 | database_errors | serverfault.com | |
437,813 | Is it considered as bad practice to have code on the __init__.py? | I am a bit confused about best practices when it comes to where and how to initiate the [CODE] or [CODE] for a data-intensive web API. The vast majority of the code available online is using this structure: app.py [CODE] But based on hackersandslackers.com article , this does not seems a good practice: Notice there's n... | I think you are missing an important piece here that I personally found a little confusing when I first encountered it: packages in Python. You can write a lot useful and sophisticated code in Python and never need to use packages. They can be really useful, however, especially if you need to distribute your code to ot... | 1 | 6 | 6,883 | 2022-04-04T16:00:16.657 | api_errors | softwareengineering.stackexchange.com | |
526,929 | available file handles is 0, how to increase | Since some days, we're getting "Too Many Open Files" within an Java application while loading files. So i start searching on Google, and increased [CODE] to [CODE] in my [CODE] . After this, i run [CODE] . But, this not helped. Because when i type [CODE] , it returns [CODE] . The first four digits vary, but the 0 is al... | Forget the OS level [CODE] , it's the maximum number of file handles your current user/group is allowed to have (per process) you want to edit. See [CODE] . You may adjust this limit as root by modifying [CODE] . Also make sure the limit is applied by adding [CODE] (or whatever limit you wish to have) to your [CODE] . | -1 | 0 | 148 | 2013-07-29T01:07:50.123 | infrastructure | serverfault.com | |
381,061 | Why does this Android app validate email field on every character change and not just when the Save button is pressed? | There's this sample repository , which showcases different Android testing practices. One of the apps is android-testing/unit/BasicSample , which is very simple and, among other things, checks the email field and for that purpose adds a listener like this: [CODE] https://github.com/googlesamples/android-testing/blob/92... | Because it can. It's not overly taxing for the app to do this. Perhaps there are other places where emails are validated, with UI that responds to the validation status changing. Having just one [CODE] that listens to [CODE] events and produces [CODE] events is better than duplicating half of that work for a single che... | -4 | 3 | 83 | 2018-11-06T11:40:13.527 | api_errors | softwareengineering.stackexchange.com | |
1,054,194 | Debian: On same NIC, bridge plus distinct IP address, with different MACs | Debian host. I have a single NIC that's supposed to sit on two networks; on [CODE] and [CODE] . On the [CODE] network, there should be a bridge, so that local KVM hosts can attach to it; the host machine should be available at [CODE] . On the [CODE] network, no need for a bridge, and machine should be available at [COD... | Your concern is wrong. It is pretty typical in IP networks to have several IP addresses associated with the same MAC, though switches don't bother with this. I mean, any address from a network behind the router could be only associated with a router MAC. Also same situation happens in case of proxy ARP (which is a kind... | 0 | 1 | 1,005 | 2021-02-18T22:58:20.287 | infrastructure | serverfault.com | |
155,980 | Increasing enough RAM for OS from Total Physical RAM | Here is my situation: Total Physical RAM : 128 GB Assigned to SQL Server : 122 GB (Lock pages in memory for SQL Server Account) So for OS we have close to 6 GB left now. Now we are facing issue like below: SQL Server:Buffer Manager Page writes/sec has exceeded the threshold of 90 Now we are planning to decrease the ass... | (Full disclosure: I created the Max Server Memory Matrix and associated script that you are referring to in your question.) Per this excellent blog post , which contains a detailed explanation of the issue you're experiencing, you'll find this little quote: The recommended Page reads/sec value should be under 90. Highe... | 1 | 3 | 353 | 2016-11-22T05:59:51.430 | database_errors | dba.stackexchange.com | |
915,316 | Apache server takes 20s to load over HTTPS, but fast over HTTP | I rented a new dedicated server (Apache 2.4, CentOs 6.9) and I cannot figure why pages with HTTPS are taking forever to load while HTTP loads normally. You can test one of the sites here: https://www.dailywritingtips.com/ Clues so far: Restarting the server solves the problem for a while, but after some time it comes b... | View SSL data in the status module: [CODE] [CODE] Example SSL/TLS Session Cache Status: cache type: SHMCB, shared memory: 2097152 bytes, current entries: 7204 subcaches: 64, indexes per subcache: 182 time left on oldest entries' objects: avg: 184 seconds, (range: 15...640) index usage: 61%, cache usage: 80% total entri... | 0 | 1 | 560 | 2018-06-05T17:37:56.950 | infrastructure | serverfault.com | |
51,972 | How can I go about building a model for large number of outputs? | I have previously worked on small-scale feedforward neural network problems. But I have started working on a new project where the goal is to predict air quality in 25 locations throughout the country a day ahead. Now, I am quite well-versed with the air quality side of things. My question: In a problem like this, woul... | Neural networks can have 25 outputs. You would probably get a slightly more accurate result with 25 independent models, but the computation and training time would be 25x of one independent model. One model with 25 outputs would only take slightly longer than one independent model. | 3 | 0 | 122 | 2019-05-14T21:02:46.037 | data_quality | datascience.stackexchange.com | |
1,002,917 | How can I debug inbox rules in Exchange Online | Just migrated from Exchange 2010 to Exchange Online. I notice that some (but not all) of my own inbox rules are now not applied. These rules have [CODE] as action (so the net result is that the incoming mail stays in INBOX). The rule works when triggered manually; it is "just" the automatic trigger which does not work.... | In Exchange 365, as far as we handle it, https://outlook.office.com/ecp then down the left there are Mail Flow rules, such as redirecting messages to an absence mailbox. Our users then use Outlook (installed locally), to then set up folder re-direction rules. [CODE] (It is annoying, you have to log on three times, ther... | 0 | 1 | 1,935 | 2020-02-13T09:40:11.233 | infrastructure | serverfault.com | |
40,417 | mysqldump for UNIX domain socket | I have setup a new mysql database with my webhosting provider and the hostname is not the default localhost it is localhost:/tmp/mysql5.sock I think this is becuase they are moving from mysql 4 to mysql 5 My question is how do I use mysqldump to create a backup file of this database, what ever I try gives me wrong user... | What you are referring to is called a UNIX domain socket . A socket is an alternative communication method to TCP/IP. You can point [CODE] to it with the following flag: [CODE] Additionally you should update the socket location in your MySQL configuration - [CODE] . Sockets are preferred over TCP/IP for local connectio... | 2 | 3 | 4,156 | 2009-07-14T12:16:08.010 | database_errors | serverfault.com | |
131,911 | Contiunous rise of mysqld memory consumption | Mysqld memory consumption rises forever and never seems to be freed. It starts out about 6GB but gradually rises to around 10GB in a few weeks, and of the 10GB only 4GB and 50MB is being used by the buffer pool and the dictionary respectively when checking innodb status. This is with MySQL 5.6.16 on a server with 12GB ... | We tracked it down to glibc. With glibc-2.12-1.149.el6_6.4.x86_64, memory is not fully freed when closing tables. It seems that under high concurrent connections, accessing partitioned tables increases Open_tables which increases memory usage, however memory is not fully freed when the table is closed using glibc. Newe... | 1 | 1 | 118 | 2016-03-11T02:16:37.593 | database_errors | dba.stackexchange.com | |
375,468 | localhost/phpmyadmin pulls blank page | When I tried configuring local machine as a Internet Gateway with website development capabilities over it and I installed all required software into it. I also had disable the selinux into it. But PROBLEM is when I do http://localhost/phpMyAdmin or all lower case than the page shows it as a blank page. I am pasting co... | It seems that you don't have [CODE] enabled. Either use it as a module - [CODE] or as CGI. On Fedora, you can follow this How-To. | 4 | 3 | 4,339 | 2012-03-31T08:40:12.357 | infrastructure | serverfault.com | |
782,030 | How do I configure Ubuntu 16.04 to show my ZFS zvols internal partitions? | I seem to be missing some zvol functionality, but I'm not sure how to phrase it. I had this functionality with these same zpools on an ArchLinux installation. (Migrated the server.) Ubuntu puts the zvols in [CODE] and arch mounted them in [CODE] . That's okay, but I don't know what happened to the partitions that are c... | Just now, on ubuntu 16.04 I did [CODE] and then created a zvol, and then [CODE] again, and then created partitions, and then did a final [CODE] to see what was created at each step along the way. What I found was: [CODE] created [CODE] [CODE] created [CODE] and [CODE] While I was doing this, I noticed, that the new dev... | 2 | 2 | 1,441 | 2016-06-05T04:15:20.660 | infrastructure | serverfault.com | |
952,838 | Exchange 2016 New-Mailboxsearch KQL Query Help - Is this possible? (X or Y) not (Z unless also X) | Thanks in advance for reading & any help you can provide! I'm trying to do a mailbox search against several mailboxes. I need to find all messages that mention some words AND don't mention other words EXCEPT when those words are on both lists. This is a complex search. I don't know how to twist the Keyword Query Langua... | I FIGURED OUT A SOLUTION. I wanted to share my final query, along with some important lessons I learned along the way. LESSON 1. HOW TO IMPLEMENT MULTIPLE PARENTHETICAL STATEMENTS You can only use one parenthetical in a query. However, you can nest another set of parentheses inside that query. Ex: [CODE] WILL PRODUCE A... | 0 | 1 | 948 | 2019-02-07T19:04:22.513 | api_errors | serverfault.com | |
485,922 | FreeBSD IP aliases in different subnets and default outgoing IP address | I have a FreeBSD VPS that until recently had assigned 3 public ip addresses in a /29 subnet. When making outgoing connections, the IP address used was always the non aliased one " .20 ", however now I have added another block of 3 ip addresses in a different /29 subnet and the outgoing IP changed to " .44 ". Below are ... | All aliases within an existing range should have a /32 (255.255.255.255) network mask. So this example you gave is correct -- [CODE] That should see 70.70.70.20 being used for normal outbound traffic. You can't define it, but rather it will always use the main IP on the card, and the first IP in a new subnet set of ali... | 6 | 3 | 3,988 | 2013-03-08T09:55:22.280 | infrastructure | serverfault.com | |
524,795 | HP DL165G7: NMI error | One of "my" DL165 G7 Proliants has rebooted out of the blue for the second time this month. The reboot was accompanied by these system event log entries in LightsOut: [CODE] I have contacted HP support to get help decoding the events, but unfortunately without any notable success - I have been told that there is no acc... | I had a similar problem with HP ProLiant G380 G6 and Windows 2008 R2, digging into the support and help forums got me nowhere, I eventually used the HP Smart Update Manager DVD to install all the latest updates on the server, a year and a half passed with no errors so far. It might be a long shot, but try to use the la... | 4 | 1 | 4,151 | 2013-07-19T16:40:43.967 | api_errors | serverfault.com | |
129,114 | TNS errors using Oracle instant client | I'm struggling to get my Oracle application working. I'm using the Oracle 11.2.0.4.0 instant client with a C++ application that is compiled using Visual Studio 2010. The machine is running Windows Server 2012 R2. The database is running on another machine. The application is as basic as possible where I set up the envi... | I have figured it out. It seems there was a subtle dependency issue which resulted in a pretty irrelevant ORA message. The O11 instant client is not shipped with VS2010 lib/dll files. You need to download these separately, something I had done long ago and forgot about it. When compiling the app, I linked against the c... | 2 | 0 | 2,453 | 2016-02-12T15:46:01.267 | database_errors | dba.stackexchange.com | |
566,417 | Server not responding to http or ping but ssh works | I can access to a VPS through ssh. That VPS has httpd installed on it and running to listen onto port 80. However I can't ping that VPS nor access to his apache but I can log in with ssh. This is strange because I've also check for IPTables blocks (and even disabled the service). Since the server isn't mine but of a cl... | I'd say that's the most likely explanation, if the server was on a residential connection, that could cause issues, some ISPs block classic "server" ports, 25, 80, 443, and so forth. Xinetd and other systems which control access to ports could also cause issues. In theory, you could also configure httpd to respond only... | 1 | 0 | 2,332 | 2014-01-10T17:27:24.213 | infrastructure | serverfault.com | |
939,143 | Secure root-server with SSL on own domain | I'm asking the question this way, to ensure I'm not asking an x-y-question and I understand way too less to ask an elaborate question. I rented a root-server that hosts some apps that I want to reach over the internet. For example my postgreSQL DB is exposed on port 1234 and the domain name, provided by the server prov... | postgreSQL DB is exposed on port 1234 and the domain name, provided by the server provider is [CODE] . I am able to navigate to [CODE] and access the exposed webapp. PostgresSQL cannot be listing on the same port as a http server. I assume you are running a web server on ports 80 and 443, which connects to Postgres on ... | 0 | 0 | 40 | 2018-11-08T13:19:00.577 | database_errors | serverfault.com | |
24,000 | How to use neural network's hidden layer output for feature engineering? | I was wondering how can we use trained neural network model's weights or hidden layer output for simple classification problem, and then use those for feature engineering and implement some boosting algorithm on the new engineered features. Suppose,if we have 100 rows with 5 features (100x5) matrix. [CODE] Network: 2 l... | TL;DR: Yes. You can (iiuc) Longer Version: In fact, this is what many popular algorithms like Word2Vec and AutoEncoders do. (With respect to hidden layer outputs) Word2Vec: Given an input word ('chicken'), the model tries to predict the neighbouring word ('wings') In the process of trying to predict the correct neighbo... | 3 | 2 | 2,156 | 2017-10-23T10:52:06.303 | data_quality | datascience.stackexchange.com | |
335,806 | Performance issues with large structured object in .Net Application Cache? | My ASP.NET app provides many complete separate group discussions. As currently written, the active global data is kept in a complex GroupDiscussionObject that is stored in System.Web.HttpContext.Current.Application under a key specific to that discussion, i.e. [CODE] The GroupDiscussionObject type is a class object wit... | Memory is not the main problem. Concurrency is the main problem. Application state is free threaded. In order to save anything in there, you're supposed to be using Application.Lock . Only one thread can have the lock at a time. And I do mean ONE, sitewide. Not one per user, not one per discussion, not one per applicat... | 3 | 3 | 225 | 2016-11-10T22:29:34.877 | data_quality | softwareengineering.stackexchange.com | |
142,984 | Why is the schema prefix (dbo) mandatory when we call a function? | When user is mapped with default schema (dbo) and we can select all tables under [dbo] without prefixing the schema. We can execute stored procedures without prefix if it's under the default schema. Given that, why do we need to prefix a function with the schema? | The other answer explains that this is a restriction but not the reason why. The requirement is not always true. Scalar UDFs can be [CODE] -ed and still use implicit resolution ( example ). I imagine this is to avoid naming collisions. If functions were allowed to be referenced without schema then someone that created ... | 10 | 12 | 11,750 | 2016-07-05T09:37:00.747 | database_errors | dba.stackexchange.com | |
848,320 | Can LocationMatch Regex match Query String portion? | I am trying to use LocationMatch regex to try to match when a certain file is uploaded or downloaded through an application. The application uses query strings in the URL. The request: "POST /uploads.js?attachment_id=2&filename=issues%20(12).csv&content_type=application%2Fvnd.ms-excel HTTP/1.1" 200 336 I am noticing th... | Actually it's possible since Apache 2.4 (or less) using the tag as follow : [CODE] In this configuration directives will be applied only in the case the URL is under the form "/test/upload.js" and contains the query "query=test". | 4 | 10 | 5,811 | 2017-05-04T18:44:44.497 | infrastructure | serverfault.com | |
39,081 | Windows file server performance tuning | I seek your opinion and tips/suggestions in optimizing the performance of a new Windows file server I'm building. I've inherited a Dell NF500 storage server (basically Dell 2950 with Windows 2k3 Storage Server OS). It has a PERC 6i with 256mb BBU cache and 6x 750gb SATA drives and 4gb system memory. I think I'm going w... | Disk Subsystem: Here's an article from Microsoft re: partition alignment in SQL Server 2008: http://msdn.microsoft.com/en-us/library/dd758814.aspx The theory explained in the article is why I'm giving you the link, not 'cuz I think you'll be running SQL Server. The workload of a file server is less apt to be as touchy ... | 3 | 4 | 9,919 | 2009-07-10T18:38:55.657 | api_errors | serverfault.com | |
124,171 | Optimization problem of find a pair of values (x, y) such that they produce an output z | Problem I am trying to create a process that determines the rent and purchase price of a home that gives me a capitalization rate of 0.08 for instance. Background Normally I calculate the capitalization rate by estimating revenue, operating expenses, net operating income, and other fees associated with buying a home. T... | Updating for anyone stuck in a similar situation. Wanted to give an update for anyone in a similar solution. Found a simpler answer. If you have formulas for everything you likely don't need optimization although it can still be used. Instead you can create a matrix of rent and purchase price values that give you the d... | 0 | 1 | 32 | 2023-10-18T16:44:51.213 | data_quality | datascience.stackexchange.com | |
69,212 | Listener pointing to incorrect AlwaysOn Availability Group | All, Thanks in advance I have two instances of SQL Server 2012 SP1 on a three node WSFC with a HAdr group on each instance with a corresponding listener. Instance 1's listener points to Instance 1, no issue. Instance 2 listener also points to instance 1. I'm at a loss why listener #2 is showing databases for Instance 1... | An Availability Group Listener simply connects the user to a database instance. Once they are connected to the instance they can access all the databases on the instance. It doesn't matter of the databases are part of the availability group or not. This is by design. In other words everything is working exactly as it s... | 2 | 3 | 4,330 | 2014-06-27T17:18:13.897 | database_errors | dba.stackexchange.com | |
231,758 | Distinct counts from large table are too slow | I have a table with 1.2 billion rows. The table has 60-70 columns, the vast majority of which are empty. The table is indexed on [CODE] , among other indexes. My query is: [CODE] This particular [CODE] is going to have roughly 30M rows to count. Unfortunately I am unable to do so as the query takes in excess of one hou... | Would it be improved if I created an index on [CODE] and [CODE] together? Possibly yes, an index on [CODE] (columns in this order!) might very well allow a cheaper index-only scan. You did not provide enough information to say more. If it's all about this particular [CODE] , then a partial index would help a lot more: ... | 0 | 0 | 2,874 | 2019-03-09T23:28:31.427 | warehouse_errors | dba.stackexchange.com | |
809,070 | gitolite admin DENIED by fallthru | I have an issue with SSH keys and gitolite on my macbook. Gitolite is running on my debian server: [CODE] gitolite-admin/keydir i have the keys bob.pub and admin.pub They are different keys. my conf file is basically: [CODE] My ~/.ssh/config file is simply this to specify we use a different port: [CODE] I am testing wi... | For anyone else coming here with a similar problem, there is a reply by gitolite author on the mailing list: https://groups.google.com/d/msg/gitolite/VRLAQaN2QoE/7EWN1I82BQAJ I suggest you add the word "IdentitiesOnly" to your ~/.ssh/config and try again. Kill ssh-agent, keychain, or any of those kinds of beasts also a... | 0 | 1 | 5,575 | 2016-10-14T14:44:03.573 | infrastructure | serverfault.com | |
302,942 | Postgres connections are in "idle" state but cannot find any connected client | I have a single Postgres server and a set of PgBouncers configured to help me with connection pooling. Recently, I discovered that the database connections are getting accumulated in "idle" state over time. [CODE] I executed the following query on the admin console of each PgBouncer to check whether I have any server c... | I feel like PgBouncer for some reason closed the connections with the server (gracefully or ungracefully). But Postgres server did not close the connection. Probably it doesn't know that there is no client. With the connections being in a wait_event of 'ClientRead', they would notice immediately if the client closed th... | 2 | 1 | 2,965 | 2021-11-21T02:09:56.197 | database_errors | dba.stackexchange.com | |
780,261 | Dfs one namespace or two server | My question is similar to " Move DFS Namespace " asked Mar 7 2014 by Alex Mckenzie. I want a fault tolerant server so that users can access folders when one DFS server is not available. So far I have DFS and replication working on both servers. I could access the folder on both server but not using same namespace . I w... | First off - DFS Replication (DFS-R) and DFS Namespace (DFS-N) are not tied together. You can use DFS Namespaces without having data replicated, and you can replicate data without using DFS Namespaces. It's normal to deploy more than one namespace server. Typically one would install the namespace role on domain controll... | 1 | 2 | 2,031 | 2016-06-01T12:06:16.597 | database_errors | serverfault.com | |
980,115 | Occasional Timeouts with Zabbix agents behind an AWS Network Load Balancer | My architecture in AWS is as follows: There are 2 identical zabbix agents (based on zabbix/zabbix-agent:centos-4.0.11) each one running on a different EC2 instance. Zabbix server runs on a third instance (also dockerized with dockbix using 4.0 version as well), all three of them inside the same VPC. The idea is to have... | So apparently I needed to enable cross-AZ load balancing for my internal nlb. That's why it was timing out every second request, as all my instances were in one availability region. | 0 | 0 | 331 | 2019-08-21T09:38:22.343 | pipeline_ops | serverfault.com | |
151,857 | SQL 2000 Backup/Export Process - Can't find SQL 2000 Enterprise Manager, Can't use Mgmt Studio Express | I need to make a backup of a client's SQL 2000 database, however there are a few issues preventing me from doing so using the traditional methods. I've tried using SQL Management Studio Express, but the host doesn't give sufficient privileges to create a backup and I'm getting some strange error messages. I've also tri... | The Microsoft download center has service packs available, not sure if they will allow you to install the client tools directly from the SP installer though. | 0 | 0 | 206 | 2010-06-16T19:00:03.327 | database_errors | serverfault.com | |
926,952 | IP routing issues in Ubuntu | I have four servers: VPN Server (10.12.96.5/28)eth5 & 10.8.0.1(TUN0) Web Server 10.12.96.4/28 Proxy Server 10.8.0.4/24 PBX Server 10.12.96.3/28 PROXY-----VPN-----WEBSERVER VPN-----PBX The VPN server has a private IP 10.12.96.5/28, and a VPN IP of 10.8.0.1. The Proxy server is unable to ping the web server through the t... | The main issue I see is that you are mixing routing between VPN and wired network. PBX (10.12.96.3/28) has already reachable VPN subnet via network IP 10.12.96.5 so you don't need VPN connection (do not try to connect via VPN to the network which you have normally reachable - routed !!). This route is sufficient: [CODE... | 0 | 0 | 295 | 2018-08-18T05:29:38.643 | infrastructure | serverfault.com | |
256,521 | Protecting application against piracy | Can I somehow protect a source available (you can see the source, but you don't have rights to use it) application against piracy? Is it even theoretically possible? Not all of the application has to be available, "security module" or how to call it can be closed source, no licensing issue here. | Can I somehow protect any application against piracy? Is it even theoretically possible? No, and it's a complete waste of time and effort to even try. When Microsoft's new OSes have cracked versions available before release day, and they put more R&D money into just that one feature than you'll ever see in your whole l... | -2 | 8 | 350 | 2014-09-17T15:32:08.160 | api_errors | softwareengineering.stackexchange.com | |
317,467 | The Trustworthy option should be disabled but what is an alternative? | I run vulnerability assessment report in SQL Server 2016 and I received this issue VA1102 The Trustworthy bit should be disabled on all databases except MSDB The reason of setting Trustworthy to ON in my case is that DB Owner of the database has to have access to different database for data read (specifically the store... | The Trustworthy bit should be disabled on all databases except MSDB That is true. The reason for setting Trustworthy to ON in my case is that DB Owner of the database has to have access to different database for data read That is not true. how to achieve the same without setting up trustworthy? Fortunately, that is sup... | 3 | 1 | 990 | 2022-09-27T14:11:38.213 | database_errors | dba.stackexchange.com | |
700,142 | Why do I have 2 httpd module folders? /usr/lib64/httpd/modules and /etc/httpd/modules | I'm trying to compile mod_wsgi on Python 2.7 (which is not my server default) for my virtualenv. I'm doing something like this: [CODE] I have mod_wsgi.so at both [CODE] and [CODE] In httpd.conf I have tried both of these: [CODE] | As @ikrabbe guesses, they are symlinked. [CODE] | 1 | 2 | 1,012 | 2015-06-19T02:11:14.293 | infrastructure | serverfault.com | |
83,602 | Which VPS/VM virtualization host server software should I use? | I am looking to get a start in the cloud computing market, but from the ground up. I have been through the ringer with VM-Ware claiming free, but meaning $5-20k for things you actually need out of it. While XenServer has been Citrix'ed with arbitrary limitations added that you only find out about later as well in key a... | I think that you should focus your efforts on XEN, but look further afield than just Citrix. For instance OpenSUSE comes with XEN builtin and a nice GUI to manage it with. If you need commercial support, then use the commercial SUSE and Novell will support you. Or use Oracle VM server which is also XEN, and get your su... | 1 | 1 | 908 | 2009-11-11T13:49:38.800 | database_errors | serverfault.com | |
935,875 | Magento Data Migration - Host is not allowed to connect to this MySQL server | In Magento Data Migration process, Host is not allowed to connect to this MySQL server. I check Mysql connection using normal PHP file and able to connect in Mysql service. I also create a remote user in phpmyadmin but it also not working and give the error: SQLSTATE[HY000] [1130] Host is not allowed to connect to this... | Seems that you do not have DB/Table PRIVILEGES with that DB username. By default: it is pointed to the localhost's MySQL if you have LAMP stack on the same tier. Ensure that you have connected to your Magento DB. Default Magento Installation (if your DB username is magento), it is owned by magento user: [CODE] By creat... | 0 | 0 | 578 | 2018-10-17T07:15:53.543 | database_errors | serverfault.com | |
646,564 | Monit ignores memory usage threshold config | I installed Monit 5.6 from Ubuntu repositories to alert me about unusually high memory and CPU usages on my VPS. It turned out that 75% memory usage is rather usual for my setup, so I changed the line where the limit is set in file [CODE] : [CODE] But now it alerts me both on 75% threshold and on 90%. I searched where ... | There's always a chance there's a bug... Can you show your Monit version level? [CODE] Could you also post your Monit configuration file? Did you restart the Monit service after making your configuration change? You can do this with: [CODE] or just [CODE] If in doubt about the readings, you can run [CODE] from the comm... | 3 | 5 | 1,474 | 2014-11-24T07:20:32.983 | infrastructure | serverfault.com | |
1,076,433 | Apache: Access management via .htaccess not working | For a few hours now, I've been trying to create a working [CODE] file that forbids access to all files with the exception of a few files and folders. But whenever I write Allow from all in my [CODE] file in a direct subdirectory of my root folder [CODE] , it just says "Server error!" the end. In the attachment I send y... | I have to use the "Require" directive, then it works. Thanks to @MrWhite | 1 | 1 | 72 | 2021-09-02T13:39:19.047 | infrastructure | serverfault.com | |
947,678 | 'make' command error while installing RTL8723DE 802.11b/g/n driver | [CODE] I'm trying to install above wifi drivers in RHEL 7.2 (HP laptop), steps followed by the error message. [CODE] After cloning and running below command, I've encountered an error. [CODE] Part of error is pasted below: [CODE] Any lead on this please. Thanks in advance :) | The very first line of the README says: "This code will build on any kernel 4.2 and newer". You cannot use this driver with RHEL 7. You should open a support case with Red Hat for further assistance. | 0 | 1 | 585 | 2019-01-05T01:40:02.827 | infrastructure | serverfault.com | |
8,218 | Selenium with Java to scrape data from website | I am trying to scrape data from a site I did code for. I want to scrape data on button click event but when I run my program it throws an exception Exception is: [CODE] How can I remove this exception and work my program Here is my code which I tried [CODE] | This error means that you have forgotten to include a dependency in your project. It's been suggested on stackoverflow that the dependency you forgot might well be selenium-server-standalone-version.jar . Does adding that jar to your project help? | -2 | 4 | 4,865 | 2014-04-02T07:25:33.190 | data_quality | sqa.stackexchange.com | |
1,143,523 | Creating an IPTABLES chain, whose rules are ignored, unless the packet is from a certain port? | I want to confirm the following. If I create a chain whose first rule is: [CODE] Does that mean that any further specified rules in the chain, are not checked, unless the packet is from those ports? I'm using [CODE] , and I created a filter with a ban rule that specifies port 25, 465, using [CODE] . But this filter end... | Not "from" but "to". [CODE] lists destination ports. The rule as you written, means: "if the packet was sent to my service listening on TCP port 25 or 465, process it in the chain [CODE] ". How it will be processed depends on the contents of that chain. If it doesn't match any final action ( [CODE] , [CODE] , [CODE] ) ... | 0 | 3 | 134 | 2023-09-12T09:01:27.463 | infrastructure | serverfault.com | |
195,863 | Exchange 2007 Delivery Delayed (maybe need certificate?) | Last week, I setup a new domain and Exchange Server 2007 SP1. I created new accounts and mailboxes for my 30 users and imported all mail from their old domain to this new server. It's a Hub Transport on a Windows 2003 Server R2 SP2. I don't have an Edge Transport Server. I setup the server as servername.mydomain .local... | BitCareTech hit the nail on the head (see above) Short answer: I had to create an rDNS PTR record with my ISP and then go to unblock.secureserver.net (aka GoDaddy.com) and request that they unblock my IP address. See details above... | 2 | 0 | 4,028 | 2010-10-28T17:02:15.780 | api_errors | serverfault.com | |
416,080 | RESTful API User Accounts | I'm trying to expose RESTful API endpoints for creating user accounts to access my API. So, this would be one of the first things my consumers would use. I'm trying to figure out if this is how I should implement the endpoints, so any feedback / guidance (particularly in complying with REST principles) is highly apprec... | It's easier to handle when you have different APIs for different matters. Authentication [CODE] or [CODE] doesn't matter. Use the one you like most for authentication. As for the response, the token you mentioned is OK. GET /users with parameters email and password. The endpoint would return name, email, access_token. ... | -2 | 6 | 1,412 | 2020-09-21T02:15:36.440 | api_errors | softwareengineering.stackexchange.com | |
239,521 | Bandwidth Sharing & Accounting for large networks::Best Practices | I have a large network with more than 1500 PCs and 9000 user accounts in a university. We have classified users in 5 groups and are sharing bandwidth among them using MikrotiK's hotspot with NTTAC accounting backend. We not only control the maximum bandwidth/rate for a user but the time limitations to access the intern... | Solving your AD single point of failure is actually pretty easy. We solved it by putting AD LDAP services (what I presume NTTAC+ uses) behind a load-balancer. That way we have 4 servers providing LDAP auth services from a single IP address, and the load-balancer makes sure that dead servers are removed. We're also a un... | 2 | 2 | 679 | 2011-02-24T01:25:52.990 | api_errors | serverfault.com | |
181,618 | Autocomplete too slow: possible optimizations? | The autocomplete search functionality of my website searches a varchar field which contains the model number of sale items. This field can contains strings varying from 1 to 75 characters and the table contains 400 000 rows. I have come up with a query that searchs only from the start of the string and that takes about... | The solution I went with is to build a "half-triangram" table which contains a pre-processsed version of all the model # substrings as suggested by Aaron Bertrand in the two following blog posts of his : https://sqlperformance.com/2017/02/sql-indexes/seek-leading-wildcard-sql-server https://sqlperformance.com/2017/02/s... | 3 | 5 | 3,303 | 2017-07-24T13:11:12.187 | warehouse_errors | dba.stackexchange.com | |
212,938 | Shall I separate the admin part from the rest of the war | I built a web-applicationg using struts2. Then I built a small admin interface in the same war. With time the webapp grew and so the admin-interface. Now, I'm thinking to separate the admin interface from the rest of the app in a separate war Is it a good idea ? Is there any performance benefit that I can get due to se... | Separating out different parts of a web application from each other as separate wars means that one can stop and restart individual applications at the application server and possibly simplifies the access control on each application. The separate applications means that, in theory one can deploy changes to the admin (... | 5 | 3 | 1,856 | 2013-09-30T11:36:47.183 | api_errors | softwareengineering.stackexchange.com | |
1,096,553 | Ubuntu 21.10 with Samba AD unable to create domain trust account | I am trying to add domain trust account for additional kerberos5 (MIT) domain in Samba AD DC with command: net rpc trustdom add -UAdministrator% What happens is that the account is created into Samba ldap database and I can see it in Windows 11 machine. the command gives an error message: Could not set trust account pa... | In recent samba versions the possibility to add Kerberos5 to kerberos5 trust one-way or two-way has not been implemented yet. There is only possibility to add Samba to Samba trust type. net rpc trustdom add command only supports Domain trust type while Realm trust only has possibility to add it tools like FreeIpa. Docu... | 0 | 0 | 252 | 2022-03-19T12:49:50.740 | infrastructure | serverfault.com | |
547,421 | pread() read only xxxx of yyyy | Occasionally, nginx doesn't send any data back to the browser ( [CODE] in Chrome). Upon checking the server error.log, I find these weird messages: [CODE] Does anyone have any idea why this happens? After a while everything is served correctly again. | I found this russian forum thread that says it's related to [CODE] directives. Makes sense, as I am using Sublime Text and it doesn't do atomic file saves . | 11 | 5 | 5,562 | 2013-10-20T23:28:50.577 | infrastructure | serverfault.com | |
250,578 | WebDAV and Windows 7 client | I've enabled apache dav module on my site and configured digest authentication for it. Now i'm trying to connect windows drive to it. Command follows: [CODE] then it asks for password. After that drive appears to be connected except for one detail. In server logs I can see strange 401 errors: [CODE] As you can see for ... | Welcome to a huge pain. I had the same problem and figured it out in windows. First thing is go to internet explorer then tools internet options. Go to connections tab and look at I believe lan settings. Here look if "auto detect lan settings" is checked. If so uncheck it. This will fix the speed issues. If you still s... | 3 | 4 | 3,754 | 2011-03-22T23:29:04.740 | api_errors | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.