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 |
|---|---|---|---|---|---|---|---|---|---|---|
864,855 | Logical Drives degraded due to the loss of a redundant path. What is wrong? | HP p822 (four external minisas ports) to pair of d2700s Storage Enclosures. Two ports on the p822 are unused. The partitioning is not at all identical. The top box has four different logical drives and the bottom box is one single drive for backups. i have the minisas cables arranged in the following "Dual domain examp... | Do you check cabling? I experience problems with some mini-SAS cables. Sometimes, you must pull the blue trip/tab before you can correctly push the connector. | 0 | 1 | 2,024 | 2017-07-24T13:42:52.360 | database_errors | serverfault.com | |
216,777 | How to limit inserts to one row per user per month? | I would like to make a monthly contest. I have Users and Products. Each user can vote for products he/she likes the most this month. My vote table looks like this: [CODE] A user can like the same product but not in the same month. My problem is that I can't figure out a valid Primary Key to prevent duplicate votes. If ... | MySQL does not allow functions in keys, only column references. So if you want to restrict by a UNIQUE key, you need another column that would contain only the year and month for the event. The easiest and most straightforward approach is to reduce the [CODE] value to something like [CODE] . If you are using MySQL 5.7 ... | 1 | 2 | 609 | 2018-09-05T12:01:24.593 | data_quality | dba.stackexchange.com | |
279,383 | Should i avoid FaultException for Custom Validation Error messages to client | We are as a team working on a project which currently using WCF as in between client and server. All business rules are written on managers classes which are used by service so its means no validation rule will be on client side (for example duplicate user name ) so far in case of duplicate user name validation fails w... | what are cons of using ref varibales as parameter in service operation contracts ? I first wrote: "The major con is that this does not work. Period. You need another approach." It seems that that's not correct, as long as you don't leave the .NET environment, it seems to work. However, [CODE] parameters are considered ... | -1 | 1 | 741 | 2015-04-17T08:36:19.740 | data_quality | softwareengineering.stackexchange.com | |
149,650 | Apache2 slow serving static while healthy | My Apache status looks like; [CODE] Server load is average 2 on a 4 core machine. IO utilization is 10-15% and doesn't have many jumps over 70%. Machine has almost 4 gb free and uses 0 swap. The site on the machine is a PHP site. All PHP code is optimized and fast mostly when it gets accessed, however sometimes request... | Maybe Apache runs out of file handles? How many file handles you have allowed it to have? The default 1024 can be a bottleneck quite soon. In Linux you up the limits in [CODE] file. Is there lots of disk activity during the stalls? If you have Apache access log and other logs very verbosely enabled, maybe it's the file... | 3 | 1 | 2,328 | 2010-06-09T14:32:31.420 | pipeline_ops | serverfault.com | |
292,953 | Access issue of an application running on tomcat | I have installed an application in a separate asset(server) and hosted it through Apache Tomcat. The link to access the application http://hostname:portname/appfolderdirectory can be accessed from the browser of the server but not from my computer. When I connect to that server using remote desktop connection and acces... | Check your [CODE] config file in [CODE] and see whether the Connector binds to 127.0.0.1 (localhost) or whether it binds to 0.0.0.0 or the LAN connection IP or some other non-loopback IP address. One of mine looks like this: [CODE] Then restart tomcat, and you should be able to access it across the network | 0 | 0 | 197 | 2011-07-22T06:38:01.803 | infrastructure | serverfault.com | |
285,090 | IIS6 - Classic ASP - "out of memory"/"out of string space" | We have a classic ASP application that's under significantly more load than usual. We are from time to time been getting "out of memory" and "out of string space" in the httperr. We do not usually see these errors. For the moment we cannot change the application. Is there anything we can do to the IIS config which will... | Does not changing the application mean not looking into why the load has increased or what pages are leading to this error? Based on what you've stated in your question, that's the place I'd start with. Otherwise, you've said application pool - I only support Classic ASP code, but can you increase the app pool recyclin... | 0 | 1 | 1,884 | 2011-06-28T22:22:36.800 | infrastructure | serverfault.com | |
412,300 | .htaccess RewiteRule Variable Issue | I am wanting to create redirect for urls using .htaccess http://shows.example.com/showtitle/sitemap.xml to map to my existing folder structure what is like http://shows.example.com/sitemaps/sitemap_shows_showtitle_3day.xml two variable the subdomain which can differ and the showtitle so i wrote [CODE] which redirects t... | Managed to get it working this way. [CODE] | 1 | 1 | 91 | 2012-07-29T16:01:36.020 | infrastructure | serverfault.com | |
438,040 | Apache2 VirtualHost on Debian not working | I am having some problems with Apache2 configuration. I have already tried to look for documentation on the web (Apache's site, Debian's site, here on serverfault, etc), but nothing really helps. I have tried different configurations, but my current configuration is the following ( /etc/apache2/sites-available/default ... | in your host file try setting mysite.dev to 127.0.0.1 instead of the pc's ip and also make sure that mysite.dev is the first virtualhost defined in apache, hope this resolves your issue | 0 | 1 | 246 | 2012-10-13T15:43:32.010 | infrastructure | serverfault.com | |
355,943 | Upload throttling in IIS 7 | I've got a situation where multiple concurrent file uploads are being executed in a web application. These uploads are of massive files, among several users, and it's choking the system into terrible latency issues. What is the best way for me to solve this problem? Preliminary searches suggest Bandwidth/Bit throttling... | Bandwidth throttling definitely sounds like the way to go. I would look into whatever firewall is residing in front of your web application to see if it has some kind of QoS functionality built in. | 1 | 1 | 334 | 2012-02-01T19:51:38.647 | infrastructure | serverfault.com | |
316,876 | Query Store plan forcing failed with failure reason NO_PLAN | I have a query in query store for which I have forced a plan. I can confirm the plan is forced with [CODE] and the plan shows up in the results However, if I look at the [CODE] column, I see [CODE] Some Googling took me to the following articles: Kendra Little Deepthi Goguri which both suggest that altering of indexes ... | Dropping and recreating exactly the same foreign key constraint won't prevent QDS plan forcing. The word exactly there includes the [CODE] state in [CODE] . The query optimizer doesn't apply simplifications based on a foreign key relationship if the constraint is not trusted. Trying to force a plan based on a trusted f... | 1 | 2 | 625 | 2022-09-14T11:22:40.067 | warehouse_errors | dba.stackexchange.com | |
599,005 | Cisco IOS - Stuck in Read Only Mode | I can't figure out what happened but I can not enable privileged mode in my Cisco 3750. At first, I tried: [CODE] to enter EXEC mode. My password would not work and it kicked me out after 3 retries. Did some troubleshooting and happened to try: [CODE] and the password worked. The Switch shows the "#" to signify EXEC mo... | The command enable n will give you the privilege level specified by n, which is a level from 0 to 15. To manage the box, you usually want 15. You can always recover the password by rebooting with a serial console attached and sending a break signal during the boot process. This is well documented at the Cisco site. In ... | 1 | 0 | 935 | 2014-05-28T06:45:36.383 | infrastructure | serverfault.com | |
1,052,677 | Schedule POD alone on a node | We're trying to isolate a problem with a specific pod and we would like to have it deployed all by itself on a node. (except for kube-system pods) Is there a simple way to get a high priority pod to be scheduled by itself ? (ex: set cpu requests to 100% ) | In general, you should not pin Pods to a specific node - so there are no specific feature for that in Kubernetes. But you can achieve this in multiple ways anyway. (ex: set cpu requests to 100% ) Yes, if your nodes are homogeneous (e.g. all have the same CPU amount) then, I think this is the best method. If your nodes ... | 0 | 0 | 253 | 2021-02-07T01:38:45.590 | infrastructure | serverfault.com | |
12,289 | Instead of binarising discrete variables for NN algorithms, could I attempt to assign them a value by splitting into buckets and sorting? | Creating a boolean for each value of each discrete variable explodes the number of features. I have an idea for solving it but I wasn't able to find anything on this on the internet, so perhaps someone could either point me to a resource or let me know whether they think this is possible. And if not, maybe point to ano... | Just taking the mean seems better, that way the distances between the groups is better represented than just indexing them by order. With the target you should be a bit careful not to include the current row for the mean, since for the test set and the actual predictions you cannot use that target either (for obvious r... | 2 | 1 | 47 | 2016-06-19T18:40:13.467 | data_quality | datascience.stackexchange.com | |
853,355 | Postfix - gmail encryption | My server is running on Ubuntu 14.04 and I have Postfix installed. When I send something to my gmail account, it goes to spam. I set up SPF, DKIM and DMARC, here is a confirmation: [CODE] But there's a red padlock saying: [CODE] . Emails from others have such a note: [CODE] Could you help me a little with this, what sh... | You are missing the [CODE] directive. [CODE] This will set it to opportunistic TLS, using encrypted connections if the server supports it, but allowing unencrypted connections if the server doesn't. The default value for [CODE] is [CODE] . | 9 | 20 | 3,804 | 2017-06-01T08:13:05.413 | infrastructure | serverfault.com | |
597,445 | How to install GD library in php? | when I tried to use imagefromjpeg() function in PHP,it throwed error.So, I tried to install GD library using the following command: [CODE] But I got the following error. [CODE] I am using Ubuntu 14.04LTS. I recently upgraded my OS from ubuntu 13.10. How to overcome this error? The output of [CODE] is : [CODE] | It seems you have installed PHP via launchpad PPA: https://launchpad.net/~ondrej/+archive/php5 Check your apt sources.list if the ppa is still active. On 14.04, you should have these repos active: [CODE] Explanation: It seems you had the additional PHP-launchpad repository added before, but it was deactivated during di... | 12 | 5 | 48,529 | 2014-05-21T10:09:59.267 | infrastructure | serverfault.com | |
941,738 | After changing permissions to home/ec2-user of the main volume I can no longer SSH in even after changing permissions | AS the title mentions. I was dumb enough to change the permissions of [CODE] recursively to 777 after which I could not log in. I then detached the volume and then attached it to another instance and changed the permission to 700 recursively of that folder. Now when I try to connect to it using the following command I ... | SSH parameter [CODE] expects that the next parameter is the key name . In your case [CODE] tells [CODE] to read the key from file [CODE] - not quite what you wanted :) The flow-on effect is that the next parameter (the key name) is deemed to be the host name, which it obviously can't resolve. This will work: [CODE] Upd... | 2 | 6 | 2,554 | 2018-11-27T02:06:52.900 | infrastructure | serverfault.com | |
874,833 | SQL query much slower on new server (5.7.19), vs old (5.5.52) | I'm moving my site from an old server to a newer one. As such, we are moving from mySQL 5.5.52 to 5.7.19 . However, there is a huge speed difference. I only happened to notice it as one of our scripts that normally takes 2 seconds to build a category, was taking 7 on the new one! The new server is a Linode 12GB RAM, 6 ... | Your additions of sort_buffer_size, read_buffer_size, read_rnd_buffer_size need to be REMOVED. This will allow higher performance defaults to work for you. Consider adding join_buffer_size = 512K which historically served you well. Will look at more of your details and may have additional suggestions later. | 1 | 1 | 1,498 | 2017-09-21T14:02:27.330 | database_errors | serverfault.com | |
914,623 | Our EC2 server, unreachable for 30 minutes then came back. No error indicated. No action taken | We have a [CODE] app running on a single instance [CODE] , [CODE] , with [CODE] , [CODE] upstream. We use an external service (pingdom) to monitor our web app. It's been a quiet month with 99.9% uptime. Last night around 3am the web app was unreachable for 30 minutes, then it became reachable again. Nothing was done, a... | Between 12:11 AM and 12:45 AM PDT we experienced impaired Internet connectivity in the US-EAST-2 Region. The issue has been resolved and the service is operating normally. https://status.aws.amazon.com/ | 0 | 1 | 55 | 2018-05-31T14:43:26.570 | infrastructure | serverfault.com | |
598,761 | foreman-installer on wheezy fails | I'm trying to install foreman on a Debian Wheezy machine. When I follow the guide on theforeman.org, I get the following error from the installer: [CODE] The /var/log/foreman-installer/foreman-installer.log file doesn't show anything more useful: [CODE] When I run the apt-get command with debugging on I get this: [CODE... | At the end, this turned out to be a proxy problem. After setting the enviroment variables http_proxy and https_proxy everything went fine. Up to this point I only had apt configured to use the proxy. | 1 | 0 | 1,353 | 2014-05-27T09:41:33.520 | infrastructure | serverfault.com | |
115,256 | Availability Groups and Transactional Replication | My client has a setup as shown below. AG Group A ---------> Server A (DB--> A) ----> Server B ( DB--> A) Transactional Rep --> Server A ( DB-->A ) ---> Server C ( DB--> B) AG Group B ---------> Server C ( DB --> B) ---> Server D ( DB --> B) where Server A -> Database A is configured for Transactional replication to Ser... | Distribution database should not reside on the servers that are part of AlwaysON availability group that the publishing database is (or will become) a member of. Replication configuration is coupled to the SQL Server instance where the Distributor is configured; therefore the distribution database cannot be mirrored or... | 3 | 3 | 1,641 | 2015-09-16T15:25:46.330 | database_errors | dba.stackexchange.com | |
1,095,290 | Procmail not bouncing emails | I have a catch-all email address for my domain, however I want to block certain addresses from receiving mail. Before, I was doing it like this: [CODE] This works fine, however, the email is silently disregarded. I want a bounce mail to be sent back to the sender so that they know that it's being rejected. I used simil... | Besides the obvious typo in your attempt, your example works if I put the recipe in my personal [CODE] . Here's a quick demo on Ubuntu in a fresh Docker container where I installed Postfix, Procmail, and Netcat, and created a user account for myself: [CODE] However, the same recipe in [CODE] causes the message to be de... | 1 | 1 | 295 | 2022-03-03T21:55:38.853 | infrastructure | serverfault.com | |
291,864 | Questions and opinions of a Cable line with a back-up T1 | My company currently has only a Covad T1 that connects the main office to the internet. This line is mainly for our billing office (located across the state) to connect to us for our Terminal Server. Our future plans for our main office include having a company E-Mail Server as well as a Web Site for employee access, a... | Depends on the internetworking technology used (e.g. multi-WAN router, firewall, etc.) You might get some bandwidth sizing information from your current T1 by going through its past utilization reports (Covad should be able to provide them, if not already doing so) Can depend on #1 | 2 | 2 | 93 | 2011-07-19T14:53:11.880 | infrastructure | serverfault.com | |
86,705 | Using MVP, how to create a view from another view, linked with the same model object | Background We use the Model-View-Presenter design pattern along with the abstract factory pattern and the "signal/slot" pattern in our application, to fullfill 2 main requirements Enhance testability (very lightweight GUI, every action can be simulated in unit tests) Make the "view" totally independant from the rest, s... | Finally we found a solution : - When you start dragging an object, the view sends a "drag" signal to it's controller. The controller gets the model object and puts a pointer to it in a shared "DragandDrop-board" (think of it as a clipboard) When you drop, the view sends a "drop" signal to it's controller. The controlle... | 0 | 1 | 1,122 | 2011-06-24T08:24:20.283 | pipeline_ops | softwareengineering.stackexchange.com | |
12,350 | postgresql recovery after reboot | I installed Postegresql and added a database which I was using as part of a local server. However, I restarted the computer and my Postgresql database seems to be gone. The Postegresql documentation says that the data should be placed in /usr/local/pgsql/data however I did not do this and this directory is empty on my ... | To locate your data try the following command: [CODE] The problem probably is that your server isn't automatically started. You can manually start it with a command like: [CODE] If you need help starting it automatically please specify which os/distribution you are running and how you installed postgresql (source/yum/r... | 0 | 1 | 5,240 | 2012-02-06T03:54:35.557 | database_errors | dba.stackexchange.com | |
1,079,362 | Postfix suddenly is not configured for MySQL | I've had this server in use for something like a week. Fresh Ubuntu 20.04 install, packages all installed through apt. I could receive and send mail outside of my IP just fine. Suddenly, receiving e-mail was not longer possible. I checked the logs and soon noticed the [CODE] message, which meant that postfix was unable... | Every time you upgrade a postfix map package, it will first remove its respective map type from [CODE] and only in a later add it (back). You can manually see that this works by forcing a reconfiguration via [CODE] . If the file was left empty after the upgrade, that likely means the upgrade was interrupted - or is eve... | 0 | 0 | 664 | 2021-10-02T08:34:04.307 | database_errors | serverfault.com | |
27,581 | Unable to Use The K-Fold Validation Sklearn Python | I have an dataset . I am unable to use the K-Fold Validation. I am getting the error raised: ValueError("{0} is not supported".format(y_type)) ValueError: continuous is not supported . I do not want to do encoding to int, since it may affect the data, and also I want to understand why K-fold is not working. Below is my... | Based on the answer here , Since you are doing a classification task, you should be using the metric R-squared (co-effecient of determination) instead of accuracy score (accuracy score is used for classification purposes). You should use something like [CODE] for evaluation because your task is regression. | 4 | 1 | 1,814 | 2018-02-08T06:28:24.460 | data_quality | datascience.stackexchange.com | |
855,064 | Unable to install packages in LXC unprivileged container | I am new to the whole containers thing. I have successfully create an unprivileged wheezy container on a debian 8.8 host using lxc 2.0.7. But when I'm trying to: [CODE] I got this error message: [CODE] The PATH contains only the followings [CODE] I also tried to spin up some other containers with ubuntu xenial but the ... | Using the option --clear-env in lxc-attach did the trick. | 1 | 2 | 1,469 | 2017-06-10T19:08:46.180 | pipeline_ops | serverfault.com | |
214,932 | Zero Maintenance self-hosted off-line databases? | I'm looking for a "Zero Maintenance" database engine that can be installed on Windows . We have a lot of customers that want our software installed on their local computers. Although we have a cloud offering, many of our customers do not use it, for various reasons. By "Zero Maintenance", I mean: Auto-tuning - the db d... | Disclaimer I am in no way affiliated with Gupta, Gupta Technologies, OpenText or any of their subsidiaries. The statements made are my own personal experience or are statements taken directly from the "OpenText Gupta Development Tools and Databases" site. Intro This is my personal opinion based on a CRM system we were ... | 0 | 2 | 547 | 2018-08-14T20:30:49.090 | data_quality | dba.stackexchange.com | |
232,795 | SYN flooding, kernel error | My server ( http://monitor.wingify.com/munin/visualwebsiteoptimizer.com/app.visualwebsiteoptimizer.com.html ) recently had an outrage. One of the suspecious things I found was loads of SYN flooding messages in /var/log/messages [CODE] There are loads of SYN flooding errors and loads of -- MARK -- entries. What does thi... | The --MARK-- entries are harmless, they are a result of the syslog mark feature being enabled, and just provide regular timestamps in the logfiles so that, if things are quiet, you can be sure that syslog is still writing. I'm afraid I can't comment on the syn flooding entries, which are indeed interesting. Hopefully s... | 0 | 0 | 471 | 2011-02-08T17:05:54.840 | infrastructure | serverfault.com | |
222,352 | How to avoid binary dependency on size change | [CODE] I'm using class A in multiple places at various projects as below. Apporoximately 100 projects. [CODE] My problem is whenever I add a member variable to class A I will have to build all the projects (~100) as the size of the class A has been changed and building 100 project is time consuming. How to avoid buildi... | Are you familiar with the PIMPL idiom ? For certain cases, it can solve this exact problem. The short version is that you wrap all your private member variables into one opaque pointer to a type so that when you add a new private member you don't need as much recompilation... | 2 | 5 | 431 | 2013-12-26T07:53:07.017 | api_errors | softwareengineering.stackexchange.com | |
138,357 | 9 digit zip codes are reporting LEN of 12 | I am attempting to resolve some difficulties in getting zip codes to display properly. The original spreadsheet has zip codes of mixed 5 and 9 digit formats. After the import process, these 9 digit zip codes are reporting a length of 12 digits. Now when I try to add a hyphen '-' to the 9 digit zip codes I'm getting abn... | Zip codes are strings, not numbers. Some of them have 1 or even 2 (but not more than 2) leading zeroes . The datatype in the import table should be [CODE] so that it can hold 5 digit and 9 digit + hyphen zip codes. Even if you never have to store postal codes of other countries, and even if the values will only ever ha... | 3 | 10 | 2,841 | 2016-05-12T14:36:04.140 | warehouse_errors | dba.stackexchange.com | |
99,134 | set session wait_timeout inside of phpmyadmin for export/import | I need to increase [CODE] variable in mysql only when access mysql from phpmyadmin . I don't want to edit my.cnf file or set it globaly in mysql server. I've read documentation, but haven't found if I can run any queries after connection to specific database. Any help is appreciated. Application details below: phpMyAdm... | File: libraries/dbi/DBIMysqli.class.php [CODE] before return link you can run query: [CODE] This would set any session to mysql db from phpmyadmin with wait_timeout = 600. | 0 | 1 | 2,700 | 2015-04-29T13:29:25.703 | database_errors | dba.stackexchange.com | |
306,275 | How do you run scheduled tasks with extra parameters in Server 2008? | The issue that we are facing now is that Scheduled Synchronization is not working when the task scheduler executes a program for Google Apps. The program runs as follows when within command prompt: CD C:\Program Files\Google Apps Directory Sync\ sync-cmd.exe -a -o -c August2011.xml We are running Windows Server 2008 so... | Have you tried placing the two commands "cd" and "sync-cmd.exe" into a batch (.bat) file, then scheduling the batch file to execute? | 3 | 0 | 8,416 | 2011-08-30T02:11:08.860 | infrastructure | serverfault.com | |
875,192 | MySQL maximum possible memory usage above installed RAM | I'm using debian 8 Jessie and MariaDB. My mysqltuner seems to indicate as MariaDB can use 142% of RAM : [CODE] My [CODE] is at 16Go, for 32Go RAM that should be ok, I don't know what to do for optimize this. The thing is, my memory general usage in the server is always under 89% (plus for caching). MariaDB is actually ... | Additional reduction in memory footprint can be achieved by REMOVING from your my.cnf the following to allow defaults to serve your system. [CODE] Consider changing or adding the following in my.cnf [CODE] There were 141 threads created to serve 196K connections in your 1 day 16 hrs uptime. This will reduce high cpu ut... | 0 | 1 | 6,663 | 2017-09-23T22:21:09.747 | database_errors | serverfault.com | |
288,153 | apache shuts down for no reason | I am a little baffled here. I am using [CODE] and [CODE] . I am also running [CODE] . I was pulling my hair out because some of my uploads were stopping and becoming incomplete for no reason and now after seeing my php_error_log is empty, I checked my apache log for all the errors that occurred near the mishap and got ... | Are you running Logrotate or some other similar application? Logrotate will restart applications that it writes logs too. | 1 | 1 | 1,136 | 2011-07-08T04:39:16.993 | infrastructure | serverfault.com | |
45,142 | Selenium Extent Reporting Problem | I cannot figure out the problem. After the picture, another problem is here. [CODE] is not working and I'm not able to fix it. This is my dependency: [CODE] And this is HTML reporter config: [CODE] And here is the code: | Htmle report in extente report is deprecated from v4.1.3: http://extentreports.com/docs/versions/4/java/v3-html-reporter.html Use spark report instead, http://extentreports.com/docs/versions/4/java/spark-reporter.html The steps remain the same. Only the name changed and everything else works almost the same | 1 | 2 | 617 | 2020-07-05T04:48:47.740 | data_quality | sqa.stackexchange.com | |
238,669 | Should I split timestamp parts into separate columns? | I am building a PostgreSQL database and I have created a [CODE] table, where the primary key is the timestamp itself (e.g. [CODE] ). The database is supposed to be later migrated to a data warehouse, from which analytics will be extracted. At this point, I am wondering whether it is beneficial to add extra columns to t... | Keep the timestamp and don't add columns for the parts. If you need to search for part of a timestamp, you can always create indexes on [CODE] expressions. Having individual columns wastes space and adds undesirable redundancy for no benefit I can envision. | 2 | 6 | 818 | 2019-05-21T09:59:59.893 | database_errors | dba.stackexchange.com | |
439,414 | Is this the right mechanism for 2 way heartbeat? | I have a software application where we have 2 services, say [CODE] and [CODE] . [CODE] delegates some long running work(tracked by an [CODE] ) to [CODE] which is done asynchronously. They both talk via HTTP. Post submitting the job, [CODE] periodically does [CODE] calls passing the [CODE] . Given that any of [CODE] or ... | Leveraging work I did with a custom UDP interface, there's a few properties regarding liveness checking you need to keep in mind: Timeout means the other system is unreachable Active refusal means it's there, but it cannot accept any calls Successfully receiving a message means the other service is up and running With ... | -2 | 1 | 463 | 2022-06-22T19:50:45.220 | api_errors | softwareengineering.stackexchange.com | |
160,906 | Recurring Problem - need instruction to run only once inside code which executes multiple times | I come across this problem usually (especially when dealing with certain frameworks) where I would like once piece of code to execute once and only once however the provided method e.g (something like an onComplete function) that I wish to place this instruction in will in reality execute multiple times. I am just wond... | In C, I used to use function pointers for this. The first time the function was called, the initialization function was called. At the end of the initialization function, it changed the function pointer to point at the code that was to be called the rest of the time. There are various ways to do this in other languages... | 0 | 4 | 1,850 | 2012-08-15T08:28:17.040 | api_errors | softwareengineering.stackexchange.com | |
440,352 | How can I ensure same code formatting across IDE? | We are a small team contributing to our startup project, on a daily basis the code changes and multiple PR are raised daily. The general issue we face while reviewing these PRs is the code formatting changes due to different IDE or the same IDE with different code formatting configurations. Is there a possible solution... | This is a common problem, so that there are common solutions. Select a (command-line) tool to auto-format your code. It doesn't really matter what the tool is and what style it enforces, as long as everyone can use it. It should be a single command to re-format all files in your project. For example, in JavaScript I'd ... | 0 | 4 | 944 | 2022-08-11T11:03:33.027 | api_errors | softwareengineering.stackexchange.com | |
1,100,835 | MSSQL reportserver behind web application firewall | Good Morning everyone! First, please just point me in direction, where can I look into documentation. I should get a consultant, but as a DBA, I want to solve this issue by myself. Issue: Management decision is that report server (RS) website should run behind Barracuda web application firewall (WAF) AD, WAF and Networ... | I implemented NTLM authentication against FQDN URL, which was same as WAF URL. Because of some issues within Baracuda WAF (not my part of job and responsibility) it took time to get it work. End result is, WAF was just "non-SSL-Offloaded" reverse proxy, just passing connection to RS Server. It worked, but I'm not happy... | 0 | 0 | 181 | 2022-05-13T07:40:08.303 | bi_errors | serverfault.com | |
293,862 | Random temporary network freeze on kvm guest machines | I'm running two guest machines under KVM. The host is running Arch Linux (kernel version 2.6.38.2), the guests are both CentOS 5.5 (kernel version 2.6.18). I have the networking set up as a bridge, more-or-less as follows (I'm not doing it by hand, of course -- it's scattered through the system startup scripts) [CODE] ... | I finally figured out the right answer to this one. Short answer: MAC address conflict. Long answer: For each virtual machine, qemu creates a virtual network card. It assigns a MAC address to this virtual NIC. By default, it assigns a fixed address (52:54:00:12:34:56) to every NIC. If you start more than one guest on t... | 4 | 5 | 6,411 | 2011-07-25T14:42:02.657 | infrastructure | serverfault.com | |
709,403 | Is there a way to look for files on Apache, then if not found, look in Tomcat? | I have a web application project with very large media files and I would like them seperate from the rest of the application but remain in the same path. So for example,if I have a file in the apache document root: [CODE] but the rest of my app resides in the tomcat app directory: [CODE] is there a way to see if Apache... | You can try apache mod_jk . This enables you to run tomcat behind apache. You specifically need to use the option JkMount (in addition to other options) to redirect specific URLs to tomcat from apache. A URL not directed to tomcat and not available in apache will cause 404 HTTP error. To make things easier to you when ... | 0 | 0 | 46 | 2015-07-29T14:24:43.867 | infrastructure | serverfault.com | |
92,358 | How to make a linear model with a constant value in R? | I'm working on an unassessed homework problem from unpublished course notes of a statistics module from a second year university mathematics course. I'm trying to plot a 2-parameter full linear model and a 1-parameter reduced linear model for the same data set. I can't figure out how to plot the 1-parameter model; all ... | To use only a single parameter, which will be a constant, you have to specify the [CODE] formula as follows: [CODE] . R will then fit the model, where the coefficient for this constant will be equal to the mean of [CODE] , see also this stats stackexchange answer . | 0 | 1 | 2,178 | 2021-03-30T17:02:44.083 | data_quality | datascience.stackexchange.com | |
313,004 | raid 0+1, raid 3 or raid 1x2 | I've a dell r210-II server with 4 x 300 Gb 10K SAS disks. I want to use this server as Apache, mysql and mail server. I think i'll switch a cluster system for mysql after 6 months. I dont want to get any problem when i'll switch a clustered mysql service. Which is the better configuration for this situation? Cheers. | Your actual question uses the wrong terminology but either way I'd suggest you use RAID 10, which is a level that uses all 4 disks as one large array, you'll have 600GB of usable space but the performance and resilience is great for such a small array. | 1 | 6 | 118 | 2011-09-19T13:27:51.547 | database_errors | serverfault.com | |
320,321 | How to calculate latlong difference from last 15 min ago and last 1 min ago without using correlation subqueries | Problem I would like to find logs that are active and do not hit a distance quota of 12.5km, comparing from last 15 min ago and latest (within last 1 min ago) Sample data [CODE] version() 5.7.39 [CODE] [CODE] [CODE] [CODE] [CODE] [CODE] gps_log_id lat long log_time consignment_consignment_id 1 36.47579591525347 -86.677... | I'm unclear on the specifics, but I am pretty sure it takes two steps: Find the rows that match the "active", "distance quota", and "15 to 1 minute ago". See the Comment where I asked for specifics. Find the latest of each. This involves a "groupwise max" algorithm; see the tag I added. Then put the two pieces together... | 2 | 1 | 70 | 2022-11-29T08:22:01.280 | api_errors | dba.stackexchange.com | |
1,006,678 | Nginx logging full URI with proxy_pass in the access log? | We have nginx configured with [CODE] and would like to see what's the target URI after all the directive settings applied and processed. In case of error nginx has the [CODE] line in the logs as below: [CODE] What would be the way to show the same [CODE] info in the access logs? We tried the following log config: [CODE... | The only solution I found was having the backend store it in a response header. Have nginx hide the header, not remove it, so you can use it in your logs. | 1 | 2 | 1,593 | 2020-03-12T14:35:29.320 | infrastructure | serverfault.com | |
298,769 | Powershell default console size | I'm using NSCLient to run some NRPE checks on Windows Server boxes. The checks run Powershell scripts but the problem I'm having is NSClient is adding random line breaks after 79 characters. I'm guessing this is because the default Powershell/CMD console width is 80 characters (Is this right?) but I need the check to n... | I had success with the following code, with a test sample to generate a long string... [CODE] Obviously the most important bit is the top section. [CODE] is just me making a long string. You could also shorten this to: [CODE] This removes any kind of testing before setting values. I set the width to 101 so I could see ... | 2 | 0 | 1,010 | 2011-08-08T08:45:02.373 | infrastructure | serverfault.com | |
349,797 | What are the techniques for keeping the code quality high when requirements change? | Whenever I write a piece of functionality from scratch, it's a good and robust code. But often times my assumptions about how the code should work evolve over time. After I reflect those changes in the code, the whole system suddenly loses its quality. It seems to me that the best approach is to drop the old code and w... | What are the techniques for keeping the code quality high when requirements change? Have you tried Test-Driven Development? It's exactly for this purpose. When you're done with a feature with TDD, you don't just have the feature, but also all the automated tests that cover that feature. As new features or changes come ... | 5 | 12 | 1,413 | 2017-05-29T19:34:42.570 | data_quality | softwareengineering.stackexchange.com | |
1,013,439 | domain doesn't work without [.www] | So I set up an Apache Webserver. Apache is handling the requests and guides them to the web framework flask. And i bought a domain and configured it with an A Record to my Server Ip. And now whenever i enter www.mydomain.com it works but entering mydomain.com(wihout www) gets me to my site, but in the top browser windo... | Do this instead [CODE] | 1 | 2 | 96 | 2020-04-21T20:04:02.313 | infrastructure | serverfault.com | |
705,296 | EC2 instance not responding to ping | I have spun up an Amazon EC2 instance , and I'm trying to connect to it via SSH from a Mac. [CODE] According to this troubleshooting guide , I should check my security rules. I've confirmed that all my Security Groups allow all traffic to and from any source ("0.0.0.0/0"). I don't understand the second and third points... | Working from the bottom up, layer three would be VPC subnets and routing along with your own local routing. For routing in a VPC, check your subnet routing tables. For an instance to be routable by a public IP address, the instance needs to route to the VPC Internet Gateway which will maintain a 1:1 mapping of the publ... | 0 | 2 | 6,187 | 2015-07-13T10:15:39.570 | bi_errors | serverfault.com | |
276,409 | ERROR: collation "database_default" for encoding "UTF8" does not exist | Moving application from SQL Server to PostgreSQL Database. I am getting this error from one of the queries used in a Java file: ERROR: collation "database_default" for encoding "UTF8" does not exist Position: 467. Stacktrace follows: org.postgresql.util.PSQLException: ERROR: collation "database_default" for encoding "U... | [CODE] is a SQL Server-specific collation that explicitly tells SQL Server to use the database's default collation, overriding the default collation precedence behavior. This is used in a [CODE] clause most typically to avoid collation conflict errors that arise when using temp tables in scenarios where [CODE] 's defau... | 1 | 2 | 2,501 | 2020-10-01T18:13:54.433 | database_errors | dba.stackexchange.com | |
317,191 | Table Consistency Errors | We have encountered database corruption / consistancy issue in one of our database tables, which I'd like to run past the community. Disclaimer : This is a MSSQL database we (the DBA team) have inherited. There are no non-corrupted backups of the database. The corruption has been there for an unknown amount of time (no... | Okay, so it turns out that running the [CODE] option caused these errors to occur. When I restored the corrupted database again, and ran [CODE] again, I got the true, original error which was about multiple IAM pages containing allocations for the same intervals. checkdb "Multiple IAM pages for object" This link helped... | 3 | 0 | 481 | 2022-09-21T13:57:50.477 | database_errors | dba.stackexchange.com | |
219,510 | Transactional Replication Synchronization taking too long to respond | I successfully generated the snapshot, but subscription is not working correctly. Either the synchronization takes too long to respond or it simply displays the text shown in below attached screenshot. Here is the successful snapshot generation: It is only retrying and not giving the end result. | Check the following things please: Snapshot Agent shows as completed successfully and it has generated its files Log reader agent is running and delivering Right click on each service -> view details - that will help you get more info. To add to the comments, check the subscription details: Go to each tab and see if th... | 1 | 1 | 881 | 2018-10-08T09:01:51.923 | database_errors | dba.stackexchange.com | |
591,079 | ubuntu 127.0.0.1 not working, going timeout | Today i've restarted my ubuntu 11.04 server and now the 127.0.0.1 is not working anymore, it still loading for a while and then timeout. I've tried to make a traceroute and this is the result [CODE] the strange thing is that if I try to connect from php to mysql using 127.0.0.1 it goes on timeout if I try with localhos... | [CODE] and see if [CODE] interface is up and running. If not, try [CODE] . Have you heavily modified the network settings? If your Ubuntu truly is as ancient as 11.04, then [CODE] might the file to check out, if my memory serves me right. Some strange iptables rules might also cause this kind of problems. | 0 | 1 | 2,353 | 2014-04-24T13:14:46.897 | database_errors | serverfault.com | |
953,617 | Postfix + Dovecot + AWS + CloudFlare + SquirrelMail Unable to receive messages | Set this thing up awhile ago, and it sends messages Just fine, However I wanted to start being able to receive messages. Iv tried telneting into port 25, and nothing. dig dzwxgames.com mx: [CODE] Now, AWS requires usage of SES relaying to send messages which works fine. But when I try to receive them, it acts like all ... | Does your security policy allow outside connections to port 25? This could be the problem. When on the machine, can you telnet to 127.0.0.1 25 ? | 0 | 0 | 476 | 2019-02-12T21:33:41.310 | infrastructure | serverfault.com | |
575,980 | launch a batch remote command via /putty ssh and get the output in a local file | I have been trying to launch a remote command in putty using the -m [file] flag and get the output [CODE] (the command is just [CODE] ) and after that I just get the output file via scp. Well it is not working for whatever reason but my question is: Can I get the output of a remote putty command just using the putty en... | You can accomplish that with plink, which is available at PuTTY download page . Example: [CODE] | 3 | 2 | 9,863 | 2014-02-16T13:21:30.883 | infrastructure | serverfault.com | |
145,685 | MySQL derived query with random order | Here I have two tables in MySQL 5.6... [CODE] My structure is a lot more complex than the one outlined about but I am trying to keep this as simple as possible to explain. Basically I want to return 1 row of data consisting of Zones.ID, Zones.ZoneName, and a ProxyID selected at random joined by ProxyType [CODE] This is... | If you want the query to return just 1 row, a zone with a random proxy (chosen from the associated ones), then it's easy to fix the query: [CODE] or even better: [CODE] If you want multiple or all the zones, each one with a randomly chosen proxy server, it's really not trivial to solve, due to the way that MySQL execut... | 0 | 1 | 944 | 2016-08-02T20:54:41.113 | database_errors | dba.stackexchange.com | |
15,624 | Using a terraform template to produce a cloud-init yaml: template variables do not respect yaml context/whitespace | I am using Terraform. Terraform has a notion templatefile which can be used to take variables that Terraform has access to (locally supplied or retrieved externally) and to apply them to a Jinja2 template. This specific example is very close to the one in the documentation . People use these templates to generate cloud... | Here is how I got around it, I declared these as HDL object, [CODE] And then I pulled it into the yaml file using [CODE] . There is a bit of documentation that covers this, over at "Generating JSON or YAML from a template" | 1 | 0 | 3,312 | 2022-03-18T03:27:51.117 | pipeline_ops | devops.stackexchange.com | |
661,661 | Why can't I create a superuser in AWS Postgresql instance? | I have an AWS EC2 instance connecting to an RDS instance (Postgresql). When I created the RDS instance, I told it the DB root's username was: [CODE] and the password was [CODE] . Now I'm attempting to create a role and a super-user. But it fails: [CODE] When I repeat the command without the [CODE] flag, it works: [CODE... | RDS instances are managed by Amazon. As such, to prevent you from breaking things like replication, your users - even the root user you set up when you create the instance - will not have full superuser privileges. http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.html When you cr... | 34 | 33 | 77,192 | 2015-01-22T19:52:07.947 | database_errors | serverfault.com | |
247,885 | Browser-based DNS failover using multiple A records | It has recently come to my attention that setting up multiple A records for a hostname can be used not only for round-robin load-balancing but also for automatic failover. So I tried testing it: I loaded a page from our domain Noted which of our servers had served the page Turned off the web server on that host Reloade... | OK I am going to start by saying DNS is not a good failover system in any way, you need a reverse proxy or load balancer. There are several reasons why the experience is not the same. First of all in chrome it uses The OS to grab DNS info so that is dependent on the OS for the IPs, so the OS in this case might only giv... | 7 | 4 | 7,909 | 2011-03-16T00:56:07.627 | database_errors | serverfault.com | |
806,379 | Messages with SPF Softfail Not Rejected | I have set up postfix+SPF on our mail server. Here is my [CODE] . [CODE] I have set [CODE] for various clients and sender domains using [CODE] and [CODE] . However, I get the following message that was not rejected. (I have redacted the sender and the recipient addresses.) [CODE] From what I understood from the man pag... | I think I found the reason: the space before [CODE] and before [CODE] in the [CODE] line of [CODE] . After I removed the spaces, I get reject on Softfail with gmail.com. The [CODE] page of [CODE] does not mention this, but for "SPF IP Whitelist" ( [CODE] ) and "SPF Domain Whitelist ( [CODE] ), it mentions that there sh... | 1 | 3 | 4,025 | 2016-09-30T15:08:50.867 | infrastructure | serverfault.com | |
530,315 | Fresh centOS 6.3 server from Amazon Ec2...is there a default password? What would it be? | After getting through known_hosts issues, it's now asking for a password. I don't recall setting a password..what would it be? | There is no password set, by default it will only accept your private key. See also: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html | -3 | 3 | 9,769 | 2013-08-12T07:31:19.617 | infrastructure | serverfault.com | |
129,408 | MySQL Query on bad designed table with multiple Selfjoins | i have to create a report out of a bad designed database (I cannot change) It saves different Formulars into a [CODE] table [CODE] [CODE] = input value (DB type = text but can also hold numeric inputs dates and so on) [CODE] = input name (example: "name:", "birthday:") [CODE] = id to formular My Problem on big Formular... | Looking at your Query, I have a few suggestions: Get rid of the "OR"s. you can do this by checking if the addition of all the fields > 0... OR's are a killer. as Jkavalik mentioned, use a distinct instead of a group by... better perf. The "AND"s of Values 2 to 6 can also be an addition = 0 Do you absolutely need the Le... | 1 | 0 | 68 | 2016-02-16T12:30:20.440 | database_errors | dba.stackexchange.com | |
503,386 | Windows 7 Folder Redirection Failing for One User | We're running a Windows Server 2012 Essentials & Windows 7 environment. I just setup folder redirection and it worked fine for all users except for one. In fact, all folders moved on this user except for the My Documents. The error stated the My Documents folder was corrupt and unreadable (error below). If I look on th... | I'd be looking at long folders / file names rather than corruption as such. You may try resetting permissions, too. Alternatively, back up her My Docs. Delete the files, check redirection works and manually copy to the redirected folder. These steps may also highlight the original issue. | 0 | 1 | 2,863 | 2013-04-28T21:37:54.063 | data_quality | serverfault.com | |
775,190 | How to add new text,but unable to modify old text | how do I set permission for a file on Windows such as .docx so that network user can ONLY add new text into the file.They must NOT be able to edit the old text,but the CAN add new ones. What I'm trying to do is I want Users from different PC to be able to add more information in the .docx without deleting the old conte... | this is fairly trivial in word by simply controlling the regions. with a text file you need either an app or script that opens the file with FILE_APPEND_DATA access, and set permissions on the file with append only. for more details in word, ask on superuser. | 0 | 1 | 194 | 2016-05-06T07:15:15.690 | infrastructure | serverfault.com | |
300,447 | IPv6 and NAT, routing to multiple ISPs | Currently I have a nice setup using private IPv4 address space and uplinks from two ISPs to the Internet. Thanks to NAT I can just take down one of the interfaces and the Internet access is still there. I've been thinking how to duplicate this configuration in IPv6. From what I read is that "NAT is dead", I really glad... | Without BGP and 'business class' ISPs multihoming isn't going to work for you. It is possible to do 1-to-1 NAT with IPv6. I don't know how to configure it on Linux though. There is another way though: You will get a prefix from both ISPs. Probably a /56 or a /48. It doesn't really matter in this case if the link to the... | 6 | 5 | 2,837 | 2011-08-12T10:32:15.663 | data_quality | serverfault.com | |
202,529 | Internet not working after upgrade to Ubuntu 10.10 | I have a dedicated server which I have just upgraded from Ubuntu 10.04 to 10.10 (it was running the LTS version), and it had seemed to have upgraded successfully until I tried to access the internet in a browser. I was unable to access any websites (although I am able to ping) and it seems there is no outgoing connecti... | So you have an ip address.. sounds like DNS problems.. Try this.. ( im guessing the DIG will fail ) [CODE] Ping works???.. good edit your /etc/resolv.conf / add this at the bottom [CODE] save the file Run those commands again :D and let me know | 1 | 0 | 2,433 | 2010-11-16T16:14:12.237 | infrastructure | serverfault.com | |
847,775 | Proxy changing my user agent build string | I'm making 2 connections to a web server. The first one is not using a proxy and the second one is using a proxy. In the web server access.log I can see my user agent reported in two different ways. Not using proxy: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Saf... | Your proxy provider is changing your string. There's no way that they are not. It's possible that to person you spoke to about this is unaware. The real giveaway here is that it does not happen on TLS/SSL connections. This is because your provider cannot change this data, because they can't read it in order to change i... | 0 | 1 | 2,349 | 2017-05-02T13:35:14.297 | infrastructure | serverfault.com | |
42,301 | "No Keyword with name" error while using AutoIt Library Robot Framework | Got an error encountered "No keyword name" error in AutoIt Library Robot Framework. I installed the AutoIt Library by using pip install and it was successful. I tried to automate input text in the Open Dialog Window to upload some file using AutoIt Library, but it won't run the keyword from AutoIt, it shows No keyword ... | Updated: Even I faced the issue in recent versions of auto it and python: Fix: Check your python architecture ( is it 32 or 64 bit) Just type python and see For 32: Open cmd in " Run as administrator " mode run the command [CODE] Now clone the autoit library source code: nokia/robotframework-autoitlibrary . in the root... | 2 | 2 | 4,286 | 2020-01-24T08:35:47.670 | data_quality | sqa.stackexchange.com | |
839,980 | Libreswan based VPN not establishing L2TP tunnel after IPSEC authentication | I have been trying to setup a libreswan VPN client on a CentOS machine to connect to a libreswan VPN server (also CentOS) for the past few days but without success. The problem is as follows: - VPN server is up and running, I can connect to it from a Windows machine, everything works as intended - Libreswan VPN client ... | You probably miss ESP accept rule in your input chain on client. Also add L2TP ports to the rule list. [CODE] And, if I'm reading that right, you have a REJECT rule in your INPUT chain preceding ACCEPT rules - remove that one! | 0 | 0 | 1,647 | 2017-03-22T18:02:55.780 | api_errors | serverfault.com | |
95,878 | Stop PostgreSQL from logging statements on error | My postgresql 9.3 logs are sprinkled with entries like these (redacted to protect the guilty): [CODE] I know the source of the problem (a race condition where two app servers do the same work) and that code gracefully handles the insertion failure, but for the life of me I can't seem to get PostgreSQL to stop logging t... | The amount of details logged is controlled by [CODE] . Setting it to [CODE] will exclude [CODE] , [CODE] , [CODE] , and [CODE] error information: [CODE] | 3 | 3 | 3,491 | 2015-03-20T18:00:25.440 | data_quality | dba.stackexchange.com | |
761,658 | Is there a way to recover data from a Hyper-V avhdx file with a broken chain? | I have inadvertently broken the differencing disk chain for a Hyper-V VM on Windows 10. It's not the end of the world, but it would be nice to get the data back off the last avhdx file. I tried the trick of renaming the extension and mounting the file but it won't mount. In Hyper-v Manager if I try to edit the avhdx fi... | Stephen Owen at http://foxdeploy.com/2015/09/29/hyper-v-on-windows-10-how-to-fix-a-broken-vhd/ describes one way to fix this. It appears to be a bug in Windows 10. ... using PowerShell and the Hyper-V module to run Set-VHD, like so: [CODE] | 1 | 2 | 2,731 | 2016-03-04T18:38:12.590 | infrastructure | serverfault.com | |
48,172 | Error: building keras model using LSTM | I am trying to build a simple LSTM based model but I am getting "can't set attribute error" on the line to add LSTM layer to the model. I am unable to figure the reason as to why this error is appearing. This is the code I am using. [CODE] I do not think there is an issue with code. The version of Keras is 2.0.7 with t... | Install the latest Keras version: https://github.com/keras-team/keras/issues/7736#issuecomment-324989522 | 0 | 1 | 58 | 2019-03-28T19:04:13.567 | data_quality | datascience.stackexchange.com | |
165,387 | How to get psql to prompt for a password with the superuser postgres? | I'm using PostgreSQL 9.6.2 on Windows 7 and when I start psql from the command prompt with: [CODE] it asks for a password just fine and logs in. However if I do: [CODE] it's gonna log in directly to the main database with superuser rights without asking for any kind of password. If I type in: [CODE] then it's gonna ask... | why when I log as a normal user it asks for a password and doesn't when i log as superuser? it just doesn't seem safe at all. The small but important detail that you're missing is that nobody but you (or your DBA Team) should be allowed anywhere near the database server and absolutely should not have the postgres accou... | 9 | 7 | 31,811 | 2017-02-24T01:42:27.770 | database_errors | dba.stackexchange.com | |
267,120 | Puppet defined resource - selective parameterization? | I'm currently banging my head trying to find the "best way" to achieve this type of granularity for puppet: I have a server running memcached in testing environment and another one running for the production environment. These servers run with different memcached options and I'm using monit to monitor and restart them ... | My solution to this kind of problem is took keep all magic numbers out of my puppet manifests and look them up when they're needed using extlookup . I have not needed to use it in a template, but it should work . So in your case I might have extlookup/production.example.com.csv memcache_memory,3072m extlookup/testing.e... | 1 | 2 | 433 | 2011-05-06T19:22:03.227 | pipeline_ops | serverfault.com | |
78,907 | Does tempDB disk perf matter if you have plenty of unused memory? | We have a SQL Server 2012 Enterprise setup with a large amount of RAM (256 GB), and at this time fairly small databases (about 17GB). Right now we are experiencing performance issues due to various coding issues which will hopefully be resolved by some code reviews and optimization. At the same time there is a movement... | Even if you have plenty of DRAM, [CODE] may still be used. This happens in a few situations: Snapshot isolation: Using this feature can create a lot of tempdb activity. Hash and sort Spills : When the optimiser creates a query plan, it will try to estimate the total amount of memory it needs to run the query. Before th... | 6 | 6 | 443 | 2014-10-10T17:53:18.897 | database_errors | dba.stackexchange.com | |
938,659 | Change a header (default type) of specific file type called in admin section of website (nested configuration?) | How could I change header (default type) of [CODE] files with the admin pages ? [CODE] ... as nginx doesn't support nested conf. The error given are : [CODE] | You haven't terminated your [CODE] directive with an Semicolon. You get more info on Errors by Testing your configuarion with [CODE] before reloading. With that you get the following Error: [CODE] Hope that was the only Problem. (Paths can variate in your configuration depending on your System etc.) | 0 | 1 | 359 | 2018-11-05T11:06:57.167 | infrastructure | serverfault.com | |
9,015 | ansible error 'first argument must be string or compiled pattern' | I have this code in my playbook: [CODE] it will replace [CODE] in a config file with [CODE] and add an array in 4 scripts. array is the name of given database. then it will restart the agent to apply the changes. when i run this command: [CODE] i get this error: [CODE] i searched a bit but couldn't find the reason. wha... | The task which fails is this one: [CODE] Try like this: [CODE] Note that if you don't add [CODE] , the task will only replace [CODE] and you will end up with a [CODE] . | 0 | 1 | 753 | 2019-08-27T07:51:55.547 | pipeline_ops | devops.stackexchange.com | |
45,501 | How to simulate events that cause exceptions to test try/catch blocks? | I understand how exceptions work and how to catch and handle them in C# but how can I simulate events that may cause an exception to ensure that it is caught correctly? For example, is it possible to run an application in a kind of test bed where it's possible to simulate network problems, database problems, etc? Excep... | 1) If you followed the dependency injection model, you could substitute real implementations of certain parts with the mocks which would throw exceptions as you need them. That would however require of you to initially design your application in a specific way or completely reengineer it. Like: [CODE] Here however we w... | 14 | 13 | 22,436 | 2011-02-08T16:10:35.150 | api_errors | softwareengineering.stackexchange.com | |
361,658 | Avoiding conflicting namespace and class name | Say I am developing a Calculator application. It has one class called: [CODE] . Therefore my namespace structure would look like this: [CODE] Unfortunately, this is not right because the same name should not be used for a namespace and a type in it. This is thoroughly explained in this other SO question . One of the an... | Is the name of your application 'Calculator'? if it is you may find that that name has already been used. I would also advise you NOT to use myCompany as part of the namespace. I know its a standard way but company names change. Just have: [CODE] | 8 | 2 | 7,387 | 2017-12-01T11:14:05.580 | api_errors | softwareengineering.stackexchange.com | |
465,689 | Thunderbird disconnecting from Dovecot | I'm managing a Dovecot POP3 server which serves large number of users. Some of these users are in remote locations. I'm getting reports about users whose Thunderbird clients show the number of mails to be downloaded, but disconnects after that. Server logs shows no corruption about user mailboxes. Only abnormality is o... | I would try logging a session with wireshark to check for network problems (rst, ...). Maybe you could try using pop3s instead of pop3 as a broken router/antivirus/... could potentially corrupt a connection. | 2 | 2 | 233 | 2013-01-10T08:50:48.427 | data_quality | serverfault.com | |
118,187 | leading 0 missing in column when exporting to csv | I have a query I export which is then used to import products into our website. One of the ways we help people find products more easily is by using a long and short item code. It's basically the last 5 digits of the main code. People can search for the whole or partial number. However when I export my query as a csv, ... | Leading zeroes are removed if the exporter thinks the column is numeric. You need to force the exporter to treat that column as text. For instance, this might work: [CODE] | 1 | 0 | 1,911 | 2015-10-15T21:34:46.010 | warehouse_errors | dba.stackexchange.com | |
80,656 | How to predict unknown unknowns in machine learning | I am dealing with a problem about classifying bird species through analysing MFCCs. I already built a dataset with 13 MFCCs for two kinds of birds. And I trained the data with Naive Bayes & KNN model. However, when I tried the model with prediction of third bird species, it is classified as the one of the two species. ... | If you want to predict wether a bird is a bird of one of your two classes or unknown you need three classes: $[bird A, bird B, unknown]$ . For the unknown class you need data from birds which are neither $bird A$ nor $bird B$ . You should make sure the number of rows for each of the three classes is roughly the same. I... | 0 | 0 | 564 | 2020-08-22T15:01:52.090 | data_quality | datascience.stackexchange.com | |
785,150 | Two different deployments on nginx | I have two applications that I need to serve using the same nginx server. The first one should run under help.example.com. The other one, has a domain for each customer, like foo.example.com and bar.example.com I understand that nginx gives preferences to longer server names, but I can't seem to find an example that wi... | For this, in the same configuration file you will have: [CODE] } AND [CODE] } The wildcard will allow all subdomains that aren't help to redirect to the configuration. Further reading: http://nginx.org/en/docs/http/server_names.html#wildcard_names | 0 | 1 | 60 | 2016-06-20T22:41:54.357 | pipeline_ops | serverfault.com | |
755,248 | Curl: unable to get local issuer certificate. How to debug? | I’ve got an odd problem. Updated my LAMP dev machine (Debian) to PHP 7. Afterwards I cannot connect to a specific TLS encrypted API via Curl anymore. The SSL cert in question is signed by thawte. [CODE] gives me [CODE] whereas [CODE] which—of course—is also signed by Thawte works. I can access the API site via HTTPS on... | Using [CODE] shows: [CODE] That last "i" shows the issuing self-signed root CA. I'm guessing that that particular Thawte root CA , _i.e. the Primary Root CA - G3 cert, is not in your [CODE] directory (as stated in the [CODE] output; [CODE] does not have a default CA path, and needs to given one explicitly, e.g. [CODE] ... | 28 | 19 | 144,700 | 2016-02-10T12:06:49.370 | api_errors | serverfault.com | |
13,413 | Two identical Azure deployments; one always throws 404 - how to find out what the difference is? | I am deploying a C# ASP.NET Core web service to Azure using Pulumi. I can deploy it in 3 ways: Run it locally from Visual Studio, i.e., not using Azure at all. Deploy it to Azure from my local developer computer. Deploy it to Azure from Jenkins (whicn runs on a different computer). I have this problem: When I run it lo... | We found out what was wrong. It was not an Azure issue. The problem was that we were deploying a bad ZIP file. The ZIP file was missing web.config , which meant that the web application could not start up. We were zipping our published web application by having this in the CSPROJ file: [CODE] This turned out not to wor... | 1 | 1 | 632 | 2021-02-23T10:09:24.327 | data_quality | devops.stackexchange.com | |
1,151,015 | nftables fails on boot with "Error: Could not process rule: No such file or directory chain ingress" but same nft conf works with manual nft start | Over one year I have had a working nft configuration. After updating NVM of my network cards and "apt update & upgrade" I encounter the following error on boot. But nftables starts without any errors, if I start it manually on command line with "sudo systemctl start nftables". I have performed a clean Debian install, b... | The root cause for the ingress error was in the faulty NVM update. I was able to narrow down the root cause by exchanging the network cards. When the trouble-maker card was exchanged/pulled out of the server, the error disappeared. I reflashed the NVM on the trouble-maker card and now it boots without ingress error. Th... | 0 | 0 | 422 | 2024-01-06T17:35:28.343 | infrastructure | serverfault.com | |
143,346 | Installing time zone data on MariaDB 10.0 | Yesterday, I set the time zone on our DB server (as explained here ). Doing so required using the [CODE] executable. Fortunately, this already existed on the server, and conversion of the time zone data went smoothly. However, today I can see that our slave is generating the same error. The problem is that the slave do... | I figured out a solution. The key to this solution is that I already had a system (the master) that I knew I could generate the timezone SQL on. I simply generated the SQL on the master, transferred it to the slave, and executed it! On Master [CODE] On Slave [CODE] After executing [CODE] on the slave, everything worked... | 2 | 0 | 4,085 | 2016-07-08T15:19:45.060 | database_errors | dba.stackexchange.com | |
307,035 | Handling multiple asynchronous events - Wait for pending offers to process on new offer? | I have a programming problem, that I don't know how to solve. And while I have provided a sample of my code, I am interested in a conceptual answer on how to resolve this problem. On a [CODE] event, I call a function to get a list of offers and process them one by one using [CODE] from Async.js module. However, if a ne... | If the array you're asynchronously processing can be modified by other code, problems like this are bound to happen at some point. The simplest way to prevent this kind of race condition is to make a defensive copy . The "multiple acceptance" bug you describe makes it sound like this callback is mutating the actual obj... | 1 | 2 | 2,000 | 2016-01-10T17:56:53.967 | api_errors | softwareengineering.stackexchange.com | |
632,438 | whitelisting some domains & some users on specific domains as destinations for Zentyal/Postfix | I have been using sendmail as MTA & SquirrelMail for webmail. I used to have following setup to restrict recepient in SquirrelMail. SquirrelMail had a plugin called Recepientrestrictions which can check two php files [CODE] - contains list of different domains where my domain user can send mails (sysadmins & Directors ... | To check the access of a user for a mail address, use the [CODE] parameter: [CODE] Use entries like: [CODE] The second column is the login name (used for authentication). For more information look at the docs. This example uses a hashtable, but you can also use a database or whatever you want to use. | 1 | 0 | 1,435 | 2014-09-30T13:37:19.520 | infrastructure | serverfault.com | |
240,768 | How to configure hostname for `apache22` package on FreeBSD? | I'm configuring development & test FreeBSD machine on VM. I installed [CODE] package and restarted. But the daemon does not started with this error: [CODE] My hostname is [CODE] . Because this is temporary test box, it has no real domain-name. But I used 2-level name to avoid long time waiting of [CODE] on booting. How... | [CODE] Usually, this is just a warning and not a fatal error. It can be solved by adding the config to your [CODE] file. [CODE] I can see there is a permission denied error. Make sure you invoke the startup scripts as super user [CODE] . Also, make sure there is no other process already listening on apache port (defaul... | 0 | 1 | 2,524 | 2011-02-27T07:05:19.190 | infrastructure | serverfault.com | |
217,534 | My Ubuntu 10.04 server kills all WAN bandwidth when it's attached to my LAN. Where do you begin troubleshooting? | First I should say that my Linux knowledge is minimal; just enough to set up some servers (Apache, Tomcat, Couch, etc). I built a MiniITX server to host some simple sites, act as an SSH tunnel while I'm away, and act as a torrent server. It was not properly secured for a long time (iptables was empty, all ports open, n... | TCPDUMP can show you the traffic on the wire. This can get messy, so you may want to redirect it to a file and browse it later: [CODE] [CODE] sets the length of the packet capture, 0 means as much as possible so feel free to adjust as needed. [CODE] prints the traffic in ASCII so you can read some of it. [CODE] sets th... | 2 | 3 | 1,481 | 2010-12-30T20:39:21.057 | infrastructure | serverfault.com | |
155,841 | Merge & remove duplicates | We have a few MySQL (InnoDB) tables with repeated data and I want to clean them up. Consider the following: Table [CODE] [CODE] We have duplicated rows for each school_grade. What I want to end up with is: Remove the [CODE] column, having all the [CODE] values in a [CODE] table Remove unnecessary duplicates in the [COD... | The query for populating the [CODE] table looks good to me except for two issues: I am not entirely convinced about [CODE] . If you want to create entries for all combinations of [CODE] , remove that condition. If you want to omit the groups consisting only of empty [CODE] values, you can use this condition instead: [C... | 2 | 1 | 4,263 | 2016-11-21T06:35:31.953 | database_errors | dba.stackexchange.com | |
109,587 | How many Rails apps can I run with VPS? | I've been playing around with Rails and have developed a few simple apps. I'm considering purchasing a VPS to host these apps and was wondering how much I could expect to put on it. The product I've been looking at provides 25GB storage, 500GB traffic p/m and 384MB guaranteed memory, with more at quiet times. The apps ... | The answer really is, as usual, "It depends". On a wide variety of factors. You haven't given us a lot of information to go on. For example: Who will use the apps? Is it personal usage only, some limited set of potential users such as a scheduling tool for your local little league field, or open to the national/interna... | 1 | 2 | 422 | 2010-02-04T14:19:54.963 | api_errors | serverfault.com | |
61,883 | MySQL: Use Sysbench on Windows | Sysbench is a tool to analyze the MySQL performance. I downloaded it and extracted but there is no executable file. Files having extensions like [CODE] or [CODE] or [CODE] are available. I gone through the documentation . Even, I did not get any info about how to install and use this great tool on Windows machine? | You need to compile it yourself. I downloaded the tarball and read the README-WIN.txt. It certainly indicates that it can be compiled on Windows using CMake. | 0 | 2 | 2,366 | 2014-03-27T12:54:49.097 | database_errors | dba.stackexchange.com | |
443,318 | NGinX config for Django and Wordpress in subdirectory | I need to set up a Django site at the root of a domain, but then have a Wordpress installation in a subdirectly (e.g. /blog/). How would one configure NGinX to do this? "Pretty" URLs have to work for Wordpress as well. For Django I am using Gunicorn, which is already configured. From NGinX I would call "proxy_pass" to ... | Something like this? [CODE] http://wiki.nginx.org/HttpCoreModule#alias | 1 | 1 | 1,725 | 2012-10-29T10:53:27.997 | infrastructure | serverfault.com | |
255,200 | Reusing query for duplicate tables | I have Database A & Database B. Both have a User table. I need to write one stored procedure that will retrieve the data from the correct table depending on a @Parameter passed in. The idea of the query (data needing returned) in the stored proc needed: [CODE] I have found the following ways to accomplish this but I wa... | Let's assume the value of [CODE] is [CODE] or [CODE] [CODE] | 1 | 1 | 67 | 2019-12-09T15:54:00.937 | data_quality | dba.stackexchange.com | |
504,308 | By what criteria do you tune timeouts in HA Proxy config? | When configuring HA Proxy, how do you decide what values to assign to the timeouts? I've read a half dozen samples in various blogs, and everyone uses different timeouts and no one discusses why. HAProxy seems specifically worried about client, connect, and server, which HAPRoxy throws a warning about if you leave comp... | The TCP RTO (receive timeout) starts at three seconds. ( RFC 1122 ) If a transmitted packet hasn't had an acknowledgement returned in that time, then it's assumed to be lost and retransmitted. This is almost certainly what the author is referring to. (Note that the RTO gets tuned up or down dynamically by various algor... | 43 | 49 | 59,748 | 2013-05-02T02:03:49.237 | infrastructure | serverfault.com | |
53,551 | Having a hardware problem with USB & Keyboard on machine, need some ideas? | I would have posted this on superuser but I can't get into it since it is still in private beta. I have a Dell sc400 at a remote location running SBS 2003 that is having some issues. The usb ports don't work and the keyboard will not type the letter b. The person at that location has tried different keyboards and still... | As for the keyboard problem, can you check if the sticky keys are enabled? If yes, try disabling it and check. Just a thought, I had a similar issue sometime back and disabling those sticky keys did the trick. This may not fix your problem? But, why not give a shot? cheers... | 0 | 1 | 155 | 2009-08-13T03:58:34.387 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.