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
535,343
Rescue OS with VNC on by default
I have a linux box that has been running headless as my home server for a year. I've decided it's time to upgrade the OS and do some other things, so I took it out of the closet, disconnected the data HDD and attempted to turn on. Unfortunately it didn't boot or at least doesn't want to connect to the network. Before I...
You can customize system rescue cd and add vnc server autostart. If you just want one vnc session, you just need one display. For static network configuration you can just use something like the following [CODE] and you will be able to connect with “vncviewer 192.168.124.10:0“.
-1
1
1,676
2013-08-31T11:56:19.390
infrastructure
serverfault.com
355,339
shell script + match MAJOR and CRITICAL strings from log file
I need to match lines that have MAJOR and CRITICAL strings that comes after the word ERROR: please advice how to do that with one awk or sed command? [CODE]
This can be done using [CODE] like: [CODE]
0
2
106
2012-01-31T09:45:48.550
infrastructure
serverfault.com
395,306
Struggling with cyclical dependencies in unit tests
I'm trying to practice TDD, by using it to develop a simple like Bit Vector. I happen to be using Swift, but this is a language-agnostic question. My [CODE] is a [CODE] that stores a single [CODE] , and presents an API over it that lets you treat it like a collection. The details don't matter much, but it's pretty simp...
You're worrying about implementation details too much. It doesn't matter that in your current implementation , [CODE] relies on [CODE] (or whatever other relationships you might have): all you should be caring about is the public interface. For example, you can have three tests: That a newly initialized object has [COD...
24
66
7,357
2019-07-28T20:30:11.230
api_errors
softwareengineering.stackexchange.com
19,241
Multidimensional Dynamic Time Warping Implementation in Python - confirm?
I believe that I implemented MDTW in python here but I don't know if I did it correctly. The results seem intuitive. Can someone look at this code and tell me if you see anything wrong? A lot of the papers I read on the subject kinda go over my head, but this just takes the mse of all column vectors in matrix s1 and s2...
Could the difference be caused by the step pattern you are using? Dtw in R defaults to the [CODE] step pattern. Explanation of the step pattern from Toni Giorgino's paper : symmetric2 is normalizable, symmetric, with no local slope constraints. Since one diagonal step costs as much as the two equivalent steps along the...
2
1
5,843
2017-05-26T16:41:32.213
data_quality
datascience.stackexchange.com
548,611
Virtual Server HDD shrinks without apparent reason
We have a virtual hosted Linux server, and in the last few months every now and then the HDD shrinks from 400GB down to the exact byte count that is in use. All existing data can be downloaded and displayed without a problem, but we can't upload or edit any files because of the "full" hard drive. Here is a screenshot, ...
My guess is that they use OpenVZ or something similar where your root file system is just a directory on the host machine and not a container, making it absolutely dynamic. The problem is likely that they overcommit the disk space and when the host file system runs full, so does your root file system. You can't do anyt...
3
3
82
2013-10-25T10:06:36.597
infrastructure
serverfault.com
425,257
Where to put a deffiniton of an external data provider in a DDD/Onion Architecture application?
Consider that when working on an Application which is modelled using DDD and implemented using Onion Architecture, you come along a following business case: The Application, as one of its features, allows you to write Movie Scripts. When working with a given Movie Script, you have Characters, to which you can assign Ac...
You put an interface in the lowest layer that references it, simple as that. Interface is not an implementation, it is not doing anything, which means that the question "what are objects in this layer are doing" is irrelevant. In other words, you are directing behavioral question towards a structural piece of code. Try...
1
1
876
2021-04-08T19:34:30.473
api_errors
softwareengineering.stackexchange.com
326,592
What to use for software-based shared file storage?
The situation: setting up a load balancer Currently we have all of our servers (running CentOS Linux) in pairs in our data center: each server has a mirroring server. We don't employ any load balancing at the moment, so serverA gets all traffic and when it fails (hardware or software) we can quickly switch to serverB b...
DRBD is great. The good things: It does a magnificent job at replicating data DRBD has in a couple of cases prevented disaster, where it has discovered that the volume was already mounted on the other node, which the raw volumes we get from a SAN are unable to tell us. Heartbeat already has great support for DRBD. The ...
5
1
1,762
2011-11-01T09:59:45.257
database_errors
serverfault.com
907,681
Conflict when editing new records in Access connected to PostgreSQL by ODBC
I have a setup with Microsoft Access 2010 as a front-end and PostrgreSQL server 9.5.12 running on Linux as a back-end. Windows PC has PostrgreSQL ODBC driver version 10_02_0000 (currently latest) installed. The connection is Unicode-based, settings are default, with the exception of [CODE] disabled and [CODE] enabled. ...
I found the answer here: https://stackoverflow.com/questions/25088970/ms-access-odbc-with-postgresql-table-write-conflict My problem was caused by a [CODE] field that had [CODE] constraint. Because timestamp in PostgreSQL by default has a higher precision compared to Access, automatic update via internal function [CODE...
2
2
607
2018-04-14T23:09:03.557
database_errors
serverfault.com
798,869
Ubuntu server hang with ascii NUL characters in syslog and other files ( ^@^@^@… )
We are experiencing occasional hangs with ubuntu 16.04 LTS (kernel 4.4.0-34-generic) and we wonder if somebody has some clues how to get to bottom of this. The log looks like this: [CODE] The problem only happens with machines with SSD disk attached. The memory and disk is checked and 100% ok. The problem happens only ...
What file system are you running? Are journaling data or just metadata? It might be that the log file size (metadata) is extended and the change is journaled, but the log contents (data) isn't written yet. If the server then crashes or reboots the metadata is replayed from journal, but there is no data to recover so em...
7
0
1,056
2016-08-24T15:42:43.067
infrastructure
serverfault.com
1,065,052
Reasonable VMware Memory Overcommit Ratio?
As a "rule of thumb" what is considered a balanced VMware memory overcommit ratio? I could find official guidelines for vCPU:pCPU ratio but not for vMemory:pMemory.
1/1. Do not overcommit memory.
0
1
480
2021-05-29T04:20:15.760
infrastructure
serverfault.com
31,245
Queries getting stuck on very simple COUNT queries
process list: [CODE] The table only has around 2500 rows, only ~1000 need to be scanned. Table is InnoDB. This started happening last night. I was not able to run [CODE] but [CODE] ran ok. I can't run any selects manually. When it happened last night I had to kill the mysql process and let it do crash recovery but it's...
I know this is just a guess but here it goes... I think your InnoDB is underconfigured. Please run the follolwing: [CODE] and post the output into the question. Since you are using Percona Server, you must raise the following: innodb_read_io_threads Default for MySQL is 4 Default for Percona Server is 8 Please raise it...
2
1
3,058
2012-12-31T17:05:39.330
api_errors
dba.stackexchange.com
661,577
Debugging a chdir(2) syscall
I have often faced various file system permission problems on Linux. And now with SELinux a bit complicated. I am searching for a generic way to debug this. In my particular case I have a chdir(2) syscall that fails with: [CODE] With ftrace I have a more detailed graph, but I am missing the arguments and the return val...
Some denials in SELinux (sometimes frustratingly) are not audited in the audit log. I would be interested to know if you also experience this issue of no data occuring if you run [CODE] . This will change the rules of SELinux to even audit [CODE] rules. Note it can be very chatty keeping this on. Also note that DAC (tr...
1
2
205
2015-01-22T15:20:40.937
infrastructure
serverfault.com
221,696
How to represent a geometric line programmatically?
I have been trying to design a library to do some simple geometric computations in an Euclidean space regardless of its dimension. While it is easy to represent points, vectors, hyperspheres and hyperplanes in a generic fashion, I am still unable to find a generic way to represent a (infinite) line, even though lines s...
I think you're on the right track with your parametric equation. What you have there is the vector form of the line equation. [CODE] Where R is [x0, y0, z0] and V is [a, b, c]. You just need to normalize your equations. You would do that by finding the value of R such that | R | is at a minimum, which occurs when R is ...
5
11
3,986
2013-12-17T23:33:12.983
api_errors
softwareengineering.stackexchange.com
968,402
Load specific php module for directory - Apache 2.4 CentOS 7
Inside /etc/httpd/conf.modules.d/ I have a conf file called 10-php54-php.conf which I use to specify what PHP version I want to use. I can freely switch between PHP 7.2 and PHP 5.4 by commenting line 2 and uncommenting line 3. Is there a way to specify that I want to use PHP 5.4 in a specific directory and leave the re...
You can't load two different PHP modules at the same time. Full stop. This is why you must use php-fpm to run different PHP versions.
1
3
7,043
2019-05-22T11:57:40.280
infrastructure
serverfault.com
336,778
Email Solution: Exchange vs. Hosted Exchange vs. Google Apps
I was hoping someone could chime in with some information or experiences with a email system. I am working at a small business with about 25 users. We currently have a Windows Server 2008 R2 box acting as domain controller, and an email system that is simply a bunch of POP3 accounts. Everyone's computer runs Outlook (o...
The key is this: [CODE] You really need to use IMAP for that use case. And if you don't have needs beyond email, then any mail server packages that or ISPthat supports IMAP will do just fine (Google Apps does support it, but you won't have to go with them for just that). Migrating the email could be simple as: 1) conne...
0
1
270
2011-12-01T20:21:49.293
hadoop_errors
serverfault.com
124,255
User unable to delete folder / files "File in use by another user" Server 2003
I am administering a standalone Windows 2003 Terminal Server with no domain membership. Occasionally (about once a week or so) a user will attempt to delete a sub-folder in a Shared folder and gets denied with "File in use by another user". I tried checking the shared folder snap-in and that folder is not open. She has...
The tool I use for such occasions is unlocker , which will allow the files/folders to be deleted. Of course that doesn't answer the question of why the permissions appear to be ignored.
0
0
1,425
2010-03-19T13:28:53.113
infrastructure
serverfault.com
45,995
vars.get('var_name') in groovy outputs wrong value in JMeter
I've defined a variable in JMeter. But when I try to access the variable from [CODE] script it gives [CODE] instead of [CODE] , if I put [CODE] it throws an exception javax.script.ScriptException: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '10' with class 'java.lang.String' to clas...
Since [CODE] returns a [CODE] you cannot store that into a [CODE] variable that's the reason exception is thrown You should convert the string to int using below way [CODE] Hope this will be helpful.
0
2
3,243
2020-10-18T14:18:36.827
data_quality
sqa.stackexchange.com
648,910
Apache proxy to Glassfish - How to supress subfolder in URL?
I've got a single linux server running Apache/2.2.24 running both HTTP/HTTPS along with a Glassfish 3.1.2 server listening on port 8080. Glassfish runs a single deployed application which has subfolders for separate websites, e.g.: [CODE] In the Apache [CODE] file all traffic to port 80 of each Virtual Host is re-writt...
In the Apache [CODE] file I change the rewrite rule as such: [CODE] In the [CODE] file I trimmed it down to: [CODE] [CODE] [CODE] This first set of Proxy statements was added because Site2 relies on CSS and Image files from the rootSite in order to render pages. [CODE] [CODE] The second set of Proxy statements hooks th...
0
0
1,114
2014-12-03T16:25:54.677
infrastructure
serverfault.com
229,619
Is it bad to have index space larger than data space?
Often I need to run queries against large tables that don't have the right index. So I ask the DBA to create such index. The first thing he does is look at the table statistics and see the index space size. Often he would tell me to find an alternative solution because "the index is already larger than the table". He f...
Think of index design like a sliding switch. You can move this red triangle switch knob anywhere along the line that you want: I don't usually measure it in terms of size - I usually think of it in terms of index quantity, but size would be fine as well. It sounds like your DBA thinks the switch is too far over to the ...
33
50
22,683
2019-02-13T13:02:39.960
database_errors
dba.stackexchange.com
505,182
Configure postfix to DKIM-sign emails generated from the system
My web hosting server features a Postfix setup up and running. That postfix is also open with [CODE] on port 587 for authorized users (only me, myself and I right now) to send emails to any domain after signing it with DKIM. Every email I send via Outlook authenticating myself is fine. All DMARC reports display no erro...
You added dkim SIGNING to submission port only. Postfix handles smtp separatly submission from pickup (mails submited by sendmail command are entering postfix via pickup) In postfix You should use dkim milter in main.cf [CODE] First line is for SMTP submission (port 587) Second line is for mails entering via pickup One...
2
3
4,943
2013-05-05T19:52:57.783
infrastructure
serverfault.com
182,970
Are there good practices for distributing/deploying linux KVM images?
I have a web application which requires quite a lot of dependencies. I'm currently evaluating the use of kvm images to help our users installing this application on their servers. However we have some concerns with the possibility to customize these images, mainly with network and storage. Potential network problems: M...
You might well be better off creating it as a full-stack install including the OS and all dependencies, on an OS that you know it works well under. Then let the end user decide if they want to install it standalone or as a VM guest on KVM, VMWare, Xen, or whatever. The only thing you'd gain over this with a KVM image i...
3
1
1,086
2010-09-20T21:04:48.287
hadoop_errors
serverfault.com
190,954
Error in using sp_describe_first_result_set with Restore
Is querying the backup metadata with [CODE] system sp supported? For example the query: [CODE] returns NULL for each field. error_message field: The metadata could not be determined because statement RESTORE HEADERONLY .... does not support metadata discovery. error_type_desc field: UNSUPPORTED_STATEMENT Is there a way...
The metadata could not be determined because statement RESTORE HEADERONLY .... does not support metadata discovery. Error message tells you clearly that [CODE] is unsupported statement, it does not support metadata discovery. So there is NO WAY to make this work. It is not implemented. UPDATE There is a solution in the...
0
1
1,246
2017-11-15T07:07:44.597
database_errors
dba.stackexchange.com
29,283
Better approach to a complex test and report file downloads using python
I've created a very complex script using Python3 and YAML (I keep all the configurations in YAML) that in effect tests all potential file downloads for my environment. Sort of end to end test. Due to specific patenting behind, I can't share too much of code, but I am having around 37 different property combinations tha...
Just the first thought without a deep dive into the problem: use [CODE] statements instead of [CODE] and then [CODE] , e.g.: [CODE] use [CODE] testing framework as it is the most popular, advanced and feature-rich at the moment, understands the "assert" statements and have a test discovery which may allow you to leave ...
2
3
102
2017-08-30T13:18:59.630
api_errors
sqa.stackexchange.com
85,729
How to collect info about unseen bugs given user's comments/feedbacks?
I have a dataframe which looks like: [CODE] And I want to figure out some data science approach to pluck out information about what users are struggling with and which issues appeared how much and stuff like this. Even some simple output would be good for me so that we know which parts of app to focus on more. Like for...
It sounds like you are looking for an unsupervised learning approach (meaning you don't need to manually label your data). Something like k-means clustering could work well. This would allow you to group you comments into k distinct clusters. You could then view counts of comments in those clusters and explore the clus...
2
2
32
2020-11-21T00:52:38.187
data_quality
datascience.stackexchange.com
509,797
Windows Server 2012 DNS: default forwarders disables root hints
I've set up a test domain to experiment with windows server 2012. Initially I kept my test machines on a isolated network, but today I installed a pfsense machine to route some traffic to the internet. Upon establishing the internet connection I realized that recursive DNS lookups did not work in my brand new domain, e...
Ouch! Use of the [CODE] IPv6 address block (which used to be the site-local addresses) has been deprecated in September 2004 . Those addresses should never be used anymore, and certainly not as a default. This is a bug in Windows Server 2012. Yes, you should definitely remove them.
2
2
2,967
2013-05-22T08:09:42.593
infrastructure
serverfault.com
1,106,490
Docker internal name resolution fails
For quite some time I use docker successfully with a stack defined with a compose file like this: [CODE] Prometheus accessed the exporter service via it's service name [CODE] . But now it stopped working. I suspect some update of one of the components to be responsible but am not able to identify what it is. What I alr...
After going through all the steps again, I finally found the problem myself! If I create the network as [CODE] (see docker documentation ), it works like expected: [CODE] Actually, I don't really understand why it needs to be internal, and why it wasn't and worked before, but at least now it works.
1
1
811
2022-07-25T04:53:59.607
pipeline_ops
serverfault.com
716,330
KeepAlive in Apache 2.4 interfering with form submissions
I have just upgraded a server to Debian Jessie, which includes Apache 2.4.10 (was 2.2), and PHP 5.6. Now, SSL sites won't submit forms in some circumstances on IE11 and iPad Safari (not sure about desktop Safari). Firefox and Chrome are both OK. When it fails it produces a IE error page "This page can’t be displayed" i...
I encountered exactly the same issue (spent quite a few days pulling my hair on this one!). Turns out it is a bug in mpm-itk (cf. http://lists.err.no/pipermail/mpm-itk/2015-September/thread.html ). This bug is now corrected in the latest version released yesterday. You can download this new version at http://mpm-itk.se...
2
3
2,723
2015-08-24T14:31:32.067
api_errors
serverfault.com
423,001
Delete filesystem data associated with database record by delete hook, or internally in service logic?
Let's have many rows in the SQL database where every record has an [CODE] property that holds the path to file in the filesystem. Many database libraries have the ability to set-up hooks that are called right after the row is removed. Which one of the following patterns is better? Call hook for every removed row (even ...
Neither. Better would be not to use file system directly, but to allow database to handle the files as binary fields, or so called BLOBs. Transactions File systems are not transactional. If you use transactions in your logic and some transaction fails, you can be sure that database has rolled back any changes you have ...
0
2
92
2021-03-04T17:02:51.200
api_errors
softwareengineering.stackexchange.com
837,585
unable to filter badly-formatted messages in syslog-ng
I am contacting you regarding an issue I have with syslog-NG. some of our devices (mainly HP switches and SANs) are sending syslog messages that do not respect the syslog RFC 5424 it seems. to give you a few examples : if I sniff the network interface of the server, we can see these "wrong" messages like that (as you c...
mmh I found a solution which seem to be working I am reusing the "local copy" destination as a source e.g : I have a regular log filter keeping a copy of everything : [CODE] the message is kept in that "local copy" being reformatted. I can then re-read from this file in a source and apply the filters to it. it's dirty,...
0
1
1,623
2017-03-10T22:27:00.737
infrastructure
serverfault.com
205,001
Why does UltraDNS use different top level domain names to run their DNS?
If you run a dig on someone using UltraDNS then you see that they use different domain names to run their DNS system - why? [CODE]
I'm a little surprised by your response. UltraDNS is following a very logical diversity scheme to provide superior redundancy for their clients. This far exceeds what most providers do. As far as the recursive server you are mixing different DNS rules together. A recursive server is seldom going to query the root for t...
0
0
1,937
2010-11-23T05:36:49.147
infrastructure
serverfault.com
322,944
How to handle thousands of messages to C socket?
I currently have a setup looking like this: [CODE] NodeJS and C-service runs on the same virtual server. The front end server may have hundreds of clients connected - each of these can generate hundreds of concurrent requests to the C-service, so the resulting requests to the C-service will number in the thousands. Fro...
Seems I was indeed looking for the wrong tool for the job. Well, maybe message brokers can do the job, but there is an easier solution: HAProxy . HAProxy has a built in max connections settings for it's backend servers and will queue messages until the backend server can respond. It also supports connecting to Unix dom...
5
0
1,210
2016-06-22T10:41:43.143
api_errors
softwareengineering.stackexchange.com
790,586
Group policy vs. Local group policy: which is correct for this use case?
Quick background: I've been working with group policy since Win2k; I'm in an organization that's just getting around to rolling out Active Directory. I've got a few cases where I need to provide access to a desktop session and a few applications on a descent number of workstations (~40). The users won't be individuals ...
The answer can be complicated: Security wise I would always prefer domain vs local policies, it also gives you a certain control for them You said that the users are local and they will not be in domain. Anyway I would prefer to have everything centralized but I can see why someone would do that - non connected worksta...
0
0
323
2016-07-19T02:42:46.780
infrastructure
serverfault.com
306,055
How to identify primary/secondary AOAG when running jobs in certain databases?
we have 3 servers, 1 one of them host a primary and a secondary aoag, 2 also hosts a primary ( secondary on node 1 ) and a secondary (primary on node 1). 3 is just DR. All of them have the same jobs. I'm trying to understand how can we run jobs on certain databases and determine if this database is primary on this serv...
The function you need to use is sys.fn_hadr_is_primary_replica (2014 and higher). You just pass it a database name and it returns either 1 or 0. I outlined one way to make SQL Agent jobs AG-aware by adding a job step using that function. https://www.patrickkeisler.com/2020/05/making-sql-agent-jobs-aware-of-availability...
0
1
1,131
2022-01-13T15:58:11.693
warehouse_errors
dba.stackexchange.com
1,082,122
Hacked file regenerates whenever it is deleted - ubuntu/apache2
Have just had a hacked website flagged by Sucuri There were a number of backdoor PHP files flagged, which I HAVE been able to delete However, the index.php file has a spam link injected in to the bottom of it. I've tried deleting it - which DOES work, but file instantly regenerates. I've tried changing permissions (it ...
With a 644 access flag, the write is comming from the user account, say [CODE] . Maybe you can play a trick on the lurking APT. Make the crazy move to give this file [CODE] (r-----wr-) permission and use an account from the [CODE] group to edit the file. If the change stays, setup file access auditing , revert to permi...
0
1
769
2021-10-29T17:47:09.920
pipeline_ops
serverfault.com
651,883
Puppet: How to skip restart during package upgrade until config is replaced?
I'm trying to get Puppet to upgrade our Varnish 3 servers to Varnish 4, a major update which requires an updated config file or it won't start. This is on Ubuntu 12.04. The Varnish module is essentially built with these classes and dependencies: [CODE] I've updated the Apt-repo URL in [CODE] , set [CODE] in [CODE] and ...
Why not replace the config file before installing the update? If it loads on restart, it won't use the "wrong" config file till after the update restarts it . . .
5
2
634
2014-12-11T14:43:22.603
pipeline_ops
serverfault.com
27,381
Full-text search in SQL Server on multiple tables fails
tl;dr version: A full-text search using FREETEXTABLE that worked fine on one column in one table produces 100% false postitives and 100% false negatives when the same steps are followed but the full-text index is on several columns in a view made of two base tables (the original table and a new one). Research reveals c...
Hi we can query multiple tables in a full-text search by using views ,but we some advantages and disadvantages . Here in your case you created view dbo.vw_recipe_search it seems your are not using it in altered procedure when i query it i am getting results as per intended [CODE] The problem in this approach is ranking...
2
4
6,986
2012-10-22T16:07:12.563
database_errors
dba.stackexchange.com
821,966
How to re-add a drive when RAID is in degraded mode?
I am running an unmanaged Ubuntu server and due to recent performance issue and sent a request to the provider only to receive the following response: "Dear Client, as requested we have checked your drives. Both drives pass a test without any error and do not show any critical value here. We noticed the RAID is degrade...
Adding Back a RAID 1 Member To add a RAID member back into the array, use: [CODE] For example: [CODE] If you check again using mdadm --detail , you'll see that /dev/sdc1 is shown as "rebuilding": [CODE] This means that the newly added member is being synchronised with the data on the other member; if you now check proc...
21
25
37,281
2016-12-21T06:55:57.423
infrastructure
serverfault.com
204,023
access denied after clean install of mysql with macports
I installed mysql5 and mysql5-server with macports started service fine but when i did mysqladmin5 -u root -p ping i get Enter password: mysqladmin5: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' after some rooting around the socket was missing so i did ...
I'm not sure what mysqladmin5 is, but I'm guessing it's the same syntax as mysql. If so, your problem is that you're using a space between the -u and the username and the -p and the password. That's why it says "Using password: NO". Try: [CODE]
-1
2
670
2010-11-19T17:48:30.913
database_errors
serverfault.com
675,696
Relay denied (454)
I make test with the website mxtoolbox.com with my smtp and received this error: [CODE] This is my postfix file master.cf : [CODE] This is my main.cf : [CODE] where myhostname.example.com is my real smtp domain. I do not know if it's because of this error, but I can not send emails to @outlook or @hotmail accounts
Is your domain (which from SMTP transcript seems to be [CODE] in [CODE] ? Because your [CODE] , which could lead to the mail being accepted, only includes localhost.hostname.domain.com and localhost. Edit: i was not trying to tell you to add the domain in the mydestination list. Since half your configuration is done vi...
0
1
904
2015-03-15T23:31:26.203
infrastructure
serverfault.com
444,936
Phantom read race condition keeping RDBMS in sync with external storage
Here's an interesting scenario, consider a cache with many buckets, and resources that can be shared between buckets: Bucket Highest to lowest priority Foo A, B, C, D Bar B, C, D Baz A In the example above Foo and Bar share the resources [CODE] ; Foo and Baz share [CODE] ; and Bar and Baz share no resources. Problem st...
In PostgreSQL, all concurrency control anomalies can be handled by true serializability. It's a form of optimistic concurrency control. PostgreSQL determines whether there's a risk that one transaction steps on the foot of another, and rolls back one of the transactions due to a serialization anomaly. Just execute: [CO...
1
1
77
2023-04-09T17:37:42.190
api_errors
softwareengineering.stackexchange.com
53,231
Have you ever had to sacrifice programmer integrity for customer satisfaction?
I mean did you ever reluctantly adopt a less than ideal solution because management told you that "customer is always right"? I'll go with mine first. A few years back, me and my team developed a website of quizzes. Users create quizzes, answer them, rate/tag/vote/share etc. If a quiz had more than 10 questions in it, ...
To answer some actual questions: Is this a good thing to happen? No, not in that way. I believe customer satisfaction to be the most important thing. It is the ultimate way to determine, whether a project is a success or not. When I go to a bar and ask for a beer, and they bring me back a tea, because it is not only ch...
4
2
573
2011-03-01T08:40:47.060
api_errors
softwareengineering.stackexchange.com
939,056
GCP Https Load Balancer SSL Certificate
I am trying to create a Https load balancer using yaml and Jinja files on GCP deployment manager. But I am not sure how to provide SSL certificate. In the "sslCertificates" of "compute.v1.targetHttpsProxy", it expects the value to be URL to sslCertificates. How do i create an URL for the SSL certificate. Earlier, I was...
The SSL certificate is a separate resource that you can create through the GCP console, gcloud sdk, API or deployment manager template. If you already have the SSL certificate created - find the name of the SSL certificate using [CODE] and get its URL with [CODE] . The URL will look like - [CODE] Once you get the SSL U...
0
2
579
2018-11-07T21:43:07.723
pipeline_ops
serverfault.com
462,114
Is it secure to expose LAN to bridged DSL modem?
I connected my router and DSL Router (in bridged mode) together like this: (click for full image) Strange setup, I know. :) The reason was I wanted my DSL router to continue to work as a switch and WiFi AP, while it's in bridge mode and let router on second floor to handle the rest (traffic control/QoS, port forwarding...
However I'm concerned about the security with this setup You should be. That being said am I exposing my whole network to the internet? No, you are not. But you are exposing your network to your ISP's infrastructure. You are using a bridge to connect your internal network to your ISP's network without any kind of traff...
2
3
555
2013-01-01T17:18:49.883
infrastructure
serverfault.com
440,073
File system prefer to write low LBA first?
Maybe the title is confusing, but let me explain a little... Our mysql servers (on xen virtual machine) sometimes generate huge tmp files on disk. So we need a big tmpdir to store them. And we decide to mount tmpdir to SSD for better performance. But as you know SSD is somehow expensive and mysql does not always genera...
You want to combine the low cost of spinning disks with the high performance of SSDs? Yes, it can be done: hybrid storage pools are a great idea. However, I don't think your plan to reinvent hybrid storage is a good idea. Hybrid storage is implemented beautifully in a filesystem called ZFS. You can use ZFS for free, to...
1
1
173
2012-10-19T05:35:00.350
database_errors
serverfault.com
487,594
migrating imap using imapsync
i have 2 centos vps, dovecot, sendmail and ssl are installed on both servers, i want to migrate the mail server from [CODE] to [CODE] so i installed imapsync on both servers. I followed this tutorial , I use the ip address of my servers, instead of the hostname. When i do: [CODE] I get: [CODE] If i use [CODE] option an...
a) For the "Connection refused" issue, change dovecot configuration to allow IMAP on the default port 143. b) For the "dualvar is only available" issue see: https://alexcline.net/2012/02/02/message-dualvar-is-only-available-with-the-xs-version-of-scalarutil-error-in-centos-5/ From dovecot to dovecot rsync will be faste...
0
2
3,599
2013-03-13T21:35:03.593
infrastructure
serverfault.com
989,286
Proxy to portainer via nginx
I use nginx to reverse proxy to multiple dockerized apps, which work. But I can't get portainer working. My nginx config includes: [CODE] The page does not load correctly (css and js don't load). The nginx error log: [error] open() "/var/www/html/apps/main.11b0c8b84d24581.js" failed (2: No such file or directory), requ...
By following the config from https://portainer.readthedocs.io/en/stable/faq.html , i was able to connect to http://127.0.0.1/apps/portainer/ You are missing the part that manage websocket connections my [CODE] for ngnix [CODE] My [CODE] [CODE] UPDATED after comment Because nginx do the dns resolution at startup , you w...
1
2
5,857
2019-10-24T13:56:07.517
pipeline_ops
serverfault.com
253,121
Profile files *refuse* to delete
I have a problem with some profile files that refuse to be deleted. I need to nuke these files so that one particular user can actually log on to this terminal server. Taking the server off-line, and yanking out the files with a live CD. (which would be my normal recourse) is out the question as this baby runs 24/7 ser...
I use Unlocker to do this.
0
1
385
2011-03-29T11:09:38.850
infrastructure
serverfault.com
438,321
What is a common practice to refer to other datas within a data oriented design?
This question has been in my mind for a while now, especially in the context of high performance, interactive 3d applications. Just want to find out what is the general practices in DoD for referencing other objects. Let's take an example: Animations that need to update skeletons and an ECS that knows which animation t...
Data Structures/Allocators With Holes to Keep Stable Indices/Pointers Typically a high-performance ECS where element removal is very common [*] will use a random-access sequence with holes in them to make removal of an element a constant-time operation. Vacant spaces get reclaimed upon subsequent insertions, similar to...
1
2
118
2022-04-29T12:12:12.730
api_errors
softwareengineering.stackexchange.com
1,124,037
LUKS Encryption
I recently cloned my 250GB disk, installed with Fedora37, encrypted with LUKS. Currently approx. 20 GB disk space is used, the rest is free. I went ahead and booted from a fedora-live-usb and cloned the disk with dd to an external drive, plus, ive added gzip so i do not end up with an unnessesary big image. Example: [C...
Only written data is encrypted, unused data in a LUKS based system is still zeros until used - therefore it's potentially compressible.
0
1
153
2023-03-01T13:00:23.673
infrastructure
serverfault.com
1,022,945
Unable to access computers on VPN
Recently switched ISPs; ISP modem is in bridge mode connected to the WAN port on my Synology MR2200ac. All works well except I cannot see client computers on a VPN that starts with 192.168.x.x. My own IP is 192.168.4.x, so I don't see why there is a conflict. Some clients are 192.168.54.x, 192.168.1.x, 192.168.70.x. Th...
Sounds like you may need static route(s) to the VPN subnets with a lower metric than the VPN interface. Ie; [CODE] Where 192.168.4.2 is your physical eth ip, metric is a number lower than your VPN interfaces an IF is the physical eth ID (in windows).
0
0
64
2020-06-25T18:10:28.693
infrastructure
serverfault.com
339,191
OpenVPN client connected, but cannot ping inside VPN address range
I set up OpenVPN 2.1.3 on Windows 7 following the OpenVPN Easy Windows Guide . The client (another computer) can connect without problems and gets the desired IP x.x.x.6/255.255.255.252 in the VPN IP range. The server itself is x.x.x.1/255.255.255.252. In my scenario, I only have clients which need to connect securely ...
Try running [CODE] with Administrator privileges. Without them it couldn't write proper routes. Also try playing with --ip-win32 config option. And please show output of [CODE] in cases of working TAP connection and non-working TUN connection.
0
7
23,864
2011-12-08T22:40:21.790
infrastructure
serverfault.com
205,965
Is there a way to include an assertion about the expected number of rows?
I have a function that abstracts updating event data: [CODE] It seems redundant separate [CODE] lookup query from the [CODE] query. However, combining these two queries requires asserting within a query that timezone exists. Is there a syntax to assert how many results a query returns? Something that would allow me to ...
It is not an assert, but you can just have the query return the empty string (rather than NULL) when there is no match: [CODE] when invoked with empty timezone query gives: [CODE]
1
1
759
2018-05-06T10:25:35.087
warehouse_errors
dba.stackexchange.com
279,010
Is an Apache use TCP port on each connection?
Our system admin said "Apache use a TCP port on each connection" so A server can serve 65534 (MAX) simultaneously. is it Right? I think Apache use only 80 or 443. But , he use many file descriptor (not ports) isn't it ? [CODE] is max I think Could you give me some information about it ?
I think your system admin is slightly confused about what exactly a port and a file descriptor are. Each server has 65536 ports numbered [CODE] through [CODE] . A program can listen on a port for requests from clients and process them accordingly. Only one program can listen on a port at any given time. In this regard,...
1
5
1,047
2011-06-10T03:58:04.653
infrastructure
serverfault.com
303,231
A condition on an argument used in multiple calls of a method: enforced by caller or by the method?
Let's assume I have an object a of a class A . It has a method that needs an argument in form of another object of a particular type - but the argument should also be in particular state, because the operation performed by the method (let's say it's querying an external service, but it could be something else) requires...
I guess you need to introduce a simple DTO into your scheme. Take your agrument, check if it is in a valid state and put that state into a new DTO object. In your last example, you can do that inside your [CODE] method. This way you will no longer need any state checking because this DTO is always in a valid state by d...
3
1
134
2015-11-21T22:48:27.607
api_errors
softwareengineering.stackexchange.com
27,389
Inject the code for at a time concurrent users can open the app
I am working in Gatling . I first recorded the app and generated a Scala file. Then I run the code using gatling.sh. Here is the code that hits the application for 5 users for diiferent time period . [CODE] I want to know the code for 10 concurrent users to open the app on the same time. I want to check my app to find ...
The simplest way to find out how many concurrent users your app can take is to change the number of concurrent users ( [CODE] ) the test runs. Ten concurrent users is [CODE] Just keep increasing the number of concurrent users until something fails. You do not need to allocate memory for your server: you need to note th...
0
1
261
2017-05-22T11:53:11.793
data_quality
sqa.stackexchange.com
599,895
APC resets after a few seconds
Got a new server and the host installed APC for me. Reloading apc.php shows that ACP resets itself every 4-6 seconds. Uptime is always 0 and hits never go above 3000. The site runs smoothly but if APC really starts over again & again, I'd like to fix that. The error_log doesn't show errors. The only thing I can find is...
the problem is mod_fcgid read its manual page: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html impossible to share opcode cache, thats why you see different caches when apc is refreshed... suPHP is evil too. use mod_fastcgi with php-fpm p.s. some apc configurations required to set apc.enable_opcode_cache = 1
1
3
355
2014-05-31T12:46:19.343
infrastructure
serverfault.com
39,162
How to have MySQL Slave Replicate From a Master's Master
We are using the Following: MySQL 5.1.63-community-log MySQL Community Server (GPL) OS : Red Hat Enterprise Linux Server release 5.4 We have three servers and all servers are enabled with binary logging option Server A : Running master on it. Server B : it is slave of Server A but also enable binary logs Server C : it ...
Step 01 On ServerB, run the following commands [CODE] Step 02 On ServerC, run [CODE] Repeat running [CODE] until [CODE] is 0 Then, run [CODE] Step 03 On ServerB, run [CODE] For the sake of example, let say [CODE] looks like this: [CODE] Please note the following: [CODE] ( [CODE] ) [CODE] ( [CODE] ) [CODE] ( [CODE] ) [C...
0
1
91
2013-04-03T15:05:12.293
database_errors
dba.stackexchange.com
327,002
How to use ssl_verify_client=ON on one virtual server and ssl_verify_client=OFF on another?
I want to force ssl client verification for on of my virtual hosts. But get "No required SSL certificate was sent" error, trying to GET something from it. Here are my test configs: [CODE] First server replies with 200 http code, but second returns "400 Bad Request, No required SSL certificate was sent, nginx/1.0.4". Pr...
I ran into a similar problem, but looking to distinguish the [CODE] between location blocks within a server block, rather than between server blocks. You could probably solve your problem by moving the default ssl config stuff into the two servers (duplicating it, sure, or put them all in one server block, accept the m...
13
7
43,538
2011-11-02T12:00:12.990
api_errors
serverfault.com
412,412
Automounting SAMBA share using the .bashrc
Is it possible to mount a Samba network share on start-up using the .bashrc file In my fstab I got [CODE] but this is not working only when editing the fstab file and running mount -a, so I though maybe it will work if I use the .bashrc file?
To answer your headline question yes, it is possible to mount your /media/ant from a .bashrc simply put [CODE] in the relevant file. Unfortunately you have to run [CODE] as [CODE] so you have to arrange arrange for the particular user to be able to run mount as root e.g. via sudo. This gets complicated and introduces o...
1
2
2,445
2012-07-30T07:30:33.567
infrastructure
serverfault.com
60,099
Some SQLs sometimes take all available RAM
I'm running postgresql server on Windows Server 2008, which has 6GB of ram. My dataset is something near 1,5GB big. I have problems, when I run specific SQLs in table, which has 51mio of records. The fields which I use in SQLs are indexed (alarm, id_elektrarna, id_razsmernik). Below is the ANALYZE SQL, which causes pro...
The main problem is with the shared_buffers = 32MB parameter. It is 2014 not 2000. You cannot expect any kind of decent performance on a 6Gb machine, if you do not increase that to at least 512Mb. I believe that you are also using PostgreSQL 64bit (if not make the change now). Also, you say that your dataset = 1.5 GB. ...
1
0
131
2014-03-04T10:55:14.157
database_errors
dba.stackexchange.com
335,430
Best way to rewrite an mvc application to an angular architecture
We have an mvc application that we would like to gradually move to an angular platform. It is a wizard style app with 6-8 pages. We currently have a classic mvc layout. We would like to move to an angular2 project structure. Our current approach is to rewrite one page at a time, but we also have to provide improvements...
I omit the part about Why do you want to do this rewrite from Dan Pichelman since it's already address in his link. You can see in this SO post, that angular2 is more component oriented. This mean that if you want a proper rewrite of you application, you probably need some "redesign". And since it's about components, y...
1
1
2,430
2016-11-05T13:49:40.750
api_errors
softwareengineering.stackexchange.com
430,913
Software architecture for a dynamic reporting system
I have to create a reporting system based on hundreds of different tables in a database (which means a huge volume) and I'd like to know the best practices and/or your wild ideas about it. Here are the details: I have to generate many different reports, (around 50 report types are defined at this moment, but this numbe...
Based on the presented information, a simple interface will cover your reusability needs. Note: One could argue about using a base class (abstract or not) instead of an interface. I suggest erring on the side of interfaces in languages which don't support multiple inheritance or when the needed contract does not requir...
-1
1
726
2021-08-09T09:33:14.643
pipeline_ops
softwareengineering.stackexchange.com
1,054,348
New SSL Cert now showing up for Postfix in browser (Ubuntu, Namecheap)
I'm a newbie trying to wing it after our Sys Admin left. I needed to update our wildcard certificate and copy it onto our mail server. I renewed the cert at Namecheap, downloaded it, and installed it on our webservers. Everything is showing up fine in a browser for websites. However, when navigating to the browser port...
I figured it out. I was on the right track. My [CODE] file was simply out of order. I discovered the correct order in this article (at the bottom) It states: [CODE] I simply had my certs out of order! :D My browser interface works, and the cert shows expiring 2022. Thanks for the nudges in the right direction friends. ...
0
1
298
2021-02-20T00:49:10.327
api_errors
serverfault.com
47,570
Selecting from an excel spreadsheet into SQL Server table
This question has been asked before but I tried giving full admin rights to the SQL Server user on [CODE] folder location (I am using Windows authentication into SQL Server Express). So for the following code snippet: [CODE] EXPANDED SQL STATEMENT [CODE] I get this error: Msg 7399, Level 16, State 1, Line 1 The OLE DB ...
Excel is 32-bit, if you are using 64-bit version of Windows it could be causing this problem. I have 32 bit drivers installed and get the same error as you. In order to install the office 64 bit drivers would have to uninstall the 32 bit drivers first.
2
2
813
2013-08-05T13:36:34.470
api_errors
dba.stackexchange.com
186,895
Thresholds for Linux performance metrics
What are recommended threshold for Linux performance metrics? I'm collecting statistics from remote servers using rstatd . On which values should I issue warnings? errors?
establish baseline under normal load and start from there. that's it. and for stats gathering - you can also take a look at munin , cacti ; for alerting - nagios , zabbix .
0
2
1,306
2010-10-02T13:25:38.457
infrastructure
serverfault.com
115,627
Install Apache + PHP on CentOS server
I am trying to use YUM to install Apache and PHP on CentOS but keep getting these errors. Anyone know what's wrong? Thanks! [CODE]
You are using a testing repository (c5-testing). Have a look at the contents of your directory /etc/yum.repos.d ... normally, once you disable this repository, the issue should go away.
0
1
1,086
2010-02-23T02:11:10.860
infrastructure
serverfault.com
88,691
Strange error on IIS when server is busy
On windows 2008/IIS a asp.net page with heavy processing gets called every hour. If that server is doing nothing else it's fine. If the server is handling other web requests at the same time we get this error occasionly: [CODE] and [CODE] And then iis dies and restarts. How can I get more information about what's causi...
According to Tess Ferrandez : Fatal Execution Engine Exceptions Fatal Execution Engine Exceptions are fairly rare, but when they occurr it's normally a bug. This means that for some reason we went into some piece of code that we were not supposed to in the CLR and the CLR has decided that in the unlikely event that som...
2
2
3,743
2009-11-27T00:47:56.437
infrastructure
serverfault.com
241,123
How do I remove an old SQL Server 2008 Express Database Instance
I am trying to restore a database over the existing one. This worked fine in the past, until all of a sudden, it doesnt. I have clearly, in the past, attached the same database file under a different name and it now thinks that restoring a database over the current instance will overwrite the other instance as well hen...
Try moving the conflicting files into a different directory/deleting them. The operation is basically being told to overwrite files that it sees to be there with something different. I had a similar problem on a test environment and discovered either deleting the conflicting files/moving them worked perfectly. Also, ha...
3
0
237
2011-02-28T12:35:19.870
database_errors
serverfault.com
1,079,761
Can't contact LDAP server with Google WorkspaceLDAP
I try to test the connection to the Google Workspace LDAP server. I follow this help page: https://support.google.com/a/answer/9190869?hl=en#ldap-query&zippy=%2Cldapsearch But when I run the suggested commands, I get this error: [CODE] Any idea what's wrong?
On Ubuntu 20.04 I found that I had to disable TLS1.3 by setting [CODE] to get ldapsearch working against Google LDAP. How I got here: The ldapsearch command supports printing increased debug to the console by using the [CODE] flag. Debug level 1 ( [CODE] ) was enough for me, higher debug levels get very verbose and har...
3
3
2,246
2021-10-06T15:24:16.747
infrastructure
serverfault.com
238,969
Breaking out of a recursive query in Postgres 11
I'm having some trouble getting the correct data out of a tree structure, where I only want the first nodes in a branch matching criteria to be the result of the query. I have this table of domains: [CODE] This gives this tree, with the valid domains in green: Based on this, I want [CODE] and [CODE] to be returned as v...
[CODE] fiddle
5
4
2,186
2019-05-24T10:32:15.373
warehouse_errors
dba.stackexchange.com
728,225
runinterval not working for Puppet Agents
I am running puppet agents on windows. I am trying to change the interval of Puppet Agent check-in with the Server. on puppet master, i modified [CODE] file and added [CODE] under agent section. I then restarted [CODE] service. Then i went to the agent and restarted the [CODE] service. This did not work and my agent st...
Set [CODE] on each specific agent. Each puppet master/agent has their own [CODE] . You can write a simple module to push [CODE] changes to the various agents. Side note: I always define the time in seconds - 300 = 5 minutes, 600 = 10 minutes - etc.
0
3
1,348
2015-10-11T18:19:40.273
pipeline_ops
serverfault.com
867,772
Can the inet address assigned to P-t-P tun interface be used for a client inet address if the server runs out of all addresses within a subnet?
I have an OpenVPN server with an Inet address 10.8.0.1 serving the subnet 10.8.0.0/24. I have two clients connected to this server and the status log (/etc/openvpn/openvpn-status.log)reads as follows: [CODE] Now, on client 2 when I run (ifconfig) I get the following for the tun interface: [CODE] The P-t-P inet address ...
Your OpenVPN server seems to be setup using the topology net30. This topology is required for compatibility with really old clients running on older versions of Windows. This topology basically takes the that [CODE] subnet you assigned to the VPN and breaks it up into 64 subnets with 30 bit masks. Meaning you can have ...
0
1
2,194
2017-08-09T17:21:39.070
infrastructure
serverfault.com
796,902
Can only access intranet, Windows server 2012 AD/DNS/File Server
Okay, this machine can only ping up to it's default gateway. Which happens to be a sonicwall firewall. I have parsed the logs in the sonicwall and do not see any indication that even cares what the server sends out. As a matter of fact I see no records from the server in the log files at all. DNS manager, and user mana...
I completely reinstalled the server OS and reverted to a backup of a know working internet connection, and it still did not work. So, I reverted it back to the most up to date version. I then noticed if I assigned a different static IP to the server it was able to gain internet access.. Finally, I added a second IP add...
-2
0
417
2016-08-15T14:49:02.980
infrastructure
serverfault.com
12,127
How to start prediction from dataset?
I have event dataset in a factless table. It has list of events [CODE] There is always a sequence of event happening. So how do I start predicting future event based on past one and discover list of nodes that will be affected from past experience. I am programmer without knowledge of machine learning. I have installed...
The problem you are facing is a time series problem. Your events are categorial which is a specific case (so most common techniques like arima and Fourier transform are irrelevant). Before getting into the analysis, try to find out whether the events among nodes are independent. If they are independent, you can break t...
4
6
1,635
2016-06-09T00:02:39.277
spark_errors
datascience.stackexchange.com
962,727
Unable to access MongoDB installed on a GCE VM from client desktop
So I installed MongoDB v4.0 on an Ubuntu 18.10 VM running on Google Compute Engine. Installed successfully, working well with the [CODE] shell via SSH. Now I wanted to access the database remotely from my desktop. Following this guide, I edited my [CODE] file and commented out the [CODE] line in the following code: [CO...
Solved it. It was indeed a configuration problem and not a firewall issue. Apparently MongoDB no longer works fine with [CODE] or commenting out [CODE] entirely. What worked is that I removed the bindIp line and replaced it with bindIpAll: true So the final code looks like: net: port: 27017 bindIpAll: true # bindIp: 12...
0
0
744
2019-04-12T06:49:13.940
database_errors
serverfault.com
39,830
What is the best permissions to set for only creating and managing own databases?
I want to create a login for a new user who could only create and manage their own databases. Other databases on the server should be read-only to that user. What would be a good set of roles/permissions to use to implement this? Thank you for your help! p.s. I am using SQL Server 2008 r2
If you grant the [CODE] server role to a login, that login can create databases. Databases created by a login also (unless changed as part of the process) will be owned by that login, meaning that the login will be a member of the [CODE] role for that database and have full rights to that database and all objects withi...
3
1
5,769
2013-04-12T14:34:42.830
database_errors
dba.stackexchange.com
433,068
Fix internal library versions or always use the latest one?
Given we have several data transformation applications, which e.g. load an image, do some calculation and save some output. They make use of several internal libraries (internal = developed at our company and not published at pypi). When running these applications, shall we fix the versions of these internal libraries ...
In my experience, always using the latest version of libraries under active development works well - and only works well - when the team or organizational unit who maintains the applications is the same which maintains the libraries. Otherwise, you will get feedback about any unwanted bugs, or compatibility issues - in...
2
2
386
2021-10-27T11:51:19.563
api_errors
softwareengineering.stackexchange.com
259,029
Is it possible to check the Apache user's mail?
I'm trying to debug a problem with sending mail on a Red Hat/Apache server. When I send email from the command line using [CODE] , I get bounce-back emails with messages like this: [CODE] That timeout talking to [CODE] is likely the cause of the problem. BUT, it has been suggested that this particular timeout was cause...
Check if [CODE] exists, it's the mail file. You can read it with a text editor or you can configure [CODE] to check it locally (change the [CODE] environment variable to make it check a file other than the default. EDIT: I am not sure if Red Hat's mail spool is [CODE] , so you may have to poke around to confirm it.
2
0
1,352
2011-04-12T23:57:50.893
infrastructure
serverfault.com
245,417
Speed up DB restore from file (mysql)
I am running 5.5.60-MariaDB and I need to upload a DB on the server. The .sql file is located on an SSD drive (locally) and it contains ~700 million rows, with 4 columns indexed. Everything is included in the dump file. My question is, is it normal that it is taking already 24h and still the DB is not up? The server is...
If you are unsure anything is happening during the restore here are a few ways to check for activity: Using Top From the command line run [CODE] . It will show you what's happening right now on the system. You can then filter the list to look for MySQL by pressing [CODE] and typing [CODE] If RAM and CPU usage looks fai...
0
0
1,992
2019-08-15T12:18:57.607
database_errors
dba.stackexchange.com
114,971
Purely technical reasons for PHP as a first choice?
I know this may come off as a flame-y / troll-y, but I hope you will take my word for it that it's not my intention. I am just trying to understand the PHP phenomenon. After looking at the many technical issues with the language design of PHP, I am hard pressed to find any redeeming technical advantages where PHP surpa...
If there is a language out there that doesn't have tradeoffs, please let me know. While what you have eliminated as "non-technical" factors does take away a number of the common PHP benefits, I can think of a few technical factors for which PHP might be favorable: PHP is scripting. That means deployment can be as simpl...
6
20
818
2011-10-18T17:33:13.010
api_errors
softwareengineering.stackexchange.com
511,109
Nginx local fallback error page if proxy destination is unavailable
I'm forwarding requests to a local service through a Nginx server. What I try now to accomplish is to fallback to a local error page in case the service becomes unavailable. My current configuration is [CODE] Proxying works, but as soon as I make my service on 9080 unavailable the index.html of my maintenance location ...
Actually, I only had to slightly modify your config: [CODE] and obviously rename the [CODE] you want to present to [CODE] .
14
13
23,510
2013-05-27T08:55:58.173
infrastructure
serverfault.com
259,604
WHERE clause not preventing return of row but changing values for aggregate function (here: count)
I have recently discovered a PostgreSQL behavior which is strange and problematic in my opinion. Consider this simple query [CODE] The nonsense clause [CODE] resembles here a very strict permission check. That works as expected: Nothing is returned. Now, imagine you add an additional column e.g. a [CODE] function. This...
This is standard SQL behaviour for pretty much all databases. There are three ways how rows are returned: without aggregate functions, the query returns one row per row; with aggregate functions, but without grouping, the query returns exactly one row; with aggregate functions and grouping, the query returns one row fo...
2
3
408
2020-02-13T11:06:30.623
database_errors
dba.stackexchange.com
360,799
xenserver 5.6 on on raid 10 array
We've always had performance issues with our Xenserver 5.6 and ive asked a question here about it and still didnt manage to get it resolved ( xenserver VMs continous temporary lag ). Since this appears to be a storage thing not being able to put up with 10 XP-SP3 and 2 W2k3 VMs, we got one storage blade for each of our...
Raid 10 with 2 drives ends up being a raid 1 (check the "fault tolerance" section here ). Raid 10, generally, is a system where every pair of drives you add becomes a mirrored pair, and all the volume data is striped across all the pairs. Since there's no parity to calculate, it's faster than raid 5. for writes. Reads ...
0
0
992
2012-02-16T13:38:50.970
infrastructure
serverfault.com
765,904
Is there a memcached memory limit best practice?
Is there a best practice or general rule of thumb when setting the memory limit for memcached? I'm currently running memcached with the default memory limit of 64 megabytes. The server has 8 gigabytes of memory installed out of which only around 512 megabytes of memory are available. Thank you.
8g and .5 available sounds fishy. If nothing else significant is running then you should be able to run at 6-7G pretty easily. I suspect you are looking at 'free' memory which doesn't account for linux disk caching and such.
1
2
1,574
2016-03-24T16:15:15.723
infrastructure
serverfault.com
173,688
Importing CouchBase dump to BigQuery
After creating a CouchBase dump and copying it to a Google Storage bucket I tried importing the data to BigQuery. I failed miserably, apparently the [CODE] or the files that appear in the same directory as [CODE] are not working when I'm trying the [CODE] import. Do I need to convert the dump somehow? Is there any othe...
I managed to export the couchbase data to CSV, after converting to CSV I discovered the files were corrupted and there were some entries I had to give up on. When I first tried there was no "Ignore Errors" option in BigQuery so I couldn't import the files at all, after several weeks I tried again and found the "Ignore ...
1
1
388
2017-05-16T12:18:39.447
warehouse_errors
dba.stackexchange.com
256,389
Send As Distribution Group in Exchange 2010
I've created a couple of distribution groups for our organization, and we'd like to start using these distribution addresses as our outgoing address (for things like support) rather than our personal email addresses. To test, I've added "Send As" to myself for our support group, but I'm having some issues sending email...
If you are running in cached mode try coming out of cached mode and look in the GAL for the DG.
1
1
7,049
2011-04-06T14:24:53.043
infrastructure
serverfault.com
154,218
htaccess exception / "deny from all except Paypal"
I spent my evening on this problem and I did not find how to solve/bypass it :-( I have in "mydomain.com/admin/" a .htaccess file with the following : [CODE] The goal of this .htaccess is to protect all the included files, as inc/config.php for example, from being directly called. My problem is that I wish to make an e...
filename > only apply to a filename, you cannot use a path with it. The Files directive documentation states: The directives given within this section will be applied to any object with a basename (last component of filename) matching the specified filename. Possible Solution: In the directory admin/paypal , create an ...
0
2
2,710
2010-06-23T20:10:43.937
infrastructure
serverfault.com
1,037,018
Chromium Browsers TLS1.2 Fails with ADCS issued certificate on Server 2012 R2
tl;dr: TLS 1.2 between Server 2012 R2 and Chromium based browsers fails when using AD CS issued certs. Works fine on Server 2016+, and on 2012 R2 with Firefox/IE/Cygwin-curl. We have several internal Server 2012 R2 web servers which we are trying to move off of publicly issued certificates, onto ones issued by our AD i...
Google has confirmed that this is an issue with the way that Chromium handles the ClientHello, how IIS handles things on 2012, and the algorithm used in our root CA's root cert signing. IIS on 2012r2 performs a check with the ClientHello, against every cert in the chain. Chrome doesn't advertise, but does support, the ...
4
1
1,058
2020-10-09T07:02:13.233
infrastructure
serverfault.com
150,727
Inbound connections using Internet Connection Sharing in Apple/Mac/Leopard
I have a Mac mini which I'm using to give some other devices wireless access, by sharing it's Airport connection with the local ethernet, and that is plugged into a switch. All devices can get online no problem. (See how: http://www.macosxhints.com/article.php?story=20041112101646643 and http://www.macosxhints.com/arti...
You might want to take a look to this . The interesting part for you is " How Do I Setup Port Forwarding OS X Router? " If you want to be able to connect to 192.168.2.5 using SSH (port 22) through your Mac Mini (192.168.1.50) you can do : [CODE] Then if you do a ssh to port 2222 of your mac mini, you will connect to 19...
1
0
440
2010-06-12T18:33:58.637
infrastructure
serverfault.com
45,593
How do I automatically restart a process on server reboot/process exit?
On my Ubuntu server I use God to monitor some Ruby processes/scripts, including a Queue system. God automatically checks when one of my processes exists and restarts it. It also keeps track of memory usage and acts properly when specific conditions are triggered. Today I rebooted the server and after a while I noticed ...
Several options here. Just skip to the last paragraph if you want one recommendation instead of reading about the others too! Just restarting on reboot is easy: add it to [CODE] which Debian based distros (and many others) run after everything in the other startup scripts by default. If [CODE] doesn't drop into the bac...
5
8
17,258
2009-07-25T21:20:29.593
infrastructure
serverfault.com
307,475
Problem on recursion
[CODE] This is a recursion function which is called with the value of x = 20. The Recursive call will take place in this way [CODE] Each function call will use some memory and if the data is big it will throw StackOverflowException. So what I want to know is: Is there any way by which we can call a function and remove ...
What you have here is a Tail Call, and even more, it is Tail Recursion ( Direct Tail Recursion ) to be precise. Many languages have Proper Tail Calls (e.g. Scheme, ECMAScript), and even more languages have Proper Tail Recursion (e.g. Scala, at least for Direct Tail Recursion). Unfortunately, neither C nor Java support ...
-2
3
348
2016-01-15T09:51:54.523
api_errors
softwareengineering.stackexchange.com
301,813
Samba, password change and windows error messages
I moved password quality checking in Samba from [CODE] to PAM, now when [CODE] or [CODE] deny password change the user revives a "Access denied" error, not the standard "The password you typed does not meet the password policy yada yada" (still mostly untrue when dictionary checking is involved and there are different ...
Samba sends NT_STATUS_* messages to your clients. I don't think it's customizable.
3
1
495
2011-08-16T21:24:52.453
infrastructure
serverfault.com
597,860
Recover from a Punctured RAID array
here is my situation. I have a Dell Server with a Dell Perc 7i controller, (LSI Controller). I had a drive give me an Failure Predicted warning so I called their support and they came out and replaced the drive and the array rebuilt itself, pretty standard. Two weeks later, I have another drive giving me the Failure Pr...
Your system I assume is still up, so the best thing to do is make an immediate backup, dump the disks/array, rebuild, and restore from the backup. Bad blocks don't always mean your backups are also bad. If you haven't experienced any performance problems or damaged files, then your backups should still be complete enou...
10
15
5,748
2014-05-22T16:01:04.387
database_errors
serverfault.com
405,373
Multiple thread invocation in Rest Web Service
I have a scenario in our Web Application. GUI invokes a REST web wervice and further web service calls a procedure. However, the procedure returns data properly for most of the scenarios. In some scenarios it takes more than 5 minutes and a session timeout happens. Now client suggested that in this case if any procedur...
For long running tasks, blocking in order to return the response synchronously is not appropriate. What you should do instead is have your service accept the request, start the long running job, and return a success response. Here's a basic design for this kind of thing: The client submits uses [CODE] to send a request...
1
2
460
2020-02-18T02:25:58.290
api_errors
softwareengineering.stackexchange.com
209,755
How to Slow Down a Hacker
Some script kiddie in Delhi, India has been trying to hack our site since last night. He wrote a browser script that makes requests of our server in massive nested loops, trying everything under the sun. He's not getting anywhere, and isn't getting past even our basic defenses (but he is filling up our log files). We'r...
There should be a separate firewall somewhere in front of your web server. You want to block the requests there from ever reaching your server, such that as far his IP is concerned your server doesn't exist any more.
17
37
2,251
2010-12-06T22:18:53.373
api_errors
serverfault.com
656,148
Unable to rename computer with powershell
[CODE] I disabled the firewall on the machine. I ran [CODE] I even set the GPO with [CODE] to enabled with * I keep getting: [CODE]
Why are you remoting (invoke-command) to use a cmdlet which has a -computername parameter? Have you tried running the command directly?
4
4
3,541
2015-01-04T03:12:30.493
infrastructure
serverfault.com
154,782
Mail not being received
My mail server(Postfix) is messing around a bit. It seems that it does receive the messages it receives but it doesn't store them? I'm not quite sure of the reason, because it worked fine last time I checked(when I first set it up, about a month ago). from /var/log/mail.info I receive this: Jun 25 13:23:14 lisa postfix...
A MTA does not 'save' messages (it may keep them on disk temporarily while it tries to find another program / server to take the message) for messages terminating locally, it hands them over to a MDA for delivery. This is what your log entry shows. It also shows that it it successfully handed the message over to procma...
0
1
946
2010-06-25T09:32:50.363
infrastructure
serverfault.com
89,259
Free universe tool monitoring all database
Is there any free tool to monitor most popular databases like Oracle, MySQL, MSSQL, PostgreSQL. I want to monitor the real time performance of all the above mentioned databases with a single tool like DBEAVER. But DBEAVER does not have real time monitoring facility. Please suggest. Thanks in advance. Regards Mahendra
Not that I'm fond of it, but if you use Nagios, it's rather easy to add some database-related plugins. You could do worse than have a look at: PostgreSQL : Very useful. The latest versions are available at Bucardo . MySQL : quite a few are available, make your pick. Oracle : but you'd better ask the Oracle experts. MsS...
0
1
162
2015-01-14T11:23:20.400
pipeline_ops
dba.stackexchange.com
259,893
Mysql Right join with mutiple condtion not working
i have two table table1 and table2 and when right joining the table2 with table1 and i am not getting the row. here i have attached the fiddle link also [CODE] Above i wrote select query but it returns null result, but i am expecting output like below, orderid 1
table2.fname cannot be both 'city' and 'name' in the same row. To get both of this EAV model we use two joins on the table2 with a different alias. Its unclear why you want a RIGHT JOIN. Normal [inner] JOIN is fine. I've moved the selection to a WHERE criteria just for ease of readability. Because its inner it could be...
0
1
50
2020-02-18T07:11:03.390
database_errors
dba.stackexchange.com
293,595
Why are there double apache processes for mod_wsgi?
I am running a Django app using mod_wsgi, and am trying to understand how the apache processes work. Here is my apache httpd.conf: [CODE] I set two processes, but when I look at [CODE] , I see two processes under user django1 and two more processes under user www-data : [CODE] Why are those www-data processes there? Am...
When you use daemon mode and your Django application is therefore running in a separate process to main Apache processes, you still need the Apache parent process and at least one Apache child process. The later is what accepts requests and proxies them through to the mod_wsgi daemon processes. Read: http://code.google...
0
1
1,059
2011-07-24T19:56:00.713
infrastructure
serverfault.com