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 |
|---|---|---|---|---|---|---|---|---|---|---|
487,165 | Why is NGINX running slow with php_fpm fastcgi_cache enabled using wordpress? | I am having a little trouble. I followed the tutorials step by step at rtcamp.com for wordpress multisite, only changing the ‘example.com’ to my domain name. I have the nginx helper plugin installed and it looks like the whole site and everything works great. (It’s a network of about 40 sites moved from a LAMP setup) I... | How do you establish is slow ? Did you enable any sort of limits into php-fpm ? Send the log files from php-fpm and nginx. | 0 | 1 | 6,329 | 2013-03-12T20:32:56.520 | infrastructure | serverfault.com | |
23,360 | Simple queries taking ages to run after changing from MyISAM to InnoDB | I have a quite large (300GB) table on MyISAM, which I've "converted" to InnoDB, and performance for a specific query has dropped through the floor. When I say "converted", I can't afford to take the table offline for a few hours to run an ALTER statement, but most of the data in there is old, so I actually renamed the ... | A few notes and suggestions: I was asking for the [CODE] params to verify you're not running with silly defaults. You're not, and setup looks OK. The [CODE] table doesn't have a [CODE] . It should, as with all InnoDB tables, since these use a clustered index, which is the [CODE] . Yours does not have one, so it's clust... | 1 | 1 | 976 | 2012-08-29T15:48:51.490 | hadoop_errors | dba.stackexchange.com | |
220,590 | Query involving TVF very slow on SQL Server 2008 | I have a query that runs in under 1 second on SQL Server 2014. A similar query takes over 12 minutes when run against a table on a linked server running SQL Server 2008. I don't know if it's because it's a linked server or because it's 2008. I found a blog post about TVFs confusing the query optimizer on 2008 , but I'm... | Before SQL Server 2012 SP1, the permissions needed by the linked server login to read remote statistics were: In order to view the statistics object, the user must own the table or the user must be a member of the [CODE] fixed server role, the [CODE] fixed database role, or the [CODE] fixed database role. From SQL Serv... | 2 | 2 | 121 | 2018-10-19T18:08:38.543 | database_errors | dba.stackexchange.com | |
489,252 | How to run PHP + IIS8 as Windows User, or should I? | I am creating a PHP website on IIS8 that needs to connect to an SQL Server that is in the same Windows Domain as the IIS8. I am given a Windows Domain user account and asked to connect using its credentials. I am using [CODE] for PHP and I get the error [CODE] Is there a way to run PHP + IIS8 as the windows domain user... | Whilst Joel's answer leads me to it, I did not solve the problem with the above. I find that changing the application pool to the specific user did not help. There are a few more related areas to check. The FastCGI.Impersonation value in php.ini must be set to 1. This can be verified in the task manager and see what ac... | 2 | 2 | 2,010 | 2013-03-19T13:18:23.410 | api_errors | serverfault.com | |
190,075 | OpenSSH, ChrootDirectory, WinSCP. How do I allow wget and tar? | I think my question is really: How do I follow the ChrootDirectory directions here to allow interactive shell? I have a virtual server at Linode running Ubuntu 10.04. I will be hosting a Drupal site for a friend. I'd like to give him the ability to safely use wget and tar within his directory. That's all he needs to be... | [CODE] is usually used to create device files easily. Passing it [CODE] will allow you to specify a directory to create them in. [CODE] For [CODE] just use [CODE] , and [CODE] to see what libraries it may need. | 0 | 1 | 908 | 2010-10-12T12:07:50.910 | infrastructure | serverfault.com | |
483,295 | keepalived 2 VIP and 2 servers | Is it possible to configure keepalived in such a way? In normal state VIP_1 assigned to SERVER_1 and VIP_2 assigned to SERVER_2 On server failure all VIP's going to working server, and after failed server becomes live we don't migrate his VIP back to him, we need to do it manual due to some content-replication reasons.... | On host 1: [CODE] On host 2: [CODE] For the no-auto-failback, look at nopreempt in the keepalived.conf man page but also see: http://article.gmane.org/gmane.linux.keepalived.devel/1537%22 | 2 | 1 | 7,305 | 2013-02-28T05:34:50.700 | database_errors | serverfault.com | |
213,857 | How to grant more memory to run R processes in SQL Server 2016 R Services | I'm running a fresh install of SQL Server 2016 Standard Edition (13.0.5026.0) with R Services on Windows Server 2016 Standard. With all sorts of happiness I went to run an R script that completes within 15 mins on my lame desktop machine (8 GB RAM, 1 Intel proc @3.4 GHz) and found that it takes over two hours to run on... | You'll want to use the resource governor. Here is a good blog. Enable Resource Governor (do some research on this): [CODE] This will tell you how much % of your memory R can use. [CODE] Sample query to change values from the link: [CODE] Don't forget to run reconfigure again: [CODE] | 1 | 2 | 1,204 | 2018-08-02T02:12:38.590 | database_errors | dba.stackexchange.com | |
133,993 | Is programming or computer science in general, all about algorithms? | As a grad student, I find it more and more common for prestigious companies (like Google, Facebook, Microsoft,...) to put algorithm questions in their test and interviews. A few startups I applied to also asked about algorithms. I wonder if algorithms fluency is the most important thing for software developer in those ... | Algorithms are clear Here's the beautiful thing about algorithms: The problem space they deal with is well-defined, i.e. your requirements are not only actually known , but usually even formalized much like the metrics for the solution's quality. So if I tell you to come up with an algorithm, there isn't much potential... | 43 | 47 | 17,258 | 2012-02-08T17:43:25.797 | api_errors | softwareengineering.stackexchange.com | |
667 | Building Dynamic Oracle Where Clause | I'm working on application that uses dynamic query to do a select statement based on user input, after discussing security with DBAs they want me to convert my dynamic select statement into Stored Procedure. I have built dynamic sql using MSSQL but I can not figure out how to convert it to Oracle SQL. [CODE] *please no... | This might give you an idea: [CODE] Later, in SQL*Plus: [CODE] Edit : The comment is right, and the procedure is subject to SQL injection . So, in order to prevent that, you could go with bind variables such as in this modified procedure: [CODE] Note, that now, whatever the input, the select statement becomes something... | 7 | 6 | 27,460 | 2011-01-17T21:17:18.797 | database_errors | dba.stackexchange.com | |
574,163 | High Disk write not listed under iotop | I have problems with high I/O on my Debian 7.3 server (up to 7 seconds average I/O wait). I tried to find out what's causing this by using iotop -o. Now I see sonething strange: iotop tells me on the top 'Total DISK WRITE: 32.46M/s'. But in the tasklist I can't see any process writing so much on the disk. The highest a... | if you install newer iotop (like 0.6.x from wheezy-backports), it will show you both "total" and "actual" values. And man page gives the explanation In addition, the total I/O bandwidth read and written during the sampling period is displayed at the top of the interface. Total DISK READ and Total DISK WRITE values repr... | 6 | 8 | 4,463 | 2014-02-08T14:43:04.213 | database_errors | serverfault.com | |
223,237 | How to do mysql_upgrade for a particular database table | i am facing issue regarding mysql.user's table in mysql 5.6.36 server , previously my slave used to be on 5.6.22 version and we have taken a dump and migrated to new server , but due to version incompatibility we are unable to create new users , it is giving error to upgrade , is there anyway so that i can just upgrade... | You need to run [CODE] ( See Documentation ) This will bypass checking all other tables and focus just on the [CODE] schema. | -1 | 0 | 2,544 | 2018-11-22T17:42:32.483 | database_errors | dba.stackexchange.com | |
1,082,279 | Docker/Podman in Docker fails as a GitLab CI job | Context I am running my own GitLab instance with an extra server for CI. In case it matters my host for the gitlab runner has CentOS 8 and the gitlab runner is version 14.4.0 and the gitlab instance is running 14.4.1. I am currently using a shell executor on the CI server but want to switch to a docker executor. Gitlab... | At some point I have found kaniko and am now building my containers with this. My gitlab CI template looks like this: [CODE] The [CODE] means I am running these jobs on the docker executor of gitlab runner. | 3 | 0 | 1,548 | 2021-11-01T13:50:02.397 | pipeline_ops | serverfault.com | |
215,456 | DB user restricted permissions vs Docker? | As far as I know, it's usually considered a good practice when developing websites to store in website config DB credentials of the user without ALTER/DROP permissions (so user may only select, insert, delete rows, but cannot modify DB structure). But nowadays more and more sites using Docker for deployment and usually... | Given a brutal super user command or [CODE] / [CODE] as likely to be the SQL injection commands for the malicious hacker, you may as well defend yourself against those. No point invoking a data recovery procedure pre-emptively. | 2 | 0 | 55 | 2018-08-21T09:24:39.680 | pipeline_ops | dba.stackexchange.com | |
341,586 | Which piece of code is more efficient with respect to Time and Memory cost? | Code 1: [CODE] Code 2: [CODE] Please ignore commenting on the type of access modifier used or the args made available to the method. I actually came up with Code 1 before being counseled by my friend to use the "compareTo" method from the String Class, which is reproduced here under Code 2. I wonder which piece of code... | First: The two methods does two different things. [CODE] returns the alphabetic ordering of two strings which means it can be used to sort a set of strings alphabetically. [CODE] just returns -1 if the stings have different lengths, which means it can't be used for sorting. So comparing the performance of the methods d... | -6 | 3 | 321 | 2017-02-05T07:58:58.053 | api_errors | softwareengineering.stackexchange.com | |
443,386 | Workaround for digits in beginning of identifier | Suppose I have a [CODE] -like type, that represents a matrix or an image, or a class modelling a 3d mesh. I would like to say [CODE] But that would obviously not compile. What to do instead: Use exotic unicode symbols. They are sometimes hard to read (depending on font), and even harder to type. Use roman numerals as p... | Just flip the word order, e.g. [CODE] . That's how most libraries I'm aware of do it, it is fairly readable, and it can be typed with ASCII-only characters. You will quickly get used to this word order, after all you're writing C++, not English. Similarly, method call syntax doesn't follow English grammar and it's fine... | -1 | 5 | 78 | 2023-01-14T12:57:23.350 | api_errors | softwareengineering.stackexchange.com | |
800,187 | Amazon EFS Mount from OSX | Gentlemen, I followed the instruction on this excellent post but failed to connect. Elastic file system (EFS) mount outside of AWS I use CoreOS in a Mesos Cluster. We have an EFS connected to all the nodes in the cluster so they can share data, scripts, etc. We have a VPN tunnel to the AWS VPC so we can connect from th... | For anyone who is looking for answers to this kind of question, the comment from Michael solved my problem. We have direct connect to AWS and after adding the right inbound rule (TCP 2049 office subnet) to the security group, I am able to mount EFS to my local macbook. [CODE] | 8 | 12 | 15,058 | 2016-08-31T10:50:17.667 | database_errors | serverfault.com | |
256,562 | Exchange Site Consolidation | I'm looking for your thoughts on consolidating a 5 site Exchange deployment into a single fault tolerant site. Is this feasible? Is it just a bad idea? Here are the details: Site1: Hub site. 5mbps wan link ~200 Mailboxes Site2: 3Mbps WAN link ~200 Mailboxes Site3: 3Mbps WAN link ~100 Mailboxes Site4 and Site5: 1.5Mbps ... | Consolidation, best way to go in my opinion. I co-built a 6,000 mailbox design in Exchange 2003 (then upgrade to 2007) that had 70+ WAN sites but only two mailbox servers (+2 cas/hub) in central site. Most sites had 1.5 to 10MB WAN max and the mailbox servers (in year 2005) were mostly board. The key is cached mode. Tr... | 0 | 1 | 226 | 2011-04-06T20:59:38.400 | pipeline_ops | serverfault.com | |
259,310 | SQL Statement Layer Filter Queries Limit Access | Goal: Want to create a so called "SQL Statement Layer" which checks/filters all incoming queries. If incoming query is invalid, should be denied. Use-case: Limit database access and avoid unrevertable queries. No duplicate code in multiple applications about the same "triggers or procedures" (centralized). Research so ... | I am not quite sure if using the built-in privilege system in combination with encapsulation of some or all of the SQL code in stored procedures is the only way, but it certainly is the sane way of going about restricting access to the database. You are free to introduce your own system, of course, but from what I have... | 0 | 6 | 55 | 2020-02-10T12:32:16.153 | data_quality | dba.stackexchange.com | |
1,089,418 | Can't open PID file /run/opendkim/opendkim.pid (yet?) after start: Operation not permitted | i am about 2 hours on configure dkim with postfix on ubuntu 20.04. I try absolutly everything, but dkim wont work. OpenDKIM-Service won´t start: [CODE] Here is my /etc/opendkim.conf: [CODE] Here is my /etc/default/opendkim.conf [CODE] Here is my master.cf: [CODE] Here is my /etc/postfix/main.cf: [CODE] | I'm seeing the same problem. I don't have enough reputation to leave a comment so leaving an observation not really an answer which might help lead to a better answer. Hopefully. creating the file helped get opendkim to startup. touch /run/opendkim/opendkim.pid Then I found you have to change the ownership on the file ... | 1 | 0 | 9,930 | 2022-01-08T18:45:58.277 | infrastructure | serverfault.com | |
28,689 | Bypass certificate error in IE | I have tried over and over again to get the Internet Explorer Driver to bypass bad cert errors in WebDriver. Currently I do this: [CODE] And it works just fine. But it's slow. I read everywhere that I could add in my [CODE] this: [CODE] But it doesn't work. I've tried several other solutions too. Is this just outdated,... | try this: driver.findElement(By.linkText("More information")).click(); driver.findElement(By.linkText("Go on to the webpage (not recommended)")).click(); Make sure you have enable protected mode for all zones under Internet Options -> Security. | 3 | 1 | 4,086 | 2017-07-20T16:02:09.293 | data_quality | sqa.stackexchange.com | |
855,921 | nginx cache issue with multiple upstreams | I have a weird issue with nginx proxy+cache setup proxying for two identical upstreams. I have two identical upstream servers setup in an active/backup configuration. The cache is working fine for one of the servers, but as soon as I switch the active/backup config and reload nginx, I do not get any cache hits, and the... | I have managed to solve it. With the help of the debug log, I have found out that one of the upstream servers is wrongly (the content is static and does not expire) sending [CODE] and [CODE] headers with the response, which then mess up nginx cache (the upstream servers are not under my control, unfortunately). I have ... | 2 | 3 | 3,039 | 2017-06-15T08:35:51.163 | database_errors | serverfault.com | |
38,827 | Find matching text from a text column | This is my first time to use Data Analytics tool to figure out a solution to a problem. I have a table with following columns [CODE] . I have been given list of [CODE] to be identified from the [CODE] column. These key phrases are in a sentence format. Example: I have to find exact or a similar matching phrase from tho... | The problem you are suggesting is a text summarization problem. It can be of two types abstractive - understanding the text distribution and then producing a summary, extractive - extracting specific words from the text to produce a summary. Clearly, your problem falls in the latter category. Also, since you have the l... | 5 | 1 | 515 | 2018-09-26T16:39:20.990 | data_quality | datascience.stackexchange.com | |
118,702 | sphinx 0.9.9 runs slower than 0.9.8 | After upgrade of sphinx from 0.9.8 to 0.9.9 we ran into serious problems with performance. Searchd works on EC2 large instance. Queries started to work much slower and i often could see Z (zombie) searchd processes in top. I expect this may be related to full-scan queries. Did anyone experience anything like this? | We just tried to upgrade from 0.9.8.1 to 0.9.9 and we also experienced slower responses... We went back to 0.9.8.1 until 1.0. | 0 | 1 | 144 | 2010-03-03T11:17:56.570 | infrastructure | serverfault.com | |
1,156,353 | Do Windows domain builtin groups grant the same permissions as the equivalent machine builtin groups? (eg, Performance Monitor Users) | I am developing a Windows service that uses PDH to query some performance counter data. It is necessary for the service to by run by another user (ie, not the all-powerful SYSTEM). I am aware that the user running the service must be a member of the "Performance Monitor Users" builtin group to make these calls. When I ... | Domain BULTIN groups do NOT confer access to domain members by default. Domain BUILTIN groups effectively function as the equivalent of local machine groups for domain controllers. -- You can adjust this behavior and make them work the way you describe, but I believe the correct path forward is to create new domain loc... | 0 | 3 | 114 | 2024-03-15T21:07:21.453 | infrastructure | serverfault.com | |
111,863 | Is MySQL better than PostgreSQL in something? | I know the question sounds provocative, but it really isn't. I'm lately finding MySQL limiting in a lot of areas and liking PostgreSQL more and more. It scales a lot better and it respects the SQL standards a lot more than MySQL. I'm still new to the PostgreSQL world though and since I'm willing to move away from MySQL... | You're clearly approaching this from a developer perspective, so you may find more useful answers over at SO. From an administrative perspective: - Replication (HA) - Replication (Scaling*) - Replication (Backups) - Application support - Size and Depth of community (Documentation, Support) - Existing install base / ava... | 8 | 3 | 3,768 | 2010-02-11T11:07:22.223 | pipeline_ops | serverfault.com | |
976,574 | Nginx rate limiting, using multiple rate rules | Using nginx rate limiting, using this rule as an example: [CODE] This will set 30 requests per minute. However what if I wanted to stack a second rule, so the logic is "30 requests per minute, or 1 request per second. Whichever comes first" The reason for this is we still want a cap of 30/min but there are some weird a... | It is perfectly valid to apply multiple zones to the same block. You may also create multiple zones that store requests for the very same key (typically some prefix of client IP address ). It only costs minimal processing and memory. The following will limit users, identified by their network address, both in second an... | 5 | 4 | 4,913 | 2019-07-24T20:29:31.300 | api_errors | serverfault.com | |
1,012,155 | how many virtual machines (servers) can I run at the same time? | Let's leave the memory issue for a moment, aside. If I have two 64-cores AMD EPYC processors each, how many virtual machines (servers) can I run at the same time? Is that right that I can run 64 VMs at the same time? (assuming that each vm need 2 logic processors). My question was raised during reading the following ar... | If you want to use all the processors, you can run at least 64 VMs with stable performance for sure; you can run more than 64 VMs but you have to monitor their performance. | -2 | 0 | 9,798 | 2020-04-13T20:20:13.293 | infrastructure | serverfault.com | |
260,563 | Changing ComputerName did not change HostName on Domain in XP | I have a group of computers on a domain that I want to be able to remote control via RDP. All computers are WinXP. I changed the "ComputerName"s through the SYSTEM CONTROL PANEL of the computers; to administer them easier- example cea-laneXXX etc.... I can connect to them thru the domain with rdp. Problem is that some ... | A computer can have multiple "names" on the network. There is a name that the computer has itself. There is a name in the local DNS system populated through discovery or auto-update or DHCP propagation. There might be specifically assigned "A" records in the DNS connected to the IP address. And there is the name of the... | 1 | 2 | 9,553 | 2011-04-17T04:03:51.220 | infrastructure | serverfault.com | |
751,372 | Nginx .php scripts restriction in subfolder | I would like to deny external (from web) access to some PHP files related to MoxieManager. Whole MoxieManager is in www/moxiemanager folder, where www is accessible from web. Now I tried this [CODE] } where restriction to /moxiemanager/data is working flawlessly -> I can't now read /moxiemanager/data/storage/some_file.... | You missed just one thing: regexp locations override non-regexp ones. So, a proper statement would look like yours, with only a slight change: [CODE] | 0 | 0 | 118 | 2016-01-24T13:32:33.543 | infrastructure | serverfault.com | |
817,106 | What is the best way to restore a Hyper-V VM server? | I backed up a hyper-V VM 2012 server on to a network share to try to run through the process of restoring. I used the windows iso on the VM and selected to restore from the network back up. Everything was restoring fine, but towards the end of the process I received the following error: the post recovery operation to s... | If its the VM guest your trying to restore, simply export the VM to the network share. this can be scripted in powershell. If you want to restore it just go to hyper-v manager and select import vm. https://technet.microsoft.com/en-us/library/hh848491.aspx [CODE] | 0 | 0 | 66 | 2016-11-25T17:35:25.200 | database_errors | serverfault.com | |
86,624 | How do data types influence hardware (CPU / GPU / TPU) performance? | I am currently dealing with a relatively big data set, for which I have some memory usage concerns. I am dealing with most of the different data types : floats, integers, Booleans, characters strings for which some were changed to factors. From a memory usage (RAM) standpoint it is pretty clear what is happening when I... | The variation in performance gains you are seeing from reduction precision might be due to different frameworks using different types. Even after downcasting data types, some operations will automatically upcast types. You mention using both Pandas and TensorFlow / Keras. Mixing frameworks might result in unwanted reca... | 2 | 2 | 135 | 2020-12-13T09:52:07.587 | data_quality | datascience.stackexchange.com | |
524,938 | Creating user accounts with Puppet? | I'm just getting started with Puppet and I have the following code in my test site.pp file: [CODE] I'm trying to use the account module from Puppet Forge. I have checked that the module is installed correctly. The error given when using the above code is: Error: Could not retrieve catalog from remote server: Error 400 ... | You can name your classes as you want, but you need to use the right name for resources. In this case, the resource you want to use is [CODE] . There is a very simple way to know how a resource should look: [CODE] That code, inside a class would look: [CODE] Puppetlabs have a very good documentation on the resource abs... | 5 | 11 | 18,514 | 2013-07-20T11:40:24.700 | pipeline_ops | serverfault.com | |
58,234 | Windows 7 Software Installation : Siemens Step7 and Siemens SCL | We use Siemens Step7 and SCL for PLC programming in our company. I recently got to install Windows 7 and had yet to find out that the Siemens software suite doesn't install anymore. - Which is a pain... Checking through the setup files, I found following entries in the Setups.ini file: [CODE] I added the last line to t... | Try to install it in Windows Vista compatibility mode (right-click on installer and go on compatibility tab). Since this program does support Vista, I would expect that to work. Only installer is broken. | 1 | 1 | 12,483 | 2009-08-25T04:12:03.337 | infrastructure | serverfault.com | |
393,306 | Can I use a library that uses guice to bind contact and implementations in applications without issues? | I have a play application and want to take a common operation out from the application and make it as a library in order to use in other play applications. This proposing library has a contract(interface) and several implementations of top of that. I have 2 questions; What if I use guice to bind contact and implementat... | You are confusing dependency injection (DI) with the more specific idea of using a DI framework to supply those injected dependencies. remember that it's perfectly possible to use pure DI to inject dependencies without a framework. So the answer to the question, " Is it good to use dependency injection in a java librar... | 1 | 5 | 1,195 | 2019-06-14T06:55:31.140 | api_errors | softwareengineering.stackexchange.com | |
821,445 | Elasticsearch Curator unable to connect with AWS ElasticSearch service | From a server on AWS, I push data into AWS ES service. This data appears on Kibana just fine. I am also able to perform cleanup via cURL commands from this machine. However, no machine of mine is able to run ElasticSearch Curator successfully and connect to AWS ES. [CODE] My access policy allows me to access this machi... | Curator is attempting to connect to port 9200, the default ES port. AWS ES is on port 80. Add [CODE] to your command line. | 1 | 0 | 1,220 | 2016-12-18T15:26:48.217 | database_errors | serverfault.com | |
558,883 | IIS6 Server compromised, pages being served which don't exist as asp files? | Started a new job recently which involves some work with an IIS server. We recently found that the server had been compromised as a few websites had pages appearing on Google Webmaster tools which appeared to be advertising products for some third party. Anyway to cut a long story short I have been through the files nu... | Turns out the files did exist but where marked as System Files (sneaky hackers), hence why they weren't visible initially. Never realised that by enabling 'show hidden files' for the particular folders wasn't enough to display system files also. Lesson learned. | 0 | 1 | 61 | 2013-12-03T10:39:03.157 | infrastructure | serverfault.com | |
120,818 | MySQL shows previously deleted data | We're running MySQL on Azure. We have three very small databases. The main database is POI and it hold 11 static records. During the day a few records may be added and deleted again within 1-2 hours. We typically have 5-10 mobile users who poll the POI-DB for all 11-15 records every 60 seconds. Several times every day,... | "Transaction Isolation Modes" let you see data even after it has been deleted. Some modes effectively "take a snapshot of all data", then let you see only that data until you [CODE] . I doubt if that is what is causing what you see. It would be very rare. It would need longer timeouts than are reasonable. Have you chan... | 0 | 1 | 1,078 | 2015-11-11T22:36:22.143 | database_errors | dba.stackexchange.com | |
173,590 | Application intermittent "Not Responding" | We have a POS application that at 4 specific locations will sometimes lock up for 30-120 seconds rather frequently (every several minutes or so). The point in the UI at which it is not responding varies widely. Each location has only the 1 machine running the app and MySQL and whatever else, yet when that machine is br... | a 30-120 sec lock up of a system. Do you need to recover it? IF it recovers by itself after the given time then best check the network connection, might just be faulty cables simple way to test is out is to run a ping -f and have a look at the numbers. If it changes too drastically then chances are its the cable | 0 | 1 | 152 | 2010-08-23T15:31:20.393 | database_errors | serverfault.com | |
420,245 | Abstract factory pattern for creating complex shapes | At the moment my code looks like this. I have simplified the UML so it does not contain unnecessary information. I have used abstract factory design pattern. My job is to create shapes. The problem is that these shapes are really complex to create. [CODE] has to know multiple different values to be able to create a sha... | Should I use AbstractFactory design pattern in this kind of a problem? Depends on if the problem you have is the kind of problem that the Abstract Factory pattern provides a solution for. So let's look at that, and then, hopefully, you'll be able to decide for yourself. An abstract factory is essentially a glorified co... | 1 | 2 | 1,078 | 2020-12-21T18:48:38.573 | api_errors | softwareengineering.stackexchange.com | |
137,860 | How do I speed up XML parsing operation? | I currently have a php script set up to do some xml parsing. Sometimes the script is set as an on page include and other times it is accessed via an ajax call. The problem is the load time for this particular page is very long. I started to think that the php I had written to find what I need in the XML was written poo... | I suggest you look into caching. Chances are the feeds don't change much, and if they do, maybe you can afford getting the changes into your application a little bit later. Basic caching would go something like this: Do we have the XML data in the cache? If we do, just use the cached data. If we don't, load and parse t... | 2 | 5 | 4,959 | 2012-03-01T22:31:42.783 | api_errors | softwareengineering.stackexchange.com | |
433,356 | Proxmox VE cluster not working | I have been using a Proxmox VE 2.0 cluster (2 servers) for months. Today, I had the "bright idea" to install a GUI on one of the servers. I used [CODE] , and selected the [CODE] (Gnome). When I rebooted the server, neither of the servers on the cluster could see each other (shows a red light by the server on the sideba... | Use [CODE] to tell CMAN gather cluster with one node online. Also you might want to see Creating a Basic Cluster Configuration File where is described two nodes cluster configuration | 3 | 4 | 13,193 | 2012-09-30T02:29:22.733 | infrastructure | serverfault.com | |
254,682 | permission denied on mongod.lock, despite it being owned by mongodb | this is my mongod.lock: [CODE] hence this solution doesn't apply: https://dba.stackexchange.com/a/183018 this is how I start mongodb: [CODE] and this is the output in mongod.log: [CODE] thanks in advance. I really don't see how mongodb would not be permitted to access a file owned by mongodb | It works after I did: [CODE] I don't understand why. mongodb.lock is located in /run/media/minze/ssd/mongodb/mongodb.lock ls -lha gives me (permissions of '.' are important here): [CODE] now | 1 | 1 | 2,933 | 2019-12-03T16:17:23.270 | database_errors | dba.stackexchange.com | |
408,021 | SuExec: “command not in docroot” Even Though It Is? | Arch Linux 2011.08.19 (Linux 3.4.2 i686) Apache 2.2.22 with SuExec PHP 5.4.4 (cli) via FastCGI My sites were all working fine earlier… I’m not sure when it happened because I noticed it over a week later (I’m guessing perhaps after a system upgrade), but all my VirtualHosts went offline with the dreaded “Premature end ... | You need to recompile suexec.c --with-suexec-docroot=/srv/www | 4 | 0 | 10,241 | 2012-07-16T05:16:04.387 | api_errors | serverfault.com | |
293,995 | How to monitor HTTP response error codes from nginx using munin? | I'm beginning to use Munin to monitor an in-production Nginx server. One thing I'm particularly interested in graphing is the rate of errors--HTTP responses with codes in the 50x range. I'm wondering if: Is there an existing plugin to do this? Alternately, what would be the best approach to writing my own plugin. Acces... | Well, no such animal existed, so I conjured it . You'll find the latest code in the gist . Enjoy. | 2 | 4 | 3,605 | 2011-07-25T21:40:46.310 | infrastructure | serverfault.com | |
217,410 | I've got 60 million sales of 800 different liquid products whose price change daily | ..and I'm having a bit of a battle getting to customer stats like who's bought the most, and when was their last purchase. I've no problem writing the query, it's just really slow [CODE] Sales are recorded as an amount sold at a time/date. All products change price daily, so to find the total sales to all customers we ... | Without seeing the execution plan, it's impossible to say exactly what the problem was. However, the root cause seemed to be with the way the optimizer was handling joining the queries within your CTEs (or something along those lines). In SQL Server CTEs aren't currently materialized or fenced off (unless you use TOP i... | 3 | 2 | 122 | 2018-09-12T17:54:33.563 | warehouse_errors | dba.stackexchange.com | |
1,019,893 | SNMP: hrSystemUptime.0: Unknown Object Identifier (Sub-id not found: (top) -> hrSystemUptime) | I get the error in the title when I issue the following command. [CODE] If I enter the same command on the target system (192.168.x.x), I get a valid result. [CODE] The client is an Ubuntu 18.04.1 based Docker container and the target is an Alpine-based Linux device. I have installed [CODE] in the container and the [CO... | The [CODE] package installs [CODE] : [CODE] Commenting out the last line resolves problem as described by the comment in the file. Removing [CODE] entirely has the same effect. | 3 | 4 | 12,301 | 2020-06-03T16:24:01.783 | pipeline_ops | serverfault.com | |
740,760 | RKHunter report: "No hash value found" | I'm getting RKHunter warnings every day when my cron job runs the check. I'm on FreeBSD 10.2 This is the warning I'm getting: [CODE] I already tried [CODE] and [CODE] but the warning remains. [CODE] [CODE] reveals this: [CODE] I installed Rootkit Hunter through the ports tree and am now on 1.4.2. Is there anything I'm ... | I figured out that Perl 5.20 doesn't use the symlinks in /usr/bin any more. (Better read those messages!) They now were pointing to a nonexistent file: [CODE] I deleted those and now RKHunter is quiet. [CODE] | 2 | 1 | 549 | 2015-12-04T11:04:26.927 | infrastructure | serverfault.com | |
142,427 | DDWRT or similar as repeater in a network | I have a friend with sever connection issues due to her wireless router being on the bottom floor of her house, and the computer being a story or two away. I have several old Linksys routers lying about, one of which is currently running DDWRT for my network. Would it be a good idea (effective) to configure one of thes... | Set the routers up for WDS | 0 | 1 | 121 | 2010-05-16T20:58:11.140 | infrastructure | serverfault.com | |
602,684 | CentOS 6.5 SVN https - Unknown DAV provider: svn | I am trying to setup a CentOS 6.5 64bit server with SVN over HTTPS. Unfortunately after configuring the [CODE] file as follows (changed paths): [CODE] I get the following error message when restarting http: [CODE] I have triple checked that I have the [CODE] package already installed: [CODE] Is my config wrong or are t... | It seems that module mod_dav_svn is not loaded. Check you subversion.conf there should be uncommented the following line [CODE] | 0 | 3 | 3,992 | 2014-06-08T13:19:48.013 | infrastructure | serverfault.com | |
860,007 | How many drives do I need for RAID? | I build a microserver to access my personal data and web services from my client machines. Since this is all the stuff I collected in the past 15-20 years, I'd like to keep it safe, so I'd like to use RAID this time. I have already checked that only 3.5" HDD-s have rational prices, so using 2.5" hdd or ssd is not an op... | Depends on what level RAID you want to do, and of course that depends on what you want to do with the RAID :) Also don't forget that with Linux you can do software raid, no hardware support needed. What is nice about this is that the raid drives can be moved to another machine and be brought back up quick and easy. Min... | -5 | 2 | 339 | 2017-07-08T00:49:35.363 | database_errors | serverfault.com | |
718,721 | Debian - No internet traffic, wget fails. Ping, DNS & telnet work | I have an internet connection issue with several computers on a KVM serer, which is also having the same issue. The internet connection on Windows guests works fine. This is happening on multiple machines. The gateway is a pfsense firewall with all LAN side traffic allowed as per its default configuration, the 192.168.... | It turns out there is an issue with VirtIO's hardware TX checksum offloading capabilities which causes problems with PFSense, which exhibits itself as this partially working connection. Running [CODE] against each of the virtual interfaces fixed the problem. https://forum.pfsense.org/index.php?topic=88467.0 | 2 | 1 | 1,294 | 2015-09-03T02:24:00.210 | infrastructure | serverfault.com | |
578,575 | Windows Active Directory Bitlocker deployment | I am experimenting with bitlocker deployment via AD at work. Have googled all over the internet, but the most useful reference seems to be: http://technet.microsoft.com/en-us/library/cc766015(v=ws.10).aspx Server 2012 R2, fully updated. Test client is Windows 7 Ultimate 64bit, fully updated. For some reason, it's not w... | A streamline was of managing bitlocker in your environment would be to consider a multi discipline approach. Group Policy Set your group policy to automatically backup the recovery key to active directory, and to not encrypt the computer if the recovery key isn't stored in AD. Also, if the users will be encrypting thei... | 3 | 2 | 11,530 | 2014-02-26T23:13:07.197 | pipeline_ops | serverfault.com | |
287,571 | Problem RDP'ing to a windows server | I have a windows server 2008 standard installation. Up until this morning I could RDP into it without issue. Now it's coming back with an error saying "the remote computer requires Network Level Authentication, which your computer does not support." I'm RDPing FROM a Windows Server 2008 R2 install... That error usually... | My bet is that this was a time sync issue. NLA (which uses Kerberos) usually requires that the time between the server and client be within 300 seconds of each other. If the time skew is greater than this, authentication will fail. | 0 | 5 | 787 | 2011-07-06T16:26:59.260 | api_errors | serverfault.com | |
311,414 | How to optimized self-join view of 50 millions rows table | I've the following simplified table with ~50M rows. [CODE] I would like to get for each measured gap (between two different dates) my calculated value. My query is as follow: [CODE] And the results are quite fast [CODE] However, when I create a view to use this query often the results are poor. Creating the view: [CODE... | The parts of an SQL statement are processed in a certain order (at least logically). In the case at hand, the [CODE] condition is evaluated before a window function like [CODE] . Your view definition and the query on the view reverse that order by effectively introducing a subquery: [CODE] There is nothing that the opt... | 0 | 0 | 503 | 2022-04-27T21:52:27.630 | warehouse_errors | dba.stackexchange.com | |
274,033 | Netgear smart switch: don't understand VLAN | I'm having some difficulty getting my head around the VLAN settings in a NetGear Smart Switch (GS724TS). Can anyone help me? My understanding is: All incoming packets effectively have a VLAN number which is determined from a tag attached by another device or (if no tag is present) based on the port's PVID value. Outgoi... | Rather embarrassingly, after a spot of lunch and a reboot of the switch, it started behaving exactly as I imagined it should. I think this validates my original bullet-point understanding of the situation detailed in my question. I'm going to leave the question up because, although the original question was perhaps bog... | 4 | 2 | 15,886 | 2011-05-26T12:35:47.930 | infrastructure | serverfault.com | |
187,548 | Can SQL Server Always Encrypted be used for temporary tables? | I'm trying to determine if I can use Always Encrypted on a column in a temporary table (SQL Server 2016 SP1 Enterprise on Windows 2016). I've tried as follows: [CODE] However, I get the error: Msg 33293, Level 16, State 8, Line 3 Cannot find the column encryption key "ColEnc1" because it does not exist or you do not ha... | It appears that you have to create a CMK and CEK in tempdb. This command Works On My Machine®, and is largely copy/pasted from BOL articles. [CODE] | 6 | 5 | 1,920 | 2017-10-03T17:13:24.653 | database_errors | dba.stackexchange.com | |
71,338 | Getting error while running dbca command as oracle user on linux, please help me on this | could someone please help me on the below error to get ride of it: [CODE] | Start with (use the appropriate install syntax for your distro) [CODE] and if that doesn't do the trick, do [CODE] Paul... | 0 | 1 | 10,599 | 2014-07-12T17:03:53.090 | database_errors | dba.stackexchange.com | |
322,572 | Failed to initialize sqlcmd library with error number -2147467259 | This is my code: [CODE] And the result I'm being given is: Msg 22050, Level 16, State 1, Line 0 Failed to initialize sqlcmd library with error number -2147467259. My query works outside of sp_send_dbmail, but would not work inside it. And if I change my query for the following code, it will send the email and work as e... | It looks like a mistake in your query. Shouldn't the IQS and MED not be between quotes? So something like this? [CODE] | 0 | 1 | 308 | 2023-01-25T16:00:07.023 | database_errors | dba.stackexchange.com | |
258,048 | Error creating memory optimized filegroup in SSDT | I am attempting to add a memory optimized filegroup to a SQL server database project in SSDT. This is for SQL Server 2017, using Visual Studio 2017. However compiling the project (pressing F5 to build) is resulting in an error. This error does not occur when deploying (via Deploy). The filegroup is created as normal (w... | I am not certain whether AUTO_CLOSE is enabled or disabled by default after CREATE DATABASE. If ON by default, it seems that SSDT is generating the deployment script in the wrong order. If OFF by default, then I don't understand why the error exists. It seems LocalDB has hard coded use of AUTO_CLOSE, ignoring model Loc... | 2 | 2 | 1,129 | 2020-01-23T09:18:56.120 | pipeline_ops | dba.stackexchange.com | |
273,627 | Disconnect from network without stopping the query | I have an opposite problem to Does disconnecting the network stop a query? . I would like to launch a query and disconnect without waiting for results but I don't want the query to stop. Is it possible? | As the answer referenced in your question indicates, SQL Server will cancel the executing query and rollback the transaction when it detects the network connection has terminated. A SQL Server session needs a connected client to query return results and messages (informational, warning, and error messages). You have a ... | 13 | 25 | 4,559 | 2020-08-12T10:17:39.853 | warehouse_errors | dba.stackexchange.com | |
63,313 | best way to regularize gradient boosting regressor? | i am testing gradient boosting regressor from sklearn for time series prediction on noisy data (currency markets). https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.GradientBoostingRegressor.html surprisingly, the the gradient boosting regressor achieves very high accuracy on the training data - surpri... | The hyper parameters that you could tune in any boosting technique are: Depth of each tree: As you rightly pointed out this is very important because each tree in boosting technique learns from the errors of the previous trees. Hence underfitting the initial trees ensure that the later trees learn actual patterns and n... | 2 | 2 | 2,439 | 2019-11-18T00:01:40.167 | data_quality | datascience.stackexchange.com | |
59,619 | Replacing a single controller domain with new hardware | So I have a small domain with a single controller running server 2k3. I want to replace the domain controller with new hardware. Is it possible to simply build a new domain with the exact same domain name, hostname, and IP address on the new hardware, manually duplicate all of the user accounts and groups, and then sim... | You would have to manually readd each computer to the "new" domain. So that method wouldn't work and would be a lot more work then just promoting a second box and moving roles over. | 1 | 2 | 404 | 2009-08-27T16:32:40.543 | data_quality | serverfault.com | |
401,007 | nginx: Rewrite PHP does not work | I've a Suffix Proxy installed and I'm using the following rewrite with wildcard subdomain DNS on: [CODE] My suffix proxy has the following URL format: (subdomain and/or domain + domain extension to proxy).proxy.org/(request-uri to proxy) I've this php code in my index.php: [CODE] But when requested a page with a .php e... | I could not fully understand your question. But, it looks like you may want to add try_files in your location block, something like this... location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php last; break; } try_files $uri =404; } I hope this helps. | 0 | 0 | 912 | 2012-06-21T16:47:55.910 | infrastructure | serverfault.com | |
508,564 | scp says: Bad configuration option: CheckIP | I try to do a scp on my centos (without having ever configured anything on the ssh_config) receiving: [CODE] Where in ssh_config [CODE] is configured. Didn't find anything with google, whats up with that error? | It seems you using wrong directive, try CheckHostIP instead of CheckIP | 1 | 1 | 848 | 2013-05-17T10:12:51.520 | infrastructure | serverfault.com | |
187,181 | MAT over a calculated measure | We have an OLAP SSAS cube with budget data on the fact table, and budget cathegory (sales, costs, salaries, ...) on a dimension. We have a bunch of formulas for our users but we are not able to create a MAT (moving annual total) on an already calculated measure. [CODE] Any idea what are we doing wrong? How can we calcu... | I had a blonde moment! Just using SUM instead of AGGREGATE and everything is ok as expected :( | 1 | 0 | 117 | 2017-09-28T15:34:49.073 | warehouse_errors | dba.stackexchange.com | |
883,487 | Unable to rsync due to broken pipe | I'm trying to mirror a large Mongo database between from a production server to a dev environment by stopping Mongo on both servers and then running the command: [CODE] It runs fine for a few minutes, but then stopped with the error: [CODE] Googling the error suggests it's some sort of network connection problem, but I... | It turns out rsync accesses rsync on the remote server, and the versions where not the same between my servers. I was running 3.1.1 on the destination server, but 3.1.0 on the source server, and apparently this was enough to break the download of certain files. I install 3.1.1 on the source server, and afterwards the t... | 7 | 4 | 23,475 | 2017-11-15T04:22:44.690 | database_errors | serverfault.com | |
410,317 | Windows 2003 x32 CA to Windows 2008 x64 CA migration | In the following period I have to migrate the AD over to 2008 schema level. I currently have a x64 Windows 2008 R2 domain controller and one x32 Windows Server 2003 domain controller. The x32 server is a old machine which doesn't even support the upgrade to 2008. I have began my transition plan and installed 2 servers ... | What i'm trying to do now : Created Image with disk2vhd of the old physical server. Got the image running in a isolated VM on Hyper-V (without networking ) Extended disk in order to prepare it for an in-place upgrade to windows 2008 x86(since the physical drive had only 14 GB on C: - done that with GParted after I've d... | 4 | 1 | 1,966 | 2012-07-23T14:37:43.957 | database_errors | serverfault.com | |
27,122 | Has anyone gotten the Orange3 Prototype Widget "Significant Groups" to work? | The Prototype Widget "Significant Groups" would be a great help in hypothesis testing. Has anyone gotten it running??? I have tried just about everything. Whenever I try to "Compute", I get the pictured error. | I guess I wasn't logged in when I first asked this question. I am now using the most current version of orange canvas available when installed via the 64 bit Miniconda installer. Prior to installing the Miniconda version, I had tried updating all relevant packages via pip, and was using Orange Canvas 3.8. The resulting... | -1 | 0 | 132 | 2018-01-27T23:44:36.963 | data_quality | datascience.stackexchange.com | |
980,460 | Amazon ECS Task fails with STOPPED (CannotPullContainerError: Error response from daem) | I have set up an [CODE] and am trying to deploy a functional container in [CODE] on a [CODE] but the task always fails with: [CODE] Task role context: [CODE] Which has the following IAM permissions: The repo permissions are such: [CODE] For security, the actual id is replaced with [CODE] I have followed this guide on t... | I solved this problem by removing and creating again ECR repository | 9 | 1 | 7,953 | 2019-08-23T13:27:14.963 | pipeline_ops | serverfault.com | |
923,688 | NAS : Share vs. NTFS Perms | Dear Data Storage Experts, Background : For any Windows CIFS NAS share, there are Share/Storage Level Perms and Windows/NTFS Level Perms and most companies/people like to have 'Everyone/Full Control' at Share/Storage level and apply AD groups to NTFS level to lock the share. We would like to apply same AD groups to Sha... | Share permissions are set for the share as a whole, regardless of the folders contained in the share. If you are not listed on the share with read permissions, you cannot access any folder on the share over the network. Only NTFS permissions will be inherited by child folders. SubinACL would only return the overall per... | 0 | 2 | 540 | 2018-07-26T15:52:02.203 | infrastructure | serverfault.com | |
255,570 | Sql Server Standard 2014: Reindex job locked by other transactions | On a customer of ours we have [CODE] installed. It's a heavy transactions schema (especially during nights) and we have a scheduled [CODE] maintenance job that runs every early morning at 4 am. We have noted that tonight the reindex job got stuck for like 45minutes on a [CODE] on a particular table because it was locke... | and we have a scheduled REINDEX maintenance job that runs every early morning at 4 am. Wait..is that really necessary to run the reindex job every day ?. Do you even look at whether the indexes are fragmented ?. Since you said its a critical system I will take liberty of assuming the underlying storage is fast that fur... | 0 | 1 | 334 | 2019-12-13T11:03:54.240 | database_errors | dba.stackexchange.com | |
95,800 | In mongodb, drop collections, but still in db.stats() ? In db.stats(), fileSize is greater, greater than storageSize | I used [CODE] to drop two collections in my MongoDB database. There are only system.indexes in my database now. But the output of [CODE] is: [CODE] Why is the collections number still 2? Why is fileSize is so large? And when I run [CODE] , the output shows that my database is about 4 GB. I am not sure whether my issue ... | Number of collection is equal 2: The 2 collections are the system.indexes system.users. Execute the "show collections" command under your database to confirm. Filesize: MongoDB allocates "physical files" or files on disk per database. For example eventsdb.0, eventsdb.1 ... Collections are stored with a distributed way ... | 1 | 1 | 1,397 | 2015-03-20T13:57:06.940 | database_errors | dba.stackexchange.com | |
225,736 | Field = Parameter OR Parameter IS NULL Pattern | I am aware of the parameter sniffing issues associated with stored procedures written with a predicate like the following: [CODE] Depending on the value of the parameter, Scalar or NULL on first execution, a plan is cached that will likely be sub optimal for the opposite value. Assuming [Field] is scalar, and the clust... | Based on the previous answers and comments from Aaron Bertrand, Martin Smith, and Rob Farley. I wanted to put together a pro/con list for each approach, including the additional approach OPTION(RECOMPILE): Conditioned selects in same stored procedure From Martin Smith's response: Your "Conditioned select" option is sti... | 7 | 2 | 8,590 | 2018-12-24T19:29:40.523 | database_errors | dba.stackexchange.com | |
795,491 | Get-ADUser in foreach loop returns nothing if using object | [CODE] Running above it results in nothing exported to the CSV, but if i add [CODE] it exports the list of users. So I know the exporting feature works. If I run it like this: [CODE] It fills my CSV with the result of "User 1" (The first user in the document and this is the excepted result) for the amount of times ther... | Typically when creating a search filter as a combination of multiple strings I avoid doing so in the input itself. So for example (and as you have found) instead of doing the following [CODE] I try to create a filter then call the function [CODE] I've found this to be the only way to successfully build an LDAP filter a... | 1 | 2 | 32,031 | 2016-08-08T10:38:17.007 | infrastructure | serverfault.com | |
256,749 | UUID or BIGSERIAL Foreign Keys Postgres | I have 8 tables which use UUID Primary Keys and 7 of them have UUID Foreign Keys. Would it be better for performance to use BIGSERIAL instead of UUID? | Use [CODE] if you need it. Don't use it if you don't. [CODE] is smaller and a bit faster in multiple ways. 8 vs. 16 bytes do not sound like much, but the difference stacks up for big tables and multiple instances, and multiple indexes for each. (And rarely would either a [CODE] or [CODE] key make sense for small tables... | 8 | 11 | 7,356 | 2020-01-05T19:11:29.240 | warehouse_errors | dba.stackexchange.com | |
877,066 | Restore (PITR) of CloudSQL (MySQL) fails with Got a packet bigger than 'max_allowed_packet' bytes | When doing a PITR-Restore of a second generation Google CloudSQL instance, the restore fails with "Failed to Create" error. I cannot manipulate the instance clone, except reading logs and deleting it. The mysql.err log shows messages like [CODE] My interpretation is that in Log file 17364 is some operation that exceeds... | - Posting the latest comment as the answer for completeness. To increase the ' max_allowed_packet ' for your project and instance it is recommended to open an Issue Report . An interim workaround while the engineering team fixes the actual issue for you is to use MySQL PITR to save the point-in-time backup locally. You... | 1 | 0 | 443 | 2017-10-05T14:58:42.993 | database_errors | serverfault.com | |
475,770 | Application under a site in IIS evaluates ~ to the website root not the virtual directory | I have a website in IIS lets call it QA.local . Under this root site I want to set up multiple applications that reside in a set of virtual directories E.G. QA.local/app1 and QA.local/app2 . The problem is that whenever an application goes to resolve the ~ symbol the server returns the website root rather than the dire... | You need to use 'Applications' rather than 'Virtual Directories' for your asp.net sites. In IIS Manager you can right click your virtual directory and 'Convert to Application'. Virtual Directories are just pointers to other locations within the same application, in this case the root application. Applications are their... | 2 | 1 | 1,405 | 2013-02-05T19:54:42.357 | infrastructure | serverfault.com | |
618,053 | Spam - individual user | I have a bit of an issue with a users inbox in that a lot of spam is getting through for him alone. We use Amavis/Postfix and SA in our mail setup. Config setup like this: [CODE] Heres an example of some spam that is being picked up correctly: [CODE] lots of high scores as you can see pushing it well over the kill leve... | Every user gets a different dose of Spam. Since you are using Spamassassin you might want consider adding some additional rule repositories, which are being updated frequently, to catch more spam (e.g. like being described here: http://khopis.com/wiki/Anti-spam ). Your spam trigger level is also a little bit high, most... | 1 | 1 | 712 | 2014-08-05T10:51:34.687 | infrastructure | serverfault.com | |
373,168 | Windows domain login to temporary user | We have a Windows domain with about 60 user accounts. Sometimes when a user logs in to his computer (already his account is created and has files there), Windows logs him to a temporary user, displaying his name and everything, but without his files and data. This problem is rare and is solved simply by logging out and... | A process is not playing nice in the sandbox—meaning some process other than Winlogon opened ntuser.dat exclusively thereby preventing Winlogon from loading the user profile. Windows cannot find the user profile. This is most often the case when using Roaming, Mandatory, or Super Mandatory user profiles. All these prof... | 0 | 1 | 2,594 | 2012-03-25T11:26:21.373 | infrastructure | serverfault.com | |
24,155 | Output parameter in stored procedure | [CODE] This code always returns -1.00. The procedure works correctly in backend and it returns (numeric(19,6)). I think the problem is with my front end... Can anyone help me? | You need to specify the data type of the parameters. | 0 | 2 | 230 | 2012-09-12T04:05:59.050 | database_errors | dba.stackexchange.com | |
8,415 | How to trim spaces for parameter value in jenkins pipeline? | I am using jenkins pipeline job with parameters. when i had any trailing spaces in parameter value the job gets failed. is there any way to trim the spaces in pipeline job to avoid build failure? | Use the Groovy [CODE] method. For instance, [CODE] . | 6 | 6 | 16,987 | 2019-06-18T07:02:59.083 | pipeline_ops | devops.stackexchange.com | |
130,927 | Grant permission to user | Cannot execute as the database principal because the principal "ahsan" does not exist, this type of principal cannot be impersonated, or you do not have permission. Please tell me solution of this error. | You are trying to impersonate a database principal called "ahsan". One of the following problems is occurring: The principal doesn't exist (no user of that name) Solution: Create the user It's of a type that can't be impersonated (AD groups, for example, can't be impersonated) Solution: There isn't one You don't have p... | -4 | 4 | 63 | 2016-03-01T16:50:15.993 | warehouse_errors | dba.stackexchange.com | |
301,359 | What's the best practices for storing visits? | I would like to save visits in a table. I am using MySQL but I am not sure how I should save the visits as the records may increase considerably and this might cause performance issues and I am also worried about MySQL limitations (how many records it can handle, etc). As far as I know, I could do this in two different... | If you only need to store aggregates, then storing those is a good idea. As with aggregates, the [CODE] is going to be unique, we may as well make that the primary key. In MariaDB-10.5 or later you can use the inet6 type : [CODE] And update using IPv4 mapped addresses if needed: [CODE] ref: example fiddle If using an o... | 1 | 1 | 133 | 2021-10-19T18:18:40.667 | database_errors | dba.stackexchange.com | |
1,122,246 | Connect Redis Unix Domain Socket to Django | I have a Django website running via [CODE] under user [CODE] and [CODE] under user [CODE] bound at [CODE] . [CODE] works just fine; it acts as a proxy to the [CODE] Unix domain socket. I'm not having any problems with [CODE] . [CODE] also works just fine. It's domain socket is at [CODE] . When I enable CACHES in my Dja... | I used the default [CODE] file at [CODE] and just uncommented their example with regards to the Unix socket. It had this information: [CODE] I commented out the [CODE] line and added this one: [CODE] It worked right away. I'm quite excited and can't wait to see the results of using a cache server. The reason that it wo... | 0 | 0 | 199 | 2023-02-07T20:30:01.263 | database_errors | serverfault.com | |
300,536 | Reading of fixed-length data types | Say I have a fixed length column and I am [CODE] ing from it, say 100 rows. When reading different rows of the fixed length column, does SQL Server check the length of the column for every row or does it check it once and reuse this information so that subsequent rows can be read faster? In contrast, for variable lengt... | In the FixedVar storage format, each fixed-length column appears at the same offset in every row. SQL Server caches the offset for each fixed-length column needed, and reuses that information on subsequent row accesses. It doesn't calculate the offset afresh for each row. Accessing data from the fixed-length portion of... | 0 | 5 | 277 | 2021-10-03T21:25:23.963 | database_errors | dba.stackexchange.com | |
440,956 | https lingering TIME_WAIT connections | From my client PC I'm connecting to a webserver, it uses HTTPS only. When I connect I see in TCPView (sysinternals tool alternative to netstat) a lot of TIME_WAIT connections to the https endpoint. Lots of the time I see 11 connections lingering for 2 minutes in TIME_WAIT. And that's each time I do a request. 2-4 conne... | This is completely normal. Each new request your browser makes to the web server is a TCP connection which will use a new socket. After the handshake, data transfer, and graceful close, sockets will sit in TIME_WAIT until the kernel's timer expires. The TIME_WAIT timer is defined in the TCP RFC (RFC 793) as 2x the Maxi... | 7 | 3 | 6,572 | 2012-10-22T13:59:41.220 | infrastructure | serverfault.com | |
207,778 | RDS MySQL I/O freeze during backup causes RDS instance to crash | I have a simple WordPress site using Amazon RDS MySQL 5.6.39 Single-AZ instance. Almost every night during backup window RDS instance crashes and getting recovered causing about 20 minutes of downtime. During the backup window there is almost no traffic, only monitoring systems are hitting the site. All RDS parameters ... | (Not an "Answer", but an analysis of the VARIABLES and STATUS.) Observations: Version: 5.6.39-log 1.00 GB of RAM You are not running on Windows. Running 64-bit version You appear to be running entirely (or mostly) InnoDB. The More Important Issues: Due to having such a small RAM, various settings should be lowered to a... | 5 | 3 | 2,505 | 2018-05-24T20:09:48.817 | pipeline_ops | dba.stackexchange.com | |
128,197 | Redshift DISTSTYLE ALL table takes less disk space? | (Self-migrating from StackOverflow.) We have a fat table of exactly 591 columns in Redshift, distributed by a key. We were unaware that fat tables chew up space - 2 blocks per column per slice, minimum, and we aren't close to filling up the first block on any slice. I misunderstood a coworker to recommend using "DISTST... | Well, after lots of experimentation, we have found that, yes, if you have a fat table with not enough rows to fill much of a block at the slice level using DISTSTYLE KEY, it is much more efficient, space-wise, to use DISTSTYLE ALL, even though this replicates more data. For example, our fat tables have, say, 600000 row... | 3 | 4 | 1,814 | 2016-02-03T19:58:25.330 | warehouse_errors | dba.stackexchange.com | |
303,818 | Why does my Linux Server not recognize "php" as a program? | I am in need of using PHP from the command line. When I type [CODE] The system says: [CODE] Now, I know for fact that PHP is up and running b/c it hosts my drupal site. I'm not sure how to find the program. I'm searching through the directories for the path without any success. What am I missing? I am using Ubuntu Linu... | Probably you need to install the CLI (command line interpreter) package. In Ubuntu or Debian this can be done via [CODE] | 3 | 9 | 1,226 | 2011-08-22T15:04:21.577 | infrastructure | serverfault.com | |
325,916 | Trouble handling constraints for the input of a method | I'm looking for advice on how to handle constraints on the input of a method. I have a method that only works if the input argument(s) fulfill certain constraints. If the method is called on input that does not fulfill the constraint(s), the method does something harmful. The concrete problem is this. I have a class [C... | [CODE] with errors: I think the [CODE] is the best option. However, it should be your responsibility to use the input properly, not the responsibility user of your code to give proper input. Avoid throwing errors unless there is no reasonable way to use the given input. [CODE] or [CODE] : As you said, this is even more... | 0 | 2 | 73 | 2016-07-27T14:08:18.700 | data_quality | softwareengineering.stackexchange.com | |
977 | Solutions for Continuous Online Cluster Identification? | Let me show you an example of a hypothetical online clustering application: At time n points 1,2,3,4 are allocated to the blue cluster A and points b,5,6,7 are allocated to the red cluster B. At time n+1 a new point a is introduced which is assigned to the blue cluster A but also causes the point b to be assigned to th... | Stability-Plasticity Dilemma, Learning Rates, and Forgetting Algorithms: First, let me say that this is a really great question and is the type of thought provoking stuff that really improves one's understanding of ML algorithms. Does this "problem" have a name that it can be referred to? This is generally referred to ... | 11 | 1 | 322 | 2014-08-14T19:09:29.523 | data_quality | datascience.stackexchange.com | |
70,463 | How do you know what a program needs to do to complete a given task? | I am a noob when it comes to programming. I just know some Ruby, that's really it when it comes to programming, but it's definitely an interest. In learning to program, I give myself tasks to complete in order to better learn Ruby but I am finding that a lot of my problems in programming deal with how to execute a task... | How do I know what elements I need to put in a program in order to complete a given task? Someone wants the program to do something. This someone is either you, or someone else. At any rate, one typically needs to think through the expected functionality of the program. It helps to think in use cases : series of intera... | 5 | 4 | 584 | 2011-04-22T09:16:08.527 | api_errors | softwareengineering.stackexchange.com | |
117,079 | Change clustered index without dropping the primary key | In the past, I have chosen the [CODE] column created as inappropriate clustered index in the table. Now I concluded (base on the execution plan) that it would be better to choose the ID identity primary key as the clustered key, because it is referenced as foreign key very often. I would like to drop the current cluste... | Just drop the existing clustered index, then create a new one on the [CODE] column. [CODE] Of course, you'll want to do this during a maintenance window so you don't cause too much blocking. If you have Enterprise Edition you can do the CREATE INDEX operation online by adding [CODE] to the statement. | 8 | 4 | 24,033 | 2015-10-05T20:19:48.047 | database_errors | dba.stackexchange.com | |
933,686 | PHP 7 FPM checkconf is throwing invalid user: ‘www-data:www-data’, but I'm not using a www-data user | I'm using a different user for my web services. Screw convention. I don't have [CODE] set in any php config files: [CODE] But I'm still getting this error: [CODE] | I fixed this by first replacing [CODE] in [CODE] , which had looked like this: [CODE] I then got another error: [CODE] Which I fixed by changing the group and permissions of the log file to my webserver user: [CODE] And finally restarting fpm: [CODE] | 0 | 0 | 1,024 | 2018-10-02T20:41:25.703 | infrastructure | serverfault.com | |
437,344 | Merging Python2.7 code to its ported Python3.9 version | I am working on a Django based project that is version controlled with SVN. My main objective is porting it from Python2.7 to Python3.9. Whilst I port the project, my team brought some updates, now I want to get these updates and port them to Python3.9 as well. Our issue here is, how will we manage 2.7 and 3.9 codes in... | Doing a Big Rewrite is usually a mistake. Trying to maintain two separate codebases takes a lot of effort, as you have discovered. With a Python 2 → 3 migration, the typical approach is to gradually rewrite the codebase so that it can run under both Python versions. For example, uses of the print statement would be cha... | 0 | 2 | 149 | 2022-03-14T05:35:52.817 | api_errors | softwareengineering.stackexchange.com | |
297,870 | Creating secure, resilient Rails and mysql servers on EC2 | I'm wondering what practices should be used to create secure and resilient Rails and mysql servers on EC2. More specifically, when I say "secure and resilient", I am trying to balance the fact that I need to secure the data (both MySQL data and Rails logs) on block-level secured EBS storage using dm-crypt. In order to ... | If all you're doing this for is a compliance requirement for protecting data at rest, then there's no problem with storing the encryption keys in the AMI -- they're separate from the encrypted volumes (far more than most systems, actually, where the keys are on a separate partition of the same disks that hold the encry... | 1 | 1 | 217 | 2011-08-05T01:28:55.520 | database_errors | serverfault.com | |
129,884 | Can't recycle the ERRORLOG - error 17049 | When we attempted to run [CODE] we get the following: Msg 17049, Level 16, State 1, Procedure sp_cycle_errorlog, Line 9 Unable to cycle error log file from 'G:\SQL_DATA1\MSSQL10_50.ABC\MSSQL\Log\ERRORLOG.15' to 'G:\SQL_DATA1\MSSQL10_50.ABC\MSSQL\Log\ERRORLOG.16' due to OS error '1392(failed to retrieve text for this er... | From System Error Codes (1300-1699) : OS error 1392 indicates file corruption. ERROR_FILE_CORRUPT 1392 (0x570) The file or directory is corrupted and unreadable. So it looks like you have corruption on your G: drive. I would start with a [CODE] of that drive and all other drives. Since corruption usually doesn't fix it... | 2 | 3 | 2,120 | 2016-02-20T03:51:43.090 | database_errors | dba.stackexchange.com | |
145,904 | SQL Server tempdb on SSD or virtual RAM disc to increase temp-table performance | On a monthly bases we have a lot of temp calculations that run 4 days in total. We can't really change so many scripts and therefore i am searching for a config / hardware solution. Background Its not a ETL process because we are creating bits of information out of at least 10 applications (therefore i would call it ca... | Before you commit to a particular course of action, you first need to understand what is causing the poor performance. Look at wait stats while the calculation process is underway. Check this article by Paul Randal for an excellent starting point on how to gather and analyze them. Use the system dmv, [CODE] to understa... | 3 | 2 | 1,307 | 2016-08-04T16:05:46.623 | data_quality | dba.stackexchange.com | |
415,650 | Any products that allow multiple users to connect to multiple VPNs? | My company uses VPN connections to connect to and support our hardware/software on customer sites. Unfortunately among our customers there are many different VPN solutions employed, so you have to use Cisco's client to connect to one, SonicWall to connect to another. What we'd like to do is to somehow manage all the co... | Why not setup something like Citrix, Windows Terminal Services or VMWare View, creating a session-type/VM for each connection type. That way you users could fire up an instance of whichever connect type they want and connect to that to whichever customer they need to. | 0 | 3 | 511 | 2012-08-08T18:26:31.940 | infrastructure | serverfault.com | |
228,326 | Custom class for monetary amount (money value) instead of BigDecimal | On StackOverflow I found multiple advices to stick with [CODE] in Java instead of reinventing the wheel. Despite that, I decided to create my custom class, and I would ask if that was a good idea and pros or cons about my design in comparsion to BigDecimal. The reasons to choose custom implementation and characteristic... | Your reasons for creating a custom class are perfectly valid. If your system was only working with a single currency, the argument for creating a custom class would be much weaker. But with multiple currencies, I think a custom class is almost a must. Note that your custom class could use a BigDecimal internally to hol... | 5 | 3 | 1,331 | 2014-02-09T17:28:16.387 | api_errors | softwareengineering.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.