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
469,511
ntp offset is growing after some time
I have 10 clients and one server syncing with 2 NTP servers on windows using Meinberg NTP, all of them running Windows XP SP3. Except the server all of them syncing their time perfectly. The one that is losing its sync is running SQL server 2008, filezilla and NUUO surveillance system. On this system NTP offset is grow...
Without more information it is hard to give a full answer. Can you post the full ntp.conf for the broken server? And post a list of the offset showing the growth over time? I am not sure why you have both remote machines set as prefer? There are some things you can do to improve the setup: For starters you should remov...
3
3
2,793
2013-01-16T06:32:48.057
database_errors
serverfault.com
342,474
same javascript file, but different file size depends on a server?
I have a weird problem. I have two exact website on two servers - dev and qa. The dev one shows that my javascript size is 100kb, but the qa says 400kb. When I save the script on my local, it is 400kb. I looked at the header of the javascript on the dev and it looks like..it's sending [CODE] What is this and how do I e...
This should mostly just be a matter of making sure that your modules and settings match between the two servers. Run [CODE] on the server that's not compressing to make sure the module's enabled, then check to be sure the configurations match (server config in [CODE] , site config in [CODE] , and module config in [CODE...
0
2
166
2011-12-19T19:20:57.633
infrastructure
serverfault.com
882,691
Apache stops functioning for no particular reason
I have been experiencing this issue for about a year now with Ubuntu 16.04 & LAMP stack. Basically the server sort of gives out after a few months of usage. After checking every log I can think of on the server, there is nothing indicating any problems, but simply stops working about 50% of the time. Its not out of mem...
I seemed to have rectified the issue by simply disabling the PHP module using a2dismod php7.0; a2enmod php7.0; Now for the real question - what could that process have done? Reset some cache? Reset settings? Any ideas?
0
0
69
2017-11-09T16:28:35.450
infrastructure
serverfault.com
420,796
Using Google Analytics on local intranet site without internet connection
I am wondering if there is a way to use Google Analytics on my works local intranet site. It's a WordPress site, and our IT dept doesn't allow the WordPress sites to connect to the internet . I am thinking no, but I'd love to be proved wrong.
(Edit) Yes, you can use Google Analytics on your Wordpress Install. It isn't the server that is connecting to the Google analytics service, but the client's machine . If the client can connect to the internet, then google analytics will work unless that specific domain has been blocked by your company, which is unlikel...
0
1
1,856
2012-08-23T15:05:59.327
infrastructure
serverfault.com
17,265
Using kubernetes secret env var inside another env var
I have a secret being used as env var in another env var as follows: [CODE] When i exec into the container and run [CODE] command to see the values of env i see - [CODE] The container logs show error as authentication failure. Is this something that is expected to work in kubernetes ? There docs talk about dependent en...
The issue was with the command used to encode the secret - [CODE] . The echo adds a newline character at the end of the string. Using [CODE] fixed the secret. Closing the issue.
1
0
82
2023-01-19T01:42:58.457
api_errors
devops.stackexchange.com
2,250
The best way to share volume with config data between multiple Docker containers
I have Docker image which contains config files of VirtualBox and I want to use this image for running multiple containers in parallel. Config files of VM are being stored on host OS, however, I am afraid of issues with config data of VMs which may occur because of parallel accessing by multiple containers. All contain...
One could use read-only volumes . [CODE] If one would like to use the same volume in multiple containers then one could specify the following when running each container: [CODE] Note: one could use [CODE] to ensure that the volume is read-only to prevent that multiple containers will write at the same time to the same ...
0
1
1,021
2017-10-05T19:50:28.830
data_quality
devops.stackexchange.com
1,058,442
copy contents of registered variable to other hosts
I'm running the following tasks (I'm going to paste only the relevant asks in the whole role): [CODE] What I'm trying to do it copy the contents of the variable to another host. [CODE] (I'm not at this point worried about filtering or distributing the key to the corresponding hosts - just want to understand why the con...
when: "'prometheus1' in inventory_hostname" This is only running the task when the hostname matches prometheus1, and explains why you're getting it only on the prometheus1 host.
1
1
329
2021-03-26T14:04:28.523
pipeline_ops
serverfault.com
74,431
What benefits do a T1 line provide over "business-class" cable?
We are in a semi-rural area, so our internet connection options are pretty limited. We currently pay about $500/month for a dedicated T1 line at 1.5/1.5 Mbps from the local ISP. In comparison, Comcast is offering a 16/2 Mbps "business" internet connection for $90/month . Other than raw speed and their SLAs, what metric...
We have both where I work. The T1 is used for our outward facing services. FTP, WWW, VPN, etc. The Comcast connection is used for all the out going requests. So people in the office web browsing etc. In the case the Comcast connection goes down this traffic falls back to the T1 as low priority traffic. So both links ar...
9
10
10,895
2009-10-14T16:12:51.453
api_errors
serverfault.com
909,891
How calculate HAProxy roundrobin weights
Suppose I have two Redis database and want to distribute 70% of requests to DB1 and the other 30% to DB2. How can i calculate the weight parameter? [CODE]
[CODE] has a valid range of 1 through 256 for each server, but you don't have to use 256 as a basis for the calculation. The weight of each server is the ratio of that server's declared weight to the sum of all declared weights, so with 2 servers you can just use the values 30 and 70 and the distribution will be what y...
2
3
3,944
2018-04-29T13:37:13.070
database_errors
serverfault.com
128,028
Is it possible to display this restriction in an ER diagram?
I have a question about modeling a particular kind of restriction, but I don't know the technical term for it, so I will illustrate it with an example. I wish to make an ER diagram for a hotel room booking. Is it possible in an ER diagram to show that no two bookings of the same room, in the same hotel, in an overlappi...
The short answer is "no." Entity relationship diagrams can be used to show constraints based on the relationships between entities. However, the particular constraint you want to show (that bookings do not overlap in time) is a constraint between rows in the same table , not between two or more tables. The only single ...
3
1
5,850
2016-02-02T15:10:14.663
data_quality
dba.stackexchange.com
608,198
Using WDS to image a virtual machine using PXE boot fails, suspect issue is in WDS configuration
I'm trying to convert a site imaging procedure from (install old image, update image, recapture image) to (have image on VM, update, snapshot, sysprep, capture, roll back to the snapshot). The first step of this, of course, is to put the existing image on the VM, and in order to do that, I need to PXE boot the VM. This...
Use pxeboot.com instead of wdsnbp.com in your DHCP config at 067 Bootfile name. For me was working.
5
1
17,987
2014-06-26T17:16:43.060
pipeline_ops
serverfault.com
327,058
Trying to boot up mysql and getting a permissions error
I installed mySQL, I booted it up. Now I'm trying to set the password in mysqladmin with this : [CODE] This returns : [CODE] But if I do this.. : [CODE] I can log right into the server, and it doesn't even ask for a password! What's happening? What should I do from here?
If you have never set the root password for MySQL server, the correct syntax is: [CODE]
0
1
202
2011-11-02T14:35:17.057
database_errors
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
data_quality
serverfault.com
999,802
nginx SSI: how to echo html?
As a sanity test, at the head of my HTML page, I'm trying to do a very simple SSI [CODE] to indicate to the browser that SSI is working: index.html: [CODE] then later in JS: [CODE] But when nginx [CODE] es the string, the HTML tags are sanitized as follows: [CODE] I can't find anything in the nginx docs that indicates ...
nginx has an [CODE] parameter to the [CODE] command (cf. supported commands ), which decides how to escape the text. It can have three values none (which is what you are looking for), url and the default entity . Compare the results of: [CODE]
2
4
1,703
2020-01-21T16:28:00.140
infrastructure
serverfault.com
144,122
webpage accessibility
i have a strange requirement. I want to access a page on my site through a link say www.abc.com/downloads/file.txt but i also want that if anybody enters only www.abc.com/downloads it should not be accessible or it should display access denied. How can i do that???????
Disable directory browsing on your webserver.
0
1
37
2010-05-21T13:58:44.190
infrastructure
serverfault.com
736,307
Is it possible to have orphaned hard links?
I'm not sure if it is even possible to have an orphaned hard link. Let me explain why I'm asking. Bear with me. My Setup I am using [CODE] to sync my file server to my backup server. I am using the [CODE] rsync option to create a grandfather-father-son scheme (each backup will look like a full backup by using hard link...
From my understanding, SnapRaid store file-level parity information and does not mess with lower block level devices. If so, it should be completely unrelated to how hard-link works. Basically, if you lose too much files to be recovered by parity informations, you will end having an unreadable files (very much like usi...
2
1
507
2015-11-14T03:51:40.977
database_errors
serverfault.com
417,625
Owner/group for shared web folder
I've got a server setup where a couple users will need access to the webroot and subfolders. How do I ensure that the files they upload have the proper permissions to be seen by apache and allow them to edit/delete files as necessary
Just add both users to a specific group and have that ftp path owned by that specific group. [CODE]
0
1
173
2012-08-15T02:23:15.367
infrastructure
serverfault.com
66,282
In survival analysis, which is the correct way to introduce a variable which changes the survival rate but occurs at different times?
I am making a survival analysis with a cox regression with proportional hazards, we want to analyze wheter the introduction of a phenomenon influences the time until the death of an individual. A similar example would be: We have patients which were given a medicine at different stages of the disease (and at different ...
The problem you'll run into if you are not careful is the "immortal time bias". In short, the problem is that a subject isn't "in" the "1-2 years" group until they atleast 1 year under observation. This 1 year period is called immortal because patients can't die then. More concretely, if I naively partition my populati...
2
2
182
2020-01-10T16:31:24.753
data_quality
datascience.stackexchange.com
348,220
How can I add permissions for the IUSR_Machine account to a remote file share?
I have a web application which I need to grant permissions to a file share that's hosted on another machine in my DMZ. Users are accessing the application anonymously using the IUSR_ Machine account which appears to be the standard configuration. The application needs to serve files that are hosted in a share that the ...
Use a domain user account as the anonymous account instead, and grant access to that account. You can do this all the way down to on a per-page basis, so you might not need to edit any permissions already used by IUSR_MACHINE on the local box if it's a specific page or request that triggers the remote file share access...
0
1
1,443
2012-01-09T20:03:50.767
infrastructure
serverfault.com
31,231
Deadlock free MERGE-alike in MySQL?
I am trying to implement some parts of [CODE] in the MySQL driver in Drupal. Of course, Drupal has something but in truth it only works because the most frequent MERGE issuer just eats exceptions. So, whatever we try, deadlocks occur. What we do, we start a transaction, then [CODE] , try an [CODE] and if it causes an 2...
If possible, write a Stored Procedure to encapsulate the entire task. And deal with exceptions. Then have Drupal call the SP.
7
1
541
2012-12-31T12:03:03.487
database_errors
dba.stackexchange.com
44,244
Predicting for future date
How do I predict a category of data for a future date ? Example: what will the Sales figure for region (or region wise) for a particular date in the future based on the sales person past data for a particular product and product category? which model will be the best for these kind of problem ?
Linear regression works well for predictive analytics if you data is linear and doesn't contain outlier i.e In places where you want to predict future trend depending on the the past/current trend, Linear regression does a fine job. Linear equation is [CODE] where X is your input, [CODE] is the slope of your regression...
-1
0
209
2019-01-19T18:06:39.473
data_quality
datascience.stackexchange.com
225,265
Oracle 11g: Why doesn't "grant create session" allow user to log in?
I'm working on an Oracle 11g database, and simply need to create a user and log in with it. I successfully create the user, but after running the second line below, I still can't log in. Is there something I'm missing? [CODE] (I tired "grant connect" as well, to no avail.)
This worked for me (10.2.0.3) [CODE]
0
2
9,783
2011-01-21T18:11:52.593
database_errors
serverfault.com
55,144
metric accuracy for linear regression and non linear regression
Is there a one size fit all metric to measure accuracy / error rate for both linear or non linear regression models? For example adjust R2 is only for multi linear regression (or so they say). RMSE seems the best choice for majority except for curve lines of best fit as it can be misleading. How do I know which metric ...
Normally the evaluation measure doesn't depend on the method used, it depends primarily on the task being carried out. Of course there are standard evaluation measures associated with broad types of tasks, such as classification or regression. There are technical constraints to take into account, for example whether th...
0
1
808
2019-07-05T15:19:12.723
data_quality
datascience.stackexchange.com
297,927
Common Repository design
What I have: I am developing an Active Directory layer which will be used by a huge application with several modules having several solutions and projects... I am fairly new to developing large scale solutions. Because the current requirements are mostly to deal with User and Group objects in AD, my current solution lo...
The key to answering that question is the use of the repositories. Are there cases where only the User or only the Group repository would be used? Are you more likely to in most situations access both the User and Groups at the same time? Once you can answer those questions you will be able to determine which is "Right...
2
2
284
2015-09-22T13:25:17.317
data_quality
softwareengineering.stackexchange.com
16,640
How to improve the binary classification model for text (News Articles) of Recurrent Neural Net with word emmbeding?
I am trying to do binary classification of news articles using Recurrent Neural Net with word embedding. Following are the parameters of the model: [CODE] As the both training and testing error is high model is underfitting and require more data. So I have couple of doubts here: What would be the optimum data size requ...
I think you should be careful as to which algorithms you tend to use. A machine learning algorithm should be structured as follows: feature extraction and then your model. These are two things that should be done separately. Feature Extraction This is the bag of words, n_grams and word2vec. These are all good choices f...
2
4
1,399
2017-01-31T06:34:12.980
data_quality
datascience.stackexchange.com
76,425
Determining a correct ML approach
I've little idea about choosing a ML approach for the following problem. It is a classification problem and there are 2 classes that are [CODE] and [CODE] . There are about 100k samples and samples are structured like this: [CODE] This sample is classified as [CODE] . A sample is composed of [CODE] . Within each period...
I think all you need is to build proper features. For each period and element, I would build a categorical feature. That is 80 categorical features. It looks like there aren't many possible values by feature, let's say there are 3 or 4 possible values for each feature, by doing one-hot encoding you would end up with 24...
1
1
48
2020-06-21T20:51:26.280
data_quality
datascience.stackexchange.com
1,053,636
VPN to a Kubernetes-cluster from a remote network
I need to build a VPN connection between a network and a Kubernetes-cluster, so the applications hosted in this in this network could address to K8S-services via a secured tunnel. So, I have a bunch of K8S-nodes in a self-hosted environment. I've added a separate server to this environment, this server works as a VPN g...
Ta-damn! pfSense was breaking the SYN-packet's checksum: [CODE] I've disabled the hardware checksum offload feature and now everything works smoothly. Lots of thanks to y'all for your time and attention!
2
2
2,603
2021-02-14T18:22:00.610
pipeline_ops
serverfault.com
258,722
WHS import old storage pool after system drive failure
I set up a Windows home server for one of our clients. Now a couple of weeks later the system drive failed. It's completely dead, no way to extract any data from it. So my question is, after I replace the drive and reinstall WHS, is there some way to keep the storage pool from the former setup, without re-formatting th...
I presume that you're talking about a Windows Home Server v1 system, rather than one running the newly released Windows Home Server 2011, as these work very differently as far as recovery goes? I have swapped the system drive on my WHSv1 more than once without losing any of my data in the pool (and while keeping the ma...
1
1
2,399
2011-04-12T12:28:18.757
database_errors
serverfault.com
146,422
index-*.wt: encountered an illegal file format or internal - WT_PANIC: WiredTiger library panic - aborting after fassert() failure
One hypervisor went down for 7 seconds and afterwords I couldn't start mongod. See error. Replicaset with 3 nodes. I use [CODE] . I fixed the problem with deleting /data (re sync). Would there be an other fix? What is this error exactly saying? What wrong? [CODE]
mongo , as many other databases verifies that the files were written to disk as expected. In this case some writes have been lost and the checksum at the block header doesn't match the computed checksum on the block. Hence the server failed to start. Note, it's a good thing as the other option would be to start the ser...
0
1
1,193
2016-08-10T18:28:48.077
database_errors
dba.stackexchange.com
299,334
How to write loosely coupled tests
I work on a software that has a lot of tests. However, instead of helping us develop faster, these tests actually bog us down, because even tiny changes in the application break many tests. Clearly, the tests are too tightly coupled to the application. A big problem is that our application is not designed with testabil...
Tests are supposed to be tightly coupled to the application. The fact that many tests fail when changes are made is a good thing. Far better than throwing it over the wall and have your customer/user find the errors. However, code base aside, this rather assumes that you have good tests in place. Some questions to ask ...
0
0
988
2015-10-08T08:02:23.123
api_errors
softwareengineering.stackexchange.com
373,356
Applying Apache patches in CentOS
I am facing some problems regarding Apache patches. Can someone enlighten me by pinpointing some step-by-step directions for applying patches to an Apache server in a production environment?
You can use yum to do this [CODE] Will upgrade your Apache installation and it's dependencies to the latest available for your CentOS.
1
3
1,507
2012-03-26T09:24:45.350
infrastructure
serverfault.com
53,277
Implications of a second index on a timestamp field in a sequential table
I have a MySQL table of a few gigabytes with roughly ~100M rows. I store data sequentially, such that the timestamps increase as the ID also increases. Because ordering and filtering by the timestamp is so tremendously slow, I often simply use the ID to filter date ranges. If I know that Wednesday's data started at ID=...
Implication is that you need ~1144Mb extra storage to index column time for ~100M rows... Because the InnoDB engine wiil store the data off an PRIMARY or UNIQUE index within an non PRIMARY or UNIQUE index, as result your secondary index will be become larger How much larger?? you can calculate it with this formula [COD...
3
2
997
2013-11-13T19:33:05.057
api_errors
dba.stackexchange.com
90,456
Best pratice for VPS setup and administration (web/ftp/ssh)
After a long hesitation, I finally ordered a small VPS for my own use, basically web hosting (several websites, for me and friends) amongst other things (mumble server hosting, wave server, etc.). It will essentially be a basic LAMP box. I'd like to offer some hosting space to a few friends, and to allow them to tweak ...
I deploy all my web content via SFTP, SCP, or by editing on the server (or through the CMS I've employed). FTP, per se , should not be needed. Second - if you have user and group permissions correct, they won't be able to browse into other folks' websites via the commandline. Certainly being able to login via SSH shoul...
1
5
983
2009-12-03T01:32:43.967
infrastructure
serverfault.com
177,692
Is there a way to create a stored procedure in a database when you don't have permissions?
From a security perspective, I'm curious to know if there is a way to create a stored procedure without permissions? For example, the following error is returned when tried [CODE] . I'd like to see if there is a clever work around that can be applied. I understand this is a long shot but figured I'd gather ideas.
Sort of. What you are looking for is called an Anonymous Procedure. As long as you don't need to permanently store your procedure (i.e. you just want to run it ad hoc), you can actually run T-SQL code this way. See related https://stackoverflow.com/a/10818490/1680777 and http://www.dotnetfunda.com/forums/show/2167/what...
-1
0
610
2017-06-30T15:11:13.247
database_errors
dba.stackexchange.com
223,898
HP Smart Array p400i with Intel X25-M 160 SSD
I have a pair of x25-M 160 Intel SSD's in an HP DL360 G5 with a p400i Smart Array running 512 BBWC. The disk performance I am getting on this box and another identical one does not come close to matching the same two drives running through a cheap 3ware RAID card. Any idea? I have played with the cache settings, but no...
You may want to consider using another disk measurement tool. Have The p400 controller and HP SAS disks are very common setups, and if you were only receiving 5MB/s random reads/writes, there may be a larger problem. Can you run your analysis using another disk performance analysis program like Iometer ? For the SSD dr...
1
1
3,812
2011-01-18T19:41:05.413
infrastructure
serverfault.com
249,875
Can I include a modified GPL/Apache licensed font in my LGPL project?
I want to include a GPL & Apache duel-licensed font in my LGPL project, but didn't really find a clue if that's possible. There are two problems here: I didn't find any clue about Apache license's "LGPL Compatibilty". I know both the licenses involved here are compatible with GPL, but I still prefer to release the work...
Let's get some basics in discussed: SO what's a license really? A license is essentially a set of permissions with a set of conditions. A licence allows you do things provided you adhere to certain other conditions; this in turn also implies things you can't do! For example in a commercial licenses you can use but can'...
2
2
397
2014-07-14T22:51:45.303
api_errors
softwareengineering.stackexchange.com
268,733
Constraint to only allow unique value in a group
I have a table in PostgreSQL 12 with columns "sample", "group", "value". There can be multiple samples in a group. Is it possible to implement a constraint so that each group can only have one distinct value? EDIT: This is for a rather complex materialized view, where I would like to make sure that there are no samples...
CHECK constraints cannot use subqueries, so you have to use a trigger: [CODE]
2
3
815
2020-06-08T12:18:34.540
data_quality
dba.stackexchange.com
756,141
Two IP-Adresses one NIC
I have a server which needs two ip adresses. One internal ip address and one public ip address. OS: Ubuntu 14.04 LTS This is my current configuration [CODE] [CODE] The problem i experience is that i cant connect to the server via the internal ip address. Everytime i try [CODE] i get the following [CODE] The only way to...
According to Debian's documentation, you do not necessarily need to use interface aliases (the :1) to set multiple addresses. However with or without using labels, the solution you've posted should be working as intended -- and I tested it without problems on a debian 7 box. Since you've mentionned that you've been req...
0
1
74
2016-02-14T17:23:23.277
infrastructure
serverfault.com
347,640
StartSSL certificate with monit
I'm trying to use a StartSSL (free) SSL certificate with monit. I followed the wizard on startssl.com to generate first a private key, then a certificate. I then downloaded the sub.class1.server.ca.pem and ca.pem files. I combined them all into one single file like so: [CODE] I then set that file in monitrc as the pemf...
Chances are high that you're missing a chain certificate or have them in the wrong order, and that Chrome/IE already knows the chains when Firefox doesn't. You can use openssl s_client to debug this, but it's a bit clunky and nasty. I quite like the free tool on sslshopper for testing SSL cert deployments. Give that a ...
1
0
1,203
2012-01-07T12:08:00.537
api_errors
serverfault.com
215,844
Why does Windows XP (during a rename operation) report file already exists when it doesn't?
From the command-line: [CODE] I don't know what to do about this, as there is no other file in this directory. Why does Windows XP report that there is already a file here named [CODE] when there is clearly no other file here? UPDATE: This is happening on my work machine, WinXP 64-bit. But it also fails on my home mach...
Ding ding ding. Windows and DOS have device names reserved as filenames that are present in every directory. COM3 is one of them. You're probably familiar with NUL, LPT1, CON (like [CODE] ) etc. Your problem is that you're trying to rename it to COM3.anything.anything. Windows, which still has some DOS-era backwards co...
1
4
575
2010-12-24T00:50:44.443
infrastructure
serverfault.com
226,592
means to verify whether mails sent using a java application is delivered to the destination by the SMTP mail server
I am trying to send mails in large numbers, say 1000, using a java test application and a mail server, but though the application confirms that it has sent all the 1000 mails without any exceptions, I am not receiving the exact number (1000) of the same in the in box of the recipient's mail box(all the mails are sent t...
No, you can't (I think). You can verify if the email was correctly delivered to your SMTP server, but the message will probably go through a few other smtp servers too, and one of them can mark your message as spam without you ever knowing about it. I think the best way to make sure that an internet mail gets delivered...
1
1
2,508
2011-01-25T12:25:37.697
infrastructure
serverfault.com
236,447
Can a failed SAS10K be hotswapped with a SAS15K?
I have a Dell Poweredge 1950 with 4 146Gb SAS 10K configured in RAID 10. One of em failed. Is it possible to hotswap it with a 146Gb+ SAS 15K (which i plan to nab from an unused HP proliant) ? If yes, would it be safer to simply shutdown the server and replacing the drive instead of hotswapping it ?
Agree with the NO answer from @murisonc. There are some other possible issues. Some drives only will work if specific firmware. HP will likley be different than Dell. It may not impact this older server but does with newer. The drive is just unrecognized. Naturally you would need to use the Dell HD adapter/sled/tray. I...
3
1
2,118
2011-02-16T21:20:21.833
infrastructure
serverfault.com
116,672
How can I best study a problem to determine whether recursion can/should be used?
In some cases, I fail to see that a problem could be solved by the divide and conquer method. To give a specific example, when studying the find max sub-array problem, my first approach is to brute force it by using a double loop to find the max subarray. When I saw the solution using the divide and conquer approach wh...
For me, I believe that a problem is a good candidate for recursion if a smaller subset of this problem could be solved easier or obviously. An easy example: word count all files that end with ".txt" in a folder including it's subfolders. what if I had one file? (easy: word count that), what if I had one folder? (easy w...
5
10
546
2011-10-28T09:18:24.703
api_errors
softwareengineering.stackexchange.com
973,838
RabbitMQ rabbitmqctl command fails to initialize
It seems I can run the [CODE] command fine and it starts up but [CODE] fails with an error so I can't stop it or do anything else. [CODE] This is with Erlang/OTP 22 [CODE] Am I missing a config or something?
This can happen if you have mismatched binaries. For example, let's say your system has outdated versions of RabbitMQ and/or Erlang, installed via your package manager. If you then download the current version of RabbitMQ, such as the generic binary release, and try to run it, your [CODE] may point to the outdated vers...
1
0
3,945
2019-07-03T13:11:57.893
infrastructure
serverfault.com
710,870
Connection error in bitvise ssh client
Iam able to connect to ssh server host on openshift using putty but while using the same setting in bitvise ssh client i get the folowing error - 01:47:18.424 Connecton failed. getaddrinfo() failed. Windows error 11003: A non-recoverable error occurred during a database lookup. 01:47:18.424 The SSH2 session has been te...
This can be done by following these instructions: generate your ssh keys add key to openshift, if not done already import the key into the user keypair manager (private key) import the key into the host key manager (public key) for host, grab the remote access url and remove the ssh. *everything is needed except the ss...
4
2
28,008
2015-08-04T20:19:49.040
infrastructure
serverfault.com
70,207
Trouble installing SSL Certificate
I'm trying to rapidSSL certificate for a IIS hosted website - something is going horribly wrong. I've tried to reissue twice now - the process I'm going through is this: Using the IIS wizard, Create new Certifiacte Generate local CSR Copy paste the CSR into the RapidSSL reissue window RapidSSL sends me a new Cert I cre...
That sounds to be like you don't have the certificate request file on hand, or have since done a second request which overwrote the first private key. You might be able to reinstall the CSR under pending with the certmgr.msc application.
0
1
1,572
2009-10-01T01:11:14.160
api_errors
serverfault.com
14,648
Issue with Reading CSV file when doing Distributed testing in Jmeter
I have a satisfactory test plan, that I have been using to test with from single load generation server to our application server which reads data from a CSV file. I have been been asked to setup and start testing with a distributed system. I setup JMeter in a Master - Slave configuration, and it successfully starts th...
The easiest way to resolve this issue is to place the CSV file on all servers (Master and Slaves) inside the Bin directory of JMeter and don't specify any path for the CSV file inside the your JMeter test plan i.e. don't use C:\Data\Files\abc.csv in your test plan, use only abc.csv (and place this file in Bin directory...
5
6
12,597
2015-09-09T23:47:19.567
data_quality
sqa.stackexchange.com
240,022
SQL Server space in MDF file with multiple files and one Primary file
We have space issues in our F: and our H: drive. We have added one more drive - I: drive with 500 GB capacity. Can we add the new database file in the I: drive and set the autogrowth option in the F: drive and the H: drive so that the new data will use the I: drive? The current database files are as follows: [CODE]
Yes, you can go ahead with that. Limit the other secondary files (Disable Autogrowth) and create new ndf file in the new drive. This will resolve your space issue.
0
1
286
2019-06-07T02:08:02.817
database_errors
dba.stackexchange.com
162,321
Cannot deactivate LV due to partition device
I need to be able to deactivate an LV but cannot after partprobing it and finding gaining access to its partitions in /dev/mapper. It seems I need some way of 'un-partprobing' the disk, but I have no idea how and would welcome some advice. Here's what's happening, in case I'm missing something else: [CODE] activates th...
The helpful folks at the #lvm channel on Freenode found a solution for me! One simply needs to deactivate the partition mapping using the command [CODE] This removes the partition device entry and allows me to once against deactivate the LV without problems.
2
3
10,297
2010-07-20T17:58:16.987
infrastructure
serverfault.com
409,102
IPTables and Firewall Redhat
I am using Redhat 5. I am really confused over the existing configuration in my machine. Can anybody please let me know what's the main difference between firewall and iptable rules. If I have IPTables enabled (with masquerade) and Firewall (accessed from menu Administration menu) disabled will that cause any problem.
They're two different names for the same thing. When you use the menu-based tools, they actually change the running iptables ruleset; you should be able to see those changes immediately by doing an [CODE] (or for NAT changes, [CODE] ), which should prove the point. Whether you're trying to alter the main table (aka fil...
0
3
163
2012-07-19T04:44:27.800
infrastructure
serverfault.com
904,143
Application Gateway default health probe ECONNRESET exception
We have an application gateway configured in front of our web application on an Azure VM. We've been seeing regular ECONNRESET exceptions occurring that appear to be generated as a result of the default health probe. I can see every 30 seconds a couple of requests to 127.0.0.1. On a fairly regular basis (more than 20 i...
This was an issue in the Kestrel server and has been resolved in dotnet core 2.1 release. Ref: https://github.com/aspnet/KestrelHttpServer/issues/2540
1
0
928
2018-03-23T00:27:00.867
infrastructure
serverfault.com
762,194
SSH login using Active Directory credentials
I am having trouble logging into a Linux system via SSH using my Active Directory credentials. the system is bound to AD, and all of the required packages are installed and configured, but I cannot login. What am I missing here? I get the following errors in /var/log/secure: [CODE] wbinfo -g lists all groups and wbinfo...
[CODE] It looks like the Problem is the whitespace in the sshd_config, which is used as separator in the [CODE] field. Although even not really documented, it should work to use double-quotes, using [CODE] . https://bugzilla.mindrot.org/show_bug.cgi?id=482 For debugging groups [CODE] and [CODE] are always helpful to se...
1
3
29,251
2016-03-07T21:25:30.940
infrastructure
serverfault.com
1,105,315
OpenStack Queens: Horizon Fails after rebooting the controller node
The controller node was rebooted and some VMs were running. After that, when logging to Horizon, I keep receiving the following error: Error: Unable to retrieve instances . And I can no longer see the VMs that was running. The following is the output of /var/log/apache2/error.log . I am beginner and I am running out of...
You need to check if all other openstack services are running, like nova, neutron etc. [CODE] should show you if nova-api is running (the service responsible for managing VMs). Check all other services, too. Usually, the services should be enabled so a reboot would start them. If they are not enabled, enable them, e.g....
0
0
749
2022-07-11T17:31:16.920
infrastructure
serverfault.com
954,103
How to configure https with nginx with a public ip without domain name
I have a public IP (for eg: 123.123.123.123) and I would like to install the ssl on a nginx server (for using https). I have a folder in [CODE] where I store my [CODE] and [CODE] . Here is my nginx.conf : [CODE] I have the following error : In my SSL folder I have different files but I don't know wich one to use : [COD...
There are at least three obvious issues here. The [CODE] tells you that the name in the certificate doesn't match the name you've requested in your browser. That makes complete sense as the certificate has a CommonName of [CODE] while you're requesting by IP address. They will never match. You don't give enough informa...
3
2
7,272
2019-02-15T10:39:24.950
infrastructure
serverfault.com
386,762
Is it appropriate to run Hyper-V Server on each desktop PC?
I am currently designing a rollout of Windows 7 to a shop of approximately 80-100 desks. The office is a flat network without routing between servers and desktops. There are a few Windows Server 2008 R2 servers running a 2008 domain. Most of the workstations are newer machines that were installed with Vista or XP for p...
To summarize, it appears that you are asking whether it makes sense to deploy Windows Hyper-V Server 2008 R2 on each desktop computer in order to simplify the process of deploying clean images to client workstations. Answer: no, it does not make sense to use Hyper-V Server on every desktop, for a multitude of reasons i...
-8
18
1,044
2012-05-07T16:42:09.483
pipeline_ops
serverfault.com
242,386
DB2 SUM of MAX values, single table
I have looked through many of the questions asked and answered but can't seem to find my answer, even kludging the provided answers into my queries - most usually fail, the remainder provide garbage results. NOTE THAT THIS IS FOR IBM DB2 v9.7! NOT SQL Server or anything newer. I have a single table that contains quasi-...
I think you want multiple aggregations: First find the max for each ID-Source combination, then sum for every ID: [CODE]
1
3
1,103
2019-07-08T20:10:04.187
data_quality
dba.stackexchange.com
239,947
MySQL Error: Data Too Long For Column CHAR(5) - MariaDB 10.3.10
When inserting data from CSV to MariaDB 10.3, the following error is generated while trying to insert value [CODE] into [CODE] column ERROR 1406 (22001): Data too long for column 'nicSiegeUniteLegale' at row 38663 Here is MySQL command line : LOAD DATA INFILE "/filePath/StockUniteLegale_utf8.csv" INTO TABLE erp_dev.sir...
WARNING: This is not a real solution. It worked for me but i won't recommend you using this on production context without full test of you data. Adding keyword [CODE] to the import command functionned well : LOAD DATA INFILE "/filePath/StockUniteLegale_utf8.csv" IGNORE INTO TABLE erp_dev.sirene_UniteLegale FIELDS TERMI...
1
0
744
2019-06-06T09:35:48.793
database_errors
dba.stackexchange.com
184,185
Percona xtrabackup transaction log corrupted
I am attempting to prepare and restore a full backup taken through xtrabackup via a scheduling script called surrogate . I have tarred and gzipped the backup, transferred to a local machine running the same setup (aside from a slight version difference in xtrabackup - 2.2.12 on source, 2.3.9 local). Upon extracting I a...
DISCLAIMER : Not xtrabackup expert Your situation is quite similar to a [CODE] post on the Percona Forums . The poster, dbaffaleuf, was running percona server 5.6.24-72.2-log, innobackupex 2.3.3 Linux (x86_64). After encountering your same message, dbaffaleuf wrote Interestingly the xtrabackup_logfile file has been del...
3
1
1,256
2017-08-23T15:22:54.210
database_errors
dba.stackexchange.com
475,719
MySQL Configuration on my.cnf
[CODE] I'm sitting on a 16 CORE 24GB RAM box and I was a little confused as to how to set the settings. I do know you set them higher with more RAM. Is there a formal on how to correct set the values? I'm expecting to run a very high traffic website on this box.
The settings absolutely depend on the type of workload, and what engine your tables will be using. If you plan on using MyISAM, the settings would be very different than if you're using InnoDB. I'd recommend using Percona's configuration generator to get started. https://tools.percona.com/
-1
1
519
2013-02-05T17:52:56.177
database_errors
serverfault.com
176,249
MariaDB (MySQL) Replication Slave Lags Behind a Certain Amount
I have 4 MariaDB replication slaves sync'ed with single master via SSL. Slaves keep up-to-date, until somehow they permanently lag behind a certain amount of updates. Has anyone seen this before? Here's what I mean. On the master: [CODE] displays its current log position as [CODE] , then on each slave: [CODE] displays ...
Please show us all of [CODE] and [CODE] . Sometimes this helps: [CODE]
1
1
835
2017-06-06T07:11:01.317
database_errors
dba.stackexchange.com
585,279
Linux permissions in /var/www: What settings can I use for good security practice and still maintain accessibility?
I'm primarily trying to set permissions inside of /var/www . We are using a project format which has the following structure in common for each project: /var /www /runtime /shared /project.com /application /static /service /support /site.com /application /static /service /support Currently: Web server (nginx) is the pr...
Long time ago I concluded that the best way to share a web project among a group of users is to force them to use [CODE] or [CODE] to always login as the single dev user used for all project files. If you need to track changes by individual developers, it's better to let them work in their own environments and the abov...
0
2
778
2014-03-29T04:56:57.597
infrastructure
serverfault.com
275,997
Why does my table keep getting corrupted after removing large amounts of data?
I have a database that is about 400 gigs. The majority of the space is consumed by images of utility bills stored in string form as [CODE] in a single table. It's a poor database design that I inherited. I have already exported the utility bills as pdfs to a network folder. Now I am trying to replace the images in the ...
Did you really mean varbinary(max)? Seems strange to have non-text data in a text-type column. Anyhow, corruptions shouldn't occur. Your first step would be to make sure that you are up to date within the version of SQL Server you are using. I.e., (service pack and) CU. If it persists, then I'd suspect a bug in SQL Ser...
0
0
262
2020-09-24T03:08:28.230
database_errors
dba.stackexchange.com
204,096
SQL Server's "Total Server Memory" consumption stagnant for months with 64GB+ more available
I have run into an odd issue where SQL Server 2016 Standard Edition 64-bit has seemed to have capped itself off at precisely half of the total memory allocated towards it (64GB of 128GB). The output of [CODE] is: Microsoft SQL Server 2016 (SP1-CU7-GDR) (KB4057119) - 13.0.4466.4 (X64) Dec 22 2017 11:25:00 Copyright (c) ...
I bet you've configured the virtual CPUs in a way that some of the CPU nodes and/or memory nodes are offline. Download sp_Blitz (disclaimer: I'm one of the authors of that free open source script) and run it: [CODE] Look for warnings about CPU and/or memory nodes being offline. SQL Server Standard Edition only sees the...
40
54
6,168
2018-04-16T15:51:31.757
data_quality
dba.stackexchange.com
304,551
How to change my domain from 192.168.1.0/24 to 192.168.21.0/24
We are about to start using hosting service for the software we use and they've asked us to change it. I'm sure I can figure out how to change the DHCP scope, but that's not what I'm worried about. All the copiers/printers have static IP's. I assume I'll have to change those. I have used GPO to assign printers. Will th...
It dependes of your scenario. Depends if you manage your infraestructure using names or using IPS. As example, if you mapped your network drives using \\Server\Folder you wont have to re map. Everything will work automatically. If you mapped your networks drives using \\192.168.1.30\Folder they will fail and you will n...
0
0
392
2011-08-24T15:29:58.460
infrastructure
serverfault.com
722,848
How to diagnose what is causing all request to websites hosted on internal network to be redirected to router?
On internal network I have a client and a server. Server is hosting example.com and fake.example.com that are also open to the internet through NAT. Any computer on the internet can access example.com or fake.example.com, but internal computers get redirected to router page when accessing either either site. How do I t...
The device that is performing your NAT simply isn't NATing properly when the request is coming from the internal network. This is common; Cisco ASAs have this "problem" by default. Depending on your device, you may be able to configure it to allow this type of connection (commonly called a "hairpin"), or it may not be ...
1
2
45
2015-09-16T21:06:25.127
infrastructure
serverfault.com
803,452
Website monitoring frequently reporting 'dns resolution failed' on azure cloud service
Disclaimer: You'll usually find me on SO but not sure there is right place for this question! I have an Azure cloud service website monitored by NewRelic which will send me alerts when it's unable to ping the host (among other tasks). I've recently being getting a lot of [CODE] alerts and the site cannot be resolved, w...
An error "DNS resolution failed" means that your site and app can't even be found and reached. If your site name can't be resolved in DNS wether or not your site and app are up and running or not becomes a moot point, visitors can't reach them regardless. If it is appearing frequently there is something wrong with the ...
-1
3
111
2016-09-16T08:03:30.867
pipeline_ops
serverfault.com
376,485
COM+ Object Losing Credential Information
I have an odd issue that I haven't been able to track down. We have a COM+ component on our Windows Server 2008 R2 (Windows 7 on our developer machines) that is called by an ASP.net application. At times the COM+ component will throw back the error: System.Runtime.InteropServices.COMException (0x8000401A): The server p...
Have you tried giving the account the log on as a batch job privilege? https://support.microsoft.com/en-za/kb/312497 CAUSE This problem occurs because the Log on as a batch job privilege is not set for the identity of the COM+ package. When you set a user as the COM+ identity, COM+ adds this privilege for you. However,...
5
2
12,718
2012-04-04T00:05:44.287
api_errors
serverfault.com
15,523
How to caching the docker images?
I try to improve the performance of my pipeline stages in gitlab cicd. The Gitlab is self hosted and the Runner runs as docker with docker executor. I recognized, that for both jobs in my stages (test, build) they begin with pulling the images from docker hub: [CODE] This part seems to take most of the pipeline time. A...
GitLab has some docs on how to speed up builds, and one of the suggestions does involve caching runner images. https://docs.gitlab.com/runner/configuration/speed_up_job_execution.html#use-a-proxy-for-containers Use a proxy for containers You can speed up the time it takes to download Docker images by using: The GitLab ...
1
0
2,316
2022-02-26T17:17:23.657
pipeline_ops
devops.stackexchange.com
722,901
How to Mount Disk from broken USB external Hardware Raid 1
I had an external USB 2 RAID 1 (Mirror) with two 2TB disks. The manufacturer is Datacask which is pretty unknown. The chip used is some Silicon Image chip. Out of nowhere, I could not mount the raid anymore. As I cannot believe that both disks failed, I removed them and tried to mount them directly on a SATA port. I ho...
Before running any experiments on the disks, clone them on a new disk, for example with the dd command, and work with the cloned disk only. I would then insert two new disks in the case just to see whether the controller is still working. If that is the case, copy a single block with known content to the storage at blo...
-1
2
286
2015-09-17T01:29:48.523
infrastructure
serverfault.com
46,498
What expectations should be given to the client with regards to how much time UAT takes and how many issues might be found?
When creating an application on behalf of a client, is there a rule of thumb with regards to how much time User Acceptance Testing might take? For example, a 100 hour project, UAT will take 20% of that time (an extra 20 hours). Aside from how long UAT might take, how is it best to manage the client's expectations with ...
I don't consider this being as easy as using the rule of thumb for neither of your questions as there are several factors that should be taken into consideration. Let me expand on this. how much time User Acceptance Testing might take? for an e-commerce site I consider 20% for UAT time too much for a video streaming pl...
0
1
303
2021-01-04T17:32:18.620
data_quality
sqa.stackexchange.com
371,399
Can't save DB password in BDE Admin v5.01 (c. 1998)
I have a legacy version of Goldmine running which uses BDE to connect to an SQL2005 server. I'm moving the goldmine application and its database onto a new server and all is fine with the exception of the master DB password. When Goldmine starts it prompts for the password. I enter the password and all is fine but I wa...
No password is saved in the BDE configuration file. You need to go into the properties of each of the GOLDMINE users inside of GoldMine (file|configure|users settings) and to the access tab there. At the bottom of the tab are the saved SQL username and password credentials the user will connect to SQL with.
0
1
798
2012-03-20T04:20:33.523
infrastructure
serverfault.com
188,903
BackupPC incremental backup problem
I have BackupPC application in CentOS 5.. clients are windows and RHEL machines.. I could take the Fullbackup for the client mahines ..But I can't take the increental backup.. When I took the incremental backup , it start incremental backup, but after completion of the task .. i see that the backup directory contain fu...
Take a look at the documentation , it's meant to appear that way: BackupPC "fills-in" incremental backups when browsing or restoring, based on the levels of each backup, giving every backup a "full" appearance. This makes browsing and restoring backups much easier: you can restore from any one backup independent of whe...
0
0
517
2010-10-08T06:17:29.527
database_errors
serverfault.com
93,636
how to speed up a database - hardware only
simple question - what is the best way to improve a database's performance using hardware only? in this situation a few very very large tables are being queried very regularly by 1-4 processes at a time. we are executing thousands of queries, many of which take +10s to return, and all of which return only a small quant...
What's the performance bottleneck? The usual culprits are: If the system is I/O bound, adding more CPUs won't help. Adding more memory might increase the portion of the database that can be cached in memory, but the best way to improve performance will be to increase the I/O bandwidth. If the system is CPU bound, then ...
1
9
1,781
2009-12-12T04:57:21.080
infrastructure
serverfault.com
594,538
Problems with pid files when restoring OpenVZ snapshot
I am trying different ways to take snapshots of running openvz containers. Following this guide : http://openvz.org/Checkpointing_and_live_migration , I always encounter an issue with pid files missing when restoring the snapshot. The steps I am following are: [CODE] Then I stop the VE and I try to restore it from the ...
This messages looks like a bug, please upgrade to lastest current OpenVZ kernel and userspace, after that recheck this operations. If they fails again, please send dmesg content to http://bugzilla.openvz.org
1
2
426
2014-05-12T13:01:44.380
database_errors
serverfault.com
452,533
Can not authorize DHCP server
I have run into a strange DHCP problem. The thing is the service is running, but the DHCP is not authorized. However, when I try to do it by right clicking, the option to authorize is not there - I can only choose to unathorize it. (Sorry, can't includa a SS). When I click unauthorize, I get the error "The parameter is...
Have you tried to unauthorize DHCP-server this way? >> Open DHCP snap-in. In the console tree, click DHCP . On the Action menu, click Manage authorized servers . The Manage Authorized Servers dialog box appears. In Authorized DHCP servers, select the server you want to unauthorize. Click Unauthorize .
4
4
31,172
2012-11-27T11:25:56.877
infrastructure
serverfault.com
916,722
AWS elastic beanstalk application does not show load balancer's ssl certificate
I'm not sure if the question fits here, but I hope I can get an answer. I added ssl certificate to load balancer which connected to my ELB application. But in the configuration menu of ELB application, the ssl certificate is empty. The weirdest is the ssl certificate is actually working. But because of this problem, I ...
Here's my workaround: Save the configuration of the environment you want to clone save configuration Launch the environment from the saved configruation launch environment Remove Listener on port 443 on the Load Balancer remove listener
1
0
754
2018-06-14T19:19:55.613
api_errors
serverfault.com
76,894
Testing data integrity porting from old database to new
I've created a Web/ASP.NET/MySQL database front end & back end that gets created from the XML logs from a previous Java based XML client-server that is not serving the company very well (the XML database bloats too quickly and the server begins to time out, which halts the production floor). Any future data will come t...
This answer may not be what I was originally looking for, but it's a sequence of events I went through to insure only unique data was inserted into the database vs. trying to purge it after the fact (and never being certain). As I indicated in my comment above, I investigated using [CODE] to prevent duplicate data. To ...
0
0
65
2014-09-17T18:27:17.793
data_quality
dba.stackexchange.com
819,601
E3 instance allow password login
I created an E3 instance of Ubuntu 16.04. ssh into user ubuntu and create new user with root privileges [CODE] change line 52 [CODE] from no to yes try to login with ssh phil@00.000.000.0 Get error: [CODE] Also tried changing line 28, [CODE] to yes.
The step I missed was restarting the ssh service [CODE]
0
0
175
2016-12-08T18:16:33.233
infrastructure
serverfault.com
1,057,655
unable to connect to VM using SSH and unable to connect deployed MSSQL container in VM
can anyone help me on below issue. I have added inbound rules with high priority, but still i am unable to communicate with MSSQL (1433) container deployed on Linux VM and unable to ssh. getting below error Network connectivity blocked by security group rule: DefaultRule_DenyAllInBound
Azure creates a default Networking inbound port rule to DenyAllInbound; it does exactly what it says, which is Deny all incoming traffic to the VM. Go to Settings --> Networking on the VM in the Azure portal and you can then create an allow rule at a higher priority to allow inbound access to port 1433 (I'd be very car...
1
0
1,049
2021-03-19T19:52:58.110
pipeline_ops
serverfault.com
127,688
How to use SET operation in CASE clause in SQL?
I have the following structure, and I'm doing a [CODE] operation in a [CODE] clause but it is producing an error: Incorrect syntax near [CODE] Query: [CODE] It would be better if there is another way to store the result of the expression into @TrendValue so that there is no need to calculate that expression each time. ...
Based on your comment, you seem to be looking for a way to avoid repeating the same calculation over and over again. You could use [CODE] to calculate the required values once, then use the aliased column in the rest of your calculations. [CODE]
1
4
13,489
2016-01-29T07:28:58.557
warehouse_errors
dba.stackexchange.com
156,111
SSDs + RAID5 + Database = Fail?
I have a database running on a RAID5 array of SSDs. Could this be killing its performance? When I do many inserts in a row, the entire computer starts blocking up. Even things like firefox start glitching. On my much less powerful computer with a traditional hard drive, the inserts w/ the same database version, schema,...
Hmm. 1) RAID5 might not be the best bet for a database. You might try mirroring + striping for redundancy and small file performance. 2) You could be bottlenecking something other than the drives with the SSDs, when the rotational media would bottleneck at the drive. This bottleneck could be resulting in the performanc...
1
5
3,511
2010-06-30T01:40:01.790
infrastructure
serverfault.com
618,598
imapsync - Authentication failed
I've deployed many Google Apps accounts and have used imapsync a number of times to migrate accounts to Google Apps. This time however, no matter what I try imapsync refuses to work claiming my credentials are incorrect - I've checked them time and time again and they are 100% correct. On Ubuntu 12, built from source, ...
Double check the credentials, so give it a 200% check. Follow the Janne advice of checking the credentials via a standard client like Thunderbird or Outlook or manually (see below). Take care of quoting issues with special characters in passwords, use single quotes surrounding 'passwords' and users 'values'. [CODE] Oth...
2
2
20,730
2014-08-07T04:43:06.343
api_errors
serverfault.com
978,584
Docker httpd & htaccess - Could not open password file
I have an error that I can't resolve, even with my last researches. Folder structure: [CODE] 1 - I create an image of apache with a simple Dockerfile Dockerfile: [CODE] Command: [CODE] 2 - I run a container with the new image Command: [CODE] 3 - I want to protect access of the www folder, with htaccess Folder structure...
The Apache in the container does not know about your external path [CODE] , you need to use the path inside the container: [CODE]
4
2
4,469
2019-08-09T07:50:08.710
pipeline_ops
serverfault.com
439,835
adding optional code for bad protocol state check
I've got a GRPC API that I'm designing. It includes an RPC method that requires the caller follow-up with another API call. Some pseudo-code a client might write: [CODE] The key thing I want to impart is that [CODE] demands a response as per the protocol, IE it is not valid for a client to simply [CODE] after calling [...
With the trend for stateless calls no-one will expect a method call to require closing. But a "Connection" is expected to have state, open, close etc I would rename stuff to lean into that and instead of raising an exception on an early close, just release the server side lock. I assume you'll need to handle this situa...
1
1
57
2022-07-15T18:31:34.130
api_errors
softwareengineering.stackexchange.com
110,880
Numeric vs Integer for a column - size and performance
I have an application which uses a PostgreSQL table. The table is very big (billions of rows) and has a column which is an integer. The [CODE] can be up to 6 digits, i.e. 0-999,999 , no negatives. I thought about changing it to be [CODE] . Would this be a good idea? Would [CODE] take fewer bytes? How about the performa...
Would this be a good idea? No. would [CODE] take less bytes? No. [CODE] how about the performance (this table is being queried a lot)? Slower. It's stored as binary-coded decimal because it's an arbitrary precision value.
15
16
25,060
2015-08-13T07:59:21.360
database_errors
dba.stackexchange.com
134,233
Strange Database Mirroring Problem
I am noticing a strange problem with DB mirroring on SQL Server 2012 (standard edition). The mirroring is set up, and successfully established, and working. There is no witness. Once principal is rebooted, all the databases are stuck in recovery mode, thus making the DBs inaccessible. Same thing happens with mirror, wh...
I seriously suggest building another system with SQL Server Express and configure it as your witness server. Then set your operating mode to "High safety with automatic failover (synchronous)". This solution will alleviate you of this problem. You will incur a cost for the desktop windows license, but as you may alread...
4
1
2,533
2016-04-03T18:56:23.690
database_errors
dba.stackexchange.com
772,509
Docker Machine/Swarm with Consul -- secure by default?
I've used the commands from this gist (duplicated below) to create a Docker Swarm using Consul. [CODE] Does Docker Machine ensure that the swarm is secure (perhaps by managing SSL certs under-the-covers), or can anyone join my Consul cluster by pointing at [CODE] ?
It looks like the answer is that the cluster isn't secured by default . The second command listed above is where the Consul service is started. If certs were getting passed in, they'd show up in that line. The Consul Getting Started guide requires only the hostname/port of another node in the cluster you wish to join -...
0
1
313
2016-04-24T00:23:33.680
data_quality
serverfault.com
413,280
Changing a class with static dependency injection to allow unit testing
I'm new to JUnit/Mockito and to unit testing in general. I'm asking this question in order to get feedback and learn best practices/patterns/strategies. I wrote a class but when came time to unit test I ran into issues because the class has a dependency on an external AWS DynamoDB. I re-wrote the class and implemented ...
Are there other way to solve the external dependency issue? DynamoDB is tightly coupled to Amazon. Amazon built it. Unless you can identify a higher level of abstraction, just leave your class as it is. Identifying a higher level of abstraction involves analyzing all of the consumers of [CODE] and possibly eliminating ...
2
1
295
2020-07-30T05:52:09.147
database_errors
softwareengineering.stackexchange.com
884,712
Why Gmail's SMTP server Reverse lookup does not match
I am reading about setting up SMTP server and almost all articles suggest to ensure that the SMTP server's name has a matching reverse lookup (PTR) entry in DNS. However, When I casually checked the gmail settings, none of its smtp servers have a matching reverse lookup. [CODE] So I am bit confused. Could someone help ...
They do match, google (and most large providers) have an abstraction for load balancing, the destination/ip of [CODE] changes depending on your requesting ip, the health of the network, the load, etc. however the IP address has a forwarder && reverse dns (FCrDNS) [CODE] However, none of this "matters" for Inbound MX Re...
3
1
9,656
2017-11-22T16:44:08.220
infrastructure
serverfault.com
488,120
SCCM 2012 - PXE-M0F - abortpxe.com with unknown computers failing
I have one SCCM 2012 server not correctly responding to PXE requests for unknown computers. The server has PXE boot support enabled, enabled unknown computer support, boot images available with OS deployments available and targeted at unknown computers. However every time a computer comes through I receive the followin...
Since I posted this I've come into the problem many times, and in nearly all of them it was Scope Options Having any of the following options set caused problems, 60, 66, 67. In the case of only 60 being set it still allowed connection to an SCCM PXE point outside of the subnet with IP Helpers enabled but failed at pro...
1
1
10,680
2013-03-15T11:36:01.640
pipeline_ops
serverfault.com
919,226
Issue connecting EC2 instances in 2 separate VPCs (same region)
I have 2 VPCs ( [CODE] and [CODE] ) each hosting 1 EC2 instance. Both instances have the same security group (say name = [CODE] ). The security group allows [CODE] from [CODE] (a circular reference for inbound traffic). Also, I have VPC peering enabled, however I am unable to change the following settings: Allow outbou...
The issue was that we were using the public IP (rather the name resolved to the public IP). The private IP worked fine. In our case, this meant changing some Route53 records to use internal CNAME instead of public A records.
0
0
271
2018-07-02T18:57:03.717
infrastructure
serverfault.com
85,970
Add function parameter to SQL query WHERE clause
I have a web application in java and it uses a query. I don't want to write the query into Java, so I made a function: [CODE] I want the Function parameter INPUTS to also be in the WHERE clause so if inputs is [CODE] Where clause looks like [CODE] How can i achieve this? EDIT Also it is acceptable to have many paramete...
If you don't always pass all parameters, create a function with parameter defaults . The basic, simple form would be an SQL function without dynamic SQL: [CODE] Now you can call the function with any number of parameters using named notation: [CODE] Note, the assignment operator in the call is [CODE] (or [CODE] for Pos...
10
9
15,804
2014-12-11T21:40:03.497
warehouse_errors
dba.stackexchange.com
259,204
Listener (lsnrctl) reload vs stop/start
Some blogs tell that reload is equal stop and start, but in my test it does not stop the listener (uptime does not change). What situation can I use only reload and when I must stop/start the listener? Is stop/start for just validate the applied configuration for all current connections? (force the all connections to r...
reloading your listener will allow listener to take new changes (configuration) without stopping it, and it will un-register\register dynamically registered DBs. stop will stop listener completely by disallowing new session to connect to the database remotely. start will start listener and this will allow users to cont...
0
1
11,207
2020-02-08T03:54:23.540
warehouse_errors
dba.stackexchange.com
56,246
multiple requests shut down mysql
I have some problems with my mysql database. I configured a server with the database and other services (apache, php) and put run multiple applications. There are two problems. Every day at the same time mysql fails, and I must go and restart it. Every time I reload the website many times continuously mysql falls, and ...
The comment from Barmar is correct. You do not have enough memory in the server for the InnoDB Buffer Pool. Since you got the message [CODE] followed by [CODE] you should lower innodb_buffer_pool_size below 64M in [CODE] and restart mysql. SUGGESTION : If it is withn your budget, you should setup Apache and PHP on a se...
0
1
413
2014-01-07T00:44:18.953
database_errors
dba.stackexchange.com
844,078
Docker 1.6.2 - memory limiting per container doesn't work
I have application working as set of microservicies. Each microservice is running in separate docker container. I'm looking for method to set the maximum allowable memory, which each container can use. For now I've 12 of them, which drains all of 16GB RAM. Sometimes this make working on console a little bit difficult, ...
Everything you pass after the image name becomes the [CODE] value for your container, and when you have an entrypoint defined, the cmd becomes args at the end of the entrypoint. So with the command you provided: [CODE] : docker client with the run option [CODE] : detached [CODE] : expose container port 8080 to host por...
-1
0
417
2017-04-12T09:04:59.890
pipeline_ops
serverfault.com
365,596
Can I limit the number of php-cgi.exe that run per website on IIS 7?
I wasn't sure which was best to post in so I posted here and on http://webmasters.stackexchange.com I will delete the other if this post is more relevant here. I'm having a slight issue with memory issues on my web server. It is Windows 2008 RC2 IIS 7.5 with Fast CGI installed and running, all up to date. I have a numb...
Set the [CODE] of the system.webServer/fastCgi/application section of your configuration to the desired number of fastCGI processes you'll want to allow per application pool (not per website).
2
0
8,753
2012-03-02T09:13:18.383
infrastructure
serverfault.com
17,760
Why does the order of parameters matter for sp_trace_create?
The first batch of the following script calls stored procedure [CODE] with parameters in documentation order; the second batch swaps the positions of parameters [CODE] and [CODE] : [CODE] The first batch creates a new trace, selects its id, and then closes the trace. One result set is returned: [CODE] The second batch ...
I believe this is because it is an extended stored procedure and the parameter names are actually entirely ignored. It just goes off position. I have renamed them as below (and given them all the same name) and it still works fine. [CODE] A similar documentation bug was filed by Aaron about [CODE] . Another annoying as...
7
6
3,899
2012-05-11T20:26:20.293
database_errors
dba.stackexchange.com
418,018
Multitenancy - Get tenant in microservices architecture
In a multi-tenant architecture where each tenant has its own database, what would be the best way for each of the microservices to obtain information about the tenant (such as which database to connect to)? We are still in the modeling phase of the application. We are having difficulty to come up with the best design. ...
In a multi-tenant architecture where each tenant has its own database, what would be the best way for each of the microservices to obtain information about the tenant (such as which database to connect to)? Agnosticism and a lot of parametrization. Make the MS agnostic to the concept "tenancy". How to do so? Parametriz...
0
1
689
2020-10-16T13:25:00.227
api_errors
softwareengineering.stackexchange.com
443,331
Gearman not working when running with Supervisord
I'm testing Gearman on a dedicated job-server (Ubuntu 12.04) for my PHP project (using pecl/gearman as the PHP impementation). Manually this works fine: starting up the client, adding jobs and running one or more workers in separate shells works as intended. Now I want to run the workers using Supervisord, but this gen...
Ran into the same error in almost exactly the same server stack, and found a solution. The warning and error are thrown because your trying to send a job to a non registered worker. Check the name of your worker and check with ps -ax on the command line if its running. Sending a job to a non existing worker on the comm...
1
3
2,719
2012-10-29T11:34:01.597
infrastructure
serverfault.com
384,934
How can I interpret a SQL Check Constraint inside my C# .NET class libary?
I was given a more or less complex task. The goal is to interpret a SQL Check Constraint inside my C# .NET libary. In our case we have a simple UI that displays what is inside the database. We do not want out UI-Components to allow any values that wouldnt even be possible because there is a check constraint. Since ever...
Sounds like you will need to write a parser if things must be in C#. This should be fine for simple constraints. For more complex constraints I would see about making a piece of code which coverts the constraint definition into a stored procedure e.g. [CODE] becomes: [CODE] This procedure would be called from your c# c...
0
1
1,065
2019-01-03T21:29:40.890
data_quality
softwareengineering.stackexchange.com