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 |
|---|---|---|---|---|---|---|---|---|---|---|
438,245 | Best pattern/practice to execute a multi-step code generation process | I am working on a project that generates an API with the possibility of doing CRUD operations based on a high-level description of the resources that the user would like to have in an application. In the process of generating the code, multiple steps have to be taken (for some context, I am generating Python code from ... | There is nothing inherently wrong in having an orchestator doing these steps one after another. When all you need is this fixed step of sequences, don't start to throw some fancy patterns at the code base, this will only overcomplicate things for no benefit. The key point, however, is, to make the input and output of e... | 0 | 5 | 579 | 2022-04-25T15:36:15.577 | pipeline_ops | softwareengineering.stackexchange.com | |
70,101 | How do I get nano to tell me if I don't have write permissions on a file? | I've used shell environments in the past where the text editor "nano" will warn me if I don't have write permissions on a file when I open the file for editing. This saves me a lot of time when I forget to type "sudo" beforehand and then spend time editing the file only to have to do all over it again. I'd like to dupl... | Why not replace the [CODE] command with a script that checks to see if you have write permissions and automatically call [CODE] if you don't? Saving you even more time! You might want to have the script output that you don't have write permissions before calling [CODE] so that you're not wondering why you're being aske... | 2 | 2 | 1,266 | 2009-09-30T19:25:48.873 | data_quality | serverfault.com | |
202,166 | Swapping db's to increase availability during database update | I have a SQL server database with data supplied from a 3rd party. They supply a tool to update the database data weekly. The tool is pretty old and uses ODBC. The update can take several hours. In order to have high availability, it was suggested to have 2 SQL databases, and store a "active database" setting in another... | What a DELIGHTFULLY CONVOLUTED solution they offer - Try the following: Have two database servers, A & B Have a DB IP address (in addition to the base IP addresses of your systems) Assign the DB IP address to whichever DB server you want queries to go to When update time comes: Update the inactive machine ("Machine B")... | 1 | 1 | 607 | 2010-11-15T20:24:01.157 | database_errors | serverfault.com | |
140,567 | Does the from address have to exist when sending an email | Does the from address have to exist when sending an email? Having issues with people receiving my emails when sending from code, and the only thing I can think of that is different is that the from email address does not exist. | No it doesn't, there's lots of reasons why the main may not get delivered. Jeff Attwood has a good article that spells out a lot of the things to look at sending mail through code . | 0 | 3 | 878 | 2010-05-11T09:16:07.720 | infrastructure | serverfault.com | |
997,919 | I broke my terminal trying to set up PATH environment to bin the JAVA directory and now nothing works, no bash commands, etc. Can I reset? | Basically I was just trying to set up a PATH environment variable that pointed to the /bin directory inside the main Java directory. I did this by doing: sudo nano /etc/paths. But then couldn't get the path to save so got frustrated and just did some keyboard bashing... Which then closed the sudo nano path. And now not... | Not knowing anything about the content of your /etc/paths file I would suggest you locate a known-good /etc/paths file (from a working Mac I suppose) and re-edit yours to match. If that works you can again attempt to make the change you need if editing your /etc/paths file is really the best solution for doing so. (My ... | 0 | 0 | 924 | 2020-01-07T11:10:35.583 | infrastructure | serverfault.com | |
250,505 | Comparing two software versions in C# | I´m working on a mod update checker for minecraft, but there is a big problem: The modders and online database that I´m using for update checks has no standard software versions e.g.: Local: rv0-stable-10 Online: rv1-alpha-13 Local: R1.1-83 Online: r1.1-81 Local: 1.7.10-0.2.250 (1.7.10 is indicating the Minecraft versi... | I'd say your best bet is to create some sort of pattern for either each mod, or a dictionary of all known patterns, and use that to parse each version. For mod1, [CODE] , the pattern will be complicated. It looks like you'll need to first parse [CODE] as a number, the middle part perhaps as an enum, and the last as a n... | 1 | 2 | 1,926 | 2014-07-20T11:18:21.767 | api_errors | softwareengineering.stackexchange.com | |
299,533 | postgres `in` operator return in query order | I was doing query using [CODE] operator in [CODE] , something like: [CODE] is there any guarantee that returning entries are in [CODE] order? According to my experiments, the return values are unordered unless I was doing something wrong. So anyway to get an ordered result? A naive way would be doing n queries and each... | [CODE] doesn't guarantee result ordering. You have to use [CODE] statement: [CODE] | 1 | 1 | 103 | 2021-09-14T06:14:04.880 | warehouse_errors | dba.stackexchange.com | |
308,713 | Deploying a website builder website | I want to create my own custom website builder hosting platform for a niche market. I have plans on hosting 100's plus subdomains off of one primary domain. Here's my goal: Allow register user to create a website, users will be giving a sub domain as a url for his/her website(example: [CODE] , [CODE] etc.... User's als... | You need a dedicated server. You might be able to do this with a VPS like slicehost or linode . A baby or business plan would not work. You would then need to license and install cPanel. I would consult the cPanel system requirements, http://www.cpanel.net/products/cpanelwhm/system-requirements.html and the cPanel stor... | -4 | 1 | 69 | 2011-09-06T20:58:12.510 | infrastructure | serverfault.com | |
725,889 | Xen - reduce resources/hardware limitation? | After I chose a Xen VPS provider, they said me that Xen doesn't let them downgrade resources/hardware so, because of this I can't downgrade my plan. I think that this limitation is strange... Can you confirm that this limitation exist (or not) in Xen software/platform? If the limitation doesn't exist, why do you think ... | This is actually a great question! OpenVZ is an operating-system-level virtualisation technology, where each node shares the resources of the main host. In OpenVZ, administrator can just change a setting, and a different set of resources would be provided to the user as a matter of course. That's why almost all hosters... | 1 | 3 | 216 | 2015-09-30T20:59:08.643 | infrastructure | serverfault.com | |
310,312 | Port GUI program from VxWorks to Windows | My company has an old GUI application on VxWorks. Now, I was requested to port this application to Windows XP over new H/W platform. The original application calls WindML & Zinc (Tornado's GUI libraries). For successfully porting this application, I can figure out these approaches: rewrite GUI functions using VC++ on W... | First thing you should get clear is if the application has to be maintained under both operating systems after the port. If that is the case, you should prefer a solution with as few duplicate code as possible, which means a solution where you either reuse the original libs or use compatible libs. Your option number 4 ... | 0 | 3 | 620 | 2016-02-17T11:08:19.253 | api_errors | softwareengineering.stackexchange.com | |
104,667 | Intervals query of huge data | My question is more or less theoretical - what is the best approch to get query data by intervals. The situation I have a system that manage counters (thousands of counters - counts consumption of electricity/water etc...), every 15 minutes the counter is sampled and stored in the DB. there is one table that stores all... | Well this answer depends on how your database is designed and licensed. If you have an Enterprise license, you should take a look at partitioning. This way you may partition your data which will help you in querying those table. If you make a good partitioning, you'll be able to just read a small portion of the table f... | 2 | 2 | 501 | 2015-06-21T08:21:47.317 | warehouse_errors | dba.stackexchange.com | |
150,255 | Error when only deploying a dimension on SSDT | I'm trying to follow a tutorial on SQL Server Analysis Services (SSAS) but I'm having trouble on deployment. Summarized, what I'm doing is: Open SQL Server Data Tools (SSDT) Creating a new Multidimensional project Creating a Data Source from a SQL Server database (succesfully connects) Creating a Data Source View (can ... | I don't speak Portuguese very well but it looks as if it's saying that it can't connect to the datasource. Please verify if your Analysis services service account has access to the data source. Keep in mind that, unless you specify the username and password the processing is done using the Analysis Services service acc... | 1 | 2 | 1,419 | 2016-09-21T09:19:36.700 | pipeline_ops | dba.stackexchange.com | |
1,088,274 | How to send notifications to teams using azure devops pipeline? | I saw there is a teams app for azure pipelines and while adding that it is asking for complete pipeline access to the group we add to. Instead of using this, I just want to send notification to a teams group or individual users that build is successful or failed. Can anyone please guide how to do that. May be any pipel... | The easiest way to do this is to use a webhook to send a message to teams. You can create an incoming webhook by following this article . You can then setup a task in your Pipeline to call the webhook using PowerShell, Bash etc. | 2 | 1 | 5,175 | 2021-12-27T09:35:03.783 | pipeline_ops | serverfault.com | |
961,505 | Gitlab + Azure AD + LDAP | I have gitlab (ee) setup with terraform to run in a k8s cluster on azure. This all works fine and dandy, but what I would love to do is use LDAPS to sync user and group permissions with Azure AD, so I can use it as shown here: https://www.youtube.com/watch?v=HPMjM-14qa8 . However, as many will mention, Azure AD itself ... | Gitlab OmniAuth offers OAuth2 to allow sign in via Azure AD. Consult the docs for details: https://docs.gitlab.com/ee/integration/azure.html SAML2 should be supported by both as well, but might be a little trickier to setup. | 1 | 1 | 1,378 | 2019-04-04T13:42:28.480 | pipeline_ops | serverfault.com | |
319,701 | How to delete scheduled task from command line without confirmation? (schtasks delete) | I can create a task from command line like this: [CODE] and now I need to delete it. However the command needs to be confirmed and I don't know how to do that from BATCH file (bat/cmd). [CODE] Question: How to delete scheduled task and force yes? | [CODE] | 23 | 27 | 86,659 | 2011-10-08T10:36:55.547 | infrastructure | serverfault.com | |
180,025 | PHP best practice in return values | For PHP, best practices, I have read somewhere that if you assign your data to a variable it takes almost no memory or resource. So let's say I have this function that return a count. [CODE] or if this is better? [CODE] | This is not a php-only issue, therefore there might be potential duplicate questions. Generally The first approach (return count(...)) is faster to read and in some cases will produce faster code, because of the time consumed to instantiate the variable $count. The second approach is kind of easier to debug and maintai... | 1 | 6 | 1,538 | 2012-12-19T16:31:13.963 | api_errors | softwareengineering.stackexchange.com | |
391,976 | How to find out if my Dell R210 server has iDRAC with shared network connection or dedicated? | My server is Dell R210 and it is colocated. I need to find out whether the iDRAC BMC on this particular box has dedicated ethernet connector or is it shared. Also - do I always need separate IP address to be able to remotely power off the box using IPMI ? (asking because additional IP costs money, need to be sure there... | iDRAC BMC is what previously was called BMC, that means it uses by default NIC1 and to use the BMC you need to configure an IP, if I'm not wrong I think by default is 192.168.0.120. So, to Answer your questions, your iDRAC BMC uses a shared NIC and you need a separate IP to be able to manage the server through IPMI. | 2 | 2 | 23,388 | 2012-05-23T18:28:59.520 | infrastructure | serverfault.com | |
706,451 | rpm2cpio skips files from RPM | These steps are from a box running CentOS 6.5. I merely tried converting a RPM package to a CPIO archive and was surprised to find files listed in the RPM but absent from the archive. Here are the steps taken. List out paths in the RPM: [CODE] Convert the RPM to a CPIO archive: [CODE] Save the list of files in the arch... | The entry for [CODE] from the [CODE] spec file is: [CODE] Quoting from Maximum RPM about the [CODE] directive: By adding this directive to the line containing a file, RPM will know about the ghosted file, but will not add it to the package. However it still needs to be in the buildroot. Therefore, [CODE] that is part o... | 4 | 2 | 433 | 2015-07-17T05:08:39.003 | hadoop_errors | serverfault.com | |
245,361 | How can I correct the NUMA setup of the memory on my server? | I am trying to install VMware ESXi onto a new dedicated server. However, when I boot from the VMware ESXi Installer CD, I am given the following error: The system has found a problem on your machine and cannot continue. The BIOS reports that NUMA node 1 has no memory. This problem is either caused by a bad BIOS or a ve... | With all four CPU sockets full you have to be careful you you load out the memory modules. HERE is a link to the mobo's memory loadout guideslines, as you can see in table 3 you need to have either 16 or 32 DIMMS in that configuration, so given you have 24GB in there currently you basically you need to either add or re... | 3 | 8 | 2,849 | 2011-03-09T19:33:00.033 | infrastructure | serverfault.com | |
1,065,129 | Howto create custom service in systemd? | Running Fedora 33/34 on multiple machines. I successfully activated [CODE] which works fine. I have couple of other scripts that I need to run in [CODE] and I created similar service files as [CODE] , but I can't enable it, whereas rc-local.service can be enabled/disabled/stared/stopped without any troubles. I know, th... | I've found a solution. I have included following 3 lines on top of my script: [CODE] [CODE] now [CODE] works fine | 0 | 0 | 780 | 2021-05-30T13:08:57.527 | infrastructure | serverfault.com | |
171,275 | Can sendmail be used as an SMTP server? | I'm trying to setup debugging in my Pylons website and it allows for emails to be sent when an error occurs. The configuration asks for an SMTP server. It's running on Linux and I've always thought sendmail was the tool for this job. Can sendmail act as an SMTP server? If not, are there any good light weight alternativ... | Yes, sendmail can be used as SMTP server. Commonly used alternatives are Postfix , Exim and qmail, although I personally would not recommend qmail for a new system. For a beginner, Postfix should just be fine. | 0 | 1 | 743 | 2010-08-17T06:36:32.953 | infrastructure | serverfault.com | |
556,511 | Redhat init script on startup | I installed Redhat 6.4 and created a new init script which updates a project using SVN. I then configured the script in chkconfig. The problem is everytime i restart the server i lose ssh connectivity for some reason (connection refused after the restart), and i have to restore the HD from snapshot. The server is locat... | You may want to look at the console output upon reboot . It's likely that sshd is just not starting. Also, sounds like your init script could be broken. If your script is hanging and it is being started before ssh, you won't have access to the machine. You may consider making sure your custom init script boots last . | 2 | 3 | 423 | 2013-11-21T12:36:17.947 | api_errors | serverfault.com | |
292,337 | Is it possible to use a default partition for all reads? | I have a legacy application which queries one of its database (MySQL on AWS Aurora) tables extensively. Lots of queries and lots of query types. 90% of the rows in this table are outdated and are marked [CODE] . I want to try and make the performance better so I thought of partitioning the table by [CODE] and making al... | If there are no situations where you need to query soft-deleted records, a simpler mechanism would be to have a table just for deleted records. You could then implement a scheduled job to copy all [CODE] records to the historical table and remove the originals from the source table. Doing this would ensure the primary ... | 0 | 1 | 65 | 2021-05-27T11:54:22.683 | database_errors | dba.stackexchange.com | |
1,119,461 | Let user in AD set date/time by hand | Under a 2012 AD, as usual, users cannot set date/time on their computers as this is managed by organization. For specific purposes, we need to let one of the users set date to past but options are greyed out. Through GPO we have granted permission to change date/time and timezone to that user. Policies are updated and ... | For specific purposes, we need to let one of the users set date to past but options are greyed out. No, you don't need to do this is on an AD joined computer. AD (Kerberos) relies on the time being synchronized to within a few minutes. If not, things like login, file shares, TLS and a slew of other functions that needs... | 0 | 2 | 609 | 2023-01-04T18:29:20.327 | infrastructure | serverfault.com | |
321,871 | Get details of All failed SQL Agent jobs from all servers into one table | I'm trying to create a table which contains all the failed SQL agent jobs from all the servers. I'm facing difficulties in getting all the jobs from all the servers into one table | If you have a linked server already setup them and the security setup correctly then you should be able to pull the job information with the below query. This one is configured to pull for one day but can be changed. [CODE] Credit to https://dba.stackexchange.com/a/249624/262264 | -1 | 1 | 77 | 2023-01-09T02:09:57.780 | warehouse_errors | dba.stackexchange.com | |
663,956 | How to redirect spam to a different email address (spamassassin/postfix) | I have setup postfix and spamassassin on Ubuntu 14.04. I would like to set it up such that if the score of a message is above 5.0, it goes to one email account on my mailserver. If it's less that 5.0 it continues to the original destination. I have tried rewrite_header To spam@mydomain.com but this just adds "spam@mydo... | Configure your spamassasin to a header like X-Spam-Status: Yes after that you can redirect mails with: [CODE] in header_checks to a new destination. | 1 | 2 | 2,310 | 2015-01-31T14:20:29.533 | infrastructure | serverfault.com | |
167,974 | Microsoft Office and Sharepoint authentication | I'm evaluating the ability of SharePoint to meet the document management needs of my team. I'm running into some issues that make it feel very "clumsy," and believe it may be due to an incorrect configuration. In general, whenever I open a Word document that's stored in SharePoint, it asks for my credentials. If I chec... | Ensure that your SharePoint server is already in the Trusted Sites or Local Intranet security zone in IE. Ensure that your credentials for the site are stored in Credential Manager (called "Stored User Names and Passwords" in Windows XP) with Enterprise persistence. If you're still getting prompted for your credentials... | 2 | 2 | 1,680 | 2010-08-06T22:08:07.877 | api_errors | serverfault.com | |
64,928 | Error while installing Samba on Debian | When doing apt-get install samba smbfs I get the following error. How do I go about troubleshooting and fixing this? [CODE] | The error is occuring while starting nmbd. Samba is installed, but for some reason can't start. You can run nmbd manually, as root, with the command: [CODE] which will produce debugging output on the screen. That will help understand why it's failing; if it doesn't help you post the output here. | 0 | 1 | 6,737 | 2009-09-13T15:20:21.573 | infrastructure | serverfault.com | |
25,667 | Strange MySQL table problem | I have copied the /var/lib/mysql/mydbname db to a new machine from a crashed server (booted using a live cd) but now I cannot access the tables within the db... All the tables only have a .frm extension, so I am assuming they are InnoDB. They appear in a SHOW TABLES statement, but I cannot SELECT from them. REPAIR / OP... | If they're InnoDB, then you needed to copy the ibdata* and ib_logfile* files across from the crashed server, but you'll pick up other databases' table data then, and it'll all just be too painful. Restore from backup, instead. | 0 | 4 | 192 | 2009-06-15T04:02:52.390 | database_errors | serverfault.com | |
43,213 | FREAK feature extraction OpenCV | I want to know how to use FREAK feature extraction in python, I read the documentation but I need some examples. I wrote this code : [CODE] but the descriptor are None, why? I used keypoints detected by SURF instead of None parameter: [CODE] but the output was very very large, and hard to process. How can I fix this? T... | FREAK is only a feature descriptor, so in order to use it you must provide a set of keypoints for it to extract your features e.g., FAST, AGAST, SIFT’s keypoint detector, etc. The original paper uses AGAST . You might need to process the keypoints since the region requirements are different (A keypoint for SURF might l... | 5 | 2 | 2,578 | 2018-12-27T15:56:32.720 | data_quality | datascience.stackexchange.com | |
218,080 | Should I make up my own HTTP status codes? (a la Twitter 420: Enhance Your Calm) | I'm currently implementing an HTTP API, my first ever. I've been spending a lot of time looking at the Wikipedia page for HTTP status codes, because I'm determined to implement the right codes for the right situations. Listed on that page is a code with number 420, which is a custom code that Twitter used to use for ra... | The whole of the Internet is built on conventions. We call them RFCs. While nobody will come and arrest you if you violate an RFC, you do run the risk that your service will not interoperate with the rest of the world. And if that happens, you run the risk of your startup not getting any customers, your business gettin... | 27 | 32 | 18,778 | 2013-11-10T23:47:13.033 | api_errors | softwareengineering.stackexchange.com | |
184,503 | Zero-downtime availability in a web-serving frontend on EC2? | We have a web application with low load but high availability requirements. It consists of a single front-end load balancer and a couple back-end servers. The load balancer is there primarily for masking failures, not for spreading load. The back-end servers are made highly available via replication across two Availabi... | Fast, Reliable, Cheap. Pick any two. Honestly, though, "zero downtime" is, for all intents and purposes impossible. You're wanting zero downtime, but it doesn't appear that you're willing to spend the money necessary to do it. I believe you're on the right track with heartbeat and swinging the front end's IP to another... | 2 | 4 | 1,651 | 2010-09-24T22:30:26.047 | database_errors | serverfault.com | |
45,327 | Create Log Shipping Step Failed After ServerName Changed | I was doing some test on server name change and encounter some errors. Here is the original setup : Server name - ServerA, SQL Server default instance - ServerA Changes : Server name - ServerB Before I change the SQL Server default instance 'servername' [CODE] Return [CODE] (since I have changed the server name) exec [... | So in SQL Server 2012 SP1 I did this: [CODE] I scanned for [CODE] (the error number you received), and right above the relevant [CODE] call, I saw this: [CODE] So, run this code with a [CODE] : [CODE] Then verify exactly what is in [CODE] and also check [CODE] . I suspect either those two views don't match or the name ... | 1 | 2 | 1,607 | 2013-06-26T23:53:58.237 | database_errors | dba.stackexchange.com | |
304,650 | Installing embedded pfsense, stuck at boot loader | I am trying to install pfSense embedded image 1.2.3 RC1 onto a CF card. The box looks like it is ready to boot, but gets stuck at "Loading /boot/defaults/loader.conf" followed by "/". Can anyone provide me a link, or a fix to this issue? Note: I am a router/switch guy, and have no freebsd, or recent sys admin experienc... | That's where it switches to the serial console, that's normal. Plug up your serial console and it will continue from there. Also you shouldn't be using that old release, get 1.2.3 release at a minimum, and 2.0 is preferred at this point. | 2 | 2 | 4,595 | 2011-08-24T19:39:51.523 | infrastructure | serverfault.com | |
866,990 | elastic beanstalk ec2 eb ssh suddenly timeout error from yesterday | Ouput INFO: Attempting to open port 22. INFO: SSH port 22 open. ssh: connect to host xx.xxx.xxx.xxx port 22: Operation timed out INFO: Closed port 22 on ec2 instance security group. ERROR: An error occurred while running ssh. | The error is pretty informative. It says that port 22 is closed on the security group(s) attached to the instance, most likely because you modified the rules on the security group(s) or because you had access configured based on your workstation IP address and that IP address changed. Check the rules regarding SSH (TCP... | -1 | 0 | 1,250 | 2017-08-05T05:49:04.697 | database_errors | serverfault.com | |
663,438 | Error while running juju deploy jenkins-slave | Note: I'm running this on 3 Ubuntu trusty VM's on my OS X laptop over VMWare Fusion. I am a juju newbie and having some trouble with setting up jenkins-slave. I have a bootstrap machine, and 2 other machines. Jenkins (master) is successfully installed on machine 1. When I try to deploy jenkins-salve I get the error mes... | The answer is quite simple, yet very unlikely. The charm for jenkins-slave is a precise charm, which means it can only be installed on a precise Ubuntu VM. While this only seems obvious after an entire day with juju, I believe it is a major problem with this tool. Chef / Puppet, etc are not flavor dependent, so why is ... | 0 | 0 | 265 | 2015-01-29T16:12:32.217 | pipeline_ops | serverfault.com | |
18,207 | how to set a limit to growth of a /home/httpd/.../stats/ error file | I've got a VPS account. The file: [CODE] is logging so many errors that it fills up the 20 GB hard drive space within a 24-hour period which amongst other problems shuts my mail access down, etc. Most of these errors are repetitive and minor and I'll eventually fix them but how can I first set the error recording up so... | The best way to limit log size is to use logrotate. Check out "man logrotate" and /etc/logrotate.conf. You can configure it to automatically compress and rotate out logs when they either reach a specific age or size; size being the better choice in your situation. | 1 | 2 | 1,014 | 2009-06-02T21:08:00.540 | infrastructure | serverfault.com | |
450,195 | ddd, bulk creation of aggregate and validation that requires infrastructure | I am designing an aggregate that has list of keywords as its property, and it has constraint that two aggregate cannot have same keywords as its property. I use [CODE] that has [CODE] and [CODE] method when persisting aggregate, and each run in a single transaction. And [CODE] pattern is used when creating an aggregate... | As you have stated, once the data is persisted it's not really a problem - any subsequent action can simply check if a conflicting record/aggregate exists. Fundamentally the problem you are facing is one of distributed locks - you need to take a lock early on in the processing, before you are ready to persist the prima... | 0 | 3 | 137 | 2023-12-19T07:18:08.720 | data_quality | softwareengineering.stackexchange.com | |
142,512 | Problem with "Transfer-Encoding: chunked" in Apache 2.2 | One of client of our web service uses axis2 application that sends HTTP 1.1 query with: [CODE] header. Such a query is refused by our Apache 2.2 with message: [CODE] In Apache logs there is: [CODE] When I send such message without [CODE] and with [CODE] all works ok. I searched how to solve this problem, but I found on... | from what i found on apache's web site, [CODE] is only supported by HTTP/1.1, perhaps your server or software is set for HTTP/1.0 in the configuration. http://ws.apache.org/axis2/1_0/http-transport.html other than that, i would look at the file indicated in the error message and see if there is any hinting at chunking ... | 1 | 1 | 19,074 | 2010-05-17T07:10:31.270 | infrastructure | serverfault.com | |
48,130 | Execution Plan Regeneration | we have a database server with Sql Server 2008R2 that runs some queries every day; now these queries are fast (I suppose Sql Server has in memory some good execution plans). If we restart the database server these execution plans in memory will be lost: is it possible that the next time the queries run, Sql Server rege... | If we restart the database server these execution plans in memory will be lost: is it possible that the next time the queries run, Sql Server regenerate some execution plans worst than the previous ones? Absolutely, it all depends on compile-time differences. For instance, if a plan is compiled and cached with differen... | 3 | 2 | 653 | 2013-08-14T14:10:11.760 | database_errors | dba.stackexchange.com | |
1,085,564 | How is the underlying disk space (and associated technologies) for persistent storage usually configured in Docker | I want to attach persistent storage to my docker containers. I have tried NFS using TrueNAS and seem to have no luck there. Surely, I am approaching this in the wrong way. What are the common conventions for attaching persistent storage OUTSIDE of the container so that if the container fails or is remade, the data is r... | The convention in terms of underlying file system technology appears to be using block storage solutions such as Cinder, BGFS etc... (which can use Ceph, iSCSI, and other block file types) or object storage like Minio These kinds of solutions help to manage the underlying disk space easily and also take into account an... | -2 | 0 | 103 | 2021-12-06T19:02:58.197 | pipeline_ops | serverfault.com | |
222,548 | Clustering filesystem for small files | I'm looking for a distributed filesystem which I could use for storing lots of small files ( 2 servers which have the fs mounted themselves and mirror the data locking support (among reachable nodes) some kind of best-effort automatic resynchronisation after one node goes down and comes back again What I mean by the re... | I recommend excellent LizardFS and GfarmFS although I'm not sure how well they support locks. Update 2019: MooseFS is an excellent choice. Can't recommend LizardFS any more because it is poorly maintained... | 2 | 2 | 1,369 | 2011-01-14T16:26:52.343 | infrastructure | serverfault.com | |
308,619 | APC File Cache not working but user cache is fine | I have just got a VPS (with cPanel/WHM) to test what gains i could get in my application with using apc file cache AND user cache. So firstly I got the PHP 5.3 compiled in as a DSO (apache module). Then installed APC via PECL through SSH. (First I tried with WHM Module installer, it also had the same problem, so I trie... | It seems the problem was with SourceGuardian. File caching is now working fine after commenting out extension="ixed.5.3.lin" from php.ini. It was found out by the Support at my hosting provider, so a thumbs up to such great support. I wouldn't have found the issue for days. Thought should post the answer in case someon... | 0 | 1 | 1,300 | 2011-09-06T17:03:50.220 | infrastructure | serverfault.com | |
431,891 | Getting 'Stale NFS file handle' when Mounting Amazon EBS Drive/Volume | I had some issues this morning with an EC2 instance so I stopped it and changed it's type and it seemed to unmount one of my drives. Now, I can't mount anything, including freshly created, attached and formatted drives. I keep getting the same error: [CODE] I don't even think I'm using NFS ... Any ideas on how to solve... | Update & Resolution As Sirex mentions below, the Stale NFS file handle is a red herring (I'm not using NFS). Here is what I had to do resolve the issue: STOP the instance running with the OS and Data drive disk attached Detach both the OS and Data volume Make snapshots of each and then create new volumes from the snaps... | 2 | 1 | 394 | 2012-09-25T19:52:52.947 | infrastructure | serverfault.com | |
1,024,270 | Ubuntu: Apache2 not loading PHP-FPM php.ini | I need some help on Apache2 not loading the php-fpm php.ini. I have installed php-fpm successfully, created the pool and other configurations but Apache2 doesn't change the Server API from [CODE] to [CODE] fastcgi.conf in Apache2 [CODE] then added a line to my vhost entry: [CODE] Status of PHP-FPM [CODE] PHP Info: [COD... | Make sure you don't have [CODE] installed. Apache is reporting that it is using this module instead of php-fpm. [CODE] Then restart httpd. [CODE] | 2 | 2 | 2,157 | 2020-07-06T20:37:11.687 | infrastructure | serverfault.com | |
873,626 | Missing raddb folder | Various tutorials on setting up a freeRADIUS server refers to the eap.conf file in the /etc/raddb folder. However when i install freeRADIUS on my ubuntu server, the eap.conf file are found in /etc/freeradius. Is there a difference on the two folders: /etc/raddb and /etc/freeradius? | Typically the software has a default location for configuration files decided on by the developer which can be overridden at build time. You, or typically a package maintainer and the packaging guidelines in use for that distribution, can decide on an alternate location. The official freeradius wiki refers to both: [CO... | 1 | 3 | 3,586 | 2017-09-14T11:44:08.233 | infrastructure | serverfault.com | |
349,104 | Make multithreaded program asynchronous | There is an application that processes TCP/IP requests according to some logic, and pretty always it connects to DB. Architecture is very common: one client -> one processing thread -> one DB connection -> one DB thread to process a query(DB thread exists inside DBMS application and mentioned here to show how insuffici... | There is more than one way to add asynchronicity. You have explored one option, to make the single threaded application more asynchronous. Perhaps there is another option, to make a wrapper application that calls multiple copies of the original application. Here I am assuming that somehow your original application has ... | 3 | 2 | 851 | 2017-05-16T20:31:36.247 | database_errors | softwareengineering.stackexchange.com | |
389,716 | How to automatically reconcile /etc/group and /etc/gshadow | Running [CODE] to check the groups, I see these errors: [CODE] ...and on for quite a few. I'm not sure how this happened, and I'd like to get it cleaned up. I know I could manually edit the [CODE] , but I'd rather let the OS do it, to prevent typos and manual labor. Is there anything that can automatically reconcile a ... | man had the answer I missed before: [CODE] http://linux.die.net/man/8/grpconv : The grpconv command creates gshadow from group and an optionally existing gshadow. | 18 | 24 | 13,786 | 2012-05-16T16:13:07.447 | infrastructure | serverfault.com | |
330,310 | Is it possible to implement a well-distributed hash table without using the % operator? | I'm looking to implement a fast, well-distributed hash table in C#. I'm having trouble choosing my hash-constraining function that takes an arbitrary hash code and "constrains" it so it can be used to index the buckets. There are two options that I see so far: On one hand, you can make sure your buckets always have a p... | Modern hash table implementations do not use the modulo function. They often use power of two sized tables and chop off unneeded bits. An ideal hash function would allow this. The use of modulo combined with prime number table sizes arose in the days when hash functions were generally poor, as they often are in .net de... | 12 | 9 | 2,449 | 2016-09-06T16:20:29.873 | database_errors | softwareengineering.stackexchange.com | |
844,184 | My site send spam automatically | When I run the command mailq on my site a get an output like this: [CODE] where vvv.xxx.yyy.zzz is my ip address When I search for spam on the mail.log I've got this [CODE] Pleasse any suggestion to stop this | See this thread perhaps one of: If it came from elsewhere and was relayed to somewhere else entirely, postfix is currently functioning as an open relay. This is very, very bad and you should tighten up your smtpd_recipient_restrictions and smtpd_client_restrictions settings in [CODE] . If it came in from localhost, it'... | 0 | 2 | 349 | 2017-04-12T18:17:49.307 | infrastructure | serverfault.com | |
577,264 | What does this log mean? | While my application is running (with a lot of traffic), I see this in error log but I dont even understand what it is about. I guess it's optimizing some configuration but I need a more formal explaination. [CODE] | That is verbose output from the [CODE] utility for shrinking PNG images. You may suppress this output with the [CODE] option. Though probably one of your gems is calling it and you have little control over whether it passes the option. | 3 | 8 | 313 | 2014-02-21T04:02:53.987 | infrastructure | serverfault.com | |
39,093 | Options for installing software on Amazon EC2 Windows instances | I've been running Linux servers on Amazon EC2 for a while now; the experience has been great. I've recently needed to bring up a Windows server to run some Windows-only software that our product needs to use, and am running into a problem figuring out how to install the software, which is only available on DVD. With Li... | If your upload speed is generally pretty good, then it looks to be a slow upload to amazon, so using any sort of third party in the middle my help your speed, say uploading to and FTP site, then downloading from Amazon, which should be quicker than upload. Yes it involves an extra step, but it may make it quicker in th... | 4 | 2 | 18,595 | 2009-07-10T19:06:22.637 | infrastructure | serverfault.com | |
803,760 | "NOQUEUE: reject: RCPT from thridparty.mailserver: 554 5.7.1 Relay access denied" | I have recently upgraded my production server (Ubuntu 15 to Ubuntu 16.04.1). Before the upgrade, I've follow this tutorial for configuring Dovecot/Postfix and Vimbadmin. Now, i can send succefully email but it's not possible to receive any e-mail. I have this error message from the mail.log : [CODE] Sep 17 21:00:38 Her... | You need to set [CODE] to include your domain(s). http://www.postfix.org/BASIC_CONFIGURATION_README.html The mydestination parameter specifies what domains this machine will deliver locally, instead of forwarding to another machine. The default is to receive mail for the machine itself. See the VIRTUAL_README file for ... | 2 | 3 | 9,557 | 2016-09-17T19:41:51.477 | infrastructure | serverfault.com | |
614,787 | Varnish won't start as service but works fine from command line? | We're trying to setup a varnish on a Cent OS 6.5 64 but can't get it working as a service. What could be the reason for the following error? [CODE] This works perfect, it's the same args as in DAEMON_OPTS in the config. [CODE] I found some information on how to debug in the varnish forum which gives me this: [CODE] But... | I ran into the very same issue, I found the cause. It is caused by SELinux, you can disable it temporary with [CODE] but this is not recommended and you should create a policy file for it to run. I might come back to this when I have some free time. | 3 | 1 | 14,596 | 2014-07-23T10:09:26.493 | infrastructure | serverfault.com | |
682,187 | Fail to trigger my php script when mail received by my Postfix | I am running Postfix mail on ubuntu 14.04.1. I want to "trigger a PHP script when Postfix server receives a mail" After investigation and the help of many tuto, . I have configured " postfix " & " Postfix virtual Aliases " first time (I don't have deep knowledge of it) and I wrote my php code but the script output is a... | Do a tail -f on maillog, pipe it into your program and look for delivered statements. Then, you'll not be interfering with the system's spam filtering, and will only get solid hits. You'll also know who received the message - it's in the log file... As for php, well, it's the wrong language for this, but your watching ... | 3 | 1 | 1,770 | 2015-04-12T19:26:36.257 | infrastructure | serverfault.com | |
456,665 | What's the difference between WSGI <app> and <module>? | I followed these instructions to serve Python (Web2Py) via uWSGI . However, the web server returned an error: uWSGI Error Python application not found until I modified the config.xml config file from: [CODE] to: [CODE] What's the difference between and ? Why did work, but not ? | the --app option is deprecated by more than a year (it should be reported in uWSGI logs if you use a stable version 1.2/1.4). For wsgi apps you use --module (for python modules) and --wsgi-file (for .wsgi files) | 3 | 4 | 1,917 | 2012-12-10T08:34:15.483 | infrastructure | serverfault.com | |
37,526 | How to test behavior of client side UI/Performance along with load test with n users for desktop applications? | I have to perform load test on a desktop application. So, I used visual studio to test load on web server with 100 users then it worked fine & got no error. But in real time, I got different behavior on the client side when we do the same activity manually while 100 real users are working together & using that applicat... | I always have used JMeter for Performance Testing. On this question, I think watching this tutorial may help you for client-side performance testing: https://www.thoughtworks.com/insights/blog/client-side-performance-testing-tutorial | 3 | 3 | 2,876 | 2019-01-29T10:27:11.620 | data_quality | sqa.stackexchange.com | |
66,032 | Sequence and table with the same name? | Can we have a sequence and table with the same name? I am trying to create a sequence with the same name as an existing table, but I get this error: There is already an object named 'XYZ' in the database. I haven't found any documentation about this. | An attempt to document this is made here: CREATE SEQUENCE (Transact-SQL) sequence_name Specifies the unique name by which the sequence is known in the database. It is not very clear that the name must be unique across all objects in the database. And even that is not true. The name must be unique within the schema in a... | 0 | 3 | 488 | 2014-05-28T06:17:57.053 | warehouse_errors | dba.stackexchange.com | |
551,530 | AWS Cloud Formation.Requires capabilities : [CAPABILITY_IAM] (Child Stack) | IMPORTANT I'm building the TemplateURL dynamically. [CODE] I'm running a CloudFormation template in the AWS Console. Running Stack Directly I started with a template that used IAM resources, and the console prompts me to acknowledge IAM capabilities when running the stack directly. Running Stack as a child I then tried... | When building the TemplateURL dynamically the validation checker cannot see if there are IAM resources in advance, and this is why it won't ask for the IAM_CAPABILITIES. The best work around for this problem (right now) would be to create a dummy IAM resource in the master template to get the prompt. | 4 | 1 | 8,316 | 2013-11-08T00:54:28.933 | infrastructure | serverfault.com | |
17,650 | Bandwidth / CPU throttling for manual testing | I have a requirement to manually test the way in which our websites perform across a range of bandwidth and hardware specs. The testing will be manual, as there are a number of subjective factors that need to be monitored. Historically, I've used Fiddler and Chrome Dev tools to simulate bandwidth issues and (I think) i... | Assuming you are using Windows you can define the CPU settings under Power Options in the Control Panel [CODE] Select the plan you require and "Edit Plan Settings" then select "Change advanced power settings" (I would suggest you set up a separate plan for each scenario you plan to use to make it easy to switch and rep... | 3 | 1 | 567 | 2016-03-17T16:49:41.710 | data_quality | sqa.stackexchange.com | |
828,387 | View match-clients works only with subnet, not with single IP address | I'm running Bind on OpenWrt 15.05.1 as DNS server. I wanted to set up multiple view, with different zones. [CODE] And it works well, but only if the IP address in "blacklisted" acl has a subnet at its end (like that: 10.0.1.10/28). But I'm trying to target only one IP, which is not working for some reason. Thanks for r... | update [CODE] sections with [CODE] in your normal view | 0 | 0 | 2,120 | 2017-01-24T21:32:50.933 | infrastructure | serverfault.com | |
111,206 | How to enforce a constraint over multiple tables? | I have the following five tables: PRODUCT FEATURE PROVIDER PROVIDER_PRODUCT PROVIDER_FEATURE The logic is as follows: A generic [CODE] can have one or more [CODE] s. There are different [CODE] s who are delivering the same product, but with different details, and the same [CODE] s, also with different details. The prob... | This can easily be done by using cascading keys that overlap. Here is an example using the Oracle Data Modeler (note there is a bug in this tool or a configuration issue as the Provider_Feature table should show each column as PF meaning both PK and FK): In this example, the PK to Provider Product includes the Product ... | 5 | 6 | 4,847 | 2015-08-16T15:07:57.100 | database_errors | dba.stackexchange.com | |
41,941 | Testing REST - submitting a web-form. Identifying why the server responses with 500 for some emails and for some - 200 | The troubled email is teststudent12@skyeng.ru, the URL is https://junior.skyeng.ru/online-uroki-po-matematike/ (form is placed almost at footer). The website to test is in Russian. If you want to help me - please translate it in Chrome, it's easy. Or you just go directly to Postman: [CODE] So the response is 500 Intern... | Your testing is good. You are considering different possibilities and conducting experiments to see what happens. That is great. I would continue that process. Here are some thoughts for you to try out. They are not answers you can copy and paste (which, as you indicate is good), they are ideas for your to try out your... | 3 | 2 | 108 | 2019-12-24T06:39:20.853 | api_errors | sqa.stackexchange.com | |
165,741 | MySQL's innodb_file_per_table and "too many tables" | I'm running MySQL (5.0 but I don't think it matters for anything after 4.1) and I've seen advice about using the [CODE] configuration option for InnoDB tables. This is usually done so you can better control how much disk space is used by InnoDB tables since that space isn't ever recovered even if that table is later dr... | That is a nice number of tables, but the thing to remember here is that not all of them are going to be open at once - most times you'll set the MySQL parameter for open files to around 300-500, and MySQL itself will keep the ones most active on your system in the memory table pool (cache, if you will) much like how th... | 3 | 4 | 2,136 | 2010-07-30T20:53:29.573 | database_errors | serverfault.com | |
1,154,052 | Apache: 500 error, PHP fails on just one specific path | I need another pair of eyes to help debug an issue. This will be a long message. I'm going to provide a lot of context because I'm not sure which details might be important. We have two servers: dev, and production. The existing servers are running RHEL7 and due to hit end of life. I am in the process of building two n... | Apache only shows [CODE] in the logs because you are using [CODE] and Apache doesn't know the details of the problem. It just forwards the error code. [CODE] has its own log file which should show a detailed error message. | 1 | 1 | 107 | 2024-02-21T21:25:57.393 | api_errors | serverfault.com | |
25,366 | How do you decide what kind of database to use? | I really dislike the name "NoSQL", because it isn't very descriptive. It tells me what the databases aren't where I'm more interested in what the databases are . I really think that this category really encompasses several categories of database. I'm just trying to get a general idea of what job each particular databas... | Relational databases (SQL) are great for data that the underlying model remains stable. Many implementations have been around for a while (Oracle, DB2, SqlServer) and are stable and secure. Also, it's very easy to find experienced people to administrate them - and database admins are a must! The programmers should not ... | 32 | 6 | 13,623 | 2010-12-10T20:35:05.163 | api_errors | softwareengineering.stackexchange.com | |
885,932 | DNS Delegation warning "The smallest possible legal referral packet is larger than 512 octets (it is 536)" | I want to setup a domain with two different DNS providers - Route53 and Azure. When testing the domain with ZoneMaster I get the following warning: [CODE] Here is the link to the test: https://zonemaster.net/test/44c3627a5ec7e269 Is this important? If so, how should I fix that? Thanks | It is due to the fact that you have 8 nameservers which do not compress themselves very well because they are in different domains and have both A and AAAA records (which is very good in fact) so the packet is larger than 512 bytes. While it should not be a problem anymore today, you may hit old hardware/software that ... | 0 | 1 | 112 | 2017-11-30T10:38:53.513 | infrastructure | serverfault.com | |
463,482 | smtpd_helo_restrictions = ..., reject_unknown_helo_hostname occasionally rejects mail I care about, how to handle? | I have configured my postfix as follows: [CODE] This is working well because most spambots don't seem to have correct reverse lookups. But every once in a while I run into mail I care about getting reject, because the mail source server admin doesn't care about configuring his server correctly. For example here the ser... | What is the optimal way to handle this from my side? you have 2 ways Is adding these "special" hosts to mynetworks = my only option? No, it does Is perhaps my whole smtpd_helo_restrictions setup wrong in some significant way? no, it has a general restriction rules. The easiest way. You can skip checks for these host [C... | 1 | 3 | 9,792 | 2013-01-06T18:56:08.917 | infrastructure | serverfault.com | |
830,851 | Intermittent Kerberos failures: GSSAPI authentication initialization failed | When using MIT Kerberos Ticket Manager with PuTTY 0.65 and WinSCP 5.9.3, I am sometimes unable to get a connnection to the server I am logging into. PuTTY will respond with either [CODE] or [CODE] It seems to happen most often if I try to connect to the server before remembering to obtain a ticket first. After getting ... | Check your DNS settings when the problem is reproduced runing [CODE] . Among DNS servers should not be anyone who does not know about the domain to which your server. You can check this by run for each DNS server ip: [CODE] If the query does not return any entries for some servers - try to remove this server from your ... | 2 | 2 | 1,893 | 2017-02-06T13:26:47.417 | api_errors | serverfault.com | |
727,806 | Domain controller network profile starts as public | First off, I'm a programmer that needs to fix certain networking issue's so bear with me :). Also, sorry for the question title. I couldn't think of a better one. Secondly, it's not the same as the question: Domain Controller thinks its on a Public Network , since that guy had IP v6 enabled and disabled that to solve h... | I'm not following you as your question is a bit of a ramble. That being said, there's no wizardry involved so stop making changes that you have no idea of the effect of. You should not be manually assigning a connection-specific DNS suffix, so undo that change. Don't manually try to set the network location, so undo th... | 0 | 2 | 6,602 | 2015-10-09T07:46:58.777 | infrastructure | serverfault.com | |
1,011,331 | Active-Directory blocks LDAP connections from other hosts | I am trying to connect to Active-Directory using LDAP protocol. If the host is "localhost", then there is no problem. If I change the host to anything else, the server responds with wrong user/pass. I have tried changing the "username" to user@domain, DOMAIN\user... thanks. (OS: win server 2012) Screetshot explaining e... | Using the server name (example: SERVER.DOMAIN.COM), instead of the ip directly fixed the problem. That means the dns is required. | 2 | 0 | 210 | 2020-04-07T18:37:55.460 | infrastructure | serverfault.com | |
357,587 | nginx+php-fpm help optimize configs | I have 3 servers. First server (CPU - model name: 06/17, 2.66GHz, 4 cores, 8GB RAM) have nginx as load balancer with next config [CODE] And configs from nginx.conf: [CODE] And config php-fpm: [CODE] In top I see 20 php-fpm processes which use from 1% - 15% CPU. So it's have high load averadge: [CODE] Second server(CPU ... | You can see that your first server is doing a lot of I/O wait (top shows 24.8%wa). That means that somebody is doing I/O - maybe your PHP scripts? Long-running I/O work can slow down any webserver that uses PHP-FPM and lead to high load numbers. | 1 | 2 | 3,276 | 2012-02-07T12:00:50.617 | database_errors | serverfault.com | |
733,390 | Master is Dead - Promote LDAP Slave to Master | I have inherited an undocumented openLdap setup - one Master server with two slaves. The Master died hard last night - disc corruption - the backup was a clone system on the same server and disk - so that is useless. Users can still authenticate using the two backup server. Can anyone tell me how to promote one of the ... | It could be as easy as deleting whole [CODE] section on one slave, than modify [CODE] setting on the other slave to point to the first one. As I understand, the [CODE] bind user, [CODE] is replicated, so it's present in all nodes, so no need to change the authentication section. Best luck, anyhow. | 4 | 1 | 1,918 | 2015-11-02T20:15:10.543 | database_errors | serverfault.com | |
537,787 | High Availability Solution for VM on local Storage | Hi I have the following setup for using vSphere with HA: My problem with this is the finding some kind of reasonable HA for the database server. The IOP requirements of the database server are very high, as such the database files are spread across three local SSD raid 10 arrays. The storage network is 10gbE and while ... | The vSphere Storage Appliance can "share" local storage between different vmware hosts, but I don't think its included in essentials plus. There is vSphere Replication , which is a vmware appliance that could replicate the database VM and its local storage to another host's local storage. Its also included in essential... | 8 | 4 | 7,270 | 2013-09-10T12:45:32.423 | database_errors | serverfault.com | |
642,255 | Directadmin default php mail from (exim) | We use a server under NAT and it hosts a domain with unvalid tld as "MI" and when we try to send a mail with phpmail at most cases we got this error in /var/log/exim/mainlog [CODE] I create a file /etc/email-addresses with following content: [CODE] And when I try to import it in exim.conf in REWRITE CONFIGURATION with ... | I strongly suspect the file you are editing is not generating the exim.conf the way you expect it to. Take a look at the actual exim.conf to make sure that it's generating that rewrite section properly. It should have a line that says begin rewrite , followed by the line you are adding. I found I was able to replicate ... | 0 | 0 | 1,134 | 2014-11-05T16:17:45.663 | infrastructure | serverfault.com | |
19,691 | Unable to reset the password of users in postgres | Evrytime i run, [CODE] it asks me for a password which I did not set. I simply installed the postgres. I have gone to the pg_hba.conf. [CODE] I changed the postgres method from [CODE] to [CODE] and then ran [CODE] . Even then it continues to ask for password. i am not sure where am I going wrong? What should I do? | I was finally able to solve the issue thanks to this site, http://scratching.psybermonkey.net/2009/06/postgresql-how-to-reset-user-name.html | 1 | 3 | 1,966 | 2012-06-21T21:27:28.177 | warehouse_errors | dba.stackexchange.com | |
174,165 | Table restructuring for efficiency? | I am moving data from Access to SQL Server. One of the tables I'm working with has some columns like this: ID | Date | Sensor1 | Sensor2 | Sensor3 | Sensor4 | Sensor5 | Sensor6 | Sensor7 | Sensor 8 | Sensor9 Certain Facts: At any point atleast 3 of these columns would be filled. More Sensors could be added in the futur... | Only you can answer if the the change is worth the effort. Yes restructuring would be marginally more efficient. The main advantage being that new sensors can be added in the future without altering your table structure. The downside is that it's harder to enforce business rules and logic. The advantage of your current... | 1 | 0 | 260 | 2017-05-22T00:22:57.127 | database_errors | dba.stackexchange.com | |
371,728 | How to unit test this converter? | I am beginning with unit testing in c#. Here is my converter: [CODE] Here, if I pass a string "TestString" or any string without %, its going to return me the same string, right? What should I pass as value? | You've got three main things to test: Passing in a null value Passing in strings that don't get mangled Passing in strings that do get mangled, making sure they are mangled correctly Beyond that, you might want to check if your logic breaks with an empty string. NOTE: it looks like this is only supposed to replace all ... | -4 | 2 | 2,098 | 2018-05-29T12:15:49.763 | api_errors | softwareengineering.stackexchange.com | |
1,146 | How to answer DIY question when OP wants the cheapest, not best option? | There are a handful of questions where the OP wants a cheap, or the cheapest option. There are cases where you cannot really give them a good answer because they claim that every option is above their budget. In some cases the constraints that they put on make it impossible to answer the question, or at least give a go... | Sometimes a cheap fix that last a few years is what is needed . For example if a shed roof is leaking, but the shed is going to be replaced in a few years time. Sometimes the questions can still have a great answer for example “How can I soundproof my door?” could have a great answer starting off with the need to seal ... | discussion | 8 | 12 | 184 | 2016-02-22T21:06:22.310 | data_quality | diy.meta.stackexchange.com |
129,187 | delayed login to Windows SBS 2008 | Last week I had a problem with my server (Windows SBS 2008 ), so I made a restore point to resolve that problem. But after I did it any workstation (Windows 7) try to login takes 50 seconds. I tried to find an error in event viewer, but there are no errors. Can anyone help me? | This problem is often down to the client not being able to communicate with the domain controller, usually because the clients primary DNS server is not set to the IP of the SBS server. | 2 | 1 | 435 | 2010-04-04T09:15:51.190 | database_errors | serverfault.com | |
70,741 | Administrating Multiple Websites (ASP.NET & ASP) | Scenario I am having 30 applications built using Classic ASP, and 25 applications built using ASP.NET. Currently, they are hosted in a single IIS. Each application is configured as a website. So, there are a total of 55 websites. The question: I want the session timeout values for ASP apps to be 10 minutes, and for ASP... | You're in luck that those 2 settings are managed separately anyway. Just change the settings at the top level of IIS and it will take care of this for you. For Classic ASP, the session timeout is under the ASP object -> Session Properties -> Time-out. For ASP.NET, the session timeout is under the Session State object -... | 1 | 1 | 586 | 2009-10-02T12:48:24.580 | infrastructure | serverfault.com | |
932,310 | Retry mount NFS share if failed | I have a NFS share that mounts from /etc/fstab, so that it mounts on boot. But if the NFS share isn't available on boot, how can I make it so that it retries until it can mount it? | The bg mount option in /etc/fstab should do what you ask for: from man nfs: [CODE] | 0 | 3 | 4,415 | 2018-09-24T02:20:24.150 | infrastructure | serverfault.com | |
1,097,928 | RHEL 8.2 cannot change/remove /home directory | In my RHEL 8.2 box I want to remove the disk space from /home (/dev/VGSYSTEM/LVHOME). I umount /home, mount /dev/VGSYSTEM/LVHOME in /mnt and try to move the only home directory in /mnt to /home... but [CODE] [CODE] The root file system type is XFS. Any ideas? update: this issue happens with /opt, too | /home and /opt actually ARE immutable but I did not realize because I assumed [CODE] and [CODE] would show the attributes of /home -- big wrong assumption [CODE] does show the actual attributes [CODE] | 1 | 1 | 177 | 2022-04-06T09:02:57.770 | infrastructure | serverfault.com | |
1,083,124 | netstat reports UDP ports with no owning process | When I run [CODE] I get a slowly growing number of ports. It grows about 100 an hour but the rate varies considerably. When I close the process, the ports do not disappear from the list. Similarly when I kill the process. Restarting the machine obviously resets the list but it just grows again. I have multiple machines... | I am seeing the same thing (Monterey 12.1). The problem went away after upgrading to Montery 12.2.1. Using 12.1, [CODE] grows by 30 lines every minute. After four days my system becomes slow and I start getting [CODE] errors. [CODE] does not grow. After about four days: [CODE] Discussion on Reddit speculates Cisco AnyC... | 3 | 1 | 881 | 2021-11-10T09:57:11.447 | api_errors | serverfault.com | |
6,431 | SQL Server Backups - A couple of questions | We run our weekly backup job at 9pm on Fridays and we are experiencing a couple of issues with regard to disk space (which gets perilously low at times) and performance. We're looking at streamlining/optimising what happens and would appreciate your comments. Specifically: The backup process is taking about 4hrs to upd... | (1) Yes, I usually have the backup process by itself. I would not be doing much of anything during my backup time if I can. You might have it take the backup and then do the update on stats. As it sounds it seems you are running two jobs (1 for backup, 1 for update stats) at the same time? (2) Do you copy the backup to... | 12 | 8 | 688 | 2011-10-03T08:37:05.897 | database_errors | dba.stackexchange.com | |
1,041,656 | AWS EC2 SSH connection disconnects after some times and then starts throwing connection timed out error on every SSH connection request | I've created an ec2 instance and a ssh-rsa keypair. I then try to connect with the instance using visual studio code remote-ssh extension. In the first try, it connects successfully. I can access files, create js files. I then wrote JS code, and while I'm writing code, after couple of minutes, ssh session gets disconne... | I had same issue after changed default shell to fish from bash, it works after I changed it back. | 4 | 1 | 1,964 | 2020-11-07T15:11:06.470 | infrastructure | serverfault.com | |
335,284 | Disadvantages of using a nullable foreign key instead of creating an intersection table | Say I have the following ER diagram: Now if I represented the relationship using a foreign key of [CODE] in [CODE] , I could have [CODE] values (because a [CODE] is not required to belong to a [CODE] ), for example: So the correct way (based on what I have read) is to create an intersection table to represent the relat... | The two models represent different relationships. By using a join table, you are modeling a many-to-many relationship. By using a simple foreign key, you are modeling a one-to-many relationship. The disadvantage of a nullable foreign key is being unable to model the relationship as many-to-many, if that is what you are... | 22 | 22 | 25,966 | 2016-11-03T16:47:19.103 | api_errors | softwareengineering.stackexchange.com | |
1,060,562 | Unlock GPO enabled "Lock all taskbars" on one PC | I am facing strange problem here. We have GPO that disables "Lock all taskbar" function in Windows 10. One user somehow managed to resize the taskbar and I want to fix this but its giving me a headache because I don't want to disable this policy for all domain users so I was thinking if there is an option to disable th... | This is a user setting, not a computer setting. You can't exclude it by moving the computer account to another OU as this setting isn't applied to the computer, it's applied to the user. Create an OU for the user account and move the user account there. Create a GPO that sets the "Lock all taskbar settings" setting to ... | 1 | 2 | 482 | 2021-04-16T05:25:16.937 | infrastructure | serverfault.com | |
34,594 | Does installing SQL Server Database Engine and Reporting Services in Azure require two virtual machines? | We are evaluating moving a large-ish web application comprising ASP.NET, Classic ASP and SQL Server Reporting Services into Azure, and we want to know the "best practice" for installing the Database Engine and Reporting Services. In our current environment, we have a standalone Database Engine, and a separate server th... | To purely answer your question: If you set up two different VMs one running the SQL Server and the other one hosting the SQL Server Reporting Services, you would be charged twice the per-hour price of a Virtual Machine, but only once for your the SQL Server License. Best Practice I guess the "best practice" answer woul... | 2 | 1 | 1,057 | 2013-02-12T03:26:17.460 | bi_errors | dba.stackexchange.com | |
233,770 | Automated GUI tests take too long because of doing same steps before the "main test action" can proceed | We are developing a desktop application and I am responsible for GUI testing. Currently we have around 500 tests which take 8 hours to complete. The tests are testing almost every button/menu/field etc. in the application. Some functions are taking 3 - 15 minutes because the application is actually measuring something,... | There are several approaches to attacking the time bloat of automated testing. Some of the approaches such as running multiple virtual environments and running the tests in parallel, and reducing the scope of what is actually tested may not not suitable for your workload, but are worth mentioning as possible strategies... | 1 | 4 | 1,907 | 2014-03-26T13:55:10.687 | api_errors | softwareengineering.stackexchange.com | |
331,937 | Performance impact when querying without partition key on a partitioned table | Assuming I partition a table of large size (say 6TB) by month. We are serving very high traffic of around 300 RPS. Sample schema [CODE] What will be the performance impact if I query on this table without date_created in the where clause. It will not give a better performance for sure as it cannot do partition pruning ... | (To many questions to fit in a Comment.) I assume that [CODE] is not [CODE] ? Please provide the query; many details could make a difference. In particular, I cannot answer your "why" without seeing it. Also, we need to see the whole [CODE] (you don't need to show all the partitions, just tell us how many.) And show us... | 0 | 0 | 67 | 2023-10-07T11:34:08.483 | database_errors | dba.stackexchange.com | |
155,526 | What allows SQL Server to trade an object name for a string passed to a system procedure | What causes it to be legal to pass an object name to the system stored procedure [CODE] ? What mechanism converts the object name to a string? e.g. [CODE] It seems odd that I'm not required to single quote valid proc names, unless it has a [CODE] separating schema name and procedure name. I'm looking for an explanation... | The first argument to the system stored procedure [CODE] is: [CODE] [CODE] [CODE] Is the qualified or nonqualified name of a user-defined, schema-scoped object. Quotation marks are required only if a qualified object is specified. If a fully qualified name, including a database name, is provided, the database name must... | 16 | 12 | 586 | 2016-11-16T23:07:36.783 | database_errors | dba.stackexchange.com | |
363,628 | Do Dual CPUs Provide Fault Tolerance? | Let's say I bought two Intel Xeon's and installed them into server class hardware... If one CPU failed would the other still function and pick up the slack, therefore providing fault tolerance? This does not seem very likely, but I figured I would ask instead of making any assumptions. | In a normal dual-socket system, no, although there are servers that do permit hot-swapping of processors and RAM. So these things do exist, but they're at the very, very high-end of the market. It's not really a big deal - of everything in your server that can fail, the processor is right on the bottom of the list, nex... | 16 | 29 | 4,087 | 2012-02-25T01:35:02.783 | infrastructure | serverfault.com | |
4,611 | Jenkins Job vs Jenkins Pipeline | BACKGROUND : We have one Selenium automation project which is shared in BitBucket repository. Project is maven project. we have 10 [CODE] files for all modules OVERVIEW: Now we want to trigger the automation build once any changes committed in AUT application code. Also want to trigger the build for failed testcase in ... | Jenkins Job and Jenkins Pipeline are basically the same. In a pipeline you define the steps of your job as groovy code (actually it is CPS https://github.com/jenkinsci/workflow-cps-plugin , but that should in general just be a custom groovy interpreter). The point, that is making pipelines "better", form my perspective... | 7 | 6 | 21,859 | 2018-07-26T12:30:37.293 | pipeline_ops | devops.stackexchange.com | |
220,737 | Simple KVM question | I have this KVM here at work to support about 6 servers http://www.newegg.com/Product/Product.aspx?Item=N82E16817107413 Now my problem is that the management console I want to use is a tad bit far away , 16 - 20 feet. I believe I could get this working with a wireless keyboard / mouse, but it only has PS2 connectors. I... | You can get ps2 extension cables which will work at that distance. Otherwise, you can buy almost any usb>ps2 connector- just be aware that prehaps not all of your special functions on your keyboard/mouse will work. Also be aware that you would need seperate connectors for keyboard + mouse, so you might need to buy them... | 0 | 1 | 141 | 2011-01-10T17:15:53.283 | infrastructure | serverfault.com | |
837,358 | Windows 2012 R2 Server Failed Security patches; How to see why failure and re-install? | Installed a long list of Windows Updates on Windows 2012 R2 Server. Not all but many of the Security updates failed, the reason is very vague, just a Code 80246010 and when I click Get Help for this, useless. Can't find EventViewer entries for these failures, unless I'm not looking in right place. Also I don't see a wa... | Every Windows Update installation attempt (success and failure) is shown in the History section of the Windows Update control panel . You can find additional information in the Setup log from Event Viewer . And for a very verbose output of what's happening in Windows Update, have a look at the C:\Windows\WindowsUpdate.... | 0 | 0 | 4,549 | 2017-03-09T21:29:51.177 | infrastructure | serverfault.com | |
394,831 | Is this zone file correct? Just to point a subdomain to another machine | I am running bind9 on my home machine and hosting several zone files. This is working nicely and I am running various web services. I now want to host a web service on an external machine (a Linode), and would like to verify that my host file looks correct; In this example [CODE] is my home machine, and [CODE] is my Li... | Where is your [CODE] record for ns.example.com? The debate about using [CODE] s or multiple [CODE] records is up to you: DNS - Multiple A records or 1 A record and lots of CNAMEs? | 2 | 2 | 436 | 2012-06-01T19:05:53.987 | infrastructure | serverfault.com | |
267,640 | Postgresql 4 table joins | I have one doubt in posgresql joins and filters. Please find below sql code snippets. 1) [CODE] 2) [CODE] Both literally having same meaning but logically it's not working as both of the snippets are giving different counts. I want know how controls will be passed here to execute this code. Can someone help me to under... | As indicated in comments these queries are not equivalent. To understand why the are different, let's examine them: [CODE] Since no rows match the join predicate, B.x and B.y are replaced with null in the resulting relation: [CODE] If we move B.y to the where clause: [CODE] you will get 0 rows as a result. To understan... | 0 | 0 | 48 | 2020-05-21T18:23:27.997 | database_errors | dba.stackexchange.com | |
803,108 | Lighttpd rewrite with dot (.) in URL | I've an installation of lighttpd under Debian running a small API. The current rewrite rules are: [CODE] The ideia is to (like usual on Apache): If any static file is called just serve the static file right away; If a URL is not found as a static file rewrite the request to [CODE] ; It works fine most of the times, how... | Perhaps this can be done using Lighty's server.error-handler-404 option with given index.php as error page. If you are proccessing some additional information about wrong URL (I see /$1 in second rewrite rule) you may try to get this via PHP's SERVER_HTTP_REFERER. | 0 | 1 | 439 | 2016-09-14T20:11:06.050 | infrastructure | serverfault.com | |
48,962 | How to deal with long running operations in End-2-End testing? | We use TestCafé to perform E2E-tests for a rather large management portal. Due to certain dependencies, creating or updating a resource can take up to 30 minutes, which is why we implemented loops checking for those results. To save time, not every single test but mostly every fixture creates its own resource and then ... | We do not have direct access to the system that is causing the long waits In the environments that you run your automated checks, you can stub out this system (e.g., using MockServer or WireMock ), so its response will be under your control. You can then check the integration between your system and the external one wi... | 0 | 1 | 307 | 2021-08-31T20:47:27.120 | data_quality | sqa.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.