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 |
|---|---|---|---|---|---|---|---|---|---|---|
348,284 | Undoing "fixes" | As someone who hasn't really gotten into large-scale corporate software development--I'm 17, I wanted to ask a question about programming practice. If you encounter a bug in an application, and you apply attempts at fixes, before realising the actual fix to the bug; should you revert your original fixes, if the applica... | Because you source code is in source control like git, you have quite fine control over the various versions of your software. So you have both options available to you. What you do in practice depends on the bug. Lets say you have an e-commerce site and the bug is, when i buy two items it doesn't add the price of the ... | 0 | 4 | 231 | 2017-05-03T16:10:59.423 | api_errors | softwareengineering.stackexchange.com | |
292,146 | Stored Proc. parameter being dropped on one server but not on another | I have a really weird issue here. I have two server setups, one here and one at a customer. The two setups are pretty alike - same OS/SQL server version etc. On our end everything is working fine, but on the customer end they were getting really weird issues. After setting up a trace and looking through it I noticed th... | There is no setting that affects this. There never has been. The code (c#, other SQL, Excel, whatever) that calls the stored procedure is different between the 2 systems, even if the the actual stored procedure is identical. | -2 | 1 | 29 | 2011-07-20T07:47:12.403 | database_errors | serverfault.com | |
616,913 | DNS update port(s)? | What ports are required for a DC (Windows 2012 R2) to be able to create / update SRV records? It doesn't appear to be working for my system(s) and I'm trying to debug the process. [CODE] reports 'all DNS servers are invalid'. The IPs are correct so I'm wondering whether there is a closed/firewalled port somewhere. EDIT... | Active Directory Integrated DNS uses standard AD replication for DNS as well, since the zone contents are stored in the directory much like users and computers are. For a complete list of ports that you should have open on your domain controllers, check the official TechNet documentation - it's quite a long list. http:... | 1 | 0 | 164 | 2014-07-31T13:30:37.693 | infrastructure | serverfault.com | |
128,462 | Evidence of Bad Design: Updating feature A breaks/interferes with existing feature B | I am working on a Javascript Web App & I am finding as I expand the program & add new features(new animations) it causes existing features to break or work differently than prior to adding that new feature. So as I continue to finish the app, it keeps breaking old features & I have to go back & redo/update those featur... | You don't need to avoid your current situation to feel better. Just name it: Refactoring . The process of introducing new feature A that needs changes in existing feature B is: change B so that it still works as expected and allows future A to be inserted insert A with updated B test B test A As you see, you need to ha... | 4 | 1 | 340 | 2012-01-05T05:14:12.043 | api_errors | softwareengineering.stackexchange.com | |
391,277 | Passing variables in the PHP $_SESSION between subdomains | Recently I have purchased a VDH package and need to be able to communicate between sub domain with the $_SESSION array. The system has been build with this is mind. I clarified that it was possible with the VDH service provide before purchase but they have not provided much help in accessing the situation. I have done ... | In the end I found a solution and it worked. I needed to disable suhosin within php. I'm not even sure what suhosin is but it worked. Adding [CODE] At the end of the php.ini files sorted it out. | 1 | 0 | 3,359 | 2012-05-22T02:58:19.557 | infrastructure | serverfault.com | |
270,087 | Unable to import shapefile into PostGisDatabase - problem of connection | I have been trying to import/load a shapefile into a PostGis database without any success despite many trials and searching an answer in the documentation. Configuration I'm running Windows 64 bits Home (in japanese ) pgAdmin 4 PostgreSQL 12.1 postgis 3 I used 2 differents methods without any results METHOD 1 - using t... | The pgAdmin4 connection goes to the database named "postgres". Apparently, a database named "gis_analysis" does not exist, or is not configured to accept connection. | 0 | 0 | 319 | 2020-06-29T15:57:42.527 | database_errors | dba.stackexchange.com | |
540,399 | Is it good practice or too draconian to reject mails from mailservers with no RDNS | I've recently dropped SpamAssassin and am now basing spam rejection on DNSRBL's, grey-listing and other basic tests and I'm wondering whether I should also block hosts that don't have a valid RDNS matching the EHLO? If I do this, am I going to make trouble for much legitimate mail and upset my customers? I've heard peo... | I have tried multiple approaches with the HELO/EHLO checking with a fairly decent sized customer base of between 100k-200k users and ended up going with a solution that does the following: Check that the HELO/EHLO contains a domain name. -- This mostly boils down to does the name have a dot in it. Checking the DNS on t... | 21 | 12 | 3,438 | 2013-09-20T08:52:10.137 | infrastructure | serverfault.com | |
1,128,676 | Ansible 'command' task missing 'stdout' for 'nginx' config verification | After deploy new configuration of Nginx, I would like to verify configuration before Nginx handler for reload is applied. This is output of command line: [CODE] Based on output above, I configured Ansible [CODE] task like this: [CODE] [CODE] should show something changed only if output of command is mising [CODE] . Thi... | Instead of relying on string output you can check the return code itself (nginx will return non-zero rc if config is not valid): [CODE] You should also consider checking a config file pre-deployment , that is run [CODE] in your validator before you deploy the config, as otherwise your state change is inconsistent and y... | 0 | 2 | 456 | 2023-04-14T12:56:01.230 | pipeline_ops | serverfault.com | |
1,032,673 | Using "monit" - how to detect empty reply from http process (apache2) | I would like to monitor empty replies from my apache2 process as I am running into a problem similar to " Apache gives empty reply " . I am using monit to monitor my processes, so I am going to stick with that! I have the file 'apache2' in my '/etc/monit/conf.d' directory on debian: [CODE] If tried to add a size constr... | I see two possible solutions: Check for empty CHECKSUM with: [CODE] Regex should also work [CODE] | 0 | 1 | 286 | 2020-09-04T11:04:31.117 | data_quality | serverfault.com | |
1,141,483 | debian dovecot as a submission server | I am using debian 12 as a submission server. I cant get it to work as described. Here is my doveconf -n: [CODE] When i telnet to localhost 2525 i get connected when i telnet localhost 25 i get connection refused. Why is that? | Submission is not SMTP. It receives mail from authenticated clients, and forwards said mail to SMTP. From the documentation : Relay MTA The Dovecot SMTP submission service directly proxies the mail transaction to the SMTP relay configured with the following settings: You have to tell Dovecot where to forward e-mail. Th... | 0 | 0 | 153 | 2023-08-13T21:28:41.133 | api_errors | serverfault.com | |
1,090,906 | How to debug a website that appears to be unreachable to one person but not another (as a user, not the developer or admin)? | I have some website of a photographer that took some photos and is sharing them through his website. The website appears to work from one country (it works for one family member) but it does not even load for me. The site does not use ssl so I suspect some local DNS issue to be the culprit. traceroute seems to be quite... | To acces a website, you need in reverse order: a correct TLS configuration (certificates, etc.) a proper HTTP server listening on port 80 and 443 for HTTPS a properly working firewall that let that traffic go through a proper IP routing from "anywhere" up to that server and if all starts with a name (extracted from the... | -1 | 1 | 657 | 2022-01-23T21:09:50.833 | infrastructure | serverfault.com | |
975,563 | Dovecot can not detect user | System specification: Ubuntu 18.04, Postfix 3.3.0, dovecot 2.2.33.2 I followed this vimbadmin guide . But not successful. Dovecot does not detect mailbox. I ran this code: [CODE] i got: [CODE] But when i run: [CODE] I got: [CODE] I already got [CODE] in [CODE] Content of [CODE] : [CODE] Please somebody help me debug / ... | I debugged the problem with [CODE] Somehow i couldn't find in the config: [CODE] I found instead: [CODE] Then rather than going into each file back and forth, i did this (i was in my home directory): [CODE] And fixed the passdb and userdb. | 0 | 0 | 1,367 | 2019-07-17T09:33:46.093 | infrastructure | serverfault.com | |
12,564 | Stepping Thread Group throws error | The Test plan looks like this: "MAIN SCRIPT " -Test Plan Stepping Thread Group [CODE] When I exectued the test Throws below error: [CODE] Could some one please advise me what am I missing? Thanks, Raj | You are not using the Include Controller in a right way, it is required to use Test Fragment in your Included test plan which is missing in the example provided by you. Without the use of Test Fragment your Include Controller will not get executed. Please refer to the mentioned links for Include Controller and Test Fra... | 0 | 0 | 402 | 2015-04-03T20:44:55.493 | data_quality | sqa.stackexchange.com | |
68,804 | Mariadb sharding? | I'm trying to implement a mariadb sharding for learning purpose. I have looked into database sharding in general and found mariadb spider storage engine support sharding. I do not want spider storage engine and like to test tokudb storage engine due to it's high performance. I plan to shard a simple database over two s... | I think the answer to both of your question could be MaxScale . MariaDB MaxScale is a database proxy which supports connection pooling, load balancing, automatic failover, query routing, read-write splitting and more. The query routing feature is used to achieve sharding. For a tutorial, try e.g. this one . An alternat... | 4 | 2 | 3,967 | 2014-06-23T06:21:46.717 | database_errors | dba.stackexchange.com | |
480,279 | Alter new and existing session Command Timeout value | My first post so please me... I’m a self-taught DBA in a manufacturing environment full of engineers who like to fiddle. Although I have not given them sysadmin or any explicit extra rights I have an issue with some engineers running ‘killer’ queries, some very io intensive. This would not be an issue normally given th... | The command timeout is a client-side option. Unfortunately you cannot set it globally on the server. Depending on how your application is programmed and configured, you may be able to force this from that end. | 0 | 0 | 159 | 2013-02-19T13:54:02.927 | infrastructure | serverfault.com | |
250,777 | Should i use multiple databases | I have a situation, in which i need to design a database for some bakeries. I will need to design the same thing for many bakeries. For each bakery i will have for example, an Employee table, and a Product table (this will in reality much more complicated). The employees and the products do have relationships between t... | In the real world, a lot will depend on how many customers you have, how paranoid those customers are/ how valuable the data is, and how skewed your customers are (i.e. Mom & Pop with 10 items and 100 sales a day vs Hostess Inc with millions of sales a day). Separate databases create a variety of administrative problem... | 2 | 2 | 102 | 2019-10-10T16:22:16.357 | warehouse_errors | dba.stackexchange.com | |
130,748 | Always-On Configuration Clarifications | Do we have to Install stand-alone instances of SQL Server 2012 or Failover-Cluster SQL Server Instances while configuring Always-On? I am asking this question because I saw few configurations using stand alone instead of Clustered SQL Server Instances. And when we say: Always-On will support up to two secondary replica... | Be careful with the term Always ON, This refers to Always On Failover Cluster Instances and Availability Groups (Also database mirroring but this is deprecated). FCIs and AGs are very different technologies. To answer your question AGs can be installed on stand alone and clustered instances. It all depends on your HA/D... | 1 | 2 | 81 | 2016-02-29T05:32:04.783 | database_errors | dba.stackexchange.com | |
643,300 | Office Registry Settings for Office 2013 for use with ADRMS | We had ADRMS running with Office 2010 on Windows 7, between a few divisions using Trusted Publishing Domains (TPD), this made available by using a few registry changes for use in Office 2010 http://technet.microsoft.com/en-us/library/dd772637(v=ws.10).aspx LicenseServerRedirection: Redirect to different servers for IRM... | Got the answer, had to create some keys in a separate location on the Windows 7 PC http://technet.microsoft.com/en-us/library/jj159267(v=ws.10).aspx | 2 | 1 | 2,001 | 2014-11-10T15:57:53.540 | infrastructure | serverfault.com | |
672,151 | Why am I getting these emails? | Awhile ago I noticed that email messages from my domain is not immediately delivers by google, and I'm getting an smtp error message from google server. I don not remember the exact wording of that message but googling it, suggested that I need to setup SPF and DKIP records. Which I did. It resolved the issue with goog... | I believe what you are encountering is a Backscatter email, check wikipedia for detailed description. In brief, backscatter happens when someone sends out spam using forged addresses, in this case yours, and the bounce messages send back to your address. Many mail servers resolve this by tagging every email they send o... | 4 | 4 | 1,313 | 2015-02-28T19:16:56.367 | infrastructure | serverfault.com | |
303,098 | MongoDB TLS unable to get issuer certificate | I'm setting up a MongoDB server, and wanted to use TLS from a proper CA and DNS. I got a domain name and put an A record in, linking to my server. Afterwards, I applied for a SSL certificate on sectigo.com. By their instructions, I generated a key and CSR. After confirming I did indeed own the domain name they sent me ... | After trying a few permutations of different settings I found, and confirming my certificate could be verified by CA with openssl commands. I figured out that all I needed to do was connect with port, host and [CODE] options. This means the client will use the systemCA. | 0 | 0 | 1,837 | 2021-11-25T07:47:28.207 | database_errors | dba.stackexchange.com | |
306,907 | Circular dependencies: Recursive grammar parser (e.g. json) | (TLDR) To build a parser for a recursive grammar by composition of individual parsers (e.g. with a parser combinator framework), there are often circular dependencies between some of the individual parsers. While circular dependencies are generally a sign of bad design, is this a valid case where the circular dependenc... | Don't make 4 parsers; make 1 parser. You're not parsing 4 different languages; you're parsing 1 language with 4 major grammatical components. The "circular dependency problem" can be handled quite easily with a bog-standard recursive-descent parser whose [CODE] and [CODE] methods can both call each other. | 0 | 6 | 1,556 | 2016-01-08T20:36:46.183 | pipeline_ops | softwareengineering.stackexchange.com | |
1,119,678 | Eliminate SSH timeouts between macOS and Ubuntu VM | I'm using ssh and Microsoft VS Code on my Mac (up to date Ventura) to connect to my Ubuntu VM (up to date 22.04). However, I keep getting inactivity timeouts (I believe this is from the macOS side): client_loop: send disconnect: Broken pipe My Ubuntu sshd_config contains: [CODE] And my macOS ~/.ssh/config contains: [CO... | There are a few things you can try to fix the inactivity timeouts you are experiencing: First, try setting the TCPKeepAlive option to yes on both the client and the server. This option allows the operating system to send keepalive messages to ensure that the connection is still active. You can also try increasing the C... | 0 | 0 | 917 | 2023-01-07T14:10:48.347 | infrastructure | serverfault.com | |
264,541 | Can somebody explain BEGIN; and COMMIT; for me once and for all? | Let's say I have this PHP code: [CODE] Am I correct in thinking that this will first create a schema, and if the table cannot be created (for any reason, such as a temporary glitch or whatever), the schema that was just created is deleted again, so that the entire "state" of the database is reset to exactly how it was ... | You are already using transactions, because every statement in PostgreSQL runs in a transaction. So no need to be afraid of transactions. By default, PostgreSQL is running in autocommit mode, so every statement has its own transaction. To get a transaction that spans more than one statement, you explicitly start it wit... | 0 | 2 | 964 | 2020-04-08T00:06:23.480 | warehouse_errors | dba.stackexchange.com | |
202,741 | MySQL query suddenly slow down | (MySQL Version 5.5.58) I have two tables [CODE] and [CODE] . [CODE] has 1K rows, while [CODE] has 100K rows: [CODE] I have a "select" query from those tables: [CODE] This query will finish in ~100ms normally. However, after 2~3 days of uptime, the query time will suddenly increase to about 200 seconds. This will usuall... | The InnoDB buffer pool is essentially a huge cache. (A variant of LRU - 'Least Recently Used'). If your working set data fits into that cache, then [CODE] queries will usually be relatively fast. On the other hand, if the working set data doesn't fit into that cache, then MySQL will have to retrieve some of the data fr... | 1 | 1 | 7,556 | 2018-03-31T15:30:06.720 | api_errors | dba.stackexchange.com | |
81,248 | Oracle 11.2 Configuring authentication | Can the following be setup in Oracle11.2 for password authentication? A new, non temp password should be atleast 24 hours old before it can be changed. System admin and authorized help desk personnel may change passwords of any age. Users will change temporary passwords including system administrator issued passwords a... | I am using the security documentation to answer your questions: No, a minimum password life cannot be specified. Only a [CODE] (maximum life time) can be specified. Depending on what you want to accomplish, [CODE] might be what you're looking for. (Source) Yes, this can be configured. You can expire a password, the use... | 0 | 0 | 69 | 2014-10-14T00:20:00.940 | api_errors | dba.stackexchange.com | |
3,311 | Indications from obscenely high Operator Costs in Query Plan? | I have a monthly ETL process that's too complicated to explain here, but basically we get a large amount of customer data, bulk load it into various tables, then run a series of build processes. The volume of total data is large, we add 25-30m records monthly to the largest table, which has around 700m records total. T... | JNK, You meant something like this? http://sankarreddy.com/wp-content/uploads/2011/03/CropperCapture2.jpg This is an estimated execution plan that's generated based on the statistics by the client tools and note that its NOT an engine issue. If you want MSFT to fix this issue then please vote for this connect item item... | 7 | 5 | 1,110 | 2011-06-14T17:44:13.310 | data_quality | dba.stackexchange.com | |
350,227 | HP Microserver Mini-SAS Cable | I just purchased an HP Microserver I was planning to use with FreeNAS. It needed more RAM, so I tried to follow the instructions to pull out the system board draw to access the DIMM slots. Doing so requires removing all of the cables connected to the board, including a "Mini-SAS" cable. The cable looks like it has an o... | I have a number of these servers and it is awkward to disconnect, although it does sound odd you are having this amount of trouble Tips, because of how the cable is routed and cable tied, also the length of the connector, you need to pull directly up while putting a kink in the actual cable. The metal clip seems to dep... | 10 | 10 | 6,281 | 2012-01-16T08:29:47.373 | infrastructure | serverfault.com | |
605,194 | OpenVPN doesn't start correctly | When I install Open VPN and try to start it, I get this: [CODE] I have VPS in OVH. I don´t know if the problem can be tun/tap ppp. I also don´t know which is the real issue, if the problem is from OVH or something else. Has anyone else installed Open VPN without this error? | Your VPS does not support iptables, you will have to get your host to enable it for you. Alternatively get a VPS based on KVM or similar rather than containers like OpenVZ. | -1 | 3 | 905 | 2014-06-14T19:48:25.587 | infrastructure | serverfault.com | |
219,251 | Looking for equivalent of ProxyPassReverseMatch in Apache to fix missing trailing forward slash issue | I have two web servers, www.example.com and www.userdir.com. I'm trying to make www.example.com as the front end proxy server to serve requests like in the format of http://www.example.com/~username such as http://www.example.com/~john/ so that it sends an internal request of http://www.userdir.com/~john/ to www.userdi... | You can just ignore the username and anything that follows when fixing up the redirect: ProxyPassReverse /~ http://www.userdir.com/~ Since this is just a prefix substitution. | 0 | 1 | 4,294 | 2011-01-06T03:42:57.753 | infrastructure | serverfault.com | |
91,170 | apache performance timing out | Im running a webserver where I'm hosting about 6-7 websites. Most of these websites get their content from MySQL which is hosted on the same server. Traffic average per day is about 500-600 unique visitors, about 150K hits per week. But for some reason sometimes websites send a timeout, OR sometimes websites dont load ... | Sounds as if there might not be enough servers/threads. Have you checked your apache error log or syslog? If I don't recall completely wrong it should tell you what resource you need to increase. Also, I see you give us both your prefork and you worker mpm settings. Take a look at the answer to the question How do I te... | 1 | 1 | 387 | 2009-12-04T20:28:42.817 | api_errors | serverfault.com | |
989,086 | DNS times out twice and then resolves on DomainController | Lookup from non-domain controllers result is fine. But on the domain controller the nslookup times out twice and then it resolves the address. This DC is a fresh install and I'm unable to find out the cause of the issue. There is no firewall btw. If I add a .(dot) to the end of the query then it resolves instantly on d... | Figured out the issue. In the list of suffixes (domain.com, ca.domain.com, ny.domain.com), [CODE] wasn't resolving. After looking it further there was a static route missing for the [CODE] network address. Adding that resolved the issue. During [CODE] it needed all suffixes to be reachable. When I removed [CODE] suffix... | 0 | 1 | 9,528 | 2019-10-23T10:15:23.133 | infrastructure | serverfault.com | |
118,259 | MySQL performance issue - intermittently slow queries | I manage an intranet application used by around 50 staff in a few locations. The application is hosted on a Windows Server 2008 VM with 8GB RAM and MySQL (5.5) is running on the same server as IIS. I have slow query logging enabled and noticed that certain queries are intermittently slow. For example, some queries are ... | Comments about that Tuner output : [CODE] Notice how all InnoDB tables are fragmented? That is the nature of how it is implemented. Do not bother running [CODE] ; it will almost never provide substantive benefit. [CODE] Irrelevant if the tables are tiny. The important ones will show up in the slowlog even without [CODE... | 3 | 1 | 3,371 | 2015-10-16T11:57:18.457 | pipeline_ops | dba.stackexchange.com | |
187,661 | Combining Always Encrypted AND Column level encryption in SQL Server 2016 | We have requirements to encrypt sensitive column data using SQL Server 2016 and selected the Always Encrypted(AE) feature to encrypt those columns using deterministic approach.. Since, the AE deterministic encryption doesn't allow inequality, range, or LIKE queries on these encrypted columns, we have tried of doing enc... | I have yet to come across a definitive "Best Practices" list regarding multiple encryption types for SQL Server, but in your situation I would probably recommend the following: Encrypt necessary data using Always Encrypt Its the new hotness. You're on 2016, enjoy it! Better security - the DBA can't decrypt data since t... | 8 | 10 | 2,884 | 2017-10-04T15:02:37.947 | database_errors | dba.stackexchange.com | |
940,178 | Let's Encrypt setup for subdomain which is pointed to other host | I'm trying to setup a two server system, where one is doing webhosting and the another is delivering content (CDN) for the webhost server. I currently own two servers and they both have Let's Encrypt SSL. webhost https://example.com [CODE] CDN https://foo.com [CODE] I have setuped a subdomain to my webhost server: [COD... | The short answer is "You don't". You don't need SSL on your secondary host (foo.com). Here is all you need to do: Generate SSL for cdn.example.com Setup reverse http proxy on your cdn.example.com. So that all HTTPS requests will be provided with valid ssl from cdn.example.com, but the content would be served using HTTP... | 0 | 0 | 865 | 2018-11-15T13:24:09.167 | infrastructure | serverfault.com | |
723,050 | Active Directory Log on To... setting keeps resetting Windows Server 2012 | My current work environment consists of a DC running Windows Server 2012. Upon creating new users, or assigning old users to new terminals, they get an error when trying to log into their workstation Your account is configured to prevent you from using this computer. An easy fix to this is going into the account proper... | You can review the security event log to learn the time and the account making the change in event 4738 with the proper auditing enabled (default domain controllers policy). There is a older/legacy audit policy that may be in place if you have not yet enabled the Advanced Audit policy. Old Polices/Windows Settings/Secu... | 2 | 1 | 1,066 | 2015-09-17T14:50:44.203 | infrastructure | serverfault.com | |
849,216 | How to disable lock screen on idle for windows 10 host and windows 10 client remote desktop? | The windows 10 desktop client for remote desktop can save my password for the remote client ( a windows 10 VM ). This is all good. Just click to open a session. However after a 5 minute timeout the remote desktop locks the screen and asks for the password. I then disconnect the RDP session and click on the saved RDP se... | As described in the article Disable Remote Desktop Auto Lock Screen on Idle you have already found: If the “On Resume, display logon screen” checkbox is disabled or grayed out like what is shown at the screenshot below, it means that there is a group policy being implemented probably by your company’s network administr... | 7 | 4 | 21,743 | 2017-05-10T05:17:15.983 | infrastructure | serverfault.com | |
126,660 | OpenFiler cannot delete volume group | I have deleted all the ingredients of a volume group even access options, but it still says that the Volume Group is in use. I tried to close everything including the OpenFiler itself but when I open it, it still says the volume is in use. How can I overcome this problem ? Thanks | Go to the commandline on the Openfiler box or via Putty. With the following command you can disable the volume group” [CODE] After disableing of the volume group, you can delete the whole volume with the following command: [CODE] If you’re sure about this, you press y to continue. | 1 | 3 | 7,423 | 2010-03-26T15:53:17.330 | infrastructure | serverfault.com | |
1,013,577 | Slow network speed on ESXi hosts | I have been dealing with this problem for about half a year (had the luxury of time) and hadn't managed to crack it, so I finally resigned and came over here to ask for help from others not just google (our support for vmware run out about 3 years ago and our executives chose not to order prolongation from vmware). The... | This might not be the advice you're expecting but that will resolve your problem ^^ The solution is to perform full backups weekly , not daily. It's one of the first real world lessons when one starts doing backups (and verifying them :D). Large daily backups simply don't complete within a day. Long story short it's no... | 2 | 1 | 6,905 | 2020-04-22T15:13:26.440 | database_errors | serverfault.com | |
758,088 | Dropping external connections to Docker container with iptables | I'm trying to set up iptables on a server running Docker containers. Default rules generated by Docker set default policy to ACCEPT but I'd prefer to have it in a more restrictive manner: set default policy to DROP and expose to the Internet only specific ports (HTTP, SSH, etc). I have an app container running with [CO... | When I removed [CODE] from [CODE] table and [CODE] from [CODE] table everything worked like I wanted it to. | 0 | 0 | 1,428 | 2016-02-18T12:11:08.820 | pipeline_ops | serverfault.com | |
731,166 | How to auto clear APC cache after publishing posts on Wordpress? | I'm currently using APC cache module on my PHP installation . The problem is that whenever I publish a new post , Users must use Ctrl + f5 to see new posts . Is there any way to purge APC cache automatically after a new post is published on Wordpress ? | WP has a plugin to work with APC, but it hasn't been updated in a long time, AFAIK. We use WP Super Cache instead, mostly because it only requires rewrite rules and gives us more flexibility to tell what's gonna be cached and what's not. Have you tried it? Edit for @sajjad hosseini: Since you want to stick with APC, yo... | 0 | 0 | 404 | 2015-10-23T12:22:30.537 | infrastructure | serverfault.com | |
849,507 | systemctl doesn't recognize my service: Default-Start contains no runlevels, aborting | I want to define a simple service to be started at boot, being on Ubuntu server 16.10. So I have created a [CODE] I somehow messed up between upstart and systemd: at first I thought I had to setup an upstart service. So after converting my file to an upstart syntax, I ran [CODE] . I figured out my error and ran [CODE] ... | The problem was the location of the file, on Ubuntu server it expects it in [CODE] , [CODE] is for legacy files. | 31 | 14 | 100,370 | 2017-05-11T13:27:37.627 | infrastructure | serverfault.com | |
194,142 | domain name doesn't work with www ahead | On my machine I'm using WAMP with virtual hosts. All I did was to add 127.0.0.1 my-project.loc line into system32\drivers\etc\host file and the following code into httpd-vhost.conf from the Apache2.2.11\conf\extra folder. [CODE] My question is how can i make the www.my-project.loc to work too. Can you give me the smart... | Add the following line under the ServerName directive: ServerAlias www.my-project.loc | 0 | 3 | 168 | 2010-10-23T18:43:58.153 | infrastructure | serverfault.com | |
897,430 | How to specify different resource limits for different instances of a systemd instantiated service? | For reasons above my paygrade, I need to run multiple instances of a DB server on a physical host with a bare metal OS. I also need to limit the physical memory use of each instance. I am using a template unit file to start up a few dozen instances. I am using [CODE] to specify different environment variables and comma... | I think I found what I'm looking for in this answer: https://serverfault.com/a/879705/62991 Just create a drop-in directory with the instance name, and you can override settings there just like you can for a non-instantiated service. In the below example, instances of [CODE] have a 4GiB memory limit by default, but [CO... | 1 | 1 | 602 | 2018-02-15T18:25:58.087 | infrastructure | serverfault.com | |
483,675 | Exchange won't log in to smart host | My Exchange 2010 server is configured to relay mail to a smart host. Basic authentication is required over TLS. For some reason, Exchange doesn't feel like logging in. I see the following error message in the Queue Viewer: 451 4.4.0 Primary target IP address responded with: "451 5.7.3 Require basic authentication." Att... | RFC4954 says: To ensure interoperability, client and server implementations of this extension MUST implement the [PLAIN] SASL mechanism running over TLS [TLS] [SMTP-TLS]. Despite this requirement, Exchange 2010 does not support the [CODE] authentication method -- the smart host must be configured to support the [CODE] ... | 1 | 2 | 3,439 | 2013-03-01T07:51:55.307 | api_errors | serverfault.com | |
652,189 | nginx & php-fpm [debug] 11: Resource temporarily unavailable | New Development The core php error logs are below, but the site specific error logs show this. The memory on my php.ini file is : memory_size 1024; so it's not php's memory limit. I've also disabled all my plugin's, so it's not the memory limit that is on my security plugin. 2014/12/13 16:12:40 [error] 28264#0: *212 Fa... | The number of spare processes indicated in your logs clearly doesn't match your value for pm.min_spare_servers. That's probably because the php-fpm settings don't go in your php.ini file, they go in a fpm.conf file. Given the lack of spare servers, it's no big surprise that you get a 'resource not available error'. I d... | 6 | 1 | 5,230 | 2014-12-12T16:59:09.320 | infrastructure | serverfault.com | |
102,142 | ^C no longer sends SIGINT | ^C no longer issues a sigint in any application I've tried. I'm using ArchLinux. This is highly bad and I need it fixed. All help appreciated. EDIT: So, we've found that ^C is sending a SIGINT, but most things are ignoring it. This problem only exists within X; ^C on a real tty seems to be honored as expected. VLC resp... | Try running [CODE] , that should give you something like: speed 38400 baud; rows 40; columns 80; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; ... The field you are interested in is "intr = ^C" (or whatever "intr" is set to for you). That tells you what key combination gene... | 2 | 4 | 183 | 2010-01-13T03:44:43.003 | infrastructure | serverfault.com | |
396,986 | How to structure a database where a record can be a child of a parent or a grand parent record | I have these concepts for a database application: [CODE] , [CODE] and [CODE] A session can have multiple files A session can have multiple subsessions A subsession can have multiple files A session and subsession are completely different concepts, they don't have much in common so they cannot be merged into one table. ... | If files can be associated either with sessions or subsessions, you should consider using separate association tables for that. [CODE] table Id ... [CODE] table Id Session -> references Sessions.Id ... [CODE] table Id FileName ... [CODE] table Session -> references Session.Id File -> references Files.Id [CODE] table Su... | -3 | 3 | 171 | 2019-09-05T08:18:56.440 | data_quality | softwareengineering.stackexchange.com | |
597,209 | Getting Error ID 4625 when one service tries to access a shared path on another machine | I'm kind of a n00b when it comes to dealing with Server issues, so I need some help. Setup: I have a scenario where there are two machines involved, both of which are using Windows Server 2008 Standard . One is called the IS Server (has IP 10.1.1.89 and machine name bxtwmistv1) and the other is called the MWS Server (h... | The issue will be strict name processing. To resolve it, the application/ service in which ever it's trying to access the UNC path should use the FQDN. Take a look at this http://support.microsoft.com/kb/896861 . While the above link talks about IIS, this is still relevant to you as the error is the same. The key here ... | 1 | 1 | 5,057 | 2014-05-20T12:29:33.513 | infrastructure | serverfault.com | |
658,999 | Redirect Naked Domain to SSL | I have a wildcard SSL certificate and I want to redirect all http requests to their equivalent https. My server is a Debian (wheezy) and I am running Apache 2.2.22 I have added the following at the end of /etc/apache2/apache2.conf [CODE] This works well for subdomains but not the naked domain ( http://www.domain.tld go... | I had set the hostname of my machine the same as VirtualHost, so they were both domain.tld This was what caused the VirtualHost rule not to work for the naked domain. When I changed the hostname of my machine to something neutral and restarted, the VirtualHost settings worked as expected. | 0 | 0 | 313 | 2015-01-12T23:20:02.850 | api_errors | serverfault.com | |
213,344 | Integrate a Python Project with a Visual Studio C++ Console Application? | I now have a Python project that is in charge of generating the simulation data and visualizing the simulation and processed data. A C++ console application is already available in my Visual Studio. The processing sequence is as follows: Python project generates the raw data into [CODE] . Visual Studio C++ console appl... | IDE stands for Indegrated Development Environment. It is not concerned with running your application except for debugging. There is no point integrating the IDEs, the user won't have them installed. What you should do is make of of the applications run the other, directly, not involving either IDE. You can execute exte... | 0 | 1 | 779 | 2013-10-04T03:38:54.563 | api_errors | softwareengineering.stackexchange.com | |
621,915 | screen in screen, detach only last one | I have strange issue on my hands. I have opened (GNU) screen for one serial console and in that same console I have opened another screen to another serial console. It was working but I am now unable to detach the last one without detaching the 1st one. I know that this is due to same configuration for both screen. Is ... | You have to press [CODE] sequentially. [CODE] sends control symbol to the inner screen while [CODE] - to the outermost one. | 3 | 4 | 139 | 2014-08-16T17:53:58.047 | infrastructure | serverfault.com | |
122,439 | Are database connections from an application expensive from a performance point of view? | A colleague tells me that connections to a database are expensive and could harm performance of the application. They ask me to create a procedure that calls say another 8 procedures, that way they call one procedure and get back 8 datasets. From my viewpoint SQL is having to wait for each dataset to be returned before... | Well, there are four main aspects to this: Why are you asking the general Interwebs for an opinion when there are three other sources that should be checked first, one of which will be definitive and not an opinion: When someone tells you a technical / scientific piece of information, whenever possible, ask them how th... | 4 | 5 | 1,375 | 2015-11-30T10:17:24.910 | warehouse_errors | dba.stackexchange.com | |
583,372 | postfix transport relay access denied | When message arrives from other mail server (yahoo/gmail) on my postfix server it gets denied and not being transported using the transport on my configuration. Been checking whole day can't find anything hope you guy can help me. getting this error: Mar 20 17:41:19 smtp postfix/smtpd[2103]: NOQUEUE: reject: RCPT from ... | To allow your server to act as a relay for other mail domains, you need to have three different pieces. First you need to tell postfix that it is responsible for the domain(s). That is normally done in the [CODE] option, for example [CODE] In [CODE] you would list the domains, 1 per line: [CODE] Then you need to tell p... | 2 | 3 | 2,972 | 2014-03-20T11:09:04.407 | infrastructure | serverfault.com | |
511,976 | "Discovery failed" message trying to install hp ProLiant Support Pack 8.30 on DL380 G4 | I'm getting the exact screenshots shown here , and followed the directions there despite the model difference. The BIOS had a different serial number for some reason, but it was an alphanumeric string still. We checked that it did persist after a restart. However, this didn't fix the problem. Some suggest to run a .cmd... | In this case, you're trying to install a very old ProLiant Support Pack on your system. I'd just download a support pack for a more recent-ish HP DL380 G6 server. The DL380 G4 you're using is ~9 years-old. That's ancient in computing terms. Try it and report back! Edit: Good that it works! As for your firmware problem,... | 1 | 1 | 169 | 2013-05-30T14:58:45.833 | infrastructure | serverfault.com | |
237,931 | Error in update. I did not find the error. Why is max(C) not found? | (Translated from Portuguese with Google Translate) I created a table and made an update that should update column B equally to the percentage that C represents in relation to the maximum value of column C. [CODE] But it shows an error while executing. [CODE] aggregate functions are not allowed in UPDATE The expected re... | You just need a select within your update: [CODE] Check it at db<>fiddle here [CODE] without more context is not part of the SQL standard. However, you can always use a [CODE] returning a single row with a single column (of the appropriate type) where a value is expected. That's what you'll get: SELECT * FROM z; a | b ... | 1 | 0 | 54 | 2019-05-12T00:45:41.423 | warehouse_errors | dba.stackexchange.com | |
331,837 | KVM networking with different VLANS | I'm currently running KVM on CentOS 6 server, and have bridged networking setup for the first subnet that's assigned to the server. When I'm trying to use the other subnet, that's using a different gateway, would I need to create new br0 (br1) device for the VLAN or new eth0:1 connection ? The subnet that's being used ... | You need to create an interface that's connected to the vlan (like "eth1.2102" for vlan 2102). Then you create a bridge ("br2102") that has the vlan interface as a member. You can use the /etc/sysconfig/network-scripts entries to do that, don't assign IPs to those interfaces. Then use the bridge interface in the qemu/k... | 3 | 4 | 2,677 | 2011-11-17T05:44:56.623 | infrastructure | serverfault.com | |
574,410 | Is Windows Server 2008 R2 arp cache per user or per machine? | When running [CODE] in a Windows Server 2008 R2 prompt, will the returned entries cover connections from all users logged on to the machine or only the current? | The arp cache is a table containing all the arp entries the machine knows about. It's not collected or segmented in a user-specific fashion. Be aware, however, that dynamic arp entries expire fairly quickly, so your arp table might not even be a good representation of MAC addresses the computer has collected, just a go... | 1 | 4 | 705 | 2014-02-10T10:15:46.240 | infrastructure | serverfault.com | |
373,124 | Cant boot newly created mdadm software raid in Debian linux squeeze | Hello I have very strange problem creating swraid on Debian Squeeze Linux. I started creating RAID1 from existing standard instalation of Debian on single drive. So I bought new drive and started following this tutorial: http://www.howtoforge.com/how-to-set-up-software-raid1-on-a-running-system-incl-grub2-configuration... | Ok, so I found solution of my problem booting from mdadm Raid1. I'm quite ashamed that it took me so much time to figure this out, because it's a quite simple mistake. In [CODE] there was section: [CODE] I had to chage it to : [CODE] And then I could remove my custom command from /usr/share/initramfs-tools/init and lin... | 2 | 3 | 3,758 | 2012-03-25T06:16:38.350 | infrastructure | serverfault.com | |
740,759 | Best practices to backup mysql databases | This question concerns best practices for mysql backup with replication and large number of databases. I'm looking for your point of view and suggestions :) I - Current situation I have two databases master/slave (mysql replication) on each one of my app servers. I have one database by customer and one "admin" database... | Best practices depends on what do you need to recover. You definitely should backup to different storage, ideally in different geolocation. I have this little script, which detects all databases and backup each database to separated file, so I can recover only one database. [CODE] Each backup is keeped in directory str... | 3 | 1 | 2,602 | 2015-12-04T10:55:45.423 | database_errors | serverfault.com | |
350,030 | Optimizing polymorphic objects when there's only one implementation | Let's say I have an interface called [CODE] . [CODE] has two implementations, [CODE] and [CODE] . There is also the [CODE] interface, with a [CODE] and [CODE] implementation. The [CODE] interface has a function called [CODE] , which returns a pointer to a [CODE] interface of the appropriate type ( [CODE] returns a [COD... | Don't put the car before the horse. Until you have proof that performance is impaired by some inefficiency it doesn't matter where the inefficiencies are. Write the simplest and most maintainable code you can, refactor if any issues arise. | 1 | 2 | 190 | 2017-06-02T08:01:23.483 | api_errors | softwareengineering.stackexchange.com | |
227,644 | Does mysql configuration options accepts - instead of _? | Mysql 5.7 Documentation mentions that [CODE] can be set in [CODE] as follows: [CODE] However, an existing setup uses mysql configuration as follows (passed in [CODE] ): [CODE] And it seems to be working. Does mysql configuration options accept [CODE] instead of [CODE] in variables or am I missing something here? | https://dev.mysql.com/doc/refman/8.0/en/command-line-options.html says: Within option names, dash (-) and underscore (_) may be used interchangeably. For example, --skip-grant-tables and --skip_grant_tables are equivalent. (However, the leading dashes cannot be given as underscores.) This applies to options when you us... | 5 | 3 | 849 | 2019-01-18T14:42:02.427 | database_errors | dba.stackexchange.com | |
1,111,963 | Execute root commands through ssh user | my goal is to execute commands as root user from another linux host through ssh. The Problem is: The environment doesnt allow to access the root user directly. The manual way, which works, is to connect to the unpriviliged user first by ssh-key, then su to the sudo priviliged user and then sudo -i/sudo su to the root a... | ... connect to the unpriviliged user first by ssh-key, then su to the sudo priviliged user and then sudo -i/sudo su to the root account and execute the commands. The whole point of sudo is to directly associate the person logging in with the sudo'd commands they [are allowed to] execute. Having a "shared" account in th... | 1 | 5 | 4,603 | 2022-09-30T10:52:08.210 | infrastructure | serverfault.com | |
156,044 | Alternative to removing ONLY_FULL_GROUP_BY | After upgrading from MySQL 5.5 to MySQL 5.7 I'm getting an error with some of my queries: ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'grocery.Product_Category.category_id' which is not functionally dependent on columns in GROUP BY clause; this is incompa... | I would suggest rewriting the query in a way that minimises the number of columns necessary to put into GROUP BY. In your case you can do that by applying the grouping to the [CODE] table only. According to your example, that table has the following entries: [CODE] Since you want product names to be unique in the outpu... | 6 | 5 | 6,652 | 2016-11-22T16:37:38.940 | data_quality | dba.stackexchange.com | |
445,665 | Should I provide TLS connections in a service that is designed to run behind a reverse proxy? | Does it make sense to implement TLS encryption for a service which will always be behind a reverse proxy? The reverse proxy will be able to handle encryption to users directly. [CODE] These are the arguments I could think of, but I cannot quite decide which side makes weighs more: Cons Unnecessary complexity in the cod... | At some point you will have to defend your choice in a security audit. In the case of traffic crossing the network (even an internal network) there will be some scenario where having encryption would at a minimum "make things harder" for an attacker. Bluntly, its more work trying to defend a decision not to encrypt tha... | 1 | 2 | 65 | 2023-05-22T11:41:05.267 | api_errors | softwareengineering.stackexchange.com | |
1,042,705 | Kubernetes and iptables: forward external traffic to specific nodePort | I have installed kubernetes on EC2 environment. I want redirect traffic from external port 6600 to 30000 as nodePort. I'm using iptables to do this (cmd below) but this not doing redirection. I have tested command on other environment and redirect working perfectly. In my opinion the kubernetes is source of problem. [C... | When [CODE] is used in iptables mode (as it is by default in kubernetes), routing requests to services continues to work for existing services even when the [CODE] process dies on the node [CODE] binds and listens (on all k8s nodes) to all ports allocated as [CODE] to ensure these ports stay reserved and no other proce... | 1 | 4 | 5,177 | 2020-11-16T09:43:45.413 | pipeline_ops | serverfault.com | |
278,513 | Help me tune my.conf MySQL | Currently, I have been surfing around for ideas and copying some of the processes and details found and playing around with my Server and now seems to be pretty good but with some anomalies in performance (not always)... if you see something wrong with my current configuration which could tend to decrease the performan... | I have a little good news for you ASPECT #1 You could tune certain aspect of MySQL 8.0 with just one option: innodb_dedicated_server . The innodb_dedicated_server options will auto-tune four(4) things innodb_buffer_pool_size : Less than 1G: 128M (default value if innodb_dedicated_server is OFF) Less Than or = 4G: Detec... | 0 | 1 | 223 | 2020-10-22T15:54:07.540 | api_errors | dba.stackexchange.com | |
106,727 | how to solve proftpd very slow connection? | I'm having big trouble with my proftpd installation: the login is slow as hell, it takes about 10 seconds and more and that's to much for the default settings of most ftp clients. i'm using mysql and mod_sql as backend for the login. I've already searched a bit and added the following to my proftpd configuration: [CODE... | here's the answer for my problem: apparently the SQLAuthenticate directive was the problem. it was set to: [CODE] i've changed this to [CODE] now authentication is fast as hell. i've found a howto on the proftpd site, that explains why this configuration may cause problems: http://www.proftpd.org/docs/howto/SQL.html | 0 | 1 | 4,325 | 2010-01-27T08:40:43.083 | database_errors | serverfault.com | |
73,666 | How Much Resources Does the BLACKHOLE Storage Engine Consume? | I'm going to add a MySQL Relay Slave which use BLACKHOLE Storage Engine. The relay slave will just filter some databases binlog to downstream slave. Our MySQL Master generates about 15G a day in binlogs. How much CPU and Memory will be enough for this use case? | If a relay slave (a.k.a. Distribution Master) is using nothing but the BLACKHOLE storage engine for application tables, you really should not have to tune anything for MyISAM or InnoDB since there are no data or index pages to cache. You will have a nominal amount of disk I/O (mostly reads) since the [CODE] file for ev... | 1 | 2 | 336 | 2014-08-11T04:04:07.710 | database_errors | dba.stackexchange.com | |
481,928 | User in Administrators group can't access files via smbclient | I created a user ("backupagent") on a laptop running Windows 7 Home Premium, and added that user to the Administrators group, with a randomly-generated, difficult-to-guess password. My plan is to log into the machine over SMB to back up the files on the laptop (actually, BackupPC is doing this, but I can't seem to get ... | At first there is no need to create any additional shares on the box. There is administrative share for drive c: - \\hostname\c$. Every user in Admin group is able to access it. Another thing is that two "types" of permissions are in regards to the shares. First one is "share" itself. It is just who can access the shar... | -1 | 1 | 697 | 2013-02-24T03:34:51.400 | database_errors | serverfault.com | |
1,132,117 | How would I trace what system call or executable a Windows tool uses to delete user profiles? | First, some background. I deal with a lot of end user desktop support involving Onedrive. Sometimes, if the Onedrive client completely borks itself and its library, we must rebuild. Usually this involves removing the old library location, and letting it resync. Quite often, if the client has not signed out or disconnec... | First thing I'd try would be running Process Monitor https://learn.microsoft.com/en-us/sysinternals/downloads/procmon on the system while it's being removed, and then reviewing the output what was being run, which paths were accessed etc. Note, if you're not familiar with ProcMon, it spits out a LOT of data, so I'd rec... | 0 | 0 | 110 | 2023-05-29T02:07:19.470 | infrastructure | serverfault.com | |
962,639 | How to insert a random delay for connection request (tomcat)? | On Tomcat8.5, I am operating a certain Java application, which invokes C++ code via JNI that includes a long Critical Sections (takes approximately 1 second). Therefore, if the server receives many (~1000 or more) requests from clients at once by accident, the JVM invokes many worker threads and it causes very long del... | That isn't going to work. If ~1000 requests arrive at once and processing each request requires a ~1s critical section there is no getting around that it is going to take ~1000 seconds to process all of those requests. A delay a few milliseconds isn't going to help. Without knowing the details of what that DLL is doing... | 0 | 2 | 344 | 2019-04-11T16:15:33.400 | infrastructure | serverfault.com | |
50,105 | How can I prevent aptitude from upgrading me past lenny? (Debian Linux) | I can't seem to stop aptitude from upgrading all my packages to testing or beyond. I'm running Debian lenny, and generally I want to stick with packages from lenny unless I explicitly say otherwise. For particular features I may upgrade a particular package to a version from testing or experimental, but in general I wa... | Set [CODE] to "stable", not "lenny". The Release file talks in terms of release stages, not release codenames. | 0 | 2 | 1,118 | 2009-08-05T00:16:22.407 | infrastructure | serverfault.com | |
46,269 | Setting up Wildcard subdomain (with reverse proxy) on apache 2.2.3 | What I am trying to achieve is the following: I want to have numerous subdomains such as abc.domain.com redirect to a url such as www.domain.com/something?subdomain=abc Since I am redirecting to a fully qualified domain, I needed to use a reverse proxy to avoid the change of the URL in the browser. (using the [P] Flag ... | As SSL is a transport protocol and it wraps http, you can't have SSL vhosts. This means that HTTP_HOST is not meaningful ... try replacing HTTPS_HOST with SERVER_NAME | 1 | 0 | 2,964 | 2009-07-27T00:28:33.443 | infrastructure | serverfault.com | |
364,799 | Support i18n in existing application? | I have java/spring based web application with front end in JSP/HTML/JS/Jquery. We already have spring based i18n support. In JSP labels are coming from property files. html/browser download the js file specific to locale which contains validatins messages. Problem for both above points , half of the labels/messages are... | I almost hate to suggest this given my dislike of regexes, but would a regex search for quoted strings work: [CODE] I found this one here - Regex to search double quoted strings on multiple lines This should give you a complete list of files that you'll need to edit. Unfortunately, there's nothing that can automate the... | 0 | 1 | 247 | 2018-01-27T17:20:57.437 | api_errors | softwareengineering.stackexchange.com | |
224,525 | How to choose which backup files to restore when identical timestamps exist for diff and log backups | I can see from an earlier question that log file backup may be performed simultaneously with either full or differential data file backups. Imagine for a moment that full backups run during a window of time that doesn't overlap with any other backup. However differential and log backups may overlap. If, for example, th... | After restoring the full backup, do you restore the second differential backup and the last log backup? This is going to depend, but assuming: The source server is offline and the data files cannot be accessed The most up-to-date copy of the data is what is asked to be restored All backup files are successfully accessi... | 1 | 4 | 247 | 2018-12-10T03:05:38.300 | database_errors | dba.stackexchange.com | |
96,400 | Exim send failure "421 SMTP incoming data timeout" - Message body lacks '\n' at the end | I'm trying to figure out how this issue is occurring and how to stop it. Somehow messages are getting into our inbound Exim spool without any \n at the end. When our outbound Exim process tries to deliver these mails, they fail as Exim outputs '.' on the same line as the one it just sent. I've verified this by capturin... | I consulted with the Exim mailing list on this, and it looks like the problem lies with MailScanner's content filter. We have MailScanner doing virus/spam scanning for us, and it seems on certain messages when it cleans the tail end of a message, [CODE] is left out, and the message is put into the outbound Exim queue i... | 1 | 1 | 4,606 | 2009-12-21T17:45:36.067 | infrastructure | serverfault.com | |
387,086 | How to synchronize databases using event streams? | Say you have a bunch of microservices each accessing dedicated databases. Due to business logic reasons, data from some DBs need to be replicated to other DBs (e.g. to serve as local cache). One way to handle replication is to stream changes done to DB 1 (e.g. using my Debezium) into a queue (e.g. Kafka). Queue consume... | Throwing complete snapshots down the line can be overwhelming and a bit wasteful if none of the downstream systems are desynchronised or need it. Ways to mitigate/handle it. Dribble feed correct records. Essentially send any record that hasn't had a recent update, as a verification message periodically/slowly. If the d... | 0 | 1 | 848 | 2019-02-12T23:07:09.733 | database_errors | softwareengineering.stackexchange.com | |
124,886 | Do you find references invisible when you scan code, and are there any coding guidelines for their usage? | I have developed a habit of using safe C++ constructs where possible, but there is one place where I'm always not sure if it's better to use references or resort to good ol' pointers. Example code: [CODE] Later in code: [CODE] The problem with this, IMHO, is that the ptr appears to be read only variable when looking at... | The problem with your code sample isn't that you take a reference, it's that you use a return code. In C++, if the operation fails, throw an exception, or if that isn't unusual, then use [CODE] , or even [CODE] . Your code is very C and not C++ at all. | 3 | 4 | 300 | 2011-12-13T18:42:11.863 | api_errors | softwareengineering.stackexchange.com | |
20,361 | Why is my postmaster process (sometimes) becoming unmanageable after a WAL base restore? | TL;DR: Un-stoppable, unusable postmaster is being spawned when Postgres is started right after restoring its data directory from a WAL base backup. Why? Context: We run postgresql 8.4, on CentOS 6, using the PGDG packages. We have a script for use on developer test environments that restores a nightly backup of our pro... | In general if you are seeing problems of this sort, it may be best to take them up on the pgsql-bugs list. People there can help figure out what information to gather to help determine what the scope of this misbehavior is and help fix it for you. Also 8.4.11 to 8.4.12 wal restore should work just fine. If this is only... | 3 | 2 | 3,571 | 2012-07-03T21:01:45.637 | hadoop_errors | dba.stackexchange.com | |
53,307 | How to tackle a multilabel classification problem | I am trying to build a LSTM model for a multiclass classification problem on textual data. Until now, I have only built a model when one input belongs to one of the categories. What do I do when one input can belong to more than one class (i.e.: one entry of data can belong to 2-3 categories)? Can anyone help me with s... | LSTMs, like any other neural net, implicitly support multi-label classification. You should ensure that your output layer has $n$ neurons, one for each class, and you should use logistic activation rather than softmax activation (which is typically used for the final layer in multi-class problems). Each neuron $N_i$ in... | 0 | 1 | 1,962 | 2019-06-06T07:29:50.903 | data_quality | datascience.stackexchange.com | |
63,490 | Relational modeled design to store versioned files | The scenario I have images in a database table and some of these need to be altered then re-saved(not overwriting the original) whilst providing a reference back to the original. I also save the directory path which the images are stored, if a original image is stored in dir : 1, the altered version of this exact image... | Your Altered_Files design is absolutely fine. In fact I would award bonus points for separating the files per se from the hierarchy. @chillworld's suggestion is workable and very common but yours is better because of the [CODE] issues you mention. I can't think of any update which is better in one schema or the other. ... | 3 | 1 | 537 | 2014-04-18T21:45:57.893 | warehouse_errors | dba.stackexchange.com | |
81,386 | How can i make dump of big mysql table? | I have server with db(36Gb data), only mysql access. When i'm trying to use mysqldump utility, i get connection timeout(or something like this). I doesn't have ssh access for copy /var/mysql/data. It's a production server and i want copy data without any loads on server CPU/IOdisk. Now i have only one solution. Read ba... | You might try mydumper which is multi-threaded whereas mysqldump is single-threaded. Percona have also improved the less locking feature in the most recent version. The excellent Mysql Performance Blog has this useful article . | 1 | 2 | 246 | 2014-10-29T14:32:17.900 | database_errors | dba.stackexchange.com | |
1,025,468 | An active directory domain controller ad dc for the domain could not be contacted | i have create a domain in Windows Server 2019 but the client can't connect . both pc are connected via VPN . [CODE] and i got this error | Point your clients (and servers) DNS Servers (TCP/IP Settings) to the correct server. DNS is the foundation of everything in ActiveDirectory and your client uses "1.1.1.1" as DNS, which is a cloudflare DNS-Server. I doubt cloudflare has a copy of your private AD DNS Zone. All AD clients (includes AD DCs) must have work... | 1 | 2 | 87 | 2020-07-16T12:08:09.803 | infrastructure | serverfault.com | |
257,895 | Reported bandwidth usage differs between iproute2 and ifconfig | My group has a server set up to image our workstations using FOG . I was a bit curious to see how much bandwidth we were using. When I run [CODE] , the TX/RX lines read [CODE] But when I run [CODE] , the equivalent output is [CODE] Which corresponds to a TX/RX of about 1.8/2.6 GiB. What is causing the discrepancy betwe... | I was able to find some [CODE] documentation which shed some light on the issue. Thanks to Jonathan Ross's answer , I learned that [CODE] pulls its data from [CODE] . In the [CODE] docs, it appears that the bandwidth counter in [CODE] "wraps when the maximal length of the natural data type on the architecture is exceed... | 1 | 2 | 2,020 | 2011-04-10T09:19:50.213 | infrastructure | serverfault.com | |
304,430 | OpenVPN redirect-gateway does not work on Windows 7? | i have set up openvpn, and it works. pinging from client to server and backwards works just fine. but now i wanted to redirect all the clients traffic through the vpn. so i did the following steps as mentioned in the docs. on serverside: in server.conf i put push "redirect-gateway def1" and i enabled routing via iptabl... | In my experience, you need to run OpenVPN (or OpenVPN GUI, depending on how you're invoking it) with full Admin permissions. The redirect-gateway directive basically modifies the routing table, so OpenVPN is going to require elevated privileges to do that. Ignore the 10.8.0.5. That's OpenVPN's point-to-point-ness showi... | 4 | 4 | 5,905 | 2011-08-24T09:24:22.560 | infrastructure | serverfault.com | |
574,460 | FTP partial uploads on IIS8 | I set up a new FTP server on Windows Server 2012 with IIS 8. When I upload an entire directory, many of the files are cut off and don't match the original file size. I haven't really compared them all but it seems like it might always be 2KB off. If I re-upload that individual file, it will work most of the time. Here ... | After speaking with my web host (Rackspace), they determined it was an incorrect setting on my NIC driver. TCP Checksum Offload was enabled and my truncation problems went away after disabling it. More info here: http://social.technet.microsoft.com/Forums/windows/en-US/7d129406-0602-4705-bf1f-7408d9f03846/tcp-checksum-... | 4 | 3 | 2,024 | 2014-02-10T13:58:36.597 | infrastructure | serverfault.com | |
21,468 | employee record data model | I am new to mysql and I have created a data model for keeping employee record. I am using relationship, Please tell me is this data model is correct as i want. I am also including EER diagram. This is EER diagram : I want to achieve this points from my database: An employee record with their address, contact number, de... | Without knowing the business rules it is generally hard to judge if a model is valid or not. However, here are some quick points: 1-Address relationship to employee should be reversed. An employee could have several addresses. Your address modeling may be valid if you are referring here to work address where multiple e... | 2 | 0 | 11,494 | 2012-07-24T06:33:06.583 | database_errors | dba.stackexchange.com | |
682,585 | Linux Red-hat 6 Network manger interface priority | I have a question regarding RedHat 6 Enterprise Network Manager (NM): My Linux is connected to two network interfaces. 1 – eth0: Normal Ethernet which is connected to the company LAN 2 – eth1: An USB dongle which is connected to a cellular network (CDC-ECM) eth0 interface is always connected and eth1 interface is non-p... | Edit: Add OP's solution from comments: Remove eth0 (wired) from NM NM_CONTROLLED=no Left eth1 (wireless) controlled. The default when NM_CONTROLLED is omitted Set eth1 METRIC=20 Produces 2 default routes where eth1 takes precedence Answer: Network Manager may always choose wireless or wired as primary (based on other q... | 1 | 0 | 8,099 | 2015-04-14T12:54:28.700 | infrastructure | serverfault.com | |
836,266 | How can I enable remote access to the Admin page in CUPS | I'm looking to get access to the admin page of the CUPS web interface. I can reach the page, and I can browse the majority of the site, but sadly the Admin page is still locked from remote sources. I did set [CODE] and also tried [CODE] everywhere now, and still I can't access the page. What am I missing? Config file [... | What I would do is at the following block below the [CODE] tag: [CODE] For admin access specifically, the vanilla config normally has: [CODE] In order to create a suitable user account, you just need to create a user that is a member of the [CODE] group (I would recommend you do require some kind auth for the admin sec... | 15 | 12 | 73,615 | 2017-03-04T12:37:08.353 | pipeline_ops | serverfault.com | |
148,882 | Fuzzy search for a sub-string without tokens | Let's say I have the following lines: [CODE] There's supposed to be a tag in each line enclosed in parenthesis. But as you can see the data is very dirty and there's extra spaces inside tags, missing parents, misspelled tags, etc. How would I identify the lines containing "(tag)" or something similar? The output I woul... | I will answer my own question with these links: http://codehost.wordpress.com/2011/09/13/fuzzy-substring-matching/ http://ginstrom.com/scribbles/2007/12/01/fuzzy-substring-matching-with-levenshtein-distance-in-python/ The second link contains the following function: [CODE] The output is: [CODE] | 1 | 0 | 453 | 2012-05-16T16:52:49.323 | api_errors | softwareengineering.stackexchange.com | |
2,466 | Dimension reduction for logical arrays | I have measurements of 4 devices at two different points of time. A measurement basically consists of an array of ones and zeros corresponding to a bit value at the corresponding location: [CODE] I assume that for a specific device the changes between time 1 and 2 of the measurements are unique. However, since I am dea... | Standard PCA only sees your data as real values and hence doesn't really provide the best low rank approximation. There exist versions of PCA designed for boolean data types. Personally I think the best paper covering the whole broad topic of generalised PCA is Generalized Low Rank Models . In section 5.2 they specific... | 3 | 1 | 157 | 2014-11-14T08:53:21.510 | data_quality | datascience.stackexchange.com | |
426,569 | Minimize volume of cylinder that covers a clusters, with constraints | A few hours ago I turned in my entrance exam, and i am very curious about this last problem. Given a cluster of stars each x, y, z range between -1000 to 1000. No four stars are coplanar. Find the minimum volume of a cylinder that covers all stars, the cylinder can be in any direction. At least 1 base of the cylinder m... | Let me start by pointing out the errors in the two algorithms you described: In both algorithmic scetches, there is the same error of assuming the maximum pairwise distance of the points in the 2D plane would be the diameter of the smallest enclosing circle. Looking at just three points, it should be clear why this is ... | 1 | 1 | 134 | 2021-05-20T10:17:38.237 | data_quality | softwareengineering.stackexchange.com | |
5,630 | What is an advantage or disadvantage for not upgrading database server? | I have a legacy database server. The person who wrote it is long gone. There is no documentation at all just some comments in the code. Luckily, it is not that complicate but if I want to fix it (requests from users), it takes time to investigate all related database objects (tables, views, or stored procedures). Recen... | If you don't: it will be unmaintainable at some point because of OS, version, patch, whatever hardware failure may force an upgrade at the wrong time What you gain: older code can be simplified with new constructs (eg ROW_NUMBER) far better error handling (TRY/CATCH) engine improvements: most queries will run quicker o... | 6 | 7 | 668 | 2011-09-11T15:19:16.070 | database_errors | dba.stackexchange.com | |
205,701 | How to safely update a server software (without a risk to lose the data in the database)? | I'm going to use a server running Ubuntu Linux or CentOS for my projects. The server will not be managed by the hosting company, I will manage it myselff. I have been working with Ubuntu and CentOS for a few years now, so it is comfortable for me to do administrative tasks on this kind of servers. But I am doubtful abo... | Backups. Do scheduled backups. Test your restores. Take the site down when you do updates. If you can't do that, re-architect it so that a single server going out of service won't impact your site, and then just roll the updates out one server at a time. Step 4 won't be easy. | 1 | 5 | 649 | 2010-11-24T19:03:53.803 | database_errors | serverfault.com | |
126,513 | Form screenshot for legal proof of clicking one of the checkboxes? | We got a request from one of our customers, and since I've never encountered such a request before, I don't even know where to start looking. Our customer is a network of colleges, and we're building them a site. On that site, among other things, will be a form which potential applicants can fill out in order to get mo... | I have never heard of something like that, and it would be ridiculous, because a fake screenshot can be produced just as easily as a fake value in a database. EDIT Besides, I mean, WTF? since you cannot get a screenshot of someone's screen over the web, you will obviously have to reconstruct the page on the server and ... | 45 | 75 | 6,524 | 2011-12-22T11:39:48.293 | api_errors | softwareengineering.stackexchange.com | |
620,703 | SSHD real-ip behind haproxy | I'm trying to setup an ssh over https connection using haproxy. I'm currently looking for a way for SSHD to get the source ip from haproxy, similar to reading [CODE] or [CODE] headers. client config; [CODE] client output; [CODE] server config; [CODE] server output; [CODE] The [CODE] line in haproxy.cfg is causing the [... | In [CODE] , you neet tproxy to pass the original client IP to the server behind [CODE] . The linked article has a lot of technical background, most of which is not a problem anymore - recent versions of Linux and [CODE] will most likely support tproxy out of the box. TL;DR in the backend section, try [CODE] | 5 | 3 | 7,547 | 2014-08-15T13:58:31.737 | infrastructure | serverfault.com | |
149,445 | Implementing Bulk Update feature and its trade offs | The feature to implement is to allow a user to select items and apply data update in bulk. It is very similar to JIRA's ability to bulk update a list of selected issues . In my case: I iterate over the items, and for each item, I simply call the existing method used for individually updating an item. Take note, I canno... | You certainly can use SQL and bulk updates is one of those areas in which it can be a superior solution (in terms of performance) than an ORM layer or firing of multiple small updates (with an overriding Transaction). It's the cost of lots of networks calls vs a larger update statement. You need to measure the performa... | 1 | 3 | 612 | 2012-05-21T05:27:32.307 | api_errors | softwareengineering.stackexchange.com | |
74,675 | Finding rows with duplicate values | I have a one to many relationship between the [CODE] table and a [CODE] table. One account can have many payments but there should be a maximum of one payment per day. Although unlikely, there are two scenarios which I need to cater for... If there is one or more [CODE] records for an [CODE] on a day, with different pa... | This should return tag the records that need attention. I put the tagging in SELECT, but you could easily turn this into a second CTE and simply select out the payments to clean up. [CODE] | 2 | 1 | 161 | 2014-08-22T13:52:40.827 | data_quality | dba.stackexchange.com | |
274,766 | How to avoid errors in server log when conflict fails within a transaction before retry? | We have a table such as [CODE] where the logical intent is to keep a collection of web pages where the full URL for each page is constructed from [CODE] fields defined by [CODE] references. Root of the system points to itself with [CODE] . As such, any given child must have unique shortname per parent (constraint local... | You have two unique constraints, and you say that the one on [CODE] causes an error only rarely. So use [CODE] Then check if you got an error and how many rows were inserted. if you got an error, prompt the user for a new [CODE] if no row was inserted, generate a new [CODE] Then you will only get error messages about d... | 1 | 1 | 246 | 2020-09-01T12:52:53.293 | data_quality | dba.stackexchange.com | |
1,019,317 | Receiving RTMPS stream on NGINX-RTMP | Standard practice for RTMP is still to have a plain text stream key out on the wires. I want to acccept RTMPS streams from encoders to NGINX however the RTMP module does not yet have RTMPS. I'm not interested in all the relay solutions to allow taking an RTMP stream and sending to a place like facebook over RTMPS becau... | UPDATE: This is my original answer that describes pretty well the issues one may face while implementing RTMPS with Nginx. However, I've added an improved version for more fine-tuned access control, and I recommend using the configuration from it, instead. Yes, this is possible with stunnel, as RTMPS is just a RTMP ses... | 6 | 5 | 18,822 | 2020-05-30T11:47:25.753 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.