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 |
|---|---|---|---|---|---|---|---|---|---|---|
82,234 | SRS / Sender Rewriting when forwarding mail through postfix | Is there any way to perform SRS, or something similar using Postfix? When I get a mail from user@example.org, I forward it (via a catchall) to something@gmail.com, but GMail is checking SPF, and seeing that my server is not authorized to send mail on behalf of example.org. I'd like to rewrite the sender to something@my... | Here are the steps to install postsrsd from Timo Röhling. These instructions seem to work for many Unix flavors including Ubuntu 14.04. [CODE] | 17 | 8 | 19,119 | 2009-11-06T15:41:24.163 | infrastructure | serverfault.com | |
412,381 | What's the use of a wide-column NoSQL db such as Cassandra over a K-V store or a document based db? | Say we're making a simple photo app. This link says that we can store the image in S3 and now have a URL. Great. Next, we need a mapping of a UserID to the many images they've created. For this, it recommends Cassandra where the key would be UserID and the value would be the list of PhotoIDs stored in different columns... | Cassandra right now, is not a wide column store - it was before CQL that brought the fixed schema, etc. You can still model necessary functionality using just a number of the columns in the table. The main thing that you need to remember about Cassandra, is that all data modeling for it is starting with queries in mind... | 1 | 5 | 613 | 2020-07-05T19:15:08.627 | database_errors | softwareengineering.stackexchange.com | |
239,239 | Mapped network drives using GPO falsely showing disconnected | Network drives are mapped using GPO, however some of the drives are showing up as "Disconnected Network Drive X:" even though they are connected. The icon shows them as connected and if you click on the drive it connects to the share. Its just the wording of the drive. it causes a lot of problems becuase users report t... | Fixes for this very annoying issue: 1) Change the autodisconnect timeout HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters (svr) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Service\lanmanworkstation\parameters (workstation) http://support.microsoft.com/kb/297684 2) If you're running symantec... | 2 | 2 | 2,506 | 2011-02-23T16:05:49.550 | infrastructure | serverfault.com | |
276,573 | How to select rows with a particular rank per partition? | I want to pick the row with the highest value in a column based on partitioning on another column. The problem is to pick the highest-earning employees from each department, click here for the complete problem. The tables are: Employee table: [CODE] The Department table: [CODE] The objective is to pick employees who ha... | Window functions have some limitation for example you cannot use them in [CODE] . You can only use window functions in the [CODE] list and [CODE] clauses of a query. Window functions are listed in the [CODE] list (between the two keywords [CODE] and [CODE] ) at the same place where usual functions, expressions and colu... | 1 | 1 | 1,583 | 2020-10-06T03:07:52.007 | warehouse_errors | dba.stackexchange.com | |
290,198 | Is there a way to tell optimizer not to use index for reads? | Of course I can just drop and recreate or disable and rebuild it. But for large tables it can take time, and for critical tables it can cause issues. Is there any "more sophisticated" way to tell sql to keep index data(+ handle updates\inserts) without using it? So if needed it can be "enabled" immediately? | Other than using query hints to force different indexes, or using Query Store to force plans that don't use the index, no. There's no way to "hide" an enabled index from the query optimizer. | 0 | 3 | 72 | 2021-04-21T12:52:35.887 | warehouse_errors | dba.stackexchange.com | |
223,407 | How to copy all Database from Source to Destination server along with login credentials? | My scenario is like this: Task to accomplish: Migrate all Source server databases approx 100 to Destination server along with sql login credentials. I tried with copy database wizard. It only worked at my local instances. When I did same task into my network server then following error raised: Date 11/26/2018 11:47:16 ... | You can probably achieve your goal with a few lines of Powershell code using the cmdlets provided by dbatools , which is a free PowerShell module with over 400 SQL Server best practice, administration, development and migration commands included . Migrating application databases with dbatools provides useful examples f... | 0 | 0 | 548 | 2018-11-26T06:22:09.647 | api_errors | dba.stackexchange.com | |
155,453 | Simplifying/Improving inner join (self joining a table) | I have table which has the following schema: [CODE] And I have constructed a query that joins several answer rows into one, uses some of them, (age in this case) as filters: [CODE] The output is following: [CODE] I'm wondering if the same query can be accomplished in a more efficient way in terms of query time, or if i... | When you need to retrieve rather many attributes from an EAV structure, you can try pivoting it with grouping & conditional aggregation as an alternative to multiple self-joins: [CODE] That avoids multiple table scans and, as a bonus, makes your query shorter. But how much the former will affect the performance can ult... | 3 | 4 | 1,017 | 2016-11-16T12:28:17.237 | database_errors | dba.stackexchange.com | |
284,316 | Query to compute unspecified values in "Other" category | The problem that we are trying to solve is explained herein using a simple (and deliberately sub-normalized) table. The table is defined as follows: [CODE] The table is populated as follows: [CODE] In this table we have accounted for 58% of Alice's expenses and 53% of Bob's expenses. Implied therein is that 42% of Alic... | The following query would accomplish what you're looking for: [CODE] | 1 | 1 | 35 | 2021-01-30T01:35:20.993 | warehouse_errors | dba.stackexchange.com | |
558,631 | Unable to access Jenkins server | I'm trying to install Jenkins on my web server, which is an Ubuntu 13.10 server running on an Amazon EC2 instance. I've restarted Jenkins using [CODE] When I check my processes with [CODE] I can see multiple items running with the following descriptions: [CODE] The server doesn't want to allow me to access this install... | EDIT 2 If running Jenkins on an Amazon EC2 instance, try setting [CODE] to [CODE] . You may not be able to bind the public interface IP directly. EDIT 1 Check [CODE] instead if you installed directly from the [CODE] package. It appears Jenkins is listening on localhost ( [CODE] ). In this configuration, Jenkins is not ... | 10 | 7 | 54,409 | 2013-12-02T10:20:14.617 | pipeline_ops | serverfault.com | |
285,673 | collectd plugins installation? | I'm starting to configure collectd, but the main problem I got is that when I load the Network plugin it says next: Could not find plugin network. Found a configuration for the `network' plugin, but the plugin isn't loaded or didn't register a configuration callback. No idea why, should I install every single plugin? I... | One important thing to note is that there is a HUGE difference between collectd 4 and collectd 5 .. Most distributions ship with collectd4, but the project site suggests it is outdated, and my encounters with version4 reveals much inconsistencies. I will suggest that you do all you can to ensure you install collectd5 (... | 1 | 1 | 5,858 | 2011-06-30T08:34:14.027 | infrastructure | serverfault.com | |
77,610 | When does Continuous Integration add value? | Possible Duplicate: How many developers before continuous integration becomes effective? When does continuous integration (such as CruiseControl ) add value to a project? Do factors such as Number of Unit Tests How often changes are made Branch development Team Size make a difference in the value added by continuous in... | I think that it adds value even in a single person starting project. The earlier you set it up, the easier it is, and the less time you will have to spend during more crunch times worrying or wishing you had it. Even from the start it will make sure that all unit tests (even if there is one) will get run as often as co... | 12 | 20 | 1,000 | 2011-05-19T17:52:52.167 | data_quality | softwareengineering.stackexchange.com | |
424,329 | Comunication from Server to Client + Client LAN | I'm having some trouble with some network setup. I've tried OpenVPN, SocialVPN, Hamachi, still it is not working. This is my setup: Server A: NIC 1 with internet public address, NIC 2 to LAN Client B PC: NIC 1 (192.168.10.2) connects to router 192.168.10.1 Client B Device: 192.168.10.3 (Configured via software, can't d... | Solved! Client B shares NIC 1 with OpenVPN and it's ok. Also, IPforwarding must be enabled at registry (Win7). No need to mess around OpenVPN bridged mode. | 1 | 0 | 84 | 2012-09-04T21:39:28.917 | infrastructure | serverfault.com | |
246,207 | "Normal" time for query execution | I have a table in a MariaDB database with ~700,000,000 rows. I have indexed some columns of it. My question is whether my DB behaves "normaly" or not - because I have not had previous experience with such an amount of data. Take a look at these queries and please let me know if you think this is normal response time: [... | It would be helpful to have [CODE] , but I will make some guesses... You have [CODE] , and that index is smaller than the buffer_pool? You have been doing a bunch of queries; these were not the first? (Hence some things are cached.) You did not use [CODE] to avoid the Query cache? How much RAM do you have? [CODE] is ra... | 2 | 3 | 472 | 2019-08-25T12:15:37.573 | database_errors | dba.stackexchange.com | |
230,093 | Will there a difference in performance when a server (httpd or mysql) by building it from sources vs installing it using yum/apt repositories? | I have a web app on the LAMP architecture. Right now all the servers are installed from the binaries available in the platform repositories (apt / yum). However, I think it would be best to install the servers by building them from the source and then installing them. Will the second method have any significant advanta... | For e. g. http://dev.mysql.com/doc/refman/5.0/en/compile-and-link-options.html to quote: If you link dynamically (without -static), the result is 13% slower on Linux. Note that you still can use a dynamically linked MySQL library for your client applications. It is the server that is most critical for performance. So, ... | 6 | 1 | 107 | 2011-02-02T06:11:51.570 | database_errors | serverfault.com | |
925,041 | Failed to set Up SSL on Tomcat 9 on AWS EC2 | I am following this guide to setup ssl on my Tomcat 9 hosted on AWS EC2 (Ubuntu 16.04.5 LTS). Version: java-8-oracle , apache-tomcat-9.0.10 Key created at [CODE] : [CODE] Convert key to PKCS12 : [CODE] Modify [CODE] : [CODE] Enable firewall : [CODE] Result: Using Chrome I have no problem connecting to [CODE] (i'll see ... | Im going to answer my own question. The reason i'm getting [CODE] is the AWS EC2 firewall blocking all incoming https port (443). Edit inbound rules of AWS EC2 instance security group to allow incoming port 443, that will fix the problem. | -3 | 0 | 1,334 | 2018-08-06T03:11:24.950 | database_errors | serverfault.com | |
90,421 | Advisable number of foreign keys in a single table | I was wondering, keeping performance and optimizations in mind, while designing the database, is there any advisable number of foreign keys you should keep in a single table? At present, few of my tables are using 4 foreign keys. Would like to know, if number of foreign keys in a single table causes some performance or... | Yes, ultimately FKs can affect performance. They will certainly affect insert/delete performance (more lookups), but you have the advantage of guaranteed data integrity. You should be more than happy to pay a high price for data integrity - a high performance database with inconsistent data is worse than useless - cert... | 0 | 0 | 50 | 2015-01-28T16:41:28.893 | database_errors | dba.stackexchange.com | |
906,429 | How can an NFS volume be mounted "fake writable"? | We have a situation where an enormous set of template files (several tens of gigabytes) is required by multiple pieces of software, from multiple vendors. The applications want to open these template files the same way they opens any project file, i.e. read-write. It's a burden on the network infrastructure to have use... | NetApp deduplication According to NetApp documentation , deduplication is a silent way to accomplish exactly what I need. There would simply be one "library" per user, and each user would get access to their personal "copy". ONTAP would then look after the bookkeeping. A master copy would be kept out of sight; and this... | 3 | 0 | 470 | 2018-04-06T17:26:40.813 | hadoop_errors | serverfault.com | |
530,376 | Which Database (SQL/NoSQL) is the best fit? | I have 2 nodes, one gateway and one worker. Data must be passed from gateway to worker (without direct connection). I would like to store a Key into a database identified with an ID and a Time To Live of 30 seconds. The protocol is very simple : [CODE] The insert, retrieve and delete must be really fast, and handle som... | May I suggest using Memcached . What's good with it it's so dumb that you don't care about configuring it. | 0 | 0 | 162 | 2013-08-12T11:33:34.947 | infrastructure | serverfault.com | |
18,360 | What permission is needed to set Database read-only? | I am dbowner of a database which I want to set read-only. (through sql management studio). When I try that I get a permission error (297) Which role is needed to perform that action? | Form Query Analyzer or Management Studio, you can issue the following command: [CODE] As mentioned here , you need the alter database rights and you must set the database to single mode. Changing the state of a database or filegroup to READ_ONLY or READ_WRITE requires exclusive access to the database. [CODE] | 5 | 11 | 2,550 | 2012-05-24T12:40:25.570 | warehouse_errors | dba.stackexchange.com | |
255,582 | Creating a web app that authenticates users from two different databases | I am in a bit of an awkward programming situation, and it will help me a lot to get your input in this situation. I am building a web app which expects to authenticate users from another, separate application (through API calls), and also authenticate users from it's own database. Essentially, there are two separate us... | There are two ways in which two distinct users sharing the same name (XYZ) may come to exist in both apps. First situation: User XYZ already exists in App2. Another user also named XYZ, but not the same person, tries to register in App1 but gets authenticated in App2 first, because somehow the password happens to be th... | 4 | 3 | 144 | 2014-09-06T20:26:22.560 | api_errors | softwareengineering.stackexchange.com | |
412,033 | Rsync backups: checksums don’t match | I am a little confused by this although [CODE] does not show a difference This rsync is to backup the directory [CODE] but it does not seems to give me the same checksums when I do a tar on the destination directory [CODE] Am I missing something? | There's all sorts of metadata that goes into a tarball that can cause md5sum not to match. I've written this sort of verification script before, and I recall having to stuff around a bit to get rid of all the things that cause verification failures. | 1 | 2 | 445 | 2012-07-28T03:55:26.167 | database_errors | serverfault.com | |
114,668 | UNION query question | My query is: [CODE] and my output is : [CODE] The problem is that i have 2 categories of BRAND and I want to have just 1. Like this : [CODE] Can someone help me with an ideea? | Sum after you did the union (hope DB2 does it this way): [CODE] Just a question. Why do you need the [CODE] and [CODE] (since they are both NULL )? | 0 | 6 | 115 | 2015-09-10T11:15:12.653 | warehouse_errors | dba.stackexchange.com | |
243,954 | Can we update multiple record with join of two query | Can we run Update query to update multiple records with join ? Below query is working fine when we running with one employee number - [CODE] Now requirement is want to run this query with all users who exist with where filter of 2 tables [CODE] i.e. [CODE] it’s taking too much time more than 10 mins but not completed a... | Try [CODE] instead, e.g. [CODE] | 0 | 0 | 59 | 2019-07-27T17:04:36.807 | database_errors | dba.stackexchange.com | |
355,449 | Windows server email issue | I am not very good with Windows stuff, spend most of my life with Cisco routers, I have situation where i am the only one implementing Active Directory on small network of 20 computers. The staff use Outlook on those computers Mac and PC. Some of the systems are share. I need to configure and email client outlook expre... | What are you using for email now if Exchange isn't already deployed? You can use Exchange which will, while it pains me, integrate much nicer with AD than most other solutions. If you're setting everything up from scratch you can get SBS with Exchange and AD functionality and work with that. From there, you can either ... | 0 | 1 | 130 | 2012-01-31T15:20:57.473 | infrastructure | serverfault.com | |
1,015,064 | Bootable one-to-one backup clone of Windows Server 2019? | The ability to make backup clones of an OS link Linux and macOS (eg, Carbon Copy Cloner , Super Duper , ChronoSync , etc.) offers wonderful peace of mind. For years I've struggled with this seeming to not be available for Windows / Windows Server. Recently I inquired of a few different companies as to whether they offe... | It appears that this may be the answer to the question when in context of a GPT drive: https://www.wintips.org/how-to-mirror-boot-hard-drive-on-windows-10-legacy-or-uefi/#case-b I believe parts 1 & 2 may be able to be circumvented via a drive clone process and then part 3 modified. I'll return and report my findings on... | 1 | 1 | 1,142 | 2020-04-30T20:49:01.097 | database_errors | serverfault.com | |
1,046,490 | AWS lamba start_instances gives pending response but console still shows stopped | I have a lambda function that I have setup to start an instance: [CODE] The response looks good, showing it going to pending from stopped: [CODE] However, when I look at the console, it still shows as stopped and never starts. It doesnt seem like it failed to start: [CODE] Execution Based Policy: [CODE] It seems like i... | Your EBS volume is encrypted using a KMS key, and the IAM role your Lambda function is using does not have permission to decrypt using that KMS key. In this case, the EC2 instance starts, but then immediately stops. So there are two possible solutions. Solution 1: Add your IAM role as a "user" of your KMS key. This req... | 1 | 2 | 1,513 | 2020-12-16T19:16:44.603 | infrastructure | serverfault.com | |
954,928 | Converting Ubuntu 18.04 from interfaces to netplan for network configuration | An old employee at my place of work set up a Ubuntu 18.04 server instance to use the /etc/network/interfaces file for network configuration. This has been causing some issues and I would like to revert back to using the /etc/netplan/*.yaml file approach instead. I did some research on converting from netplan to interfa... | So it seems that I was able to comment out the contents of my /etc/network/interfaces file, configure my .yaml file with the correct network information, and then perform the following command: [CODE] After doing so it pulled the network config from my .yaml file and everything appears to be functioning correctly. Is t... | 2 | 2 | 3,922 | 2019-02-20T16:17:51.447 | infrastructure | serverfault.com | |
430,685 | IIS8 Asp.net State service remote connection failure | Recently we upgrade our web server to windows server 2012 with IIS8. We have this issue when users try to connect the asp.net state service to this web server remotely. It always popup Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that ... | Found a way to fix it. Run Regedit find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection Set it to 1 instead of 0. Restart asp.net state service. It is so weird, I can't find anywhere to set this through interface. And I don't think I need to do this in IIS7 / 7.5. | 0 | 3 | 4,587 | 2012-09-19T17:20:47.863 | infrastructure | serverfault.com | |
264,700 | Paid software includes MIT licensed library, does that put my app under MIT too? | If I include MIT licensed source code in my program, am I obliged to provide my whole software under MIT? The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. How is "substantial" determined? The wording is not very specific. | Short answer: No, MIT licenses do not obligate you to release your code as MIT. Long answer: Let's take a look at the MIT license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction... | 16 | 16 | 19,940 | 2014-12-05T19:41:55.300 | api_errors | softwareengineering.stackexchange.com | |
443,941 | Should serialization and deserialization be "atomic" transactions? | I am wondering if serialization and deserialization of classes should always be treated as an "atomic transaction?" What I mean is, if an error were to occur during the process of serializing or deserializing a member of an object, should the whole serialization/deserialization of the object be considered to have faile... | Meyer's DbC design by contract has something to say about this. Suppose that one of the bytes gets lost during transmission so that the "deserializer" is fed [just a prefix of the bytestream before EOF truncation]. We are constructing an [CODE] pixel object. That class makes certain guarantees: values shall always be i... | 17 | 38 | 6,653 | 2023-02-13T17:13:17.097 | api_errors | softwareengineering.stackexchange.com | |
287,656 | DCDIAG CrossRefValidation test fails because of the dnsRoot value of ForestDnsZones | A while ago I promoted our DNS server (running 2003) from being a member server to a domain controller so I could enable AD integrated DNS. Often, I am seeing error 9906 (Event ID 4512) pop up in the logs. The body of the message error is: [CODE] Based on what I've read so far people seem to indicate that it is an issu... | The solution for me was to delete the two crossRef objects for the ForestDNSZones and DomainDNSZones using ADSIEdit under the Configuration partition. Then I restarted the Netlogon and the DNS server and they were recreated. As far as modifying the dnsRoot value...that did not work. I could not replace the old value wi... | 4 | 1 | 2,190 | 2011-07-06T20:19:42.900 | data_quality | serverfault.com | |
96,006 | Processors: E5-4620 v2 vs E5-2620 v3 | We're debating between: R820 - E5-4620 v2 - 2.6GHz - 8 cores, 20MB Cache, 1333MHz max memory speed - max of 768GB ram - 8 core R730 - E5-2620 v3 - 2.4GHz - 6 cores, 15MB Cache, 1866MHz max memory speed - max of 768GB ram - 6 core I understand that we'd see better performance in the R820 for parallel processes, but woul... | The way to gauge hardware performance is to be take a look at your current workload. So I would begin by quantifying that: Take a look at Brent Ozar's perf tuning stuff Identify your bottlenecks (are you seeing bad parallelization, CPU chugging away without finishing, memory, storage) Determine what differences there w... | 1 | 3 | 450 | 2015-03-23T20:34:31.790 | database_errors | dba.stackexchange.com | |
645,934 | Random 403 Forbidden error (Apache 2.4) | My Apache 2.4 (CentOS 7) server hosts multiple websites. Sometimes I get a 403 Forbidden (You don't have permission to access file X on this server) error when accessing any of the websites files (mostly php scripts). Hitting F5 for a few seconds will resolve it and load the page normally. The files have correct permis... | I was having this exact problem, I am not sure if the below reason is what always causes this error(specifically in the described in the question way) but this was the case for me, so I just wanted to share my thoughts. Debian 7 wheezy (7.7), apache 2.2.2 I was making a feature when the user should change the messages'... | 4 | 9 | 11,906 | 2014-11-20T20:41:49.043 | api_errors | serverfault.com | |
598,036 | Protecting my Bind dns server from slow kaminsky-style cache poisoning attacks | Dan Kaminsky described how DNS servers could be poisoned with spoofed DNS responses [1]. As I understand it, the problem was that Kaminsky found a way to account for most other sources of randomness in a DNS query such that the main barrier to an attacker was in guessing the DNS query id (16 bits of entropy) when gener... | Most TTLs are less than 30 days, right? Clear your cache every month. There is no way to stop someone from hacking into your servers. Security is just putting enough hurdles in the way that 99.9% of people give up. You could also try putting an IPS in front of your DNS, like Snort, and create rules to alert you when so... | 0 | 1 | 830 | 2014-05-23T09:36:10.420 | pipeline_ops | serverfault.com | |
604,653 | Problems configuring logstash for email output | I'm trying to configure logstash to send email alerts and log output in elasticsearch / kibana. I have the logs successfully syncing via rsyslog, but I get the following error when I run /opt/logstash-1.4.1/bin/logstash agent -f /opt/logstash-1.4.1/logstash.conf --configtest Error: Expected one of #, {, ,, ] at line 23... | Do you not have to parse out [CODE] first? I don't think the 'input' field does any sort of filtering at all, so you might need to start with [CODE] http://logstash.net/docs/1.4.1/filters/grok You could try instead perhaps: [CODE] Which'll keyword match your [CODE] field. That'll at least tell you if that is what's hap... | 1 | 1 | 6,250 | 2014-06-12T13:56:29.627 | database_errors | serverfault.com | |
410,171 | Apache ReverseProxy different paths | I would like to proxy specific URL paths to different internal ports: [CODE] I have the following in my apache conf file: [CODE] The problem is that if I access example.com/transmission, it hits localhost:9091 fine, and then gets forwarded to example.com/transmission/web which produces a 'file not found' error. For som... | Use the [CODE] directive instead. | 1 | 2 | 402 | 2012-07-23T03:39:06.487 | infrastructure | serverfault.com | |
498,203 | Cisco HSRP with spanning-tree slow failover | I'm having an issue with networking that I can't wrap my head around since I'm not a strong networking guy to get this. From our provider we have 2 drops via HSRP that go into our cisco 2960 switches that are stacked. So each switch has a drop. From there we have two Astaro devices behind the switches that handle all t... | Based on your edits and comments, I don't think that this is spanning-tree delay that you're seeing. The downtime that you're describing (2 minutes) is really too long to be explained by STP, and I kind of doubt that the Linux servers are running STP with the switches. You also basically are doing single-switch spannin... | 1 | 2 | 2,061 | 2013-04-10T21:46:48.217 | database_errors | serverfault.com | |
278,860 | Why are my HyperV VM's randomly losing connectivity? | I have a strange intermittent connectivity problem happening about once every two weeks. First my configuration: I am running a HyperV failover cluster with two physical hosts (node01 and node02). The hosts are both running Windows Server 2008 R2 HyperV server (the free one) with SP1. On those hosts I am running two VM... | This turned out to be a hardware issue -- I isolated the problem to a Netgear GSM7224v2 managed switch, replaced it with a D-Link DGS-1024D, and everything has been working fine ever since. As a "lesson learned," in this case I probably spent 99% of my diagnostic effort troubleshooting software settings for what turned... | 11 | 2 | 79,108 | 2011-06-09T17:48:56.353 | database_errors | serverfault.com | |
654,475 | Postfix configure a gateway to outbound emails | I have a server configured with Postfix in my business office. I have another server at a hosting provider that I want to send all my outbound mail through. How can I do this. The only way I know its mounting all the filesystem with NFS. | You'll use the [CODE] option in main.cf in your office email server. E.g. [CODE] You probably also want to use [CODE] and [CODE] when logging in to your VPS relayhost. Open relays are bad, mmkay? | 0 | 4 | 781 | 2014-12-23T19:39:02.810 | infrastructure | serverfault.com | |
141,311 | My SQL Server Upgrade from 5.6.12 to 5.6.22 | I have a MySQL Server 5.6.12. I have this server as a windows service. When i upgraded this, i did the following. I stopped the service I copied 5.6.22 server folder, removed the data folder. From this folder(without Data Folder), I pasted into existing 5.6.12 Server Folder. I can see the server upgraded to 5.6.22. But... | That's a very uncommon way to upgrade. Instead, leave the data folder in place. backup the data folder. install the new version run [CODE] (No, I can't explain what went wrong with what you did.) | 0 | 0 | 59 | 2016-06-15T15:56:01.067 | database_errors | dba.stackexchange.com | |
203,341 | Bank transaction table design | I’m making a little site which may, if I’m lucky, hold a little of data with regards banking transactions. This is version 2 of a previous learning project. I will have a table with transactions. Based on the type (payment, deposit or transfer) the value will be negative or positive. Best cases scenario, I have 10,000 ... | The typical design here is to have a Transaction table and an Account table The Account table has the current balance, as of the last transaction that has "posted". A modern "online" system will post transactions immediately, but older systems would capture transactions online, but run "batch" to post the transactions ... | 0 | 1 | 4,266 | 2018-04-08T13:20:39.927 | database_errors | dba.stackexchange.com | |
405,442 | Firefox ESR: Permissions | I have recently setup a development 2008 R2 Remote Desktop Host Server to test Firefox ESR 10.0.3. I can set the options to not check for updates and that works correctly. However a standard user seems to be able to go to Help>about and the application auto updates. I am slightly concerned about this being an Enterpris... | Firefox installs a service that can do updates even if the program was installed to the %programfiles% directory, and the currently logged in user has no admin rights and no right to modify files inside %programfiles%. You can uninstall that updater service, the rest will still work fine. Also you can lock preferences ... | 2 | 0 | 321 | 2012-07-06T16:08:08.380 | infrastructure | serverfault.com | |
41,130 | Network Service account accessing a folder share | I have a simple scenario. There's an application on ServerA that runs under the built-in Network Service account. It needs to read and write files on a folder share on ServerB. What permissions do I need to set on the folder share on ServerB? I can get it to work by opening the security dialog of the share, adding a ne... | The "Share Permissions" can be "Everyone / Full Control"-- only the NTFS permissions really matter. (Cue religious arguments from people who have an unhealthy attachment to "Share Permissions" here...) In the NTFS permissions on the folder on ServerB you could get by with either "DOMAIN\ServerA - Modify" or "DOMAIN\Ser... | 33 | 29 | 112,654 | 2009-07-15T16:53:13.940 | infrastructure | serverfault.com | |
431,817 | How to switch between Linux's virtual consoles? | I am using vSphere and would like to change to a virtual console in the guest OS. The problem is that when I press CTRL - ALT - F1 my desktop (Ubuntu) changes virtual console and not the guest OS in vSphere. Does anyone know to do this? | Type Alt - F1 , Alt - F2 , etc. to obtain the other virtual consoles. Edit: Oh, you're accessing VMWare from a non-Windows machine? I would just disable virtual console switching on your Ubuntu system. For Xorg, it'll be something like the following in the Xorg config file: [CODE] | 4 | 4 | 4,022 | 2012-09-25T15:35:53.400 | infrastructure | serverfault.com | |
26,642 | When a same performance script is re executed using performance testing tool then why response time change by noticeable amount ? | Like in first run time was around 20 secs and after re execution response time value slashed to around 2 secs | General thoughts: Instability in performance tests can be caused both by the system environment or environment where the test tool is run. If the usage of the system is stable, probably you would have to checkout the execution environment. Beside that, you could have found a outlier. You should consider doing a more pr... | 0 | 1 | 27 | 2017-04-06T05:18:54.037 | data_quality | sqa.stackexchange.com | |
66,039 | Getting a BSOD after upgrading to MOSS SP2 | Recently we updated a SharePoint test server to MOSS SP2. After doing so, a series of errors appeared in the error log, along with a random blue screen of death. After the BSOD, the following screen appears: [tried attaching but cannot because I'm new] The error log entries vary pretty greatly. The most recent Event ID... | As a note: It seems the cause of the issue was Daemon Tools. It was causing confusion with the VMTools and throwing a video driver related BSOD. | 5 | 1 | 338 | 2009-09-16T19:42:13.220 | infrastructure | serverfault.com | |
1,052,255 | Why does my MySQL server suddenly not start. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) | Suddenly my MySQL server will not start. running [CODE] in the cli will return [CODE] I was running a process that probably killed the database and/or put it under excessive load. The same process caused a 504 error on the live database (allegedly) and I ran the same process on my localhost when it seem to freeze. Even... | These are the most important messages: 2021-02-04T04:50:23.646339Z 0 [ERROR] InnoDB: Write to file ./ibtmp1failed at offset 11534336, 1048576 bytes should have been written, only 1032192 were written. Operating system error number 28. Check that your OS and file system support files of this size. Check also that the di... | 0 | 2 | 1,184 | 2021-02-03T13:39:08.433 | database_errors | serverfault.com | |
843,482 | How do I work around the fact that the nginx alias directive isn't allowed in named location blocks? | My goal is to cache assets with query strings with a certain policy and assets that don't have query strings with another. Unfortunately, nginx ignores query strings in location blocks, so I'm stuck using the [CODE] / [CODE] strategy helpfully suggested here : [CODE] However, my error logs show me that in the above con... | I found an easier solution to my problem thanks to this thread. My goal was really to conditionally add caching-related headers based on whether or not there was a query string, and using [CODE] to set strings turned out to be the easiest way to achieve that. Here's my final configuration: [CODE] | 0 | 1 | 3,457 | 2017-04-09T02:17:15.383 | infrastructure | serverfault.com | |
290,899 | auto set value of a specific column after 24 hours and to delete record after one week: Oracle SQL | Here is my table: [CODE] How can I auto update isExpired column? I mean when record is inserted its value should auto set to [CODE] and when 24 Hours passed the [CODE] should be updated as [CODE] [CODE] is timestamp of inserted record. The record that has passed one week should auto be deleted from the table Thanks | For the "isexpired" column, don't store it as a literal column: use a view to determine that status dynamically. That way status is accurate to the second, at runtime. [CODE] For deletion of older records, use a scheduled job to run something like this: [CODE] | 1 | 0 | 868 | 2021-05-03T08:09:50.747 | database_errors | dba.stackexchange.com | |
31,059 | Unable to start Appium server | I'm using Appium for mobile automation,as soon as i click on start, within no time the server gets ended, it displays below error : Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --platform-name Android --platform-version 22 --automation-n... | Unfortunately there are multiple reasons why the appium server may not start. So it is really hard to give just one right answer for the issue you are facing. But there are some things you could try to troubleshoot the issue. OPTION 1 - Are you having the same problem from the Appium GUI and also the command line? Reme... | 0 | 1 | 4,360 | 2017-12-15T05:48:37.333 | data_quality | sqa.stackexchange.com | |
489,532 | How to "restart" particular network interface on RHEL? | In RHEL, instead of using [CODE] command, how can i restart a particular network interface, lets say "eth1", with only one command. "Only one command" because that is the only interface where my [CODE] is working on also. So if i'm about to use: [CODE] and then [CODE] , i will never be able to hit the [CODE] command as... | You can use: [CODE] As a single command. The && just runs one command, then the other if the first command succeeds . If you are required to use sudo make sure you use it before each command: [CODE] As long as your interface is configured to have the neccessary IP and route to match the current configuration, your ssh ... | 20 | 32 | 121,843 | 2013-03-20T06:04:46.140 | infrastructure | serverfault.com | |
356,318 | How do serverless architectures manage database connections? | The main advantage of serverless architecture is said to be that such programs do not need a dedicated server to run continuously. Then are invoked on a request and stop on exiting the function. This means that a serverless program will have to be quick to start, for being responsive. How does then it handles time cons... | Since a serverless app keeps no state between runs, it can't maintain a database connection pool. Serverless apps really face the same constraints as 90's CGI scripts. In general, a permanent server process will be able to outperform a process-per-request or container-per-request architecture because the server does in... | 10 | 9 | 1,488 | 2017-08-26T11:56:12.537 | api_errors | softwareengineering.stackexchange.com | |
372,969 | Designing a graph-like drawing application | I am dealing with a drawing app that allow the user to draw a set of Components (which are like the graph vertices) and they can be wired (like the graph edges) on each other to simulate how their connection propagate and affect each component based on their input, like a function on each node that takes all inputs, ap... | You could very well let your [CODE] and your [CODE] both be a [CODE] . This works very well as long as there is only a single canvas to draw. It could even work with several views and canvas, as long as there is a simple transformation formula between them (e.g. scaling). The main inconvenience of such a design is howe... | 1 | 2 | 96 | 2018-06-21T18:06:54.697 | data_quality | softwareengineering.stackexchange.com | |
872,521 | systemd oneshot server to run every x days | I was hoping to run a command every 85 days using systemd. I have created a timer and a service for the command, but I can't get the timer started. I am hoping to get the command to run every 85, not at boot and to run even if the server is restarted during the 85 day period. /etc/systemd/system/my.service [CODE] /etc/... | The issue was the script I was trying to run didn't have a bang at the start. I diagnosed it by: looking at the status of the time Andril mentioned above [CODE] Looking at the list of timers (to get more stats about it) [CODE] Tried running the service to activate the service (as the timer is based on the last time the... | 2 | 0 | 2,176 | 2017-09-07T14:21:06.453 | infrastructure | serverfault.com | |
323,285 | SSL common names for second-level-domains | While configuring SSL and certificates in my Apache server I had some troubles with second-level-domains like [CODE] If I ask for a certificate for a [CODE] domain it will be issued for [CODE] and [CODE] . If i ask for a certificate for [CODE] it will only work for [CODE] but not for [CODE] (issued by RapidSSL) Is ther... | Yes. For the uninitiated lets break this down into little pieces: When you request a standard x509 Certificate with Server Authentication Extension (commonly called an SSL Cert) you must provide a Subject Name (SN). This SN must match what the user types in for the certificate to be used without a warning message. Tech... | 1 | 4 | 252 | 2011-10-20T14:12:14.783 | infrastructure | serverfault.com | |
735,934 | Testing 3 conditions in Powershell IF statement is driving me batty | I'm trying to drive one of six outcomes from the combination of three variables being a '0' or '1' and I can't get the right output when testing three conditions no matter how I try. I've tried 3 approaches and none generate the correct response. I attached them below but I may be way off track with all three. Thanks i... | In PowerShell, [CODE] is always an assignment operator. So, your first if statements are always reassigning 0 to the variables, and your output is always [CODE] . The correct equality operator is [CODE] . [CODE] | 0 | 5 | 3,091 | 2015-11-12T19:32:12.980 | infrastructure | serverfault.com | |
129,552 | How to replay xlogs from the beginning of time? (postgresql) | Let's say I'm keeping all the xlog's for a cluster instance since the time of cluster initialization (ie, [CODE] ). Let's call that time T0. All xlog's are retained/archived through T1 and continuing through time T2, at which point a backup is made. But now, I need to recover to time T1. I know how to do PIT to a time ... | I was able to perform a complete recovery from T0 to T1 using these steps. We do it with a completely newly initialized database. We need the original database and all its xlogs. The original database is in [CODE] and the new one is in [CODE] . Make sure you get these straight before you proceed. Steps Set $PGDATA and ... | 2 | 1 | 441 | 2016-02-17T15:15:30.887 | database_errors | dba.stackexchange.com | |
372,097 | Varnish redirected my subfolder to :8080 | I just installed varnish on my site and got this problem... If I go to my site ( http://techhamlet.com/ ) and click on the top link for the forum, the browser takes some tme and then takes me to http://techhamlet.com:8080/forum/ (Its broken!) It should go to http://techhamlet.com/forum/ ... Sometimes it works and somet... | Adding [CODE] to your nginx.conf should fix the problem. As the name suggests, this directive will prevent Nginx from adding the port to the url when a request is redirected. | 1 | 3 | 846 | 2012-03-21T18:27:34.950 | infrastructure | serverfault.com | |
375,342 | What are the barriers that prevent widespread adoption of formal methods? | Formal methods can be used to specify, prove and generate code for an application. This is less prone to errors - thus mostly used in safety/critical programs. Why don't we use it more often for everyday programming, or in web applications, etc... ? References : Formal methods B Method Hoare Logic | An Engineer is a person who can do with a dollar what any idiot can do with 10. Resource constraints, budget constraints, time constraints, they are all important. Developing software using formal methods is usually significantly more expensive and takes much longer than without. Also, for many projects, the hardest pa... | 18 | 21 | 2,564 | 2018-07-17T14:13:24.190 | api_errors | softwareengineering.stackexchange.com | |
85,710 | OpenVPN Server - CPU is pegged out | I am configuring OpenVPN to act as a SSL tunnel for a remote location. I have OpenVPN1 at our current location acting as a server then OpenVPN2 at the other location that is acting as a client but is also acting as a DHCP server to machines behind it so they are basically connected to the local LAN. Everything is set u... | what's the speed of internet connection between both ends? openvpn on modern hardware can easily handle 100Mbit/s or more of traffic. do you run tun or tap mode? tap tun/routed should give you better performance. | 5 | 1 | 2,680 | 2009-11-17T22:07:27.333 | infrastructure | serverfault.com | |
896,895 | "protocol version mismatch — is your shell clean?" rsync error when the shell IS clean | I'm trying to download files using rsync with rsync running in daemon mode over SSH on the server and get the following error on the client: [CODE] The server has this in .ssh/authorized_keys for the user: [CODE] I've read all I could find about this problem and, as everyone suggests, checked that the shell is clean an... | You problem in this case is not that the shell is not clean, but that the client rsync can execute the command it needs to execute on the server. If you use the [CODE] in authorized_keys, then that is the command that sshd will execute, regardless of the command that is passed by the client. The client rsync will call ... | 6 | 2 | 9,250 | 2018-02-12T15:16:18.633 | infrastructure | serverfault.com | |
950,505 | Network loopback device missing in Ubuntu 14.04 | I want to program an FPGA via JTAG and the xmd script connects to 127.0.0.1:3121 to do so. That worked nicely for months. After a reboot this connection suddenly didn't exist any more, I cannot ping 127.0.0.1 or localhost (still resolved to 127.0.0.1) any more either. ifconfig is missing "lo". I have entries for eth4 a... | Dennis: I have these two lines in /etc/network/interfaces already and tried [CODE] already. I says "interface lo already configured" when I do that, or nothing if I add [CODE] . Ginnungagap had the right idea. I could bring the ttyUSB0 from "DOWN" to "UNKNOWN": [CODE] Now the output is [CODE] Now it works again, both p... | 1 | 1 | 2,089 | 2019-01-24T06:26:30.957 | infrastructure | serverfault.com | |
209,122 | Opendkim verification when using Dspam | I have Opendkim working well for signing messages but verification fail, I guess that's because emails are injected from Dspam on 127.0.0.1:25000 so Opendkim try to sign the mail instead of verifying it This is an exemple when receiving a mail from gmail : [CODE] I think having dkim before dspam would solve the problem... | The no_milters option at the end of your receive_override_options is telling Postfix not to use milters after the mail is re-injected. That's usually used to stop OpenDKIM from signing a mail twice when using a content filter. Your question says DSpam is injecting on 25000, but your master.cf is set up for 25501. Which... | 0 | 1 | 970 | 2010-12-04T15:56:26.527 | api_errors | serverfault.com | |
41,370 | lighttpd server-status | I have enabled lighttpd mod_status as /server-status. When I go to the URL, I get the status page. I am interested in monitoring connections -- most specifically KeepAlive connections to make sure KeepAlive is working correctly. The problem is I only see the full connection info for the /server-status request itself. A... | This wasn't possible before lighttpd 1.4.24 (see bug entry ) - before then, the relevant fields in the connection structure were being reset after each request. | 2 | 1 | 2,245 | 2009-07-16T01:58:08.743 | pipeline_ops | serverfault.com | |
322,251 | Performance Regression Testing / Load Testing on SQL Server | What tools or best practices exist to demonstrate a new server instance is "as capable" as an older one? We're moving from an EC2 hosted instance of MS SQL Server to an RDS instance, and have been tasked with "proving" that the new platform won't cause any regressions. The naive idea is to somehow replicate a day's wor... | This is 100% a valid approach. However, sadly, there's no really simple way to make it happen. To start with, you're going to need to capture the query metrics for your existing servers. The two best mechanisms are either Query Store (enabled by database, so it's not a full server measure, ever) or Extended Events. Ext... | 4 | 4 | 194 | 2023-01-18T11:04:52.987 | database_errors | dba.stackexchange.com | |
690 | Tool for storing per environment configuration | I have a requirement to store configuration information on a per environment basis in a tool. This is a tool with a GUI for adding/updating configuration values (e.g connection strings). This should have a default value and be able to change this based on different environments. There should be an API to retrieve these... | There are many tools that can do something like this, including configuration management tools like Chef, Ansible, or Puppet; and KVS tools like Consul and etcd. You could also integrate it as a build step in your CI server, or sidestep the issue using live configuration at runtime against an external configuration sto... | 11 | 6 | 1,678 | 2017-03-27T14:20:04.193 | pipeline_ops | devops.stackexchange.com | |
340,386 | Duval's algorithm, Lyndon words and de Bruijn sequence | First, I am not a programmer (yet) and I can only understand basic algorithms written in pseudocode (+Dijkstra, which is a little harder than others, for me). I have been trough logic, set theory, relations, combinatorics. Currently, I am studying graph theory. Can you give me a simple explanation on how Lyndon words a... | The easiest is to stuff the above in a Python interpreter. Then append these lines [CODE] and it prints [0] [1] [2] Then try with [CODE] and it prints [0] [0, 1] [0, 2] [1] [1, 2] [2] I think from here on it's clear how this permutes [CODE] numbers to max length [CODE] I leave it up to you to try out more permutation e... | 2 | 1 | 585 | 2017-01-17T22:40:59.390 | api_errors | softwareengineering.stackexchange.com | |
295,615 | Detect what version of SQL Server Express engine is available before connection? | I would like to detect what version of SQL Server Express engine is available so that I can connect either to the (localdb)\v.11 (SQL Server 2012 per https://learn.microsoft.com/en-us/previous-versions/sql/sql-server-2012/hh510202(v=sql.110)?redirectedfrom=MSDN#Anchor_1 ) or (localdb)\MSSQLLocalDB (SQL Server 2014 and ... | You can check the Windows registry for installed versions. For example, in Powershell you can use this to find all installed versions (note there may be multiple versions installed) [CODE] You would want to check that [CODE] or up was in the results. | 0 | 3 | 39 | 2021-07-13T21:41:11.697 | database_errors | dba.stackexchange.com | |
547,026 | Timestamp Updating Constantly on /dev/null | I've been working on a problem with a /dev/null file on an AIX system (just for background it looks as though it was inadvertently deleted and recreated as a normal file by somebody), but in trying to determine what caused the problem, I noticed that the timestamp on it seems to update every minute. I've observed this ... | So my question is essentially, could anybody please offer any advice with regards to what circumstances (permissions changes etc.. aside) might cause the timestamp on /dev/null to update? On most systems I'm familiar with, exactly the same circumstances that would cause the timestamp on any file to update: Creation (up... | 1 | 1 | 339 | 2013-10-18T15:44:46.680 | database_errors | serverfault.com | |
319,634 | Load Balancing Servers | I hope you don't mind me asking this as I couldn't find a definitive answer. I don't have a problem, per-say. I am just wanting to research something for my own studies. I was wondering just how Load Balancing worked. I know that a Load Balancer accepts requests and then handles all of the different connection requests... | The term "load balancer" is a very broad one, and there is no one answer to your questions as a result (for different sorts of load balancers, the answers will be different). For example, your description of a load balancer as "accept[ing] requests [...] and then [...] connect[ing] to a server that isn't failing or clo... | 0 | 2 | 281 | 2011-10-08T01:38:05.793 | infrastructure | serverfault.com | |
147,697 | creating and populating table using pl/sql | I have been looking for a way to create a table in pl/sql format like using DECLARE and BEGIN. Below is what i tried in sql Developer and but continiously getting the error below. Please advise what am i doing wrong and if any good resource to learn on populating table using pl/sql? cheers!! Error report : ORA-06550: l... | You can't. You have to use execute immediate. Check here [CODE] | 0 | 0 | 961 | 2016-08-24T08:21:03.570 | warehouse_errors | dba.stackexchange.com | |
410,332 | Mount Windows share via CIFS in CentOS not working (but smbclient does) | I'm a bit frustrated...I'm trying to mount a windows share via CIFS in CentOS 6.3, but it's not working: [CODE] Which gives me this: [CODE] No idea why, because connecting with smbclient works fine: [CODE] Any knows what the reason could be? | Sorry, I figured it out. Problem was that I was running CentOS in an OpenVZ Container, where apparently CIFS doesn't seem to be virtualized - at least according to this source: http://www.linux-faqs.info/virtualization/mount-samba-share-inside-an-openvz-container It contains a nice workaround though and I ended up crea... | 1 | 2 | 6,195 | 2012-07-23T16:15:12.563 | infrastructure | serverfault.com | |
103,875 | Calculating percentage of count and adding it to the count in MySQL table with the query | I have following basic MySQL query and I my aim is to artificially inflate the amount of today's orders by 75%. Is there a more efficient way of doing this without using [CODE] twice? [CODE] EDIT: I spotted an issue with my query (using [CODE] for concatenation when I should have used [CODE] ) | For general case use your original query as derived table: [CODE] But in your case it is much simpler: [CODE] | 1 | 5 | 6,327 | 2015-06-12T09:54:24.347 | database_errors | dba.stackexchange.com | |
1,021,614 | Service account with fine grained permissions for managing PostgreSQL databases | I need to create a service account for managing (create, update, delete) PostgreSQl database instances in Cloud SQL. I was thinking to use "roles/cloudsql.editor" role, but it does not have permission for deleting databases. Must I use the editor primitive role for deletion? If so, can I somehow limit it to have permis... | You may create a custom role and apply the IAM permissions you require. Thereafter, you can grant this custom role to your service account . In your senario, I assume you need the following permissions: [CODE] | 0 | 0 | 159 | 2020-06-16T01:48:36.747 | database_errors | serverfault.com | |
627,577 | Postfix Maildir to MySQL migration | I'm currently running postfix on a CentOS 6.5 box.The mail is currently stored in the users Maildir directory. Users utilize roundcube as a web mail client. This is a low priority machine and there are only a handful of users (less than 10). The total amount of mail storage consumed is less than 1G, however someone in ... | While nothing prevents Postfix from delivering mails to an MDA that stores the received mail in an SQL database (maildrop-mysql exists, AFAIK), it wouldn't make sense to do so if common IMAP servers like Cyrus, Courier or Dovecot are involved to access the mail as they are unable to use an SQL database as a storage bac... | 1 | 7 | 2,213 | 2014-09-10T14:47:46.393 | database_errors | serverfault.com | |
204,075 | Can compilers and interpreters have bugs, and what can we (as users) do to deal with them? | If a compiler's work is essentially translating source code into machine level code, can there be any glitch in a compiler, i.e. a faulty "translation?" The same goes for an interpreter: can it fail to output the required content sometimes? I have not heard of any bugs in compilers/interpreters, but do they exist? | Yes You tend to find them more in languages that are actively being developed than in those that are relatively mature (and thus don't see a lot of change on a frequent basis). This is probably why most languages are released at various 'stages' of stability. A nightly build is far less likely to be stable than a relea... | 27 | 50 | 3,790 | 2013-07-08T14:34:23.217 | api_errors | softwareengineering.stackexchange.com | |
110,073 | Where does Plesk pull its list of available shells under the domain setup page? | Does anyone know where Plesk pulls its list of available shells under the domain setup page? I am on a box which is missing [CODE] (chroot), though the majority of the system users on the machine have the shell: [CODE] On a redhat/centos machine, chrootsh is provided by the base psa package. I have also checked that ch... | It seems that plesk does use /etc/shells. However, /bin/bash (chrooted) is a special case. If the /bin directory at /bin contains certain files that are not executable, /bin/bash (chrooted) will not be in the list. | -1 | 1 | 730 | 2010-02-05T19:19:11.923 | infrastructure | serverfault.com | |
477,462 | Hamachi 2 for CentOS 6.3 ham0 network interface missing | I am trying to install Hamachi on CentOS 6.3 (64-bit), but the network interface never appears. I installed from the official Hamachi RPMs : [CODE] Installation appears to succeed: [CODE] I am able to use the Hamachi client to join networks, and I even see this new server in the network I joined in the peer list on oth... | The problem turned out to be that the TUN/TAP driver was not enabled. Running [CODE] was unable to load it. This server was a VPS hosted under OpenVZ. As suggested by another post , I had my VPS host enable the TUN/TAP driver, restarted the Hamachi daemon, and all was well. | 0 | 0 | 1,928 | 2013-02-10T23:16:52.603 | infrastructure | serverfault.com | |
589,195 | Nginx basic auth password not working | I am trying to set up basic auth on a subfolder with nginx. [CODE] I have tried numerous methods to generate a password (e.g apache's [CODE] ) but I am not able to log in at /Docs with the username and password specified in .htpasswd. I see the authentication dialog with 'Restricted Area' but the password is not accept... | Turns out this was caused by a Squid caching proxy which was not passing authentication headers correctly. This was proved by running something similar to the following: [CODE] where dump.php contains [CODE] In the case of the server behind squid, the output of that command was empty and I would expect to see mention o... | 1 | 2 | 10,433 | 2014-04-15T15:05:04.197 | api_errors | serverfault.com | |
969,410 | amazon-aws: How to enable outbound internet connectivity for AWS VPC with only a private subnet? | Currently in our setup, we have a private and public subnet in VPC A that is peered to VPC B. VPC A has outbound connectivity routed through an internet gateway and a NAT gateway (for enabling internet access for ec2 instances in our private subnet). VPC B only has a private subnet that has no internet access to it's l... | Your Private-only VPC can't have NAT gateway as NAT requires a public IP. You can however give the instances in VPC B access to internet indirectly if you set up an Outbound Proxy in your VPC A . You can use for example Squid Proxy . That proxy will accept requests from VPC B instances and relay them to the internet. Y... | 1 | 1 | 1,952 | 2019-05-29T23:01:54.280 | infrastructure | serverfault.com | |
269,568 | Macs connecting to Windows File share | So, we have Mac users who connect to our Windows file shares. When they open the first time, they are connected without issue, but if they were to close the finder window and try to open it up again, it will just say connecting and never actually connect. Does anyone know why that is? The file share is on a Windows Ser... | Mac leaves the connection after exiting Finder window, So to initiate it again they should select the shared server on the "Shared" list of Finder quick access bar. This only happend on SMB (Samba) since Mac doesn't like SAMBA that much. | 1 | 1 | 122 | 2011-05-13T20:32:52.920 | infrastructure | serverfault.com | |
117,852 | Using "catching exceptions" to improve readability, Good or Bad? | In the section When to Use Exception in The Pragmatic Programmer , the book writes that instead of: [CODE] , they prefer: [CODE] simply because it looks neater. I'm all for neater code, however isn't unnecessary catching of Exceptions a performance bottleneck? I can understand that we should give up minuscule optimizat... | Exceptions are typically only slower if they actually thrown. Usually, the exceptions in situations like this are rare so its not something you should worry about. You should only really worry about the performance of exceptions if they are happening all the time and thus are a significant factor. The second code is be... | 9 | 18 | 987 | 2011-11-04T12:54:58.483 | api_errors | softwareengineering.stackexchange.com | |
29,608 | The --reject feature in wget doesn't seem to work | I am trying to mirror most of a ftp sever using wget. This particular sever keeps old copies of the data files in a folder called 'backup' inside every subfolder. e.g. '/MaffiaOffShore/backup' '/VeryVeryDodgy/backup', which I don't want but my attempts at using --reject ' backup ' and using --exclude-directories ' back... | The exclude directories option is: [CODE] not --exclude-directory as you have included in your question from the wget man page [CODE] | 2 | 0 | 2,335 | 2009-06-22T08:40:37.930 | database_errors | serverfault.com | |
558,194 | windows server 2008 r2 guest access | I have domain with windows 7/xp computers, and windows server 2008 r2 not in domain. This server has shared folder. I want all other computers be able to connect to this server without login prompt. I have googled and tried many provided solutions, but none of them helped me. My settings for now: Enabled guest account ... | You never mentioned in your question what the point of failure was, but did you turn off password protected sharing from Advanced sharing settings? It is on by default and must be turned off for anonymous logon to work. You actually don't need "Guest" and "ANONYMOUS LOGON" on the Share or NTFS permissions if "Let every... | -1 | 0 | 2,510 | 2013-11-29T08:53:29.653 | infrastructure | serverfault.com | |
1,047,240 | Force applications to use TLS 1.2 for certain domains | I have a Debian Buster server that is unable to establish an HTTPS/SSL connection to several servers unless I force a TLS 1.2 connection using the [CODE] command. The errors from various clients are: openssl s_client - "SSL handshake has read 0 bytes" wget - "GnuTLS: The TLS connection was non-properly terminated." cur... | For applications that use OpenSSL, you can set the MinProtocol and MaxProtocol version to TLSv1.2 to force all connections to use TLSv1.2. I know of no way to set this per domain. This is not advisable because some servers only support TLSv1.3, so connections to them will fail. Open openssl.cnf: [CODE] Scroll to the bo... | 2 | 5 | 4,313 | 2020-12-22T19:50:16.537 | database_errors | serverfault.com | |
254,290 | MySQL Workbench, Windows Server 2019, MySQL not showing Performance, Information of MySQL Schemas! | This evening I installed MySQL on a new clean install of Windows 2019 server. When the install finished, the installer offered the possibility of opening Workbench so I said yes. Then I noticed that there were schemas missing - as per the question, the performance, information and mysql schemas were missing (see the sc... | A similar issue, Information_Schema and mysql databases not shown , was submitted as a bug report to the MySQL Bug System nine years ago. The report was resolved as Not a Bug as the issue turned out to be something controlled by one of MySQL Workbench settings. Specifically, Valeriy Kravchuk suggested this resolution: ... | 2 | 5 | 1,169 | 2019-11-27T21:48:02.583 | database_errors | dba.stackexchange.com | |
455,947 | SA with or without amavis-new - whats faster? | Currently i have working setup of postfix with virtual users which uses amavis (with SA and clamav) to filter messages. The problem is, i need to allow every user to be able to adjust their SA settings. So i need to store SA settings in a database. Its quite simple to do when SA runs without amavis, but is it ever poss... | is it ever possible to force SA and amavis to use database? It should be since the 2.7.0 version of Amavisd-new which introduces the [CODE] configuration parameter. From the Amavisd-new release notes : SpamAssassin will be requested to load a user preferences configuration through its read_scoreonly_config() or load_sc... | 1 | 1 | 1,278 | 2012-12-07T07:01:51.780 | infrastructure | serverfault.com | |
1,051,675 | Is there a way to undelete deleted permissions in cloud IAM Admin on the google cloud platform? | I have accidentally locked myself out of my own project. It is still running with cloud SQL instances and a Kubernetes cluster, but I cannot view anything about it or stop it. I was removing permissions which I thought were just for bigquery, but it was for the whole project. Now permissions are denied for everything, ... | It seems that your project is now an Orphan Project. I recommend to contact GCP support in order to verify the ownership of your project and get it back. In future to avoid orphaned projects I recommend to follow this recommendation: How to avoid orphaned projects In order to prevent a project from becoming orphaned, w... | 0 | 0 | 437 | 2021-01-29T15:15:55.240 | warehouse_errors | serverfault.com | |
249,655 | How to block an IP using iptables | So this should be a simple issue, but for whatever reason I can't figure it out. Here are my current rules: [CODE] I'm trying to block the "hit-nxdomain.opendns.com" location (dummy location). When I put in a real IP address can I can use from another location. If I try to hit my server from that location it still conn... | Get the IP of that hostname: [CODE] Block it: [CODE] | 4 | 7 | 1,570 | 2011-03-20T23:43:37.950 | infrastructure | serverfault.com | |
20,891 | Good way to call multiple SQL Server Agent jobs sequentially from one main job? | I've got several SQL Server Agent jobs that should run sequentially. To keep a nice overview of the jobs that should execute I have created a main job that calls the other jobs with a call to [CODE] . The [CODE] finishes instantly (Job Step 1), but then I want my main job to wait until job [CODE] has finished before ca... | SQL Sentry has a facility built exactly for this: to chain jobs and arrange them in various workflow orders. I started using SQL Sentry years ago, before I ever joined the company, to do exactly this. What I wanted was a way to start a restore job on our test server immediately after the backup on production had finish... | 11 | 9 | 10,295 | 2012-07-14T16:02:04.010 | database_errors | dba.stackexchange.com | |
251,281 | Implementing keyword "const" | A constant pointer is a pointer which points to a fixed memory location throughout.The question is how do you ensure that this behavior is ensured without using the keyword constant while declaring the pointer in a C program. | In C, [CODE] isn't "implemented". It's a message to the compiler about whether to generate errors. [CODE] compiles this: [CODE] to [CODE] L_.str: ## @.str .asciz "Hello" [CODE] and this: [CODE] to the exact same this: [CODE] L_.str: ## @.str .asciz "Hello" [CODE] | -6 | 5 | 163 | 2014-07-26T17:43:42.797 | api_errors | softwareengineering.stackexchange.com | |
264,731 | ROLLBACK make data in INSERTED table is removed in AFTER INSERT TRIGGER | I give an example to show my problem. I create a table as the following: [CODE] I create a AFTER INSERT trigger to don't allow to insert id=1 into table "a" [CODE] Then I insert id=1 into table "a": [CODE] I get nothing from INSERTED table. I realize that when I ROLLBACK then: the data in table "a" was ROLLBACK (I know... | Your row is not being inserted in either case. For [CODE] trigger rollback is part of the transaction. See this Q&A for details. SQL Server - After Insert/ For Insert - Rollback Quote from the above Q&A. You're inserting one (or multiple) row into your table. Then - still inside the transaction - the AFTER INSERT trigg... | 2 | 1 | 4,401 | 2020-04-10T06:06:12.007 | warehouse_errors | dba.stackexchange.com | |
249,566 | How can I test a search engine for an uncommon human language? | We are writing a search engine from scratch in a quite uncommon language, Aramaic, mostly for learning purposes but also because few resources are available in given language. The engine is/will be written in Python, and: It is a human language search engine. It's not about paying someone to do the tests, but trying to... | This is a very hard problem. You are asking for an Artificial intelligence piece of software to fully comprehend the target language's semantics and culture in order to determine the results' relevance. There are a few workarounds: Use Google/Bing/whatever other search engines exist out there for learning and testing. ... | 4 | 2 | 159 | 2014-07-11T07:51:25.207 | api_errors | softwareengineering.stackexchange.com | |
903,467 | iptables rules choke off the connection or they leave wide open | I've been working on enhancing my iptable rules. Here is abit of background on what I have done so far and what I'm planning on accomplishing and my issues: I have an RPi and I have a WiFi module and have interfaced a 3G modem to it. I want to have all the traffic from my WiFi to be forwarded to my 3G interface. I crea... | [CODE] Your primary problem is that these rules are not going to be stateful, and you have only handled the rules in one direction. If we pretend for a moment that there were no other problems, these rules would only handle the traffic in one direction. But since you probably need bi-directional communication how are y... | 0 | 0 | 162 | 2018-03-19T20:50:46.470 | infrastructure | serverfault.com | |
413,293 | Select from many-to-many in one query | A common issue I run into when building CRUD applications is how to retrieve many-to-many relationships from the database and put them into an object model. Say, for example, I have the following data structure: [CODE] This is stored in the database like so: [CODE] When it comes time to turn the data in the database ba... | Yes. You can issue a query that returns [CODE] And then construct 2 [CODE] instances, and 3 [CODE] instances, and add references to the items as appropriate in the customer. That can be done in one pass over the data, if you hold a mapping of id -> object for both [CODE] and [CODE] so that you don't create duplicates. | -2 | 4 | 110 | 2020-07-30T11:28:31.217 | api_errors | softwareengineering.stackexchange.com | |
205,883 | Can't view a Ubuntu PC on the network, can't access apache on it, can ping and use samba share though. | I thought that it was because of two machines on the network having the same hostname, and hence asked this question . But it did not resolve the problem. The machine responds to my pings. But when I go to [CODE] , I can't view that machine. I also can't view the other machines on the network from his machine. What see... | Viewing the computer in Places > Network is based on a different protocol. Ping is a very low level debug tool. It does not scan the network and build a list of other computers on the network. SMB (Windows File Sharing) is a set of protocols and programs that communicate to provide that list of what computers are on th... | 2 | 0 | 2,534 | 2010-11-25T05:42:44.693 | infrastructure | serverfault.com | |
858,089 | Postfix not respecting mysql alias domains | So the setup is using postfix, dovecot, postfixadmin and mysql. I have configured postfix admin to alias one domain, "name.co.uk" to "name.net", I see this in the database so there's no issue there. However, when sending mail to "name.co.uk" it is not sent to "name.net", I can see this by the fact it does not appear in... | Issue resolved. Missing [CODE] before [CODE] . New config files [CODE] and [CODE] | 0 | 0 | 1,599 | 2017-06-27T08:54:55.747 | database_errors | serverfault.com | |
733,021 | How to make dovecot password independent of server password? | I'm using postfix and dovecot. I want to send and receive email from root. Until I use SSL/TLS certificate, I am using an unencrypted connection. Since my email password is the same as my ssh password, someone could easily sniff the traffic and login as root. How do I change my dovecot password to make it different tha... | Dovecot conceptually separates user account information into two databases: The user database contains everything Dovecot needs except for the password. The password database contains (encrypted) user passwords. You can have multiple databases of each type, and Dovecot will use the first one with a matching entry. Ther... | 7 | 9 | 3,654 | 2015-10-31T19:49:14.873 | infrastructure | serverfault.com | |
694,610 | Routing issue on Linux with Mobile Broadband | Note: This is a "cross-post", I asked this same question on "superuser" StackExchange site, but without obtain any answers, just a comment (now curiously disappeared). I've thought this site is better for network related questions, so here we are... Hope this was a good idea. Let's come to my question: A user is trying... | Yes, that routing table shows there is no route to 8.8.8.8. The only routes are the 47.53.62.0/24 subnet and the loopback. A default (0.0.0.0/0.0.0.0) route (or a number of more specific routes if you prefer) needs to be added for the gateway that exists on the 47.53.62.0/24 subnet. There are many other points of failu... | 3 | 2 | 1,757 | 2015-05-26T22:47:57.777 | infrastructure | serverfault.com | |
639,592 | Forbidden - for a php webiste with apache, although it shouldn't be | I can't run a php from my custom location: [CODE] The error is: [CODE] How come? | That error is caused from not having a statement such as the one below within you VirtualHost or in a block etc, or any other block like this: [CODE] To allow the listing of directory contents, because no default file was found. You can specify a default file with a statement such as the one below in a similar area (so... | 1 | 0 | 170 | 2014-10-25T08:48:24.797 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.