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
13,455
How to store data in a database without tables?
All I learned in school was SQL which saves data to tables. Right now I am working on a project where data is stored in XML-files. Additionally every XML contains a reference to visual files (JPEG). The XML itself contains over one thousand coordinate points, plus additional information on the data. In my opinion it wo...
All you need is persistence of your XML. Use a NoSQL solution or the file system. There is no benefit in using an RDBMS, unless you want to use it instead of NoSQL or the file system.
12
11
3,283
2012-02-20T09:02:29.223
warehouse_errors
dba.stackexchange.com
24,949
Error in f1(x) : argument "b" is missing, with no default
[CODE] [CODE] An error of the following occurs: Error in f1(x) : argument "b" is missing, with no default
This should give you the answer: [CODE] or instead of that for loop you can use this: [CODE] Reason for the error is, it was taking x as 1 element. So, I called this function using its name. Do let me know if you any issues.
-1
0
7,906
2017-11-20T10:27:04.330
data_quality
datascience.stackexchange.com
1,048,061
Virtualmin + Nginx + SSL setup error with cloudflare 521
OS: Ubuntu 20.04 Installed Virtualmin + Nginx + PHP-FPM Everything set up fine, however, when I installed SSL Certificate 3 month’s trial (Fully Valid Cert) not from Letsencrypt ( Reached limit ) everything works perfectly but, when I switch to Cloudflare my website crashed with 521 server not found. Tried switching to...
Firstly some program is listen port 443. You can found which program listen port 443 with [CODE] command. If the netstat is not found your server, install net-tools package. Secondly nginx cannot access your certificate. [CODE] Check this certificates are there ? If they are stay at there, check the file permission.
-1
0
617
2020-12-30T17:12:00.880
api_errors
serverfault.com
429,826
Postgres child process eating up a lot of memory
We have a postgres 9.0 instance that is running on a pretty beefy machine (96G of RAM/24 cores). IN the recent weeks we have experienced crashes due to child processes of postgres being killed with out of memory by OOM killer. It seems that due to using connection pooling, those child processes are long-lived (which ma...
The first thing to consider would be to increase [CODE] way way up, at least to 1GB and possibly much more, up to 25% of the main memory. That's what the doc says . At only 32MB, of which ~18Mb will already be used just to cope with [CODE] to 950, the child processes have access to barely enough shared memory to share ...
3
5
4,225
2012-09-19T12:12:44.113
database_errors
serverfault.com
85,433
Port forwarding with iptables
I have a weird network topology, and I'm trying unsuccessfully to forward ports. The thing is, I have a public server, and all ports have to be forwarded from the router to the same server (sort of DMZ). My topology: [CODE] The server runs linux (ubuntu) with [CODE] . The firewall is configured pretty much like this: [...
try adding [CODE] to enable routing on the linux add [CODE] otherwise responses from local pcs will not be forwarded back to the internet. also you might want to use: [CODE] if you keep your rule - any traffic sent on port xxxx from local network will be forwarded to $PC1_IP
2
4
4,645
2009-11-17T06:59:03.963
infrastructure
serverfault.com
994,491
Providing master_ipv4_cidr_block and subnet range using terraform variables in GCP
I have created a private cluster in GCP using terraform modules. As per the documentation here: https://www.terraform.io/docs/providers/google/r/container_cluster.html#master_ipv4_cidr_block , I have configured the private cluster as below: [CODE] This cluster is provisioned in a subnet whose CIDR range is 10.15.0.0/16...
As you already identified, this is because there is a cidrsubent overlap, using a different subnet would be the best, but perhaps google cloud platform could help you more via a support ticket
1
1
1,314
2019-12-05T16:52:59.150
pipeline_ops
serverfault.com
1,017,840
NGINX - Only proxy a specific URL
First, I have to admit that I'm a total n00b to NGINX. I have only done very basic work with it. Now the situation. We have a reverse-proxy box in the DMZ that takes incoming connections/requests and "sends them along" to their destinations. Currently, one of these is allowing only connections from a specific subnet to...
Ngnix always tries to match most specific prefix location at first so you can set two locations: [CODE] Note: When you access to http://example.com/this-url/only/ the nginx forwards to your server http:///this-url/only/if you need remove /this-url/only/ you need a rewrite rule. Nginx Documentation
1
0
7,592
2020-05-19T19:59:00.350
infrastructure
serverfault.com
670,171
How much contention is too much in VMware?
For a while now I've been trying to figure out why quite a few of our business-critical systems are getting reports of "slowness" ranging from mild to extreme. I've recently turned my eye to the VMware environment where all the servers in question are hosted. I recently downloaded and installed the trial for the Veeam ...
I can describe some of the experiences I've had in this area... I don't believe that VMware does an adequate job of educating customers ( or administrators ) about best-practices, nor do they update former best-practices as their products evolve. This question is an example of how a core concept like vCPU allocation is...
22
17
25,006
2015-02-20T14:11:52.130
infrastructure
serverfault.com
336,927
How do I SCP file between two Amazon EC2 server?
I am on Amazon AWS and I have two EC2 instance on my account. Trying to send rsa key via SSH to another EC2 instance using internal private IP. But its not working. [CODE] What am I doing wrong and how do I send file to another EC2 account with ssh.
Here the scp format: [CODE] You are missing [CODE] in the example. Also check the security group of the target server. It should allow the connections either the the security group of the source sever or from the [CODE] network.
3
6
22,992
2011-12-02T07:04:16.323
infrastructure
serverfault.com
74,425
SQL Query Optimizer - how does cost vary with resource availability
When the query optimizer calculates the cost of an execution plan, can you expect the plan to differ depending on the amount of resource available to it? Take the following scenario: You have a VMware virtual machine running SQL Server 2008 R2 with 32GB RAM, 8 CPU cores hooked up to a SAN. There are 7 VMs sharing the h...
First, some background information So far (until SQL Server 2014) the query optimiser will only take a few things into account: The number of CPU cores available on the system The current amount of memory in use CPU cores: The core count assigned to SQL Server from the affinity mask determines how efficient it can poss...
3
3
216
2014-08-20T09:25:02.300
database_errors
dba.stackexchange.com
582,613
Full system backup - different drive types
I have workstations I deploy regularly that all have the same configuration. The problem I'm encountering is; the primary Windows 7 x64 drive is a standard 120gb SSD with a NTFS. The secondary development drive is a 4tb GPT dynamic disc. The primary OS backup with Acronis is 9.4gb. The secondary 4tb drive consumes 3.6x...
I would use something like Windows Deploymemt Services or MDT or SCCM for deploying machines. But I suppose Acronis will work. Image only the OS drive. For the secondary drive, copy it all to a fileserver (where disk size limits are less important since you can use RAID etc). Write a small batch or powershell script to...
1
0
75
2014-03-17T14:09:21.553
database_errors
serverfault.com
172,856
Oracle database silent install failing on shared pool/sga size
I am running the following command: [CODE] This fails and I receive the following in the log: [CODE] The parameters specified are our standard. (1638M is 80% of [CODE] ). Usually we set the memory parameters after the database is created, I'm trying to do it during creation instead. I do not know where the log is grabb...
After testing your code, found the issue and modified the command which works fine for me. [CODE] The error log. [CODE] I faced the same error as you have. [CODE] Further information is the error message [CODE] , which means instance creation is failed. During the database creation, DBCA creates a dummy init.ora files ...
4
2
7,763
2017-05-05T20:42:17.977
database_errors
dba.stackexchange.com
171,858
Update statement with "case syntax" is unable to update a specific column in temp table
With reviewing a stored procedure for a current SSRS migration. I noticed the case syntax listed below for the temp table (#tempShip) is not taking affect for the column "ord_status" in the temp table. The stored procedure that collects data for the temp table is rather massive so I will refrain from posting. But I bel...
Here is the solution: (The update statements had to be rearranged so they executed on there own.) [CODE]
0
0
3,662
2017-04-24T17:25:07.533
bi_errors
dba.stackexchange.com
34,485
How to add Dependent request filter as load test plugin in VSTS?
Tool: VSTS I have around 10 web-tests under a single load test. I have written web-test plug-in that will remove 404 Not found errors for dependent requests (such as gif files). I have added the web-test plugin for all the 10 web tests. Now, I have to add another 30 web test to the same load test. Is there a way to add...
You probably need to stick to the web-test plugin The web-test plugin is presumably operating on the post request event args, which is not available to load test plugins - the closest you would get is the TestFinished event. The standard arguments for this event do give access to the test results, but I don't think the...
1
1
354
2018-06-28T10:37:49.500
data_quality
sqa.stackexchange.com
809,300
Mysql GTID replication stopped working
I've setup mysql gtid replication between master and slave. the interesting thing is that I found the replication stopped working after several minutes, and I have to use [CODE] and [CODE] to restart mysql replication. Can anyone tell me what causes this problem? change master on slave: [CODE] Master config file: [CODE...
[CODE] You are right to be skeptical that this will resolve the issue, since no timeout seems to be occurring... nor so you want one to occur, but this should still be the solution. I'll explain. When replication seems to stall with no errors, IO = Yes, SQL = Yes, Seconds_Behind_Master = 0, this implies a hung replicat...
2
2
797
2016-10-16T03:15:17.550
database_errors
serverfault.com
318,345
Best practice for multi-module design local dependencies
This question may have been asked before and if so feel free to link to the answer. I'm looking for a modern and effective recipe for a common problem. I have a project with a main module, A, that depends on another module, B, that I develop separately. this module has 2-3 (C-E) other modules it depends on, each of whi...
My two cents: Use separate repositories on shared projects. In other words, if a project is used by more than one other project (or intended to be used in multiple projects, i.e. a library), it goes in its own repository. We are suffering this pain where I currently work. Here's what the current conversation sounds lik...
7
2
5,005
2016-05-12T22:59:56.283
api_errors
softwareengineering.stackexchange.com
26,635
Iteration between month and year. Selenium + Java
I have this select with months and years, I need to sear every month of 2016 one by one and click the "query" button wait load the data on the page and pick up some data, then move on to the next month and repeat the process continuously, Until the end of 2016. I thought about doing this using a [CODE] and an [CODE] , ...
I would create a loop that selects the month field by index, then select any additional data points, increment the index and go back to the beginning of the loop.
0
2
440
2017-04-05T13:27:05.123
data_quality
sqa.stackexchange.com
59,320
Sucking Less Every Year?
Sucking Less Every Year -Jeff Atwood I had come across this insightful article.Quoting directly from the post I've often thought that sucking less every year is how humble programmers improve. You should be unhappy with code you wrote a year ago. If you aren't, that means either A) you haven't learned anything in a yea...
[CODE] No but Sucking different Every Year :-) After my first reviews many years ago i suffered about missing naming-conventions. Then i suffered that my coded was (unnecessary) implemented to be as generic as possible but that made the code difficuilt to understand and maintain. Then i leared testdriven development, I...
10
6
1,108
2011-03-18T06:36:46.730
api_errors
softwareengineering.stackexchange.com
203,818
Defining work days and work time
I'm working on development of SMS parking software, and I'm stuck at one point for a month... I need to implement periods of payment (or work time, of a work day, if you will). Here's the problem: For an example, traffic wardens work from Monday to Saturday. From Monday to Friday, the work times are from 07:00 to 21:00...
I believe it would be much easier to have a table that stores for every hour (assuming that is your resolution) whether parking is billed (=1) or free (=0). Then iterate over the time your customer paid for by subtracting the value until his credit is used up to determine the last admissible period. I would even sugges...
2
1
836
2013-07-05T10:27:00.587
database_errors
softwareengineering.stackexchange.com
650,540
Test for ICMP/TCP timestamp responses and disable responses
We had a penetration test done on our servers and one of the vulnerabilities they suggested we fix is that the host responded to an ICMP timestamp request with TCP timestamp. I've looked around but can't figure out how to disable it on our webserver or how to issue a command to check for this vulnerability (i.e. a ping...
Normally Symantec Endpoint blocks this by default, and a more common request is to allow for the behavior instead of deny it. At any rate, you can use the steps in this article. Simply replace Allow Traffic with Disallow Traffic.
0
1
4,005
2014-12-10T13:55:56.487
infrastructure
serverfault.com
14,890
Declaring cursor to loop over some values in SQL Server 2008 R2
I have some business unit such as India, International, US, UK. I have to: Create a table variable (virtual in-memory table) with columns that match stored procedure [CODE] resultset Declare a cursor that contains all business units and then the cursor should loop over the BU's For each BU, execute a stored procedure c...
The MSDN/BOL topic for DECLARE CURSOR contains example syntax for cursor usage. That said, as I had 5 minutes to spare on the train this morning... [CODE]
5
9
50,367
2012-03-13T05:17:01.273
database_errors
dba.stackexchange.com
70,813
The file system structure on the disk is corrupt and unusable - SBS2003
I'm getting the following error all the time on a clients SBS2003 box. The server is a Dell PowerEdge T300. I've run the Dell diagnostics on the SAS controller and both drives, and everything comes up good. Everytime the server is rebooted, it requests a chkdsk, which runs, completes, sometimes fixing errors, then boot...
If you don't have a good backup, get one ASAP. You've probably got a ticking time bomb there. If CHKDSK isn't fixing the filesystem inconsistency you either have some type of damage that CHKDSK is unable to fix or new inconsistencies are being introduced by software or hardware after AUTOCHK (CHKDSK during boot) comple...
0
4
1,239
2009-10-02T15:49:36.653
data_quality
serverfault.com
483,448
CentOS 6 Binding IP Addresses
I can't seem to get IP binding to work properly. I have two files: ifcfg-eth0 and ifcfg-eth0:1 (tried 0:0, 0:2 and still not working). eth0 is supposed to be for IP 192.168.1.3 and eth0:1 is for 192.168.1.4. After I create the files, I restarted networking. When I use ifconfig, it only shows eth0. If I try to ifup eth0...
The network manager could be preventing this from coming up properly. In each config file can you add the following line: [CODE] I have seen a few instances where this has caused trouble in the past.
0
0
756
2013-02-28T15:44:46.747
infrastructure
serverfault.com
183,989
Problem joining two tables on date field?
im using following query with PostgreSQL 9.1.13: [CODE] Expected Output: [CODE] Actual Output: [CODE] What am I doing wrong?
You got multiple rows with the same date in both tables (e.g. [CODE] 31 & 17) and you join every row in the 1st table with that date to every row in the 2nd table with the same date, which results in 31 * 17 = 527 rows. A quick solution is adding DISTINCT: [CODE] but this is very inefficient, because it creates those 5...
0
1
561
2017-08-21T14:48:53.190
database_errors
dba.stackexchange.com
119,469
mySQL efficiency with inner join queries
I have two tables, both with about 1,000,000 rows. Here is the question I am trying to get mySQL to solve: return all record_ids from table_a where that id matches the cat_id in table_b, but only for customer_id 654 (customer_id exists in both tables). First off I tried this with the following statement: [CODE] This is...
[CODE] The meaning of a [CODE] is the AND of the meanings of its arguments. [CODE] and [CODE] both AND in a conditon. You want rows where (using obvious aliases): customer [a.customer_id] ... AND customer [b.cat_id] ... AND [a.customer_id] = 654 AND [b.cat_id] = 654 AND [a.record_id] = [b.cat_id] [CODE] (In standard SQ...
0
1
6,476
2015-10-16T19:31:48.047
database_errors
dba.stackexchange.com
115,127
Mongo Scaling - Too Many Connections - Linear Horizontal Scaling with 100s of App Servers
I have a Mongo Cluster. It's sharded on 6 servers, with 6 replica sets, each replica set having one Primary, and two Secondaries. Additionally, there are 3 config servers. Though, I think the Mongo Cluster configuration is irrelevant to this question. I have many application servers (currently 100), with the intention ...
The hard connection limit was actually 20,000 but it was removed in version 2.6 and you are now only limited by memory or open file descriptors (whichever you run out of first). That being said, with connections running into the thousands, even if you can manage it you will be using a lot of memory (1MB per connection ...
4
3
2,750
2015-09-15T18:49:37.597
database_errors
dba.stackexchange.com
1,029,482
sudo error "Either need terminal or -S option"
[CODE]
I got it fixed with " -o StrictHostKeyChecking=no " And its a great idea not to run git as sudo @gerald-schneider
1
1
1,392
2020-08-10T07:47:45.100
infrastructure
serverfault.com
188,995
Are composite primary keys bad practice?
I want to know if composite primary keys are bad practice and if not, in which scenarios is their use beneficial? My question is based on this article Note the part about composite primary keys: Bad Practice No. 6: Composite Primary Keys This is sort of a controversial point, since many database designers talk nowadays...
To say that the use of [CODE] is utter nonsense! Composite [CODE] s are often a very "good thing" and the only way to model natural situations that occur in everyday life! Having said that, there would also be many situations where using a composite PK would be cumbersome and unwieldy and therefore not an optimal choic...
38
63
64,104
2017-10-21T14:43:56.820
data_quality
dba.stackexchange.com
560,637
best practice for setting PATH variable in nested user env
In my user environment I/(macports) have set my PATH to be in the form of [CODE] However if I have nested shells the PATH variable gets concatenated all the time, of course this is not a major issue, but still, isn't there a better solution?
Ok, the problem is simply that the PATH as-is is still valid for nested shells, i.e. we should not re-evaluate the PATH variable i.e. do not include this in [CODE] , but put this in [CODE] . Profile configs are run once for every login shell. In this context you can look at the profile configs as being an initial confi...
0
0
633
2013-12-11T10:56:56.900
infrastructure
serverfault.com
284,554
Do DB permissions flow from primary server to secondary server in SQL log shipping?
Do DB permissions flow from primary server to secondary server in SQL log shipping? If someone wants db read permissions on the secondary, do we grant on primary and the permission flows to the secondary or do we just grant the db permissions directly on the secondary?
The quick answer is yes, but only for the user permission on the DB, if you got login and user permission on the server-side, you need to copy these ones to the secondary server to avoid the possible issue in case you do a fail over to the secondary server
1
3
156
2021-02-02T20:24:03.150
warehouse_errors
dba.stackexchange.com
1,124,078
poetry command not found after installing it on jenkins
I'm using Jenkins to build a python package using poetry, here is the stage command to install poetry on the Jenkinsfile [CODE] But I get this output error during the build [CODE] What could be wrong?
Each [CODE] command starts its own shell session. So any variables you set in one session won't be available in another session. Instead set the variable and execute the command in the same session. [CODE]
0
1
1,086
2023-03-01T22:22:48.013
pipeline_ops
serverfault.com
122,407
Subversion/Hudson/Sonar/Artifactory - too much for my little server to handle! Help!
I have a little dedicated server. It's at a cheap price and has a simple AMD 1800+ (1.5ghz), 256mb DDR RAM, ...need I continue? And I think I'm overloading it already. I have installed the following, and it's running CentOS 5.4: Webmin Apache MySQL Subversion as an Apache module Hudson (standalone) Sonar (standalone, r...
Turns out Artifactory was using tons of RAM and CPU and slowing everything down. After disabling it, speeds increased by 2-3x which is definitely acceptable. I also shut down Apache and am working on configuring svnserve to my needs; it should be more lightweight as well. To get any more performance out of this server,...
0
0
1,376
2010-03-14T22:59:38.060
database_errors
serverfault.com
285,682
How to best handle the situation where my "table creation code" and my actual live tables have become desynced?
I'm developing a system which, relevant to this question, consists of PostgreSQL database tables. When I first created the SQL code to [CODE] , I did think it through. However, over the years, I've thought of improvements, fixed bugs, and implemented new functionality. Each time I do this, on the "live" table containin...
There are times where someone wants to write code and not specify each individual column. If I write a script to split out one customers data to another database, not specifying the column names means that I don't need to change the script every time I add a new column. As long as the column order is constant. If there...
0
0
43
2021-02-19T14:17:14.873
data_quality
dba.stackexchange.com
775,557
Starting and stopping piped processes with Supervisor
I have a situation where I pipe the output of ffmpeg into a PHP script for some processing. I might have a few of these processes running at any given time and I figured to start and stop them I might use Supervisor. However, I'm running into the problem where I can start a new process but where I can't successfully st...
% sh -c 'your one-liner' I think this works
2
2
1,916
2016-05-09T03:18:28.413
infrastructure
serverfault.com
695,358
Convert virtual disk image to physical disk?
I'm trying to use QEmu for Windows to convert a virtual disk image to a physical SSD. But I'm not sure about the syntax for the [CODE] parameter. Here's what I tried: [CODE] But I get this error: [CODE] Note that I do not have any partitions on the output drive - it's a bare drive. Also, I only want to do this if I'll ...
I am not familiar with Windows qemu, on linux , the command line should be [CODE] SO, you may have a try like [CODE]
1
0
2,996
2015-05-29T18:40:14.147
infrastructure
serverfault.com
84,574
A way to clear/restart virtual memory creep automatically?
I know it's not good practice to do this, but my company cannot afford me trying to find a proper solution to our problem. I've read this and I could do the same with SQL Server 2005, but I was hoping there could be a better (quicker?) way. The problem is as follows: We have an ASP.net website (ASP2) running on Windows...
First whenever you post question related to SQL Server please post 'version and edition of SQL Server', you wont believe answer might change completely with different versions. Lately we've noticed the VM Committed memory space for our SQL Server 2005 instance grows and it's almost at the point of VM Reserved space whi...
3
5
7,459
2014-12-08T07:09:24.793
api_errors
dba.stackexchange.com
122,445
How to solve database is not mounted
[CODE]
If you have multiple control files then you can try to copy another one over this corrupted one. Otherwise you need to restore it from an (RMAN) backup.
0
1
1,389
2015-11-30T11:21:43.317
warehouse_errors
dba.stackexchange.com
537,697
Serving files from GIT with uWSGI
Good morning everyone! On my daily job, we are using NGINX+uWSGI+MongoDB as Python Application container. For versionning and collaborative developpement we are using GIT install on each developer computer and a central GIT repository for delivery purpose. Everything is running well and smoothly, BUT there is one minor...
your server-based git-repo is nothing you'd work with; you'll always depend on a local repo-clone, derived from that central git-repo (IMHO). what you can do to get rid of ugly cronjobs: use git's pre/post-receive-hook on your git-server: In addition to the client-side hooks, you can use a couple of important server-si...
1
1
469
2013-09-10T08:31:06.983
database_errors
serverfault.com
173,567
GPO Application Management Woes
So, I am trying to deploy several MSI packages in a GPO policy. All of the installers are on an external file share. Fortunately for me, this file share died and I was put in charge of salvaging what I could. The solution, given the indifference of many around here, was setting up a DFS Consolidation root pointing \\ou...
Not sure why exactly, but it appears Redploy Application made the issue go away. We shall if all my woes fade away.
1
0
1,178
2010-08-23T14:29:51.117
pipeline_ops
serverfault.com
12,487
docker-compose up: Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use
specific error: [CODE] building the image: [CODE] and: [CODE] My understanding of this problem is that it relates more to running the container rather than building the image. Yet the image wasn't built? I don't see it listed in [CODE] , and certainly nothing recent. This is almost certainly a conflict with an existing...
thought it was working because [CODE] returned without errors. I've tried a few URL's, but can't quite tell what happened: [CODE] ... [CODE] Looking at the below [CODE] : [CODE] I tried a few of those ports, best result was a [CODE] from [CODE] on Firefox which I think was from this unconfigured app. Quite possibly eve...
1
1
3,210
2020-09-24T19:45:59.613
pipeline_ops
devops.stackexchange.com
4,356
How to use transactions with SQL Server DDL?
I have a login table into which all inserts are done by a single stored procedure. [CODE] Currently there are about 45500000 rows in that table and I want to direct logging to a different table. My idea is to use the following script [CODE] Does this work and has minimal impact to other procedures calling LogInsert?
Yes. Transactions apply to DDL and span batches. I'd do something like this. Note the use of SERIALIZABLE ISOLATION to ensure full isolation and XACT_ABORT which will force a rollback on any error. [CODE]
24
28
16,908
2011-08-05T06:20:27.740
api_errors
dba.stackexchange.com
517,836
InnoDB no longer available
Recently changed servers and went from CentOS 5.8 to CentOS 6.4. I installed MySQL 5.1.69 on my new server, and manually swapped /var/lib/mysql. I am not sure what version of MySQL was on my old server, but would expect it to be the same. When I try to query a table, I get the following: [CODE] Tables which don't use I...
Seems like this is a good answer. Which basically states that you should remove/rebuild the [CODE] yourself. Just move the file to someplace safe—not in the MySQL directory that is looking for it—and restart the server. The caveat is: Do you actually have DBs that require InnoDB? If so, you can manually do a mydump of ...
2
0
3,564
2013-06-22T21:03:26.657
database_errors
serverfault.com
61,190
"The connection to the server was reset while the page was loading"
I've just taken over managing the network for a small charity, and am finding internet access very flaky - we keep getting "The connection to the server was reset while the page was loading." errors (HTTP Error 12031 according to the Windows network diagnostic tool). It doesn't seem to be anything to do with our ISP si...
The error message is what gets displayed whenever the connection is lost between your computer and the server before the page has finished loading. In the case of a local server, this might be because the server crashes during page generation (malconfigured server software? incompatible PHP/Apache modules?) or if it's ...
3
1
10,063
2009-09-01T15:20:15.900
api_errors
serverfault.com
220,649
MySQL trigger/check on INSERT based on multiple factors (location, date and time)
I have a shift schedule planner for various warehouses. I'm trying to add multiple checks at DB level. If I'm using a composite key (by removing shift_id ) to match staff, location,date time it's works but it doesn't solve the shift overlapping problem (e.g if I insert exact same data as shift_id 1 but instead of 09:00...
With some help, the solution was extremely simple... The trigger needs to validate the staff id as well. Therefore, the final trigger would look like: [CODE]
0
0
970
2018-10-20T13:55:25.770
data_quality
dba.stackexchange.com
33,235
Cannot remove Mirroring / nor restore or delete database:Error 3456 (SQL Server 2012)
I have a database that was a mirrored partner and went into suspended state. (Mirror Server was shut down). I took the principal database out of mirroring using SSMS. But now I am unable to restore the mirror database so that I can set up the mirroring again. When I run [CODE] on the mirror, SQL Server logs Error 3456 ...
This is a known issue which Microsoft has resolved in Cumulative Update 6 .
3
3
17,287
2013-01-20T22:03:09.217
database_errors
dba.stackexchange.com
1,107,441
How to forward all traffic from second device through openVPN tunnel?
I want to connect a new machine remotely to our company network, so it can access the active directory there. The old machine has access to the company network through an OpenVPN tunnel. When connecting through the tunnel, it gets a company internal IP per DHCP, Nameservers are overwritten with the internal company nam...
Update/Note: According to Daniel's comment this solution doesn't work for him because of missing [CODE] connection to "newmachine". Nevertheless keeping it in case that someone else can use this. Unfortunately you can't give many details. Hence we need to do some basic steps. You didn't specify an OS but I will use som...
1
1
392
2022-08-05T02:03:23.173
infrastructure
serverfault.com
188,427
Installing tmux on Ubuntu from source
I've download tmux and am trying to install it on Ubuntu 10.04. [CODE]
Install libevent-dev and ncurses-dev: [CODE]
1
2
810
2010-10-07T05:05:38.137
infrastructure
serverfault.com
376,188
Scrum: Should Irregular Events Be Estimated?
Should a Scrum team estimate irregular, planned events, such as an overview/demo to new users and potential customers? Our team is pretty small, so the effort to prepare for and conduct these events falls on us (primarily the Product Owner, Test Lead, and Scrum Master). We've even had our entire team there for parts of...
Consider the extremes: if your team spends 4 weeks setting up for a 30 minute demo, something is clearly amiss. Similarly, if they spend 12 hours in that meeting, you're going to want to know what is going on. These aren't reasonable numbers I've provided. More reasonable numbers are of course needed. This example mere...
6
5
313
2018-07-31T17:31:11.643
api_errors
softwareengineering.stackexchange.com
136,824
Amazing improvement of script execution speed when split - not understood
I have an ETL job that merges data into about 20 columns of a fact table, all integer non-null (default 0) columns. There are 8 merge statements to completely update all the columns and they involve quite a lot of calculation and rows. I put all the merge statements into one long stored procedure and ran it, but it too...
Your comment confirms that the original long script was using variables and these have become parameters. Probably you are benefitting from parameter sniffing here and better execution plans. The values for variables are not sniffed unless you use the ’option recompile' query hint so you will get the same plan regardle...
2
3
228
2016-04-28T09:03:55.940
data_quality
dba.stackexchange.com
529,357
Trouble configuring apache server to proxy an SSL connection
I'm running an application on Tomcat7 with Apache Portable Runtime, I bought an SSL certificate and configured it correctly - when I try to connect through the ip:port combination, it connects fine but warns me the certificate is issued to the domain name, not the IP. The VPS I'm on doesn't have SELinux (and there's an...
The error you're getting is probably due to the fact that your client (Firefox) is trying to use SSL, but you Apache virtual host does not have SSL enabled. In order for your clients to be able to communicate via SSL with your front-end proxy, you're going to need to do SSL on the front-end, not in Tomcat. You gain abs...
1
4
8,344
2013-08-07T15:51:10.340
api_errors
serverfault.com
1,056,165
Copy mails from old to new postfix installation
I setup a postfix/dovecot installation following this ispmail guide on workaround.org I recently changed my host for a good reason. I followed the very same guide once again. This time, I wound up with a different hostname during the postfix installation. As a result, the mails have a different name (the names in /var/...
The answer was doveadm sync: [CODE] I had to [CODE] the files that I copied earlier (otherwise I would run into a permission error). They have a neat documentation
0
1
340
2021-03-06T22:22:39.113
infrastructure
serverfault.com
196,529
I should have used a factory method instead of a constructor. Can I change that and still be backwards-compatible?
The problem Let's say I have a class called [CODE] which provides a [CODE] method (and maybe others, but let's keep things simple) to read data from an [CODE] file: [CODE] A few years later, I decide that I want to be able to support [CODE] files in addition to [CODE] files as data sources. The implementation for "read...
I would go for a variant to your second option that allows you to phase-out the old, too generic, name [CODE] : [CODE] The only drawback here is that the new base-class can't have the most obvious name, because that name was already claimed for the original class and needs to remain like that for backwards compatibilit...
14
12
2,073
2013-04-29T14:29:21.957
api_errors
softwareengineering.stackexchange.com
51,340
Should I join datetime to a date using cast or range?
This question is a take-off from the excellent one posed here: Cast to date is sargable but is it a good idea? In my case, I am not concerned with the [CODE] clause but in joining to an events table which has a column of type [CODE] One table has [CODE] and the other has [CODE] ... so I can effectively [CODE] using a [...
"It depends". One advantage of the [CODE] predicate and [CODE] to date is that the join can be hash or merge. The range version will force a nested loops plan. If there are no useful indexes to seek into the [CODE] on [CODE] this would make a substantial difference. Setting up the 5K/ 2 million rows of test data mentio...
3
6
39,770
2013-10-10T18:42:20.003
warehouse_errors
dba.stackexchange.com
320,518
Can read/write jobs be put in a queue?
I share a server with HAL. The server has 32 GB of memory. I rarely use more than 1 GB of memory, and when I do, it is for a few minutes at a time, and I don't mind sending such jobs to the back of the line. HAL read/writes large files (e.g. using gunzip). This can take up to 100% of the memory CPU, intermittently, for...
You could have a job queuing system or modify the kernel's scheduling approach. I'm going to ignore those options and suggest that you use ionice -- or more specifically that Bob uses it to lower his priority. It sound like you're having a disk access issue rather than a memory issue. Regular nice may also be an option...
3
5
293
2011-10-11T17:12:24.633
infrastructure
serverfault.com
158,883
Azure SQL Warehouse - Data Ingestion - Convert a huge fixed width (with commas) file to delimited
I am not even sure if I am framing this question right, but I will try - I have a bunch of huge text files generated from an Oracle export on a Linux system. Each file is about 30 GB in size, and I have about 50 of them. The goal is to export this data to Azure SQL Data Warehouse. BCP in this case is not the right appr...
I ended up using sed to cleanse the file [CODE] This took care of formatting issues with the source files. Once these files were uploaded to Azure blob storage, the rest was easy. I created external table pointing to files on blob via Polybase and then created internal tables by using [CODE] . An Azure DWH instance wit...
5
2
1,983
2016-12-22T05:56:49.770
warehouse_errors
dba.stackexchange.com
37,230
Selenium, updating rows, refreshing, stale items
I have a table of charges, I am creating an array of elements of the rows. I go through the line items and zero them out. The issue is, each of these are handled by modal windows. It pops up, I zero it out, and I click on save. returns control back to the rows and it refreshes the total column with zeroes. I try to gra...
You can use the following approach: Check the number of items in a line. Save it to some [CODE] value Each time you're entering the step of clearing the cell out, locate your current element using the index (build a separate xpath and create new locator for each item) You won't be storing the big part of DOM, only the ...
2
0
337
2019-01-08T16:04:41.567
data_quality
sqa.stackexchange.com
236,589
Java Communcation API not available for Windows
I want to write a program in Java using RS-232. But I am unable to find the java.comm Package for the windows. Which library should I use for this purpose? http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-misc-419423.html The only package avaiable here are not for Windows. Can you ...
There are several libraries written for this, just google for [CODE] . One of the alive ones seems to be http://code.google.com/p/java-simple-serial-connector/ .
2
0
972
2014-04-22T06:17:35.003
database_errors
softwareengineering.stackexchange.com
485,910
Windows Services: How to schedule and monitor them?
We have about a dozen Windows Services, both in-house developed and third-party products, and have the following requirements for managing them: Start/Stop/Bounce a given service at scheduled times of day, on certain days of the week. Optionally monitor services: If a monitored service stops unexpectedly, send a notifi...
If you want to stop and start services on a schedule then why not use the windows built in job scheduler? It's perfectly capable of doing this kind of thing - it can run a command and you can simply use that with batch jobs designed to start and stop services. As for monitoring services - again you can use the recovery...
3
1
8,427
2013-03-08T08:51:25.733
pipeline_ops
serverfault.com
663,759
Tomcat 8.15 APR Poller failed with error 610,038
I was testing my server with JMeter but when I reach an Highload the server tends to have this error logged on the console and it keeps a lot of active threads on apparent deadlock : 30-Jan-2015 17:24:38.504 SEVERE [http-apr-80-Poller] org.apache.tomcat.util.net.AprEndpoint$Poller.run Poller failed with error [610,038]...
You might have a limit for the connections in server.xml - max connections or maybe a filter defined for that in the application? If you can not find something just get a simple web application and try to see if Tomcat behaves in the same way.Add more MaxTreads in the server.xml, see if the server reaches the RAM/ CPU ...
0
0
1,002
2015-01-30T16:57:12.750
database_errors
serverfault.com
518,534
Resting Encryption on iSCSI SAN in Hyper-V Environment
I have a need to implement resting encryption of data within our environment. Basically, we have a Hyper-V virtual server named FILER01 that runs Windows Server 2012 that is has a direct iSCSI connection to a LUN on our DELL MD3200i iSCSI SAN . This virtual server is only configured to act as a file server and it prese...
EFS has been around for a long time, that is true. But it is still as relevant as ever, and it satisfies HIPAA guidelines for encrypting data at rest. Also you do not mention SQL, but for anyone else who stumbles upon this question, also look at TDE (transparent data encryption) for encrypting SQL Server data in an aud...
3
4
891
2013-06-26T00:38:11.140
database_errors
serverfault.com
133,431
Install SQL Server 2014 in windows 10 not installing database engine and some features?
[CODE] So as per the suggestion i deleted all sql files and tried to reinstall again.This was the error log [![error on command propt on running sqlcmd -L][1]][1] [![enter image description here][1]][1] I am trying to install sql server 2014 along with visual studio.I had already installed sql server but had installed ...
Since we don't know what happened with your original installation, i.e. whether it was successful or not) it is difficult to pin down the exact issue. I am sure SQL Server Database Engine has never been successfully installed, so is not eligible to repair. Also, it could be an SA or Service Account corruption Issue. Yo...
1
1
3,889
2016-03-26T11:57:45.997
database_errors
dba.stackexchange.com
873,234
Shutdown old EC2 instances only after creating new one in when changing ECS host ami in autoscaling group
Here is my LaunchConfiguration of my AutoScalingGroup in my ECS-Cluster - using cloudformation. [CODE] My issue with the current setup is, when I make changes to the ECS Host AMI it will result in each of the EC2 instances being shut down and replaced one at a time. This results in any/all ECS Services currently runnin...
Set MinInstancesInService above equal to the ASG's current count before the update - that will make Cloudformation create a new instance before terminating the oldest one each time. Be sure to suspend process on the ASG while the update is happening or auto scaling can interfere with cloudformation's understanding of w...
0
0
574
2017-09-12T09:51:05.050
infrastructure
serverfault.com
638,710
Passing through RDMA network devices to docker containers
I'm wanting to passthrough infiniband to a docker container so that I can run some high performance apps over ipoib and use rdma. Currently, I'm doing this with xen virtual machines. Now I'm looking into using CoreOS and docker as a much lighter weight and easier to manage alternative. I have an IPoIB device ib0 with a...
And now I can answer my own question on how to do this. Use pipework which I have just patched to work with Infiniband or RDMA IPoIB devices. You run it like this. [CODE] Because IPoIB devices do not support bridging, the whole ib0 device is hidden from the host after the command is issued. i.e. It is moved to the netw...
5
4
5,383
2014-10-21T22:33:10.680
pipeline_ops
serverfault.com
60,239
OLE DB Sybase Connection Failing
I have a connection to a Sybase database which we stage in a SQL Server 2008R2 database. I can connect the the database and the connection tests out fine. I am using an OLE DB source with a Sybase Driver. I can even preview data. Note I have shrunk this data set so the data can not be seen but it still demonstrates tha...
Under Solution Explorer On Righ Side In BIDS ----> RightClick ----> Properties ----> Configuration Properties ----> Debugging ----> Debug Options ----> Run64BitRuntime ----> False
8
1
1,438
2014-03-05T20:26:38.567
database_errors
dba.stackexchange.com
525,561
Graph Bind9 requests statistic with Cacti: named.stats => Permission denied
I set up, sometimes ago, a Cacti plugin on a Linux Debian that allows to collect DNS statistics, through SNMP/rndc queries, for generating beautiful graphics. It was working fine until some weeks ago... :-( So the issue is that the file named.stats has its specific user/group file permissions as usual. But the Cacti po...
Use sudo for this. Add this to /etc/sudoers snmp ALL= NOPASSWD: /usr/local/sbin/cacti_bind9.7/runstats.sh And modify your snmpd.conf extend line to: extend .1.3.6.1.4.1.18689.0.1 dnscache-stats /usr/bin/sudo /usr/local/sbin/cacti_bind9.7/runstats.sh Regards, Rubén.
1
1
3,854
2013-07-23T09:01:14.390
infrastructure
serverfault.com
384,115
increase download speed for users via nginx
Is there a setting with nginx that could be restricting or limiting the download speed of my users? My users are getting around 300kb/s If I use a download accelerator and download a file simultaneously I max out my internet at 1.2 mb/s. My conclusion is that somehow nginx is restricting my download speed. My site does...
Okay, you've got some weird comparisons going on here. First: Are your users using download accelerators? If not, then your tests with one are meaningless. Second: Where are your users in relation to the server? Where are you in relation to the server? If your users are significantly further away then you are, this cou...
1
1
4,310
2012-04-28T19:00:07.630
infrastructure
serverfault.com
617,078
Port 22 has been closed during upgrade (not accessible through SSH/SFTP)
After upgrading somehow some of the ports have been closed!? Now port 22 is no longer open and the server is not accessible from neither SSH nor SFTP All other services like apache, mysql, webmin etc. is running as expected Have tried to reboot the system Open ports before upgrade [CODE] Open ports after upgrade [CODE]...
IIRC the default MySQL config is not to listen via TCP, but via socket file only, which explains why port 3309 isn't bound after the upgrade. It's likely that somehow you ended up with the default config. Why sshd isn't running isn't discernable from the commands you shared, but likely some config error that makes [COD...
0
1
1,327
2014-07-31T22:24:48.377
database_errors
serverfault.com
1,001,420
nginx mixing cached content between my different domains
I don't know if this is a bug or I am defining cache incorrectly, I have a nginx cache (reverse proxy) server that is used by 2 different domains ( [CODE] and [CODE] ), different content, not an alias domain. I defined a single cache, then defined the two domains/vhosts in nginx and set it to use that cache, both domai...
Answering my own question like a weirdo; In order for nginx to make a difference between same paths used by two urls (e.g [CODE] ), it needs to use [CODE] , which by default seems to be [CODE] , this doesn't work in my case, when two nginx domains take data from same source server (by sending a different host header), ...
0
1
2,059
2020-02-02T01:38:26.537
infrastructure
serverfault.com
333,960
How to connect MySQL database of local server in NetBeans 7.0.1 ( windows)?
I am using [CODE] very first time for my php. Actually in my company there is a local server ( 192.168.1.99) where all projects resides and we access phpmyadmin of that local server, Although I have added my project folders with NetBeans (this was also very hectic) but now I am having problem to connect database of my ...
You turn off the firewall or create rule that allow traffic through 3306 port, or test your connection using command [CODE] . Try instead of [CODE] write [CODE] .
0
1
10,162
2011-11-23T05:59:54.773
database_errors
serverfault.com
133,501
Ranking items on a per user basis
I have a MySQL DB with 20k-50k items and I want various users (let's say 1k-10k) to rank these items for themselves, so this is not going to be a global ranking but a per user one. All items are identified by their 7 digit id. Since I'm guessing that there will be a pretty sparse ranking (perhaps about 1k items per use...
Suggest to record the rankings, as they occur, in a third table where the primary key links the user and the item. Table only records as many rankings as are made available. Each user's rankings are kept separate. This records a ranking as an ordered triple: (user, item, rank). [CODE]
2
0
244
2016-03-27T23:57:21.523
database_errors
dba.stackexchange.com
318,736
Using VLANs at 2 locations across VPN?
Forgive me if this question is horribly misguided. I'm primarily a developer, but my company has asked me to work on setting up their network for data and voip connections in a sensible way (I do have at least a basic understanding of networking). We currently have two locations connected by a VPN. We are a video proce...
You are correct in what you say. You need to create a new vlan for VOIP at both sites. The VOIP lan at each site should not be the same vlan, or the same subnet. They ought to be routed between sites. You will need an extra interface on your router that is on the VOIP subnet (this can be a dot1q tagged interface if you...
3
1
15,977
2011-10-05T14:40:12.407
infrastructure
serverfault.com
253,950
Assigned filetype for backups not applying
I am working to migrate backups over to a new storage point. I figured the easiest thing to do was to duplicate the configuration over from the existing Maintenance Plan to a new one, just in case something goes wrong with the new backup point in the short term. I copied over the existing configuration and ran the Main...
After a bit more investigation and review, we found that the filename size was too long and was cutting off the tail end of the name. It's very likely the issue has been going on for some time, but was never noticed until the changeover.
0
0
21
2019-11-22T20:06:00.973
data_quality
dba.stackexchange.com
9,640
Migrate Data and/or Schema from DBv1 to DBv2
I have a production database which has been plugging away for several months. I have been making modifications to a duplicate copy on a test/dev server. I've added some additional fields (null allowed) to several tables, as well as I've added some new tables and indexes to both new and existing tables. My question is t...
It sounds like you've got this entirely back to front and upside down. Typically changes are tracked using scripts, which you would then apply to the production database. I've never encountered a case where it made sense to import production data to the next version created from development. If your database isn't curr...
4
5
354
2011-12-22T19:45:29.227
database_errors
dba.stackexchange.com
54,114
Why is my database becoming suspect?
Here is my situation: restored a known good backup (works fine on other machines) that originated on Sql Server 2012 onto a local 2012 install. Created DB as part of the restore. No errors reported. I am accessing it through a Node.js app, using the Node-SqlServer driver (if that makes a difference). The first time tha...
Knowing that a CHECKDB returns errors right after restoring a backup, as stated by Remus Rusanu, you have a corrupted backup. As fixing this afterwards is usually much more painful then before, you should plan (or ask your DBA) to check the consistency of your databases on a very regular basis. I remember having anxiou...
2
4
906
2013-11-28T07:47:54.167
database_errors
dba.stackexchange.com
1,007,689
MySQL , sysadmin, root access
When enter to terminal: MySQL -u root -p I get answer: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)bash: Cd: /path/to/directory : No such file or directory When i enter to terminal "superuser do -s" I get this answer:No such file or directory. All answer I see here need use MySQL ...
MySQL -u root -p I get answer: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) The mysql command-line utility is called mysql - all lower case. Since you got back a "sensible" (if undesirable) response from mysql, I can only assume your spelling checking intercepted this during posti...
-2
1
173
2020-03-20T12:37:22.980
database_errors
serverfault.com
266,439
Dealing with several custom getters
I have a data structure with data units containing different types of data. I've wrapped the data in "Field" objects so that each field is able to independently parse user input in a desired way. [CODE] You can see how the number of methods would quickly go up as I add more types of fields to the DataUnit class or more...
I designed and implemented a hierarchy like this many years ago (before generics) so here are some comments. They may help stop you from repeating my mistakes :) The proliferation of methods like parseNumber(), parseName() suggests that the class hierarchy needs adjusment, yet your hierarchy looks well designed. My app...
0
1
333
2014-12-14T21:34:08.493
api_errors
softwareengineering.stackexchange.com
101,968
Moving TDE database to a new database but having problems with the cert
This is my first time working with TDE so hopefully I haven't done anything horribly wrong. I'm trying to move my TDE database from one server to another. I have created a master key on the master database of the new server. I then restored my certificate from backup using the following command: [CODE] When I created i...
You will need to create a master key on the new server - if it does not exit already. [CODE] Then you have to restore your certificate: [CODE] But for this to work you will have to make sure that you made a backup of the original certificate with the private key. [CODE] If you only have a cer file and not a key you wil...
5
5
742
2015-05-19T22:52:02.977
database_errors
dba.stackexchange.com
324,016
Unable to Create Fast Refresh Materialized View with Geometry Field
I am receiving the following error while trying to create a materialized view with a geometry field on Oracle (21c): [CODE] I will leave here some snippets to reproduce this error. First of all, we will need to create two simple tables and its logs: [CODE] This should work since we omitted the geometry field from the m...
You can find the answer here: Getting ORA-30373 When Creating A Materialized View Containing ST_Geometry (Doc ID 1067173.1) MDSYS.GEOMETRY (ST_GEOMETRY) object type is not defined as FINAL. ST_GEOMETRY can not be defined as FINAL because how it was designed. But object types must be defined as FINAL to be referenced in...
0
0
383
2023-02-24T16:06:03.223
database_errors
dba.stackexchange.com
203,093
Naming conventions used for variables and functions in C
While coding a large project in C I came upon a problem. If I keep on writing more code then there will be a time when it will be difficult for me to organize the code. I mean that the naming for functions and variables for different parts of the program may seem to be mixed up. So I was thinking whether there are usef...
If I keep on writing more code then there will be a time when it will be difficult for me to organize the code. This is your problem: get the organisation right, and the style should flow more easily. Don't wait to organise your code: keep your code organised as you go. Although the language doesn't do it for you, code...
14
17
47,598
2013-06-28T18:36:43.833
api_errors
softwareengineering.stackexchange.com
800,552
Error trying to create a new vm in ansible
I just started learning Ansible. It has been a pain so far. I have this code to create a new vm. I followed this tutorial. [CODE] I however keep getting this error. [WARNING]: Host file not found: /etc/ansible/hosts [WARNING]: provided hosts list is empty, only localhost is available PLAY [localhost] TASK [setup] *****...
You have one major problem and one minor problem. First, the major problem: You haven't supplied the correct [CODE] name. [CODE] This is supposed to be set to the name of the Datacenter object in vSphere. (And, as specified in the Ansible documentation , it should be set to [CODE] if you're talking to a standalone ESXi...
0
0
1,520
2016-09-01T19:37:56.673
pipeline_ops
serverfault.com
1,123,447
How to specify MX RR using djbdns?
I want one of the domains I manage to have null [CODE] records: i.e. , [CODE] . I'm trying to figure out how to specify [CODE] under [CODE] , but my searches haven't yielded any information about how to do this. I did the following for the moment, but I know this isn't the proper way to null out [CODE] records ... [COD...
Per the patience and valuable help from @Nikita-Kipriyanov (see the comments below my original Question), I now see that the following is the answer to my question: [CODE] It generates this ... [CODE] ... which is indeed a suitable Null MX record. I also tried this ... [CODE] ... and it also generates the same MX recor...
-1
1
75
2023-02-21T20:27:51.800
infrastructure
serverfault.com
757,935
Preventing IP address from hitting Apache Tomcat by configuring Apache
We got Tomcat that needs to be restarted quite often on our production. Examining Apache access log file, I can see that certain IP addresses are hitting same logon page hundreds of times one after another: [CODE] Is there a way on Windows to prevent the same IP address from hiting this same page all over? While readin...
I suggest to do a quick google search, as similiar questions were asked many times before. Mod_security is well suited for your problem: SecRuleEngine On SecAction initcol:ip=%{REMOTE_ADDR},pass,nolog SecAction "phase:5,deprecatevar:ip.somepathcounter=1/1,pass,nolog" SecRule IP:SOMEPATHCOUNTER "@gt 20" "phase:2,pause:3...
1
1
62
2016-02-17T20:24:55.753
infrastructure
serverfault.com
183,044
Mongo exception: connect failed on reboot
I have Mongo installed on Ubuntu 16.04 machine, on VMWare. I start it using "mongo" command, last week there was no problem. But recently, it gives this error: MongoDB shell version: 3.2.15 connecting to: test 2017-08-09T09:31:33.634+0300 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for ...
[CODE] is actual mongodb daemon what "is" the database. [CODE] is just client program what connects to mongod process (in this case; with sharded cluster it connects to mongos -process). So, [CODE] process must be running before [CODE] can connect it. You wrote that [CODE] don't work anymore? Check if that service has ...
1
0
4,508
2017-08-09T06:45:19.020
database_errors
dba.stackexchange.com
401,482
How can I set Qmail to relay all mail to one address
I'm new to qmail it's setup and working like it should. I need to set it to do something a bit different. I need it to take all mail that would be incoming to it and relay all of that to one address as opposed to whatever address they could have possibly set it to. The idea is we have setup a test enviroment and we wan...
You should be able to do that with [CODE] . The following would route all outbound emails for [CODE] to [CODE] : [CODE] In order to route all emails to [CODE] , use the following: [CODE]
2
1
964
2012-06-22T20:50:27.680
infrastructure
serverfault.com
1,116,434
Active directory to ldap synchronization
I have two LDAP servers. First is Active Directory and second is openLDAP. I need setup between these servers. Is here anybody, who know, how to do it? I tried to use this link for tutorial , but I found problem. When I started migration with the command, i got response this: [CODE] java.util.MissingResourceException: ...
lsc works only with jdk8, By installing openjdk-8-jdk should fix the issue.
0
0
185
2022-11-23T16:33:15.190
infrastructure
serverfault.com
788,554
Software Raid + LVM + Virtual Machine: File Corruption after crash
At our startup, while trying to move our applications to a new server we ran into a hung up Ubuntu 16.04 at the new server, responding to pings but ssh hanging at [CODE] and no login showing up when trying to login with screen + keyboard directly. After power cycling the server it booted without any errors, but some (o...
What was this system doing when it locked up? More info is needed to speculate on causes... I'd be concerned about the mysql database or anything else important that was being written to. Check your database! Run a data scrub on each array and fsck on each filesystem, maybe this is repairable. If there is any concern a...
0
0
127
2016-07-07T18:42:34.467
data_quality
serverfault.com
124,546
Datatype for phone number: VARCHAR, INT or BIGINT?
So this will be the dummy question of the year but I need to ask since is not the first time I pass through this. Take a look to the following table definition: Take a look at the column [CODE] which is a [CODE] right now but it will hold a phone number. Since I don't know how many numbers a phone could have all over t...
How would you handle a phone number with an extension, such as "+1-000-000-0000 ext 1234" ? Note, the "+" indicates international dialing rules should be applied; so from North America, the system automatically knows "011" in front of international calls, etc. Also, what about phone numbers such as "1-800-DBA-HELP"? I ...
14
15
138,521
2015-12-24T18:58:39.917
database_errors
dba.stackexchange.com
955,883
PHP-fpm is slow with nginx,
So, I have been running some benchmarks on my docker container (nginx connecting to php-fpm) and it's over 70 x slower than bare metal. I can manage 100 requests a second compared to bare metal which is 7,000 a second. docker-compose.yml: [CODE] My nginx.conf [CODE] My dockerfile for nginx, just copies the conf file to...
Opcache is disabled in the default PHP FPM docker container. Add this line in your PHP Dockerfile to install it: RUN docker-php-ext-install opcache
4
12
7,489
2019-02-27T01:02:37.047
pipeline_ops
serverfault.com
331,917
Why does VALIDATE CONSTRAINT on PG 14.7 take a ShareLock?
I'm following this answer to add a [CODE] constraint to an existing DB table with ~100M rows. However, when I try running the backend process takes out a [CODE] . [CODE] I confirmed this by checking [CODE] in another session, where I can see the following (5447 is the pid of the backend attempting the VALIDATE CONSTRAI...
AWS confirmed this is an issue with their version of postgres. I guess they do some sort of internal patching and messed this up. Support confirmed this behavior is present on version 14.7 and 14.8 but not 14.6 or 14.9
1
1
156
2023-10-06T15:25:33.690
data_quality
dba.stackexchange.com
743,721
Accessing kubernetes (hosted via google container engine) securely using kubectl from a remote server
Hi I'm running into issues trying to access my Kubernetes cluster hosted using Google container engine. I want to use the kubectl from an external/remote server (Circle CI) I have gcloud and kubectl installed and I can access my cluster insecurely using [CODE] I want to be able to access it securely using the certifica...
If you have [CODE] installed, you should be able to run [CODE] which will grab the client credentials that allow [CODE] to securely connect to your hosted apiserver. It will include the cluster's ca.crt (to authenticate the server endpoint) and a client certificate (used for authentication instead of the password). The...
0
2
1,573
2015-12-17T14:18:46.813
pipeline_ops
serverfault.com
272,165
SQL Server 2008 Vs SQL Server 2000
The performance of SQL Server 2000 database is not improving with the latest multi-core processors. I think SQL Server 2000 is not capable of utilising these cores. So, I plan to switch to SQL Server 2008. Before that I want to know whether SQL Server 2008 will perform better with Quad-core Intel Xeon processors ? DB S...
if you were really serious about getting your query workload to use multiple-processors / cores more often.. I'd probably take a look at decreasing your 'cost threshold for parallelism' from the default 5 to maybe 4 or 3. I've noticed that this helps quite a bit on SQL 2000 with a decent core count.
0
1
114
2011-05-21T06:17:35.953
database_errors
serverfault.com
245,797
Saved state for SQL Server Always On on Hyper-V
For our SQL DEV/QA environment our system-engineers did setup an Hyper-V enviroment - 3 hosts - 2 VM on each host (1 for DEV an 1 for QA) Patching for the hosts is scheduled once a month but I noticed the VM's on these hosts are put in a saved mode and not shut down gracefully during the patching. We are running multip...
Since this not production, it's not so critical to do this the "right" way. Having said that, running QA the same way as production is beneficial for ensuring everything goes well in production. "Best practices" would be to gracefully shutdown each VM prior to rebooting the host. That allows the AG to realize the datab...
2
3
207
2019-08-20T16:06:12.750
database_errors
dba.stackexchange.com
305,137
ip6tables IPv6 address range comparison
I am using ip6tables to restrict connections to server. I use ip6tables with "-m iprange --src-range %s-%s" to specify the hosts that are allowed to connect. If I specify the range to 8000::0 - ffff::ffff, the result looks like this. Chain ripp_0_0 (1 references) target prot opt source destination ACCEPT all ::/0 ::/0 ...
Not sure about the ip6tables stuff, but ffff::ffff does not mean what you think it does. It expands to ffff:0000:0000:0000:0000:0000:0000:ffff. The range 0::0 to ffff::ffff will thus just fave zeroes in all the middle words I think. Try ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff if that is what you mean. Or just use 8000:...
0
1
1,286
2011-08-26T02:41:11.700
infrastructure
serverfault.com
60,690
ORA-12528 TNS Listner
When I try to connect the database using sql developer it gives the error below: [CODE] I have tried all the suggestions that I found on this website, but in vain, they are not working. I checked the instance and database status, they are started and active. But why I still can not connect to that? When I try the oracl...
This means the that the listener is up and running, but the SID or SERVICE_NAME in the CONNECT_DATA section of your net service connect descriptor does not specify a SID or SERVICE_NAME that the listener is aware of. The listener does not know where to send your connection. See the full text of the error message: [CODE...
1
1
1,064
2014-03-11T16:53:02.757
database_errors
dba.stackexchange.com
40,669
Identity proceeds as normal, but with a leading 10...?
So I noticed a very strange thing when tinkering with my database. I had just inserted a row which was ID 47, then after inserting some more, I realised that somehow my Identity had skipped all the way to 146, so it had skipped 999 to get there. It's not a huge problem, or a gamestopper, just very strange, is there any...
This is a known behaviour difference in SQL Server 2012 because of a change in the way [CODE] is implemented. See related Connect Item for some discussion and possible workarounds (if this is a real issue for you)
3
7
104
2013-04-23T08:52:52.360
warehouse_errors
dba.stackexchange.com
16,451
Virtual Machine Monitoring KQL yielding empty results
I have enabled Azure Monitoring in one of our virtual machine. Is been 4 days the virtual machine is on, below is the query: [CODE] The output of Perf itself is empty. The same thing goes for [CODE] , it show me zero results. These are the two extensions I have installed on the VM Also I have created the Data collectio...
I added Azure Monitor logs to the Performance counters and now it is showing the Perf data
0
0
31
2022-08-17T09:47:09.517
pipeline_ops
devops.stackexchange.com
517,606
Can a duplicate computer name be known before attempting to join the domain?
Techs in the field are deploying windows 7 pcs onto a domain. They complete one entry screen, which should give them a unique computer name. However, they are human and end up giving the pcs the same name. The pcs are connected by TCP/IP to a router at the site. I'd like to detect the duplicate names before the pcs att...
As far as I'm aware the answer is "No" -- You cannot detect duplicate names until you attempt to join the domain, because you do not have access to the list of domain computers until you attempt to join the domain. You could theoretically download the list of domain computers from AD and check against that offline (pri...
1
3
2,306
2013-06-21T16:56:08.973
data_quality
serverfault.com
767,034
NRPE: Command line success vs Web error
I've got about 10 machines configured with nrpe and Dell's OMSA to report to nagios. For each of those machines, output on the command line from the nagios server a la [CODE] matches the output I see in the web interface. I've got one machine, though, that returns successful output from the command line on the nagios s...
Well, this turns out to be much ado about nothing. After combing the logs, I found Nagios sending requests to an IP that doesn't belong to any of the configured servers. Double checked the configuration for this particular client, and it was wrong. Fixing that, of course, fixed the weird error mismatching.
1
0
126
2016-03-30T13:05:45.380
infrastructure
serverfault.com
401,176
Can't Connect to IIS Ftp Site under Amazon EC2
[CODE] It works on Internet Explorer when I typed the address: [CODE] on the server but when I entered the Amazon EC2 Static IP ( ftp://IPADRESS ) it doesnt connect. I cant connect also to FileZilla I tried to turn off the firewall completely and it works. Aside from EC2 Security Group and Windows Inbound Rules is ther...
I had a similar problem with accessing IIS. I solved it by: Looking at my instance properties and finding the security group Adding HTTP and HTTPS to the security Group, Apply, and Apply Rule Set Use the machine name to connect to the instance. The IP did not work for me - but I do not have a static IP assigned. Works ...
4
3
6,395
2012-06-22T03:42:50.537
infrastructure
serverfault.com
1,119,070
Website loads slowly with www prefix, but https://[domain].com loads fine
My organization switched over to networksolutions for domain hosting, and since then I've been having issues with slow load times. When I enter the domain: https://www.martinsrestaurants.com the TTFB is very high (10+ seconds), regardless of a cleared or uncleared cache. The root https://martinsrestaurants.com works fi...
[CODE] redirects to [CODE] . This redirect takes 6 seconds. This is probably due to some misconfiguration on the webserver that serves the redirect. I would suggest that you talk with the hosting provider.
0
2
58
2022-12-29T15:34:34.833
infrastructure
serverfault.com