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 |
|---|---|---|---|---|---|---|---|---|---|---|
280,878 | ERROR: role "user1" cannot be dropped because some objects depend on it | On my Google Cloud SQL database instance (Postgres 9.6), I am unable to drop a user/role via the GCP Console that was created via the GCP Console. When I try, the Console shows a notification that says "User deleted", then upon further inspection I see that the operation failed with an "Unknown error". The instance's e... | 06:42:36.347 UTC [199]: [2-1] db= cloudsqladmin ,user=cloudsqlagent DETAIL: privileges for database mydb 24 objects in database mydb Crossdatabase queries in PostgreSQL are not implemented. PostgreSQL will see some dependencies with the specified [CODE] , but will not be able to query the system catalog of that databas... | 6 | 3 | 8,599 | 2020-12-04T07:26:34.933 | database_errors | dba.stackexchange.com | |
724,355 | Server 2012 won't lock | I have a Windows Server 2012 Standard machine at home that I connect to via Remote Desktop from work. The problem is my RDP session stays active even if my local machine is locked. I'd like my remote computer to lock after a couple minutes of inactivity. I've tried setting the screensaver and changing power options but... | http://www.bridgetonova.com/2007/11/how-to-lock-computers-when-idle-by-using-gpo.html The idea is that you are enabling the screensaver option, but instead of specifying a real screensaver, you just make Windows execute the following command: %windir%\system32\rundll32.exe user32.dll,LockWorkStation This only locks the... | 1 | 2 | 88 | 2015-09-23T18:28:22.300 | infrastructure | serverfault.com | |
445,158 | lamp server permissions on development server | I run a LAMP server on a ubuntu laptop I use only for development. I am not greatly concerned with security, since the server is never accessible outside the local network, and it's turned off when I'm not using it. My question is what is the simplest and 'best' way to set permissions/users/groups so that when my [CODE... | With default umask (022) there's no need to chmod/chown files in order to view them via apache. | 0 | 1 | 278 | 2012-11-03T22:30:55.093 | infrastructure | serverfault.com | |
31,553 | Sql server backups very slow | How can I estimate the time of a full backup for a 30gb database? In this moment it takes about 50 minutes. Can we improve that? Thanks | To add a bit and summarize other responses: Using compression will speed up the backup (which is read some then write some - reduce the 'write some' and you speed things up) but at the expense of some extra CPU. You can combine backup compression with resource governor in 2008 to limit this. Using compression also spee... | 4 | 17 | 16,350 | 2009-06-25T13:41:01.103 | database_errors | serverfault.com | |
250,744 | Why selecting rowversion using outer join never returns null | Using SQL Server 2014. Given table with rowversion column, other table to join with and a select like this: [CODE] Result of select is: [CODE] Where there was no match with BarTable the RowVersion column is not null, but 0x . This confuses Dapper, which we use to deserialize result on app server, into thinking, it shou... | This appears to be a bug in .NET's SqlClient. The column is being returned as an empty [CODE] even though it's marked as [CODE] in the result. EG [CODE] Outputs [CODE] I've opened an issue at https://github.com/dotnet/SqlClient/issues/255 But it's likely to be closed as WontFix. According to notes in the source [CODE] ... | 7 | 4 | 512 | 2019-10-10T09:45:53.293 | database_errors | dba.stackexchange.com | |
113,936 | Is it a good practice to code in English? | Possible Duplicate: Do people in non-English-speaking countries code in English? I have a development comming that is intended to be sold across Latin America (Spanish speakers), but I've heard from some partners that is a good practice to always code in English, I mean just code (methods, classes, pages names, etc), l... | I'm French and working in a French company. However, we do code mostly in English. Here is why: We sometimes have non-French people working with us so it's easier for them. We have some code coming from third parties (lib, framework, etc.), and this code is often in English, so we don't want to end up with a patchwork ... | 39 | 55 | 3,330 | 2011-10-12T16:30:38.637 | data_quality | softwareengineering.stackexchange.com | |
1,143,924 | Serve multiple apps with nginx proxy_pass | I'm trying to use a basic nginx reverse proxy to access three different apps, each running inside a docker container. The nginx reverse proxy is served on [CODE] and i want to have the following behavior: [CODE] route to Django backend api [CODE] [CODE] route to the the main react app running on [CODE] [CODE] route to ... | I think I figured out what you are trying to solve. When you request a page from [CODE] it tries to load additional resources like [CODE] , which results in a 404 error because it should be [CODE] instead. If this is your problem you are trying an extremely complicated and unnecessary approach to fix it. I'm further as... | 1 | 1 | 359 | 2023-09-18T00:45:27.043 | pipeline_ops | serverfault.com | |
482,706 | Linux Filesystem options for iSCSI shared storage | I am trying to determine my 'best choice' for a filesystem to use for a shared storage device that will be mounted via iSCSI across an indeterminate number of servers. Setup: 27TB Synology RS2212+ array, iSCSI LUN/target that allows multiple sessions 10-20 CentOS-based linux boxes, primarily webservers Shared storage w... | For your case I'd still stick with a network-filesystem. You've already run into the scaling problems with NFS, so it's time to look at something else. There are a couple of good options out there: Gluster . It's a RH project, so is extremely well supported on CentOS, and scales up to "way lots". Hundreds/thousands of ... | 9 | 7 | 10,642 | 2013-02-26T18:09:49.600 | database_errors | serverfault.com | |
44,659 | How to setup SYSLOG in Centos for more than 8 devices? | I currently have syslog configuration files using local0 to local7 setup in such a way, that a particular device is assign to an specific local facility pointing to separate directories and files for the device, for example: *Entries related to the SYSLOG SERVER *DEVICE1 local1.=emerg /location/device1/00-emerg local1.... | Instead of (or in addition to) using syslog facilities, consider replacing the stock syslogd with syslog-ng . Among other things, it allows you to filter remote log messages based on the address of the host that sent them. We have a simple setup on our syslog server that does this: [CODE] [CODE] [CODE] This causes sysl... | 1 | 6 | 6,722 | 2009-07-23T15:09:06.977 | infrastructure | serverfault.com | |
792,368 | Why doesn't the "Received: ...by" email header show the port? | I've had a problem recently with spam coming in with an envelope-from consisting of my own address. At first I thought this meant that my password had been compromised, mistakenly thinking that the "with esmtp (Exim 4.87)" in the "by" clause of my email server's Received header meant that it came over an authenticated ... | The port number would not be useful in a Received: line, as there are standard ports for email transport, and using alternate ports is not really possible. If you want to know if a message was authenticated by some mailer, you can find this information in the Received: line by checking the protocol that it was received... | 2 | 4 | 1,021 | 2016-07-27T23:54:58.403 | api_errors | serverfault.com | |
1,001,379 | How to restore an OS disk onto a different, resized Azure VM as its new OS disk? | I am able to create a new virtual machine that's of a larger size than my current one, but I am not able to upgrade or resize an old VM to that larger size even though it's of a pretty similar type. So I'm thinking, since I can't resize the VM in place, can I create a new VM of the larger size and simply restore onto i... | looking at this link This example shows how to convert all of a VM's disks from Standard to Premium storage or from Premium to Standard storage. To use Premium managed disks, your VM must use a VM size that supports Premium storage. This example also switches to a size that supports Premium storage. [CODE] Regarding yo... | 0 | 0 | 1,074 | 2020-02-01T17:33:10.377 | database_errors | serverfault.com | |
726,987 | Rate limiting using haproxy per url per ip | Our servers are being hit by someone constantly. Its not DDOS. Just one ip hits one url more than 200 times a second. Currently I am blocking the user by ip tables. We are using HAproxy for load balancing. Is there a way to limit a user based on his ip and the url being hit? I don't want to block just based on IP as NA... | This solution requires at least haproxy 1.6. First, add the following to the frontend: [CODE] Then, add the following to the backend: [CODE] I was not able to find a way to do the tracking in the frontend as I didn't find a way to apply a converter on that concatenated string that makes up the X-DOS-Protect header. I a... | 3 | 3 | 4,758 | 2015-10-06T09:18:10.230 | api_errors | serverfault.com | |
308,817 | best way to change datatypes on big databases? | I got some big (1tb data,600gb) databases and I noticed that it has a lot of bad data types like varchar(max), varchar(500) for stuff that only uses 2 or 3 characters, or even a little more. the process of changing datatypes will affect log size and locks in the tables right? I'm assuming if I set the database to simpl... | I'm assuming if I set the database to simple prior to do these changes, I will not face so much issues with space No, that's not true. Each [CODE] statement will act as a single transaction. So even using the [CODE] recovery model, you could end up with quite a lot of activity in the transaction log - potentially up to... | 0 | 2 | 163 | 2022-03-16T16:46:19.893 | api_errors | dba.stackexchange.com | |
880,184 | Redirecting denied connections to ports 80, 443 to other IP that hosts an error page | Okay, here we go.. I am using UFW on my Debian 8 server to block all incoming connections on ports 80 and 443, except for those that I have allowed. However, I need to redirect those dropped connections to another IP address (which hosts a website), letting those people know that their connection was denied. I know tha... | If you want send a visible message to people connecting to your 80 or 443 ports, you need a web server for sending that message. Firewalls only handle restrictions on layer 3 / layer 4. http / https is a layer 7 protocol, and firewall doesn't provide any implementation for that. So, your option here is to implement thi... | 0 | 0 | 43 | 2017-10-25T10:47:27.163 | api_errors | serverfault.com | |
558,239 | PHP-FPM/nginx-SELinux: No input file specified | I have problem setting up nginx (with passenger, which works fine) with php-fpm on Fedora. When I try access index.php via browser, I get "No input file specified." Nginx error log: 2013/11/29 12:50:47 [error] 2218#0: *15 FastCGI sent in stderr: "Unable to open primary script: /home/nginx/html/phptest/index.php (No suc... | Can you try changing your server block to this; [CODE] | 0 | 0 | 1,585 | 2013-11-29T12:01:02.463 | infrastructure | serverfault.com | |
87,210 | Can I grant multiple remote LocalService accounts access to a SQL Server database? | I am designing a multi-environment Windows-based software product that will extensively employ Windows services running as LocalService to perform data access operations. All of the data access endpoints are .NET applications that use Entity Framework to access the databases. I don't want to use SQL Server authenticati... | Machine accounts such as LocalService cannot be trusted over the network. There is essentially no way to authenticate the remote machine without domain authentication of some kind. Use SQL Server authentication; that's what it is meant for. Alternately, you could provide a setup procedure that allows your clients to pr... | 2 | 1 | 282 | 2014-12-30T01:39:25.500 | api_errors | dba.stackexchange.com | |
485,218 | Push files from server to clients once | We have gotten into a sort of predicament. We have set up a temporary training environment. Two domains with roughly 100 clients in each. Part of the training is using a map application on the client. The application is supposed to fetch the map from a map server. However, we have now noticed that the map server softwa... | This could he done simply in a login or startup script. Just check for the existence of the map file. If it is already there, don't do anything. If it is missing, have the clients wait a random amount of time (to reduce load on the server), then download the file. | 0 | 1 | 175 | 2013-03-06T13:29:18.253 | database_errors | serverfault.com | |
458,090 | Pxe net install Centos with Static IP | I seem to be unable to perform a kickstart installation of centos5.8 with a netinstall. It correctly gets into the text installer, but keeps sending out a request for the dhcp server and failing. I have tried to manually set the IP everywhere. Here is my pxelinux.cfg file [CODE] and here is my kickstart file: [CODE] He... | Based on my experience there are two common issues that cause this. 1) You may find in the console output that your boot device has not been released by the installer prior to the second phase of the install where a second DHCP request is initiated. Some hardware vendors have released BIOS updates to address this. You ... | 2 | 1 | 5,174 | 2012-12-14T13:44:17.737 | infrastructure | serverfault.com | |
481,929 | Tunneling specific webserver port on localhost using SSH | It is possible allow website surfing running on a specific port (10000) only accessing it trough SSH tunnel? Real case: Apache is running on port 80 for http and 443 for https, anyone can surf all contents in all virtual host using those ports. Webmin is running on port 10000 but only from my client machines is possibl... | I tought was so hard... just looked a couple of man pages. On server i bound webmin to listen connections only on localhost and on my client i did: [CODE] Now i can manage Webmin using a (quite) secure channel. Thanks anyway! | -1 | 1 | 2,212 | 2013-02-24T03:56:24.823 | infrastructure | serverfault.com | |
451,020 | iSCSI NAS supporting VMware Esxi 5.1 servers in a software development environment | I would like to build (or purchase) the smallest, quietest most energy efficient servers that I can for a low demand environment. These would only have a small disk for guest swap files, a CPU (XEON preferred), 32 Gb of memory and minimal graphics. The virtual machines need to be up but demand will be quite low. Any th... | I asked why you needed such a disparate set of qualities in a server... Something will be missing. (Is this for a VMWare host server? NAS storage server? It's not clear.) Small is possible, but performance and expansion suffer. Quiet is possible, but size or RAM capacity may not be where you wish. It's easy to find sys... | 1 | 3 | 278 | 2012-11-21T21:02:07.763 | infrastructure | serverfault.com | |
152,891 | How to tunneling RDP access and SSL access | I need to RDP to a terminal windows server 2003 OS and then RDP from there to my destination remote host. Same thing to SSL, first SSH to a CentOS via putty, then SSH to my destination remote CentOS host. This is actually 2 different questions but same purpose. Is there any tool that can tunneling my connection, so I c... | Check the options to mstsc for exactly what you need, but it should go something like this: Create RDP connection to host1 Specify [CODE] as the program to run Execute [CODE] If you don't mind having to enter your credentials, you could just use [CODE] in step 2. | 0 | 1 | 242 | 2010-06-20T02:33:45.727 | infrastructure | serverfault.com | |
1,120,867 | How to direct a Cloudflare registered domain to a Bluehost hosted site and specific page | (I've edited this to give the real URLs in case that is helpful) Here's my situation: I purchased phillyjazzduo.com through Cloudflare I also have elipointer.com that was purchased through Bluehost and is hosted on Bluehost and is currently operational. Here's what I need to do: When a user goes to phillyjazzduo.com, I... | It looks like the page you're seeing [CODE] is from your hosting provider, not Cloudflare. I think this is because they got a request for a domain (phillyjazzduo.com) they don't know. You can solve this by making another page rule for www.phillyjazzduo.com . You may also want to consider adding phillyjazzduo.com as an ... | 0 | 0 | 157 | 2023-01-22T21:17:24.800 | infrastructure | serverfault.com | |
42,247 | How can I parallelize GloVe reverse lookups in PyTorch? | I feel like I'm missing something obvious here because I can't find any discussion of this. I want to do a lot of reverse lookups (nearest neighbor distance searches) on the GloVe embeddings for a word generation network. I'm currently just iterating through the vocabulary on the cpu. I've sped it up a bit using a proc... | It's usually not very efficient to approach these types of problems in pythonic ways, with list comprehensions and such. This whole process can be done with some matrix math, which will be substantially faster (and able to be computed on the GPU using PyTorch). Using [CODE] with default [CODE] will compute the Euclidea... | 1 | 2 | 704 | 2018-12-06T18:14:43.453 | data_quality | datascience.stackexchange.com | |
392,483 | redHat distro need MySQL module for php5 | I am on [CODE] using [CODE] for my dataBase. Even though I dont need mySql on my [CODE] instance I cant seem to connect to [CODE] without a [CODE] I have tried this [CODE] but it gives me an error [CODE] question: any suggestions how to get MySQL module for php5? i dont need the entire server thank you | Try [CODE] or search with [CODE] | 0 | 2 | 330 | 2012-05-25T02:48:32.287 | database_errors | serverfault.com | |
328,621 | Can switch SFP/SFP+ uplink ports connect to a SFP/SFP+ NIC and how? | What I'm looking for is a solution to connect workstations with RJ-45 Ethernet NICs with a workstation with SFP/SFP+ NIC. I found that many switches have both RJ-45 and SFP/SFP+ ports available, however, normally the SFP/SFP+ ports are uplinks used for switch-to-switch connection. From the definition of "uplink" (from ... | Dedicate uplink ports are an anarchism from when MDI/MDI-X was not detected and account for by the switch software. In some cases you had a physical switch you needed to flip on the switch to turn it on or off. That said, I don't think i've seen a switch that didn't have auto MDI/MDI-X capabilities (or it was controlla... | 3 | 3 | 6,103 | 2011-11-07T16:54:37.673 | infrastructure | serverfault.com | |
228,213 | Speeding up slow SELECT query (Postgresql 9.6) | In a app called Links , users post photos of interesting content they've discovered recently (and others can vote or comment on them). These posted photos are saved in a [CODE] table in my postgresql 9.6.5 DB. Each user's profile shows their posted photos - paginated by [CODE] objects each - ordered by [CODE] . One [CO... | I have the same case like you. The problem is [CODE] , the query takes time to remove rows by its filter. Depending on how many rows will be removed, the time will be equivalent. Idea 1 Your approach is fine. The small thing is the query needs to remove rows on the [CODE] . However, it is not a big problem if your card... | 0 | 2 | 146 | 2019-01-28T07:34:31.383 | api_errors | dba.stackexchange.com | |
823,589 | How to connect an isolated node to a public node via SSH tunnel | I am not sure how to put it in words, so created a illustration to show what my setup is like. DB Server and Web Server are in a VLAN, Web Server has a public IP, but DB Server does not. Normally DB can only talk to Web Server. Exception is that it should also be able to talk to Main Server, yet it should be inaccessib... | If you are on a cloud platform where a server on a private-only allocation is truly isolated, I believe a better solution for you will be something like stunnel . This would allow you to open a port on the Web server, that when opened tunnels to the main server. In effect, this is turning your web server into a limited... | 5 | 4 | 208 | 2017-01-01T12:50:06.410 | infrastructure | serverfault.com | |
349,261 | Should I rebuild to use latest tech? | I am a full stack developer in a very small company. It has a custom built ERP software using PHP 4 (no framework). Currently, it works fine from the business point of view except for some bugs here and there. Presently, about 4-5 people use it. The company's plan is to offer it as a product to clients with some modifi... | Consider this approach: Document the existing code: Purpose, behavior, workflows, limitations, known issues, etc. Based on result of #1, create test suite for the code. This will be helpful regardless of whether you decide to rewrite the code in new technology stack Also based on result of #1, identify exactly what adv... | -3 | 2 | 156 | 2017-05-19T07:43:58.377 | api_errors | softwareengineering.stackexchange.com | |
606,009 | OpenLDAP server network architecture and hardware requierments | I would like to know your opinions and experience while setting-up a centralized authentication server using OpenLDAP. Currently a have a few hosted servers running a few services (email, webapps, database etc). and a low budged :P What are the recommended or the best practices when deploying a LDAP server in therms of... | Performance isn't usually an issue with OpenLDAP, it can run on really small hardware, but I would strongly recommend running a replicated database with at least two instances. Being lightweight as it is, running it along other services also shouldn't be a problem, but of course it depends a lot on what the other servi... | 0 | 2 | 2,901 | 2014-06-18T09:38:03.163 | database_errors | serverfault.com | |
831,273 | Unable to reach a python flask-enabled web server on gce | I am running a very simple http server on a VM in GCE. The code is very simple [CODE] I can reach the '/' on the server using [CODE] locally I did not modify any firewall rules. Here is part of the rules: Here is part of the VM information that is relevant to the networking You can see [CODE] traffic is allowed. Howeve... | By default python [CODE] is listening to port 5000. I need a firewall rule to allow the traffic to go through | 3 | 5 | 7,422 | 2017-02-08T09:19:22.430 | infrastructure | serverfault.com | |
637,644 | Debian Jessie Qemu KVM GPU Passthrough to Windows Virtual Machine guest Virt-Manager error Bus PCI not found | I'm having problems with Virt-Manager not wanting to boot a VM and giving error: [CODE] If I click Details here's the full error: [CODE] qemu-system-x86_64: -device ioh3420,bus=pci,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1: Bus 'pci' not found I manually added some commandline things with virsh edit to the ... | I changed bus=pcie.0 or bus=pci to bus=pci.0 apparently the way its names depends on architecture used in xml file. Mine used instead of the more popular machine q35 definitions which would default to pcie.0 It boots without that error now. | 1 | 1 | 4,534 | 2014-10-16T20:58:10.530 | infrastructure | serverfault.com | |
966,605 | Ansible ec2_instance_facts complaining boto3 is not installed (but it is) | Trying to retrieve AWS metadata with Ansible with a simply playbook like: [CODE] I get an error about boto3 being missing (although already installed) TASK [ec2_instance_facts] ********************************************************************************************************** fatal: [ip-10-186-27-189.ec2.interna... | This turned out to be because Ansible is attempting to retrieve EC2 facts on the remote host (because that's what I told it to, d'Oh!) Need to retrieve the facts using the localhost: [CODE] Credit to this reddit for the solution (but more useful to have it here on SF): https://www.reddit.com/r/ansible/comments/8p4l9f/a... | 1 | 2 | 1,489 | 2019-05-09T17:48:36.370 | pipeline_ops | serverfault.com | |
228,554 | Can we get any performance gain from creating index from date column? | I have seen lot of indexes created on the [CODE] columns in my project. Normally the index is a combination of a [CODE] column and another column (like [CODE] ) which are used to create an index. Since the [CODE] column is the only value that gets increased, is there any performance gain from creating an index on the c... | Phone book contains a list of persons and their phone numbers. If this list is unordered and you looking for person that isn't listed in the book, then you have to proceed each and every record in the list until the list will be exhausted. Ordering allows us the bigger/lesser comparison. If the list is ordered and we p... | -3 | 3 | 52 | 2019-01-31T12:17:31.217 | warehouse_errors | dba.stackexchange.com | |
269,856 | Using SQL*Plus to connect to remote DB from local server, how do I export a backup to my local server? | I am trying to have my entire remote DB backup made to my local server. Running the following command from my local server: [CODE] I am met with the following error: ORA-39002 invalid operation ORA-39070 Unable to open log file ORA-39087 directory name /backup/backup/ is invalid I know the directory path on my local se... | Datapump uses directory objects in the database, not direct file system paths. It can only export/import from directories visible on the database server itself. Your only possible option would be to share a directory from your local server to the database server and have Oracle write to the shared folder, but that does... | 1 | 1 | 431 | 2020-06-25T12:14:31.977 | database_errors | dba.stackexchange.com | |
847,747 | Fail2Ban block certain POST requests | I need to limit POST requests with Fail2ban for this type of log: [CODE] But not block the requests that are: [CODE] Is it possible to do with fail2ban? So far I've tried the following jail "subscribers.conf": [CODE] But due to the ignoreregex, other requests also being ignored. Any help appreciated! Jail.local file: [... | [CODE] needs to be escaped in regex. [CODE] Will work. What might have happend here is that the regex just ended at the first [CODE] . I always use one of the many free online regex checkers against the string I am trying to parse. | 0 | 0 | 2,271 | 2017-05-02T11:11:20.443 | infrastructure | serverfault.com | |
84,028 | MySQL: Adding an IF condition to trigger? | We've got a trigger that is overwriting the [CODE] value before insert. The vers.1 of our API depended on the DB to generate the UUID's, but I'm writing v2 which is using a library that generates the UUID's in the code before sending the [CODE] query. As such, I need to update our trigger so that the new uuid's created... | You forgot [CODE] [CODE] | 3 | 3 | 5,081 | 2014-12-01T21:29:16.523 | database_errors | dba.stackexchange.com | |
278,173 | Amazon EC2 Performance of Opteron Vs Xeon | I have performed a simple experiment executing the sysbench CPU test to compute large primes on two micro instances. Each instance is located in a separate availability zone in US-East Virgina 1a and 1c. Both instances are running on two different physical hosts. The instance in 1a is running on a Dual-Core AMD Opteron... | I believe this is simply due to the fact that the Opteron 2218 (which is old BTW) is distinctly under-performing for integer calculations compared with Intel's 5430 (which is at least one CPU generation ahead as well) | 3 | 1 | 335 | 2011-06-08T09:38:53.317 | infrastructure | serverfault.com | |
1,040,334 | Trying to enable Nginx on Ubuntu 18.04 throws an error Default-Start contains no runlevels, aborting? | I have an nginx service and it works perfectly, the only problem is I can't enable it. I followed this thread Not a native service systemd - can't run on boot and did what was told in the accepted answer and I still have a problem. When I run: [CODE] I get: [CODE] When I start it with [CODE] and run: [CODE] I am gettin... | For some reason Ubuntu's build of nginx includes both a systemd unit and the obsolete SysV init script that it was meant to replace. This also is present in 20.04 LTS, so upgrading will not help. I would guess some packager just forgot about it; consider opening a report on Launchpad so the maintainers can remove the o... | 0 | 0 | 3,357 | 2020-10-28T09:36:07.257 | infrastructure | serverfault.com | |
850,078 | Most ports unreachable | I'm running CentOS on a VPS with the following iptables configuration [CODE] Is there anything here that would render ports 25, 80, 110, 143, 993, and 995 unreachable? Telnetting to these ports from within my VPS via [CODE] works, so I'm sure the services are running. Yet trying to telnet into them from my local comput... | Have you tried to put rule [CODE] after your ACCEPT rules? Looks like this rule block all ports, and iptables don't open ports even you have rules for them. | 0 | 1 | 229 | 2017-05-14T22:46:33.343 | infrastructure | serverfault.com | |
588,613 | Sudden error with wordpress with nginx only (Uncaught SyntaxError: Unexpected end of input) | I've installed Wordpress on my VPS and is run smoothly with apache2. But recently , I recognized that it consume too much RAM (~600MB for 7-8 session) so I decided to change to Nginx. After changing for few days, it's working fine, without any problem but suddenly yesterday, the Admin Page layout was destroyed. I looke... | Problem solved, nginx can't acces to it's buffer folder "/var/lib/nginx". Just chmod 0755 and it's working fine now | 2 | 2 | 2,323 | 2014-04-12T15:57:47.607 | infrastructure | serverfault.com | |
19,888 | How to transform raw data to fixed-frequency time series? | How to transform raw data to fixed-frequency time series? For example I have the following raw data in DataFrame [CODE] I'd like to transform it into a time series: 1 minute frequency column A should have sum of values in time interval column B should have mean of values in time interval possibly other functions over o... | This sort of effect can be achieved with [CODE] combined with [CODE] like: Code: [CODE] Test code: [CODE] Results: [CODE] | 5 | 5 | 3,915 | 2017-06-21T16:48:25.713 | data_quality | datascience.stackexchange.com | |
809,767 | Lync 2013 / SfB without Reverse Proxy | We are looking to deploy SfB Frontend and Edge with mobility client. We only have capacity for two new servers, so we cannot put a dedicated Reverse Proxy in. Can we simply use NAT to get around this? i.e. on our Firewall device, NAT 443 to 4443 for external connections to the Front End for the External Web Services? I... | I would highly recommend to use a reverse proxy due to the reason that you have then a fully supported environment if you need to open a case with Microsoft. You can use the MS Web Application Proxy as reverse proxy (see here ). It can be a VMWare server (esxi or something) it didn´t take that much load and will allow ... | 1 | 0 | 790 | 2016-10-18T14:17:21.510 | infrastructure | serverfault.com | |
187,522 | Sending multiple messages with fsockopen - Last message doesn't go out | In PHP I've written a relatively simple mail delivery script. Here is the actual delivery portion: [CODE] Here is where the socket is opened: [CODE] *A destructor closes the socket Basically I loop through the list of recipients and send out a customized message to each one. It works perfectly until it gets to the last... | Is your destructor sending the QUIT command? I concur that if everything is happening the way you think, the mail should have sent if the server returns the "250 OK" (does it after your last message? are you debugging this?). Try adding this to your code right after the 'CRLF.CRLF': [CODE] Maybe your class is having so... | 0 | 1 | 2,307 | 2010-10-04T22:06:24.563 | infrastructure | serverfault.com | |
256,543 | Agile Story Pointing - Shared Resources | I'm running a team that takes care of 3 products that are distinct in language/product type so that 2 out of 6 developers I manage are only ever locked to coding on 2 of the products (thick client applications). The other 4, are the web developers and look after a very rich/complicated web application. The process the ... | The core idea of Agile is that you can adapt quickly. Adapt your products quickly to changing requirements, but also adapt your processes to your unique situation. Another core idea of Agile is that management shouldn't be laying down the law, but that the teams are quite capable of deciding for themselves what works a... | 3 | 3 | 388 | 2014-09-17T18:18:32.780 | api_errors | softwareengineering.stackexchange.com | |
964,374 | Weird "Error 404 (Not Found)!!1" | I hosted a site in an Apache2 server that's behind an IIS proxy, everything managed by one of my customers. My customer told me he just redirects all requests to https://estudios.hbritanico.com.ar to the Apache server's port 443, and it seems ok, but some times I get a weird 404 error message comming from Google when I... | It turns out there's something related to the DNS. In /etc/resolv.conf there was an nameserver 8.8.8.8 (Google's DNS), I replaced with the customer's one and it's working perfectly right now. | 0 | 1 | 914 | 2019-04-24T09:26:42.850 | api_errors | serverfault.com | |
177,855 | Debian BCM43xx Wireless Device Issues | I recently got help here so I decided to ask another question. I'm facing issues with Broadcom wireless card on my laptop. I'm using this Wiki page as manual and I'm doing everything EXACTLY as this page states. b43-fwcutter has been installd successfully, firmware fetched and extracted without any problems. Also [CODE... | http://www.broadcom.com/docs/linux_sta/README.txt above link try this out.. | 0 | 0 | 167 | 2010-09-03T17:34:42.123 | infrastructure | serverfault.com | |
132,504 | Insert results from a stored procedure into a table variable | I have a stored procedure that stores values in a table variable. I select these values and return them when the procedure is called. I am trying to set these return values in another table variable but I can't figure it out. Stored procedure [CODE] Calling code I call the procedure using: [CODE] How can I do this? | To insert the results into a table, you just want [CODE] not the [CODE] part of the query. In your case, this would look like the following: [CODE] | 26 | 29 | 80,165 | 2016-03-17T11:40:03.470 | database_errors | dba.stackexchange.com | |
114,017 | ODBC Drivers Missing on Windows Sever 2003 64 bit OS | I am working on a Windows Server 2003 x64 bit OS. Under ODBC connections, I am seeing only "SQL Server" and "SQL native Client". I wanted to make a datasource for [CODE] . I have already performed the following things and there is no solution: Gone through the reply specified in JET and ODBC driver missing, can not get... | Thanks for the reply. Just to keep you updated, I already have Excel installed on my system. Even after that I was not able to create Excel ODBC driver from Administrative Tasks menu in Control Panel. I just found a way to create the same and though of updating the forum. I have gone thorugh 64 Bit ODBC . It says that,... | 0 | 1 | 5,970 | 2010-02-17T14:24:09.833 | database_errors | serverfault.com | |
250,577 | Creating two sub queries using WITH clause | I am struggling with really complex queries involving two sub-queries using [CODE] clause as described here . But it appears to me I cannot use one sub-query inside my main query. I here is my query statement: [CODE] Error: [CODE] I cannot use [CODE] or [CODE] from second sub-query [CODE] in main query. But works on co... | There are two problems with your query: You are missing a comma before [CODE] . If you want to reference the CTEs in the main query, you have to add them to the [CODE] clause. | 0 | 2 | 65 | 2019-10-08T18:59:33.680 | warehouse_errors | dba.stackexchange.com | |
64,567 | How to clone a user in SQL Server 2008 R2? | Is there a way to clone users' security and permissions in Microsoft SQL Server, preferably using the SQL Server Management Studio GUI? | Note : The below script doesn't actually set the permissions on anything, it just creates the script that can be copied and pasted to a new query, which can then be edited before being executed. Below script will help you copy/clone permissions of one user to another: [CODE] | 30 | 44 | 57,321 | 2014-05-06T14:13:25.313 | database_errors | dba.stackexchange.com | |
233,530 | ISC DHCP - Force clients to get a new IP address, instead of the being re-issued their previous lease's IP | We are in the middle of a migration of our DHCP and DNS services from a Debian-based server to a Windows Server 2008 R2 implementation. The Debian server is running isc-dhcpd-V3.1.1. All of workstations are configured to have fixed-addresses between .3 and .40 (the motivation behind that choice is mostly management/pol... | This is probably not the best way to solve this problem but it worked. Here's what I did. 1) I added the following restriction to my Debian-based DHCP server and removed all of the fixed-address entries. This forces any clients in those IP ranges to move somewhere into the .41 - .199 range, otherwise when I turn on the... | 1 | 2 | 9,443 | 2011-02-09T20:49:13.657 | infrastructure | serverfault.com | |
76,491 | How to set up subnets for small business infrastructure | At one location we have a single server (also a DHCP server) and much less than 254 clients. Many are wired, but there are also a couple of wireless routers, which occasionally have their wired ports used too. Right now the wireless routers have their own subnets (192.168.1.x and 192.168.2.x) and the main wired network... | The easiest way to set this up is to disable DHCP on the two wireless routers. Configure the wireless routers with static IP addresses on the LAN ports using the 10.0.10.0 subnet (IPs that aren't being used by DHCP or another device with a static IP). Set the WAN port for DHCP (or set it to another subnet that you'll n... | 0 | 5 | 6,987 | 2009-10-20T19:50:43.077 | infrastructure | serverfault.com | |
536,149 | NGINX Dependancy failure | When I try to ./configure nginx 1.4 or 1.5 i get the below. [CODE] So I try and install yum install GCC and get the below. [CODE] However when I try [CODE] I get this result. [CODE] So, from what I am seeing the dependencies are there, so what am I missing? Thanks in advance. | Your machine does not have an active Red Hat subscription. Assign an active subscription to the machine and then try again. | 0 | 1 | 570 | 2013-09-04T07:49:23.347 | infrastructure | serverfault.com | |
161,644 | Options to handle corrupt msdb ldf file | Specs: We're using SQL Server 2005 with transactional replication. Our MSDB .LDF file has recently become corrupted, causing the MSDB db to be marked as 'suspect'. We read a bunch of stuff online and learned that to fix this you either have to restore from a backup, or you have to rebuild MSDB from the sql install scri... | It's been a long time since I've had to use replication (and perhaps you've tried this) but are you not able to use the wizard to disable the publisher and distribution db and then re-enable them? | 0 | 0 | 1,048 | 2010-07-18T23:23:35.637 | data_quality | serverfault.com | |
486,496 | Linux Kernel (/proc/meminfo) Not Reporting All Memory | I have two machines that are identical in every way (hardware, distribution, application workload, /proc/sys/vm settings, etc), except for the the kernel version. One is 2.6.33 and the other is 3.1.0. The 2.6.33 machine performs significantly better for the given workload (both are I/O bound mostly on reads). I've noti... | It turns out the memory was being consumed by XFS metadata buffers. They moved from the kernel page cache to XFS specific buffers in the 2.6.39 kernel. The patch that changed the behavior can be found here: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0e6e847ffe37436e331c132639f9f872febce82... | 4 | 6 | 2,235 | 2013-03-10T22:31:09.043 | infrastructure | serverfault.com | |
62,107 | mysql directory grow to 246G after one query, which failed due to table is full | I was trying to run the following statement with the hope to create a join of two existing tables. [CODE] Currently the size of these two tables are: [CODE] After a little over a day, The query finished and I got the following result. [CODE] It turned out that the size of [CODE] has grown to 246GB in disk space, and th... | The table simply does not exist. How can you verify this ? Goto the operating system and run the following [CODE] If that file does not exist, the table does not exist. If that is the case, then what's all that 246G bloated space ? You need to look the following InnoDB Architecture Take a closer look at ibdata1 ( syste... | 2 | 2 | 1,597 | 2014-03-31T00:04:29.657 | database_errors | dba.stackexchange.com | |
1,000,859 | Where's my `stub-resolve.conf`? | I'd like to start using [CODE] on Oracle Linux 7.6. I'd like to use it in the mode where [CODE] is just a symlink to [CODE] having just [CODE] as a content. I've installed [CODE] and [CODE] packages. I've enabled the relevant services and I've disabled [CODE] and [CODE] services. However my installation of [CODE] doesn... | I faced the same issue on Ubuntu 20.04 LTS many times and it's just because of the systemd-resolved.service which was either stopped automatically or deliberately. After starting the service the file /run/systemd/resolv/stub-resolv.conf file is back. | 0 | 2 | 2,880 | 2020-01-29T06:20:57.353 | database_errors | serverfault.com | |
333,098 | collectd:Monitoring server not showing clients | I have setup a monitoring server with the following setup. [CODE] Now my clients are sending data to the monitoring server(verified through tcpdump). Even the collection folder shows that the data is being dumped [CODE] I have also verified with find . -mmin 1 to see if its being constantly updated. [CODE] But when i l... | The posted image doesn't seem a part of collectd-web. Anyway, there's a sort of cache effect with Firefox which prevents the rebuilding of collectd-web menus, included the hosts list. Clean Firefox' cache and try again. | 3 | 0 | 1,692 | 2011-11-21T06:44:26.303 | pipeline_ops | serverfault.com | |
114,789 | How do I setup MySQL Master Replication Manager in a hot/cold master fail over environment? | I have a 2 master and 6 slave MySQL database environment. One master is hot and the other master is considered cold and is just running as a slave. I don't want to do a real master - master where both are replicating from each other. During fail over I want the cold master to start taking the write hits and the failed ... | I prefer dual master with in an active passive setup using LinuxHA (heartbeat). Passive can be used for a different database than the active, so as that the box is not idle. Infrastructure depends on your resources and budget. You can replicate readonly slaves off of either or both of the servers. But to be quite frank... | 1 | 1 | 999 | 2010-02-19T21:20:08.570 | database_errors | serverfault.com | |
39,282 | Can I deactivate log shipping jobs without raising errors? | I've set up log shipping from Server A to Server B. I then set it up from B to A when B was the primary. I've reverted back to A being primary and disabled the backup, copy and restore jobs associated with B to A shipping. However, I have a failure of the LSAlert job on both A and B. Is there a way to suppress these er... | This normally occurs when the log-shipping is not removed cleanly. To remove the orphan entries you have to delete them from msdb logshipping tables. [CODE] | 1 | 3 | 1,023 | 2013-04-04T19:33:43.857 | database_errors | dba.stackexchange.com | |
311,072 | How do I write this method to adhere to the Single Responsibility Principle? | I'm writing code that imports values from a CSV file. As part of the import process, I need to write warnings to a log (displayed on screen) when values in the CSV file are invalid. The method below takes a string value, and a maximum value to check against. My concern is that the method does two things: it parses a va... | You have some case of primitive obsession here. In your case, I would create a dedicated parser [CODE] class and have [CODE] static method that then returns how the parsed string is invalid with valid string in valid case and "undefined" in all others. Maybe something like : [CODE] | 1 | 2 | 292 | 2016-02-25T11:05:32.037 | api_errors | softwareengineering.stackexchange.com | |
424,796 | Why are my httpd mpm_prefork processes being reaped so quickly? | [EDIT] Bad question, mostly - see my answer [/EDIT] We've got a system running RHEL6, x64. We are using a local installation of apache 2.2.22 from source. we serve primarily: mod_perl applications (with a local installation of perl 5.16.0) tomcat applications proxied with mod_jk Here is some context; the main question ... | aaargh the answer in this case turns out to be that i hadn't configured apache with those maxrequestsperchild, minspareservers, and maxspareservers options. I modified a config file that I believed was [CODE] d in the primary file, but wasn't. New to this site, and crufty old config. sigh. So, the behavior I describe i... | 3 | 0 | 1,061 | 2012-09-06T04:30:07.533 | database_errors | serverfault.com | |
199,291 | Check and trigger constraints | Suppose a DB contains two tables A and B as given below: [CODE] Now let's say that we'd want Postgres to automatically update [CODE] in B such that [CODE] is always equal to [CODE] whenever A receives new rows, updates to existing rows or rows are deleted. Similarly, it would be desirable to ensure that any updates to ... | The requirements are not clear in at least three places: What should happen if [CODE] is updated but no related row in [CODE] is updated? Should [CODE] be updated with current timestamp or not? What should happen if a row in [CODE] has 0 related rows in [CODE] (due to that it was just inserted or the related rows from ... | 1 | 2 | 266 | 2018-03-03T09:37:19.460 | data_quality | dba.stackexchange.com | |
110,405 | mod_status doesn't show originator IP | When using mod_status to resolve Apache 2 performance issues, I notice one of my Vhosts is getting heavy traffic, but under the " [CODE] " column instead of seeing the IP address of the remote machine, mod_status provides only "::1". What does that mean? is it possible to camouflage a remote machine IP address in this ... | That is localhost in IPv6 notation. | 0 | 1 | 152 | 2010-02-07T15:00:48.360 | infrastructure | serverfault.com | |
853,845 | How to setup a Ubuntu mail server that accepts any emails from *@*.ca and forwards them to an external email address? | I'm trying to setup a small Ubuntu server that would accept basically any emails and would forward all of them to the email address of my choice. I did some research and I think it would be possible to do with [CODE] , but I'm really not familiar with it. Can someone provide me with a detailed explanation on how I woul... | This answer does not accept mail for the entire "ca" TLD. This is because I found out that wildcard domains in the VirtUser table require patching an m4 file. This answer does provide a way to take a list of .ca domains and rewrite the recipient to an external address. Install Sendmail, start it. [CODE] Making sendmail... | 1 | 0 | 1,081 | 2017-06-03T22:44:09.533 | infrastructure | serverfault.com | |
576,594 | How do I tell what request a mod_wsgi process is serving? | Occasionally, I get an apache process running at 100% CPU. I've tried letting it run it's course, but I've seen it go more than half an hour without giving up. My running hypothesis is there is an infinite loop in some application code somewhere. I've used mod_status, but the PID doesn't show up there. I've attached GD... | Such debugging techniques are covered in the mod_wsgi documentation. http://code.google.com/p/modwsgi/wiki/DebuggingTechniques | 0 | 0 | 351 | 2014-02-18T21:48:21.947 | infrastructure | serverfault.com | |
313,470 | Mysql DB viewer user (only for views) should access to information_schema and test? | I've created a user in our mysql/mariaDB engine so our customers can read some views. User has been created as follows and can query the views with no problem. [CODE] However, I'm wondering that this user has full read access to "information_schema" and "test" schemas. I understand that first is a dynamically built tab... | Thanks to @BillKarwin to point me in the right direction. This can be done running https://mariadb.com/kb/en/mysql_secure_installation/ | 0 | 1 | 433 | 2022-06-17T10:22:14.717 | pipeline_ops | dba.stackexchange.com | |
9,007 | How to handle "Time out receiving message from the renderer" in chrome driver? | I am new to selenium, I'm facing "Time out receiving message from the renderer" in chrome browser while running test with selenium 2.41 and chrome 2.9x. I have tried many tests to reproduce the issue, but it occurs inconsistently. Is there any specific reasons for this issue?. | Thanks for your responses finally I solved it cutting out some plugins and blocked some third party ads before starting the tests. Solution 1: There are some plugins like flash player which may hangs the browser inconsistently waiting for some resource during test run, try disabling such plugins while starting the test... | 20 | 2 | 130,390 | 2014-06-24T12:46:27.693 | data_quality | sqa.stackexchange.com | |
511,400 | ServerAlias with SSL | I would like to know if the SSL certification would still be valid in the scenario. By valid I mean it will display both sites with SSL certificate without any issues or errors etc. I have two external URL's [CODE] and [CODE] for example. and I have an internal url at [CODE] for instance. both [CODE] and [CODE] resolve... | Standard SSL certificates are valid on a single domain only. Please see my overview of SSL certificate types here: https://serverfault.com/a/509303/35258 Either you want to use a multi-domain SSL certificate or consider creating two-virtual host containers and using a SSL certificate on each that matches their respecti... | 1 | 1 | 4,207 | 2013-05-28T14:22:58.733 | api_errors | serverfault.com | |
290,363 | Windows Server 2003 4GT Performance? | Does having 4 Gigabyte Tuning enabled cause a performance hit? | If you have 32-bit apps that could use more than 2GB of virtual memory (4GT increases it to 3GB) then yes, you might benefit from enabling it. If your apps are network or IO heavy however, the memory available to those operation will be reduced and you may experience degraded performance. It really depends on the situa... | 0 | 2 | 116 | 2011-07-14T14:21:10.280 | infrastructure | serverfault.com | |
76,816 | How to handle Overfitting | I am working on machine learning classification problem with two classes (0/1). I would like to build a prediction model. The problem is that I have a small dataSet of [CODE] which may caused over-fitting. problem ( 20 independent variables ). I notice that the results are highly affected by the train data and test dat... | This is a very general question, however, there are many different solutions as explained below. For your case, probably, item 2 is not the case because you can not gather a large number of data points. I would recommend using solutions 1, 3, 5, and 6 (I see you used this method but try to combine it with other solutio... | 4 | 6 | 3,040 | 2020-06-28T18:58:05.273 | data_quality | datascience.stackexchange.com | |
50,093 | PDC computer crash & reinstall problem | Yesterday i was assigned to reinstall a primary domain controller because the computer just died. Honestly, i have no experience on it, but i managed to reinstall and configure the new Win2K3 installation as a virtual machine, with the 'same' configuration as before (same domain, etc). I recreated the users in AD, and ... | You have to put the workstations in Workgroup mode and then rejoin them to the new Active Directory domain. From your description, this is a completely different domain, having only the name in common with the old domain. The workstations don't just join a name when they join an AD domain. They join a single Active Dir... | 1 | 2 | 358 | 2009-08-04T23:28:12.053 | infrastructure | serverfault.com | |
259,789 | MySQL / MariaDB Get last 7 days summarized and with avarages calculated | currently, I have this table: [CODE] with the following example data: [CODE] I want to get the average values of the last X days as one row for each day. I could do it with X querys for each day like [CODE] But I want to know, if it is possible to get the data with one query to get a result like this: [CODE] Would be n... | First, a very nice first post. Both ddl and sample data makes it easy to recreate the setup. Second, all you have to do with your query is to add the date dimension: [CODE] You might also be interested in the BETWEEN predicate: [CODE] I haven't checked, but there is a risk that day is a reserved word. In addition I pre... | 2 | 2 | 227 | 2020-02-16T09:31:54.130 | database_errors | dba.stackexchange.com | |
503,812 | Using hiera to access facts of another node | What we're trying to do is generate firewall rules (puppetlabs/firewall) for iptables. Our nodes are grouped like so conceptually: [CODE] The node "specific4" will always need to access port 8080 on "shared2" and port 10000 on "site1". "specific1" likewise will need to access 8080 on "shared1". The rules are always goi... | So you want certain hosts to get information from another host's facts, but which host the facts come from will vary depending on the configuration of the specific host. Is that correct? If so, I would also recommend using exported resources and using tags to specify the particular resource to use. The reason for this ... | 2 | 5 | 7,678 | 2013-04-30T10:11:48.640 | pipeline_ops | serverfault.com | |
401,277 | Xen dom0 crashed | Lots of questions this week, I got this error on dom0, then the server crashed (according to /var/log/messages): [CODE] Server is on CentOS 5.8 [CODE] | First - why are you using your Dom0 as DHCP-server? Second - looks like a memory fault to me. | 0 | 0 | 511 | 2012-06-22T11:05:45.080 | infrastructure | serverfault.com | |
672,968 | Why some iptables DNAT rules don't work until reboot? | My iptables DNAT rules don't work until reboot. If I reboot my server, all of the rules work. Desciption of the architecture : Tens of hosts (senders) send some UDP packets (one-way on a specific port 9999) to my Linux router. This Linux router use iptables to forward those packets to several hosts (receivers). senderX... | The symptoms you describe match those seen when there is a conflict between a NAT rule and a connection tracking entry. For example when a packet is matched by [CODE] a new connection tracking entry need to be created. This will map a tuple of source and destination IP and port on the incoming side to a similar tuple o... | 4 | 5 | 8,466 | 2015-03-04T13:32:23.010 | infrastructure | serverfault.com | |
591,444 | Give user permission to create/delete particular file? | Is it possible to give a user permission to create/delete a file at a certain path, but not to modify other files in the same directory?. I'm using Ansible to provision a CentOS 6.4 box. I'd like to make certain playbooks that non-root users can run, to make relatively safe changes like refreshing the httpd.conf file f... | Using the sticky bit on a directory will permit users to create new files in that directory. They can also rename and delete their own files, but not other users' files. This is used on [CODE] and a few other directories. Using [CODE] would allow users in the group of that directory to create new files in that director... | 1 | 2 | 282 | 2014-04-25T23:38:16.707 | pipeline_ops | serverfault.com | |
256,275 | error in SSIS - [SQL query execution task] Error: The binding name of the results must be zero for the complete result set and the XML results | I have an Execute SQL task that returns "Full result set". Despite that, the task fails. Please how can I fix it ? [SQL query execution task] Error: The binding name of the results must be zero for the complete result set and the XML results. | Click on ResultSet in the Execute SQL Task, click Add. In the 'ResultSetName' column, enter the exact name of the columnname that you are retrieving or simply give it 0. In the 'variablename', select the variable you created to map the data returned. | 0 | 2 | 483 | 2019-12-25T15:43:58.037 | warehouse_errors | dba.stackexchange.com | |
122,465 | How to tune a SQL query? | I have a question about SQL query tuning. How can rewrite that SQL query for better performance? Query: [CODE] That's cost of query: [CODE] | What makes you think you need to rewrite it? SQL Tuning is more than just trying to rewrite your query. If you do not understand what happens behind the scenes, then how will you rewrite your query? The estimated cardinality in step 10 and 21 is 1. Still the database decides to scan the whole [CODE] table. Twice. Is th... | 0 | 2 | 216 | 2015-11-30T14:57:46.263 | warehouse_errors | dba.stackexchange.com | |
199,284 | Why should I use Iesi.Collections instead of the traditional System.Collection? | Was research on how (for convetion) define a Many Many where table where both fields are primary key and found this post . So decide to install the Iesi.Collections in my library domain. But there came a doubt. In the "Iesi.Collections" outperforms "System.Collections" Iesi.Collections? Why should I use? It is better i... | Iesi.Collections was originally released in 2004 , when the .NET Framework was at v1.1. As of .NET 3.5, the .NET Framework includes a HashSet collection type, which provides the Set functionality that Iesi.Collections was intended to address. Unless you have a specific reason to use Iesi.Collections (e.g., NHibernate d... | 7 | 11 | 5,705 | 2013-05-24T13:09:20.003 | api_errors | softwareengineering.stackexchange.com | |
215,647 | Queries logged in the 'Slow query log', and 'start transaction' vs 'set autocommit = 0' | Currently [CODE] is set to [CODE] , and that works. However, many queries are part of a transaction, and the slow query log only keeps the final [CODE] . [CODE] Which is not very informative ( while it's correct, as seen from the db server ). Is there a way to see the queries up to the [CODE] , meaning all queries from... | Mysql run with autocommit feature , it look like your application code forcefully commit the each DML. | 1 | 2 | 488 | 2018-08-23T04:03:25.780 | warehouse_errors | dba.stackexchange.com | |
727,801 | How many available IPv6 multicast prefixes are there? | How many freely available multicast prefixes are there? The RFC specifies every ff00::/8 as the required prefix. Accordingly, there are 16*16 = 256 multicast prefixes. However, a large part are already taken (e.g., ff02::2 ). So how many are there actually available? | Your question doesn't make a lot of sense... there's no concept of "prefixes" in IPv6 multicast. The base RFC defines an IPv6 multicast address as looking like this: [CODE] This means that, within each multicast scope , there are only 2^112 (5,192,296,858,534,827,628,530,496,329,220,096) multicast groups available (not... | -1 | 3 | 49 | 2015-10-09T07:11:58.267 | infrastructure | serverfault.com | |
1,045,744 | WiFi adapter is delaying packets when low throughput | I was testing a WebSocket connection when I noticed jitter; some TCP packets were getting delayed. So I started pinging the destination. As soon as I did that the TCP packets were no longer getting delayed, weird. I stopped pinging; I started getting jitter again. It seems like that if I go beyond a certain threshold o... | This was caused by active power management on the Wireless NIC. Running this command which switches off power management for the NIC fixed this: [CODE] It seems the power management for this particular NIC became active with an extremely low timeout. E.g no traffic transmitted for ~200 ms will put the NIC into low powe... | 0 | 0 | 57 | 2020-12-10T18:37:57.667 | api_errors | serverfault.com | |
44,861 | Issue importing large file into SQL server | I am trying to import a 4gb csv file into a new table in sql server using the wizard. And when I do I get the errors below. I also included the 2nd row of the file I am trying to import without the headers. Any idea on how I can fix this? Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion f... | You're getting a truncation error, meaning the data that's coming in is larger than the field size you have specified. Try increasing the destination table field size and you should be good to go. I get these alot when I work with email addresses as the SQL import wizard defaults to 50, I always have to increase it eve... | 5 | 5 | 8,042 | 2013-06-19T15:14:54.703 | pipeline_ops | dba.stackexchange.com | |
199,978 | MYSQL Update data based on top 10 records of each user | I have a table [CODE] and other table [CODE] . In [CODE] , I save daily score of every user based on a algorithm. Now I want to calculate AVG [CODE] by only considering latest 10 records of [CODE] in [CODE] table. I have tried following two queries but not successful with these. 1. [CODE] I am facing error [CODE] cuz I... | [CODE] This query first selects the latest 10 scores for each user from the [CODE] table using a subquery. It then calculates the average of these scores and updates the [CODE] column in the user table for each respective user. | 1 | 1 | 278 | 2018-03-12T11:00:54.473 | database_errors | dba.stackexchange.com | |
479,951 | Jenkins SVN checkout borks new files | I am running a Jenkins CI server which polls an SVN server and checks out the (Maven) project and builds it. We have recently changed the build server and I set up Jenkins afresh with the few projects we have. Now this new instance has a major problem: Whenever a new file has been committed to the SVN repository, the J... | This seems to be a bug with Jenkins: https://issues.jenkins-ci.org/browse/JENKINS-14551 For the time being, you're best way to handle this is to implement a workaround by the means of automatically clearing out the workspace before building. This may however not the way to go if you have huge and frequent merges - but ... | 0 | 2 | 1,103 | 2013-02-18T14:19:26.697 | data_quality | serverfault.com | |
124,238 | Utilizing Colab's GPU/TPU to Speed Up General Python Code not just data science code | I am new to using Colab and trying to speed up my code by utilizing the GPU/TPU runtimes. I have a block of plain Python code without any data science libraries like TensorFlow or PyTorch. I was able to successfully change the runtime to TPU, which I confirmed using torch.cuda.is_available(). I am aware that the GPU an... | As hinted by the comment there are several approaches but only one that really matches the accelleration of a "block of plain Python code" using a GPU/TPU. This is different to how can python code be accellerated in general as you've specifically asked for it accellerated by a GPU/TPU . If using an Nvidia GPU, [CODE] c... | 0 | 1 | 81 | 2023-10-23T21:19:10.543 | data_quality | datascience.stackexchange.com | |
18,985 | EC2 can't get to internet? SG and ACL seem OK | I've applied the terraform code below ( [CODE] and [CODE] are, of course, separate IRL) to setup an AWS [CODE] , private and public subnets, routes, NAT gateway, Internet Gateway, Network ACLs, an EC2 instance (in the public subnet) with a Security Group attached. I can ssh into the EC2 just fine, but [CODE] won't comp... | So, for anyone else who stumbles across this, the ACLs don't know that the SYN-ACK packets coming back from a connection initiated from within an EC2 is traffic that is related to that connection (stateless). This means you can't just [CODE] without first opening [CODE] on the inbound side of the ACL. | 0 | 0 | 11 | 2024-02-29T11:02:13.550 | pipeline_ops | devops.stackexchange.com | |
173,764 | MySQL master-slave replication over an unstable internet link | Connection from our main office to couple remote sites are pretty unstable, if I want to do a slave replication to those remote sites, I might need to increase multiple timeout values, anything else I need to aware? Also, does replication are atomic? what if connection breaks in the middle of getting data? does everyth... | Increase some of these: [CODE] , [CODE] , [CODE] . Monitor the slaves to catch them in the case of a really long network break. Then do [CODE] Make sure [CODE] is long enough so that you won't lose binlogs. There is no "too big", except that you could eventually run out of disk space. Everything should work find after ... | 2 | 2 | 1,081 | 2017-05-17T05:18:53.117 | database_errors | dba.stackexchange.com | |
373,913 | High Performance Garbage Collection | I am new to garbage collection but have been looking around. I have noticed that Reference Counting has a very bad reputation (PHP, Python), as well as Conservative GC (Ruby) under certain conditions. However, I have also seen papers describing Fast Conservative GC and Fast Reference Counting . I am wondering if in the... | Different GC algorithms have different tradeoffs. Some optimize for high throughput, others for low latency. There is no single best algorithm, so platforms like the Hotspot JVM are very tunable and allow you to select a profile that fits your expected workload. A good GC algorithm will try to self-tune itself to the a... | 3 | 8 | 860 | 2018-07-10T16:32:02.267 | api_errors | softwareengineering.stackexchange.com | |
149,756 | How in the earth CHRW produce unicode codes given that it only accept 65k possible input? | http://babelstone.blogspot.com/2005/11/how-many-unicode-characters-are-there.html says there are 1 million unicode characters and around 240k of which are already assigned. 1 million > 240k > 65k However, http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.strings.chrw says that chrw accept 65k characters. No... | Chances are that this method only supports the Basic Multilingual Plane of Unicode. That Plane contains the lower 64k of codepoints and can be represented with a 16 bit data type. There was a time when the BMP was all the Unicode standard defined and at that time many languages and/or runtimes added "Unicode support". ... | 7 | 10 | 1,473 | 2012-05-23T04:59:39.440 | api_errors | softwareengineering.stackexchange.com | |
609,400 | How to access atomia DNS web app over public IP? | After installing everything and trying to access Atomia DNS's web app over public IP/port, I get "This webpage is not available". In the guide they access the web app over [CODE] but I need to access it over my VPS's public IP address. OS is Ubuntu 12.04 LTS. To add one thing I found. Seems like web app crashes right a... | I just had the same problem and debugged - this occurs cause Atomia's webapp installed a version of the Node.js "express" module which is too new. I'm running on Ubuntu 12.04 here and it comes with node.js 0.6.x - the express module version that Atomia installs for the webapp requires node.js 0.8.x though. The best way... | 0 | 0 | 493 | 2014-07-01T20:50:16.177 | infrastructure | serverfault.com | |
463,994 | Ubuntu: forcing processes into swap, or into RAM | I am now solving the following problem on Ubuntu: Is it possible to specify if one process should run only in the RAM (i.e. is not allowed to swap) or reversely only in the swap part? I mean that the process should be killed by the system rather then use the other type of memory. It is important for me because I should... | No, unless a process gets memory and binds that memory using [CODE] there is no guaranteed way to ensure that it will not go to swap. Swap is used for anonymous dirty pages. It doesn't have a fixed filesystem backing or source, so no program ever can start from swap. And unless the application on it's call to get memor... | 2 | 2 | 3,300 | 2013-01-08T12:33:09.083 | infrastructure | serverfault.com | |
892,897 | Programmatically deploy MSI package via AD Group Policy | I'm looking for a way to deploy an MSI to a group of computers (contained within a single OU in AD) via Group Policy programmatically. Assumptions: The network share which will contain the MSIs is created and has proper permissions the MSIs are copied to the share by hand prior to execution of the code The OU containin... | If you are looking to programmatically work with GP objects, then you will want to look at Microsoft's IGPMGPO interface . The catch here is you can't create new policy settings within the GPO, but you can modify the GPO itself (copy GPOs, enable/disable setting groups, set WMI filters, modify ACLs, etc). So if you cre... | 1 | 1 | 708 | 2018-01-18T17:36:13.110 | infrastructure | serverfault.com | |
105,731 | Setting the column width of a column in a table created by logparser | I'm trying to use LogParser for ETL. I am trying to import this file with the following command: "c:\Program Files (x86)\Log Parser 2.2\LogParser.exe" "SELECT Field1 AS CountryCode, Field2 AS Zip INTO ZipCodes FROM 'c:\Users\jdearing\Downloads\us.txt'" -i:TSV -headerrow:OFF -o:SQL -server . -database LogParserTest -cre... | Its possible to get somewhat close to this. First precreate the table [CODE] Note that you have to use varchar columns one character wider than your input. Now run this command, note the lack of [CODE] , but you can keep that there if you desire. It does't recreate an existing table: "c:\Program Files (x86)\Log Parser ... | 1 | 0 | 249 | 2015-07-02T02:09:56.620 | data_quality | dba.stackexchange.com | |
194,715 | Two different LAN in one BladeCenter? | How to Configure Two different LAN in one BladeCenter Chassis? Topology: Modem --> Monowall --> BladeCenter Chassis --> BC Switch Module 1 (10.1.10.1) and BC Switch Module 2 (192.168.1.1) What I want: BC Switch Module 1 --> Blade Slots 1-6 and BC Switch Module 2 --> Blade Slots 7-14 Problem I get: BC Switch Modules 1 a... | Each switch module has a connection to one Ethernet port on each blade. You can't just have the switches take over both ports. What you can do is: Hook up each switch to the appropriate network Bring down ports 7-14 on switch1 and ports 1-6 on switch2 This will leave you only one connection per blade and isn't ideal. o... | 0 | 0 | 198 | 2010-10-26T02:33:14.953 | infrastructure | serverfault.com | |
477,520 | Issue with setting up Telnet Management on Open VPN Server | When I enable telnet on openVPN (windows) using this parameter [CODE] , I am not able to access the clients through their virtual IPs anymore. At the same time, when I disable this parameter [CODE] in server config, then clients become accessible through virtual IPs but telnet management console is lost. Please see the... | Resolved the issue when run OpenVPN as Service (following the link) https://community.openvpn.net/openvpn/wiki/Easy_Windows_Guide#RunningOpenVPNasaService | 0 | 1 | 2,857 | 2013-02-11T06:19:59.727 | infrastructure | serverfault.com | |
12,703 | Do not show browser and OS in Selenium console output | I am running Selenium tests (with Protractor) on several browser at the same time to speed up the testing. Jenkins starts the tests and receives the output in a console. To make things more readable I am figuring out how to show the test results differently. With xunit, html, or another reporter (I am using Mocha as te... | The best option is to not rely on the console for recording your test results. Jenkins has the ability to output the test results using the JUNIT Plugin . Install the plugin (if it's not already) and then add a post build action and publish as a JUnit test result report. Or you could use a separate test reporting frame... | 2 | 1 | 645 | 2015-04-16T12:19:29.660 | pipeline_ops | sqa.stackexchange.com | |
703,903 | Keep connections of closed instances behind a load balancer | I'm looking for a system to create a live sockets application through sockets.io and that can be balanced without problem. There are tons of solutions to balance the load between multiple socket instances, like SocketCluster, but the problem I'm facing is that, when the load balancer decides that instead of 10 instance... | You can't keep connections to a server process that gets closed. A socket is a connection between two specific endpoints. For security reasons, you can't just remap one of the endpoints to a new server. Instead, you would have to tear down the socket and let it reconnect (which socket.io will do for you automatically) ... | 0 | 2 | 212 | 2015-07-06T19:49:09.987 | infrastructure | serverfault.com | |
2,754 | How do you test reports and analytic engines like BI/BW? | I'm working with several companies that are deploying SAP HANA (in memory appliance that compresses data from the DB and moves the entire structure into memory resulting in query times that are ~3600 times faster). Our problem is we need to functionally test the system to ensure the right data arrived, no corruption oc... | No steak dinner for me and a bit of a general reply but do you have a way in your apps to capture the query/results going to/from the database? We have done a similar thing with SQL Server Analysis Services and then written an application to "replay" the traces and verify the response. Once you have the queries and res... | 7 | 1 | 1,502 | 2012-03-06T01:15:26.127 | warehouse_errors | sqa.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.