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
324,430
Basic understanding about load balancer
I am running a http webserver that is connected to a backend database. Now if a client generates 100 threads and tries to contact that webserver through a loadbalancer, I get around 32ms delay. But with the same setup , instead of one webserver , if i have 2 webservers (connected to the same database though) .The load ...
A load-balancer will add some latency to your throughput, that doesn't change. Where 'better performance' come in to play is when you start hitting concurrencies that would swamp a single server. With a load-balancer you can spread the load across an entire farm of servers. That's where the 'better performance' a load-...
2
2
150
2011-10-24T21:26:28.923
infrastructure
serverfault.com
402,127
Can't Login to phpPgAdmin
I'm trying to set up phpPgAdmin on my test machine so that I can interface with PostgreSQL without always having to use the [CODE] CLI. I have PostgreSQL 9.1 installed via the RPM repository, while I installed phpPgAdmin 5.0.4 "manually" (by extracting the archive from the phpPgAdmin website). For the record, my host O...
Well, I figured it out - it was a combination of inexperience with PostgreSQL and very non-descriptive errors from phpPgAdmin. Turns out I did not have TCP/IP access enabled, which meant that no PHP applications could access the database(s) . To fix this, I had to make two changes: It seemed to work better if I set [CO...
11
7
30,430
2012-06-25T19:42:34.990
hadoop_errors
serverfault.com
1,063,148
Get-MoveRequest not showing anything
Exchange 2016 on-prem. Migration started in EAC still showing active half hour later. It's a large mailbox so I expect this. Get-MoveRequest is not showing ANYTHING: UPDATE: This request failed because this mailbox was moved a few days ago and the request was deleted after completion in the GUI but apparently it wasn't...
Please check if the answers in the following similar case are helpful to you: Get-MoveRequest not showing anything Based on my test, the move request would show in PowerShell when the request status was syncing or completed, the move request wouldn't do that when the request status was validating and failed. Check if i...
0
0
1,985
2021-05-10T23:01:01.560
infrastructure
serverfault.com
706,612
Recover mysql database innodb 'table doesn't exist'
Our server crashed last week and we lost a lot of information. We were able to recover [CODE] files for the tables, [CODE] , [CODE] and [CODE] but no [CODE] . I've tried the [CODE] on all levels 1 to 6 and a whole lot of other 'solutions' I've found online, without any success. Right now I was trying to do it trhough a...
This MySQL forum post looks like a success story, although a bit old. I remember a similar story of mine, on Linux. Windows platform doesn't matter here, MySQL data files structure is similar. No command line work is really needed. I assume your Ibdata file is not damaged in any way. AFAIK you don't need ib_logfile? fi...
3
0
10,843
2015-07-17T16:43:18.383
database_errors
serverfault.com
778,282
icingaweb2 displaying an empty page
I'm attempting to set up icinga2 and icingaweb2 on a Ubuntu 16.04 system using mariadb as the database. I seem to have icinga set up OK (no errors in the icinga.log, apache error log or syslog) but when I try and navigate to the icinga2 web page I just get a blank page with the following code [CODE] I get the same code...
I had this issue. I follow this and it resolved the issue for me: icinga resolution was: [CODE] cheers alexis
3
3
4,992
2016-05-22T05:29:07.260
database_errors
serverfault.com
596,922
Varnish SMS allocation request generate HTTP 503
Sometimes my application return a HTTP 503 error to a client. The only clue I have is that when it happen, Cacti reports a peak of Varnish SMS Allocation requests. After some research I may have allocated too much RAM to Varnish compared to what my VM had. So I added 2GB. Varnish has been reload since, but not restarte...
You have a really high SMA.s0.c_fail count. So, Varnish tries to allocate memory and fails. You can have Varnish be more aggressive by upping the nuke_limit, which is the number of objects Varnish can kill when trying to free memory. You need to restart for changes to memory settings to take effect. However, I suggest ...
2
0
829
2014-05-19T09:21:10.513
infrastructure
serverfault.com
261,001
Why didn't my performance increase when I went from 4 disk RAID 10 to 6 disk RAID 10?
I had 4 drives in a RAID10 set and 2 spare disks. We've been monitoring the perfmon Average Disk seconds per transfer (reads and writes) counter. We bought 2 more disks, rebuilt the RAID10 set using 6 disks (2 span) and the performance stayed the same. Is there some limitation that RAID10 only improves based on 4 disk ...
You should dig deeper into SQL performance stats as well as drive stats. If you have lots of connections it may help to make multiple smaller TempDB files. (read up on that, it was a major gain for us. http://msdn.microsoft.com/en-us/library/ms175527.aspx ) If you have a buffer cache ratio below 93 you may want more me...
6
1
4,317
2011-04-18T19:08:14.580
pipeline_ops
serverfault.com
342,124
Refactor multiple if tests
I have a class constructor that needs to perform a couple checks. It is checking a file for the occurrence of a few tags. I use a function that checks for the tags and returns a boolean value depending on whether the tag was found. If the tag was not found it calls [CODE] , stops executing the constructor and sets the ...
It seems the natural way would be to write a loop. You could have an array of the tags and do something like this: [CODE]
-3
1
134
2017-02-12T22:05:31.857
api_errors
softwareengineering.stackexchange.com
294,101
WSGIDaemonProcess: specifying a user
I have a user account all set up for this Python webapp I'm deploying with mod_wsgi. It's super-unprivileged, and only gets to read from the appdir and write to a separate set of tempdirs which no one else gets to look at. I'm using the following configline: [CODE] Simple enough. Unfortunately, we then have this from t...
You are reading it wrong. Apache does start as 'root' and the parent Apache process stays as 'root', only the Apache server child process run as 'www-data'. The mod_wsgi daemon processes are forked from the parent 'root' process and so will still be able to change to that user. What the comment is saying is that if you...
3
3
9,578
2011-07-26T07:26:41.473
infrastructure
serverfault.com
277,170
VB6 Application Permission Denied Error 70 for Active Directory Users
I've setup a small Active Directory users for about 25, In every individual machine they run an old VB6 Application but some how the domain users can't run it, It raises an 'Permission Denied: Error 70' but it works fine for domain administrators. Is there anyway to solve this problem.
I've found that LUA Buglight is often useful for diagnosing permissions problems. It can usually tell you which resources the regular user doesn't have access to but admins do. You run it as the user experiencing the problem, and also give it the username and password of a user that isn't experiencing the problem, usua...
0
0
1,288
2011-06-05T15:38:02.777
infrastructure
serverfault.com
12,786
Can't change Windows Docker storage location (The parameter is incorrect)
I'm trying to move the Docker storage location to another drive. This is my configuration file: [CODE] I also tried to use [CODE] instead of [CODE] (probably that was they to do it in the older versions) without any luck. I also gave read/write permissions to [CODE] just in case. After restarting the daemon, I see the ...
The issue was that the [CODE] drive was formatted with [CODE] partition. After I formatted it to [CODE] it started to work.
0
1
171
2020-11-18T07:42:11.767
pipeline_ops
devops.stackexchange.com
382,943
Is it a good idea to share repositories across microservices in Spring Boot Application?
We are migrating a desktop application into web based Spring Boot micro services application with a client imposed mandate of using their existing MySQL database, so all micro services share a common database. Since its a SQL database we chose Spring JPA (Hibernate). During project setup, our architecture team generate...
I vehemently opposed Vehemence makes others stop listening and limits our perception, hence our capacity to find solutions too. In my experience, we are vehement at defending or opposing ideas we don't fully understand. A sign of this is when we are unable to explain clearly the why and how . Although shared entities s...
7
15
6,271
2018-12-13T13:17:04.323
database_errors
softwareengineering.stackexchange.com
218,265
Database performance improvements for current setup. (mysql - marriaDB)
I've currently got a pretty hefty database (for me anyway) with multiple tables exceeding 15 million rows. I'm trying to improve performance on the whole table lookup, I implemented memcached to cache the already parsed result, but the initial lookups are very slow. 20seconds + on a big query. [CODE] Current setup: A m...
You don't have 1 day, you have 2. If you really wanted only one day and the column is a [CODE] , then simply say [CODE] . This will help in designing the optimal index. Start with the [CODE] columns (in any order): [CODE] If there are only 3 "platforms", then leave out the test for it . I assume you are dynamically bui...
0
0
168
2018-09-21T14:39:38.887
database_errors
dba.stackexchange.com
694,620
Cache control / max age not working for my site
In order to speed up my site Telium I implemented all of the .htaccess recommendations from this site . However, when I browse to my web site with the developer tools open (in Chrome), I see that all of the images on my pages are being re-downloaded every time I refresh. Strangely, the headers look right - so why are t...
Instead of "refreshing the page", try going to another page and clicking a link to go to the page, or copy the link into a new tab, and press enter. What I have found is that when you click "refresh" Chrome assumes the user thinks something is out of date, and so it purposefully ignores the cache and downloads things f...
0
1
2,689
2015-05-27T00:42:14.483
infrastructure
serverfault.com
147,089
How to start Cygwin's NFS server in read-write mode?
Installed Cygwin's NFS server. It works. But I can't make it allow writing to the filesystem. Why does it fail? Server: $ cat /etc/exports #/ 10.99.98.2(rw,no_root_squash) /cygdrive/c/foranevia *(rw,no_squash_root,anon_uid=0,anon_gid=0,no_subtree_check) Client: root@vi-notebook:/mnt# mount wpc:/cygdrive/c/foranevia nfs...
Check [CODE] for newlines. Also try to explicitly specify IP addresses that can write ( [CODE] can fail)
0
0
1,698
2010-06-01T13:08:45.240
infrastructure
serverfault.com
341,032
ESX + Sysprep.inf + Template= unhappy computername
I am trying to create a template in ESX that I can automate with PowerCLI. Everything works great so far, but because I have some specific settings, I had to create my own sysprep.inf. Now, the computername and the VM guest name are out of synch. I need to automate this for a sandbox enviornment, so I will constantly b...
While I'm not sure it's still relevant to the OP, it might be relevant to others. As johnshen64 stated, we can modify the OSCustomizationSpec to set the computer name. We can do it by using the NamingPrefix and the NamingScheme parameters. e.g. New-OSCustomizationSpec -Name specName -NamingScheme Fixed -NamingPrefix ho...
1
0
344
2011-12-14T21:13:32.920
infrastructure
serverfault.com
777,477
MQTT certificates verification fails
I'm been desperately trying to get my MQTT clients to connect to my MQTT broker which is set up with a certificate from a CA (Letsencrypt). To be able to get the CA certificate, I've used the letsencrypt python command ( https://pypi.python.org/pypi/letsencrypt/0.4.1 ) [CODE] This has given me: [CODE] These files I am ...
[CODE] This suggests that the hostname you are connecting with doesn't match the hostname in the certificate. With [CODE] try using the [CODE] option. Alternatively, you've not got the right chain of CA certificates and so the server cert can't be verified by the client.
1
2
8,328
2016-05-18T09:11:31.420
infrastructure
serverfault.com
241,357
why the processing is sometimes terminated , sometimes not
[CODE] I got : Msg 547, Level 16, State 0, Line 4 The INSERT statement conflicted with the FOREIGN KEY constraint “FK_BusinessEntityContact_Person_PersonID”....The statement has been terminated. The Value of @Error is 547 that means the process was still going on after the error was thrown. But if I try create a table(...
You can force the same behaviour accross errors with SET XACT_ABORT [CODE] From the documentation: Specifies whether SQL Server automatically rolls back the current transaction when a Transact-SQL statement raises a run-time error. Source By default [CODE] this means that different errors create different outcomes. To ...
2
5
185
2019-06-25T11:34:44.450
database_errors
dba.stackexchange.com
218,882
Short circuit count query
I have a stored procedure that searches for rows given a long list of parameters. Some of the queries result in extremely slow [CODE] queries. Is it possible to stop counting after, say, one hundred rows so that I can simply display "100+" for the row count? It's not important that the users know exactly how many rows ...
Is it possible to stop counting after, say, one hundred rows so that I can simply display "100+" for the row count? Sure. A query like this should do the trick: [CODE]
1
2
153
2018-09-29T18:18:43.453
database_errors
dba.stackexchange.com
368,443
Do CPU Intensive/ Data Intensive Tasks belong on the Server
I'm new to server development, and I'm trying to figure out where the division of responsibilities is for Data intensive tasks, I'm using Node.js. As an example say I'm making a Single Page Application: The Client renders a map with population per area The Server handles requests for the population data However, assume...
The normal rule for data intensive work is to place the processing so that the 'large' block of data doesn't move around much. This is because network delays are frequently much larger than any other single activity delay. From what you've described though, the answer may depend on the total data table size. If the tot...
7
3
1,044
2018-03-27T17:35:48.760
api_errors
softwareengineering.stackexchange.com
653,812
Enable SSH shell access but disable SFTP access
I've searched for a viable answer to this question, and most of the answers include advice on why to not do it. However, here's the scenario, and what makes it necessary: I have a console app, and in each user's .profile, there is a startup command for the app, and directly after the command that starts it up, there's ...
Edit: In case it's not obvious, the following answer isn't intended as a secure method of preventing SFTP from being used by anyone with shell access to the server. It's just an answer that explains how to disable it from external visibility. For a discussion about user level security, see answers from @cpast and @Alek...
29
25
41,999
2014-12-19T21:26:26.283
infrastructure
serverfault.com
459,275
Apache fails silently after installation of MapServer 6.2.0
THIS QUESTION SHOULD BE MARKED AS CLOSED I've recently compiled MapServer 6.2 on a CentOS 6.3 machine, using [CODE] if that is of interest, anyway. So after that, Apache/2.2.15 silently fails to restart, i.e. when [CODE] , it says "httpd not running, trying to start". There is nothing of interest in the Apache errors_l...
If PostgreSQL is running on the same machine make sure it is listening on [CODE] or on [CODE] , or on [CODE] on port [CODE] . To check this, the following command should return something: [CODE] If you have PostgreSQL running on a different machine, check that the hosts file is configured correctly and that the proper ...
1
1
493
2012-12-19T09:19:20.827
infrastructure
serverfault.com
252,751
How to force oracle accept insufficient swap size?
I want to install Oracle 12c on Oracle Linux 6.10 with 5.7803GB swap size. But one of prerequisites checked failed: [CODE] How to force oracle to use smaller swap size instead of required?
You possibly can't, really, unless there is a documented option for that. As the error is marked as "Severity:IGNORABLE" it is not unlikely that there will be an option to ignore "ignorable" warnings and proceed. Check the installation documentation for this information. If not, and the problem is that you have a fixed...
1
3
8,769
2019-11-07T12:58:20.493
database_errors
dba.stackexchange.com
359,436
Lost emails during MX change to gmail
I recently moved emails for domains that I host to gmail (keeping the @mydomain.com email address). I thought I was doing everything right so no emails would be lost, but this turned out not to be the case. Firstly I set up a google account with email accounts for the email addresses on my domain. Then I changed the MX...
Preface I'm afraid, here isn't a best place to ask such type of questions: in order to get full detailed answer, we have to cover some deep details of DNS and SMTP. It's a problem for local users here, but not (I hope) on ServerFault Face You done almost all correctly, I, maybe, only decreaseвd TTL for MX RR before cha...
4
3
5,950
2012-02-11T16:03:40.500
infrastructure
serverfault.com
606,589
Server 2008 permissions issues
We have a selection of top level folders: [CODE] The permissions are simple - the default [CODE] , [CODE] , some security groups allowing Modify and the [CODE] . There are no DENY, only ALLOW permissions. I have a user account that is a member of the local Administrator group mentioned above. However, when I access the...
UAC aims to improve the security of Microsoft Windows by limiting application software to standard user privileges . * That means , even though the user account is in the admin group, explorer.exe runs only with standard user privileges. And as a standard user, you are not allows to access those folders. But, when you ...
4
5
146
2014-06-19T21:11:39.900
infrastructure
serverfault.com
198,844
Oracle query performance when filtering results
I am currently working on a query for a front end application, which is experiencing weird performance issues when filters are applied on large sets of data. Here is a link to an SQLFiddle of the simplified query. The query is executing in about 1-2 seconds when fetching all rows. (limited only by rownum) A similar per...
[CODE]
1
0
64
2018-02-26T17:53:59.953
database_errors
dba.stackexchange.com
11,239
SQL Server 2005 query erroring with message 7105, slot for LOB data type node does not exist
SQL Server 2005 sp3 Standard on 64-bit Windows Server 2008 inconsistently receiving an error that seems to indicate corruption [CODE] sometimes, but not always, this and similar queries will generate the following error [CODE] the severity level of 22 causes the connection to be broken the data has long ago been commit...
Read what the bloke (Paul Randal) who wrote some of the associated SQL Server code says And logged on MS Connect And have you ran DBCC CHECKDB (KB 2015760) ?
2
1
2,830
2010-12-14T19:53:47.937
data_quality
dba.stackexchange.com
306,561
RMAN archive logs not deleted
I am working on an Oracle11gR2 database. The database is in DataGuard mode, even though the dataguard is set to DEFER. I want to delete all archive logs that have been backed up at least 2 times to tape. [CODE] shows a list of archive logs that match the criteria However, when I later try to run [CODE] no files are del...
Because you have CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default the database wants to make sure backups are made to tape and to disk. If you want it different because you only backup to tape that remove the lines about ...
0
0
2,309
2022-01-24T12:57:51.387
hadoop_errors
dba.stackexchange.com
705,638
Google authenticator / SSH: multiple shared secrets per user & sharing of shared secrets over users
I would like to add Google's authenticator app to our SSH authentication toolchain, as described in this article However, it seems that the PAM module basically makes a hard link between "linux user" and "authentication user". This causes the following 2 problems for us: If we have multiple users on the system (for mul...
Shared accounts do not work well with 2-factor authentication, as 2fa generally exists to prove that a user is who they say they are. Instead of shared accounts you should be using roles or user switching: someone connects with their own credentials as their own account and then performs a [CODE] operation to become a ...
1
5
2,420
2015-07-14T14:35:44.177
api_errors
serverfault.com
170,907
Find unused and duplicate indexes
Please let us know how can I find out unused and duplicate indexes from SQL servers, I searched in Google but there is no good information.
Here you go. But bear in mind that after you get a list of bad/unused indexes make sure you fully understand who has created them and what for. If no one can tell you and there is no docs on them you better do not touch them anyway. configure job to get statistic of usage of those indexes and run it for a considerable ...
-2
1
7,385
2017-04-13T09:26:52.870
database_errors
dba.stackexchange.com
1,133,804
how can I use iptables to forward (or redirect) traffic from one ip port to another specific IP port?
The prerequisite is: [CODE] I need to hostA to "svn co http://hostC_IP:port/svn_repository". And I set a "screen -dmS svn ssh -R HostAPublicIP:11002:HostC_IP:80 user@HostA_PublicIP -p2222" on hostB that the hostA can checkout the svn by " svn co http://127.0.0.1:11002/svn_repository" . It works well. But there is anoth...
It is very hard to understand your question, but if take a look at mentioned rule, it looks like you need to use -DNAT --to-dest
0
0
45
2023-06-14T06:39:01.710
infrastructure
serverfault.com
1,103,287
Where is my RAM? Memory leak?
I have a bunch of servers. It's a mix of baremetal, VMs. All running Ubuntu Bionic. This issue has been observed on both types. FYI, I have read similar questions and I've read the answers. I believe this is a unique problem. I am the Infra guy here, and I have ran out of ideas. I am unable to find what's using the RAM...
Is your system feeling better if you run the following command: [CODE] If is it going better and you have more free memory, you may consider adding this command to a daily CRON JOB: An CRON example of this command on a daily basis is given here
0
0
871
2022-06-14T17:45:27.003
infrastructure
serverfault.com
399,598
How to automatically resume php-fpm?
I am using nginx+php-fpm on Debian Squeeze for a busy server and have had great difficulty to deal with maximum connections being reached. Here the problem is that php processes sometimes just die randomly under high load and leave the server with no php process. Then I need to manually restart php5-fpm service to brin...
The old watch dog script idea huh? Not the most elegant way to solve your problem but it can temporarily remedy the situation until you can figure out why its happening in the first place. The actual problem needs to be addressed, It is either that the server needs to be more finely tuned, or that the server is not pow...
1
3
7,626
2012-06-17T21:34:59.020
infrastructure
serverfault.com
1,073,604
Setup an Email server
I know that the title of this post is not very indicative. But I thought the simpler it was the more people would watch. I am trying to set up a mail server with Ubuntu 20.04. The software I am using are: Dovecot, Postfix and Fetchmail. The machine where I work is running webmin which allows me to access the server man...
Maybe you could get inspiration from that: Mail-in-a-Box
-2
1
63
2021-08-05T08:56:06.910
infrastructure
serverfault.com
202,632
Merging output in table by matching records
I have an interesting problem to work in SQL that I really need [CODE] help with. What I need to do is to take a table, count the number of repeats/duplicates in a column, add those up and then spit the result out in a new column called "Count" matched to the column that was counted by record. So, like.. If you had a t...
[CODE] You can use a subquery to count duplicates of each [CODE] and join it with your main table. [CODE] Domain | cnt :------ | --: abc.com | 2 abc.com | 2 bca.com | 3 bca.com | 3 bca.com | 3 ggg.com | 1 dbfiddle here
-1
0
28
2018-03-29T15:25:13.303
data_quality
dba.stackexchange.com
797,238
ESXi Network Issue
I have 2 VMs running on a ESXI 6.0 Host with W2012R2 and VMXNET3. With iperf I get around 982Mbits/sec. Also tried to a outside VM (HyperV) running on another server and I get 300Mbits/sec. Download from that same outside VM to my laptop directly connected to the Procurve 2824 I get max link speed copying a file trough...
Does that outside VM have the legacy adapter or the "network adapter" attached? You need integration tools installed for the one called network adapter and not for the legacy adapter. The legacy adapter is slow. It is the EXACT same problem with VMXNET3 vs the E1000. We had a client that had nothing but problems in the...
2
4
241
2016-08-16T22:39:53.120
infrastructure
serverfault.com
13,430
Mounting Linux user home directories on CIFS server
I was wondering about peoples experiences with mounting users home directories from an Active Directory authenticated CIFS server under Linux. Preferably the mount would be accomplished upon login instead of mounting every home directory on boot (or just mounting /home) and would be Kerberos/SMB authenticated and autho...
I don't know if you mean the CIFS FS will be served from linux or just mounted under linux on the clients. However many non linux cifs implementations do not support stuff like symlinks and unix sockets so most window managers will die with a non linux cifs home dir. Auth is no problem you can just use winbindd and you...
7
2
7,125
2009-05-28T01:35:03.930
infrastructure
serverfault.com
1,015,156
How does peer to peer communication work without port mapping
How can BitTorrent client programs connect to each other when both are behind a router? My understanding was that to open a socket connection to another computer one had to do port mapping on the router. But this is not the case with something like BitTorrent. Why is that?
It's technically not a problem that they are behind a router; everything on the Internet is behind several routers. It's the network address translation (NAT) that causes problems with peer-to-peer protocols. There are NAT traversal techniques like TCP hole punching and UDP hole punching . You could read more e.g. on D...
-1
0
616
2020-05-01T12:25:39.657
infrastructure
serverfault.com
718,677
How can I get apache to only pass through to fastcgi on .php files?
We're running a different version of PHP for one of the sites, so we've configured fastcgi. But requests to any files, even static css and js is being passed through. How can we limit it to php only? This is the current configuration: [CODE] I've tried this: [CODE] Which serves up the index.php file located in that fol...
I think that you're config is not correct. It should be something like this: [CODE] Thank should then only pass PHP files to the FastCGI server. Also, what I done was create a fastcgi-php.conf file and put that into my conf-available folder, and symlinked it, so then that way I'd have PHP enabled for the entire server.
0
0
1,209
2015-09-02T22:03:57.770
infrastructure
serverfault.com
359,870
domain joining issue in windows 7
I am unable to join windows 7 os to domain, this is the error message The following error occurred attempting to join domain, The network location cannot be reached
Make sure the AD-server is your primary DNS server. Also, make sure the TCP/IP NetBIOS Helper Service is running. You can do this like this: Log on to the client computer by using an account that has administrator permissions. Click Start , click Run , type services.msc in the Open box, and then click OK. In the list o...
-2
2
2,495
2012-02-14T07:35:42.103
infrastructure
serverfault.com
642,684
Exchange 2010 - Auto-forwarded email not arriving at destination (20/40% missing)
Good morning, we have a weird issue with Auto Forwarding emails from Exchange 2010. Little background information first, I work for a daughter-company, lets say @bla-daughter.com. Our head office is @bla.com When customers send a purchase order, they send it to: info@bla.com, which is a distribution list. That sends it...
Is there a way to see if the exchange-server @bla.com actually forwarded the email? Sure. One thing you need to state though is the flow of email from bla.com to bla-daughter.com. Is the mail flow internal connectors? Disparate organizations entirely as if they were two separate companies and email goes back out over t...
0
0
1,294
2014-11-07T09:07:24.280
infrastructure
serverfault.com
289,117
Postgres master and slave out of sync
I am not used to working on the postgres backend. So forgive me if I leave something obvious out. I have postgres 9.4 running on 3 (debian) servers. #1 is the main prod server. #2 is slave to #1. #3 is for dev. Currently #2 is out of sync with #1. The #2 server rebooted and was stuck waiting for a password to restart. ...
Only if you have a WAL archive. In that case, you can configure [CODE] to catch up from the archive. Otherwise, rebuilding the standby us your only option.
1
1
262
2021-04-01T18:26:14.913
warehouse_errors
dba.stackexchange.com
121,392
faking NAT with a VMware distributed switch across multiple hosts
I need to construct a NAT for certain machines within the network. Wish to do this with dvSwitch - as it seems the logical way of attacking the problem as in this scenario there's just under 30 hosts. In order for the NAT'ed VM's to have access to the 'real' network. I am providing a 'router' VM, which will have access...
Answer Synergy Well your problem may be that your setup is as overcomplicated as your question :) DHCP does not pass router boundries without enabling a relay Once you have that actualized then your other 'machines' will be able to touch base with your DHCP server :P
4
1
1,523
2010-03-11T05:45:34.410
infrastructure
serverfault.com
990,572
Windows 10 uses wrong NIC to reach certain IP addresses
I have two servers running Windows 10 Enterprise 2016 LTSB that seem to be using the wrong NICs. The network consists of 2 subnets. So each server has one NIC on the "main" network with Internet access, 10.1.10.0/24. Then each server has another NIC on the "IoT" network with no Internet, 192.168.2.0/24. The NICs on the...
I've seen this behaviour too. In my case, if 192.168.2.102 doesn't exist (no arp response), windows should say 'Destination host unreachable' or 'Request timed out' (not sure which is more correct). Instead, it sends a ping request via the gateway in the other interface. I'd love to know if the IP addresses that are in...
1
1
5,071
2019-11-04T21:58:06.510
infrastructure
serverfault.com
798,460
Debugging UFW and Samba on Ubuntu Server
I have two Ubuntu servers with identical Samba configs and same UFW rules for Samba's ports but the difference is that one with 14.04 works just fine and the other with 12.04 denies access from everywhere. When UFW is disabled on the 12.04 server Samba connections are allowed again. Though, when UFW is enabled there ar...
Underneath the hood, UFW is just directing iptables/netfilter so the usual rues apply. The first rule a packet matches against wins. and same UFW rules for Samba's ports Your SMB related packets are likely matching an earlier rule that is blocking access. How could I debug this problem? You will have to audit your fire...
-1
1
929
2016-08-23T00:34:32.123
infrastructure
serverfault.com
477,110
IPTables allow then block with active connection
I have a backup server and I was wondering if I set a cron job to allow connection from a server in IPTables then once it connects with rsync, can I use IPTables to then shut off the port to prevent connections? The idea is to block the chance of backups getting wiped if the main server got compromised(yes, it is secur...
Assuming it connects over ssh rather than rsyncd, you could handle this with a rule such as this [CODE] Providing there are no other rules to allow it and the policy for INPUT is REJECT or DROP, this will work. If you also want to restrict this to a specific time, additionally use [CODE] - which would provide a two min...
1
2
538
2013-02-09T04:12:17.007
database_errors
serverfault.com
379,836
Should a SVG be converted to JSON to be stored in the database?
Consider an application where you can create and edit a SVG file (e.g. draw.io ). How should the SVG be stored in the database? With SVG (image/svg+xml) Thus no further processing is required before the data is stored. But after the data is retrieved the SVG needs to be parsed so the application can set up event handle...
An other software engineer in my team told me to use JSON but couldn't substantiate why? Maybe it was a joke? I can't think of any benefit to storing SVG inside JSON. None. I would store SVG files...in SVG format. Storing them in a file or blob storage system would be preferable to a database IMHO, but a database isn't...
1
8
9,232
2018-10-11T13:05:21.563
api_errors
softwareengineering.stackexchange.com
1,092,763
Use multiple server blocks in NGINX on same host and same port
I want to configure the server such that the root of the server serves some static files, which a specific endpoing, /nextcloud serves nextcloud on the same domain. Here is my nginx.conf - [CODE] Here is my /etc/nginx/sites-enabled/nextcloud.conf [CODE] The problem is this configuration doesn't work. With this config, ...
You need to configure both in same [CODE] block. When nginx receives a request, it selects the virtual host to use based on the HTTP [CODE] header in the request and port number. Your current configuration would serve [CODE] if you accessed the service using [CODE] , provided that you have DNS configured properly for [...
3
2
14,532
2022-02-05T13:46:29.803
infrastructure
serverfault.com
149,337
MySQL Monitoring Tools
I want to deploy tools to monitor my Production Percona servers (5.6 on Linux). I never used Nagios or any tool before. I did go through this great link but I wanted to clarify few things before deploying them: Those mysql exporter and node exporters of Prometheus which I need to deploy in my database host - what would...
The 'mysql' & 'node' exporters are lightweight processes and shouldn't impact your servers if you're running with default settings. Be careful when enabling the additional stats which use information_schema - these can impact your DB servers (especially when you have a lot of databases / tables) Nagios is chiefly used ...
1
1
129
2016-09-11T09:17:32.267
bi_errors
dba.stackexchange.com
299,762
SQL Server - Deadlock during two concurrent DELETE
I've got a Java app exposing a REST API to delete records in a table (SQL Server), sometimes the API must handle concurrent deletion requests (each request uses a different DB session) Here is an extract of the DB schema: [CODE] The deletion of a MailingInstruction record triggers a cascade deletion of the associated A...
And it seems the problem is a DELETE on Address record which is strange because as I delete by primary key I thought the lock would be only on the specific record. Sure, on Address. But then it scans MailingInstruction to implement the cascade delete. The leading cause of deadlocks on cascade delete is not having prope...
1
3
2,056
2021-09-17T11:05:20.417
api_errors
dba.stackexchange.com
549,504
Citrix Secure Gateway not redirecting to login URL
We have an older setup for XenApp - users log in through Citrix Secure Gateway running on a windows box. (We hope to start using a NetScaler soon.) Earlier today, connections to https://citrix.company.com/ starting throwing up a 503 error page, instead of redirecting to https://citrix.company.com/Citrix/XenApp/ If you ...
The redirect from the root to the Citrix site is performed on Web Interface server, rather than through the Secure Gateway. You should check the Web Interface directly, bypassing CSG.
1
2
2,044
2013-10-29T20:39:45.187
infrastructure
serverfault.com
1,141,197
postfix commands=5 causing mails not being sent
I'm able to send only mails using postfix but when it comes to sending mails to my own domain, postfix usually uses commands=6 which sends the email but sometimes it issues the commands=5 which causes the mails to fail and i don't know where they end up. The line in the below dump which causes the error - [CODE] The du...
[CODE] is not an error message, direct indication of success or failure; it's just for your information that during SMTP exchange there was N commands issued by the client, for you to roughly understand how long the conversation took. Typical SMTP conversation looks like the following: [CODE] If you count how many time...
0
2
384
2023-08-10T08:24:57.207
infrastructure
serverfault.com
69,194
SQL Server: affect other transactions?
I'd be surprised if this existed, but will ask just in case. Is there some mechanism which would allow one transaction to affect another (outside) transaction? For example: BEGIN TRY BEGIN TRAN -- Run updates 01 INSERT INTO dbo.Log (Text) VALUES ('Updates 01 - big success'); -- Run updates 02 INSERT INTO dbo.Log (Text)...
Assuming they are running on the same session, no, as you've already said. Are there ways around it? Sure, take it out of that session by plopping the messages in a service broker queue with an activated stored procedure. The only part I'm not quite sure on is if the WITH LOG part of raiserror would be subject to that ...
1
1
141
2014-06-27T12:50:28.463
database_errors
dba.stackexchange.com
378,303
Reset MegaCLI error count
I have a system where [CODE] shows media errors on one disk. After investigating the errors, I've decided not to take any action for now. I'd like to reset the error count, so that MegaCli will show 0 media errors unless there is another error. What arguments to MegaCLI do I need to do this?
AFAIK there is no way to clear those errors besides replacing the disk and rebuilding the raid set with a healthy disk =/. I tried running MegaCli64 -h but could not find anything for clearing them
6
1
4,227
2012-04-10T22:19:41.853
infrastructure
serverfault.com
313,913
In a SQL database, how can I add a unique constraint that depends on a value in a foreign key linked table?
As an example, I have 2 tables: [CODE] [CODE] As shown, the devices table references its location to the physical locations table. What I need to do is enforce uniqueness of the logical_address column in the devices table but ONLY within the district associated with its location record. So for example, consider these r...
A common trick is to add a unique constraint to physical_locations: [CODE] Now it is possible to reference that in a foreign key (guarantees that the same location, district is used: [CODE] Drawback is that you have to add district to devices: [CODE] The unique constraint prevents duplicates: [CODE] As @ypercube noted ...
4
4
550
2022-06-29T17:21:21.290
data_quality
dba.stackexchange.com
810,991
Permissions prevent file upload in vsftpd
I want to setup vsftpd to allow a user (foouser) to upload and create directories to /var/www/ with the intention of allowing entire webstites to be uploaded. Current Permissions: Apache runs at www-data . document root is: /var/www/ Permissions are www-data:www-data for /var/www (recursively.) Steps already taken: Cre...
I think you need to add passive mode configurations to your '/etc/vsftpd.conf` file since your connection is entering into passive mode. Below are the configs. [CODE] You can set [CODE] and [CODE] as per your need. but make sure you allow them into your firewall.
0
0
5,215
2016-10-24T17:19:19.717
pipeline_ops
serverfault.com
313,882
MySQL code error
Can someone please tell what is wrong with below SQL code? [CODE]
You need to remove the comma after the last column declaration. [CODE]
-1
2
46
2022-06-29T05:32:18.880
database_errors
dba.stackexchange.com
42,863
How can a database be normalized when an optional field causes denormalization?
Suppose you have a warehouse full of widgets. Each widget in the warehouse is stored in a specific identifiable location within the warehouse. You might have a schema which looks like this: A widget may also be (optionally) located on a cart in the warehouse, which could lead to a schema like this: However, a problem a...
You can try creating something like this (please excuse the crudity of the image):
6
3
1,514
2013-05-23T03:34:08.407
warehouse_errors
dba.stackexchange.com
481,132
How to resize Windows partition after conversion from RAID 1 to RAID 5?
I'm using Fujitsu PRIMERGY RX200 S6 with RAID controller RAID Ctrl SAS 6G 5/6 512MB (D2616) I've migrated RAID 1 (2 discs) to RAID 5 (4 discs) without any problems and on the fly without restarting the server. The new logical disk has now expanded in size and I see it from RAID manager software. From Windows Disk Manag...
You have to do a rescan after a resize for Windows to see the new disk size. In [CODE] click [CODE] and select [CODE] After that you can extend the partition as normal.
2
3
530
2013-02-21T15:14:26.743
infrastructure
serverfault.com
268,339
Ubuntu Server 11.4 on VMware hangs periodically
I created two identical Ubuntu 11.4 32-bit server VMs on the same VMware host (testbox and toolbox). Both installed off the same ISO image and have identical hardware settings. Testbox runs just fine, never had a single issue, but toolbox box becomes inaccessible for 5-10 minutes periodically (once or twice per hour). ...
Thank you everybody for taking a look at this question. It's most likely was a network issue (IP conflict or misconfiguration). I've ended up requesting a new IP and this resolved the issue altogether! The toolbox has been running for over 12 hours now with no issues :).
1
1
422
2011-05-10T20:20:14.087
infrastructure
serverfault.com
246,686
Let applications share a database or keep them in sync with web services?
We have decided to build separate applications for user authentication and user management. The reason is that the the former is a "this just needs to always work, and do so instantly" style service, and the latter includes a much-larger user-interface component with many requirements and features. Unfortunately, while...
Long story short: all in one. If you consider one of these as "master" and the other as an augmented replica, that updates are replicated one way only, and you can survive large latencies in synchronisation (and I'll let you define "large") then two separate DBs will work. For anything else I'd suggest a single DB. If ...
4
4
4,611
2014-07-02T16:55:17.660
api_errors
softwareengineering.stackexchange.com
1,131,670
Windows Server Time-Service jumps into the future and (partially) back
This looks like the same issue as Windows Server 2022 Time Service Jumping into the future . I've also added a support ticket at Microsoft (Feedback Hub) for the issue: https://aka.ms/AAkwnpl As the system clock is essential for correctly working software and probably the most central shared mutable state, this issue i...
UPDATE: Ars Technica has written an article on this problematic feature: https://arstechnica.com/security/2023/08/windows-feature-that-resets-system-clocks-based-on-random-data-is-wreaking-havoc/ TL;DR: We have found the most likely root cause: W32time Secure Time Seeding which looks at the legacy "time" value in SSL h...
5
5
6,721
2023-05-22T13:36:55.853
infrastructure
serverfault.com
328,984
Allowing null to a foreign key
I have two existing tables called [CODE] and [CODE] . Right now, the [CODE] are linked to a possible multiple of [CODE] The customer wants this changed to be just a [CODE] relationship. My question: When I add this column [CODE] to the [CODE] , knowing that this has to be chosen in the application, should I allow it to...
When you model conceptually, relationships that are mandatory on both ends are possible, but in the physical world of tables, they do not exist, becuase that would prevent insertions, since you cannot insert A without a corresponding B and viceversa. So in the RDBMS one of the ends of the relationship must be not-manda...
1
2
501
2016-08-22T06:42:47.063
api_errors
softwareengineering.stackexchange.com
1,129,844
Ansible : Loop inside loop
On ansible [core 2.13.3] my var.yml file is like this : [CODE] The objective is to launch one task for each elements in vlans (Servers, Clients, Printers...) and for each mode (tagged, untagged, forbid...). I successful iterate on vlans but not in vlans and mode. I can't find the good way to success nested loop. Try ev...
Convert the dictionaries mode to lists [CODE] gives [CODE] Convert the dictionary vlans2 to a list and iterate with subelements value.mode [CODE] gives (abridged) [CODE] Example of a complete playbook [CODE]
1
2
3,345
2023-04-27T17:51:13.670
pipeline_ops
serverfault.com
169,478
How can I move an existing VM's files to a new directory in the same datastore?
I have some VMs deployed on ESX. In vSphere 4, I want to move these VMs into another directory in the datastore. So the VM directories are under root, but I want them in root/MyNewFolder. I tried this by turning off a VM, copying the VM's file (VMDK etc) into the directory I want, deleting the hard drive from the VM's ...
VMware have never really intended to make it easy to use VMFS datastores in this way but you should be able to do it if you really want to. The recommendation is to leave this level of detail up to ESX\ESXi but if you really want to give it a go read on. Firstly you should power off and deregister the Virtual Machine (...
0
1
8,830
2010-08-11T19:34:20.237
infrastructure
serverfault.com
1,076,077
Extending a partition in ubuntu 14
I've been trying to follow several of the guides and articles on this forum and others on how to extend my current Linux LVM partition. Here are the current partitions I have. I don't understand how both sda2 and sda5 are the same blocks is my first issue. And my second is that I don't know which to select to extend? [...
[CODE] is a logical partition. It resides within the Extended partition ( [CODE] ). I'm assuming this is an older machine/install using Master Boot Record (MBR). Even under MBR, the Extended partition isn't really necessary. Having a Primary/Extended/Logical partition was for backwards comparability with earlier versio...
0
2
2,347
2021-08-30T20:20:50.757
infrastructure
serverfault.com
738,540
Nginx Config Issue for Ghost Blog inside a sub-directory on a LEMP Server
My Requirements Ghost Blog on www.mydomain.com/blog An index.html, contact.php, couple of images and js files in root directory. (i.e something like www.mydomain.com/index.html, mydomain.com/contact.php, etc) After Reading This Tutorial https://www.digitalocean.com/community/tutorials/how-to-create-a-blog-with-ghost-an...
I found The Solution after some Intensive Google Search Now, First I Copied The Default Ghost Config file from sites available folder to sites enabled folder using [CODE] After The file Got copied,I Restarted nginx using following command [CODE] Now, When I refreshed The page, I couldn't see my blog but everything from...
2
1
1,650
2015-11-24T06:43:34.950
infrastructure
serverfault.com
716,605
Ansible synchronize hangs when executing inside ssh with delegate_to
The following task works fine when run directly from my machine. When I run it from a remote machine through SSH it hangs forever. This is the task: [CODE] This is the output before it hangs: [CODE] Any ideas of what might be going wrong?
After some investigation, the issue turned out to be related to agent forwarding. Adding [CODE] to the [CODE] setting in [CODE] did the trick.
5
4
6,072
2015-08-25T12:32:03.207
pipeline_ops
serverfault.com
316,735
Parallel and faster evaluation of SELECTing boolean comparing count
I have a table: [CODE] and I want to use this blacklist to see whether a customer with [CODE] or a [CODE] is inside of it. So my query is: [CODE] Basically splitting the [CODE] condition into sub queries with [CODE] to make use of indexes, but I've discovered that we have so many blacklist rows with [CODE] row filled w...
You’ve written the query so that it has to find every matching row, then lookup the row again to count it. You just want an existence test using an [CODE] predicate, this will return as soon as a match is found. See this dbfiddle for a demo https://dbfiddle.uk/Awu5NUrI you can see that the second branch of the [CODE] i...
0
2
159
2022-09-10T07:50:55.317
warehouse_errors
dba.stackexchange.com
503,439
Self-signed certificates for thunderbird
I want to set self-signed certificates in thunderbird but got some warnings when I try to sent message: [CODE] I've made next steps: 1. Create CA certificates: [CODE] 2. Made pkcs#12 container for user: [CODE] Also, i've added *.p12 file and CA certificate to thunderbird. What should I fix? Thanx a lot.
In order to use a certificate for signing mails in Thunderbrid, the corresponding CA certificate has to be added to the certificate store in thunderbird (Preferences -> Advanced -> Certificates) has to have the e-mail signature trust bit set (Right click on the certificate).
2
1
1,495
2013-04-29T07:28:35.430
pipeline_ops
serverfault.com
138,158
Optimize query to find top N users who commented on a post
Problem Trying to find the most efficient query to retrieve the top N (5 in the examples) users who have commented on a post, where a user is considered 'top' if they have the most followers. The query optimizer does not seem to be choosing the correct path. Tables (Postgres v9.4.4) user_account (40k records) [CODE] fo...
Better data types [CODE] is a sub-optimal data type for key columns. It would be more efficient to use [CODE] . Related: Indexes: integer vs string performance if the number of nodes in the index is the same [CODE] in your example looks like a UUID. If you need to use UUIDs, still don't store them as [CODE] . The appro...
4
4
378
2016-05-10T23:10:06.287
database_errors
dba.stackexchange.com
544,917
pdsh gives error "rcmd: socket: Permission denied"
When I run the command: [CODE] I get the following error: [CODE] Any ideas?
Found the answer. rcmd_default needs an entry: [CODE]
8
17
16,787
2013-10-09T16:15:03.757
infrastructure
serverfault.com
9,195
Maintaining list of testcases in an agile environment
I am working on an agile team building a web-based product. We do have jUnit tests and API automation as well. However since we iterate fast, more and more test-cases are being added or updated everyday. My problem is that there is no central list of test-cases. Is there any tool which I can use to maintain list of tes...
Test documentation : It should be possible to generate code documentation with something like doxygen or an alternative . (Assuming all the automated test-cases are started with a (unit) test-runner which uses a sort of class system in code.) Run the doc-generator only on the directories containing the tests. This shou...
2
2
125
2014-07-11T07:48:46.020
data_quality
sqa.stackexchange.com
373,966
The dilemma of implementing virtual inheritance
I am working on a program language, and I came to the dilemma whether it should support virtual inheritance or not. As a designer and implementer of the language, including that feature represents added complexity. As a language agnostic software developer, it seems like the only benefit from including it is to facilit...
Virtual inheritance as used by some C++ implementations only makes sense under fairly specific constraints: Classes have a fixed object layout that is known at compile-time. An instance can be upcasted to a base class type. Therefore, inheritance must embed the base class layout into the subclass layout. The language a...
2
3
1,081
2018-07-11T11:47:37.517
api_errors
softwareengineering.stackexchange.com
408,426
RIP Advertising Networks of EIGRP without Redistributing
This is the topology I have set up in my GNS3. The RIP V2 protocol of Router R2 is recognizing and advertising the two networks that are advertised in EIGRP, even though the said information should only have been received through redistribution. How Do I ensure that RIP advertises only those subnets I want advertised a...
You can use a distribute-list to stop RIP from advertising the routes that are part of both the EIGRP and RIP processes (namely 192.168.1.16/28 and 192.168.1.128/30) To do this simply allow the loopback 1 route out, and deny the rest. Alternatively you could write an access list that denies 192.168.1.16/28 and 192.168....
0
0
532
2012-07-17T08:25:14.230
database_errors
serverfault.com
316,944
postgresql - delete duplicate object in json
I need to remove duplicated objects in a jsonb field in table in PostgreSQL 12.7. How can I do this for all rows in table? In this example I need to remove the 3th and 4th object (date: 2022-09-12) [CODE]
something like this perhaps: [CODE]
0
0
1,399
2022-09-15T15:28:15.383
database_errors
dba.stackexchange.com
54,462
Symantec Ghost Error Trying to Image Win/Linux
I'm having a problem trying to use Ghost on one of my labs. This semester one of our instructors wanted to have a lab that can dual boot Win Xp and Linux. I set it up and pulled an image with ghost with no problems, but pushing the image back out causes Ghost to crash with the following error. ABORT: 8027 GeneralExcept...
It seems that Symantec Ghost Solution Suite 2.5 doesn't provide good support for LVM volumes, but I'm not sure if that's the version that you're using or if there are other versions that support LVM without problems (you can take a look at this article ). If you have no choice about using LVM (for example, because it w...
0
1
2,300
2009-08-14T23:28:28.647
infrastructure
serverfault.com
688,348
Python Pip Install fails - Could not build the egg. Also cannot use 1.2.5 because of google cloud sql
I need mysql-python. I get error of could not build egg while installing 1.2.4 Everywhere it says install 1.2.5, which works for me too. But googleAppEngine's app.yaml supports only 1.2.4 [CODE] So if I use 1.2.4 there, and 1.2.5 in the virtual env, I get the error - [CODE] What is supposed to be done, either working w...
Latest didn't help. This worked -- Run - pip uninstall mysql-python [CODE] Settings - [CODE] }
0
0
1,116
2015-05-04T04:10:20.480
database_errors
serverfault.com
40,158
Using postgres with the command line without pgAdmin
I started working with PostgreSQL and till now I only had issues with it ( pgAdmin3 issues the most ) now I work a lot with MySQL and sometimes on the command line by just doing [CODE] for example and I'm connected through the command line. Is there also a way to connect to the PostgreSQL database without pgAdmin and r...
The PostgreSQL command line client is called [CODE] . You can do pretty much everything with it (apart from taking dumps, for example), you'd better reading its documentation . Try running [CODE] in a terminal and you will find its binary. As far as I know, on OS X (and typically on other systems, too) pgAdmin is bundl...
2
6
36,758
2013-04-16T18:57:47.410
database_errors
dba.stackexchange.com
298,586
Azure Data studio - connection to server in the same network - Error: The received certificate has expired
I am trying to connect to SQL server on my network with Azure Data Studio, and I am getting error: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The received certificate has expired.) Connection works through SSMS and ...
I had same issue -- got around it by setting "Trust server certificate" to "True" in "Advanced Properties" of "Connection".
2
1
2,363
2021-08-26T08:34:07.027
bi_errors
dba.stackexchange.com
389,493
Is it a bad thing to delegate a callout to an external system, given that my current one can't do it?
Custom code written for the Salesforce platform is incapable of making a PATCH request to an external server (PUT and POST are okay though), and I need to make a PATCH request to an external service (Microsoft Graph). While authentication can be handled with a POST request directly from SF to MSG, obtaining the access ...
It depends... From a data perspective it is doubtful that anyone could learn anything from your system. So mostly data-leak safe. From a control perspective, there is a possibility that a flaw in the app could be exploited to allow an attacker process (or higher) level access. This is probably unlikely unless the http ...
0
2
81
2019-03-30T17:58:17.067
api_errors
softwareengineering.stackexchange.com
291,141
Join duplicating the data - SQL Server
I am working with SQL Server Always On and I am querying the data as follows: [CODE] This gives me the output I need, however, I also need the DB name so I am trying the following: [CODE] However, this is giving me issues as it is duplicating the information. I also tried to fix this issue by doing the following: [CODE...
Read the definition of sys.dm_hadr_database_replica_states at https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-hadr-database-replica-states-transact-sql?view=sql-server-ver15 - you’ll notice that it says “On the primary replica, this view returns a row for each primary d...
0
0
54
2021-05-06T21:19:17.537
database_errors
dba.stackexchange.com
343,641
Saving URI in database parsed vs plain
So I want to save different URIs in database. I want format to be forced as well to look up different URIs easily. Is it better to create table like this: [CODE] Or just [CODE] UPDATE: Use Read, store maybe do some analytics. Build back original URI and if it's web URL redirect. May do some searching that's why I think...
Seriously, are you ever going to do a search for scheme, path, port, query or fragment? Probably not. About the only thing you might want to search is host. Now, if your URIs mostly have the same scheme (http), you can build an index on the free-form text column and search it using the LIKE operator with a prefix match...
4
4
812
2017-03-07T12:51:07.723
api_errors
softwareengineering.stackexchange.com
1,039,587
NGINX force HTTPS except for some user agents on AWS Elastic Beanstalk
I have a partial NGINX config file that gets pulled into a main NGINX config file automatically by AWS Elastic Beanstalk. I have two instances running, one EC2 web server running PHP and another that's an SQS worker. I had set up my config file to force HTTPS using: [CODE] This worked great for forcing HTTPS, but I was...
This is a classic instance of the "If is evil" NGINX scenario . There's a whole page dedicated to explaining how and why using if directives inside the location block can be problematic/give completely unexpected results. I would recommend using NGINX map for UA routing. Or if you must use the [CODE] inside location, a...
0
0
373
2020-10-21T16:11:56.043
database_errors
serverfault.com
587,332
In Get-Mailbox, (Exchange 2010) why would the servername change and how can I correct it?
I have a 4 node DAG in 2 sites. All databases are mounted in Site 1. For some reason the "servername" property in "get-mailbox" is causing an issue with MAPI based software such as Goodlink. Specifically, the servername property has the name of the mailbox servers located in the remote site. MAPI poxying is not configu...
I can't find the exact blog article I'm thinking of, but this one is close. This is another Technet blog that talks about that property. I ran into this problem when decommissioning Exchange 2010 Mailbox Servers. Even with the server removed gracefully, the property remained set to a non-existent server. I can say for ...
0
1
830
2014-04-08T00:58:06.620
airflow_errors
serverfault.com
155,605
Is executing SQL through a WebService a really bad idea?
Typically when creating a simple tool or something that has to use a database, I go through the fairly long process of first creating a webservice that connects to a database then creating methods on this webservice that do all the type of queries I need.. methods like [CODE] Is it terrible design to simply make the we...
It is terrible design and you know it. You're leaving yourself at mercy of anyone with even a slight malevolent intent. Apart from being vulnerable to regular sql injection, you expose an entire webservice to throw sql at, bypassing even the need to inject it. Doing such a thing with your private database is simply unw...
6
12
18,492
2012-07-04T15:06:34.800
api_errors
softwareengineering.stackexchange.com
868,266
mdadm assemble ignoring --force? Raid10 minimal difference in 'Actions' between Harddisks
My server Is runnIng a 4 dIsk software raId 10 based on mdadm. EarlIer today a small power outage shut down the server and now It only boots to the InItrd emergency system (ubuntu 16.04), complaInIng about two of the four dIsks beIng 'possIbly out of date'. There Is a mInor dIfference In Events between the four dIsks. ...
I had the same problem with ubuntu-16.04 and a RAID5. Despite all the metadata looking good and a small difference in the number of events [CODE] wouldn't start the RAID. I downloaded mdadm-4.0 source, ran make, and ran the same command from that dir ( [CODE] ) and it started right up. Seems like the ubuntu-16.04 does ...
2
3
1,059
2017-08-11T23:08:24.883
infrastructure
serverfault.com
340,135
Find nearest best fit for circle
Below is an example image, if I have a point of the white dot in the middle and I want to find the nearest possible location for the blue circle (which is obviously at the location where I placed it) if all the red circles already exist. How can I find that location? Performance for me is not a major concern for this a...
This is not a general solution, since there are several situations were it will not provide the position of the blue circle with shortest distance to the white dot. For example, if you have 100 red balls grouped together and the white dot is far away from this group of red balls then none of the red balls will have any...
12
4
809
2017-01-13T16:03:27.567
api_errors
softwareengineering.stackexchange.com
122,976
SQL Server authentication failed after server promote
we recently promoted a Windows 2008R2 server to domain controller. We then found that it hosted a SQL Server 2008R2 Express database instance. If we try to login to the DB with the domain admin credentials we get a login error 916. We are also unable to enable the 'sa' user due to error 15151. Any help will be greatly ...
Found it! I was able to create a privileged user while putting the DB in single-user mode. Here is the link: http://v-consult.be/2011/05/26/recover-sa-password-microsoft-sql-server-2008-r2/
0
0
84
2015-12-05T10:12:53.323
database_errors
dba.stackexchange.com
172,067
MSSQL 2005 > Linked Server Connection Fails > MSSQL 2000
At the company I work for, we currently are running 3xSQL 2005 servers and 1xSQL 2000 server. All of the 2005 servers can communicate with each other, however they cannot communicate with the 2000 server. On the reverse side, the 2000 server can communicate with all 3 2005 servers. When a 2005 server attempts to connec...
System stored procedures don't get updated properly with SQL2000 SP3/SP4 You have to run instcat.sql manually. http://support.microsoft.com/default.aspx?scid=kb;en-us;906954
0
1
1,076
2010-08-18T21:00:49.137
database_errors
serverfault.com
419,550
Cannot Connect to MySQL on Ubuntu
I have been doing some work with MySQL recently and needed to use InnoDB. I checked to see if it was installed and switched on using: [CODE] . It said no so i went into [CODE] and commented out [CODE] After i restarted and tried to log in I am getting the following issue: ERROR 2002 (HY000): Can't connect to local MySQ...
The error that you are seeing is most likely caused by the mysqld service not running. You can test this with [CODE] or more likely in your case [CODE] There are many reasons why your mysql might not be running, you'll most likely find more information about why in the error log [CODE]
-1
2
636
2012-08-20T11:34:51.023
database_errors
serverfault.com
4,362
Jenkins "internal" pipeline script producing errors when running sh steps
I've been experimenting with creating a new pipeline, using the built-in pipeline editor (i.e. not from SCM). The strange bit is that, when I run any [CODE] step, I receive the following error: sh: 1: Syntax error: end of file unexpected (expecting "done") This comes from the following MWE: [CODE] The odd bit is that m...
Apparently this was caused by the pipeline name having an apostrophe character in it. Renaming the build solved the issue.
0
2
905
2018-06-22T13:59:05.237
pipeline_ops
devops.stackexchange.com
61,658
Configuring ethernet port failover in Windows 2008
I have a Dell R300 server with two ethernet ports, running Windows Server 2008. I'd like to use one IP address, and connect to two switches. I only need one port at a time, I don't need more speed. The idea is, if one switch or one ethernet port goes bad, traffic continues on the other. I had something like this set up...
I believe the R300 comes with Intel interfaces right? Install the Intel Proset tool, and setup a team in the "Adapter Fault Tolerance" mode. Here is a link on how to setup AFT on Windows Server 2008 core install
0
2
1,870
2009-09-02T19:07:40.817
database_errors
serverfault.com
278,432
Making squid use a proxy
I have a home network with 4-5 clients, and a server. The server runs Squid 2.7. The clients are all configured to use squid as a proxy server. I would like to be able to establish an SSH tunnel with dynamic port forwarding (basically set up a SOCKS proxy), and make all of squid's traffic be tunneled through the SSH co...
I ended up using OpenVPN. I've got another question about that.... but if I end up asking it, I will post separately.
0
0
403
2011-06-08T19:07:31.787
infrastructure
serverfault.com
592,081
FreeIPA: prevent local root accessing user accounts
So after asking this question, I've been test-driving FreeIPA as a central authentication source based on this question: Managing access to multiple linux system One problem I ran into is that if a user is given local root permissions, they can in turn login as any user in the FreeIPA directory. Even if that users does...
I would classify this as a 'security exploit' between the relationship of the Linux 'client' system(s) and FreeIPA. Though not necessarily a 'bug' it DOES expand the local root accounts ability beyond that of the local O/S instance (which it should 'not'). The repetitive statements that this issue is all about UNIX and...
6
1
3,575
2014-04-29T17:33:27.127
api_errors
serverfault.com
385,364
Problem in creating a correct finite-state-machine for a given short text
I like to create a finite-state machine for the given text below. While solving this, I came accross with several problems I listed at the bottom. (This example is in terms of testing (where you later derive tests of a specification which is in form of a state machine).) Following specification of an elevator is given:...
Some random thoughts: You're not representing the individual stories in the state machine, thus, either you'll have to track them "externally" to the bubbles/states of the state machine, or, incorporate multiple stories in the state machine itself. The former would capture a story number as an integer — Wikpedia's UML ...
1
3
670
2019-01-11T23:43:40.660
api_errors
softwareengineering.stackexchange.com
314,286
Inode tables shrinking sharply over time causing rsync/inode problems
We setup a Linux (it's on Amazon AWS, a CentOS-like system although we are not exactly sure the customizations done on it) system with 4TB storage as an XFS volume over LVM (ultimately to be used for serving over NFS4, but it is not in use yet), and we are in the process of using rsync to sync files from a production N...
Enabling XFS delayed logging ( [CODE] mount option) might help (see http://en.wikipedia.org/wiki/XFS#Disadvantages ). CentOS is (in)famous for using a patched kernel so a kernel upgrade may be needed.
12
1
1,552
2011-09-22T09:22:46.717
pipeline_ops
serverfault.com
100,219
Access to the remote server is denied because no login-mapping exists
I've got a Linked Server in my SQL Express install that is using SQL Server Authentication. I've created a SQL Server login-mapping and it's using Impersonate. I've confirmed that the account exists on both servers but I'm still getting the error. Any suggestions?
Where are you attempting to login from ? An application on a 3rd server, or an SSMS on the same (database) server, or a 3rd server ? In the first and last case, you are going to run into the dreaded double-hop issue. It is not Kerberos-related, since you say you're using SQL server authentication, which does not use AD...
-1
0
6,639
2010-01-06T21:25:14.247
api_errors
serverfault.com
123,835
Error with procmail script to use Maildir format
I have this code in /etc/procmailrc: [CODE] But, when the directory already exists, sometimes it will send a return email with this error: [CODE] . The email still gets delivered, mind you, but it sends back an error code to the sending user as well. I fixed this temporarily by commenting out the [CODE] and [CODE] line...
Actually the dovecot instructions for procmail is what I was looking for. [CODE] Thanks for the assistance.
2
0
1,075
2010-03-18T13:55:26.510
infrastructure
serverfault.com
81,835
SSRS Domain Migration
My company is currently going through a data center migration. We are now down to the SQL Servers and this includes SSRS. The bad thing that is going to hit us is the current SSRS server is being migrated to a new domain. So all users/groups that have access to SSRS are in DomainA and after the migration the SSRS serve...
I would go back to testing and find out why the SID migration did not work. It is a migration Microsoft supports with Active Directory. I would suggest engaging the support for the Data Center you are moving to for assistance. (or even Microsoft...) If the SIDs cannot be fixed your only option is going to be recreating...
1
1
1,447
2014-11-04T13:49:20.100
data_quality
dba.stackexchange.com