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 |
|---|---|---|---|---|---|---|---|---|---|---|
169,431 | Very slow simple JOIN query | Simple DB structure (for an online forum): [CODE] Around 80k entries in [CODE] and 2,6 million entries in [CODE] tables. This simple query to get top 100 users by their posts takes 2,4 seconds : [CODE] [CODE] With [CODE] even worse: [CODE] Group by [CODE] is missing in Postgres, because it's not required (SQL Server sa... | Another good query variant is: [CODE] It doesn't exploit CTE and gives correct answer (and CTE example may produce less than 100 rows in theory cause it first limits then joins with users). I suppose, MSSQL able to perform such transformation in its query optimizer, and PostgreSQL is not able to push down aggregation u... | 12 | 1 | 11,355 | 2017-04-07T10:58:24.867 | api_errors | dba.stackexchange.com | |
14,961 | How to handle regularly changing AUT in webdriver? | I have QA, Staging and Production environments. Out of these QA environment is changing(new build) almost daily (if its not the case with everyone lets just imagine it, for sake of the problem). Every time a new build comes the locators (XPath, ID, Name, CSS, Class etc.) changes and fail the Automation testcases. I wan... | Get your developers involved. It sounds as if you already know how to write locators that are less susceptible to change. Those techniques still require that certain properties of the page stay the same. If IDs, names, CSS properties, and so on are constantly changing, you may need to talk to your developers about what... | 2 | 2 | 1,181 | 2015-10-01T11:26:47.530 | data_quality | sqa.stackexchange.com | |
721,107 | Gmail (Google Apps) filtering capabilities plus local clamav+spamassassin? | Scenario : My company is going to move all the mail accounts from the current local (and ancient) POP-only provider to gmail, via google apps for work. Current status : Currently we are using a firewall/proxy/spam filter appliance named nethsecurity box (basically an old ipcop based solution on a small x86 embedded boa... | I wouldn't put a local spam/virus filtering appliance in front of gmail. Google's spam filtering isn't perfect, but the additional stuff you'd catch is pretty much guaranteed to not be worth the cost of maintenance. The worst part of gmail, by all accounts, is the sometimes overzealous nature of its filtering, and that... | 1 | 0 | 192 | 2015-09-09T07:58:44.663 | infrastructure | serverfault.com | |
53,562 | Is it better to put filters on JOIN clauses instead of WHERE clauses | MySQL 5.5.8: Question 1: Is there any difference in the following statements and if so, which is preferred performance wise? Can this even be answered without knowing the row counts of the tables before and after the where clause and possible index usage? [CODE] My reason for asking is because if for instance the table... | With any good query planner (and IIRC mysql's is good enough in this regard) for queries where all joins are inner joins (as your's is here, unless otherwise specified joins default to inner joins), it does not matter whether you put the filtering or joining comparisons in an ON clause or in the WHERE. In the presence ... | 8 | 12 | 9,276 | 2013-11-19T14:23:05.287 | database_errors | dba.stackexchange.com | |
287,885 | Can't restart Apache (HTTPD) | Apache has been running fine for months and restarts have run fine. However I went to restart it today and got this: [CODE] All I find in /var/log/httpd/error_log is this but I'm not sure if it's related: [CODE] If it matters, there's nothing in my home directory that httpd should be looking at. It should be running as... | Update: I got it working using [CODE] . Why in the world would that matter? I'm still curious if anyone has any ideas what could be going on. | 0 | 1 | 1,663 | 2011-07-07T12:41:09.323 | infrastructure | serverfault.com | |
311,870 | Why does C# allow you to make an override async? | In C#, when you override a method, it is permitted to make the override async when the original method was not. This seems like poor form. The example that brought me to this was this — I was brought in to assist with a load test problem. At around 500 concurrent users, the login process would break down in a redirect ... | The async keyword allows the method to use the [CODE] syntax within its definition. I can [CODE] on any method that returns a [CODE] type regardless of whether it's an async method. [CODE] is a legal (albeit discouraged ) return type for an async method, so why wouldn't it be allowed? From the outside, [CODE] isn't ena... | 18 | 18 | 11,906 | 2016-03-05T18:00:28.200 | api_errors | softwareengineering.stackexchange.com | |
213,784 | Apache V Nginx - Static File Results | I used ab (ab -c50 -t5s) to benchmark Apache V Nginx for a static file on the same server. Apache becomes CPU bound at 200 requests per second and Nginx is at about 25% CPU while handline 5211 requests per second. No swapping took place with Apache, lack of memory wasn't an issue. I know there are a myriad of different... | This post is now defunct. I discovered that this is NOT a standard Apache setup and the extended mod_security rules is the issue. | 1 | 1 | 561 | 2010-12-17T17:41:07.050 | infrastructure | serverfault.com | |
491,211 | Enable PDO in shared server | My newest client has decided (against my heavy recommendation to use my tried and true host..) to use Webmasters.com to host their site. This is turning into a nightmare... I finally got the full access I needed instead of a child-lock account (couldn't even access root folder people..). So I finally got the client to ... | The solution was to upgrade to Apache 2.x Once I did, PDO worked like a charm. I'm not sure why webmasters.com hosting is running Apache 1.x by default, but given their control panel it doesn't surprise me. | 0 | 0 | 437 | 2013-03-25T19:22:54.530 | infrastructure | serverfault.com | |
825,989 | openvpn: no internet when connected | I've been trying to set up an openvpn connection between my laptop at home running ubuntu 16.04 and a dd-wrt router at my office. The issue is that I lose internet access when connected. Is important to note that I want all the traffic going through the vpn, including internet. The dd-wrt router has this configuration ... | Finally I managed to solve the issue. Actually it was documented everywhere but a little difference needed to be made for my router. To make your router NAT through VPN you must add this rule to iptables: iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE The thing is that my router was using eth1 as t... | 0 | 2 | 8,705 | 2017-01-12T23:10:32.817 | infrastructure | serverfault.com | |
446,531 | .htaccess to PayPal & PayPal Sandbox | For testing on my pre-live site, I'd like to allow only my own IPs and PayPal Sandbox. For production, I'd like to allow only PayPal to my IPN listener. I can restrict in .htaccess to my IPs, but including paypal.com causes 403 in the IPN generator on the SandBox. I understand this may be a security issue for PayPal, b... | If you are testing with paypal sandbox, your .htaccess allow should look like follow Allow from .paypal.com That should allow incomming connection from all machine with *.paypal.com RDNS. You maybe missing the "dot" before paypal. If using LiteSpeed web server try following Allow from 173.0.82.126 That is IP for ipn.sa... | 1 | 1 | 2,217 | 2012-11-08T00:35:14.600 | api_errors | serverfault.com | |
298,163 | DBCC consistency error in SQL Server | I ran DBCC CheckDB in our Production SQL Server 2014. It reported back with one consistency error: [CODE] Since we do not have a good backup for that DB, we have to route to the below scenario. What I did to troubleshoot: I restored the recent backup file from Prod to UAT and ran DBCC CheckDB again to replicate the err... | How do I know which data has been lost? Well that is really difficult to find AFAIK, the best way is test your database and app functionality. You said the data rows are same please also check the constraints and business rules. Since the corruption was limited to one table and you were able to take backup and do a res... | 3 | 0 | 1,331 | 2021-08-17T15:25:05.693 | database_errors | dba.stackexchange.com | |
307,061 | How to handle a client app that connects to a TCP server and sends/receives text data bidirectionally? | I've got a conceptual question (which is probably better posted here than on StackOverflow?). I want to develop a client application that maintains a persistent connection to a server, and exchanges text data back and forth. An IRC client is a great example. So, these are givens: There is a fairly steady stream of inco... | It's likely the most efficient approach is to model your message handler as a state machine. Scan character by character and move to an appropriate state. If there's no state transition defined for a character, then the message is invalid. If the new state is final (a complete message), then execute the prescribed acti... | 3 | 1 | 140 | 2016-01-11T03:33:19.680 | api_errors | softwareengineering.stackexchange.com | |
654,066 | Why does my Firewalld configuration on CentOS 7 fail to start and show iptables errors? | I'd like to: Drop all incoming connections from the external Web except 80 and 443 Allow internal machines on [CODE] to connect to :9000 :8080 Here's what I did to setup my [CODE] zone via [CODE] : [CODE] Here's what the active [CODE] zone looks like: [CODE] This appears OK; however, I run into issues after reload: [CO... | The Linode kernel you are using doesn't have the modules your firewall wants. This is why you get the error "No chain/target/match by that name." (And firewalld is a front-end to iptables.) To resolve the problem, you need to run the kernel provided by the virtual machine, rather than the Linode kernel. Do this by sett... | 2 | 3 | 13,514 | 2014-12-21T19:55:44.073 | infrastructure | serverfault.com | |
391,704 | Polycom CX500 Lync Phone Edition consistently failing to sign in | I have configured a Lync system which is successfully working with the Lync windows client. I followed the instructions at http://blog.schertz.name/2010/12/configuring-lync-server-for-phone-edition-devices/ and was able to successfully configure DHCP and DNS. I tested with: [CODE] and [CODE] Which both returned success... | If the Schannel send the truncated list of trusted root certificate authorities to the Lync phone edition during the TLS/SSL handshake process. Please try to configure the Schannel does not send the list on the Lync FE server and check the problem occurs again.: Click Start, click Run, type regedit, and then click OK.L... | 0 | 1 | 5,835 | 2012-05-23T05:31:25.670 | api_errors | serverfault.com | |
52,589 | Remove label from solaris disk | As you know, any disk used in Solaris has to have a label (if there isn't any, you can just use "format"). My problem is I want to unlabel a disk for testing purposes. Is there any command that does this? Thanks! | Answering myself here: [CODE] This overwrites the label, and a "format label" is required in order for the drive to be usable again. | 2 | 4 | 6,094 | 2009-08-11T07:56:20.697 | infrastructure | serverfault.com | |
825,490 | 503 error on apache virtual hosts | I created a virtual host with the following code on an ubuntu apache server [CODE] And created index.html Then [CODE] No errors were displayed, but sever responds with 503 error. Can anyone help me? | Problem is mod headers is not enabled in apache. | 3 | 2 | 10,856 | 2017-01-11T06:03:03.117 | infrastructure | serverfault.com | |
305,273 | Insert a record via VBA without SQL authentication | I maintain a SQL Server database that's used as a workflow tool for a team of a few dozen users. Those users interact with the database via an MS Access front-end and Windows Authentication. Part of the process requires that anyone in the firm (>10,000 people) needs to be able to submit jobs and feedback via Excel form... | To clarify the goal here, I need to be able to allow any member of the firm to submit a job record. I cannot assume any knowledge of these users, including what Active Directories they may belong to. You'll need to solve this with by adding logins for AD Security Groups. If you have users in multiple AD domains, you ma... | 1 | 2 | 300 | 2021-12-22T02:13:48.190 | api_errors | dba.stackexchange.com | |
1,073,282 | Ubuntu 20.04 + Docker: correct folder permissions | When I was setting up Ubuntu 20.04, I opted for Docker to be installed as well. I haven't made any changes to its settings (i.e. I believe Docker runs as root), apart from creating a [CODE] group and adding my user to it. My containers store their data in [CODE] . In order for me to be able to FTP into the folder and a... | The containers need the ownership of the directories for the user that is used in the container. This depends on the image, every creator can choose which user he wants to use in the container, since the container is isolated. When you run [CODE] you can find this in the configuration: [CODE] In this case, the applicat... | 1 | 0 | 2,920 | 2021-08-02T10:02:06.413 | database_errors | serverfault.com | |
77,772 | Dealing with Violation of PRIMARY KEY constraint SSIS | How do i deal with this error in SSIS. I'm trying to load a data into an archive table. The package failed and came up with the below error message. I know that there are conflicting keys in the destination table that are being brought over from the source. How do I deal with this? Any help will be appreciated. The dat... | If the primary key is a surrogate (ie an IDENTITY valued INT) then you need to remove it from the field list of the insert (if possible) otherwise (if you need to retain the surrogate key values to support foreign keys) to bracket the insert with [CODE] and [CODE] . | 2 | 0 | 5,903 | 2014-09-26T15:46:02.053 | hadoop_errors | dba.stackexchange.com | |
256,232 | Understanding NOT EXISTS | Consider the following table, [CODE] I am struggling to understand application of the [CODE] condition in the context of a Gaps and Islands solution. The following query is meant to find the starting points of 'islands': [CODE] Now the query within the NOT EXISTS condition, [CODE] returns, the column (let's call this c... | Let's move the problematic expression from [CODE] condition to [CODE] output list. [CODE] gives boolean, and SQL server don't want to display it directly, so we'll use [CODE] and convert it to readable form. [CODE] fiddle The query gives us the next output: ID | SeqNo | RowNum | previous_SeqNo_exists -: | ----: | :----... | 4 | 5 | 819 | 2019-12-24T10:11:11.497 | warehouse_errors | dba.stackexchange.com | |
88,214 | Postgresql 8.4 Tuning Guide | I'm struggling to find some useful guides which point me in the right direction. I have a small database (~100MB, the biggest table has 800k records), but data fetching based on several combined joins seems very slow, although the statements look fine in EXPLAIN (mainly index usage, partly Seq Scan). Please let me know... | I wrote a guide to tuning PostgreSQL performance a while ago, that should apply to 8.4 just as well as it does to the older versions we support. | 0 | 5 | 1,640 | 2009-11-25T15:41:54.473 | database_errors | serverfault.com | |
89,498 | Classifying videos with varying length using ConvLSTM2D in tensorflow | I have a collection of videos, where I would like to extract a frame for every second, and then feed them through a ConvLSTM2D for binary classification. I was under the impression that a LSTM could take varying input sizes, but after many hours of googling it seems like I either need to: Use padding and masking Use ra... | I found a solution that works for me. Since I wanted to avoid using padding and masking, and didn't fully understand ragged tensors, I decided to continue with using varying input lengths. My training data consists of a list of image stacks between 6-82 frames. When trying to use this directly with [CODE] where x is a ... | 2 | 1 | 726 | 2021-02-17T14:02:16.093 | data_quality | datascience.stackexchange.com | |
328,680 | Failure to automatically mount a NFS area consistently after a reboot | I have one server A that is configured to auto-mount an NFS path from server B, using the following entry in /etc/fstab: [CODE] During long power outages (and yes, I have a UPS good for about 30 minutes) or power cycles where both machines are rebooted at around the same time, I've noticed that this path is sometimes n... | I'd probably change the 'default' to something like 'soft,intr,rw,bg'. The bg is especially important as it says if the mount fails, retry it in the background for (pretty large number) of times until the it gets mounted. | 2 | 4 | 7,317 | 2011-11-07T22:54:35.310 | infrastructure | serverfault.com | |
254,673 | Moving SQL Server Database Files to New Location - Why permission error? | I was trying to move a database ( [CODE] and [CODE] files) to a different directory on the same server hosting the SQL server. I followed these steps found in this Q&A : [CODE] [CODE] [CODE] [CODE] [CODE] When I got to Step4, I got "Access Denied". Unfortunately, my maintenance windows were very short and no time to tr... | The [CODE] statement doesn't actually move the files. It merely moves the definition of where the files reside. You'd need to actually move the files manually before continuuing to step 4. When you move the files prior to step 4, you must ensure the target directory has the correct permissions for the SQL Serve service... | 4 | 9 | 4,444 | 2019-12-03T15:19:07.513 | database_errors | dba.stackexchange.com | |
456,561 | Vyatta: how do I view up fixed DHCP leases settings? | I'd like to know how could I get the MAC-IP DHCP associations. I know that there is [CODE] but it only shows information about the active leases. | You are looking for the static mapping. This is part of your configuration, not part of a dynamically generated files. You can get it with : [CODE] You can also see additional informations in [CODE] | 1 | 4 | 3,988 | 2012-12-09T17:35:53.500 | infrastructure | serverfault.com | |
34,612 | Give permission to select from system tables | I have a database Microsoft SQL Server 2008 r2. A user called marie is defined, who can access tables on the main database; this works well. Now, I would like marie to be able to perform this query: [CODE] The tables involved are master tables; how do I give permission to marie to read from them? I already tried to exe... | System views require a slightly elevated state to view, since they are instance wide. You'll want to [CODE] for this: [CODE] | 16 | 29 | 54,982 | 2013-02-12T17:59:28.510 | database_errors | dba.stackexchange.com | |
976,987 | apache2.4 can't resolve virtual host configuration | I'm setting up apache2.4 at example.org and we have 2 sites configured. Site 1: [CODE] Site 2: [CODE] When going to any of these sites I'm met with an index of the [CODE] directory and if switch to the URL [CODE] I get the same result. [CODE] and [CODE] are [CODE] records of [CODE] which is hosting the Apache server. [... | Moved reliance to ServerName instead of the vhost name. Swapped it back out to [CODE] . This only happens when using AWS, not Linode, I think it's because the machine doesn't use the public IP but runs through a firewall. This could be sorted w/ modifications to /etc/hosts which I wanted to avoid. I'll just use [CODE] ... | 0 | 1 | 1,793 | 2019-07-28T00:49:06.657 | infrastructure | serverfault.com | |
1,120,676 | Cross-signed (Let's Encrypt) SSL chain validation | Note: I spent like 30 minutes writing/formulating this question, and it turned out into a rubber ducking session. Realised what I was doing wrong, but posting this anyway as it might by useful for other people as well. For context, I work with SSL certificates on a daily base and considder myself having a rather good u... | So to anwser my own question, the matching between a certificate and a trusted root certificate isn't done on a certificate level, but on the key that was used to create (not sign) the certificate. In this case, both the cross-signed as the self-signed [CODE] certificates have been created from the same key with subjec... | 1 | 1 | 548 | 2023-01-19T23:07:46.593 | api_errors | serverfault.com | |
114,208 | PostgreSQL WAL recovery not working due to missing WAL | I am using pgBarman for PITR recovery. Now it's a bit of a crisis, because the Barman backup and the WAL archive seems like it cannot be recovered. We're running PostgreSQL 9.3.6 and latest stable Barman. I ran the following command: [CODE] Leaving us with /tmp/ke-recovery, a folder we can start once we change the path... | I've been kicking PostgreSQL backup around the last couple of weeks, because of a new job, and I find the implementation of PostgreSQL's backup quite hard to grasp. What I have learned however, is that the a missing WAL file is the worst situation you can have. A missing WAL file will not allow you to continue your res... | 2 | 1 | 2,308 | 2015-09-04T12:59:11.790 | hadoop_errors | dba.stackexchange.com | |
177,356 | How can I prevent Postfix sending email outside my domain? | Possible Duplicate: How can I set up Postfix so that all email sent on my dev box gets routed to the developer email group? I have a staging web server, and I have previously prevented any and all mail being sent out from it (I don't want my clients getting test messages from it). I've now set up postfix, but I want to... | I asked this question a second time, and got a response that worked from rems . See How can I set up Postfix so that all email sent on my dev box gets routed to the developer email group? | 0 | 0 | 3,043 | 2010-09-02T14:23:59.503 | data_quality | serverfault.com | |
569,737 | getting started with apache mod_rewrite on a virtual host | hey SO I am attempting to use apache's mod_rewrite module to do some basic rewrting of url on my website so they become a little more seo friendly basically I have a virtual host file that look like this [CODE] now from what I understand the rewrite rule should allow [CODE] to be rendered as the page [CODE] is this cor... | You want [CODE] to work but the first part of your rewrite rule is [CODE] . You also don't use the numbers matched in the first part in the second part, meaning that everyone will always watch the same video, no matter what the number in their URL. Change it to this to fix both those problems: [CODE] I should have noti... | 0 | 3 | 1,712 | 2014-01-24T21:12:18.557 | infrastructure | serverfault.com | |
450,150 | How do AI developers for LLM fix bugs when the LLM misbehaves, given that they cannot control what the LLM learns from the data? | The traditional non AI software with if-then-else and loop statements can be fully controlled. In contrast, machine learning software behaviour is unpredictable since the developer cannot control what the software learns from the data. In particular, large language models (LLM), which are a form of neural networks, are... | machine learning software behaviour is unpredictable since the developer cannot control what the software learns from the data. If you control the model, the data, the input, and the random, then the output will be the same every time. What you don’t have are feature flags. If you tell your code monkey “This LLM is rac... | 22 | 22 | 5,508 | 2023-12-16T16:20:02.520 | api_errors | softwareengineering.stackexchange.com | |
210,642 | Does Azure SQL Data Sync support MySQL or SQLExpress? | I did see that it supports SQL Server (2005 and later) but does it support syncing between a SQLExpress server or MySQL server and an Azure Server? I'm trying to use it with a SQLExpress server but it isn't connecting. Is this because it's not supported? The error I'm getting when trying to connect with SQL Data Sync 2... | Azure SQL Data Sync does not support MySQL for synchronization but it does support SQL Server Express as you can read here . One of the troubleshooting steps is to exit local sync agent, then open the services.msc applet in Control Panel, make sure SQL Data Sync service is started, if the service is started please rest... | 2 | 0 | 1,204 | 2018-06-26T19:45:10.387 | database_errors | dba.stackexchange.com | |
369,208 | How does one 'qualify a server' | Here is the scenario. Say you are going to be a purchasing great deal of servers, but first are trying out hardware from a vendor, and you need to qualify it. Also, say that the custom software that will run on it is not even written (or the current version is so 'alpha' it have much input into this process). Edit: The... | You're talking about two different things. There's burn-in, which is needed to shake out hardware (and possibly, OS) issues before placing the system into production. Then there's performance testing. Comparing the system to a baseline. Understanding how the hardware works with your specific application. You need to be... | 2 | 2 | 1,185 | 2012-03-13T13:54:51.097 | infrastructure | serverfault.com | |
336,803 | Verify disown command | I issued the [CODE] sequence in order to allow me to close an ssh session in which I am running a super-important long-running process. This process writes status output to stderr, and it has continued to do so even after being detached (verified with lsof, the stderr fd is open for r/w). Is there a way to determine th... | In Bash, the [CODE] command issued by itself will remove backgrounded (via [CODE] or [CODE] ) processes from the active job table, and mark them to not receive a SIGHUP on logout. You can also pass one or more jobs to disown, like [CODE] . The [CODE] flag is useful if you want to keep jobs in the table, but still not S... | 13 | 14 | 7,681 | 2011-12-01T21:39:47.210 | infrastructure | serverfault.com | |
298,057 | Multi-tenant database design | My boss is currently working on a database design for a multi-tenant capable ERP/CRM system, which will have a Sql Server backend. Some key points of the design: A server instance will host a "shared" database (unique model), plus one database per company (same model) The "shared" database have tables like contacts, us... | In the multi tennent systems I have worked on as a DBA and Developer we used 1 database per client. That database was completely self contained and did not rely on any shared database, not even for things like the states in the US. To make standing up a new client easy a model database was created that had all the thin... | 1 | 7 | 2,054 | 2015-09-23T15:33:58.467 | pipeline_ops | softwareengineering.stackexchange.com | |
13,567 | Create unique DB_NAME and DB_DOMAIN for an Oracle 11g instance | I am somewhat confused by these terms in the init.ora file: [CODE] [CODE] [CODE] plus the database name which is provided to the [CODE] command. I do not completely understand how they sum up. I have read the Oracle docs several times but still failed to understand. As far as I understand, a database can be mounted and... | No , you do not have a name collision. Your DB_DOMAIN, DB_NAME, and INSTANCE_NAME can all be identical as long as the databases are on different hosts (as you have indicated). However , as others have stated using the same DB_NAME is a bad idea for anything other than perhaps a recovery operation. A policy enforcing di... | 4 | 2 | 5,503 | 2012-02-21T14:02:51.450 | database_errors | dba.stackexchange.com | |
164,667 | SUM same column twice performance | DBMS: SQL Server 2012 Express I have an SQL Statement which looks something like this: [CODE] I was wondering does Adding the same column twice cause an impact on Performance? Meaning does SQL Server add the column twice? Or will it add the column once and use for both columns in the result set? Or should I use a CTE w... | was wondering does Adding the same column twice cause an impact on Performance? Meaning does SQL Server add the column twice? Or will it add the column once and use for both columns in the result set? Sum will be calculated once and result is used for multiple columns referring the same [CODE] Below is sample setup fro... | 5 | 6 | 2,123 | 2017-02-17T12:40:00.377 | database_errors | dba.stackexchange.com | |
924,391 | Scan the full filesystem in parallel with clamscan | I run a clamav scan weekly on my servers. There is one server with a raid6 cluster of 30TB of disk space where the scan take more than 24h to run. So I wonder how can I run clamscan on the whole filesystem, taking advantage of the several cores the server has? The server has good i/o capacities and I would like the sca... | You've got two separate questions: Parallelize [CODE] - apart from combining [CODE] and [CODE] there's little you can do. Alternatively, you can run multiple instances of [CODE] on separate folders independently from the daemon. Scan files that [CODE] can't access - this isn't possible. [CODE] requires at least read ac... | 4 | 4 | 12,453 | 2018-08-01T07:42:03.203 | infrastructure | serverfault.com | |
1,046,810 | iptables: combine check with set in "recent" module in 1 rule | Using [CODE] module in [CODE] , how can I both check if the src ip address exists in a list and if it does, add it to another list? I'm trying to implement port-knocking using [CODE] together with this module ( [CODE] ). So, I'd like to detect if a TCP packets arrive in a specific order by shifting the src ip address f... | As it turned out, that line I posted above is exactly how it should be written :) I guess I was too pessimistic about expecting [CODE] to be able to process such a "complex" rule. Here is my config for the easy port knocking configuration: [CODE] I guess this is the shortest port knocking ruleset for iptables I've seen... | 0 | 1 | 410 | 2020-12-18T20:41:59.900 | infrastructure | serverfault.com | |
236,794 | Apparently, my CLR assembly function is causing deadlocks? | Our application needs to work equally well with an Oracle database or a Microsoft SQL Server database. To facilitate this, we created a handful of UDFs to homogenize our query syntax. For example, SQL Server has GETDATE() and Oracle has SYSDATE. They perform the same function but they are different words. We wrote a wr... | What version(s) of SQL Server are you using? I do recall seeing a slight change in behavior in SQL Server 2017 not too long ago. I will have to go back and see if I can find where I made a note of it, but I think it had to do with a schema lock being initiated when a SQLCLR object was being accessed. While I am looking... | 9 | 7 | 584 | 2019-04-26T14:41:07.127 | database_errors | dba.stackexchange.com | |
76,299 | Should we enable innodb_file_per_table for single tenant SaaS app (thousands of databases) | We have a mySQL backed SaaS application where each customer has their own mySQL database. So think of it like a wordpress/magento etc. database for each client. Each database has ~200 table, and we expect to have about 1,000 databases per server, so 200,000+ tables. We currently have innodb_file_per_table enabled. Our ... | Answering one by one: Performance : yes, this is the main problem. Not only in resource for file descriptors, but also for the mysql open table cache and data dictionary, InnoDB checks on start and regenerating table statistics when opened. To be fair, these last ones (except InnoDB checks) will be found no matter the ... | 2 | 3 | 1,645 | 2014-09-11T12:47:08.483 | database_errors | dba.stackexchange.com | |
442,226 | HTTP error 404 or 500 from an internal call to a separate API? | I have an endpoint in API 1 (my api) that queries API 2 (another companies api) to view and edit objects stored in API 2's database. API 1 is essentially acting as a wrapper service around API 2, providing some extra functionality. If a call to API 2 within API 1 ends up with a 404 being returned (in my case because an... | 5xx is for server errors, that is for situations where your server is malfunctioning. You could return 500 if you called another server that is guaranteed to never, ever return 404 - but it does, so your system is malfunctioning. If the server that you called correctly returned 404 then that is what your server should ... | 0 | 0 | 264 | 2022-11-11T23:54:54.893 | api_errors | softwareengineering.stackexchange.com | |
120,579 | Any way to program a system which automatically restores home / sql database | I have made two shell scripts Script 1: It does all Home directory backups with name [CODE] Script 2: It does SQL backups of all sites every 3 hrs. [CODE] Now currently if I want to restore the site, I have to copy the tar file to [CODE] and then untar there with all the permissions as well and then manually import the... | The script you write, which could be as simple as: [CODE] Depending upon how you dumped the database(s), you might have to drop before sourcing the file. Be careful. | -1 | 1 | 80 | 2010-03-09T02:26:03.903 | database_errors | serverfault.com | |
52,859 | 30 Years Of Excel Test Data | I am a CS intern at an industrial company that has 30 years of excel files that need to be analyzed. Looking at the data, only a fraction of the files need to be looked at and used. After those files are identified, I need to pull out values from specific columns. The real issue is that there is no standard excel forma... | After a few weeks of looking at what the data consists of, I wrote some modules in python to automate most of the work. These modules are using pyexcel and openpyxl (which has a faster read function). I was able to write some functions to match specific templates within a percentage of error using a collection of keywo... | 2 | 0 | 108 | 2019-05-29T16:47:33.430 | data_quality | datascience.stackexchange.com | |
574,023 | Can't run CSF on the host machine using Open VZ | I managed to configure CSF on my three VM inside OpenVZ, but when I try to run it on the host, all the VMs become unreachable. I can see that the host is been attacked, and it would be critical if it gets invaded. Below is the result of iptables status on the host after stopping csf: [CODE] If I try to just start iptab... | On the Host, you need to add this into the [CODE] file (if that file does not exist, create it and [CODE] it.) [CODE] Save it and restart csf with [CODE] | 0 | 2 | 500 | 2014-02-07T17:55:20.437 | infrastructure | serverfault.com | |
535,690 | How to set up a 6in4 / 6to4 tunnel server on a Linux gateway? | I have native IPv6 connection (/64 prefix), and I've been trying to set up IPv6 connection behind a OpenWrt router. But I discovered that I was unable to use ebtables to pass through all IPv6 traffic (firmware limitation) or use ndppd to proxy all ICMPv6 requests (neighbor solicitation / advertisement, upstream router ... | A tunnel is not a solution to the problem you are facing. You have a direct physical connection between the two machines you would connect by a tunnel, so there is no need for the tunnel in the first place. Any addressing you wanted to perform on the tunnel can be done directly on the Ethernet connection between the tw... | 3 | 1 | 2,992 | 2013-09-02T16:42:40.923 | infrastructure | serverfault.com | |
145,056 | connecting to an oracle sql database from sql developer on the same computer. When the computer is a domain computer | Hi I am trying to do DBA course that requires that I use Oracle database. I am using my corporate pc to do it. I set up the loopback adapter to enable localhost communication and setup the hosts file in system 32. When I start lsnrcrl However when I try to connect I get an error. [CODE] Extra info Listener.ora is set t... | The last number of the log entry is the return code of the operation. On a successful connection, it is 0. In your case, it is 12505. [CODE] This simply means, you provided an incorrect SID. [CODE] is the default [CODE] in SQL Developer. Check the correct [CODE] from the output of [CODE] , and use that for connecting. ... | 0 | 0 | 378 | 2016-07-27T07:24:30.633 | database_errors | dba.stackexchange.com | |
544,879 | service httpd restart failure on aws amazon linux ami | Thanks for your help. I recently did the following: Ran [CODE] on my ec2 instance running the Amazon Linux ami I then added a virtual host to my vhost.conf for a subdomain. While the server is still accessible, When I ran [CODE] I received the following: . [CODE] Also, if I run the restart command without sudo [CODE] I... | From what you have provided seems that there is another process using port 80 Try to do the following: First you need to be a root user to execute them, either you add sudo before the command, or before doing anything, switch to the user root like this: [CODE] and type the root password. Then, proceed with: [CODE] The ... | 4 | 3 | 19,850 | 2013-10-09T14:13:11.843 | infrastructure | serverfault.com | |
1,044,466 | nginx server that only proxies to my game servers | I have clients connecting to my WebSockets game server for an online browser game. Game servers are created and destroyed when players start games, and so each server can have a different IP address that I can’t control. I need the WebSockets to be secure (WSS) so I have an nginx proxy with an SSL certificate. The clie... | What I would suggest is setting up an internal certificate authority for the backends and require that your backends can be verified with that certificate authority, you can either bootstrap these certs to include their IP or override the IP with a common hostname (which I think would suffice). create an internal only ... | 1 | 0 | 1,911 | 2020-11-30T23:10:32.377 | api_errors | serverfault.com | |
474,308 | Postfix deliver mail to correct mail server based on MX Records | We are using [CODE] and [CODE] to send mail for our CMS. Our website and email use the same domain but our email is hosted elsewhere. So, sadly when our server tries to send some mail (from some contact us forms) to user@ourdomain.com it gets rejected because it doesn't realize that it should send the mail to the corre... | Is the domain in question caaschool.org ? In that case: Your domain is listed in mydestination, so postfix considers it a local domain and does not send to the mx records. Remove the domain from mydestination. | 1 | 2 | 916 | 2013-01-31T18:13:09.410 | infrastructure | serverfault.com | |
1,066,676 | Nginx - How do I force all server domains and server blocks to use non-www redirect? | There are many good results out there on how to redirect "www" to "non-www" and visa versa. The most recommended solution is this : [CODE] This works well for a single website configuration file. However, it quickly duplicates configuration when you have multiple websites under one Nginx server. I'd really like to avoi... | You can use the following approach: [CODE] The regular expression captures the part after [CODE] to [CODE] variable, which is then used in the [CODE] statement. https://nginx.org/r/server_name explains in more details how nginx decides which [CODE] block to use. | 0 | 2 | 331 | 2021-06-14T15:00:44.477 | data_quality | serverfault.com | |
425,173 | limit_req causing 503 Service Unavailable | I'm frequently getting [CODE] when I have [CODE] turned on. On my logs: [error] 22963#0: *70136 limiting requests, excess: 1.000 by zone "blitz", client: 64.xxx.xxx.xx, server: dat.com, request: "GET /id/85 HTTP/1.1", host: "dat.com" My nginx configuration: [CODE] How do I resolve this issue. Isn't 60m already big enou... | [CODE] is returned whenever you hit the limit requests. From the limitreq documentation : If the rate of requests exceeds the rate configured for a zone, request processing is delayed such as that they are processed at a defined rate. Excessive requests are delayed until their number exceeds the defined number of burst... | 2 | 3 | 13,584 | 2012-09-07T04:53:58.223 | infrastructure | serverfault.com | |
745,084 | Nginx serving C++ cgi script: response is binary format | I am trying to run C++ CGI script on nginx. I am using FCGIWrap with script from nginx website. The program code is like this: [CODE] And I compiled with g++ -o start.cgi start.cpp. So when I run ./start.cgi, I got the correct output. But when I use curl localhost/cgi-bin/start.cgi, I got binary output(and actually see... | Long story short, you need to set your cgi location to use regex matching. [CODE] | 1 | 1 | 1,440 | 2015-12-24T05:17:32.903 | infrastructure | serverfault.com | |
152,678 | Save match details to SQLite or XML? | Possible Duplicate: XML vs SQL for small projects? I'm making a (conceptual) system to simulate any kind of sports match (like soccer,basketball,etc) with actions (for example pass,pass,out,pass,score) so it will be like a real report. The main statistics (play time, number of actions etc.) I'm saving to a MySQL databa... | The thing with databases is, they are built for storing millions of records . Unless you have good reason not to, simplest solution would be... to store detailed match information in MySQL database itself. SQLite is most likely good option if your application doesn't need one, global database but instead realies on loc... | 1 | 4 | 1,534 | 2012-06-13T08:02:15.597 | database_errors | softwareengineering.stackexchange.com | |
683,859 | FTPS on IIS 8.5 Error on Command: LIST | I'm trying to configure FTP over SSL on my server. I added an FTP site in IIS and followed the wizard, setting the bindings and certificate. However when I try to connect to the server using FileZilla the connection gets refused by the server. I also noticed that no welcome message appears. I also noticed that the serv... | It seems you are using Passive mode. Passive mode uses TCP ports from 1024 to 65534 for Data channel. Make sure no Firewall is blocking this port range. Else, switch to active mode to only use TCP/20 for Data channel. EDIT : Also, FTPS can operate in two distinct mode : implicit or explicit. Explicit will use standards... | 0 | 5 | 4,185 | 2015-04-19T14:26:16.970 | infrastructure | serverfault.com | |
228,305 | Understanding IUSR_<machine> account | Namely how is setting read/write permission for this account different from giving read/write access in the IIS (Windows 2003, so it should be IIS6 if I am not mistaken). Here is the issue: It looks like we had a security sweep and as a part of that IUSR account lost write access everywhere. A whole bunch of legacy ASP... | Most people have a hard time understanding the difference between IIS' anonymous user (IUSR_...) and the account used executing binaries (the application pool account). The IUSR account is used when the user isn't authenticated on the server which is - for "normal" websites - is the default use case. For intranet sites... | 5 | 3 | 4,885 | 2011-01-28T20:54:02.177 | infrastructure | serverfault.com | |
629,855 | Samsung 840 Pro SSDs in a Dell R720 | We have a MySQL database server running on an Dell PowerEdge R720 ( PERC H710 Mini RAID controller ) ( (Ubuntu 12.04). We're considering upgrading the 2 x 146GB 15k SAS drives to Samsung 840 Pro SSDs . The Dell ones are just far too expensive! (nearly 2k per drive), and with us putting them in RAID 10, we can just have... | Bottom Line - You get what you pay for. Without going into a rediculous amount of detail, because I'll let the internet do it for me. There is a huge difference between an Enterprise SSD like the Optimus or Sandisk Lightning or the Intel 3700 and the Samsung 840 or OCZ Vector. There's a pretty darn good review Tweak To... | 8 | 6 | 22,980 | 2014-09-19T14:18:49.650 | database_errors | serverfault.com | |
231,429 | Huge DB (> 600M records/table) times out on query or hits memory limits? | Dearest DBA friends of Stackexchange, I am trying to write data from multiple sourcetables into a new table containing compound information that i wish to use as source for a later project. The issue i face however is that i seem to hit some sort of limit on the database side when creating the data from multiple source... | There is quite a bit of noise and unnecessary complication in your query. Among other things joining to [CODE] and [CODE] seems to be work for nothing. This should be equivalent and faster (untested): [CODE] [CODE] must be the PK or you have to list all non-aggregated columns in the GROUP BY list. See: Select first row... | 0 | 3 | 142 | 2019-03-06T08:28:19.837 | warehouse_errors | dba.stackexchange.com | |
246,831 | How to loop through all table rows and perform subquery using values of same row? | I have a [CODE] structured as follows: [CODE] My objective is to parse the [CODE] column and insert the values into columns [CODE] and [CODE] . I have a query which does this but I only know how to do this by specifying the reference number of the row: [CODE] I need to be able to loop through each row in the table and ... | Answer based on comments originally left by Akina [CODE] When you use a column name in the right-hand side of an assignment expression (parsing expression in your case) it is referenced to a column value in the same record that is currently being updated (if you want to think about an update like it is a record-by-reco... | 0 | 0 | 1,437 | 2019-09-03T08:23:56.737 | warehouse_errors | dba.stackexchange.com | |
240,452 | lighttpd: Does it still have memory leak and CPU consumption issues? | This page here compares nginx and lighttpd: http://www.wikivs.com/wiki/Lighttpd_vs_nginx There are numerous reports of memory leaks unfixed for years as well as severely worse CPU consumption (2% with nginx compared to 98% with lighttpd). Do these problems still exist in the current stable version? (apparently 1.4.28 f... | There is a recent side-by-side comparison of the nginx/1.0.6 and lighttpd/1.4.29 resource consumption and they both look good, albeit with different profiles (performances/resources): The rather long tests do not show memory leaks (many charts included). | 2 | 5 | 1,607 | 2011-02-25T22:37:49.597 | infrastructure | serverfault.com | |
1,019,478 | Can we keep only X number of files rotated by Y MB with Apache rotatelogs | Can we rotate Apache logs keeping n number of backups rotated by size. We can rotate apache logs with size by doing following: ErrorLog "|bin/rotatelogs.exe logs/error_log-%Y-%m-%d.log 20M" How I can keep only 5 backups always? What I mean is files should be always when it reaches to 20 MB and it should always keep 5 b... | rotatelogs - Piped logging program to rotate Apache logs Synopsis [CODE] Options [CODE] Use a circular list of filenames without timestamps. With [CODE] , the series of log files opened would be [CODE] , [CODE] , [CODE] , then overwriting [CODE] . Available in 2.4.5 and later. With [CODE] you'd remove the date from the... | 2 | 0 | 1,186 | 2020-05-31T23:33:55.110 | database_errors | serverfault.com | |
945,685 | Fix packages in broken state when /boot is full | I noticed that my /boot partition is full (it has only 485M) and apt failed since it cannot install new kernel. When I do [CODE] it fails, when I try to remove one kernel via [CODE] or [CODE] it fails, too. What is the correct way to handle this? I need to delete at least one kernel so that I can handle the rest via st... | When is the last time you ran [CODE] to clean out old unnecessary packages? This also removes old kernels which you aren't needing anymore. This is the unfortunately neglected but necessary third step after [CODE] and [CODE] . | 1 | 2 | 119 | 2018-12-17T16:50:42.753 | infrastructure | serverfault.com | |
990,857 | Forward ISP IPv6 from LAN to secondary LAN | I want to forward ( or bridge, next to routing ipv4 ) the IPv6 internet connection from the LAN1 to LAN2 . IPv6 internet is accessible on LAN1 . I have a windows server, configured as NAT router between LAN1 and LAN2 . This server is the DHCP, and gateway for LAN2. On the server, there is a Debian VM, and it's connecte... | Assign another, different /64 to LAN2, and route. Obscuring your prefix is unhelpful as it removes details. Lots of global scope addresses with v6. So I'll make up something. Assume your provider delegates [CODE] to you. The router for LAN1 might be [CODE] and LAN2 [CODE] . On a node in LAN2, default gateway is the 2 r... | 0 | 1 | 206 | 2019-11-06T17:54:02.990 | infrastructure | serverfault.com | |
219,401 | Windows server 2008 r2 console stuck at "waiting for user profile service" | I have a windows 2008 R2 server, running on dell poweredge t300. Using hyper-v to run a windows 2008 R2 server also. Suddenly, today, my virtual console (on the virtual copy of windows 2008 server r2) will not let me login as administrator. It starts to login but then sticks at the message: Please wait for the User pro... | did you disabled IPV6? http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/Q_26464594.html http://www.experts-exchange.com/Microsoft/Server_Applications/Q_24110016.html is this server multi-homed? | 2 | 2 | 25,256 | 2011-01-06T12:55:35.300 | infrastructure | serverfault.com | |
551,618 | Multiple sites: what am I missing? | I should have 3 web sites on one apache2 (up-to-date Ubuntu). Each site has its own file in "sites-enabled". Each has its own IP. Apache2 seems to be running fine: /var/log/apache2/error.log only says: [Fri Nov 08 12:30:12 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.6-1ubuntu1.4 configured -- resuming normal operatio... | If you've got multiple IPs, you'll need multiple interfaces brought up. Can you ping the IPs? it may not even be an Apache problem. Type "ip addr" or "ifconfig" and see if you see them listed. If that's all fine, make sure your virtual hosts are set up to listen on each IP respectively. | 1 | 0 | 56 | 2013-11-08T11:42:19.913 | infrastructure | serverfault.com | |
404,537 | VPN works for windows 2003, but not for windows 2008 | I have a RRAS VPN on a Windows server 2008 r2 server. Now when I try to connect to it, from a windows 2003 box, it works fine. However, it doesn't work when I try to connect to it from a windows server 2008 box, it gives me an error 803. Any ideas? thanks | From MS support : 803 The PEAP configuration stored in the session cookie does not match the current session configuration. Sounds like your 2008 box isn't configured properly for the security requirements of your VPN, or you need to clear out its cache. (Probably the configuration one, though.) Here's a quick guide on... | 0 | 0 | 83 | 2012-07-03T21:13:19.043 | infrastructure | serverfault.com | |
224,091 | Why wont SSMS remember my tables when I connect to the server | I have the same problem everytime I connect to SQL server through the SSMS tool. If I have been working on a script and close my laptop for a period of time, when I come back and re-connect it doesnt recognise my tables in the database I am working on. Usually I have to right click on the table name and select top 1000... | You can refresh the IntelliSense cache with the key shortcut: ctrl+shift+r Your query window might have lost its connection as well - just: Right click on the query window > Connection > Connect As a little extra: This stackOverflow post discusses custom keyboard shortcuts in ssms - there's loads of custom shortcuts yo... | 2 | 6 | 211 | 2018-12-04T14:22:12.393 | database_errors | dba.stackexchange.com | |
29,328 | Are SQL Server in-place upgrades as ill advised as they used to be? | I have been working with SQL server on and off since SQL Server 6.5, the old advice that still rings in my head was never to do an in-place upgrade. I'm currently upgrading my 2008 R2 DEV and TEST systems to SQL Server 2012 and need to use the same hardware. The thought of not having to restore my Reporting services co... | Really Short Answer - In Place is okay. You can review your configuration afterwards and implement the best practices for SQL Server 2012. A Longer Answer on SQL Server Upgrades/Migrations So this is an opinion thing and there isn't a necessarily wrong or right answer but I prefer migration style upgrades over in-place... | 81 | 95 | 29,049 | 2012-11-27T01:10:45.920 | database_errors | dba.stackexchange.com | |
48,669 | Is there a way to auto resume an incomplete job after sql server restart? | I ran into problem of job stopped after the sql server restart. Is there a way to auto resume an incomplete job after sql server restart? Thanks! | In a nutshell maybe. If you have a sql job without a notion of persistence then no:( The job will continue to run according to schedule but it will not pick up from an earlier starting point unless you have to logic to do so. | 2 | 1 | 492 | 2013-08-24T17:03:44.510 | database_errors | dba.stackexchange.com | |
91,206 | My system administrator set up 2 databases that sync. Master-Master. However, these two databases are not syncing | DB1 and DB2. I made changes to DB1, and it does not seem to be on DB2. When I do "SHOW SLAVE STATUS\G" on DB2, there seems to be an error: [CODE] Then, I did show tables , and it seems like DB2 is lacking a table that I created on DB1...that means that for some reason, DB2 stopped syncing with DB1. How can I simply all... | Primary key conflicts can be avoided by setting the auto_increment_increment and auto_increment_offset values on both servers. Set auto_increment_increment to the same value on both servers (for example, 4) Set auto_increment_offset to DIFFERENT values on both servers (for example, 1 on server A, 2 on server B). This w... | 0 | 1 | 276 | 2009-12-04T22:21:15.537 | infrastructure | serverfault.com | |
243,748 | Postgresql Date Function Returning Range In Readable Format | I am wondering if it is possible to use postgresql's date-time , concat and case functions to give one of the following results: June 4th to 11th 2019 ( where the 1st and 2nd date are within the same month ) July 27th to July 3rd 2019 ( where the 1st and 2nd date are in different calendar months but the same calendar y... | [CODE] Let's look at some output: [CODE] You could quite easily modify that to take two values instead. | 0 | 2 | 70 | 2019-07-25T04:29:56.553 | database_errors | dba.stackexchange.com | |
536,743 | Linux - show screen logs on multiple screens? | I have a problem with [CODE] . Basically I want it to make one log per screen, for example screen #1 will be [CODE] & screen #2 will be [CODE] - you get the memo. Anyhow, what happens is that when I launch screen using: [CODE] (The [CODE] parameter is because I need to force it to make logs) it only logs the first scre... | Here is how you can log the output of multiple screen sessions in separate log files: Start a screen session using [CODE] Attach the screen using & then set the logfile of the screen using the command: [CODE] Start the screen logging by running [CODE] Execute the required program & then detach the screen This might loo... | 2 | 3 | 13,011 | 2013-09-05T19:51:54.150 | infrastructure | serverfault.com | |
678,817 | Investigate to /proc/loadavg | Review linux load average documentation (to try to solve a problem) I'm ask if a kind of state of process (zombie process?) can affect to anomaly that causes an high load average of my system. So, zombie processes can have negative effects to my problem? Are there other kind of state of process that increase load avera... | Only processes that are in the state of uninterruptible sleep or running count to load average. All other states do not contribute to the load average. So, no, zombies do not contribute to load. They do nothing but pollute the process table and consume some kernel memory in doing so. | 1 | 3 | 239 | 2015-03-27T18:11:16.377 | data_quality | serverfault.com | |
893,546 | nginx try_files location Configuration? | I am in the process of writing a directory listings script in Slim 3 Framework. I am having a problem that Slim 3 is not getting the request for a file download when it exists due to the 'try_files' directive in the configuration. Once I change the order of the 'try_files' it then fails to process any .php file for tha... | If I rewrite all files to the index.php page as a parameter, I get my desired output. Here is the nginx configuration code: [CODE] | 0 | 1 | 9,394 | 2018-01-22T19:13:10.137 | infrastructure | serverfault.com | |
558,629 | How to correctly configure postfix and opendkim and let receiving server know all details mailed-by signed-by? | What I am trying to achieve - Bottomline: mails to go in inbox rather spam folder. I have a server which is running postfix (mail server) and I have 3 domains. Mail server is used for both incoming and outgoing mails.. I am signing with opendkim and have DNS records in place. After a long observation, I've realized tha... | First of all, please remove these values (they aren't needed if you use KeyTable): [CODE] Setup your KeyTable like that: [CODE] Setup your SigningTable like that (note wildcard matching and mykey1 and mykey2 from KeyTable ): [CODE] And finally change your opendkim.conf to include SigningTable via refile: prefix (regula... | 3 | 10 | 10,225 | 2013-12-02T10:19:56.460 | infrastructure | serverfault.com | |
17,265 | Using kubernetes secret env var inside another env var | I have a secret being used as env var in another env var as follows: [CODE] When i exec into the container and run [CODE] command to see the values of env i see - [CODE] The container logs show error as authentication failure. Is this something that is expected to work in kubernetes ? There docs talk about dependent en... | The issue was with the command used to encode the secret - [CODE] . The echo adds a newline character at the end of the string. Using [CODE] fixed the secret. Closing the issue. | 1 | 0 | 82 | 2023-01-19T01:42:58.457 | pipeline_ops | devops.stackexchange.com | |
74,640 | Vertical Scalability with multiple app pools | We are running a ASP.Net application that is also calling some legacy COM objects. We are running into an issue where with increased number of users COM object is creating a bottle neck since it is executing on same thread/process as the app pool. We currently have a hardware load balancer in place and use sticky sessi... | You have a fairly unique situation where COM becomes a bottleneck so that you can't simply scale up. Ideally improving performance with the COM objects or replacing them with managed code would scale even better, but you're on the right track for a COM performance workaround. IIS is able to handle hundreds of app pools... | 3 | 1 | 1,287 | 2009-10-15T02:13:26.277 | infrastructure | serverfault.com | |
301,841 | Sudo ldap with FQDN instead of short hostname | At my workplace, we're using sudo-ldap to provide sudo privileges across the network from a centralised store. We do this based on the username plus the hostname they're running sudo on, e.g.: [CODE] I want to be able to match the sudoHost attribute based on the FQDN rather than the short hostname, so that we can use D... | Given that sudo itself only matches on the same things that the [CODE] attribute mentions, I'm inclined to think that without intrusive [CODE] patching you're not going to get what you're after. There is one possibility -- are you setting the machine hostname to the short name, or the FQDN? If you're doing the former, ... | 2 | 1 | 2,014 | 2011-08-16T23:09:56.577 | infrastructure | serverfault.com | |
23,863 | Test input and expected output with Unity | I'm trying to automate some tests with Unity. For example, I have a C program that works like a very basic calculator with operations such as division, etc. I would like to automate the test environment. I have some test cases, where the inputs of the program will be always the same. I want to verify that the output is... | There is no quick easy answer. You will need to write a small Unity application to interact with this calculator application, Start this Calculator application Start your own Unity application Your application will locate this calculator's command line window and interact with it by providing inputs, e.g. your own Unit... | 3 | 2 | 548 | 2016-11-24T10:56:51.090 | data_quality | sqa.stackexchange.com | |
842,971 | Exchange 2013 Intermittent Room Calendar Issue | I've been troubleshooting a problem for about a week now were one of our customers intermittently experience problems regarding booking and/or editing room calendar bookings. Quick explanation of the setup (I did not set this up so don't blame me for how ugly this is :P ): Exchange 2013 2-DAG cluster 8 Room mailboxes U... | Alright, I believe the problem is solved. I created a new Throttling Policy for these two users and set the RcaMaxConcurrency to 100, they have not reported any problems after that. Hopefully someone else can have use of this information in the future! | 0 | 0 | 668 | 2017-04-06T09:36:57.657 | airflow_errors | serverfault.com | |
74,188 | Searching a big table for a few results without scanning the whole table | I need to search a very big PostgreSQL table (500+M rows), I want to limit the returned search results, but using the "limit" keyword cant prevent the search over the whole set of data(is it correct?) Imagine my search result contains 1M rows, but I need only the first 100 records in the search result! does PostgreSQL ... | but using the "limit" keyword cant prevent the search over the whole set of data(is it correct?) Correct; it'll just limit how many results are returned. For some kinds of query it can also limit how many are scanned in the first place, but you can't rely on that in the general case. does PostgreSQL database have to cr... | 2 | 5 | 2,816 | 2014-08-17T11:15:04.043 | api_errors | dba.stackexchange.com | |
1,084,213 | User cannot enter his group's directory despite the directory having the correct permissions and the user being in the proper group | I have a directory called [CODE] that looks like this: [CODE] [CODE] [CODE] [CODE] (I left out its subdirectories. You can see that [CODE] belongs to the group [CODE] ) Then there's a user [CODE] whose [CODE] is as follows: [CODE] [CODE] This should allow him to enter [CODE] but in reality he couldn't: [CODE] [CODE] [C... | Okay so after a colleague suggested me that there might be an upper limit for supplementary groups, I doubled checked and found that [CODE] is on an [CODE] drive with the command [CODE] , and according to RFC5531 , when using AUTH_SYS authentication, the default maximum number of group IDs is 16. I found a guide from N... | 0 | 0 | 385 | 2021-11-22T02:38:24.970 | infrastructure | serverfault.com | |
124,062 | SQL Server slow in production environment | I have a weird problem in a customer's production environment. I can't give any details on the infrastructure, except that SQL server runs on a virtual server. The data, log and filestream file are on another storage server (data and filestream together and log on a separate server). In our local Test environment, ther... | The cause could be not enough memory, fragmentation, physical storage, as well as different settings on degree of parallelism, contention, different table sizes, different statistics, different SQL patch levels and so on and so forth. So really is not a question about what is wrong, but rather how to determine what is ... | 6 | 9 | 6,863 | 2010-03-18T22:27:17.680 | database_errors | serverfault.com | |
904,333 | Force https on server with multiple domains | I’m using nginx on ubuntu, and I have a problem, I have multiple domains in my ssl certificate(Let's Encrypt), when I access my website with the .com.br domain the users are forced to use the https, but the same does not happen with the other domains. If I enable this line, all domains redirect to the domain .com.br: [... | You need to create a server block for every domain you want forwarded to its own https domain. Repeat this set of two servers for each domain. [CODE] | 0 | 1 | 1,022 | 2018-03-23T22:46:14.750 | api_errors | serverfault.com | |
58,892 | How can I search SQL Server for maintenance plans that execute specific tasks? | Sometimes certain SQL Server maintenance plan tasks can be problematic, like Shrink Database, Rebuild Index, Update Statistics, etc. I'd like to search for the use of one or more of these tasks on an instance of SQL server, for further review of whether they are necessary. Is there a way to query for maintenance plans ... | Yes. This can be done by using a combination of the system SSIS tables and XQuery. Note: In SQL 2012, this will only work for Maintenance Plans created within SSMS. If you used Data Tools to deploy a package that performs maintenance via the project deployment model, this will not work. SQL Server saves maintenance pla... | 3 | 4 | 3,911 | 2014-02-13T21:15:04.540 | database_errors | dba.stackexchange.com | |
12,357 | Minecraft docker-container refuses connection | So I have this Dockerfile: [CODE] This just copies an existing world into an alpine with java and executes some prewritten scripts, I had written for running it on a vps (doing automatic backups etc.) When I execute it with docker run --network host -p 25565:25565 --name mcs mcserver I can see the following in the cont... | I’m glad my comment helped. I read the article OP mentioned in his answer and reread his question and I think the issue isn’t using [CODE] instead of [CODE] as the two work the same, but specifying [CODE] . In Linux’s version of Docker daemon this prevents port publishing from working and since both Docker for Windows ... | 0 | 1 | 1,176 | 2020-09-05T08:48:42.583 | bi_errors | devops.stackexchange.com | |
116,377 | Using python AI mnist to recognize my picture, trained accuracy is 97.99%, but accuracy to my img is less than 20% | Questions like these are difficult to debug, but you'll hopefully find more help on datascience.stackexchange.com than here I see the suggestion that post in Data science is also a good option Using python AI mnist to recognize my picture, trained accuracy is 97.99%, but accuracy to my img is less than 20% I'm hoping c... | It means that your model is overfitting- when you see that the model performs well on the training data but does not perform well on the test data. There are various steps to deal with this type of problems. Perform Data Augmentation such as Flip, rotate, etc.. Cross-validation Regularization | 1 | 2 | 70 | 2022-11-22T02:44:13.697 | data_quality | datascience.stackexchange.com | |
65,527 | How do I configure POP3 users in Mercury Mail server in XAMPP for Windows? | I am using XAMPP for Windows , and I have enabled Mercury Mail Server. I am really only doing this because I need an SMTP server for sending mail; I don't need to receive any mail or use any POP3 accounts. In the XAMPP Security Panel, I get the following error: The test user (newuser) for Mercury Mail server (POP3) has... | Well I figured out a solution after some digging around. If anyone knows whether or not this is the best way of doing this, please let me know. In C:\xampp\MercuryMail\MAIL, there is a folder for each user. If you want to change the user's password, just edit the PASSWD.PM file in their directory. To delete a user, del... | 0 | 0 | 4,571 | 2009-09-15T14:04:08.210 | infrastructure | serverfault.com | |
35,600 | Protractor Image didn't upload on dialog box? | I want to test the image upload functionality using Protractor but my written script didn't work. When we click on the dialogue box image it opens the window to select the desired image. After the selection of the image, the box acts like below: I want to write a script through which I can upload an image and then clic... | You are getting this error, because you are trying to use 'sendKeys' method on an element whose type is not 'input'. Use : [CODE] | 4 | 1 | 1,060 | 2018-09-12T07:12:25.867 | data_quality | sqa.stackexchange.com | |
721,674 | How to make Apache trust a client certificate using an unknown CA, without validating the CA | I am in the following situation. I need to set up a 2-way integration with an external system. The admin of the external system required me to send two CSRs, one to be used to generate a client certificate, the other to generate a server certificate. They sent me the corresponding certificates. I set up the channel me-... | Judging from the error, the application on their end is Java based. I could be wrong here, this is kind of my first rodeo. But could it be that on their end, they need to import their CA into their Java key store? I remember setting up a trusted (secure) connection between a Java app (Atlassian Crowd) and a Novel LDAP ... | 1 | 0 | 1,116 | 2015-09-10T14:50:03.510 | infrastructure | serverfault.com | |
662,592 | Windows Server Backup not working on scheduled task but working with the "Backup Once" | I'm trying to create Backup Schedule from my local drive on a network share but Windows Server 2012 won't let me. I get the error "The parameters are incorrect". When I try the "Backup Once" with all the same settings it just works... After a few search on the internet, I've found that the Backup Schedule needs to run ... | Your syntax is correct. Assuming the target you want to add is reachable, then this error message concerns any of the previously added targets. Check the targets using: [CODE] and make them available or remove them ( [CODE] ) Look here for "Error message when you try to add an additional disk to a scheduled backup ..."... | 3 | 1 | 3,758 | 2015-01-27T05:05:14.720 | database_errors | serverfault.com | |
1,151,085 | Debian 11 fails to update grub configuration | I have the following error when I run an update script with ansible: [CODE] The problem is that this server's OS (debian 11) has been installed by cloning an image of another machine. Probably the id of the disk is different: [CODE] Essentially instead of /dev/disk/by-id/ata-CFS3F-MT_32GB_2122072004900007 grub shall be... | The problem was that though grub was booting properly there were references to the imaged machine's disk on: [CODE] Delete both files and run: [CODE] and you are good to go | 0 | 1 | 144 | 2024-01-08T08:55:15.563 | pipeline_ops | serverfault.com | |
82,833 | Statements in State "Copying to tmp table" disrupt performance | On a MySQL database (version 5.1.73) a Magento-Shop executes a statement (A) that uses distinct, see http://pastebin.com/A2sy45nF and therefore is "Using temporary" according to "explain". Under certain load conditions (when an involved table is updated and the cached query becomes invalid) the statements are waiting i... | The application now is stable again. As a first step the innodb_thread_concurrency was reduced 2 * number of cores. That seems to reduce the problem slightly. But in the end the statement that the Magento-Shop has issued has been replace by a simpler statement that is adequate for the special situation of the concrete ... | -1 | 0 | 643 | 2014-11-17T11:59:35.923 | database_errors | dba.stackexchange.com | |
307,214 | Designing pricing table (RDBMS agnostic) | I'm designing a price list table for my database. It will include Customer, Model, Start_date, End_date, Price, Currency, RRP When I update a new price list, which is sent every now and then (maybe every 1~3 months), I need to update the prices but I would like to keep the records of what has already been raised. Curre... | I have two comments about your design: How do you print a whole price list composed of several products? Do you consider all rows with the same customer and same start and end date as being a single price list? Or you just don't have price lists and instead you have separate prices for different products without bundli... | 3 | 2 | 4,296 | 2016-01-12T19:48:22.240 | database_errors | softwareengineering.stackexchange.com | |
260,678 | Is it safe to use an output (to_char) date format string of more than 22 characters (ORACLE 11) | The ORACLE SQL manual (Page 2-58 of the main 11.1 SQL Manual) states: The total length of a datetime format model cannot exceed 22 characters. However, I've been able to use a format string for TO_CHAR with many more characters, almost all of which are text "literals". Is this safe (ORACLE 11)? (Perhaps the limit does ... | Just because you can jump off a cliff, doesn't mean you should. Use [CODE] with a token: [CODE] You could take this a step further to allow different format strings: [CODE] Note that there have been parsing bugs with long [CODE] identifiers that have caused ORA-600 errors & session crashes. | 1 | 2 | 213 | 2020-02-26T23:35:49.610 | database_errors | dba.stackexchange.com | |
349,353 | Creating a .htaccess on windows in ultraedit not working in linux | I created a simple .htaccess on windows using ultraedit, but after I uploaded to the linux apache server, it won't work, always gave me 500 error. I used linux command line to cat it, it shows that there's an empty space in front of the first line. But if I hand typed the exact same .htaccess in linux, using vi, then i... | Check Apache's error log, it should give the exact error. Most likely, something's wrong with the formatting of the file itself (pretty quotes? not sure if it chokes on this, but CRLF endings?), or the permissions on the file. You can verify that the files are the exact same content (they are not; at least the line end... | 1 | 1 | 111 | 2012-01-12T17:10:22.207 | api_errors | serverfault.com | |
321,183 | What is the best way to monitor compaction strategy performance over time for DSE clusters? | As stated in the title, I'm wondering what the best way to monitor compaction strategy performance is on my DSE cluster over time, as it (the database) grows. The current strategy in use is leveledCompaction. Any information, input, guides, etc. you can recommend for monitoring strategy are welcome. | There are several free tools you can use to monitor DataStax Enterprise (DSE) clusters. The relevant metrics to monitor include active compactions, pending compactions, and blocked compactions. OpsCenter DSE OpsCenter is a visual monitoring tool that collects metrics about your cluster and allows you to view the perfor... | 0 | 0 | 56 | 2022-12-20T00:53:04.647 | pipeline_ops | dba.stackexchange.com | |
963,925 | Accessing Windows VMs on XenServer with Remote Desktop Connection | I've installed XenServer 7.6 on a dedicated server and connected to internet via static public IP address given by technical support where I bought the server from. Using XenCenter I have also installed Windows Server 2016 and Windows 7 as VMs. At first because i am newbie I had problems connecting Windows Server 2016 ... | You need a particular IP of the VM or DNS name (if joined to the domain) to connect via RDP. In theory, you can configure port forwarding from Win2016 IP to Win2012R2 IP on another port. for example to access Win2016 he needs to use: 192.168.55.55:3389 to access Win2012R2 VM with port forwarding: 192.168.55.55:3390 Sam... | 1 | 1 | 1,622 | 2019-04-20T20:46:33.837 | infrastructure | serverfault.com | |
643,024 | Where to optain my client key for SSL decryption? | [CODE] is a traffic capture I have made on my local Linux box of and now I would like to decrypt it. [CODE] but how do I option my key file, which I suppose is my client private key? | The client key is not used as the base for encryption, but only for identification of the client. With RSA key exchange the servers private key is used, which you have hopefully given in ssl.keys_list. With DH key exchange you will not be able to decrypt the pcap file because the key is based on random data only known ... | -3 | 3 | 221 | 2014-11-09T03:42:12.670 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.