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 |
|---|---|---|---|---|---|---|---|---|---|---|
265,857 | How do I return a json object of my database table | I'm creating a web client that uses data from my database to plot markers on a google map. So my collumns are id, name, address, lat, lon, description. My client gets the data from a route in my restful server. I am currently using flask in my python server. This is the current code on my route on my server. [CODE] Thi... | For that purpose, you have to build your own json array from the resultset The last with lon is only a guess but you get the drift. [CODE] | 1 | 0 | 1,237 | 2020-04-26T13:25:49.317 | warehouse_errors | dba.stackexchange.com | |
1,097,166 | pgcrypto and password hashing | I'm thinking about my choices regarding how to store passwords in Postgres. One such option is to use [CODE] . Reading their docs, I see that their [CODE] and [CODE] functions do not use sha256 but instead use custom version of the cryptographically broken [CODE] . Why would Postgres developers use such a hashing algor... | Use a good password hash that slows down guesses. If you prefer to keep pgcrypto its best crypt() is currently bf, aka bcrypt based on Blowfish . Or select an alternative that is known to cryptographers and has well tested implementations. Note this could be in application code. crypt() as a DBMS function is convenient... | 0 | 0 | 549 | 2022-03-27T19:09:09.830 | infrastructure | serverfault.com | |
200,506 | routing problem under Mac OS X | I've looked around the net for two days, but no solution found, therefor I ask my question here: I'd like to connect my WD MyBook NAS to my MacBook. I've reconfigure the NAS to use a static IP (10.146.45.61) instead of DHCP. I use the IP range 10.146.45.x for all of my devices. The MacBook is connected via WLAN (10.146... | I strongly suspect that the problem here is that you have [CODE] Which is claiming that 10.146.45.* is reachable over BOTH en1 and en0, and I'm guessing that OSX is picking the first one because it's first in the list. Naturally if you get it to change the order so en0 has priority, the internet will stop working. The ... | 2 | 0 | 5,478 | 2010-11-10T20:21:12.603 | infrastructure | serverfault.com | |
589,240 | Is that OK to leave a small endless loop script running on server? | Looks like I need to update the full scenario here for all. Our users need to pick up whatever they need from our file server to sync to remote location, but users have limited permissions on file server to move files around. so here is my task: create a tool that user can use to pickup data and sync to remote location... | As a general alternative to this: put your script in Task Scheduler and trigger it every minute, two minutes, whatever. This is more reliable, as your process with survive reboots or script errors. Using Scheduled Tasks not only allows your process to survive reboots, as mentioned already, but can also make your task d... | 4 | 23 | 3,279 | 2014-04-15T17:51:29.273 | infrastructure | serverfault.com | |
408,237 | Troubleshooting Windows EAP/RADIUS connectivity issues | So, I guess the short version of the question is: I'm unable to get clients to connect to an enterprise-WPA wireless network after setting up a "new" NPS server and a new CA. After I manually request a new cert on my client from the NPS/CA server and trying to connect to the wireless network, they sit at "Attempting to... | If you're replacing the signing root CA, you'll need to make sure that you're importing both the new trusted root and the new client certificate. | 5 | 2 | 35,830 | 2012-07-16T17:48:30.360 | infrastructure | serverfault.com | |
314,505 | How to resolve CPU bottleneck on sql server caused by high signal wait time (SOS_SCHEDULER_YIELD)? | I'm monitoring CPUs on my sql server. The machine only has SQL server and no additional software other than anti-virus (with sql server file scan exclusions) Server has about 60 databases. Of these about 20 are actively in use. 2 CPUs, each with 12 cores -> resulting in 4 soft-NUMA nodes with 6 cores Max DOP 8 Cost thr... | Does 1.43% wait percentage mean this is negligible? It depends on what the other waits are, and how they're distributed. It may be a very big deal only sometimes, or it may be a consistent small contributor to the overall user waits. Irrespective of the above answer I would like to know whether this (high signal wait t... | -1 | 2 | 163 | 2022-07-17T03:38:25.870 | database_errors | dba.stackexchange.com | |
850,012 | What is a good way to run ICMP ECHO requests from a Python script? | I'm maintaining an application (written in Python) which polls information of a large number of hosts. As input I have a set of network ranges. Not all of the hosts in those ranges are always up. For the hosts which are down, I run into incredibly long TCP timeouts. For this reason, I run an [CODE] fast ping-scan befor... | You can give your script the ability to use the [CODE] privilege without running it as root. This privilege is required to use RAW sockets which are required to send ping echo requests. You can try: [CODE] To be honest, I did not try it myself. It seems like it will not be effective if you do it on a script that will b... | 0 | 1 | 1,156 | 2017-05-14T10:08:33.197 | infrastructure | serverfault.com | |
538,178 | OpenVPN and DD-WRT | I am trying to setup a fresh dd-wrt router to work with OpenVpn. However, the OpenVpn I need to use has a automatically generated config file. That looks like: [CODE] If a SSH into my router (this means I have turned sshd on) I can use this configuration to connect to the OpenVpn server. If I look at the VPN Server Acc... | I'm mostly speaking based on my plans to move my home OpenVPN setup to OpenWRT. It is currently implemented on Fedora18, but I'd like to use the test machine for other things. I would imagine that DD-WRT would be similar, but there may be some inaccuracies due to implementation difficulties. Hopefully someone with more... | 1 | 1 | 1,191 | 2013-09-11T18:14:23.233 | infrastructure | serverfault.com | |
35,896 | Dealing with a dataset having target values on different scales? | I am currently working on a dataset having 10 features and one continuous target variable . One of the features is 'Country' , in which there are seven unique values [Argentina ,Denmark , France...etc]. Now , the continuous target variable is sales of a given product in that particular country for a given month in a gi... | TL:DR The most common and straight-forward approach would be to scale all the numerical data to be within a given range. This makes the currency differences irrelevant, as all fluctation remains constant, relative to the original scale. Rescaling Here is an example function to scale the numerical columns of your datase... | 1 | 0 | 624 | 2018-07-23T06:30:58.537 | data_quality | datascience.stackexchange.com | |
1,075,660 | Does NGINX handle some error events / codes without them being set up in the config by default? | Question: Are there some error events / codes that NGINX handles by default? Background: The following portion of my config stops hotlinking and returns a 403 error. [CODE] This section blocks unwanted HTTP methods and returns a 405 error. [CODE] This got me thinking, are there any errors that I don't have to set up in... | Nginx will handle everything except application level errors. A few examples would be 400 if the request breaks RFC specified format. 403 if nginx cannot read a file due to permission. 404 if the file isn't found. And so on so forth, the only thing nginx doesn't handle is non-RFC requirements like your anti-hotlinking ... | 0 | 2 | 69 | 2021-08-25T23:04:46.830 | api_errors | serverfault.com | |
854,229 | Active Directory Domain where FQDN and NetBIOS name are the same | I have "inherited" an ancient domain (NT4, then upgraded to Win2000 Mixed Mode and now running on Win2003) where the NetBIOS name coincides with the DNS/FQDN one, and this is giving us problems with remote clients which need to be joined to the domain. Lets the domain be called [CODE] : it is both the NetBIOS name and ... | WINS/Netbios name resolution should never be used for anything due to the security risks. Additionally, when Netbios name resolution is enabled, Windows always performs a Netbios/WINS lookup concurrently with DNS lookups regardless if the name is available in DNS or not. If the environment does not have any products or... | 2 | 4 | 4,707 | 2017-06-06T13:23:57.040 | infrastructure | serverfault.com | |
443,032 | Debian Harddrive Fdisk - Same ID's and changing letters | I am trying to create and install a debain NAS and ive been having a hard time because I am new to all of this. I used ntfs-3g in order to automount my 4 NTFS drives. I also have a partitioned harddrive which is for the OS. When I was working on it and I ran this command I got this: fdisk -l /dev/sdae1 fdisk -l | grep ... | Mount the disks via labels or UUIDs . The label approach: Make sure you have [CODE] installed with [CODE] . Then do [CODE] in [CODE] replace the [CODE] part of the respective lines with [CODE] etc. | 2 | 3 | 483 | 2012-10-27T21:16:54.917 | infrastructure | serverfault.com | |
147,706 | Query on char with selector with N prefix is very slow | I have a table with a [CODE] "id" column, which is a clustered primary key. It has multiple other columns, including an "imdbId" column, which is an [CODE] . When I update using [CODE] the query takes forever. And I don't really understand why. Can't SQL Server convert the Unicode string (as it does not contain special... | It's bad enough that they are using a GUID as a Clustered PK, but they had to make it worse by making it a string and then doing a case-insensitive, locale-aware comparison? Amazing! Well, if you see that huge of a difference between passing in a string without the [CODE] and with the [CODE] , then that indicates that ... | 2 | 4 | 1,847 | 2016-08-24T09:09:05.627 | database_errors | dba.stackexchange.com | |
409,982 | Do other languages have variables shared between threads? | I guess it would be too complex for Node.js / JavaScript to leverage, but I've been working with clusters in node to break big tasks down so all cores can work at once but the inter-process messaging provided by Node seems to stringify the data to JSON and re-parse, causing a high overhead on sharing calculated results... | Yes. Most languages do allow variable sharing been threads without serialisation. In some languages, you can even share variables between processes using shared memory. Yes, you're correct that synchronisation is a problem in all languages that supports it. The most common and most basic way to solve the synchronisatio... | -1 | 3 | 322 | 2020-05-11T02:38:45.683 | api_errors | softwareengineering.stackexchange.com | |
251,729 | SOAP message testing | I am working in Scala/Java. I'm testing the messaging infrastructure of a part of my system that I did several years ago with CXF and Java. More specifically, I'm re-writing the specification of the message exchange. This is because i'm changing few part of it. At the time, I was not using TDD/BDD. Now I'm driving out ... | I would recommend to test the client and the server separately. Client testing The client connects to a mock server. That server verifies that the request from the client is well-formed according to your XSD specification and additional validation rules and sends a canned response back. The canned response from the moc... | 2 | 3 | 603 | 2014-07-30T15:46:17.233 | data_quality | softwareengineering.stackexchange.com | |
261,777 | Exception when starting Snapshot Agent when setting up database replication | I am trying to set up replication between databases. I followed these tutorials: Tutorial: Prepare SQL Server for replication (publisher, distributor, subscriber) and after: Tutorial: Configure replication between two fully connected servers (transactional) I went through first without any problems. Almost completed th... | I finally got it resolved. The issue was missing OLE DB driver. I just downloaded latest driver . Then I got [CODE] driver in directory [CODE] . Then I copied to [CODE] directory, so it can be found by [CODE] , which is executable run by Snapshot Agent. Alternatvely, one can define environmental variable to point to [C... | 0 | 2 | 1,731 | 2020-03-12T11:43:28.840 | database_errors | dba.stackexchange.com | |
383,438 | Problems accessing EC2 instance with SSH key pair | Just set up a new EC2 instance, downloaded the pem file and currently cannot get into the box. I'm using the command... [CODE] ...and being asked for a passphrase. I didn't assign a passphrase when I generated the key pair though! Why would this be happening? Anway, I had a dig around and found out how to remove passph... | There could be a few things going on here. First of all, it looks like you are trying to log into the ubuntu user. Are you sure that user exists and that that key pair is associated with that user? I'd try logging in as root instead and see if that works. Another possibility is that your private key is wrong. Did you d... | 1 | 0 | 1,419 | 2012-04-26T14:46:54.200 | infrastructure | serverfault.com | |
66,103 | How should a ViewModel be named? | While starting work on a brand new ASP.net MVC application we've learned that we should have all of our available data pushed to make it easy to create a full view. While learning this we've started using a concept of a ViewModel, or a complex object full of properties from other basic data transfer objects. Now our pr... | Definitely the View it will interact with. BUT If you're finding they all related to domain objects, why bother having view models? Why not just let the action interact with the domain layer? | 5 | 3 | 2,211 | 2011-04-07T19:01:09.793 | api_errors | softwareengineering.stackexchange.com | |
251,258 | Distributed Microsoft SQL server deployment - Cluster? | I have a website, I want to host on two diffident very far deployments. I have a rather good connection between them. But the users have a good connection only to what's near them. My Idea is to duplicate the database servers, but I need complete consistency between them, I.E. a transaction should be considered complet... | Your idea already makes no sense to start with, unless ou have TWO websites, not one (i.e. two domains). DNS will not care about where your sites are, so users will get distributed randomly. And with your setup you do NOT have the possibility to rediret them (which would require an AS and then the use of an Anycast arc... | 0 | 0 | 109 | 2011-03-24T11:23:26.177 | database_errors | serverfault.com | |
410,053 | postfix php filter | I'm trying to filter email using a php script, what I want to do is process the email into a database when it matches a set of rules. The rules are going to be made using an array of PHP strings and either use str_replace or preg_replace. I found this tutorial, however when I run this, the mailserver can only accept em... | Rather than go through all the issues I have with the article you've referenced, I'll skip to the chase. Use procmail as the delivery agent . It's a very powerful language which allows you to do all sorts of things, not least copy emails to a mailbox and pipe them through scripts (including PHP - you just read from std... | -3 | 3 | 1,224 | 2012-07-22T13:17:02.673 | infrastructure | serverfault.com | |
916,884 | pam_winbind: unknown option require_membership_of | I'm trying to configure the VSFTPD with Winbind to restrict users authenticated by Active Directory, only to those that belong to specific group. I'm using a generic conf file for the vsftpd, with few changes: [CODE] Winbind is configured and the server sussessful joined to the Domain: [CODE] In the PAM config files, I... | Did you use the Gentoo tutorial, right? I tried to use it, but didn't work to me. When the /etc/pam.d/vsftpd is created, it imports the common-account , common-auth and common-session files. If you used the pam-auth-update command, PAM works fine, but vsftpd no. If you are working with Debian, copy the content from fil... | 2 | 0 | 882 | 2018-06-15T20:29:20.167 | infrastructure | serverfault.com | |
311,104 | Can't access NTFS file after BSOD. Corruption undetectable by chkdsk? | We have several files on a Windows server that show up in directory listings but can't be accessed. I can take ownership of the files, and the ACL shows that Everyone has read/write/execute access; but I can't open the files. chkdsk finds no problems on the volume. The server is 64-bit Win 2008 R2 Standard SP1. We had ... | COM2 is a reserved keyword, quite literally for the hardware port COM2 and I'm not sure how that file got there in the first place, since Windows won't let you create a file called [CODE] . Try it now, you'll get an error message. For fun, also try creating [CODE] . According to Naming Files, Paths, and Namespaces , th... | 4 | 8 | 704 | 2011-09-13T22:49:29.163 | data_quality | serverfault.com | |
186,368 | Web application (Spring, JSF) forks, how to reuse existing code for subprojects? | my question is going to be somewhat philosophical and "architectural oriented" so bear with me. Right now we have existing Java web application built on top of Spring and JSF(facelets) with maven. These are basically our tools that limit our scope of possible solutions. Now to the point. We need to implement a fork of ... | Your problem is one of how to support a product line rather than a single product. Luckily you're not the first person to have this problem. There is a large community of people who work in this area, both industrial people and academics. If you search for "software product lines" via your favourite search engine, you'... | 2 | 1 | 865 | 2013-02-06T17:08:26.580 | api_errors | softwareengineering.stackexchange.com | |
89,153 | Apache: Don't deliver website by IP address | I have to admin a web server with Apache 2 to deliver some different websites - every site has its own domain. The server has a single IP address, say: 78.9.10.11. For every site a VirtualHost is defined like this: [CODE] It works fine, but there is a configuration problem: If someone tries to access the server via its... | [CODE] Server up your custom error page (or whatever) inside that block. | 0 | 4 | 560 | 2009-11-29T08:23:25.947 | infrastructure | serverfault.com | |
144,243 | Shares on Hyper-V Host or Guest? | I'm about to deploy a Hyper-V Server, that will have 2 local drives: 250GB for VMs, 2TB for Shares. Does Hyper-V Server (standalone, not as a role) allow you to setup Network Shares? Or will I have to setup a VM with the 2TB drive allocated to it, for setting up the Shares? If Hyper-V supports Shares, would there be a ... | Standard practice would be to give the 2TB drive to a virtual machine and create shares at that level. Performance: You should not expect any significant performance impact on the Server 2008 R2 version of Microsoft Hyper-V Server. The original Server 2008 (not R2) version of Hyper-V may noticeably limit file server pe... | 0 | 3 | 796 | 2010-05-21T20:39:00.360 | infrastructure | serverfault.com | |
810,379 | How to fix dependenies error in this case? (centos 6) | I try fix dependencies problem in this case. Can I get advise? [CODE] I want remove @remi repos package (downgrade) I want fix glibc package version error How Can I do? | try this: [CODE] [CODE] also, may not work, downgrade a version is not so easy | 0 | 0 | 367 | 2016-10-21T03:03:33.030 | infrastructure | serverfault.com | |
198,568 | Single or multiple non-clustered indexes when pairing with a composite primary key | I have a database where I am utilizing a [CODE] throughout all tables that need to be uniquely identified to a particular tenant, and due to the ordering requirements within composite keys, I have [CODE] as the first in the index list. Now comes into question an [CODE] piece where the [CODE] table contains the [CODE] ,... | This is a strange one as [CODE] is unique. There could be a case to use [UserId] alone as the PK. You will get less fragmentation compared to a composite clustered index TenantId, UserId. I get you plan to use TenantId, UserId in all queries but you don't need to. UserID will uniquely identify each user. If you have re... | 1 | 1 | 811 | 2018-02-22T14:47:19.653 | warehouse_errors | dba.stackexchange.com | |
156,092 | computed column making the select query to run slow | We are creating indexes, as per the requirements, on one server and copying all the indexes to the other servers. All servers have similar objects & schema but different resource configuration values. We have an issue where a query that joins 4 views is completing on one server but the same query is taking 4 minutes on... | "Is this a good plan to copy the indexes." Indexes exist to improve the response time of read operations. Those operations arise from the workload. If the workload differs, the indexes should differ, too. For example, it is not uncommon to have one server handle the OLTP activity and replicate the data to a second serv... | 3 | 3 | 1,172 | 2016-11-23T00:08:19.213 | database_errors | dba.stackexchange.com | |
1,061,619 | Is it possible to run gitlab as https/ssh through OS-Login IAP tunnels? | We have a gitlab server running on a GCP instance. Currently this instance has a mapped internet IP and a proper DNS name. Recently we have desired to remove this internet IP and force all access through authenticated tunnels. For other instances in the GCP environment this isn't an issue, however the engineers like to... | Using TCP forwarding makes DNS protocol useless since it uses UDP (not TCP). Also as John Hanley mentioned - this will break all SSL certificates. Note: I have not tested this with GitLab and this will break items such as SSL certificates. I think the better approach is to have a public IP address and then configure VP... | 0 | 1 | 922 | 2021-04-26T15:26:24.333 | infrastructure | serverfault.com | |
73,475 | Is it possible to copy mounted database without RMAN? | I need to make a copy of production database for development. For some reason I can't use RMAN. My question is: can I copy standby database while its in mounted state and recovery is canceled? Of course I can shut it down to make a "cold backup", but I do not want to lose time for manually copying new archive logs (and... | If you change file's permissions during copy operation, tar will throw "file changes as we read it". | 3 | 2 | 216 | 2014-08-08T07:15:27.940 | database_errors | dba.stackexchange.com | |
208,982 | Use non-printable characters in SQL Server BCP xml format file as TERMINATOR | I have a flat-text data file containing records which fields are separated by the non printable character "File Separator" (0x1c) . I am trying to use SQL Server's bcp utility to load this data into my database. Yet, when using the hex encoded value of the File Separator as TERMINATOR, I get a syntax error. I have trie... | It seems , from the documentation about BCP - Specify Field and Row Terminators (SQL Server) , that non-printable characters are not supported: Characters Supported As Terminators The bcp command, BULK INSERT statement, and the OPENROWSET bulk rowset provider support a variety of characters as field or row terminators ... | 4 | 7 | 2,271 | 2018-06-07T09:34:34.747 | database_errors | dba.stackexchange.com | |
541,400 | mysql query 2 databases with different user accounts | I have attempted to research quite a bit online before posting this question. I have 2 mysql databases on the same linux server. Each database has a different login id. I need to execute a mysql query to query both of these databases simultaneously using their specific login ids. I know its possible to do via PHP or ce... | assuming you have two instances, one on tcp/3306 and one on tcp/3307, you can accomplish what you want by implementing the logic within the code (php, python, perl, etc) so it would look like this resultsdb1 = qry(localhost,3306,"DB1","select * from table1") resultsdb2 = qry(localhost,3307,"DB2","select * from table1")... | 1 | 1 | 227 | 2013-09-24T21:17:03.283 | database_errors | serverfault.com | |
1,047,960 | SSH forwarding issue. "Permission Denied" | I just built a linux bastion, let's call it "bastion1" (IP: 66.66.66.6) on RHEL 8 to replace an older RHEL 6 bastion "bastion0" (IP: 77.77.77.7) that is doing the exact same function. The two servers are configured the same (we use salt to push configurations, etc), The IPtables setup is also fine (all necessary entrie... | I found the cause. selinux was blockingf me. I had missed the error when I trolled the audit log previously, although I don't know how I could have missed it. [CODE] All I had to do was set the "nis_enabled" boolean to enabled, and the problem is gone. :) [CODE] | 1 | 1 | 4,329 | 2020-12-29T18:36:02.683 | data_quality | serverfault.com | |
1,112,413 | Failed to program FILTER chain: iptables failed | OS: Ubuntu Server edition (headless) 20.04 LTS. Attempting to ge a makemkv container running: https://hub.docker.com/r/jlesage/makemkv docker-compose.yml file: [CODE] Port 5800 is open in iptables: [CODE] Command: [CODE] Result: [CODE] Any advice? | I deleted the container, and the related network and then ran this: [CODE] Then I was able to run the following command and all worked: [CODE] | 0 | 1 | 1,620 | 2022-10-06T18:31:20.023 | pipeline_ops | serverfault.com | |
1,044 | Do we have a good answer for using lower wattage bulbs in fixtures? | "Can I use X watt CFL/LED/Halogen bulbs in a Y rated fixture?" seems to be a fairly popular question lately. Do we currently have a good answer for this question, that we can close new questions as a duplicate of? Examples Can I use a 60 watt Halogen bulb instead of a 100 watt incandescent bulb? Can I put 42W CFL bulbs... | All of these seem to be related to safety, not functionality and practicality. I would love to see more questions about the effective Lumens ratio between LED, CFL, Halogen, and incandescent, where certain areas of use are more or less effective, i.e., high ceilings, outdoor landscape usage. | discussion | 1 | 2 | 39 | 2015-05-06T11:50:17.147 | data_quality | diy.meta.stackexchange.com |
117,285 | Instant synchronization of multiple SQL servers | First of all, I am sorry if this is a duplicate. I was unable to find anyone who adressed this particular question, or I might have failed to realize it as I read it. Most likely I used the wrong search-phrases, as I am not all that familiar with the terminology. We have 3 servers: A . SQL-server B . Alarm system C . W... | I may be understanding this slightly wrong so I apologise if I am. If you have two databases that you need to be identical and are on 2014 then use the AlwaysOn High Availability Group. Since you're data centres are at separate locations use the Async mode This will mean the database is kept completely up to date (all ... | 7 | 3 | 4,259 | 2015-10-07T14:10:36.883 | data_quality | dba.stackexchange.com | |
694,149 | Where on the filesystem are cookbooks stored on a chef server | I am playing around with orchestration and set mysef the challenge to: build a chef server build loads of nodes after that that are configured by the chef server The issue is that the chef server will need to be built with all the relevant cookbooks that I need to configure the rest of the environment. Since it seems a... | Chef-Server use a build-in S3 API compatible object store implemented in Erlang, called Bookshelf. The default storage path should be /var/opt/opscode/bookshelf/data Chef-Server uses chef cookbooks to configure itself. The default config is available in the following attribute file: https://github.com/chef/chef-server/... | 4 | 3 | 4,155 | 2015-05-24T22:14:44.247 | pipeline_ops | serverfault.com | |
45,213 | Apache Strange Error Message 'Broken pipe' | Always getting "(32)Broken pipe: core_output_filter: writing data to the network" message on Apache error.log. In apache.conf setted up EnableSendfile Off, EnableMMAP Off but its still same. OS: Debian etch Apache ver: Apache/2.2.3 Enabled apache modules: ctions alias auth_basic authn_file authz_default authz_groupfile... | Since you've already turned off [CODE] and [CODE] , it looks like you've done your homework. The general cause of this error is that Apache got SIGPIPE, which happens when Apache tries to write to a socket that the other end has closed (described here , look at the last post). The post suggests that the user on the far... | 2 | 6 | 15,285 | 2009-07-24T15:18:05.877 | infrastructure | serverfault.com | |
479,749 | How to configure a mail server on Debian Squeeze? | How can I configure a mail server on Debian Squeeze with Postfix or Exim4 without the need to relay on another smtp server? And is it possible to add multiple email addresses for the same user? (Independant mailbox, not aliases) I'm all new to mail server, Debian come with exim4, I can set it up to use tls etc... but I... | For Exim: /etc/exim4/update-exim4.conf.conf dc_smarthost='smtp.example.org' Then run [CODE] | -1 | 2 | 2,933 | 2013-02-17T19:55:33.140 | infrastructure | serverfault.com | |
1,114,694 | How to access the contents of VMDK file in the ESXi host? | We have a number of computers based on the old HP ProLiant Gen1 blades, and we are going to get rid of that. It is impossible to reinstall the software which is licensed and support requirement are quite tough, we decided to virtualize is's system as is. We know that software will still work; it's Oracle based, and in ... | I would not write the VMDK directly. You can just boot into the VM and run whatever you want. Clone the OS with a disk cloning tool of your choice (simple dd, acronis, Macrium Reflect). Create the VM on the new VMWare host Boot the VM with a live cd / acronis boot cd ...etc Restore the OS | 0 | 0 | 505 | 2022-11-03T05:07:11.810 | database_errors | serverfault.com | |
71,356 | SQL or NoSQL for structured clinical data | I'm designing a database for a primary health center, the idea We basically have a Patient with many Encounters, also the Encounters have to be entered from different Users (Health Professionals). Patient info is unlikely to change, the Encounter is the "important" part of this database, already persisted data it's not... | As usual in similar cases, I would strongly recommend that you look at Open Source solutions - well before the design phase. EVEN if you are doing something truly radical, one can always learn by standing on the shoulders of giants. I have worked as a student on the OpenEHR project, so this interests me. It's been a wh... | 0 | 1 | 491 | 2014-07-13T02:20:42.790 | database_errors | dba.stackexchange.com | |
678,632 | How can i fix corrupted file system in linux | I shifted my docker container to new server and i think in the process my file system got corrupted. This is the output i get [CODE] is there any way to fix it | It seems that you are trying to run [CODE] on a live system. Do not. Instead, you should schedule fsck to run on next reboot. That is done by adding an empty file, [CODE] . Also, the error message you got is related to this instead of indicating the filesystem is corrupted. There's two options. You can either use [CODE... | 2 | 4 | 4,739 | 2015-03-27T02:35:39.133 | pipeline_ops | serverfault.com | |
861,200 | OpenVPN for Macosx got .ovpn from Windows user but need own key and crt files? | Ok, I don't know if this is something I need to setup on my computer or if this is something that the client needs to give me. I believe a .key file is private, however, I seem to be having issues with this. Basically, I need to access a Microsoft Remote Desktop Connection, but before I can do this I need to run OpenVP... | Your [CODE] file should contain [CODE] certificates, openvpn [CODE] and [CODE] . All this information should be received from openvpn provider. | 0 | 2 | 480 | 2017-07-10T03:25:46.200 | api_errors | serverfault.com | |
437,292 | Do db calls in constructors lead to more DRY code? | It recently came to my attention that its best practice to avoid database calls in constructors. I feel like this means you end up repeating unnecessary code, thus the code is less DRY? For example, this approach means the list of available courses is available in the Semester object and the db call exists once. [CODE]... | Some good answers here already, but it seems none of them addresses your confusion with the DRY principle, so let me do this. Just because you don't put [CODE] inside the constructor of a class does not mean your code necessarily has to duplicate this statement. You can still find a location in your codebase where you ... | 2 | 5 | 454 | 2022-03-10T21:53:30.177 | api_errors | softwareengineering.stackexchange.com | |
183,521 | The column 'Date Offset' in table 'Date' has invalid bindings specified | I'm trying to deploy a tabular model to a server using the "Analysis Services Deployment Wizard". When attempting to deploy,I get the below error. The JSON DDL request failed with the following error: Failed to execute XMLA. Error returned: 'The column 'Date Offset' in table 'Date' has invalid bindings specified. The c... | The problem in this case was that I was trying to replace an existing column also named 'Date Offset' - this was not a calculated column, but taken from the source table. Resolution was to do the deployment in 2 phases, first remove the old column, then deploy again to add the new calculated column. | 3 | 4 | 11,325 | 2017-08-15T10:21:43.927 | pipeline_ops | dba.stackexchange.com | |
658,409 | Checking if a TCP port is closed with monit | I would like to check that a defined port on a host is closed, for example the 8080 port on host www.example.com . I tried something like: [CODE] but I think I cannot use that syntax because the not keyword is not allowed there: [CODE] Is there any way to do that without writing an external script? | Use [CODE] [CODE] | 0 | 0 | 3,914 | 2015-01-09T14:36:13.537 | infrastructure | serverfault.com | |
686,558 | How should I check an existing system value with Ansible? | I have an Ansible task where I set the version of Ruby used globally on my system. [CODE] The problem is that this task always has the status of [CODE] . I want it to show [CODE] only if it actually has changed, otherwise [CODE] . This is the best solution I could come up with: [CODE] This is going to be a pattern that... | You could combine it into one task: [CODE] | 0 | 4 | 76 | 2015-04-29T19:24:15.397 | pipeline_ops | serverfault.com | |
268,347 | Strange Firewall Issue | We have put a web server in place on a network, it was recently moved from a testing environment in another subnet to a different office. Now that we have the server in place, we can access it via its internal IP but cannot reach it on the assigned external IP. I am not sure what to do as normally, once you allow port ... | So your problem appears to be that you are having difficulty determining where the problem is, that is, whether the problem is on the new web server that has moved from a testing environment to another subnet. Part of the confusion is with terminology. You need to clarify, if only for your own sanity between the networ... | 1 | 1 | 152 | 2011-05-10T20:26:55.640 | infrastructure | serverfault.com | |
698,491 | I/O and RAM limitations are important for Hadoop performance. But is disk speed related to I/O? | Hortonworks says this : "Most often performance of a Hadoop cluster will not be constrained by disk speed – I/O and RAM limitations will be more important." * How is disk speed not related to I/O limitations? | The comment is technically correct, but it's nuanced. You have to understand what your MapReduce jobs are doing. While disk rotational speed is important, it's arguably less important than network speed, both off system and off switch, especially in the case where you generate large amounts of input data into your redu... | 0 | 2 | 1,560 | 2015-06-12T05:47:05.690 | hadoop_errors | serverfault.com | |
620,645 | sendmail not working on ubuntu | Our websites aren't sending automated emails because the php_mail() functions does not work and it appears to be because sendmail wont work. I have tried using various command lines but no email sends. I also have qmail installed. The php.ini shows that it is using sendmail. There is nothing in the logs: [CODE] When I ... | You're using rpm and centos packages on an Ubuntu machine. This is not going to work at all. On top of that you're using plesk, which is sort-of considered malware around here. | 0 | 1 | 358 | 2014-08-15T10:10:02.173 | infrastructure | serverfault.com | |
1,093,561 | Can NOT bind host port 14433 to container port 433 using localhost, but https works using container IP (for example 172.21.0.2) | When I do [CODE] from host, it works. The website is loaded from the container. When I do [CODE] from host, it does NOT work. When I do [CODE] from host, it does NOT work. Error: Unable to make secure connection to remote host. The container is running on a bridge network, launched by docker-compose. The IP of the cont... | Why are there these *? [CODE] Try it with [CODE] And please show the output of [CODE] . And for Apache as a Proxy, even though i hear nginx is the preferred nowadays you could use a Config like this. [CODE] | 0 | 0 | 830 | 2022-02-13T22:33:48.957 | api_errors | serverfault.com | |
895,794 | HTTP client leaking connections when keep-alive is enabled | I have set up an HTTP server for an embedded system to communicate with a known non-malicious remote client application. I have had to disable keep-alive support on my server, as the remote client application always requests keep-alive but never reuses the connection. Instead, the client opens a new connection for each... | While not nice, the client is free to close the connection and use another one. Of course it is silly from it to request a keep-alive and then not use it, so you can target it as a bug, but it is still something that can happen. It may also be related to a proxy in the path. See RFC 7230 and note the "MAY": A client MA... | 0 | 0 | 2,724 | 2018-02-05T23:16:57.887 | infrastructure | serverfault.com | |
24,288 | How to test cache in Android/IOS Mobile application? | We have a mobile application(Native), few days back we have implemented cache in the application. Now i am not sure how to test it, i can see it storing and taking memory in the settings section. But is this cache being used again by my application, how to test it? | In Android Use DDMS at android developer studio or eclipse (you have to download the ADT plugin for this if you are with eclipse). Inside the DDMS you can monitor cache memory, GC, Threads and more things of an android application. And you can also dump the memory of the android application and you can do a inspection/... | 0 | 1 | 1,251 | 2016-12-12T12:49:34.770 | data_quality | sqa.stackexchange.com | |
151,919 | Grant account write access to specific attributes on Active Directory User object | I am trying to allow an account to update very specific attributes on all User objects. I am setting this security on the "User" object. When I add the account on the security tab, go to advanced, edit the accounts permissions, and start going through the list of attributes I am only able to find a few, like First Name... | While @sysdmin1138 answer was correct it's worth mentioning that changing the scope is not the only reason why things are missing from the view. There are things that invisible by default. Some objects such as physicalDeliveryOfficeName are hidden from view so you can't delegate them easily. A lot of other attributes a... | 6 | 6 | 40,535 | 2010-06-16T22:24:54.390 | infrastructure | serverfault.com | |
14,789 | Can you explain this execution plan? | I was researching something else when I came across this thing. I was generating test tables with some data in it and running different queries to find out how different ways to write queries affects execution plan. Here is the script that I used to generate random test data: [CODE] Now, given this data, I invoked the ... | The constant scans each produce a single in-memory row with no columns. The top compute scalar outputs a single row with 3 columns [CODE] The bottom compute scalar outputs a single row with 3 columns [CODE] The concatenation operator Unions these 2 rows together and outputs the 3 columns but they are now renamed [CODE]... | 20 | 29 | 11,141 | 2012-03-12T02:29:32.127 | database_errors | dba.stackexchange.com | |
677,475 | Relay Access Denied - Postfix/Dovecot | Edit: Please, please read the answer before this whole thing, as it'll save you tons of time. Answering my issue was as simple as changing a setting with Outlook, it might be for you, as well. It had nothing to do with any of the config or log files, just the error. Alrighty... So here's what's going on. I can sign in ... | Your Postfix config specifies localhost (127.0.0.1) in [CODE] , which is then permitted in [CODE] . This is why SquirrelMail can relay: it's sending from localhost. Since you have also specified [CODE] in the relay restrictions, it would appear that Outlook is not authenticating with SASL (SMTP Auth). | 0 | 1 | 486 | 2015-03-23T02:46:28.683 | infrastructure | serverfault.com | |
18,069 | How to get non-deleted messages for one user_id if the same user_id appears in two tables at same time? | I'm trying to get non-deleted (deleted = 0) messages for one user_id if the same user_id appears in two tables at same time, but something is wrong because I am not getting the correct or expected data. This post is related to this other question (from me too). So basically I have 3 tables: [CODE] : stores user_id and ... | The problem is query #4 needs a small adjustment. Now the query is: [CODE] | 2 | 1 | 346 | 2012-05-17T13:54:10.343 | warehouse_errors | dba.stackexchange.com | |
589,673 | Changing the default gateway, multiple NICs | I have Ubuntu 13.10 (kernel 3.11.0-19-generic). On startup, the network configurations are as follows: [CODE] The gateway to the internet is 10.1.0.1. So I manually execute the following: [CODE] This is how I manage to get to the internet. But instead of doing this everytime manually, how do I make this permanent ? The... | I think the mistake here, is that you've got multiple default gateways configured in your config file. It doesn't work that way - it's a default, in that any traffic which doesn't have a known route gets sent there for passing on (in the expectation that it'll know, or have it's own default). But it's not tied to a par... | 7 | 4 | 57,385 | 2014-04-17T09:21:10.513 | data_quality | serverfault.com | |
641,261 | Setup Postfix+Dovecot reading from database | I'm trying to setup Postfix and Dovecot , the latter with virtual users stored in a MySQL database, following this guide (but here I recap everything as there are some "bugs" in the guide I fixed following the comments). Preamble: I have [CODE] , [CODE] , [CODE] and [CODE] installed from Ubuntu repositories. Let's star... | Looks like, your [CODE] and [CODE] was swapped. Try to rename them [CODE] Don't forget to run [CODE] . | 4 | 3 | 1,174 | 2014-10-31T23:21:25.600 | database_errors | serverfault.com | |
403,942 | How to explicitly inform users of the class that calling a method will invalidate the object it was called upon? | Consider this snippet: [CODE] As you can see, once [CODE] "transforms" into [CODE] , its [CODE] becomes [CODE] , which renders the entire object invalid. The problem's that users of the class have no way of telling that's going to happen. One solution would be to declare a friend [CODE] function [CODE] and make [CODE] ... | As mentioned by amon in a comment: You can require this to be an rvalue reference by adding [CODE] to the function signature: [CODE] This way, the following code fails to compile: [CODE] However, the following does compile: [CODE] Per convention, many objects that were moved from are in some "special" state, so C++ dev... | 6 | 9 | 525 | 2020-01-17T14:19:29.550 | api_errors | softwareengineering.stackexchange.com | |
79,077 | Safe to Use an Amazon EBS Volume While Snapshot in Progress? | Is it safe to use an EBS volumne while a snapshot is being created? I've currently got a 100Gb EBS volume mounted. I am in the process of snapshotting it. Goodness it's slow!! It's going to end up taking more than 45 minutes to snapshot. My question : Is the EBS volume already copied and just being saved somewhere? Or,... | You're safe to use the volume once you have triggered the snapshot, even if it's still in a pending state according to AWS - see this post . If you're taking a snapshot for the first time, it probably will take a while as it has to make a full copy to the region-wide S3 bucket, but remember, it's incremental after the ... | 42 | 41 | 26,318 | 2009-10-28T12:39:52.687 | infrastructure | serverfault.com | |
565,354 | My KVM machine can't get the network | I'm setting up a virtualization server for my company based on Fedora 19 and KVM. Our goal is to being able to convert and run a bunch of VirtualBox VMs. So I setup my F19 server, and created a br0 network bridge with bridge-utils. I first tried with VirtualBox, and no trouble, my testing VM (Ubuntu Server 10.04) works... | You need to look in the VM itself, probably regenerate the network configuration. The MAC address of the NIC changed when you switched to KVM and the network driver is also different, so you need to configure your new NIC in the VM instead of expecting it to just appear. Start with checking the udev persistent-net rule... | 1 | 1 | 2,955 | 2014-01-06T15:22:29.073 | infrastructure | serverfault.com | |
820,242 | VPNC dropping traffic | I have a Linux VPS (Ubuntu Server 16.04 LTS) connected to my institution's VPN (which is Cisco-based). However, and even though the connection is correctly established, all traffic is dropped. I am using [CODE] from the command line and all parameters have been checked and are correct. I have tried to connect using [CO... | I was also in the same boat (using Debian v8.8 and vpnc v5.3r550); all was well with the connect (other than group name now being case sensitive), but once tunneled, I lost all traffic in and out. Then I noted that "sudo route -n" (while tunneled) had "dev tun0" entries for my DNS servers and my larger network (where r... | 1 | 1 | 291 | 2016-12-12T15:25:00.647 | infrastructure | serverfault.com | |
96,405 | PostgreSQL pg_upgrade --link mode performance issue after upgrade | Trying to do PostgreSQL upgrade from 9.0 to 9.3. I'm using [CODE] with the [CODE] mode since the downtime is very minimal compared to other options like [CODE] and [CODE] without using [CODE] . After upgrading and executing an SQL-statement to check execution-time. It is taking nearly 30 minutes the 1st time and for th... | After a [CODE] all your optimizer statistics are gone. You need to [CODE] all of your tables. This is true regardless of whether or not you use [CODE] . | 1 | 5 | 3,573 | 2015-03-27T04:14:45.560 | hadoop_errors | dba.stackexchange.com | |
456,301 | How to check that all ZFS snapshots within a pool are without holds before destroying that pool | Question Already I can check each snapshot of a filesystem individually, manually. I would prefer to check all at once (all with a single command or script). Please: can that be done with a script? The answer should be good for file systems with a space within the name. Background From the man page for zfs(8): [CODE] …... | Not sure about how this looked back in 2012 but now you can check the [CODE] property: [CODE] To list all holds in all pools: [CODE] | 7 | 9 | 5,388 | 2012-12-08T09:13:07.183 | infrastructure | serverfault.com | |
246,864 | What happens when there is no available physical memory left for SQL Server? | While googling I found some conflicting information. Some sites state that when there is no physical memory left for data, then SQL Server moves the already existing data into TEMPDB (see: SQL Server: Demystifying TempDb and recommendations ). But other sites state that, when there is not enough physical memory left, t... | when there is no physical memory left for data, then SQL Server moves the already existing data into TEMPDB The article you linked to is misleading at best, and incorrect in some places. I think the author was attempting to over-simplify some complicated things, and in doing so went a little too far. SQL Server doesn't... | 17 | 29 | 3,708 | 2019-09-03T12:27:33.530 | database_errors | dba.stackexchange.com | |
252,609 | apache permission problem when trying to access regular files | -edit2- wtf, now its looking for /etc/apache2/htdocs/file.ext. WTF!!!! I want static.mysite.com/file.ext to access /var/www/mysite/data/public/file.ext so i wrote the below in apache. I get a 403 error. My file is 2750. When i go through www.mysite.com/file.ext i can see it (this is going through mod_mono/xsp) but not ... | The [CODE] directive is for e.g. applying access-control to a given directory; it doesn't specify the document root. Try something like: [CODE] | 1 | 1 | 2,386 | 2011-03-28T08:33:45.897 | api_errors | serverfault.com | |
419,008 | What is an affordable way to communicate real-time data between players in a game? | I have been building a card game web app with firebase. Because firestore charges by number of reads/writes, I have only been updating the opponents of your plays when you place a card , so other players just see a card you moved pop into its new position -- one write, one read. I momentarily tested updating the other ... | It sounds like you have a fundamental architectural problem here. You describe using a database to communicate between different players' sessions. In a comment, you say that everything must be stored in a database because it's the only way to persist the game state if the user closes the tab and opens a new one. It so... | 0 | 2 | 151 | 2020-11-15T22:57:54.943 | api_errors | softwareengineering.stackexchange.com | |
694,844 | How to mount an USB drive under VMWare ESXi 5.5? | I want to mount an USB drive to VMWare ESXi 5.5 host. The USB drive is visible with lsusb : [CODE] But not under [CODE] . Under [CODE] I see many entries, but dunno if one of those is my USB disk: [CODE] [CODE] says: [CODE] I tried dozens of commands, including: [CODE] [CODE] [CODE] [CODE] And I have read approximately... | Why are you trying to do this? I have a whole bunch of operating system ISOs on an external drive that I'd like to use on my home ESXi 6 lab, but I can't mount them directly. Here's what I did: Install Debian in a virtual machine Pass the drive you'd like to access to the Debian VM Mount the USB drive(s) in the VM, (fo... | 7 | 1 | 52,343 | 2015-05-27T21:06:06.073 | infrastructure | serverfault.com | |
115,455 | How to create scalable & side-effect free integration tests? | In my current project, I am having a hard time coming up with a good solution to create scalable integration tests that have no side effects. A little clarification on the side effect free property: it is mostly about the database; there shouldn't be any changes in the database after the tests are completed (state shou... | Look into using Hypersonic, or another in-memory DB for unit testing. Not only will the tests execute faster, but side-effects aren't relevant. (Rolling back the transactions after each test also makes it possible to run many tests on the same instance) This will also force you to create data mockups, which is a good t... | 14 | 6 | 1,963 | 2011-10-21T00:07:47.190 | api_errors | softwareengineering.stackexchange.com | |
856,638 | IIS Error after importing from IIS 7 to IIS 10 | I have attempted to migrate sites from an old IIS 7 server onto a new IIS 10 server by using the following appcmd's: Commands ran to export from IIS 7 [CODE] Commands ran to import to IIS 10 [CODE] This ran without errors, and the new IIS 10 listed all of the old sites. The configuration files were also altered to refl... | In this instance it turned out to be that he URL rewriting module for IIS was not installed. Annoyingly the error message produced for if a configuration file contains an element that is not installed is simply that it cannot read the config file, rather than which tag was the cause. | 1 | 2 | 4,232 | 2017-06-19T14:34:21.113 | infrastructure | serverfault.com | |
358,235 | How do I get internal hosts to use a VPN connection set up on a FreeBSD router? | Question in short: How do I get traffic from a host on an internal network, using NAT behind a router, to use a VPN connection set up on the router? I have a FreeBSD 9 router with 4 network interfaces. One external connected to my ISP and the others connected to internal subnets. The internal interfaces use NAT (by pf)... | The key question here is, "Did you try the VPN yet?" Everything seems fine. If your FreeBSD box can already route to the remote side of the VPN, your job is almost done. That means that the connection is valid and it is aware of the route to the remote network. The host behind the router shouldn't require any changes a... | 3 | 1 | 3,988 | 2012-02-09T01:29:26.947 | infrastructure | serverfault.com | |
372,133 | configure Monit application on Linux Centos error message | I'm trying to configure Monit to monitor my pidfile. I had no problem except for one. this is what I configured: [CODE] this is the process I have when I start chat with /etc/init.d/chat: [CODE] this is what I see in the monit log file: when I start the process: [CODE] when I stop the process: [CODE] any suggestions? t... | Try something like this: [CODE] The IP has to be changed of course, as well as the port. | 1 | 1 | 449 | 2012-03-21T19:32:19.933 | infrastructure | serverfault.com | |
543,904 | Windows Server 2008 R2 - RDSH - Registry bloat with Samsung Universal Print Driver | While running multiple Windows Server 2008 R2 RDSH farms we are experiencing an issue where the RDSH servers all are having their Registry bloated to the maximum value 2048MB. Using Sysinternals Registry Usage (ru.exe) we were able to determine over 1000MB of the registry being used up by Samsung Universal Printer rela... | I had the exact same issue and can confirm it is fixed in the new version of Samsung Universal Print Driver 2 (2.50.5) . I was also running 2.50.2 and the key in question was using 275MB. Simply uninstalling the old version and installing the new version on the server (I did not update any client drivers) reduced the s... | 12 | 1 | 5,108 | 2013-10-04T19:44:52.587 | api_errors | serverfault.com | |
460,356 | Trying to add second drive on server with 2 sata hard drives | I've been using some of the guides on the net and have a strange problem. I've got 4 partitions setup on the first drive sda1, sda2, sda3 and sda4 and I can see a sdb1, sdb2 and sdb3 there, which I'm guessing is from what was previously on the drive. My problem is all the guides I see on setting up a new hard drive tal... | Type this command: [CODE] This will run the [CODE] program and tell it to re-create the missing [CODE] device files. | 2 | 1 | 261 | 2012-12-23T03:31:42.460 | infrastructure | serverfault.com | |
635,031 | NRPE (Winrpe) Powershell Command - Unable to read output in Nagios | I'm trying to run an Powershell script from NRPE.cfg and get the output in Nagios. When i run the script on the local (Windows) server, everything is just fine. But when i put it in the NRPE.cfg en try to get the output in Nagios, i get an Unable to Read Output error. Searched the internet but can't find the solution, ... | I would first try to reduce the complexity of the script to let's say... echo "Hello World" and see if that works. More than that, NRPE is usually ran by the user which is called nrpe (unless specified otherwise) so when you run your checks, run them from the nrpe user rather than from root. Also make sure that "dont_b... | 3 | 0 | 1,558 | 2014-10-10T10:43:11.247 | database_errors | serverfault.com | |
355,066 | Using postfix for sneakemail style setup | I'm trying to setup postfix on my own server to be my own personal sneakemail service. For those of you unfamiliar, sneakemail allows you to generate email addresses that are more or less disposable, so when you sign up for a service, you provide your sneakemail address and it gets forwarded to your normal account. If ... | It depends on how you intend to set up the disposable email addresses. Broadly speaking, there are 2 methods: use a specific prefix or postfix for known users and use recipient_delimiter to parse these use a web-tool to generate random addresses on-the-fly and link them for a period of time to a provided external addre... | 0 | 1 | 462 | 2012-01-30T15:59:34.140 | infrastructure | serverfault.com | |
26,740 | Building a disk image without root privileges | I am attempting to setup nightly builds of a Linux OS on my webserver. Well, the problem is I need to generate a floppy disk image without being root. Really, I don't need to fully generate it. I just need to update the image. As I have a FFS image with boot manager and such, and just need to add my kernel file to the ... | I can offer two (non-ideal) options: Create a 'placeholder' file inside your disk image and splice the kernel into the image (ick) If you don't need to use FFS, you could try FAT. mtools is very handy for this sort of thing. Example: [CODE] | 0 | 1 | 1,726 | 2009-06-16T17:16:19.547 | infrastructure | serverfault.com | |
290,124 | Expect timeout, in Bash scripting | How do I add timeout for "expect" in the following script? I want to set it as 120 seconds. [CODE] | The default timeout for [CODE] is 10 seconds according to its manpage. To change it to 120 seconds, before [CODE] , add the line [CODE] to make this [CODE] | 16 | 15 | 75,762 | 2011-07-13T22:39:59.213 | infrastructure | serverfault.com | |
163,523 | setting up VLANs on interfaces | I have a Debain mt-daapd server sharing songs over the network. Our network has a lot of different subnets and VLANS. The DAAP protocol isn't routeable. The server I have has two NICs installed, configured as follows: [CODE] What I would like to have happen is this: eth0 (on the server VLAN) should stay the same, eth1 ... | Install vlan package, and set this in the /et/network/interfaces [CODE] You should enable ip_forward to allow traffic among them | 1 | 1 | 400 | 2010-07-23T18:18:27.533 | infrastructure | serverfault.com | |
604,033 | What security mechanism prevents write access to certain folders in Windows? | There are certain folders in Windows 2012 R2\8.1 where the contents are not writable - one example is Program Files\WindowsApps (which stores apps downloaded from the Windows Store). Obviously this is by design - to prevent people from modifying code that should not be end user accessible - but what specific mechanism ... | This is a new security policy that MS has put in place to disallow the modification of core files for certain applications. Think of it as Apple's sandboxing on iOS. It is there for the following: Stop files from being modified (changing settings / options / values) DRM (part of the windows store uses DRM and this is t... | 5 | 4 | 1,400 | 2014-06-10T10:04:18.123 | infrastructure | serverfault.com | |
918,942 | OpenVPN using TAP with a dummy interface | I have a dream compute instance that only has one network adapter and it has a public IP address. I am attempting to run OpenVPN with the TAP interface bridged to a dummy interface in order to access the instance from home/work/etc securely. Also as an added benefit I want all connected clients to be able to talk to ea... | When ICMP works but not TCP it almost always comes down to a firewall issue. Verify that your server's iptables are in order. | 0 | 0 | 1,482 | 2018-06-30T10:11:23.143 | api_errors | serverfault.com | |
66,109 | Solaris: how to get started? And for what uses? | I'm interested in Solaris OS but I know the best way to learn a new OS - slowly and carefully integrate it into the production environment. The tasks we usually run: virtualization, databases (Oracle), java applications & java web services, other web services (apache/nginx). All systems are loaded pretty high. Are ther... | Buy some books and read the manuals. Solaris & Linux administration aren't dramatically different from one another. In general, the advantages of Solaris are: Stable. The upside of the OSS model in Linux is a rapid pace of development. That can be a downside too. Great tools. ZFS, DTrace, etc. If you run on a Sun stack... | 1 | 5 | 275 | 2009-09-17T00:38:47.887 | database_errors | serverfault.com | |
888,909 | Fedora 26 Kernel panic with the last two kernels | Until recently I was using Fedora 26 with kernel [CODE] without problems. But the last two kernel upgrades ( [CODE] and [CODE] ) are giving me kernel panic. This is the only thing I was able to get before the screen froze: [CODE] Suggestions? | The kernel crashed because the [CODE] process is terminating which isn't supposed to happen and would leave kernel data structures in a corrupt state. That means the problem isn't necessarily caused by the kernel itself. Try booting with an older kernel version that has been working in the past. What to do next depends... | 1 | 1 | 235 | 2017-12-19T18:55:46.557 | infrastructure | serverfault.com | |
187,364 | Need help with LIKE operator and square brackets | Sample data in a table column, data type [CODE] . This data is collected by extended event trace capturing database calls generated by Entity Framework. [CODE] I want to use [CODE] operator to find all rows with text [CODE] . [CODE] Why it does not work? | There is no need to escape the closing bracket. If there is no opening bracket SQL Server will not consider the closing bracket as part of a placeholder. So you should be fine escaping only the opening bracket, either using brackets or by defining an escape character (which I personally find more readable in this case)... | 4 | 9 | 9,268 | 2017-10-01T03:09:37.483 | warehouse_errors | dba.stackexchange.com | |
142,653 | MySQL .ibd file is too big | I got a memory issue while in linux. When i checked memory allocation by using df -h i found a path /dev/sda1 and it is used 100%. When i dig more i found that /var/lib/mysql file ate almost all memory. Finally i encountered with one table with the extention .ibd has almost 20GB. When i hit sudo du -a | sort -nr | head... | It appears that [CODE] files (like the file [CODE] ) by default never shrink , they can only grow. They are created if you have innodb_file_per_table configuration set (which is the default on ubuntu). If that is not set then you'll see the same behavior from the [CODE] file which is basically all tables rolled into on... | 14 | 6 | 34,242 | 2016-06-30T09:30:48.230 | database_errors | dba.stackexchange.com | |
770,019 | Does Root CA need to be online? | I am trying to setup an IPv6-only Exchange Server 2013, running on Server 2012 R2 Datacenter. This is a 1-machine-setup in a VirtualBox for testing purposes. Everything is running ok so far. I.e. I can access the Exchange-OWA and send and receive emails to IPv6-enabled mail-providers. However, I still cannot seem to ge... | As for your original question, the issue lies in the fact that your client had no way of identifying & validating the leaf certificate. For any machine to do the same, it must have the Public Cert of Root CA in its trust-store. Also, You did not need to copy the leaf certificate to the client. As for the question you h... | 0 | 1 | 380 | 2016-04-13T12:18:09.710 | infrastructure | serverfault.com | |
790,977 | This is a mongo 3.2.8, on centos7. Issue is how to run mongo as mongod user, not root | I have been logging in as root , and running mongo as [CODE] I am trying to run mongod as the "mongod" user, so that it matches the automation agents of mongod cloud manager. Right now, mongo is running under "root". I stopped it, and tried [CODE] and then restarted it. It is still running under "root" however. How do ... | Thanks for the help @Michael Hampton , I ended doing a [CODE] when in the [CODE] directory. Then I started mongo with the [CODE] command instead of the using [CODE] directly. It is now running under the correct user, mongod. | 1 | 0 | 391 | 2016-07-20T16:56:04.223 | pipeline_ops | serverfault.com | |
1,009,847 | Nginx url Rewrite (help) | Anyone tell me how to rewrite URL in Nginx [CODE] to [CODE] second our download.php file in the root public_html folder. I have used this rule on .htaccess [CODE] its working fine but I try many on Nginx rule like this I try this code in Nginx but not working [CODE] its show me this error [CODE] our file location like ... | NGINX rewrite rules always use absolute URI Paths, so in order to rewrite your second URL into the first one (which is what the provided Apache2 rule does), you just need to add a couple of [CODE] : [CODE] The NC flag is translated into the PCRE mode modifier [CODE] (cf. this question ), while the QSA flag is the defau... | 0 | 0 | 305 | 2020-03-28T16:00:36.547 | infrastructure | serverfault.com | |
34,275 | Handling exceptions in stored procedures called using insert-exec blocks | I have a stored procedure that is called in an insert-exec block: [CODE] How can I handle exceptions generated in the stored procedure and still continue processing? The following code illustrates the problem. What I want to do is return 0 or -1 depending on the success or failure of the internal [CODE] call: [CODE] My... | The error in the [CODE] part of the [CODE] statement is leaving your transaction in a doomed state. If you [CODE] out [CODE] in the [CODE] block it is set to [CODE] . Not all errors will set the state to this. The following check constraint error goes through to the catch block and the [CODE] succeeds. [CODE] Adding th... | 11 | 14 | 31,564 | 2013-02-06T21:04:35.337 | database_errors | dba.stackexchange.com | |
640,555 | Spoofing DNS for another domain within a DMZ | I am setting up a DMZ disconnected from our corporate LAN. I've moved DNS services for the DMZ hosts into the DMZ with a stripped down set of zone info containing only what the DMZ hosts need to know. Some connections need to come back into the LAN from the DMZ. I know it's not ideal but it's still an improvement over ... | That sounds fairly straightforward. Create a zone on your bind server for [CODE] and add the 6 IPs as [CODE] records. If you can get the cooperation of the other admin, they could create an [CODE] zone and allow you to zone-transfer from their authoritative server (so that you don't have to keep your copy of the zone m... | 1 | 2 | 305 | 2014-10-29T14:56:17.260 | infrastructure | serverfault.com | |
255,899 | Why EXPLAIN doesn't show heap fetches for index scan | I tried to compare potential perfomance difference between covering b-tree index and simple b-tree index and was confused with [CODE] output. Test environment [CODE] Test case for simple b-tree index [CODE] Test run results: [CODE] Test case for covering b-tree index [CODE] Test run results Before vacuum: [CODE] After ... | Index scans fetch from the heap for every single row. That is what makes it not be an index-only scan. It only makes sense to display the count for index-only scans, as that is the only case in which it is informative. The line "Buffers:" line may be more informative in general (for a realistic case where you have more... | 6 | 7 | 2,002 | 2019-12-18T18:38:17.447 | warehouse_errors | dba.stackexchange.com | |
869,066 | Django with Apache and mod_wsgi: no system log unless setting Debug = True | I'm using apache web server and mod_wsgi to transfer request to django. [CODE] I'm using this apache site to declare django app: [CODE] It works great, but if an exception is raised, it shows an error 500 but there is nothing in my [CODE] . If I modify my settings to set [CODE] , I can see error in my web browser, but ... | In your settings.py file, you will need to add the following to the LOGGING configuration: [CODE] You probably should set the level to ERROR or WARN in production. | 6 | 2 | 10,972 | 2017-08-17T03:59:05.560 | api_errors | serverfault.com | |
443,222 | How do I apply multiple subnets to a server with one NIC? | I am trying to route multiple IPs through one physical NIC on my dedicated server for use with Proxmox KVM VMs. I have a dedicated server which is currently running Debian 4.4.5-8 with 3 available ip addresses for use, which will be displayed as 176.xxx.xxx.196 (main), 176.xxx.xxx.198 (on same subnet as main) and 5.xxx... | This was completely fixed by re-installation of the guest vm. The provider for the dedicated server gave mac addresses to be assigned to each guest which would then assign it an ip address via dhcp, this solved the issue. | 4 | 2 | 5,260 | 2012-10-29T00:38:35.150 | infrastructure | serverfault.com | |
81,624 | How Do Computers Work? | This is almost embarrassing ask...I have a degree in Computer Science (and a second one in progress). I've worked as a full-time .NET Developer for nearly five years. I generally seem competent at what I do. But I Don't Know How Computers Work! Please, bare with me for a second. A quick Google of 'How a Computer Works'... | I will start from the lowest level that might be relevant (I can start from even lower level, but they are probably way too irrelevant), starting from Atom, to Electricity, to Transistors, to Logic Gates, to Integrated Circuits (Chip/CPU), and finishes at Assembly (I'd assume you are familiar with the higher levels). I... | 59 | 139 | 36,176 | 2011-06-05T04:35:58.733 | api_errors | softwareengineering.stackexchange.com | |
646,709 | Linux QEMU issue with bridge network interface | I am trying to setup a bridge interface for one of my QEMU running on CentOS 7. I have below scripts for TAP interface running [CODE] Now before running QEMU machine I run this script so that we can have bridged interface up and running. I am able to ping this interface from other host. Below is the output [CODE] Below... | Finally I was able to solve this issue through OpenVPN tunnel mechanism. So for reference I am putting the solution. This could be one of it as there could be more. Install Epel RPM and then install openvpn package as [CODE] . Now modify the sample bridge-start script (can be found in [CODE] ) as below: [CODE] Similiar... | 3 | 1 | 2,902 | 2014-11-24T17:53:33.410 | infrastructure | serverfault.com | |
123,129 | How can I solve this kind of problem about predicting the sequence of once in life events? | So let's imagine I have a dataset of children. For each of them a have a bunch of characteristics (generation, gender, race, class, urban/rural, religion, bmi, number of siblings etc..) and plus the age (in months) when they did for the first the following events Learn how to ride a bike learn how to swim, starting mid... | If you have plenty of training data to work with, it is worthwhile experimenting with various approaches. On the other hand, if you're dealing with just a few hundreds to a couple of thousands of rows, you might need to settle for a more generic solution. Having said that, as a sixth approach, which might actually be m... | 0 | 1 | 38 | 2023-08-07T17:09:18.597 | data_quality | datascience.stackexchange.com | |
332,302 | Numerous "truncate table dbo.MSreplication_monitordata" commands logged by distribution database | In doing a SQL Server audit, it was discovered that after hours last week, the distribution database started logging numerous "truncate table dbo.MSreplication_monitordata" commands. I can't seem to find which process(es) would initiate this command. Worse yet, the process seems to be tied to my login. In addition, dur... | This is normal and to be expected when you open the Replication Monitor. Please refer to the screenshot below: So basically, you left the Replication Monitor open. Once you close the Replication Monitor, the command will no longer execute in the background. | 0 | 0 | 35 | 2023-10-18T16:34:26.007 | database_errors | dba.stackexchange.com | |
204,106 | sp_BlitzCache throws Table DML warning on temp tables | I have been using sp_BlitzCache to troubleshoot some performance issues on a client's SQL Server 2012 instance. I am running: [CODE] And one of the procedures high up on the dummy board is being flagged with a "Table DML" warning. The only thing that I can see going on is the creation, use and dropping of a temp table ... | Thanks for using [CODE] ! No, don't worry about that one. It's a more general check that sometimes snags temp tables. As an aside, make sure you're running the most recent version , if you're not already. You should also use the GitHub repository I linked to to file issues. Thanks! | 1 | 3 | 60 | 2018-04-16T17:24:19.407 | database_errors | dba.stackexchange.com | |
167,017 | git hook and ssh on server | I have a git repo on a server. I would like to run a update hook on this when a push is done. I am unable to get git revlist or take any information from the user because i can't enable tty. I have written the hook in python. I would like it so I can retrieve commit history from my local repo and use that information i... | have you tried running this in your post-receive hook script? [CODE] are your trying to do something like Using Git to manage a web site ? | 1 | 0 | 392 | 2010-08-04T14:21:49.983 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.