question_id int64 | title string | question_body string | answer_body string | tags string | question_score int64 | answer_score int64 | view_count int64 | creation_date string | category string | source_site string |
|---|---|---|---|---|---|---|---|---|---|---|
133,148 | Need help with algorithm for sorting list | The answer is probably obvious but not to me at this moment, so I was wondering if somebody who is better with sorting algorithms can help lead me in the right direction. This is not homework, I am legitimately trying to work within an existing design for something work related. Essentially I start with an unordered li... | The obvious approach is to walk the tree depth first, taking children of each node in order of their timestamp. That is the order you want. Building the tree and than iterating it will obviously save you time, but you can just take all entries with given parent pointer while testing. Alternatively you could define the ... | 1 | 1 | 546 | 2012-02-03T12:52:22.700 | api_errors | softwareengineering.stackexchange.com | |
194,386 | How can I ensure a method is called only once when using a API? | In general, if I am using an API whose methods have side-effects that I only want to occur once, how can I guarantee that my own application only calls them once even if an error occurs before it can register a response? For example, if I am calling a payment processing API once each month for a subscription service, h... | The first thing to do is to write a flag to disk before you start the transaction to indicate that this month's transaction has been attempted. That way you never accidentally call the API twice. In the case of any kind of error, you need to make sure the system notifies a human (e.g. send an email) who can verify the ... | 6 | 5 | 4,801 | 2013-04-09T06:22:30.227 | api_errors | softwareengineering.stackexchange.com | |
29,942 | XAMPP on Windows - Permission Problems? | Trying to set up Apache/PHP/MySQL development on my Vista laptop, so I thought XAMPP would be a quick and easy solution. I have this vhost: [CODE] in httpd.conf I am including it [CODE] but I'm always getting this error when I visit miai.local: [CODE] If I set up the virtualhost to read from C:\xampp\htdocs\xxxx\web in... | Ah, the answer was my virtualhost was bad. Needed a directory, uh ... directive..: [CODE] | 1 | 1 | 17,972 | 2009-06-22T19:50:00.767 | database_errors | serverfault.com | |
706,292 | Monitoring processes/services by Zabbix by using SNMP | I try to monitor around 60 servers by using Zabbix 2.2 and SNMP. I'm able monitor a lot of values but I'm facing one issue relating to identification status of processes on linux servers. When the service is up and running I'm able to collect data via SNMP by using OID: [CODE] Problem is when the service is down. Zabbi... | So I little elaborate in this and I decided to develop something by myself. It's script in bash something like this [CODE] Create the .sh script in proper externalscript directory. Set up the variables inside the script. Create item in Zabbix WebUI with following parameters: Name : fill according your needs Type : Exte... | 2 | 1 | 3,758 | 2015-07-16T15:47:24.900 | pipeline_ops | serverfault.com | |
71,321 | Compiling mcrypt on OSX 10.6 (Snow Leopard) | I'm trying to compile mcrypt-2.6.8 on OSX 10.6 ./configure --with-prefix=/opt/local/mcrypt ... configure: error: "You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/" I have successfully compiled mhash. It's located on /opt/local/mhash. Unfortunately the linker doesn't seem to find the libra... | I found that I was able to get this working by changing the rfc2440.c source itself. Since my malloc.h file was located in [CODE] , I changed the line from [CODE] to [CODE] and compiled. There were no compiler errors, and it installed fine with [CODE] afterward (technically, [CODE] ). | 1 | 4 | 4,818 | 2009-10-05T12:47:47.320 | infrastructure | serverfault.com | |
318,518 | nginx virtual hosting wildcards | I have one ip number to use, 1.2.3.4 and want to share it with several domains. I have site1.com separate, but the other domains I have a script to display content based on the domain. I've moved to a new server, and I'm using nginx 1.0.6. This worked as desired on the old server with nginx 0.8.54. The problem is all d... | Either move your fallback [CODE] block above the block with specific domains, or change your [CODE] to [CODE] . | 1 | 3 | 172 | 2011-10-04T22:28:10.557 | infrastructure | serverfault.com | |
678,562 | Does TCP's MSS hide a mismatched intra-LAN MTU? | I'm trying to understand how mismatched MTUs behave in a network. Suppose two hosts are able to talk to each other through an Ethernet-based network. The network and host A are configured for jumbo frames up to but not including a switch on the LAN host B lies on and host B itself. From what I understand regarding TCP,... | TCP does path MTU discovery to avoid fragmentation which can result in increased packet loss. Applications using UDP have two choices. They can just permit their datagrams to fragment. In that case, they won't get dropped, but if any fragments happen to get dropped, the entire datagram will not be received. This can ma... | 1 | 1 | 327 | 2015-03-26T20:07:06.303 | infrastructure | serverfault.com | |
148,883 | Reducing complexity of our custom framework | At our company, we have a custom software application using our own framework. The framework was built in approximately 2002 or 2003, long before I showed up at the company. Majority of the functions in the framework are solid so we still use them as we've never had any issues with them, I'm talking about the database ... | I'm going to answer in a general way, not addressing any PHP specific issues. The root of the problem is that your team has grown from 1 developer to 6 developers. As each new developer approaches the code base, s/he will see ways to innovate with the code and to use the structure in ways you didn't anticipate. Also - ... | 1 | 0 | 270 | 2012-05-16T16:55:24.127 | api_errors | softwareengineering.stackexchange.com | |
870,095 | Is it better practice to buy RAID disks individually vs. in bulk? | This may sound like an odd question, but it's generated some spirited discussion with some of my colleagues. Consider a moderately sized RAID array consisting of something like eight or twelve disks. When buying the initial batch of disks, or buying replacements to enlarge the array or refresh the hardware, there are t... | In practice, people who buy from enterprise vendors (HPE, Dell, etc.) do not worry about this . Drives sourced by these vendors are already spread across multiple manufacturers under the same part number. An HP disk under a particular SKU may be HGST or Seagate or Western Digital. Same HP part number, variation on manu... | 98 | 56 | 12,561 | 2017-08-23T16:01:38.937 | infrastructure | serverfault.com | |
62,639 | Mongodb crash after multiple query attempts | Every once in a while our mongo service crashes () after displaying log of multiple messages like this: [CODE] If I understand correctly, the "numYields" means that it has tried "numYields" times to run the query, but yielded. However, I don't know which process might be blocking it, and not why it is crashing. Any ide... | That query is simply a long running read, without any criteria (so it is running against all data). As it fetches back the data, it will be done in batches (based on your batch size) and then issue a [CODE] on the same cursor for the next set of results. The [CODE] count does not mean the query is being blocked, it mea... | 1 | 2 | 1,183 | 2014-04-06T07:57:12.563 | database_errors | dba.stackexchange.com | |
268,333 | Alternative to SQL Server Management Studio and Azure Data Studio to initially change my password | Background I'm having to connect to a customer's Microsoft SQL Server. I generally don't need to do much in databases besides your average SQL, so using the database features in IntelliJ IDEA have so far been more than sufficient for various PostgreSQL and Orcacle databases. In this case though I was given a heads-up t... | Use SQLCMD for MacOS with the [CODE] parameter for this. | 1 | 3 | 942 | 2020-06-02T01:28:49.947 | data_quality | dba.stackexchange.com | |
59,714 | how determine the best path that satisfies a condition | [CODE] having this sample data, how could i determine the rows that maximize the sum of the values ? Having the following conditions: one percentage per id only the sum of the percentages must be 100 there is two possible solutions: [CODE] but it matters only the last one. | Congratulations, you have a subset sum problem! It's an NP-complete problem. Arriving at the solution is going to call for brute force. i.e. Generate and test all possible subsets. WARNING: This may involve the sketchy Cartesian products your mother warned you about. Depending on the size of your actual data domain, in... | 1 | 2 | 93 | 2014-02-26T15:09:23.920 | warehouse_errors | dba.stackexchange.com | |
216,638 | IO Statistics for Index Seek | Does Statistics IO (Logical/Physical Reads) include index pages that are not leaf-level? The following example is lifted directly from this old post from Gail Shaw: https://sqlinthewild.co.za/index.php/2009/03/05/when-is-a-seek-actually-a-scan/ [CODE] --Statistics IO output for Query 1 (500000 row(s) affected) Table 'T... | Yes, the logical reads include non-leaf level index pages. For the index scan in the first query, the first logical page is located by traversing the b-tree to find the first index leaf page, followed by a scan of the entire index in logical order. These stats include the 2 non-leaf pages and all index leaf pages. For ... | 2 | 2 | 204 | 2018-09-04T08:32:27.987 | database_errors | dba.stackexchange.com | |
186,074 | Strange ssh key issue | Scenario 1. I am doing this from /home/deploy directory I am trying to set up ssh with github for capistrano deployment. this has been an absolute nightmare. when I do ssh git@github.com as the deploy account I get Permission denied (publickey). so may be the key is not being found, so If I do a ssh-add /home/deploy/.s... | Is it possible that you are by default trying to add to the system's ssh-agent and you don't have permission? or it just isn't be launched at all? Github has a page on having ssh-agent launch on login, did you give this a look? http://help.github.com/working-with-key-passphrases/ | 0 | 0 | 575 | 2010-09-30T03:57:06.490 | api_errors | serverfault.com | |
36,679 | nslookup Failure | I'm trying to figure out why nslookup can't find a local host name. CONFIGURATION I'm trying to setup an authoritative nameserver, working from "DNS and BIND", running bind9, on Debian 5.0, in a chroot "jail". bind seems to start okay, as there are no error messages in syslog. hostname reports "workshop.example.net", h... | QUERY What could be going wrong here? A couple of things are conspiring against you. :-( The file /etc/resolv.conf could be a problem; its domain line gets set to an inappropriate value when I reboot. How is your [CODE] being created/populated? My guess is that your IP address is being assigned by a DHCP server. As par... | 4 | 4 | 19,503 | 2009-07-06T22:21:25.390 | infrastructure | serverfault.com | |
335,352 | Remote Desktop Session Broker + Folder Redirection: How to deal with Administrator accounts? | We are having a bunch of Windows Server 2008 R2 in a Remote Desktop Session Broker farm to allow access for our employees to a company Remote Desktop. Furthermore folder redirection and roaming profiles are enabled via Group Policy. How do I handle the Administrator accounts in such a setup? If I only login with my Dom... | If I only login with my Domain Administrator account is is always redirected to one machine. Use the [CODE] switch when starting the remote desktop client. When connecting with that you will be immune to the session broker trying to balance the load on the servers. Furthermore folder redirection and roaming profiles ar... | 1 | 3 | 892 | 2011-11-28T07:53:14.947 | infrastructure | serverfault.com | |
460,902 | A brand new VPS with high system overhead for RAM. Should I worry? | Possible Duplicate: Why is Linux reporting “free” memory strangely? I recently bought a cloud VPS (CentOS 5.8 x64) with 1024MB RAM from one of the hosting providers. It's managed and has whm/cpanel and stuff installed. The server was just set up for me yesterday so I haven't used it in any way other than logging in and... | Your 'usable' ram should be 137+24+272 = ~435 [margin of error] (Read 1st comment below by Peter) In [CODE] line [CODE] column, that 435M is "hold" by kernel but available when program request them. In terms of memory usage is about right, if following is true mysql is running with Innodb enabled apache2 is running wit... | -1 | 0 | 236 | 2012-12-26T04:50:10.940 | data_quality | serverfault.com | |
320,112 | Truncate partition failure - "Cannot specify partition number in the truncate table statement as the table is not partitioned." | I've got a table named "events" in environment Azure SQL server Paas 2019. I've created a partition on that table to delete old records. I am getting an error when i try to truncate the partition. Error: Cannot specify partition number in the truncate table statement as the table 'dbo.SagaEvents' is not partitioned. Ho... | A requirement for partition level [CODE] (and [CODE] ) is the table and non-clustered indexes must be aligned (partitioned using the same underlying function). In your case, the non-clustered index is partitioned but the clustered index is not partitioned, hence the error message telling you the table is not partitione... | 0 | 3 | 715 | 2022-11-23T12:43:50.493 | database_errors | dba.stackexchange.com | |
980,346 | Can't get search query to work for Azure blob metadata fields | I have a blob container in a storage account where each blob is an image. I've added "w" and "h" metadata fields to each blob containing the width and height of the image. I've followed the instructions here to add a search service to the blob store except I added the metadata and not the blob content. I can confirm th... | There is a similar query discussion on the MSDN forum, you may refer to the suggestion mentioned in this link . | 1 | 1 | 842 | 2019-08-22T15:18:32.977 | pipeline_ops | serverfault.com | |
485,340 | Revision control of sensitive configuration files | Consider a file with user-read-only permissions, for example ... [CODE] How can such a file be put under revision control, so that its contents remain secret, even from the revision control administrator? | Use GPG to encrypt the file before commiting to your repo. Yes, it's cumbersome (you won't be able to diff/merge/etc. without decrypting first) but I can't conceive of any other way to skin this cat. | 2 | 7 | 143 | 2013-03-06T19:03:16.430 | infrastructure | serverfault.com | |
276,398 | Lucene vs Solr - Indexing pdf/word documents reisiding on a NAS drive using .Net | Using ASP.Net, I want to implement full text search using Lucene/Solr on a LARGE number of docs (word, pdf etc.) residing in a directory on a NAS drive. The NAS drive would be mapped as a network drive on the server. The list of documents get changed frequently. As per my research, Lucene doesnot index pdf/word docs di... | Yes, Solr supports out-of-the box (well, after a bit of configuration, see the examples from version 4.9 onwards) PDF and Word documents. The thing to note is that Solr != Lucene. Solr is a higher level abstraction over Lucene, and as such it has a different API, features and behaviour. IMHO, the difference between Sol... | 0 | 3 | 1,229 | 2015-03-16T05:16:06.283 | api_errors | softwareengineering.stackexchange.com | |
18,097 | How to select/count rows where the same value exists in a column but not in other column all at the same table | I have this table structure and data: [CODE] I need to get only the rows where the value is on the left but not on the right, meaning for example: 1,2 and 2,1 will not be selected but 1,3 and 1,4 yes. I try this query: [CODE] Maybe I don't understand what Subqueries mean or I'm using in the wrong way. So any help? | [CODE] I loaded you sample data (I added an additional index) [CODE] Here is the result of my answer [CODE] Give it a Try !!! [CODE] | 4 | 5 | 49,674 | 2012-05-17T18:55:57.190 | warehouse_errors | dba.stackexchange.com | |
178,143 | using Linux vncviewer | when i am connecting to VNC server using wine on linux $ wine vncviewer.exe i have to enter: VNC Server: 1.1.1.21 Proxy/Reapeter: 195.29.18.33:1234 and then, when i connect, on top there is txt: 1.1.1.21:5900 (195.29.18.33:1234) mine question is: how to connect using vncviewer ? what to put in VNC_VIA_CMD ? $ export xl... | Have you tried: [CODE] ...instead? Order matters in Linux. | 0 | 0 | 1,426 | 2010-09-04T20:39:02.817 | api_errors | serverfault.com | |
145,088 | Can I write SELECT query which returns table name after FROM keyword? | I query a table which has another table name in one column. I must get that column value for searching that table. To do that I try something like this; [CODE] Inner Select statement returns table3 name. But this does not working. Can I write something like that or should I use Pl/Sql for that. I am using something lik... | If you have a somewhat limited number of tables that could be returned by the query, you could have the query select from all of them, but only return results for the one matching the data returned by the table1/table2 query. That would look something like this: [CODE] If the number of tables is too long then you'll ne... | 1 | 1 | 14,520 | 2016-07-27T13:01:47.223 | warehouse_errors | dba.stackexchange.com | |
881,129 | Get Message Tracking Log Without CC | I'm trying to figure out how to track email sent one by one without CC-ing any group or user only single recipients. I have this script but show all emails including CC, is there anything I am missing? [CODE] | The [CODE] that you want to filter by only appears to be included on the [CODE] [CODE] . [CODE] | 2 | 1 | 956 | 2017-10-31T07:53:46.233 | infrastructure | serverfault.com | |
458,974 | recipient_delimiter in MS-Exchange | Most UNIX mail server support recipient delimiters behind a plus sign in email addresses. [CODE] In the above example "everything" could be any string, and the mail should get into the mail box of the user "user". In postfix it is called recipient_delimiter: http://www.postfix.org/postconf.5.html#recipient_delimiter Is... | Nope - Exchange 2010 doesn't support this out of the box. It probably wouldn't be too hard to add this as a transport agent with some programming. Though, what do you use this for actually? The postfix documentation is rather vague and it seems to mean that postfix would try the addresses "user+everything", "user" and ... | 0 | 0 | 1,028 | 2012-12-18T08:54:01.260 | infrastructure | serverfault.com | |
317,540 | message 'The Distributor has not been installed correctly' | I get the message The Distributor has not been installed correctly Could not enable database for publishing when trying to execute [CODE] . The publisher (which is on separate server from distributor) is shown correctly when I run [CODE] but if I run [CODE] from the publisher all fields are null | First you make sure you connect to your distributor server with [server\instance] from you publisher server. Also you need to set up all the replication accounts and make sure they have the right permissions and you need to create the distribution database in your distributor_server there is this script as an example: ... | 0 | 0 | 641 | 2022-09-28T15:33:51.480 | warehouse_errors | dba.stackexchange.com | |
568,316 | Getting error 421 4.3.2 All server ports are busy | I am running postfix on debian wheezy with Dovecot and I had spam issues with a php script . after finding and removing the script I am unable to send any mails from squirrel mail from my browser. I get ERROR: Message not sent. Server replied: Service not available, closing channel 421 4.3.2 All server ports are busy H... | From the data that you provided it looks like you have enabled postscreen but it is not properly configured. The best option is to disable it for now to check if this helps. Please us this howto to disable it. Also from the provided [CODE] it looks like you don't have an MTA(dovecot) configured in postfix. Please add d... | 2 | 3 | 9,172 | 2014-01-19T09:30:43.200 | infrastructure | serverfault.com | |
477,820 | Recommendations: configuring a 10GbE NAS stack for virtualisation storage | I'll try as hard as I can to word this so it is not considered a shopping list. We have been successfully running a dev/test ESXi environment for some time, with a couple of Dell PE2950III servers over an HP MSA2012fc Starter Kit (with the Brocade-based HP Class B SAN switch). This has worked very well for us, but bein... | I understand the desire to move away from pure block storage to something more flexible. However, I would avoid using a straight-up Linux storage stack for this when several storage appliance software offerings are available right now. A Linux approach could work, but the lack of management features/support, the XFS tu... | 7 | 9 | 1,337 | 2013-02-11T23:17:58.233 | api_errors | serverfault.com | |
119,864 | Can't create database in SQL Server Express 2005 | One of our clients is running Windows Small Business Server 2011, and they have a SQL 2005 Server Express instance (and several other versions also installed). Using Management Studio, running as administrator, I cannot seem to create any databases. The error I get is: Could not obtain exclusive lock on database 'model... | I don't really think the problem is creating the database with model as active database as Reaces mentioned in this answer . It is possible to create a new database using [CODE] The issue might be some process or session holding lock on the model database and the [CODE] statement not able to acquire the exclusive lock ... | 1 | 2 | 830 | 2015-11-02T18:43:19.417 | database_errors | dba.stackexchange.com | |
98,680 | What is Oracle's commitment to Java? | We are investing heavily in Java, but after recent experiences and reading Joonas' response on that question: Had you used those flags in Java 6, you could have experienced not only crashes, but incorrect execution of loops, that is, miscalculations, because of a minor upgrade from 6u19 to 6u20 (approximately). ... and... | I sit on the Java SE/EE Executive Committee as the backup representative for the London Java User Group (aka the LJC). I also regularly talk to both the open source community folks (including Apache) and Oracle employees about OpenJDK, community relations and similar topics. I like to think I have a neutral view on thi... | 15 | 36 | 988 | 2011-08-04T17:53:10.420 | database_errors | softwareengineering.stackexchange.com | |
167,141 | Google's Infrastructure: Typical specs for their new hardware in mid-2010? | We're designing a distributed fault-tolerant virtual machine, and we're trying to determine the most cost-effective infrastructure setup. Google's infrastructure is famously built from lots of cheap computers that break down all the time (and is supposed to be very efficient from a cost per query perspective), and whil... | Just to contradict myself, I've worked out there is an accurate answer I can give to the final question. It's perhaps not very helpful, but it's accurate. Where do you find out specs for boxes at Google? In Google internal, company confidential documentation. As far as I'm aware, we don't give out that information. As ... | 0 | 3 | 734 | 2010-08-04T19:17:49.433 | infrastructure | serverfault.com | |
332,725 | Separating Business logic from DB-logic with transactions | We have three layers in our application. Service layer to provide an external API. BO layer for our business logic, and a DAO layer for our database connection. Let's say every time we update a File, we also want to change something in the Folder, for example 'last modified date'. This needs to be done in a transaction... | How you cut your transactions is indeed business logic. So let your DAO layer provide a db framework independent API for the [CODE] method you mentioned (and probably for things like [CODE] and [CODE] ). Then you can use it from your BO layer without making it dependent from your database or your db framework. | 12 | 5 | 3,314 | 2016-10-04T08:17:47.450 | api_errors | softwareengineering.stackexchange.com | |
190,829 | Debugging UPnP / DLNA via Wireshark | Is there any way to parse / interpret the XMLs sent as part of a DLNA / UPnP using Wireshark, or any other network sniffer? I can get the raw packets, but it would be nice to see them parsed, to make debugging easier. | look at this sample of PS3 XP http://www.braham.org/playfile.txt filter 'tcp.port == 2869 && http.response' and right click decode as HTTP all the http that has: 'Content-Type: text/xml' in their header show the xml just fine if you have code that send xml in http without say so in the header, it's not nice... (in the ... | 2 | 4 | 13,289 | 2010-10-14T08:32:59.047 | infrastructure | serverfault.com | |
403,041 | Multiple roles in user stories | This seems to be a common problem and, after reading these 2 questions What is best pratice for user stories containing two roles and User stories with multiple users/roles I'm still confused. In my case, my system will have reports and 3 roles: developer team leader CTO all of them can create and read reports, but dev... | One role per story is a reasonable goal. But that only requires you to break them up if your vocabulary sucks. What you need is a single name for the role the developer, the team lead, and the CTO play in the user story when they read the report. After all, roles are not job titles. If user doesn't work for this you ne... | 2 | 2 | 558 | 2019-12-28T17:06:07.450 | api_errors | softwareengineering.stackexchange.com | |
884,297 | Iptables prerouting rule not matched | I want to forward all the UDP packets addressed to port 1511 received on one interface (ens1) to a different machine (it is actually a docker container, but it shouldn't make any difference) at IP 172.17.0.6. I wrote this simple set of iptables rules (just an example): [CODE] my problem is that packets are not matched ... | This is more an hack than a solution, but the following works for me: [CODE] Basically it forces any UDP packet to appear as the first of a new connection, addressing the NAT behaviour described also by user2233709 | 0 | 0 | 1,433 | 2017-11-20T15:50:49.287 | pipeline_ops | serverfault.com | |
587,424 | SSH attacks, how do their usernames end up in auth.log? (pw auth disabled) | So this computer is reachable on port 22 (from everywhere). Since messages indicating failed login attempts (usernames like root, cgi, bash, production...) have been flooding /var/log/auth.log, I have disabled password authentication from external IPs (using public key authentication only). And this works, when trying ... | While you don't enter a username, if you are connecting from a linux/osx/bsd workstation the username is implicit (it defaults to the username you are logged in as), if you have windows and use putty try connecting without setting the Auto-login username, and present a key, it will ask for a username to try and match t... | 1 | 2 | 815 | 2014-04-08T10:55:11.300 | api_errors | serverfault.com | |
1,144,568 | WP cli command not running in crontab | I've encountered and issue adding wp cli commands to my crontab. The following works: [CODE] But the following doesnt: [CODE] I was wondering why it wont allow me to set a specific time to execute, wildcard values don't seem to be an issue. Im running the above in my root crontab. | As mentioned I am still a novice, but I found the solution. The issue was never the command but rather the crontab, even after changing my time zone on my server the crontab still made use of UTC time. To avoid a just adjust the crontab to execute at the appropriate UTC time as SAST is 2 hours ahead. | 0 | 0 | 104 | 2023-09-27T12:38:51.970 | infrastructure | serverfault.com | |
943,797 | -bash: fork: Cannot allocate memory on remote server | I have the great [CODE] error. Normall I would reboot. But that is not an option. Using only SSH can you imagine some trick I can use? [CODE] gives the error. [CODE] gives the error. [CODE] gives the error. I think there is nothing to do. But why not ask? | You can try to reboot your server the magic way. First, you must activate the magic SysRq option (if not already activated) [CODE] When you are ready to reboot the machine simply run the following: [CODE] | 0 | 3 | 917 | 2018-12-11T08:20:56.787 | infrastructure | serverfault.com | |
152,172 | Eliminate default SSL certificate | I'm setting up a server for local access. I created a CA and have SSL certs signed and working on other domains. The problem is I'm trying to create a cert for a domain name that is the same as the host name? I copied the steps to make the cert for the other domain, but when I create and sign this cert, and modify http... | This is pretty much the best way of doing it, the "default config" is more of guidelines then anything else. Most of my servers dont have anything remaining from the default config, and our virtual hosts all run the individual SSL for each website. As long as the SSL engine is on, and you have your SSL config in your v... | 1 | 1 | 285 | 2010-06-17T16:11:30.070 | api_errors | serverfault.com | |
748,206 | How to start and stop a libreswan connection | I have a connection configured on my libreswan instance on two machines. The connection start automatically when I start the pluto daemon, I have try other settings, but the connection also starts if I do a [CODE] and the service is up, however, I want it to remain disable until I explicitly tell it to be up [CODE] , i... | auto=ondemand means "trigger when there is a need for the tunnel based on a packet". So it will load and wait on the first packet, then bring up the tunnel. If you only want to bring it up manually, use auto=add. If you want to have it always on, use auto=start | 1 | 2 | 6,157 | 2016-01-11T13:02:11.777 | infrastructure | serverfault.com | |
693,462 | Stopping an Elasticsearch snapshot | We do nightly snapshots to S3. They normally take ~2hrs. I have one that has been running for 4 days now. I've tried to stop it with this command: [CODE] However, even that command hangs. So I let it run for a while, here's the full output: [CODE] Is there any other way to get this snapshot to stop? For reference, this... | I fixed it, albeit not the ideal way. Simply restarting one node at a time (simple two node cluster) has made the snapshot fail. Good news is due to the clustering nature, there was no downtime to the services that utilize ES. | 3 | 1 | 4,281 | 2015-05-20T23:34:37.867 | database_errors | serverfault.com | |
499,178 | Combining Nginx redirect rules | I've just migrated a Rails app from an Apache/Passenger server to a new Nginx/Unicorn server and I'm having some trouble getting the necessary redirects to work. So far the config (which was set up by someone else before me) is successfully redirecting visits to [CODE] to [CODE] The bit I'm having trouble with is redir... | After a bit of trial and error (with some help from [CODE] to make sure I didn't break anything) I finally got it working with this config: [CODE] | 0 | 0 | 214 | 2013-04-14T08:55:15.900 | infrastructure | serverfault.com | |
136,582 | Extensibility data model pattern | I was wondering how you'd be able to map the following criterias to common design patterns. I use PHP 5.3 and MySQL 5.5 and have my own mvc framework for my company but some parts could be better and here are the requirements: (Take the concept of a catalog since it's the first app that would be affected in our applica... | Don't do this through extension. You already have a sense for what a mess this can turn into. Compile-time extension can -very- easily lead to this kind of class explosion (You don't wanna extend Product once for every combination of extra properties the client needs). Instead, use runtime composition. A few relevant q... | 2 | 2 | 336 | 2012-02-23T16:58:26.243 | database_errors | softwareengineering.stackexchange.com | |
11,753 | Unknown program 'spark-itemsimilarity' chosen | I have cloudera CDH5 running inside a virtual box. when I try to run : [CODE] I get the error: [CODE] Do i have to install any additional package to run the spark-similarity? Any help would be appreciated ! | Spark support for Mahout came from Mahout 0.10 release while you are using 0.9 release. So this should explain why you get the [CODE] error. I would suggest using a higher version of Mahout. | 1 | 1 | 179 | 2016-05-13T18:29:47.550 | spark_errors | datascience.stackexchange.com | |
957,456 | What's the difference between bounce_queue_lifetime & maximal_queue_lifetime in postfix? | Based on postfix official manual, bounce_queue_lifetime Consider a bounce message as undeliverable, when delivery fails with a temporary error, and the time in the queue has reached the bounce_queue_lifetime limit. By default, this limit is the same as for regular mail. maximal_queue_lifetime Consider a message as unde... | I found another explanation http://www.postfix.org/TUNING_README.html [CODE] (default: 5 days) How long a message stays in the queue before it is sent back as undeliverable. Specify 0 for mail that should be returned immediately after the first unsuccessful delivery attempt. [CODE] (default: 5 days, available with Post... | 3 | 1 | 4,758 | 2019-03-09T01:49:17.477 | infrastructure | serverfault.com | |
139,999 | java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small | I got an email from a user when he sees the following error output when he's using our web site. java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "WEB_OWNER.SSFP_GET_WE_OBJ", line 300 ORA-06512: at line 1 [CODE] This is error from oracle webconnect, Oracl... | The problem is in the error and is common in all programming languages. Your variable is too small for the value you are putting in it. This is a common pl/sql exception. The easy way to keep this from happening is to anchor your pl/sql variables to columns. Do NOT do this variableName variableType(Variable length) If ... | 0 | 1 | 7,354 | 2010-05-09T14:24:15.987 | pipeline_ops | serverfault.com | |
727,700 | Server automatically redirecting despite lack of any noticeable redirects | We've just recently set up a new apache box to test with (for simplicity we'll call it internalIp). We have two produciton apache servers that we duplicated the setup from, and made the appropriate changes. Everything was working fine execpt when we hit the root of the box ( http://internalIp ) it redirects to http://i... | Browsers can keep a redirect cache, try to browse your website with chrome incognito or ie private browsing. Got this error a lot of time when using redirect 301 and remove them later. | 0 | 0 | 63 | 2015-10-08T19:26:16.237 | data_quality | serverfault.com | |
1,622 | Reuse of docker swarm containers for batch jobs | Docker compose allows for static stack description. But what if I have a set of containers based on same image but different by subtle environment configuration? Moreover, I don't need them all at once, they can be launched and disposed of sequentially. A quick shot would be to copy-paste the service, but a couple of d... | Correct me if I am wrong, but that is one of the reasons why docker orchestration tools exists like docker-swarm to be able to deploy multiple docker containers by using one command line. Create a service with 5 replica tasks (–replicas) Use the --replicas flag to set the number of replica tasks for a replicated servic... | 4 | 2 | 853 | 2017-07-29T06:33:46.527 | pipeline_ops | devops.stackexchange.com | |
29,062 | Debian 5 Display resolution out of range | After installing Debian 5 on a Dual-Core Xeon machine, my display connected to the NVIDIA Quadro FX display card shows me an "out of range" error after the boot-up completes. I see the terminal text (login prompt) though. This is mostly because my card is supplying a video signal of a higher resolution than 1024x768. H... | X11/Xorg are hard to deal with at the best of times. Now there are a couple things you can do. One would be to familiarize yourself with the Xorg and write a new config by hand . It may not sound like much fun, but you'll be better able to handle such issues in the future. Another option is to let dpkg re-create the de... | 1 | 1 | 3,785 | 2009-06-20T07:25:40.047 | infrastructure | serverfault.com | |
665,366 | How do I avoid showing skipped Ansible tasks? | The output of my playbooks are always completely swamped with useless output regarding which tasks have been skipped, which makes it annoying and time consuming to go through and find specific information I'm looking for. Here's an example of a playbook [CODE] And the associated output: [CODE] Almost all of that output... | I use another way without changing any code: Ansible use 'default' callback plugin to display output, but you can use 'skippy' callback plugin instead of 'default'. 'skippy' use 'default' except for skipped tasks. To use 'skipped' plugin, add following line (or uncomment it) in your ansible.cfg file: [CODE] To localize... | 16 | 14 | 27,938 | 2015-02-05T19:50:27.943 | pipeline_ops | serverfault.com | |
418,101 | Apache "Client denied by server configuration", despite allowing access to directory (vhost configuration) | in Apache on Ubuntu I've set up a vhost, but in the browser I keep getting a "403 Access forbidden" error; the log says " Client denied by server configuration: /home/remix/ ". Looking for the solution online I found many posts about the directory access (Allow from all, etc), but as far as I know I already did that. I... | Change your authorization configuration: [CODE] ...to the Apache 2.4 version of the same. [CODE] Review the upgrading overview document for information on other changes you might need to make - and be aware that most of the config examples and assistance that you find out there on Google (as well as on this site) is re... | 47 | 77 | 176,313 | 2012-08-16T08:24:42.397 | api_errors | serverfault.com | |
414,861 | How to test channel pipelines in Go | I use the "channel pipeline" pattern quite a lot in Go, which looks something like this: [CODE] The problem I repeatedly run into, is I have to test a number of different features of these pipeline functions: Puts a value on the output channel when you put one on the input channel Doesn't put a value on the output chan... | You are mixing two different concerns. If you made a separate abstraction for the pipeline, you could test that once. Something like (forgive syntax, I don't know go): [CODE] or [CODE] Without parametric polymorphism, you can't really make a fully generic [CODE] abstraction, so you have to accept a certain amount of du... | 3 | 2 | 1,034 | 2020-08-15T20:52:09.027 | pipeline_ops | softwareengineering.stackexchange.com | |
131,698 | How can I debug exceptions that are not easily reproducible and only occur in a production environment? | I am working on an issue where the exception only occurs in our production environment. I don't have access to these environments, nor do I know what this exception means. Looking at the error description, I'm unable to understand the cause. [CODE] Would someone please advise me on how to approach this kind of problem? | In general, better debug logging. Figure out what you want to know, add it to the code, and have that in the logs so that you can work it out. Capturing more details of the environment at the time also help - what request, when, etc. In specific, I would look for a common pattern in clients hitting this - and if you fo... | 9 | 18 | 554 | 2012-01-25T06:55:49.067 | api_errors | softwareengineering.stackexchange.com | |
265,893 | SQL Server - creating a clustered index in a large heap - should I add a column? | I'm going to add a clustered index to a fairly large table: over 7 million records 106 columns no PK no other indexes. There is an [CODE] column which could potentially be used for the index key, but it's [CODE] and [CODE] (although there are no duplicate values there). I'm however reluctant to use it because of its da... | Have been thinking of adding an INT identity(1,1) column and use it as the clustered index key Yes, this is a way to go Why - read below: Requirements for good clustered index: 1) Ever Increasing This will help to reduce index fragmentation in future 2) Unique If Clustered index key rows are not unique, additional hidd... | 3 | 6 | 319 | 2020-04-26T21:49:04.253 | data_quality | dba.stackexchange.com | |
332,325 | How to execute rskeymgmt utility silently in windows server 2008 | When i run reskeymgmt.exe - to create a backup copy of the encryption key, it responses "Are you sure want to extract the key from the Report Server? Yes (y)/ No (n)?" I found this link which helps me to automate the execution of reskeymgmt commmand in windows xp and server 2003. The suggestion looks like: [CODE] But w... | Per here , You could try using a pipe: [CODE] | 0 | 0 | 1,238 | 2011-07-30T02:25:14.067 | database_errors | serverfault.com | |
324,882 | Followed the instructions to enable htaccess on ubuntu 11 to no avail | So I've followed these instructions to setup htaccess on my ubuntu 11 https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles and yet I'm not able to get a directory with an .htaccess file containing the text "Options +Indexes" to list directories when viewed in the browser. So what gives? Or perhaps there a... | Extraction from functional conf [CODE] | 0 | 0 | 260 | 2011-10-26T11:11:41.993 | infrastructure | serverfault.com | |
18,196 | Can the K3s installed Traefik be updated independently through helm? | If k3s installs traefik and flags it as a helm chart , can it be updated through helm? When I run the commands below, [CODE] I get the following Error: UPGRADE FAILED: resource mapping not found for name: "traefik-dashboard" namespace: "kube-system" from "": no matches for kind "IngressRoute" in version "traefik.io/v1a... | Install new CRDs and RBAC for Kube v1.16+ Yes, but because of the CRDs in Helm are managed by Rancher and not Traefik, and they were changed upstream , The [CODE] CustomResourceDefinition is deprecated in Kubernetes v1.16+ and will be removed in v1.22+. For Kubernetes v1.16+, please use the Traefik [CODE] CRDs instead.... | 0 | 0 | 717 | 2023-08-13T16:30:10.157 | bi_errors | devops.stackexchange.com | |
184,573 | How to make nginx reverse proxy let 503 error pages pass through to client? | I am running Magento (ecommerce PHP app) behind nginx as a reverse proxy to Apache which is running the PHP app. Static content is served directly by nginx. Magento has a "maintenance mode" which uses a 503 HTTP response. With my configuration when maintenance mode is enabled nginx returns a blank page with a 500 respo... | Turns out there was truly an error while serving the 503 page so nginx was forwarding the response correctly afterall. However, the relevant nginx setting is [CODE] which is already the default.. | 0 | 7 | 5,722 | 2010-09-25T05:40:18.253 | api_errors | serverfault.com | |
260,409 | inserting multiple values into SQL with % | This works: [CODE] I cannot seem to expand it to work using an AND clause to also include day, I get a syntax error: [CODE] | The [CODE] operator takes a string on its left side, and a list of values on its right side: [CODE] Please note that using [CODE] introduces the risk of SQL injections when used with strings, so you should always use SQL parameters instead: [CODE] | 0 | 3 | 30 | 2020-02-24T06:08:35.990 | warehouse_errors | dba.stackexchange.com | |
721,287 | Haproxy balance source hash-type consistent only routing to single backend | Folks, I have a vm setup with nginx and haproxy to act as a load balancer for a webapp that needs to maintain session stickyness to a single backend once a client has made a connection. The nginx config is pretty standard, but posted below. [CODE] Here is the haproxy config [CODE] Yet when I look at the stats, I only s... | First of all, if that's your entire Nginx config file, why are you bothering to proxy twice? Why not just give HAProxy the "public" IP and have it do all the work? In any event, since you're proxying to HAProxy from NGginx, all the connections are coming from the same place (Nginx). If you want to proxy based on the cl... | 0 | 3 | 4,050 | 2015-09-09T18:52:22.367 | infrastructure | serverfault.com | |
306,226 | Does it make sense to use the term "Space Leak" with regard to Java? | I stumbled across some posts on the main stackoverflow community about whether you can have a 'memory leak' in Java and it (maybe unsurprisingly) creates a lot of contentious debate. At some point I had decided that Java applications don't have memory leaks (or have them all the time depending on how you look at it) bu... | Does it make sense to use the term “Space Leak” with regard to Java? Frankly, no. While the term is well-founded, and it is (or may be) understood by the Haskell community, the distinction between "space leak" and "memory leak" is NOT widely understood by Java developers or the wider software engineering community 1 . ... | 6 | 16 | 2,632 | 2015-12-30T22:34:31.803 | api_errors | softwareengineering.stackexchange.com | |
896,522 | Azure AD Users logging into Remote Desktop Server | I have a Windows Server 2016 VM running on Azure. It is joined to an Azure Active Directory. Remote Desktop Services are installed and seem to be working properly. I am trying to allow users from Azure AD to log into the server. The problem is that only users that are in the 'AAD DC Administrators' group can log in. Al... | Not sure if its documentation somewhere or supported (NOT TO BE DONE ON PRODUCTION) but i have been able to create my own group to manage RDP on Azure AD Domain service. Steps Created group in Azure AD and added members (MyRDPGroup), waited about 15 - 20 mins for replication. On a already Azure AD Domain Service Joined... | 0 | 1 | 3,260 | 2018-02-09T14:18:15.060 | infrastructure | serverfault.com | |
11,583 | Oracle Enterprise Manager Jobs Failing Initialization | The Enterprise Manager jobs on our RAC system recently started intermittently failing initialization with the following error: Error evaluating parameter sources/security checks/locks ORA-06508: PL/SQL: could not find program unit being called We have tried bouncing DBConsole, re-submitting the job from the library and... | Oracle support has been no help. After about a week of the jobs sometimes running they stopped running completely. Every single job got an initialization error every time it ran and every time it was retried. We are in the process of re-creating the repository and migrating to dbms_scheduler jobs. | 3 | 1 | 1,575 | 2012-01-25T19:48:55.333 | database_errors | dba.stackexchange.com | |
340,835 | How to integrate Laravel passport, oauth scopes and roles and permissions | I am developing SPA in angular and backend API in laravel 5.3. I have integrated [CODE] for [CODE] . I have to make roles and permissions implementation using views on tables from other database which is maintained by other system. In this system user has 1 role. And role has self reference so there is hierarchical str... | This answer seems to help with it. https://stackoverflow.com/questions/39436509/laravel-passport-scopes When you're authenticating the user, check the database for roles and permissions. Then add the scopes to the request like they do. [CODE] | 1 | 1 | 8,782 | 2017-01-24T19:12:16.723 | api_errors | softwareengineering.stackexchange.com | |
856,973 | No idea why I am getting Over Quota errors on GAE (Java) | I am getting over quota errors on my live GAE Standard Environment (Java) site and there's no information given on what has gone over quota. I checked the Quota Details page under App Engine, and everything seems ok. I also looked at IAM Admin quotas and everything is well within quotas there as well. The logs show no ... | This is a feature that has been requested many times, and our engineering team has been working very hard on implementing a system that will alert users of their quota usage for all available resources in their projects. There are a lot of moving parts to this and so there is currently no ETA. You can star the public f... | 0 | 1 | 182 | 2017-06-21T04:17:08.893 | infrastructure | serverfault.com | |
771,470 | CSF Firewall unblock countries | I've a VPS Server running CENTOS 6.7 x86_64 with CSF Firewall activated. Sometimes I see in "Firewall Deny IPs" that blocks suddenly connections from my country (Spain) to some of my clients. Not with everybody and not everyday, but 2-3 times per week I've to unblock manually some of my clients' IPs because CSF is bloc... | have a look at CC_ALLOW CC_ALLOW = ES WARNING: CC_ALLOW allows access through all ports in the firewall. For this reason CC_ALLOW probably has very limited use and CC_ALLOW_FILTER is preferred Personally I would look at why they are being blocked rather than blanket allowing them. | 0 | 0 | 309 | 2016-04-19T15:42:36.980 | infrastructure | serverfault.com | |
840,409 | Nginx processes start filling CPU | NGINX processes start taking all CPU cores and would not purge and free them. Server has been up for a month with the same configuration as today's, and it just started happening from yesterday. There are no useful informations in neither [CODE] nor [CODE] . How can I investigate the issue and where and what should I s... | It was a bug in nginx 1.11.11. http://nginx.org/en/CHANGES Bugfix: nginx might hog CPU; the bug had appeared in 1.11.11. | 0 | 1 | 128 | 2017-03-24T14:47:45.053 | infrastructure | serverfault.com | |
314,660 | Memory usage of global versus local variables | I am a beginner in C coding. I'm writing a C code where a variable is required to be used by different functions. I want to ask whether to use a global variable and manipulate it through functions or declare it as local variable and pass from function to function as argument. My understanding is that if I declare it as... | First off, "defining" and "declaring" are things you do in source code, rather than at runtime. Some variable declarations and definitions correspond to actual machine code that gets executed, and some do not. As far as I know, the definition of an additional function parameter or local variable will not generate any a... | 2 | 3 | 9,781 | 2016-04-04T08:12:06.407 | api_errors | softwareengineering.stackexchange.com | |
323,268 | What are the pros and cons of using these Multithreading Models in a Client/Server Architecture | In my classes of parallel programming the teacher mentioned three models, dynamic thread creation (create threads according to demand), thread pool (create a fixed amount of threads) and mixed or hybrid (create a number of threads at first, but you can create more if the demand increases too much and then return to the... | A quick non-academic view: Dynamic model: Pros: uses only the number of threads needed. Cons: the overhead of the thread creation and deletion during the processing. Consider also thread switching overhead, if the number of dynamic threads increases over the hardware supported limit. Typical use case: handling event dr... | 2 | 2 | 2,981 | 2016-06-25T20:54:40.643 | api_errors | softwareengineering.stackexchange.com | |
854,452 | Is a machine with a single NUMA node, actually a regular (non-NUMA) system? | First, let's check I got the fundamentals right: As I understand it, NUMA systems are a (asymmetric) network of NUMA nodes , where a NUMA node is usually (but not always) a physical CPU package. In a NUMA system, each node has its own local memory, and the memory of the other nodes are available via a bus. The non-unif... | Modern x86 CPU architectures (AMD Opteron and later and Intel Nehalem-based Xeon and later) are NUMA capable , but they do not necessarily require to work in NUMA mode. In your specific case, you have a NUMA capable CPU working as a single node, so no NUMA behavior will be detected. | 3 | 5 | 1,781 | 2017-06-07T14:43:14.677 | infrastructure | serverfault.com | |
329,213 | Postgresql same query is slower on new hardware | I migrate my data to a new server hardware that after my benchmark looks faster in terms of CPU and disk i/o. Unfortunatly my query seems slower on that new hardware with the same data and the same query. Here is my query : [CODE] On old server my times are : Planning Time: 0.281 ms Execution Time: 50.683 ms On the new... | 172 written buffers for this type of command seems like a lot. While the time spent writing isn't very high, the fact that it needed to do this amount of writing in the first place suggests the server has a lot of activity going on at the same time as you were profiling the query (and that amount of activity seems to b... | 0 | 0 | 96 | 2023-07-12T13:24:11.280 | database_errors | dba.stackexchange.com | |
334,072 | How to make a webdriver run reliably in Selenium? | I have been having quite a time getting this to work reliably for 100s of thousands of terms and potentially millions of pages per source and ETL the resulting data into a database in an automated fashion. I need to run the tasks in Mesos on a repeating schedule. The required languages are Scala/Java. For acquisition, ... | This may not be the most satisfactory type of answer, but the fact is that web browsers are not built and tested with the expectation that they will be run continuously for weeks or months, while fetching hundreds of thousands of pages. While the browser developers of course do their best to make their software work re... | 4 | 1 | 2,982 | 2016-10-19T19:29:08.730 | pipeline_ops | softwareengineering.stackexchange.com | |
354,542 | Domain Driven Design in Net - Project Structure | I'm getting my head around DDD and how to build up an C# Project structure for an .Net Core WebApp. I searched quite a bit around the web, for example How to structure a Domain Driven Design in an Onion Architecture? , https://github.com/zkavtaskin/Domain-Driven-Design-Example and several Pluralsight courses. What bogs... | I think that we often out-think ourselves when we are trying to learn a new way of doing things. Instead of boiling the problem down to the smallest thing that can possibly work, we think about things that aren't important right now. Onion architecture and DDD work together to provide a way of letting you define that s... | 5 | 10 | 14,234 | 2017-07-26T19:00:39.287 | api_errors | softwareengineering.stackexchange.com | |
252,779 | Why would I use ElasticSearch if I already use a graph database? | I don't find any deep explanation on the web about a comparison between ElasticSearch and the graph databases. Both are optimized to traverse data. ElasticSearch seems to be optimized for analytics. However Neo4j is also based on Lucene to manage indexes and some fulltext features. Why would I use ElasticSearch if I al... | I hesitate to call ElasticSearch a database. It is not a replacement for a database, but it makes a good addition to add functionality, specifically advanced text searching, along side your existing database. I see where you can get them confused. They can actually fit the same need, but not always. ElasticSearch does ... | 22 | 25 | 34,269 | 2014-08-08T18:17:29.587 | pipeline_ops | softwareengineering.stackexchange.com | |
799,461 | amavisd-new freezes: "Address already in use" | I have a mail server setup running on my Debian Jessie VPS which includes postfix, amavisd-new, SpamAssassin and a few other services. All in all it seems my setup works pretty well and handles incoming mails correctly, however from time to time amavisd-new freezes ('systemctl status amavis.service' shows 'active (exit... | Where to dig deeper? It's like two copies are starting at the same time... can you prevent systemd or whatever from starting amavisd-new and run it yourself from the command line? See the man page. There's are debug modes and a foreground mode. http://manpages.ubuntu.com/manpages/trusty/man8/amavisd-new.8.html [CODE] | 0 | 0 | 524 | 2016-08-27T07:07:47.763 | infrastructure | serverfault.com | |
906,337 | Microsoft Graph App sign in with different tenant not possible | I created an app with teh Microsoft App registration portal . I can use this app with the a user in the Azure AD tenant that created this app. The Azure AD tenant is linked to an office 365 business subscription. If I try to use this app with a user thatbelongs to a life.com tenat, an error is shown right after the Mic... | Multi-tenant Applicaiton doesn't mean that you can use any Microsoft Account to sign in the App. It also needs the Microsoft Account to exist in the Tenant and do consent to use the App, the App will be auto created in the Tenant. For your scenario, I think Azure AD B2C may be better for you. With Azure AD B2C, you can... | 0 | 1 | 1,147 | 2018-04-06T06:45:15.263 | api_errors | serverfault.com | |
956,991 | File size increases while uploading to nginx server and fails | I'm uploading a .wav file of size around 5745kb, the limitation in the nginx config is set as client_max_body_size 10m; The upload fails with error as "Request entity too large" and content-length from request headers show that size is more than 10 Mb [CODE] Since the expectation is file should have been allowed, how d... | Add [CODE] right after your client_max_body_size option. Should work like a charm. Also, always set about 10-20% more for uploadable file size that you are currently wanting to upload. Threshold, you know. ;) | 0 | 0 | 1,089 | 2019-03-06T10:35:18.237 | infrastructure | serverfault.com | |
896,309 | Restoring lost LVM VG | I'm trying to restore a Volume Group on a Virtual-Machine that got somehow corrupted. The lv-root got somehow lost from the VG and the VG showed the originaly allocated space as free. On the VM we where unable to use the [CODE] command. However we could use it on the host and the VG got restored include all LV's. Now h... | Here's the VM's disk configuration from the pastebin mentioned in the question comments: [CODE] The information in the VM configuration indicates the VM disk [CODE] is actually [CODE] on the host, i.e. VG [CODE] , LV [CODE] . (Yes, I know the VM configuration says [CODE] instead of [CODE] - it apparently assumes the VM... | 0 | 1 | 639 | 2018-02-08T12:41:49.910 | database_errors | serverfault.com | |
335,924 | vCenter showing alert icon on many VMs with no alerts being reported | I've looked at all different levels within vCenter (server, datacenter, cluster, individual VM) and there are no alarms being reported yet the alarm icon persists. This all started when I had to shutdown my ESXi hosts and SAN for some upgrades in my dataroom. When I turned things back on I first connected to one of the... | It turns out the problem was that I powered on my ESXi hosts before my SAN so the VMs were not "fully" registered. A simple vmotion between hosts fixed the issue. | 3 | 4 | 8,548 | 2011-11-29T18:11:42.200 | infrastructure | serverfault.com | |
34,481 | Postgresql - Segmentation fault (core dumped) | I'm working on postgresql code (server side). I installed a version from source code following the official tutorial: http://www.postgresql.org/docs/8.4/interactive/install-short.html I did same modification on code, so I need to install again postgresql, but this time my version. I renamed the /usr/local/pgsql/ in /us... | I think the permissions are correct because otherwise you wouldn't have gotten here. My guess is that a modification you have made has caused the problem. This is particularly the case given that it is a segmentation fault. What you really need to do is look at the call stack at the time the core was dumped and see if ... | 1 | 4 | 9,711 | 2013-02-10T06:35:33.673 | database_errors | dba.stackexchange.com | |
369,517 | Passing Meta info from Command through Aggregate to Event | I have a CQRS system in development that passes the Command to a CommandHandler, which gets an Aggregate from a Repository, and calls a method with the properties of the Command (converted to ValueObjects). The method then creates the Event internally and registers it in a hash object to be collected and persisted late... | There's no magic. The metadata has a lifetime within the request scope, so you are going to need to trace out some path from where it starts to where it ends. Now, if it is metadata, then the domain model really shouldn't be concerned with it -- so you would prefer that the path not pass explicitly through the model. T... | 2 | 1 | 607 | 2018-04-17T16:11:09.833 | api_errors | softwareengineering.stackexchange.com | |
549,310 | Make my git user and apache user have read/write/delete access | I am having permission problems on my server. I use user developer to pull my git repository on the server. Then apache uses its own apache user to do write and execute code. I always have the problems when the app wants to write something in the directory (i.e: log files, and cache ...) if I execute a cron job and it ... | My idea was to make the following ownership of the directory: developer.app or apache.app In Bash: [CODE] or [CODE] In the first case its necessary to have "apache" in "app" group, in the second to have "developer" in "app". Then you need to set the same permissions for both: owner and group on all files/directories. H... | 1 | 0 | 671 | 2013-10-29T03:48:00.180 | infrastructure | serverfault.com | |
624,048 | equallogic as direct network drive | at work we have an equallogic which currently does nothing. I know how to create volumes and configure the equallogic. But I am wondering if it is possible to use it as a direct network drive via iSCSI with. The main problem I see is the filesystem. I would need to use a locking filesystem. Does anyone have a good idea... | I think you're asking for a way to turn your Dell Equallogic storage into shared network storage; e.g. converting SAN to NAS. The Equallogic SAN is block-only, so your easiest solution is to configure a server to interface with the Equallogic device over iSCSI. Use that server to present the block storage to the rest o... | -1 | 4 | 1,201 | 2014-08-26T10:13:58.290 | infrastructure | serverfault.com | |
326,477 | Replace specific string with blank even if partial match with another column value | I have a scenario to replace entire string from a set of comma delimited strings, if partial word matches with another column. I found very complex to explain in words and hence I have explained through a screenshot having various examples. Please help me with stored procedure or a function or query to get results as i... | Sample data [CODE] Solution [CODE] Result ID Col1 Col2 Required_result 1 pencil red charcoal, pencil, scale charcoal, scale 2 pencil red charcoal, red, scale charcoal, scale 3 ball pen eraser, pen eraser 4 ball pen ball, box box 5 ball pen eraser, ball pen eraser 6 ball pen eraser, pen ball eraser 7 ball pen eraser, wa... | 0 | 7 | 208 | 2023-04-26T18:31:03.917 | database_errors | dba.stackexchange.com | |
322,875 | Can a single Factory be used to create similar in purpose, but different in focus objects? | I am concerned about whether or not I am using [CODE] correctly. Background: I am refactoring legacy code and I have identified a pattern: there is a [CODE] Object that is created in memory, and later various parts of it is saved to many different tables. For example, various parts are called [CODE] , [CODE] , [CODE] .... | If you have a small, fixed number of different part types which will be seldom extended, you can keep this pragmatic and give your [CODE] a handful of different methods like [CODE] , [CODE] or [CODE] . If each of those classes contains only a single persisting method, even that maybe overengineering, a generic "Persist... | 2 | 2 | 882 | 2016-06-21T15:44:17.430 | api_errors | softwareengineering.stackexchange.com | |
250,053 | Mysql keep high cpu usage and I cannot tune it down | I have an asp.net application which use Mysql as database server. In my application have some threading which will query mysql database. It always caused the Mysql database server CPU usage up to 99%. Then I try to edit the server parameters of Azure MySQL. I tuned as follows: [CODE] But it is not useful. When I run th... | What tuning should I do to lower the CPU usage of Azure MySQL? Left to itself, MySQL will not consume large amounts of CPU. It will do so, however, when it is asked to perform [lots of] CPU-intense queries . You need to investigate the workload that your database is under and tune any poorly-performing queries. I stron... | -1 | 1 | 503 | 2019-10-02T07:00:53.653 | database_errors | dba.stackexchange.com | |
612,702 | Nginx server redirect being ignored | I'm must be stuffing this up somewhere but can't see where. Nginx appears to be ignoring the following redirect. This currently resides in its own conf file, but I have placed it in the other files. [CODE] This is the ssl config, which works: [CODE] } Heres config for the backend servers, which works: [CODE] The backen... | So this what I changed to get it working: mv /etc/nginx/conf.d/domain.com.ssl.conf /etc/nginx/conf.d/domain.com.sslconf Then I edited /etc/nginx/conf.d/domain.com.sslconf and added the following to the top: [CODE] Then I edited /etc/nginx/conf.d/backends.conf and added the following below the main server: [CODE] Its so... | 0 | 0 | 1,807 | 2014-07-15T14:55:39.497 | infrastructure | serverfault.com | |
727,943 | Auto root login in Linux servers | I'm trying to execute a test in different Linux server distros (Fedora, Ubuntu, Centos, etc). I know that there is an init system that can allow programs execution after boot (without login). The problem is that I don't want to have a special case for every different init system between distros. Is there a way to allow... | I know that there is an init system that can allow programs execution after boot (without login). Unfortunately these days there is not one init system there is a half dozen popular init systems. For example sysv init, systemd, upstart, etc. Anyway, if you really want a system to provide you with a console that has roo... | 0 | 0 | 2,461 | 2015-10-09T17:12:08.923 | infrastructure | serverfault.com | |
1,092,078 | nginx.service: Failed at step EXEC spawning /usr/sbin/nginx: No such file or directory | Hello anyone can help? I was running aws ligthsail using Nginx Instance. Everything is fine. when i configure vhosts.conf and other conf. when i [CODE] error is this: nginx: [emerg] "server" directive is not allowed here in /opt/bitnami/apps/capital/conf/nginx-vhosts.conf:1 nginx: configuration file /opt/bitnami/nginx/... | Install nginx with one of these commands: [CODE] Then you can get it working. | 0 | 1 | 6,578 | 2022-02-01T12:31:05.900 | infrastructure | serverfault.com | |
634,936 | OpenBSD chroot for nginx/Apache file permissions | I haven't been able to find a satisfying answer on Goole or the various Stack forums: I noticed that files under /var/www (where nginx and I believe Apache are chrooted by default) have permissions mostly of root:daemon or root:bin. This is true of roundcube and I assume other web applications if installed from officia... | recent versions of OpenBSD include Nginx in it's base. Apache is gone for good. so to answer your question properly it is important to know what version of OpenBSD you are using. if you are not on 5.5 yet an update is very much recommended. in general, you should only and carefully change permissions for directories an... | 0 | 0 | 1,013 | 2014-10-10T01:37:28.253 | infrastructure | serverfault.com | |
379,898 | Forcing command on ssh's authorized_keys merges STDOUT and STDERR | I've been working to have a script in a centralized server to do some things and output a .tar.gz file (see redirect temporarily STDOUT to another file descriptor, but still to screen ). I also have exchanged ssh keys, so now from a client machine I can execute the script in my main server and output the result to a .t... | The first way you invoke the command doesn't create a pty, while the second may or may not. Try telling sshd not to create a pty. In your authorized_keys file: [CODE] If you want to ssh from the command line when the [CODE] option is set in your [CODE] files you must redirect the STDIN to read from [CODE] or you would ... | 3 | 3 | 2,412 | 2012-04-16T15:14:50.187 | infrastructure | serverfault.com | |
641,749 | Analyze SMART self-test for broken disks | I recently came home from vacation only to wake up the following morgon with two disks in my RAID5 array marked as faulty. I was able to start the RAID by forcing it to use the faulty disks and run, and I were able to salvage some of the important data I had on it. For some reason the server was acting up, and would no... | [CODE] and [CODE] are failing. Drives that fail the extended self-tests are basically bound to fail at any time. Self-tests are very light on the drives, so a failure there signals that you should replace the drives immediately. Also, it looks like the drives have overheated in the past, so I would advise checking your... | 0 | 0 | 115 | 2014-11-03T21:26:10.063 | infrastructure | serverfault.com | |
1,106,221 | Can there be a "TLS Passthrough based on SNI" version of CloudFlare's "orange-cloud"? | My understanding is that the "orange-cloud" [1] is a TLS terminating reverse proxy . Multiple upstream servers share the same Cloudflare Anycast IP. A TLS connection is formed between the client and the orange-cloud, the orange-cloud then makes forwarding decisions based on SNI (HTTPS header) or Host (HTTP header), and... | There is, but it's not free: https://www.cloudflare.com/products/cloudflare-spectrum/ Their regular proxy intercepts TLS traffic so that they can do their DDOS protection stuff to it. And probably for some data analytics, I haven't read through their entire privacy policies. Their paid services do offer TLS pass throug... | 1 | 1 | 290 | 2022-07-21T15:22:26.133 | infrastructure | serverfault.com | |
703,699 | Multiple GPOs with Security Filtering or Single GPO with Item Level Targeting? | I have multiple GPOs for User Experience stuff (Eg: Shortcuts as GPP in User Configuration) which impacts a number of OUs and their users. It's currently one GPO per 'item' (Eg: shortcut, file) with a Security Filter applied to the GPO defining a security group but there is a growing number of them. It could be said th... | If the files/folders are sensitive then they should be restricted access at a filesystem level on the filserver where the files/folders/whatever is hosted, not by just controlling who has the shortcut and who has not. That being said - I'e never encountered where item level targeting have failed on group lookups or sim... | 2 | 2 | 333 | 2015-07-06T06:27:55.450 | infrastructure | serverfault.com | |
329,165 | Mysql not restarting | In my linux server when perform mysql restart by using the following command [CODE] How to fix this issue | I'm pretty sure you are in a chroot . Take a look at this for more details. Upstart acts as a service supervisor. The processes within a chroot are unable to communicate with the Upstart running outside of the chroot. A workaround for this is configure chroots with [CODE] pointing to [CODE] : [CODE] Read more... | 0 | 1 | 1,199 | 2011-11-09T04:56:00.230 | database_errors | serverfault.com | |
11,693 | Is there an equivalent of "OPTION(RECOMPILE)" or "WITH RECOMPILE" for an entire connection? | I'm curious. Is there any way to prevent SQL query execution plans from being cached for an entire connection's duration? Can I run a command that basically says, "use OPTION(RECOMPILE) for all subsequent commands until I tell you to stop doing so?" I'm acutely aware of all the performance trade-offs here, and I know t... | Execution plans do not last for the duration of a connection: they are shared across all connections. It has to be specified per query because any plan cache/reuse issues affect only that plan. What are you trying to do please, and why do you think it would help? Edit, after comment The plan must exist in cache to be u... | 4 | 6 | 2,308 | 2010-04-07T15:31:03.720 | database_errors | dba.stackexchange.com | |
790,121 | OpenSSL No Client Certificate Presented (SMTP, Postfix) | I used OpenSSL to create a private key and self-signed public certificate. I then created a Certificate Authority file that contains both the private key and public certificate (mail.example.com.pem). On a client computer in the LAN, I use OpenSSL to connect to Postfix on port 587 (SMTP), and I tell OpenSSL to use the ... | You have set [CODE] in your Postfix configuration. This directive requires that all clients have a client certificate issued by you to that specific client. Incoming SMTP connections to your server are then only allowed from preapproved hosts. This is plainly not what you want. You are trying to receive mail from the w... | 2 | 4 | 4,637 | 2016-07-15T20:13:36.293 | database_errors | serverfault.com | |
212,058 | Is it possible for MySQL v5.7.6 to to implement mesh replication with multi-source replication | As I know starting from MySQL [CODE] the [CODE] replication is possible. So If we can have a slave that can get data from multiple masters. Can we have mesh replication, where each node act as a slave for all other nodes ? Mesh Replication If we have 4 nodes (N1, N2, N3, N4) N1 is a slave for N2, N3, N4. N2 is a slave ... | It's called Galera. A write to any node is automatically replicated to all other nodes. Galera is usually deployed in 3-node configuration, but 4 is possible. It is available from Percona (PXC), MariaDB, or an addon to MySQL. Please explain why you want that configuration. And, no, Galera won't get into an infinite loo... | 1 | 1 | 334 | 2018-07-12T19:01:43.300 | data_quality | dba.stackexchange.com | |
234,826 | How can I calculate future interest charges and loan balance | I have a table like below: Need to calculate interest for next month 100*(4.29/100). Row+1:Capital_Balance = Row:Capital_Balance_Calculated - Calculated interest from above step. Resultant table is like below: [![enter image description here][2]][2] For sample data: [CODE] Please take a look at the calculation: | Your sample data script has an error, it uses 4.2 and 5.1 instead of 4.29 and 1.54. This threw off the numbers so please take care next time to make sure you get it right... Also, after the edit the desired result is missing. It is unclear whether the payment is from the 'current' row or the previous one, and in either... | 1 | 2 | 898 | 2019-04-15T14:15:04.783 | warehouse_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.