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 |
|---|---|---|---|---|---|---|---|---|---|---|
800,919 | Journalling stdout with systemd when running as specific user | Consider the following [CODE] : [CODE] Its stdout ends up in the journal as expected: [CODE] Now I add [CODE] under the [CODE] section. [CODE] is an existing regular user. [CODE] Note that the echo message is now missing from the journal. Why is this, and how can I get it to show up? I am using systemd 229 on Ubuntu 16... | [CODE] is currently unable to attribute the output of processes shortly before they exit, which is especially the case for very short lived processes like [CODE] . This is caused due to how [CODE] acquires certain information (e.g. the [CODE] and [CODE] fields) from the process' [CODE] , which might not exist anymore a... | 0 | 2 | 1,214 | 2016-09-03T20:10:52.167 | infrastructure | serverfault.com | |
640,296 | Dynamic port forwarding reports connection failed and timeout | I'm running a benchmark based on selenium to send requests to an application server. Since the application server is deployed on a private cloud, I'm not able to connect to the server from the benchmark. Therefore I'm using the Dynamic Port Forwarding ( https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding ). I ... | To reliably send a lot of traffic to a system under test you need to put the client and server as close as possible. The easiest way to do that is to put the client system on the same network as the server (unless you're testing the router or firewall). | 0 | 0 | 334 | 2014-10-28T16:11:06.280 | infrastructure | serverfault.com | |
363,386 | How to transfer testdata in testlink from one server to another? | Last month we installed testlink and bugzilla on our server and we started writing testcases in testlink for our project. Unfortunately we've never been able to access testlink on that server. We always get "500 - Internal Server error". So we installed testlink on another server and we have a backup of all the install... | You should be able to backup the database from the first server and restore it on the second server. All the test data is stored in the database. The process for doing this depends on what type of database you are using. | 3 | 0 | 2,922 | 2012-02-24T12:41:26.297 | database_errors | serverfault.com | |
254,609 | Is there any danger in writing raw bytes to a file? | I'm working through a problem in Programming Pearls -- specifically, the implementation of a program which sorts a file containing, at most, 10,000,000 integers (Column 1, Problem 3). Since the book doesn't specify how the data should be stored in the file, I'm considering storing the integers as raw bytes (there are s... | The only danger you will run into is little vs. big endianess (whether the most or least significant byte is written first). However if you remain in the same environment there will be no issue. besides the general ensuring of writing/parsing roundtrip. The file system is designed to handle any sequence of bytes. | 12 | 11 | 2,533 | 2014-08-27T17:41:40.460 | data_quality | softwareengineering.stackexchange.com | |
41,335 | Entropy loss from collapsing/merging two categories | Suppose I am counting occurrences in a sequence. For a classical example, let's say I'm counting how many of each kind of car comes down a highway. After keeping tally for a while, I see there are thousands of models. But only a handful show up frequently, whereas there are many that show up once or only a few times (i... | I ended up coming up with my own solution. I'm not sure if it's correct so I won't mark it as an answer. Let's call the original distribution P. Suppose we will be collapsing A and B into a new category X. The entropy of P will be: $S_P = - \sum P_i\ln P_i$ where $i$ is A, B, C, ... Notably, $P_A > 0, P_B > 0, P_X = 0$... | 0 | 0 | 39 | 2018-11-16T21:59:10.987 | data_quality | datascience.stackexchange.com | |
228,379 | Catch-all mail server, no forwarding | This is an internal server (lets call it tools ) on the same network as a set of test servers (for web applications). I want emails coming out of the test servers to arrive in the qa@tools account (no matter what their actual destination was). I do not want tools to forward anything anywhere. I've got postfix and squir... | You can use [CODE] to map all recipients, regardless of their original destination, to an address. In [CODE] : [CODE] In [CODE] : [CODE] | 3 | 2 | 767 | 2011-01-29T01:45:08.583 | infrastructure | serverfault.com | |
206,512 | SQL/Access: Iterate through a query's results to use in another's WHERE clause | Just to preface, I'm pretty terrible with databases in general (patience appreciated). I have a table structured as follows: TEAM |PERSON |GAME |SCORE _______|_______|_____|_____| Apples |bob |A |30 Apples |bob |B |15 Apples |chris |A |13 Apples |chris |B |2 Oranges|sally |A |15 Oranges|sally |B |39 Oranges|tina |A |19... | You can do this with a subquery to get your max score per game with the outside query pulling the details of the game. FYI: This was tested in MS SQL, not MS-Access (sorry don't have that installed), but the syntax should be very similar. [CODE] | 3 | 2 | 124 | 2018-05-11T17:25:47.900 | warehouse_errors | dba.stackexchange.com | |
610,052 | FSRM - Setting File Screen to block files types that are already inside some folders | I have a file server without any kind of file screen to prevent users from saving certain types of files in their folders. Our management changed and now I have to apply file screens to block some file types like pictures, audio, etc on most of the folders, with some exceptions. The thing is most of the users folders a... | Yes, setting a File Screen will only apply going forward. I recently did this at my workplace, and can confirm that existing files were not affected. However, this also means they cannot modify existing files that are part of the file screen. File Screen to block .exe's on the J:\ drive: Existing .exe on the J:\ drive:... | 2 | 3 | 2,839 | 2014-07-04T01:05:49.170 | infrastructure | serverfault.com | |
384,700 | Error Connection to SQL Server using [HOSTNAME]\instance or [FQDN]\Instance, [IP]\instance working | This one's kind of weird, at least to me. I've got MSSQL server 2k5 (STD) installed on Server 2k3 R2 SP2 (on account of some legacy software that doesn't yet support x64 or Server 2008), using Windows Authentication. It's configured to accept local or remote connections, over either TCP/IP (2) or Named Pipes (3). (I've... | After trying the suggestions here and not being able to determine a root cause, or a fix, I rebuilt the server, and the problem went away. Now the MS SQL instance is acting as expected. The joys of being a Windows admin, I guess. | 2 | 0 | 18,007 | 2012-04-30T20:17:10.840 | api_errors | serverfault.com | |
336,785 | What is the right process/naming convention with GitFlow to create a subbranch of a feature branch? | I am using GitFlow for my development conventions. Generally speaking, I create a user story and an matching feature branch off my develop branch and work on that. Once the story is complete, the feature is complete and merged (rebased) back into develop. However, I am now running into the issue where my feature is rat... | For feature branches we use the convention of feature-name/feature . E.g rewrite-quote/feature as the main feature branch. The keyword feature here is a convention used to signal it as the main feature branch. Subbranches will be named like feature-name/subbranch name. E.g rewrite-quote/quote-model The upside of this i... | 6 | 3 | 1,887 | 2016-11-24T16:11:44.667 | api_errors | softwareengineering.stackexchange.com | |
42,549 | your approach to complex iptables rulesets | i'm interested how do you write your complex packet-filtering rulesets on linux router acting as firewall. one with default-drop policy. i usually go with such approach [ just an artificial example ]: [CODE] this works fine, but is far from perfect: for instance if i add two servers in different subnets that need to co... | You can change [CODE] to [CODE] that way you can have three rules like this [CODE] and after this three rules just put one [CODE] This way if you allow a communication just once either in chain FORWARD_machineA or chian FORWARD_machineB for communication between machine A and machine B, it might work. At least it reduc... | 3 | 3 | 1,578 | 2009-07-18T17:40:27.123 | infrastructure | serverfault.com | |
318,602 | Is it strange for a Builder object to have getter methods? | I have a fairly complex immutable data type that I'm using a builder object to instantiate. Currently, I have a setup where I parse a file, setting various fields in my builder, and then build the object. However, the files I'm using are error-prone, so I want to do some verification on my unbuilt objects first. And it... | I think there is nothing wrong per se to have getters in your builder class allowing to inspect which data was passed in. As Robert Harvey stated, getters are not part of the pattern, but sometimes a pragmatic solution is better than sticking to some doctrine. And there is not "the one and only correct way" to implemen... | 14 | 12 | 9,763 | 2016-05-15T21:56:02.833 | api_errors | softwareengineering.stackexchange.com | |
234,567 | SQL Server - How to update two tables linked by foreign key with FROM statement? | I am a complete SQL novice and need some help on some basic syntax on how to perform an update on two tables which are linked by foreign keys. Here is an example: User [CODE] Orders [CODE] Let's say I have a user which is used in another table as the foreign key [CODE] . I want to write [CODE] statements that will set ... | All you want to do is filter on the Active column of the User table being 0. I'd also recommend using the join syntax, but that's not necessarily relevant to your question. [CODE] | 1 | 2 | 7,912 | 2019-04-11T13:41:21.687 | database_errors | dba.stackexchange.com | |
366,717 | Heartbeat cluster - issue resource(httpd) migration back to primary | We have given the following setting with corosync and pacemaker. [CODE] And it works fine when the primary server goes down. But it wont work revers, resource(httpd) migration back to primary after restarting the primary and bringing down the secondary. ie As I said everything works well, but i need just one thing, i h... | Instead of setting the stickiness to 100, make it INFINITY and try this command [CODE] | 0 | 1 | 971 | 2012-03-06T05:28:25.583 | infrastructure | serverfault.com | |
319,382 | is it possible to host a website on many vps? | I've done it before with my friend, I hosted a radio for a website on another vps that he owns. well but here is a different problem. that one was easy since all we did is created a separate page and the radio streamed on that page. I have bought 2 vps this month, one has expired and the other one will expire very soon... | Yes, it is possible. However, this is a rather general question that depends a lot on the specifics of your application (phpmotion) and the setup that the web host provides for the VPS. Some are managed VPSs where you get root but the configuration is predefined by the host, most are unmanaged where you get an empty vi... | -1 | 1 | 157 | 2011-10-07T09:42:09.063 | infrastructure | serverfault.com | |
471,620 | LAN users not listed over wifi | I recently created a small office network with 10+ computers. 9 of them are desktop computers so I used Ethernet cable to connect them.. The computers are connected to a switch via a patch panel and to a wifi router for internet access. All of these computers are connected to the same work group and sharing public file... | If I understand your question correctly it sounds like you are having an issue with Windows Network Discovery. First things first, can you confirm that you can connect to shared resources such as a file share or print share of the non-listed computers via a UNC path from the laptop and then back from the non-listed com... | 0 | 0 | 5,902 | 2013-01-23T06:53:07.680 | infrastructure | serverfault.com | |
386,907 | Recover amanda backup without configuration files | I have inherited a bunch of old backup tapes that contain some data that needs to be recovered. The problem is that the amanda implementation used to create these backups has since been obliterated. I am very new to amanda, but was under the impression that the config files are required to recover backed up data. Is th... | (I realize this is a rather old question but there are other options.) To be pedantic, it is not necessary to have Amanda even installed to read backups off those tapes. Having Amanda just makes it a lot easier. I just recently experienced this sort of failure and didn't find the information I needed from the current Z... | 2 | 2 | 2,076 | 2012-05-08T01:20:24.857 | database_errors | serverfault.com | |
139,513 | Slow SQL Server 2008 R2 backups after Windows update | I recently installed a series of Windows Updates on our SQL Server 2008 R2 server. Note, these were not SQL Server updates, they were just the usual monthly Windows updates. These updates included a couple of re-boots, but otherwise this was just routine maintenance. Since then however, SQL Server has been running at l... | Looks like it was MAXDOP (the SQL Server max degrees of parallelism setting). After changing the value from 4 to 8 (and ultimately 16), the disc backup performance went back to what it was before (and the SQL query performance too). I really have no idea how MAXDOP could have had an impact on disc performance, especial... | 0 | 0 | 1,480 | 2016-05-25T15:35:18.020 | database_errors | dba.stackexchange.com | |
672,826 | Solutions for bridging Solaris/AIX to Active Directory? | I need to have Solaris and AIX systems obtain authentication and name services to AD. I have had some success with Solaris using OpenLDAP as a proxy for user authentication. I have also successfully configured AIX to use AD kerberos authentication and AD LDAP naming services. However, for both platforms, I have two ser... | Given my requirements, the solution we ended up using was the OpenLDAP contrib module (overlay) adremap, which is in every source distro of OpenLDAP, see this link . We contracted with Symas for them to develop it and put it into upstream OpenLDAP. This overlay will lowercase usernames and dynamically convert rfc2307bi... | 0 | 0 | 1,251 | 2015-03-03T21:14:01.200 | api_errors | serverfault.com | |
355,459 | How do I convince Dell blades to PXE Boot | Scenario: Brand new Dell M610 blades. Connected to the network with a 10GE uplink into a Dell PowerConnect M6220 blade switch. DHCP server evidently working, as everything else boots / gets addresses fine. TFTP server working fine. Can't seem to get a DHCP address from the server. Is there something on a blade chassis ... | MDMarra was closest with the suggestion of a L3 switch. I actually solved this just now (20:20 GMT) by: Resetting the switch to factory defaults. Double-checking the cables to the fibre core switch and the patch panel. Swapping the SFP port on the Core Switch Swapping the SFP port on the Dell Blade Switch (Why this mat... | 7 | 2 | 2,027 | 2012-01-31T15:48:10.223 | infrastructure | serverfault.com | |
537,833 | Task Manager Processor % | Related to this question: How can a Perfmon "% Processor Time" counter be over 100%? I was manually observing processes in Task Manager when a user reported a problem and the Oracle process was using 80%-95% for a sustained period of time (5-15 minutes). So I've been using perfmon for the last couple days to track that... | Examining Processor Time Data on MSDN On multiprocessor systems, the Processor\% Processor Time value reported by System Monitor will never exceed 100 percent for any particular processor or thread. On the other hand, the value of the % Processor Time reported for the Process object can report values over 100 percent; ... | 3 | 2 | 930 | 2013-09-10T15:34:31.810 | database_errors | serverfault.com | |
992,465 | Can undefined variables and notices cause a cpu spike? | We're running centos 6.7, PHP 5 and MySQL 5.5 and Apache 2.2.15. Sometimes we see high CPU usage, mainly caused by MySQL so we take all the logs we can get. We're addressing MySQL optimization separately, this question is about PHP and apache mainly. In apache error log, we keep seeing undefined variables, notices, and... | Install debug symbols for this software stack and run [CODE] . This provides the top symbols by on-CPU sampling, so you can find the active functions. Complicating this, I don't know how good perf is on that older kernel. In fact, CentOS 5 has been end of life since March 2017. The only answer to getting meaningful fix... | 0 | 0 | 129 | 2019-11-19T16:50:30.563 | database_errors | serverfault.com | |
55,195 | Database design for storing historical nmap data | I am designing a database to store nmap data. I want to store two basic types of data: Information about the nmap scans themselves (e.g. start and end times, nmap version used, command line arguments used) Information about the hosts on the network (e.g. host names, IP and MAC addresses, open ports, services running) T... | I'm not sure you need audit tables. I think a simple schema like this would be sufficient: scans ----- scan_id (PK) start (this must be a datetime) end (this must be a datetime) version arguments hosts ----- host_id (PK) scan_id (FK to scans.scan_id) name ip_address mac_address status ports ----- port_id (PK) host_id (... | 2 | 4 | 1,082 | 2013-12-17T17:37:21.600 | warehouse_errors | dba.stackexchange.com | |
171,057 | Postgresql partitioned table timestamptz constraint problem | The table [CODE] is partitioned table by day like [CODE] , [CODE] Constraint SQL is defined as follow [CODE] Lets consider two type of query [CODE] Above query runs within sub-seconds and everything is fine. [CODE] On contrary, above query runs at least 15 seconds. [CODE] returns [CODE] When I examine why the latter ru... | I cannot fully respond as to why [CODE] is not equivalent to a constant... even if both [CODE] and [CODE] are defined as [CODE] . But I think we can make an experimental educated guess : Apparently, the PostgreSQL planner does not evaluate functions . As such, it doesn't have any good way to know which partitions to ch... | 5 | 5 | 4,887 | 2017-04-14T23:41:35.117 | data_quality | dba.stackexchange.com | |
977,505 | Use nfs version 3 on RHEL 7 | I tested using nfs version 3 on my lab system, and it works fine. [CODE] However. when I do the same thing on Azure, it fails. I followed this guide Link to vers 3 nfs But when I mount it using version 3, it gives below error [CODE] Version 4 works just fine, but version 3 does not! Any ideas? | Got it working! I put this in the /etc/sysconfig/nfs file RQUOTAD_PORT=875 LOCKD_TCPPORT=32803 LOCKD_UDPPORT=32769 MOUNTD_PORT=892 STATD_PORT=662 Then systemctl restart nfs-config Then I opened the above ports tcp/udp on azure and was able to mount it! Thanks to everyone for their support! | 1 | 0 | 13,148 | 2019-08-01T02:52:31.287 | infrastructure | serverfault.com | |
207,494 | Why do these foreign key constraints cause problems? (Azure SQL Server 12) | Here is a simplified version of the database I am attempting to create: [CODE] Essentially each business has a worker assigned to it, and any worker has the ability to create a note regarding any business. I have 3 foreign key constraints to reflect these relationships, but this creates the error: Introducing FOREIGN K... | The problem seem to be the [CODE] s, the [CODE] s are fine. I don't get an error if I remove the [CODE] s. According to the accepted answer in "Foreign key constraint may cause cycles or multiple cascade paths?" on Stack Overflow , SQL Server does no "deep" inspection of the cascade paths but just a shallow one. If the... | 3 | 3 | 1,644 | 2018-05-22T15:05:52.110 | database_errors | dba.stackexchange.com | |
166,750 | Should an object know its own ID? | [CODE] seems fairly common and also seems to fall within the range of something an object could know about itself. I find myself asking why should my object know its own id? It doesn't seem to have a reason to have it? One of the main reason for it existing is retrieve it, and so my repositories need to know it, and th... | It's fairly common to include the ID, but it's also common to use dictionaries, i.e. the data structures where each object is associated with its ID in a way that you can easily retrieve this object knowing the corresponding ID, but the object doesn't know it. For example, if you're creating an API with two methods: ht... | 29 | 7 | 1,807 | 2012-09-29T20:35:39.520 | api_errors | softwareengineering.stackexchange.com | |
215,637 | IIS 7.5 401 -UnAuthorized Access on a Virtual Directory | I have setup a website in IIS 7.5 on a Windows 2008 machine. The website is sitting on C:/websites/ Then I added a virtual directory called "/uploads" that points to "d:/websites/uploads". This directory holds all the images/media. When I browse the website in browser, I dont see any images etc. When I browse an image ... | Found a solution. http://www.anujgakhar.com/2010/12/23/iis-7-5-virtual-directory-error-401-unauthorized/ It was to do with Windows 2008 encrypting files that are zipped on a Mac. | 0 | 0 | 2,887 | 2010-12-23T10:51:04.873 | api_errors | serverfault.com | |
948,610 | Apache: Truncated or oversized response headers after graceful restart | After graceful restart, some python wsgi processes fail with 500 (internal server error): [CODE] (The above log lines were cut to make them easier to read) What could be the reason? Is there a way to restart apache without creating 500 responses. Delays of some seconds are ok, but failures should get avoided. Versions:... | Possible reason: Not your fault. Upgrade your wsgi module. See second item in Bugs-Fixed-List . Version 4.5.21 Bugs Fixed Installation using pip or setup.py install was failing on MacOS X High Sierra with latest Xcode as Apple doesn’t even include the apxs program at all. Speculated that crashes on daemon process shutd... | 3 | 3 | 3,474 | 2019-01-11T10:13:30.653 | api_errors | serverfault.com | |
103,241 | ALTER TABLE ... ROW_FORMAT=Compressed times out | I'm trying to change a table with the command: [CODE] This fails after 15 minutes, the log says: [CODE] and I'm left with a large temporary table: [CODE] Whereas the table is only 100MB. I'm using MariaDB 10.0.16 on SLES 12. I've actually backed up this table and restored it on a test VM running openSUSE 13.2/MariaDB 1... | Please note that I am not a MySQL developer, I use MS SQL Server. But the behavior in your post suggests the following: It does not look like a deadlock to me, especially with the error messages: [CODE] A deadlock normally would quickly determine which connection to roll back instead of processing up to 600 seconds bef... | 3 | 2 | 7,726 | 2015-06-04T11:34:55.963 | database_errors | dba.stackexchange.com | |
831,283 | Configuring OpenVPN using different network interfaces for different clients | I want to set different outgoing IPs for each client of openvpn. I have two IPs and two different network interface for each: ens3 and ens3:1 (i have more client, this is just for trying). They are defined in /etc/network/interfaces like below: [CODE] I created keys, installed openvpn and configured network. I made [CO... | I couldn't make it work in this way. That's why, I configured multiple openvpn instances so that each one listen single ip and use interface of same ip. I used this bash script for initial installation. I created a directory, for each instance under /etc/openvpninstances . You can copy default directory for a quick sta... | 0 | 1 | 8,053 | 2017-02-08T09:58:35.620 | infrastructure | serverfault.com | |
135,431 | Is virtual machine slower than the underlying physical machine? | This question is quite general, but most specifically I'm interested in knowing if virtual machine running Ubuntu Enterprise Cloud will be any slower than the same physical machine without any virtualization. How much (1%, 5%, 10%)? Did anyone measure performance difference of web server or db server (virtual VS physic... | The typical experience for a general purpose server workload on a bare metal\Type 1 Hypervisor is around 1-5% of CPU overhead and 5-10% Memory overhead, with some additional overhead that varies depending on overall IO load. That is pretty much consistent in my experience for modern Guest OS's running under VMware ESX\... | 61 | 34 | 87,071 | 2010-04-24T07:18:00.410 | infrastructure | serverfault.com | |
298,576 | C++ Extensible namespaces - how to force declarations back into global namespace | It is good programming style to include all necessary dependencies in a header that references them. Often this includes declarations that are placed in the STD & global namespaces (like cstdio). However, this creates problems when a second programmer wants to wrap such an include file in a new namespace to encapsulate... | Including a header into a namespace is prone to break various assumptions, and should not be done. Problems that come to mind are: It breaks include guards. If a header can only be included once, and you include it into the wrong namespace, then other code can't include it into the correct namespace within the same com... | 8 | 10 | 7,317 | 2015-09-29T19:26:35.807 | api_errors | softwareengineering.stackexchange.com | |
280,818 | SQLite: trigger for multiple tables and/or multiple actions | I am looking for a way to write SQLite trigger which will affect multiple actions and multiple tables (in fact I want it executed on a particular table each time any query is executed on any table in the database). Here is an example, to explain what I mean. I have 3 tables: [CODE] , [CODE] , [CODE] . Each student has ... | No, SQLite doesn't appear to have database or server level triggers (like other database systems). Instead you'd have to create the same trigger on each table. Unfortunately this is also a limitation in SQLite and not possible either. You might be better off letting the app that connects to the SQLite database (or a se... | 1 | 1 | 3,464 | 2020-12-03T12:00:02.543 | database_errors | dba.stackexchange.com | |
477,529 | How to reduce memory footprint of t1.Micro Amazon AMI? | I recently launched Amazon Linux AMI 2012.09 (several tries) because of Amazon's 1 year free tier offer. However, its always running out of memory/RAM! How can I reduce the initial memory footprint of this AMI? thanks! | You could provide more information, but there is some general steps you could take, such as installing low memory versions of stuff, such as mingetty. Here's a checklist that could be of use: http://stacklinux.com/discussion/4/how-to-strip-down-amazon-linux-ami-amazon-web-services-ec2/ | 0 | 1 | 276 | 2013-02-11T07:43:43.363 | infrastructure | serverfault.com | |
75,144 | Fully Upgrade SQL Database | We have a SQL Server 2000 server that was formerly running on SQL Server 7, with the result that the default collation is not what seems to be the default set later for SQL 2000 and up (it is SQL_Latin1_General_CP1_CI_AS rather than Latin1_General_CI_AS). Anyway, we're now planning to upgrade to SQL Server 2008 at last... | you will lose the ability to run the newer commands but you won't lose any functionality unless you upgrade the application using the database (which right now can't possibly be using the 2008 features) 2.See books online about Compatibility level changes . Note that these are language interpretation changes so you sti... | 2 | 2 | 371 | 2009-10-16T13:16:15.260 | database_errors | serverfault.com | |
549,506 | Linux server became extremely slow | I have a file sharing website, and my files hosted in a server with those system specifications: [CODE] I have files in this server up to 4gb for each file. 446gb is full (/36TB) [CODE] And take a look at this: Why is the [CODE] so high? (I think that what makes the server to be so slow) | How are the disks setup in the server, I would suppose that you aren't using any RAID implementation to speed up the disk read/write speeds (as disk usage shows 33TB for the LVM group) and this is your problem. As previous answers are correct, the 'wa' stands for disk I/O wait which is extremely high, practically locki... | 0 | 2 | 7,381 | 2013-10-29T20:44:11.927 | infrastructure | serverfault.com | |
1,042,017 | Windows - robocopy kill server service and server stop respond to smb - how to real time sync folders over lan without samba? | I have nightmare in company. New server 2019 with all patches. I use Robocopy to sync files to backup server. Robocopy kill smb "server service" several times per day, no any event log. Windows 10 clients cant access shares. Only solution is to restart server. Can even restart server service, which stuck in stopping st... | If copying file to a backup server, you generally do not need real-time replication unless do you want the two server be in a cluster of sort - ie: having a stand-by server ready to take connection in the case the first server goes down. That said, the right tool for a semi-synchronous file share replication between Wi... | 0 | 0 | 505 | 2020-11-10T10:22:53.653 | database_errors | serverfault.com | |
351,312 | What is a simple process for designing an OOP system before coding it? | Whenever I was required to build a project, I always managed to build it, not beforehand devising a plan or design, but after first writing a class that was needed, fleshing out the entire project, building from the bottom-up. Now I know this is not the proper way to create software, but it is not easy for me to wrap m... | Top down waterfall style OOAD does not ensure that the code you write is object oriented at all. I have seen mountains of strictly OOAD produced code that proves it. If OO is confusing you, don't look here for help. You wont find it. OO does NOT require you to design top down. If diving into a class is how you like to ... | 10 | 20 | 4,709 | 2017-06-21T03:34:07.497 | api_errors | softwareengineering.stackexchange.com | |
283,476 | sudo: no tty present and no askpass program specified | I am trying to add some file in a remote server by BigTuna (continuous integration tool), and it give me a error message. Any one have any idea how can I add that file to server? [CODE] | This is due to 'requiretty' option on [CODE] . If you have access to it, you might just remove that option. If not, there are other ways as well. Probably you are doing something like [CODE] . You can try to add -t option to allocate tty by ssh (so it would be [CODE] ). | 3 | 2 | 3,689 | 2011-06-23T15:40:14.083 | infrastructure | serverfault.com | |
274,533 | My server setup for a heavily used API | I will soon be buying a bunch of servers for an application that I am about to launch but I have concerns about my setup. I appreciate any feedback I get. I have an application which will make use of an API that I wrote. Other users/developers will also make use of this API. The API server will receive requests and rel... | Higher Availability As Chris mentions, your API server is the single point of failure in your layout. What you're setting up is a message queuing infrastructure, something many people have implemented before. Continue down the same path You mention receiving requests on the API server and insert the job into a MySQL DB... | 9 | 17 | 372 | 2011-05-27T14:08:02.370 | api_errors | serverfault.com | |
17,794 | Generalization Error Definition | I was reading about [CODE] and faced the definition of [CODE] . The book defined it as: Given a hypothesis h ∈ H, a target concept c ∈ C, and an underlying distribution D, the generalization error or risk of h is defined by The generalization error of a hypothesis is not directly accessible to the learner since both th... | There exists somewhere in the world a distribution $D$ from which you can draw some samples $x$. The notation $x \sim D$ simply states that the sample $x$ came from the specific distribution that was noted as $D$ (e.g. Normal or Poisson distributions, but also the possible pixel values of images of beaches). Say you ha... | 3 | 4 | 4,490 | 2017-03-23T06:27:43.773 | data_quality | datascience.stackexchange.com | |
540,294 | I turned off server 2012 which host my dhcp server but computers on the network still getting ip addresses | I have a DHCP server installed on Win Server 2012 which is turned off right now, but my computers still can establish online connections with the IPs previously received from the DHCP server. I tried turning the network connection off and on again on the clients, but it ends up with the same IP all the time. Is the IP ... | Stopping the DHCP server won't prevent DHCP clients from using the DHCP assigned ip addresses that they have already leased from the DHCP server. | -1 | 4 | 193 | 2013-09-19T19:43:53.413 | infrastructure | serverfault.com | |
854,599 | letsencrypt-auto not working after CentOS update | After having my CentOS VPS updated to version 7.3, letsencrypt stopped working. When running a letsencrypt-auto command (like # letsencrypt-auto --help) I get the following error: [CODE] The python2 file does exist in that directory. I'm not sure where to start and I'm not an expert on this. But this happened after I u... | As per the log submitted by your end. Yours let's encrypt installation path is [CODE] When you are trying to auto-renew the let's encrypt SSL, it is not able to find the correct file and folders in the path described. 1. You may check the directory of path of let's encrypt installation and verify if all files and folde... | 0 | 0 | 1,906 | 2017-06-08T09:20:09.730 | infrastructure | serverfault.com | |
156,471 | SELECT from slave and INSERT into master in MySQL | I'm using PHP/Laravel and MySQL databases. Briefly, I want to use slave databases for reads and master database for writes. What Laravel config, Laravel package, or database tool do you suggest to handle my issue? | To config Laravel to split reads and writes you can edit [CODE] this way: [CODE] As for the point which @rick-james mentioned you can use MySQL Router to balance requests between some databases so you can use both master and slave for reads. | 2 | 2 | 2,771 | 2016-11-27T08:12:42.533 | database_errors | dba.stackexchange.com | |
44,314 | How can extract the table schema from just the .frm file? | I have extracted the data directory of mysql from a backup and need to get the schema from an old table, however it's a backup from a different machine. I have read a fair number of tutorials today on how to do this, but each time it seems to fail or I end up having to reinstall mysql because mysql hangs or crashes. I ... | I have answered questions like this before [CODE] : Table compression in InnoDB? [CODE] : How to recover MySQL table structure from FRM files [CODE] : restore table from .frm and .ibd file? I have referred to a blog from Chris Calendar on connecting [CODE] files back to the data dictionary. If you do not have the [CODE... | 8 | 5 | 47,664 | 2013-06-11T17:00:46.037 | database_errors | dba.stackexchange.com | |
58,775 | TFIDF for very short sentences | I'm trying to build a regression model, in which one of the features contains text data. I was thinking in using scikit-learn's [CODE] . The issue however, is that the actual strings contain very few words. Exactly 1.8 in average. Here's a sample: [CODE] So my question is, is the [CODE] also suited for such case? Or wi... | It depends what it's going to be used for, but in general it can make sense to use TF-IDF with short sentence. The main difference with the more standard case of long sentences is that TF (Term Frequency) won't play any role since the frequency will almost always be 1. IDF can still be useful though, assuming it's rele... | 4 | 1 | 2,448 | 2019-09-06T08:29:46.780 | data_quality | datascience.stackexchange.com | |
168,953 | How to Build a High Performance Network Traffic Recorder With no Bottlenecks (20Gbps) | I need to build a server which is capable of capturing 20 Gigabit/second network traffic (2 x 10g network adapters - 99% utilization) and store them on a disk with zero packet-lose. The requirements is supply the ability to record 20-30 minutes of continues traffic. Not being an “Hardware Expert”, I have search the net... | While I have my doubts about how realistic this sort of thing is with OTS hardware; here's my thoughts: Each of those drives can do about 1Gbps (max); you'd need an array of at least 20 to get the write performance you need. Realistically you'd probably need upwards of 30 drives to get continuous throughput and some ki... | 1 | 2 | 504 | 2010-08-10T16:31:06.430 | infrastructure | serverfault.com | |
102,814 | MySQL JOIN two tables and get latest result | I want to JOIN two tables and get the latest result from each one of those two in a single table. I'm kind of concerned about speed too since tables are growing kinda fast. Close to 60-70k records a day. Later on i will go into partitioning but that is another issue. Now i have a main table with the [CODE] info. [CODE]... | I see it as 2 steps: Build tables with just the latest signal (or noise) for each device [CODE] or [CODE] the two tables. Step 1 is a variant of groupwise max : [CODE] This may be beneficial to performance: [CODE] Ditto for [CODE] and [CODE] . Manually run them to see if I got them right. Your example does not show a c... | 2 | 0 | 3,371 | 2015-05-29T17:03:54.547 | database_errors | dba.stackexchange.com | |
743,532 | set up secure connection over SSH | I'm setting up a server application which requires to establish a secure connection over SSH2, e.g. a client must open SSH2 connection to the server to reach specific application: [CODE] I want to understand, what exactly is happening after this command has completed? How client/server know that they have to run over S... | [CODE] connects to my.server.com, then it runs "app" subsystem in my.server.com How client/server know that they have to run over SSH secure channel? SSH secure channel is a bit confusing: SSH is already secure. A secure channel could be a VPN. Note that SSH tunneling and VPN aren't the same things: VPN works on the tr... | -1 | 2 | 264 | 2015-12-16T19:59:58.790 | infrastructure | serverfault.com | |
545,285 | MariaDB Cluster vs Percona Cluster for MySQL | What are the advantages and and disadvantages between the two? I've only been able to find information on these two implementations without any specifics on clusters. I'm currently implementing a Percona Cluster but my only concern currently is with MYISAM databases for replication. I run several wordpress databases in... | Both platforms use the same mechanism for replication: Galera . On the page at that link, you'll notice there are images featuring both PXC and MariaDB Cluster. Galera library provides transactional replication. MyISAM doesn't do transactions, so the problems you may be having now are very likely related and would not ... | 6 | 5 | 10,619 | 2013-10-11T01:27:59.893 | database_errors | serverfault.com | |
287,364 | Counting MAX event simultaniusly (based in datatime2) within a tallytable | Hi, I have a task that is meant to summarize several connections coming in to a given set of ports (trunks), into timeslots and count the results. The thing is that I would like to achieve two type of counts: One count should count the total number of connection to a [CODE] in the given slot (30 minutes per slot) Secon... | We can get the number of connections active for each trunk/period/interval combination like so: [CODE] Since you only want to count duplicate connections that begin on/after a given period, we first join each [CODE] to [CODE] to create these combinations. Then we adjust the [CODE] and [CODE] to be within each [CODE] . ... | 0 | 1 | 115 | 2021-03-19T20:58:32.207 | warehouse_errors | dba.stackexchange.com | |
335,764 | Why Do Primary Keys on Temp Tables Improve Performance Much More Than On Table Variables? | Many of my reports are essentially pivot tables. I take a set of big tables and transform each table individually so that a particular column (let's call it [CODE] ) that wasn't a primary key in the original tables will be a primary key in the output (e.g. use [CODE] and filter for where that equals 1). Let's call each... | In facts table variables are close to the concept of ARRAYs that does not exists in SQL Server. Temp table triggered a recompilation every time there is a DDL statement (CREATE, ALTER, DROP) and when some rows has been added, updated or deleted. When the recomilation is achieved, the optmizer does know how many rows is... | 0 | 1 | 217 | 2024-02-12T21:53:37.360 | warehouse_errors | dba.stackexchange.com | |
29,024 | Sharded Mongodb Communication | I would like to know what ports I need have open for a sharded mongodb cluster. For example does the mongos need to be able to accapt connections to and from mongoc. I dont want to have to many open ports that I dont need to have. | The TL;DR versions: You should assume that all mongod processes (including config servers) and all mongos processes need to talk to each other. Naturally, this only applies to the actual database port (27017 default) and not the HTTP console (+1000) or REST if you have that enabled. More verbosely: The mongos will need... | 1 | 1 | 206 | 2012-11-21T03:21:03.200 | database_errors | dba.stackexchange.com | |
222,706 | Combination of asp.net server side + html/js/jQuery client side | While working with asp.net, I came to an approach that uses asp.net services for the data/business logic layer and html/javascript/jquery for the UI layer, because I could not reach the needed level of customization of the user interface with asp.net web controls. While I've seen plenty of books describing usage of asp... | I work in a .NET shop that has historically used Webforms. We're in the process of migrating our software to MVC, however I have some personal experience with the idea you're describing. I'm assuming you're using Webforms, not MVC , given that .NET MVC regularly utilizes javascript for the UI layer. If that's not the c... | 2 | 3 | 1,742 | 2013-12-30T22:19:58.120 | data_quality | softwareengineering.stackexchange.com | |
207,775 | Any system tables/views to determine query volume per table | I was digging through the SQL Server system views and Windows performance counters and can't find any metrics regarding query volume PER TABLE in a given database. I am looking for any type of information to gauge the usefulness of each table in a given database. Query count/row count/data size of query results, or any... | You can use statistics data by tracking the most modified ones [CODE] | 0 | 1 | 501 | 2018-05-24T19:40:40.140 | database_errors | dba.stackexchange.com | |
232,729 | How to get all dates belonging to a timestamp range | I have a [CODE] as input. For example: [CODE] I want to generate all dates belonging to this range. I started with the following, probably naive, approach: [CODE] This seems to work great, it gives: [CODE] However, there is are exceptions which are not handled well. Take the following range as an example: [CODE] This i... | If you move the [CODE] to the FROM clause you can use a WHERE condition to limit the rows: [CODE] [CODE] If the upper(r) is at midnight, then the generated date ( [CODE] ) needs to be smaller than [CODE] . If it's not, generated date needs to be smaller than the next day after the upper end of the range. This query is ... | 1 | 1 | 584 | 2019-03-21T14:02:39.573 | warehouse_errors | dba.stackexchange.com | |
970,402 | psql role doesn't exist for remote host, does locally | I have a local psql server configured to use ldap for all but [CODE] accounts. But ldap isn't used on [CODE] where psql has no problem with the role, and fails to find the role using [CODE] , where ldap is used. Is the role not found because of a pg_hba.conf problem or an issue with granting extra permissions? Somethin... | specify ports and the psql header ( [CODE] ) should have tipped me off. I'm was configuring the wrong server. [CODE] | 0 | 0 | 478 | 2019-06-06T15:45:22.067 | database_errors | serverfault.com | |
788,181 | Reload nginx even when configtest failed | I would like to be able to reload nginx even when the configtest fails. Why I want this? Well in my case multiple users are able to modify nginx configs. Initially these configs are syntacticly correct, still I have to keep in mind that the user might not submit a valid config. There are some hooks what reload nginx bu... | This is not possible. Configtest validates the configuration, and confirms that can be read and parsed by NginX. If the test fails, NginX can't run . If you want multiple people able to make configuration changes and prevent invalid configurations from stopping up the webserver, you should have a shared version control... | 0 | 3 | 457 | 2016-07-06T08:51:58.457 | infrastructure | serverfault.com | |
867,116 | Subdomain Certificate on SMTP Server | So I have an SSL certificate specifically for my [CODE] subdomain, and a separate certificate for my root domain. Obviously, I don't want emails to be sent or received looking like [CODE] , I'd prefer [CODE] . Will it cause any issues if I use the [CODE] certificate with Dovecot or should I use my root certificate? All... | The common name of the mailserver must match the used domain of the mailserver. The certificate is independent of the domains handled of the mailserver. In your case, you don't need to do anything. The clients connect to the mailserver by resolving the domain, then they check the common name of the certificate against ... | 0 | 3 | 505 | 2017-08-06T12:21:42.377 | api_errors | serverfault.com | |
721,864 | nginx invalid parameter cookie nginx,wordfence plugin | I'm trying to install wordfence on my wordpress website and it requested me to update my nginx.conf for caching, I created a new file name wp.conf and pointed included it in nginx.conf but when trying to restart nginx I get the following error: [CODE] Here is my wf.conf file: [CODE] And this is the nginx.conf file: [CO... | You have invalid quotes in the [CODE] file. In your [CODE] , you have [CODE] as the quote character, and in [CODE] , you have [CODE] , which is not valid. Change the quotes and the configuration should work. | -2 | 2 | 1,090 | 2015-09-11T21:49:21.937 | infrastructure | serverfault.com | |
118,398 | help interpreting training/validation curves for classification tree | I'm developing a binary classification tree and having some touble interpreting my training/validation curves. I used the CART algorithm with information gain as my splitting criterion. The training and test data was split 75% : 25%. There was an imbalance between my two classes, so i performed stratified (proportionat... | You are correct that you are overfitting (i.e., a large drop in performance between training and hold-out dataset performance). Given that decision tree algorithms are high variance, you are looking too closely at hold-out dataset performance. In both cases, there is not much gain in performance after a depth ~10. | 2 | 0 | 179 | 2023-02-08T23:13:21.593 | data_quality | datascience.stackexchange.com | |
88,783 | "Rare words" on vocabulary | I am trying to create a sentiment analysis model and I have a question. After I preprocessed my tweets and created my vocabulary I've noticed that I have words that appear less than 5 times in my dataset (Also there are many of them that appear 1 time). Many of them are real words and not gibberish. My thinking is that... | Instead of dropping rare words or incorporating them risking their scarcity in the training data leads to poor predictions, you can opt for a third alternative: using a subword vocabulary. You can use approaches like byte-pair encoding (BPE) to extract a subword vocabulary, that removes the out-of-vocabulary word probl... | 1 | 1 | 178 | 2021-02-01T08:15:19.430 | data_quality | datascience.stackexchange.com | |
222,300 | How do I fix my error? | [CODE] | First of all.. You need to make your query [CODE] .. [CODE] are feature to help you find [CODE] like [CODE] or [CODE] . [CODE] This is your query first.. Some error i found [CODE] You have space in there and Typo when should be [CODE] become [CODE] and You are wrong calling the column.. Syntax are [CODE] [CODE] You cal... | -2 | 2 | 68 | 2018-11-11T23:33:01.863 | warehouse_errors | dba.stackexchange.com | |
356,390 | How to approach the understanding, documentation and validation of legacy code | I've been tasked with studying a Python code, which runs on an orchestrator, which schedule the launch of the code in correspondence of some events. The code imports some modules, and it's basically written as an extension of a method of a certain class, defined in the orchestrator module (is extension the correct term... | Inheriting legacy code is one of the most common things in the software industry. So common that, we can find several publications regarding this topic. Worth a mention Working effectively with legacy code - Michael C. Feathers for being one of the most renowned. However, these publications are strongly focused on refa... | 4 | 5 | 2,533 | 2017-08-28T13:22:57.387 | data_quality | softwareengineering.stackexchange.com | |
994,966 | PostgreSQL can't bind to docker ip at boot (Cannot assign requested address) | I am running PostgreSQL on the host machine. An application inside of a docker container should be able to communicate with the database. Since postgres is by default only listening for connections on localhost, I've changed the [CODE] by adding the IP of the machine on the [CODE] network interface, 172.17.0.1: [CODE] ... | In addition of overriding [CODE] , override the [CODE] as well. For instance with [CODE] then add: [CODE] | 1 | 0 | 2,387 | 2019-12-09T23:45:24.840 | pipeline_ops | serverfault.com | |
250,051 | Why max(id) with join not working or how to optimize it with join? | Below is my [CODE] table: [CODE] Below is my [CODE] table: [CODE] I want to get the last message id from [CODE] table according to its threadId and to doing this i tried below two [CODE] both result are ok but those are not so efficient . Second [CODE] seems quite efficient but not up-to the mark I accepted. How can I ... | MySQL 8.0.14 has introduced Lateral Derived Table . In your second query, you are computing [CODE] value for all the [CODE] , whether you need it or not during the JOIN. You can avoid this materialization of [CODE] (a costly process, which is basically temp table creation, either in-memory, or disk (if too big)), by us... | 3 | 1 | 835 | 2019-10-02T04:22:30.667 | database_errors | dba.stackexchange.com | |
145,941 | Tools or built-in functionality to alert upon table data changes | We have the following (unfortunate) scenario: we have a database where on-the-fly changes are being made by developers as quick remedies to dictionary tables (order types, document types, fee distributions, and so forth). This wouldn't be an issue if these particular developers didn't forget to check their changes into... | If you need the data changes themselves then you will probably need to use Triggers. You could convert all values to string, build an HTML table of those changes, and then send that via sp_send_dbmail . Please note that while [CODE] does accept a query to include the results of in the email (either in the body or as an... | 1 | 1 | 519 | 2016-08-04T23:54:43.230 | bi_errors | dba.stackexchange.com | |
726,533 | moving live innodb db from one server to another | I need to move an innodb db from one server to another - it is also going from mysql > mariadb. I want to ensure there are no problems at all and with that I will be using mysqldump to export and then import on the new server. The my.cnf settings are different on the new server so copying files over is not something I ... | Note that you must use [CODE] with [CODE] if you have any encrypted fields in the database. If [CODE] is not used, the data will be rendered useless when imported. Before you backup, do a [CODE] to prevent any changes. You can pipe the backup to the new server in one step, saving the step of copying the SQL file. [CODE... | 0 | 1 | 633 | 2015-10-03T18:47:32.930 | data_quality | serverfault.com | |
527,757 | Finding home directory of all users | I'm a software dev suddenly finding myself having to play SysAdmin. Recently, I was given a box previously administered by somebody else, and this SysAdmin kind of just did what he wanted. My supervisor is given the box to SysAdmin, and it appears that the home directories for users are hidden everywhere in the box. Ne... | Assuming all the users are local users (that is, there's no network directory service like LDAP, Active Directory, NIS, etc), then local users are probably all enumerated in [CODE] , which is a colon delimited file with the following fields: [CODE] You can get just the usernames and home directories, if that's easier, ... | 3 | 7 | 102 | 2013-07-31T21:04:14.977 | infrastructure | serverfault.com | |
836,710 | How to maintain existing connections on VIP swap or equivalent in azure | I want to do a Blue Green deployment from staging to production on azure. Our web application maintains a long running EventSource/SSE connection to our back end server. During a swap from staging to production, these long running connections must not be interrupted. In other words, if the production server is initiall... | It seems that drain stop is not supported on azure load balancer . The other method using a custom health check could work but is a bit kludgy In fact, the health check method is pretty impractical for removing a whole cluster of servers at once so I have come up with a workaround. I tried setting up an https redirecto... | 0 | 0 | 417 | 2017-03-07T05:48:44.173 | pipeline_ops | serverfault.com | |
59,350 | db2 performance issue - large number of IOPS how to determine problem? | DB2 database is on storage. We are using 9.7 Storage administrators reported that today database was doing 5000 IOPS (during past days average number was 300 IOPS). Those are disk operations from server to disk system. [CODE] is currently on [CODE] . Today we did not do any large upload. How is this possible what happe... | The message you include from your db2diag.log shows that there is a potential space problem (i.e. the file system holding your data is filling up). The monitoring data here shows that you are ranging between 89% and 94% over a 90 minute period with increases and decreases – this is probably associated with system tempo... | 2 | 1 | 1,845 | 2014-02-21T14:03:22.920 | api_errors | dba.stackexchange.com | |
1,030,317 | Can not disable autoneg via ethtool | I want to disable the [CODE] feature of NIC, I run the following command [CODE] Then I check if it takes effect via [CODE] : [CODE] The [CODE] is still on, why it does not work? Update 2020/8/22 My NIC is [CODE] , and I found that 10GBASE-T link's [CODE] feature can be off in some cases. It's strange that the two ports... | It is not possible to disable autonegotiation on a 10GBASE-T link. The 802.3 standard indicates that autonegotiation is mandatory for such links. Some of the reasons for that include: 55.6.1 Support for Auto-Negotiation All 10GBASE-T PHYs shall provide support for Auto-Negotiation (Clause 28) and shall be capable of op... | 1 | 1 | 2,881 | 2020-08-16T13:34:46.180 | infrastructure | serverfault.com | |
232,598 | What do I do about blocked processes? | I am getting alerts stating: The SQL Server Performance counter 'Process Blocked' (Instance N/A) of object 'General Statistics' is now above the above threshold of 40 (the current Value is 41)" What do I need to do to address this issue? | First you need to determine whether the blocking is a problem or not. Some applications are going to have numerous connections running INSERTS, UPDATES, or DELETES as fast as they can. This is by design (perhaps not good design), and as long as it's something that users are not impacted by, then you may see periods whe... | -2 | 3 | 325 | 2019-03-20T11:36:46.273 | database_errors | dba.stackexchange.com | |
17,703 | How can I tell my Helm Chart to ignore the default ingress-nginx and create a new one? | Whenever I run [CODE] on the chart I'm making I see this, Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: IngressClass "nginx" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation... | For me the problem here was spelling, believe it or not. I just had to lowercase the [CODE] name in the chart. I figured this out, by dumping my helm to a yaml using [CODE] and then applying that. When I did this is what I got Error from server (Invalid): error when creating "nginx-ingress-install.yaml": ServiceAccount... | 0 | 0 | 1,067 | 2023-04-14T15:34:07.120 | data_quality | devops.stackexchange.com | |
948,152 | Argument for providing 200 response on non-existent file | Does it ever make sense for a server to provide a [CODE] response when a [CODE] request is made for a non-existent file? Shouldn't the response always be a [CODE] ? Here's the response header: [CODE] Even though [CODE] says [CODE] we end up with a zero-byte zip file that gets downloaded. | Yes, there are cases where it makes sense to return a 200 response for a non-existent file. A 200 response indicates that the logical entity that the client was requesting exists. It is perfectly reasonable to return a response indicating that the logical entity exists even if a file doesn't exist so long as the existe... | 0 | 2 | 1,951 | 2019-01-08T21:57:24.450 | infrastructure | serverfault.com | |
387,548 | Emails forwarded via postfix get flagged as spam and forged in Gmail | I'm trying to setup a forwarding only email server. I'm running into the problem where all messages forwarded via postfix are getting put into gmail's spam folder and getting flagged as forged. I'm testing a very similar setup on a cpanel box and their forwarded emails make it through without any problem. Things I've d... | I believe reverse DNS should be setup by Datacentre where your servers are hosted and as per my knowledge this flexibility you cannot have in AWS , when you are sending emails to google from AWS postix google seeing emails coming from private IP (10.229.137.143 and 10.182.144.98).this is the reason why you emails from ... | 3 | 1 | 2,271 | 2012-05-09T17:25:49.297 | infrastructure | serverfault.com | |
29,468 | How can I inspect the security settings of a SQL Server Endpoint? | I am in the process of creating a TEST environment for our SQL Server development staff. In production we have 3 SQL Servers, [CODE] contains several databases that are mirrored to [CODE] . [CODE] acts as the witness in a "high safety with automatic failover" or synchronous configuration. I've used VMWare P2V to virtua... | After spending a portion of the day dealing with moving mirrored databases from server to server in our DEV environment in preparation for our move to SQL Server 2012, I came across this MSDN document that explains that ENDPOINT security is determined solely based on the type of account SQL Server is running under. If ... | 11 | 7 | 17,658 | 2012-11-29T00:16:03.493 | database_errors | dba.stackexchange.com | |
753,709 | Can cloud-config's write_files control whether a newline is appended to the file? | I'd like to use cloud-config in user-data on AWS to write a file, say /etc/myfile. My experimentation so far seems to suggest that if the [CODE] block is the last bit of the user-data, then no trailing newline is written to the resulting file, whereas if there are other bits of config following then a newline is append... | Turns out that it was the pipe ( [CODE] ) that caused it, combined with the fact that I had omitted the trailing newline on the input. So the solution is to omit the pipe, resulting in both files being written without a trailing newline. The pipe means "maintain formatting of the following block of text", which cloud-i... | 0 | 2 | 1,929 | 2016-02-03T12:30:33.737 | infrastructure | serverfault.com | |
72,451 | What is gcp and where can I find it? | I currently try to install a software package (unfortunately the support is very unhelpful for various reasons). The software has an install script which works quite well, however the script checks for the existance of some tools before it starts the deployment on the cluster nodes. The script uses gcp (it looks like a... | That code snippit is from GridFTP . [CODE] simply needs to be available and in your PATH, but those are specific to your site. Most clusters/Grid systems have a special location for the Grid utilities. Contact your cluster admin or your local GridFTP admin for details. | 0 | 2 | 2,808 | 2009-10-08T09:11:29.693 | pipeline_ops | serverfault.com | |
44,697 | Select query using a map | [CODE] For a given [CODE] what would be the select query to get the [CODE] ? Table values: [CODE] How to get the [CODE] i.e 1 which matches all the key value pairs of [CODE] ? | You should be able to use a [CODE] clause with an aggregate function and a [CODE] expression to get the result, similar to this: [CODE] See SQL Fiddle with Demo The [CODE] expression checks that the [CODE] and the [CODE] match the key-value pair that you are checking for, if they match then the [CODE] gets a total valu... | -2 | 2 | 86 | 2013-06-17T16:51:23.067 | warehouse_errors | dba.stackexchange.com | |
699,523 | Mail is getting stuck in Queue (MS Exchange 2013) | We are running Microsoft Exchange Server 2013. All of our internal mail is working fine and most external mail is good however, recently, we started having issues with sending & receiving to a few external domains. At first, our users complained that it can take hours for mail to get through so, I took a look at the Ex... | This was a ISP issue. Solved by logging a call with the ISP. | 1 | 1 | 36,274 | 2015-06-16T22:44:14.080 | database_errors | serverfault.com | |
694,666 | Apache - Multiple AuthLDAPURL | I currently have my vhosts setup to authenticate via LDAPS via Apache reverse proxy . I am wondering if it's possible to add a backup/fallback LDAP server if my primary one goes down. I tried working with AuthnProviderAlias after enabling mod authn_alias but I get the error when restarting apache. [CODE] Example of my ... | Got it to work. It's actually really simple. Just put the two LDAP servers in the same string: [CODE] | 0 | 0 | 937 | 2015-05-27T07:36:07.143 | database_errors | serverfault.com | |
370,461 | "Not all privileges or groups referenced are assigned to the caller." when connecting to Windows 7 Telnet | I'm trying to configure telnet server in windows 7. When I try make a telnet connection from another machine within the LAN, and I log in with the username and password of a administrator account, I get a "Not all privileges or groups referenced are assigned to the caller." error. I'm sure I missed out something but I'... | It sounds like you're running the Telnet Server as NetworkService. As per - http://technet.microsoft.com/en-us/library/cc770898 Your token will be filtered of administrative privileges based on: Whether you are using a local or domain administrative account The value of the LocalAccountTokenFilterPolicy registry key Wh... | 1 | 1 | 11,131 | 2012-03-16T14:41:11.233 | infrastructure | serverfault.com | |
655,700 | Why does passenger-install-nginx-module neither install Nginx nor implement Passenger support on Centos7 while the output indicates the contrary? | Introduction At the moment there are approximately 100 Puppet agents that connect to the Puppetmaster. Sometimes it takes a while before implemented changes on the Puppetmaster are picked up by the agents. Some information has been found that Passenger combined with a web server, e.g. Apache2 or Nginx could accelerate ... | I am the Phusion Passenger author. You are misunderstanding something fundamentally about Nginx. First of all, Nginx does not support dynamically loadable modules. This means that the only way to extend Nginx, is by recompiling Nginx from scratch, with certain modules included. In your mental model, you seem to think t... | 2 | 7 | 7,669 | 2015-01-01T02:36:04.940 | pipeline_ops | serverfault.com | |
42,138 | found \N in my data does not count as missing values in r | So scrolling through my columns I find \N embedded. I need to count them, but I get an error. Would it be considered a missing value, it's new to me. [CODE] Error: unexpected input in "country $headOfState[country$ headOfState==\" country $headOfState[country$ headOfState==\N] $headOfState[country$ headOfState==\" | The reason its shorws an error, bacause '\' is a part of base regex expressions in R. As states here : The metacharacters in extended regular expressions are . \ | ( ) [ { ^ $ * + ? So the comparisson like this [CODE] or this ( Its not a valid comparisson at all) [CODE] will throw an error. You need to "escape" the "\"... | 0 | 1 | 88 | 2018-12-05T02:31:36.110 | data_quality | datascience.stackexchange.com | |
201,728 | Trouble installing Postgresql | I'm trying to Install latest version of PostgreSQL and keep running into the below problem which states - Problem running post-install step. Installation may not be complete correctly Error running sc start "PostgreSQL 10 Server":Program ended with an error exit code Other important information Using windows 10 I'm not... | Running an installer without administrator privileges is seldom succesful. Why don't you follow the steps outlined here: https://stackoverflow.com/questions/26441873/starting-postgresql-and-pgadmin-in-windows-without-installation#26441939 | 1 | 2 | 6,190 | 2018-03-19T20:18:22.820 | database_errors | dba.stackexchange.com | |
972,273 | CWP CentOS 7 hostname ssl not working? | My Site.. https://sajjadhsagor.com works with SSL fine.. but when i visit https://sajjadhsagor.com:2087 and try to login to admin SSL doesn't work anymore.. error says SSL issued to server1.sajjadhsagor.com which is my hostname server... I am using Let's Encrypt Auto SSL.. What i need to do? Please guide me through...T... | It would appear that you are using a self signed certificate for the admin area. You should be able to configure whatever is serving it to use the same certificate as you main site which should then solve the issue. | -1 | 2 | 936 | 2019-06-20T17:28:07.117 | infrastructure | serverfault.com | |
50,877 | Wireless to Wireless Transfer Slow on a Linksys WRT54GL | The Situation: When I try to transfer a file from one computer to another that are both connected via wireless on a WRT54GL ( in a office ) with dd-wrt firmware I often get bad speeds. In generally they average around 100 kilobytes a second. Either computer can download via wireless from the Internet at at about 2 mega... | No, that router should be pretty quick between computers on the network. I've never had that sort of issue using that firmware. I would suggest starting with a fresh firmware install of DD-WRT without playing with any of the settings. Leave the network unprotected and test out the speeds. WPA can cause slowdowns if you... | 4 | 3 | 4,482 | 2009-08-06T12:30:32.173 | infrastructure | serverfault.com | |
206,048 | Is a Factory class still a Factory class if the objects it returns already exist? | I can't decide what to name my class. So far I've labelled it up as a Factory, but I am not sure. Here is the class. As you can see, it exists to return a concrete type of an Interface ( [CODE] ) based on the argument supplied to the getter method ( [CODE] ): [CODE] Now, I understand that a Factory class accepts argume... | This looks to be more related to the Service Locator pattern. While you are not using JNDI as the registry, your class is acting as one. This is not a flyweight pattern though. It doesn't look like this implementation is meant to save memory. It is meant to look-up instances to "services" based on an Enumeration. | 2 | 3 | 385 | 2013-07-25T14:51:43.873 | api_errors | softwareengineering.stackexchange.com | |
262,783 | Update value in same view using CASE expression | I am creating a view where i have daily data of different items and each item has a state. I created a column that shows what the column was yesterday using [CODE] Now I want to count how long the state has been the same value and im doing so with this: [CODE] This is working properly but I need to find a way to set th... | Schematically [CODE] For multiple entities add proper partitioning / partitioning level. | 0 | 0 | 43 | 2020-03-27T11:35:59.473 | warehouse_errors | dba.stackexchange.com | |
283,236 | “ORA-03146: invalid buffer length for TTC field” after upgrade from Oracle 12 to 19c | We are experiencing problems with updating a table record BLOB column. We get the "ORA-03146: invalid buffer length for TTC field" error. We basically are saving e.g. PDF attachments to the DB. The problem occurred after the upgrade from Oracle 12.0.1.2 to 19c (19.3.0.0), now the error is occurring on a larger scale. W... | JDBC application fails with ORA-03146: Invalid Buffer Length For TTC Field After Database Upgrade to 19c (Doc ID 2729562.1) Updating a 12c database to 19.6 can result in this issue. In this particular case, the database was upgraded from 12.1.0.2. The ORA-3137 [3146] is a protocol exception which means that the databas... | 1 | 1 | 12,840 | 2021-01-14T13:42:41.307 | database_errors | dba.stackexchange.com | |
237,955 | How can I hide my signature in a program? | We have a university programming course and fellow students are asking some programming questions in our Facebook group. I'm a little hesitant to share all of my programs, especially if it's something cool for one of the assignments, since these are looked at by the TAs and they might notice if somebody has the same pr... | Use your signature not in your code, but in a publicly accessible development log. Publish your code at a public Github repo. Include a Docblock with your name in the "Author" field. This way there's a public record of you being the actual author of the program. This may not qualify as "hiding", but in my opinion, it d... | 31 | 44 | 7,907 | 2014-05-05T09:41:22.967 | api_errors | softwareengineering.stackexchange.com | |
307,363 | Windows Server 2008 R2 SP1 RC Expiration | I have a licenced version of Windows Server 2008 R2. I installed some time ago the SP1 RC of Windows Server 2008 R2. No problem until yesterday. Now, every 2 hours, my computer show me this blue screen and have no choice other than rebooting : 14 days ago, I knew I had to unninstall the RC of the SP1. Unfortunately, lo... | Microsoft does not support upgrading RC to RTM. So your only supported method is to reinstall. That being said, if you'd like to do an unsupported upgrade you should be able to boot off the RTM install disc and choose the upgrade option. Results may vary. Backup your data first. Don't blame anybody except yourself if i... | 2 | 5 | 280 | 2011-09-01T19:49:27.143 | database_errors | serverfault.com | |
1,048,464 | Galera Manager on none Amazon environment | I want to create a MariaDB 10.4 multi-master cluster on four Ubuntu 20.04 nodes. As you know Galera manager provides a web GUI interface for the cluster and it's handy for monitoring and add or remove nodes. But because I am not using Galera Manager on the Amazon ec2 platform, I encountered some errors, and here is wha... | In point 6, the complete deployment logs are missing -- can you reupload that? At point 7, have you thought about clicking to start the node? Logs are empty, but the starting happens at the top right hand column, in the pull down, where you see UNKNOWN and the dots ... | 1 | 0 | 228 | 2021-01-04T06:36:36.503 | pipeline_ops | serverfault.com | |
1,091,710 | Windows 10 ignoring routing table | I have a Windows 10 PC that has 2 network interfaces. One of those interfaces goes into the main LAN where the fileserver, dns and the router for the internet are located. The second interface is a tiny LAN which has an PLC and an HMI. They both are physically in the same LAN but on different subnets (sorry, can't chan... | So, after not finding an easy solution I decided to programm my way around the issue microsoft has created by badly messing up routing on windows. I'm nur using classic ping with the parameter -S instead of the cmdlet test-connection in powershell the ping-part of my code now looks like this: [CODE] For this I just nee... | 0 | 1 | 876 | 2022-01-31T08:16:09.053 | infrastructure | serverfault.com | |
874,677 | CISCO RV042G Gateway to Gateway - Forward WAN traffic to remote VPN LAN device | Two RV042G routers. Both use only the one WAN1 port. Cisco B is connected to the Internet on a 4g dynamic internet connection that is behind a (3rd party) NAT wall. Cisco A is on a public fixed IP address. Cisco B establishes the VPN connection with Cisco A. Currently, there are no problems pinging the networks from bo... | After many many hours of research, it appears the RV042(g) is not capable of this process. However, i did find a nice work around. I have spare RV's. On the network that has the public open IP address, i have a RV042 as the primary. The inside router to forward back MUST be an RV042G or a RV042v3. I setup the primary r... | 0 | 0 | 765 | 2017-09-20T16:15:52.367 | infrastructure | serverfault.com | |
1,040,948 | Pure-FTPd: randomly fails with restricted iptables INPUT | I've installed Pure-FTPd on a Debian 10 machine that runs [CODE] with de default [CODE] policy for the [CODE] chain. The [CODE] chain is set to [CODE] . Problem: if I try to connect an FTP client it only works sometimes . It seems to randomly be able to list folders or fail. Usually retrying a new connection will work.... | I managed to track this to a configuration issue. Apparently setting ports at [CODE] isn't enough. With further analysis with [CODE] I found out that pure was trying to use ports outside the ranges allowed in the firewall. To fix this I just to create a file at [CODE] and also set the port range there. | 0 | 0 | 250 | 2020-11-02T11:12:33.153 | infrastructure | serverfault.com | |
1,021,609 | Apache dynamic paths with SSLRequire and dynamic aliases | I have Apache/2.4.6 (Red Hat Enterprise Linux) serving some content to different customers based on their SSL certificate that we issue out. If the [CODE] matches the OU in client's cert, then they will be allowed access to [CODE] on the webserver. Each customer's cert contains a unique OU that matches folders under [C... | [CODE] I don't believe you can't use a server variable (using [CODE] syntax) directly in a regex like that (it's not valid regex syntax). Maybe try something like the following instead: [CODE] Where [CODE] is an internal backreference to the first captured group (ie. [CODE] ) which matches against [CODE] . [CODE] is ju... | 2 | 1 | 1,234 | 2020-06-16T01:15:14.057 | api_errors | serverfault.com | |
204,752 | How to copy wt files from another mongo instance? | I received a copy of mongo dbpath directory copy from a peer. I copied entire content to my local dbpath with an intention to work on the collections. However, my local is not recognizing the databases or the collections. Am I missing anything? | The [CODE] file is a crucial metadata file that keeps track of the state of the whole database and all the [CODE] files. Hence, the content of this file is deployment specific, and not transferable to other deployments. It is not possible to recreate the content of this file. If you have a known good backup of the whol... | 4 | 3 | 9,421 | 2018-04-24T03:45:45.653 | database_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.