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
189,817
Return matches that have at least one message
I have two tables, the [CODE] table keeps track of matches and the [CODE] table keeps track of conversations for a match. Right now I'm getting all the matches by the following query [CODE] But I want to modify it so that it would only return matches that have at least one message in the [CODE] and at least one message...
You can do this efficiently and concisely with an [CODE] clause. [CODE] Btw it's really confusing to have [CODE] , and [CODE] in the [CODE] table. Normally, the convention of [CODE] means you're referencing something else in a different table. Also, in PostgreSQL we never use [CODE] unless there is a spec that imposes ...
0
1
114
2017-11-01T03:06:40.623
warehouse_errors
dba.stackexchange.com
474,914
SSH RemoteForward notify client on failure
I am using SSH to forward a port on a remote machine (Client) to another machine (Server) using ( [CODE] ) Host Client: [CODE] The problem is that even when there is not one listening on the Server, the client can connect successfully to [CODE] . The only indication of the failure is a message on the server: [CODE] Is ...
If sshd cannot make the connection specified by your LocalForward, you connection to the local port will immediately be closed. Your sshd is misbehaving if it does not do that. Here's what happens for me: Terminal 1: [CODE] The error messages are printed whenever I try to connect in terminal 2. Terminal 2: [CODE] And I...
4
2
629
2013-02-03T08:51:55.023
infrastructure
serverfault.com
1,039,222
Postfix - outbound SMTP traffic going out wrong interface
I have a postfix server that was working fine (inbound and outbound) until I made some networking changes. I added an interface (for a second public IP address, via a VPN tunnel. I intend to run multiple postfix servers, to support separate domains on separate IP addresses, certificates etc.) After the change, postfix ...
This was a configuration problem in [CODE] . The configuration shown above (in my question) only sets [CODE] for inbound traffic, meaning for the listening daemons. For outbound traffic, meaning when the postfix daemon sends mail to other servers, the following line in [CODE] must also have the bind address specified. ...
2
2
1,328
2020-10-18T22:01:10.687
api_errors
serverfault.com
764,628
cronjob error "/bin/sh: /path/to/file: No such file or directory"
i've installed a python software that allows to run javascript on the server i've put the binary file (jsrunner) in this address [CODE] so in the ssh when i try it it works fine [CODE] and i get some output from test.js so i've put the same exact command in the cronjob [CODE] but after a while i didn't get the expected...
i've this working on my other servers it's just this new server is cuzing the error and only on cronjob I had mostly the same issue but with inkscape binary. It works perfectly via apache but doesn't work via nginx. The root of the issue was environment variable PATH. For example from cron [CODE] From the console [CODE...
0
0
4,650
2016-03-18T15:20:50.977
infrastructure
serverfault.com
189,169
How to synchronize configuration for Findbugs between build server/Maven and several programmers
Here's a common scenario for developers who want to integrate static analysis in their workflow. Any suggestions on how to get this working with a minimum of pain? The situation is similar to the one discussed here: http://enterprise-it-solutions.blogspot.dk/2011/02/maven-configure-checkstyle-pmd-eclipse.html The dev s...
looks like you've reached a great stage in the evolution in your CI builds. What you're probably after next is Sonar . Localised configurations can be shared out of say a GitHub repo which can contain IDE or Maven plugin shared config. However, these types of checks actually slow local developers down a great deal, it'...
2
2
1,261
2013-03-04T14:43:21.720
api_errors
softwareengineering.stackexchange.com
230,230
\COPY not returning count psql
I am trying to copy CSV data into tables. Also I want to print the count. The command I'm using is: [CODE] Expected Output: [CODE] Actual Output: [CODE] Any ideas on what I'm missing here?
Why the [CODE] is missing As said in the doc about [CODE] : Unlike most other meta-commands, the entire remainder of the line is always taken to be the arguments of \copy Clearly your intention is that [CODE] and [CODE] commands are sent consecutively, but in fact the SQL command that is sent to the server and successf...
1
1
790
2019-02-20T08:57:36.953
warehouse_errors
dba.stackexchange.com
220,440
critical swap nagios
I installed nagios a very long time ago, and have started trying to use it now. I am getting this error: [CODE] Is this normal? Should I be concerned? Ok, so I am adding this to here, cause I think I have an issue with the swap, im sure the system should be setup with raid mirror for the swap. [CODE] and, [CODE] free: ...
I figured this out finally: I removed the drives from the raid. Ran [CODE] Then had to do [CODE] This would not work for some reason. [CODE] That seemed to fix the issue.
0
0
5,327
2011-01-09T22:24:04.293
infrastructure
serverfault.com
94,398
SQL CLR very slow on Amazon EC2 Instance (SQL Server 2014 CU6)
I am running a SQL Server 2014 Standard Edition (Cumulative Updates 6) instance on an r3.large Amazon EC2 box. I noticed that the CPU usage of SQL Server skyrockets to 100% while executing pretty much no queries at all. Looking at the SQL Performance Tool, I can see that most of the time is lost in SQL CLR functions. H...
It turns out that the CLR was not enabled and for some reason the exception wasn't being trapped and SQL Server took about 15 seconds just to say that the CLR was not enabled but during that time the instance is being kept at 100% CPU and hogged down. In case anyone happens to have the same problem, you can turn the CL...
1
1
402
2015-03-04T15:52:15.213
database_errors
dba.stackexchange.com
1,146
Vista / Windows Server 2003 Mapped Drive Logon Failure
I have a Windows Vista (Ultimate) machine which connects to a Windows Server 2003 machine for just one thing: a mapped network drive. There is a user account on the Server machine which exactly matches the user name & password on the Vista machine. The problem is... when I try to connect (map) the network drive, a mess...
i have had similar problems. it seems to be related to logging in to a different server with a different password. for instance, i had a user password for one share and a different one for another - both with the same login id. after i attached both of the shares, it would forever mess up logging into one of them. even...
1
2
7,326
2009-04-30T16:04:37.697
api_errors
serverfault.com
21,579
Terminal.app does not support alt/meta/command-key modifiers such as meta-backspace
This was observed on Mac OS X 10.5, running [CODE] . On a native Linux machine, from a [CODE] command prompt, typing meta - backspace deletes up until the most recent whitespace. On a Mac, it sounds the system bell. SSHing into a Linux machine with [CODE] as the terminal causes the same problem. This behavior is consis...
The real solution to this problem is to use option as meta in the [CODE] preferences and Emacs. In Emacs 23, I do: [CODE] to use option as meta . Hope this helps.
5
3
2,338
2009-06-07T18:35:46.027
infrastructure
serverfault.com
159,100
Replace special character
I am trying to replace the character [CODE] with the character [CODE] , using: [CODE] but: 1 errors were found during analysis. Ending quote ' was expected. (near "" at position 59)
MySQL accepts ' and " interchangeably. So use ' to quote " and " to quote ': [CODE] (There are many other solutions, involving hex, conversions, etc, but the above seems simple and straightforward.) But... The error message does not look like a MySQL error, so I suspect your query is in a quoted string in your client l...
0
2
2,908
2016-12-24T20:06:07.383
warehouse_errors
dba.stackexchange.com
312,033
Is it safe to use default value with not null when adding a new column?
We have a Rails app powered by Postgresql v11.4 where I want to add a new column with a default value and a not null constraint like below: [CODE] I know adding a new column with a default value is safe. However, is it still safe when combined with [CODE] ? Or will it lock the database? Thanks!
That statement is safe. An ALTER TABLE will never lock "the database", it will only lock the table. Postgres will not actually rewrite the table because you provided a constant value ( [CODE] ) for the default value. So adding the column is actually done in a few milliseconds because Postgres only stores the informatio...
6
7
14,255
2022-05-12T11:14:43.033
data_quality
dba.stackexchange.com
859,599
Postfix/Dovecot-LMTP configuration confusion
Having read through many tutorials on configuring Postfix to pass mail to Dovecot-LMTP I am still quite confused as they are often contradictory. main.cf Some tutorials say the following must be added: [CODE] Others say: [CODE] And yet others say: [CODE] master.cf Some tutorials imply that nothing further needs to be a...
[CODE] [CODE] modification you mention is required only for non LMTP postfix's configuration [CODE] The two remaining postfix configurations merely use slightly different LMTP socket name. They require modification of dovecot's configuration . Dovecot should log on the log files (Debian => [CODE] ) that has a message h...
3
2
5,498
2017-07-06T00:45:31.810
infrastructure
serverfault.com
726,035
Backup of KVM raw-images
I'm running qemu-img-0.12.1.2-2.355.0.1.el6 on CentOS 6.3 using raw images for my virtual machines. Is there any way to safely backup guests, without stopping them? I've tried to make snapshot on a test guest, that wasn't running but got an error: "live disk snapshot not supported with this qemu binary". Does this mean...
If you're using raw image files then the only way to get a consistent snapshot is to suspend or shut down the VM. You can take a snapshot using qcow2 image files without suspending the VM, but the snapshot becomes part of that file. This may or may not be appropriate, depending on your situation. You would have more op...
4
3
9,857
2015-10-01T13:00:01.440
database_errors
serverfault.com
181,529
mysql fresh install asking for root password
A couple of years back i tried to install apache, php and mysql on my mac. I got it all working but in the end i got fed up of doing everything on the command line so switched to mamp Now I'm fed up with the sluggishness of mamp and want to get better at using the command line. I'm trying to set it up my self (well, wi...
The problem was I didn't have a root user to reset the password of to fix do: Shell: /opt/local/share/mysql5/mysql/mysql.server stop /opt/local/share/mysql5/mysql/mysql.server start --skip-grant-tables mysql: user mysql; insert into user (Host, User, Password) values ('localhost','root',''); update user set Select_priv...
4
3
54,744
2010-09-15T18:35:53.753
database_errors
serverfault.com
183,125
SAMBA + LDAP problem
I cannot get LDAP + SAMBA working ... I changed all the important files, but it seems that Samba does not even contact LDAP server. Whenever I would like to use smbclient, it writes: [CODE] important changes pam.d [CODE] important changes nsswitch.conf [CODE] test directory, smb.conf: [CODE] I'm using tcpdump on ldap s...
Had you rebooted or restarted Samba or LDAP after the config changes? If not, the daemons wouldn't have read the changes to the config files yet, so were still running under the old config.
0
0
489
2010-09-21T11:13:01.137
infrastructure
serverfault.com
220,725
I only have backup of a TDE encrypted SQL Server database--can it be restored it to another server?
My situation is little weird--I have no access to the source database server, but I do have the database backups of a database that is encrypted with TDE. When I restore it to another server, I am getting an error about the certificate. I cannot access the source master database. How can I restore the encrypted databas...
The primary purpose of TDE is that someone can't just take the backup or database files and start up the database on another server. Accordingly, the answer is no, you cannot restore it without restoring the certificate that was used to encrypt it.
3
3
208
2018-10-22T13:25:08.003
database_errors
dba.stackexchange.com
47,173
Unable to select the text from the drop down
i tried to identify the text from the drop down but it displays the error. [CODE] i tried with [CODE] but every time during my automation run i have to create the new text due this the index and value is changed due to this selenium is unable to locate the element. i tried clicking the drop down it worked but selecting...
try [CODE]
1
1
861
2021-03-26T05:58:41.550
data_quality
sqa.stackexchange.com
275,346
pgBouncer - multiple servers with same username but different password
I have an active pgBouncer setup with one PostgreSQL server. We are planning to add one more PostgreSQL server to the same pgBouncer. But the problem is that both databases servers have the same username, but with different passwords. Server1: user: admin password: admin123 Server2: user: admin password: admin@213 This...
There is a good workaround at the link in your question. Another thing you can try is to use [CODE] and [CODE] with pgBouncer so that it fetches the password from the respective database. I am not sure if that works or if pgBouncer caches the password for each user.
0
0
1,429
2020-09-11T05:47:10.473
database_errors
dba.stackexchange.com
484,123
If I want to run an application in Linux without using a package manager, is my only option to compile it from source?
I have 2 side projects I'd like to complete at work: Enable wiki users to authenticate against the corporate Active Directory (LDAP) server. Setup a code review tool for my dev team. Here's the problem. The Linux server where the tools will reside has a version of PHP that doesn't have LDAP compiled in and the Apache S...
The reason why you don't find the Windows model of software distribution nearly as prevalent is because of binary compatibility and library versioning. You can design a build process that compiles the software on any number of platforms (by autodetecting the necessary build tools) far more easily than you can support X...
0
2
164
2013-03-02T20:17:07.213
infrastructure
serverfault.com
985,736
Getting CA signed SSL certificates for Windows servers on internal network
I'm hitting a wall here so need some help. I am currently involved in a project that will require use of a third party software installed on one of our internal servers. The software in question will be responsible for managing range of mobile devices in our warehouse and production areas. The problem is that the softw...
how do I get a CA signed SSL certificate on windows servers without any access to internet Install an internal Microsoft CA Issue the certificates Ensure the system with the application trusts your internal root/issuing CA Even if you were to use an external issuing CA, it's very common to not have Internet access. In ...
1
0
768
2019-09-26T13:36:02.510
api_errors
serverfault.com
717,320
Empty /var folder on FTP client even though there are files in there
I recently created a VPS server with OVH (running CentOS 7). I have installed the basic LAMP stack (without the L), as well as SSH and FTP, on a fresh install of the VPS. The FTP is what I am having trouble with. The first time I tried this, I could connect using FileZilla and browse to the /var/www/html folder and upl...
OK, I feel mixed emotions right now. After uninstalling vsftpd and installing proftpd, then uninstalling that and mucking around with a whole bunch of stuff before finally reinstalling vsftpd, I finally... Was still a getting an error. But it was a different error: everything was blank. No files. Nothing. I was very co...
-3
0
1,207
2015-08-27T18:31:40.153
infrastructure
serverfault.com
149,736
How do you use JavaScript?
I'm not a professional programmer, but having a PhD in an engineering field, I've taught myself many programming languages over the years. The past few years I've been using primarily Ruby, and now I'm trying to learn JavaScript so I can do a bit of web programming. I guess like a lot of people, I had a mostly negative...
The only paradigm JavaScript doesn't readily lend itself to is an overly locked one. One of the things I find most offensive about Java, for instance is this idea that everything must originate with classes, that each class is in one file, that there is an impregnable barrier of encapsulation between your code and the ...
4
4
743
2012-05-23T00:06:33.770
api_errors
softwareengineering.stackexchange.com
450,151
How to balance "Draft capabilities" in Clean Architecture: handling Partial Models and Database Integration
I have an app with "clean architecture" classic layers: Ports (such as HTTP, GRPC, GRAPHQL resolvers) Services (CRUD methods and others) Adapters Domain My app has of course multiple "models" such as: Player id: String (mandatory) firstname: String (mandatory) lastname: String (mandatory) age: Number (NOT mandatory) mo...
The trick here is to change your perspective about what "invalid state" means. A player in the "draft" state is perfectly valid with no name. This is invalid for a (active, published, official, current, complete, submitted... whatever your non-draft status is) player. From a domain model perspective, the transition fro...
0
2
68
2023-12-16T17:25:58.793
api_errors
softwareengineering.stackexchange.com
57,916
bias and variance trade off related question
I am having difficulty to understand the expected squared errors formula in this website : $y=f(x)+e$ true regression line $\hat{y}=\hat{f}(x)$ your estimated regression line $error(x)=\bigg(\mathbb{E}[\hat{f}(x)]-f(x)\bigg)^2+\mathbb{E}\bigg[(\hat{f}(x)-\mathbb{E}[\hat{f}(x)]\bigg]^2+var(e) =bias^2+variance+\text{irre...
The bias of an estimator $\hat{f}(x)$ of $f(x)$ is by definition : $$Bias(\hat{f},f)(x)=E[\hat{f}(x)]-f(x)$$ which is some definite (not-random) function $\phi(x)$ . Why this is so? The intuitive way to understand it is that estimation itself is a random process . Given random data will produce a random estimation . Ho...
7
1
252
2019-08-21T03:35:07.247
data_quality
datascience.stackexchange.com
930,625
Log rotation not happening with cron job- files are symlinked and forceful log rotation works
I am facing issue with logrotation with 2 of my custom files. The folder where they reside - [CODE] is symlinked to [CODE] cron.daily log which picks up logrotate: [CODE] But logrotate status never updates the file times (this time was when I did the logrotation forcefully using [CODE] ): [CODE] [CODE] This is my logro...
logrotate.d is configuration structure, I.E. not the actual configuration. The files in [CODE] still need to be referenced by [CODE] . This line looks like [CODE] or similar. So if you add the appropriate extension to your file it will probably be included. See the logrotate man page for more information.
1
0
982
2018-09-12T18:54:46.433
infrastructure
serverfault.com
1,122,119
OneDrive on RDS Windows stuck listing folders and files
This is a bit awkward because I've already wasted tons of hours with no result, this is my last chance. Problem OneDrive sometimes (90%) is stuck on loading folders and files, but just listing them. Sometimes crashes "explorer.exe" when it's stuck. You can see the "Cloud" icon appear very slowly. Hardware (Dedicated VP...
After long checking my server with a Microsoft Engineer, the only way to solve this problem is reading the official documentation about OneDrive. This LINK and the next image shows that we can only configure nine (9) OneDrive for Work or School accounts in one host. That makes me get crazy, because Microsoft allow us t...
3
1
755
2023-02-06T13:06:07.293
api_errors
serverfault.com
260,331
wget has different response times for same fetch
Any ideas why one fetch would fetch a file (big picture in this example) fast while another fetch would fetch same file slow? Not seeing this issue at home. Not seeing this issue through ip addresses they map to 192.xx.xx.xx. Only seeing this issue when the ip is a public ip yet is going through the internal company ne...
Any ideas would be helpful. Your internal company network is shared with other people whose activities may cause occasional congestion. If there is a network manager, she may be able to identify the cause of the problem.
1
1
166
2011-04-16T02:51:46.977
infrastructure
serverfault.com
773,727
Error while migrating from Exchange 2010 to Exchange online (O365)
I am migrating our public folders from Exchange 2010 to exchange online. I followed Microsoft's guide: https://technet.microsoft.com/en-CA/library/dn874017(v=exchg.150).aspx The migration went well for all public folder except one. This is the error I get: 28/04/2016 20:52:19 [BN3PR11MB0225] Public folder could not be ...
Seems like you are on the right track. Microsoft has published a KB on this issue here: https://support.microsoft.com/en-us/kb/3050726 From the KB Mail-disable all public folders that are mail-enabled in the NON_IPM_SUBTREE folder. For more information about how to mail-disable a public folder To locate the system publ...
1
1
5,120
2016-04-28T21:21:31.357
api_errors
serverfault.com
371,764
linux renames folders automatically
I have a file server with ubuntu installed It is accessed usually through smb either from pc (ubuntu) or laptop (windows 7) Sometimes it happens that folder names on the file server are changing to some meaningless name, like [CODE] or [CODE] The hard disks seem to be fine, and I can´t imagine that samba is messing up ...
Update: It was suggested to try the following fix - add these lines to smb.conf; [CODE] paste the output of this command; [CODE] It kind of looks likes you might be seeing some old school dos naming to 8.3 style name conversions, or even iso 9660 Is any truly old school app opening and closing the files, or alternative...
1
3
681
2012-03-20T22:43:04.460
infrastructure
serverfault.com
217,669
Making my SVN Public
I'm looking todo an SVN checkout on a server so I need to make my local SVN public. I looked into GITHUB, but I'm not willing to pay or let the world see my project. Are there any alternates? Okay so I went through this tutorial: http://www.petri.co.il/setup-ssh-server-vista.htm Had some issues, so I did this: mail-arc...
Given comments on original question; Why not just use svn over ssh ? - That's what i use (hence maybe biased). such as: svn co svn+ssh://your.remote-server.com/home/svn/test
0
0
164
2010-12-31T13:06:26.747
hadoop_errors
serverfault.com
811,933
Why there are only 13 Root Server
Initially, when Internet was just growing up, DNS packet size was use to be only 512 bytes (at max), dns servers was listening only on udp protocol and due to other similar issues; number of Root servers was fixed to 13 numbers so that answer from root server can be put into a single packet of 512 bytes. Now, we are in...
I would think that it's a combination of: There's no actual need to have more (with the hundreds of anycast nodes worldwide for the 13 root server entries) This allows continued compatibility with old non-EDNS0 clients
1
7
5,661
2016-10-28T17:16:06.193
infrastructure
serverfault.com
14,058
Liveness Probe through C# code giving error
I am trying to implement liveness probe through C# code (.Net core framework). I simply want to run a curl command inside container like this . Below is the code snippet using kubernetesClient : [CODE] But getting this error in pod description: Liveness probe errored: rpc error: code = Unknown desc = failed to exec in ...
You need to provide commands in list. Something like below: [CODE] Since you already an endpoint for healthcheck, you should use [CODE] instead of [CODE] . In your case, [CODE] will always give exit status as [CODE] and thus liveliness check won't be correct if your app throws any errors or down.
0
1
245
2021-06-02T15:15:40.210
pipeline_ops
devops.stackexchange.com
237,600
Migrating mysql 4 to mysql 5
This seems to me to be a common use case, so I'm surprised so little information is about it, so sorry if it's a duplicate, but I have searched. :) I'm migrating a clients website from one CMS to another, and of moving to newer faster machines all at the same time. As a part of this I'm moving a MySQL database from the...
The import succeeded after I changed all [CODE] to [CODE] . I don't know if that change is correct or not, but I guess we'll see...
1
0
830
2011-02-19T12:09:20.923
data_quality
serverfault.com
757,587
Prevent MAILER-DAEMON NDRs from deferring in Barracuda
[CODE] All spam firewalls only work so well, and unfortunately some spam will come through. Incoming spam will often attempt to send messages to invalid addresses on a valid domain. Zimbra reacts by trying to send a Non Delivery Report to the malicious sender (who spoofs an invalid address/domain). Barracuda cannot est...
You can try to reject emails to invalid recipients at the spam firewall level or at mta. Barracuda spam firewall offeres Recipient Verification using different methods (LDAP Lookup, Explicit Users lists to Accept For). And also: What methods of recipient verification are available on my Barracuda Spam Firewall? How do ...
1
1
2,974
2016-02-16T17:24:08.710
infrastructure
serverfault.com
18,189
Can't get Python with cx_oracle to connect outbound to Oracle server
When I inherently go to make the connection from the python app inside the docker file I get .. I can ping and nslookup from indide the docker container from the terminal....so I'm a bit confused.. 2023-08-12 01:30:45.665974(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST='host.host.host')(PORT=1521))(CONNECT_DATA=(SERVICE_NA...
Your problem in this case is very clear.. 2023-08-12 01:30:45.665974(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)( HOST='host.host.host' )(PORT=1521))(CONNECT_DATA=(SERVICE_NAME='ADMTST')))DPY-6005: cannot connect to database. Connection failed with "[Errno -2] Name does not resolve" Whatever that code is being called (in pytho...
0
0
129
2023-08-12T01:42:09.733
pipeline_ops
devops.stackexchange.com
615,483
Redirect every request to FastCGI script
I have a FastCGI script which I want to every request to be redirect to it, no matter which URL. My current vhost configuration is the following: [CODE] If I open the URL [CODE] on my browser I successfully see the page rendered by the CGI script. But if I try any other page I get an error 404 page from Apache , which ...
I don't understand why, but it worked after I changed: from [CODE] to [CODE] Also, I cleaned up my [CODE] just to make things more pretty (removed the check for existing files and directories): [CODE] If someone understand why it worked, please explain at the comments or somewhere else. I sincerely think that Apache co...
1
1
1,004
2014-07-25T13:37:14.007
api_errors
serverfault.com
230,785
Why is my page load time so closely correlated with number of database queries?
Whenever I'm doing web development, and a page takes longer than half a second to be generated, I know that somewhere my code is hitting the DB too many times. The normal way to fix this situation is to ask the DB for all the information all at once instead, by doing JOINs and the like. My question is: Why do many data...
I've profiled a number of applications and I have found that: Creating a database connection is usually the most expensive operation (between 700-1500+ ms on many major databases) On the database server, most simple queries like you listed in your question take very little time to execute (between 1-20ms measured on th...
0
2
415
2014-02-28T12:42:54.043
api_errors
softwareengineering.stackexchange.com
371,228
How to turn off Windows Azure's "This copy of Windows is not genuine" message?
Is there any setting/configuration item to avoid Windows Azure from printing that error on the screen or detecting it? I've put a screenshot below that shows the message when you RDP into the web role. My web role runs on Windows Azure Guest OS 1.17 (variant of Windows Server 2008 SP2) Background: I was explaining our ...
I'm pretty sure this only shows up with OS family 1 (Windows Server 2008 SP2). If you were to change [CODE] (Windows Server 2008 R2) in your ServiceConfiguration.cscfg and update your deployment, you shouldn't see that on the desktop. This is where the setting lives: [CODE] I just double-checked this with a few of my d...
11
3
2,062
2012-03-19T16:51:35.943
infrastructure
serverfault.com
148,952
Handle concurrency on Sql Server to modify specific column
I have table that suffers from racing condition and I don't know how to fix it. I can't solve it 100% in code, so I need the server to help me. The scenario Admins of a system may accept or reject an appointment. This can be done by email (via token etc) or by logging in the system and doing it via admin panel. The pro...
We had a similar requirement and so added an extra where clause to the query. E.g. [CODE] Then afterwards, check how many rows were updated. If there were 1 rows updated then report back to the user that their action was recorded. If 0 rows were updated then report back to the user that someone else has already done th...
2
4
305
2016-09-06T19:39:28.670
database_errors
dba.stackexchange.com
117,194
Differences in OvO SVC decision_function and predict methods in Scikit learn package
I have observed that there are differences in the implementation of the decision_function and the predict methods the one versus one multi class implementation of SVC in the sci-kit learn package. Is there a way to align this issue or is this indeed a bug in the implementation? I was solving a multi classification prob...
It is expected that the [CODE] and [CODE] methods of the [CODE] class in scikit-learn may give different results in cases of ties. This is because the [CODE] method returns the distances of the samples to the decision boundary for each class, while the [CODE] method returns the class labels themselves. The [CODE] metho...
0
1
162
2022-12-20T14:53:11.053
data_quality
datascience.stackexchange.com
273,896
Postgres 11 - Range Partitioning on a Date Column with NULL values
We have a table structure with parent and child records inside the same table. They are referenced via a column ( parentId ) which references the parent (and null on the top parent records). Also, we have a requested date column we do all of our querying by but the only records which have a value for this are the paren...
PostgreSQL 11 allows you create a default partition for range-partitioned tables, which will receive the NULL values. You can add a check constraint demanding the column be NULL, if you want to prevent other rows not covered by existing partitions from going into that default table. [CODE]
3
8
3,491
2020-08-17T20:24:42.050
data_quality
dba.stackexchange.com
68,129
How to include a semicolon (";") in a MySQL pager command
I've just discovered the [CODE] command in the MySQL command-line client, and I'm having a tonne of fun. This blog post is great: http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/ Unfortunately as a Perl programmer I find myself wanting to do more and more complicated pagers, ...
Try to set delimiter to something else than [CODE] [CODE] Then you can set pager with the semicolon: [CODE] Then you can come back to [CODE] [CODE]
1
3
1,794
2014-06-12T09:56:29.373
database_errors
dba.stackexchange.com
78,567
MySQL (phpMyAdmin): #1045 - Access denied for user: 'root'@'localhost' (Using password: Yes)
I'm getting the following error: [CODE] What is the problem?
Just in case, please ensure a few things: You are connecting from the localhost. Both phpmyadmin and mysql need to be running on the same server. If they are on different servers, the localhost connection will not work. You have supplied the correct passwords for the root user.
0
1
4,679
2009-10-27T02:34:45.170
database_errors
serverfault.com
198,090
SSIS | unable to complete login process due to delay in opening server connection
I have deployed 2 SSIS package on a server. both fetches data from an Azure SQL Server. Both Packages have one execute SQL task and one for each loop container. for package one, execute SQL task returns an object which has 2 columns and in case of package two, it returns an object which has 4 columns. The problem is i ...
you could use script select @@SERVERNAME; to verify the server is local or not, for remote server, it sometimes has connection issue.
1
0
1,300
2018-02-16T07:24:27.623
database_errors
dba.stackexchange.com
1,062,044
Why is My Istio EnvoyFilter with TCP Idle Timeout Setting not working?
I have created an EnvoyFilter to apply TCP idle timeout to outbound requests. Here's my filter configuration: [CODE] The istio version is [CODE] , the envoyproxy version it uses is [CODE] . I was successfully able to create the filter but it does not seem to have any effect. I checked istio config dump but I couldn't f...
Oke, so after my investigations I have no other choice but to agree with the two already given answers ( link1 link2 ) and unfortunately state the same.. Seems the only option for you to use [CODE] - is to upgrade your Istio to the latest version. Hard decision, I would also think million times before touching somethin...
2
2
1,421
2021-04-29T16:43:27.813
infrastructure
serverfault.com
539,956
CentOS 6.4 running Asterisk 11.5 with high load, low CPU/memory/disk IO
I have an Asterisk server doing automated calls and I'm noticing an unexplained high load in it. The server is only running Asterisk. Database and other support applications run in a different machine. What can be causing this high load? If the load gets too high for too long (over the maximum of 8) there is a drop in ...
Maybe its too late to answer to this, and may be the reason is not the same one as in my case. But I also abserved such high CPU load when updating my asterisk 1.8 to asterisk 11.5 (on Fedora 14 to Fedora 20), but keeping my old configuration file! In asterisk.conf, the line: ;console = yes ; Run as console (same as -c...
0
1
6,451
2013-09-18T15:31:25.927
pipeline_ops
serverfault.com
961,485
ZFS on iSCSI devices (with Encryption?)
I own an old NAS (Buffalo TeraStation Pro II) with four 500GB Samsung HD502IJ SATA drives. On the NAS i installed Debian 9. The NAS is pretty old and consumes a lot of engergy already without any HDDs connected to it. Therefore i plan to use it just as a Server for storing Backups, which will be disconnected from power...
None of this is a good idea for ZFS. The slow CPU, limited RAM and desire for encryption and heavy compression will make this a very ineffective system. I would not pursue ZFS on this server.
2
1
315
2019-04-04T11:43:36.630
database_errors
serverfault.com
106,454
sp_cursoropen and parallelism
I'm running into a performance problem with a query that I can't seem to get my head around. I pulled the query out of a cursor definition. This query takes seconds to execute [CODE] The actual execution plan looks like this. Noticing the server wide setting was set to MaxDOP 1 I tried playing around with maxdop settin...
[CODE] cursors do not support parallelism (though the server generating the plan would need to be 2012 or above to get [CODE] as part of the showplan XML). When you specify [CODE] , the optimizer chooses between [CODE] and [CODE] for you. The provided execution plan shows the optimizer choosing a static-like plan. Beca...
15
21
3,187
2015-07-09T13:23:09.837
database_errors
dba.stackexchange.com
133,267
Linux partitioning problem
I am using cfdisk to repartition my hdd as from OS install I only got 1 big partition a swap. I wanted to resize the big partition to 1 GB /boot and use the rest of the space for an extended partition. After I do cfdisk, I recheck the partitions with fdisk -l and I get these: [CODE] My problem is the Warning message, I...
Why would you want a 1Gb [CODE] ? The only things that go there are kernel and and grub files. Unless you are keeping 100's of kernels 100Mb [CODE] is good enough. As far as the message goes, did you reboot after resizing it?
0
1
175
2010-04-17T00:17:38.770
infrastructure
serverfault.com
55,999
Oracle: TRUNCATE sometimes takes ages
Usually, truncating a table takes 5-10 seconds. But when several people work on the same DB instance (but different tables), the operation can take more than an hour. How do I debug this?
Locks on the table or on data dictionary resources used by the 'truncate table' command could cause this. The system could possibly be waiting around for a resource to be released before it can do the truncate. Check whether the session is blocked waiting for a lock to be released. Take a look at the queries described ...
1
4
4,260
2009-08-19T09:55:28.163
database_errors
serverfault.com
72,528
Should I install AntiVirus software on a Windows web server?
Possible Duplicate: Do you run antivirus on your Windows servers? I see a couple of existing questions on this with apposing viewpoints: Do you run antivirus on your Windows servers? Should I install antivirus into windows server 2008? For a virtualized Windows 2008 Server R2 running as a public web server with IIS, sh...
NO, you should not install antivirus software on a web server, at least not as your first choice. You should install a Host Intrusion Detection System (HIDS) like Samhain , Tripwire or the like. The question is a duplicate of this older question , please see my answer there. The gist of it is that HIDS has a better det...
4
3
9,791
2009-10-08T13:33:43.563
data_quality
serverfault.com
927,267
Windows 2016 File Server - NTFS Permissioning issues
We are migrating 4 shares from NetApp to Windows 2016 File Server using following Robocopy command. 'Share Perms' on both sides are 'Everyone, Full Control' and expecting Robocopy to copy over 'NTFS Security Perms' . NetApp is in Production, working well and we need to keep same access/permissions. Permissions are supe...
/COPYALL switch is actually /COPY:DATSOU which is Data, Attributes, Timestamps, Security, Owner, and Auditing. The (S)ecurity is actually the NTFS ACLs. So if you want everything but the permissions, remove the S, /COPY:DATOU ; else remove the /COPYALL switch entirely which defaults to /COPY:DAT
0
1
821
2018-08-21T00:34:30.623
infrastructure
serverfault.com
819,900
How do I prevent other unwanted DHCP servers?
I have a network with a DHCP server and RADIUS authentication. Clients connect to my network, get a DHCP address, enter the signing in page, input their prepaid cards, and get to the Internet. We sometimes see some clients (was once malicious) connect a router to one of my Access Points and they don't disable DHCP func...
You can't prevent someone from activating DHCP, but you can set up your RouterBoard with 'Rogue DHCP Detection', and either alert you when that occurs, or (with additional scripting / automation) programmatically block their switch port or Wifi access. On your DHCP server, the alert would look like: [CODE] See http://w...
2
0
2,648
2016-12-09T23:27:27.320
api_errors
serverfault.com
150,926
Two routers, one off-site, same ISP-assigned static IP. A recipe for conflict?
This is the situation I've inherited: There are two routers, one off-site. Both are connected to the ISP. The ISP assigns both of them the same static IP (or so it seems). Presumably, the network problems we're having are related to the idea that you can't have two instances of the same IP. So we rang up the folk off-s...
This does not work - two routers with the same IP in the same ISP network would not be something to keep apart, unless the router is only in a pass through scenario - and then the "one off site" means to me they are not replacable (as you have cross traffic if a packet goes to the wrong side). While it may be workable ...
1
1
499
2010-06-14T05:01:55.747
infrastructure
serverfault.com
516,480
Grub2 w/ RAID5 and btrfs "error: unknown filesystem"
I have a Virtual Machine (in ESXi 5.1) running Ubuntu Server 12.04. When I try to boot my system I grub2 tells me "error: unknown filesystem". I've tried booting a Live CD then reinstalling grub from both a chrooted environment and by supplying the --root-directory option. I've even tried a boot-repair CD (results here...
Grub can't actually boot from anything but a raid 1 or raid 0 mdadm device. You will need to add a /boot device somewhere and just set that up in raid 1/0/raw. I would do something like this the 2 new volumes below {a,b} can be file backed but should be on separate physical disks. [CODE]
0
1
1,236
2013-06-17T21:40:07.647
infrastructure
serverfault.com
179,972
Inserting documents via standalone connection to MongoDB replica set
I have a MongoDB standalone server, which I am converting to a replica set by adding other servers. However, some clients are still connecting to the original server without specifying any other servers or the [CODE] parameter in the URI, and some of these clients insert new documents. What happens to the documents tha...
As long as your clients are connecting to the current replica set primary they will be able to work with documents as usual and those writes will be replicated. This is useful as a transitional approach when upgrading a standalone deployment to a replica set. However, without a replica set connection string your client...
1
1
333
2017-07-17T04:19:08.167
database_errors
dba.stackexchange.com
871,810
avoid zombie processes when using at
I'm using at to schedule a script in a Centos based Docker container. e.g. [CODE] It mostly works as expected with the exception being that it results in a zombie process every minute. I'm guessing the behaviour is related to this line in the docs: The at-job is executed in a separate invocation of the shell, running i...
I forgot to post back that I worked around this by just using cron. [CODE] See https://stackoverflow.com/a/9625233/400048 Note, if running in Docker you need to start crond.
1
0
436
2017-09-02T23:04:49.030
pipeline_ops
serverfault.com
1,088,046
Bind: Zone not loaded due to errors
I'm very new to this and I have been trying to set up a DNS server but I'm keep getting the following error when I type systemctl status named.service: zone 30.168.192.in.addr.arpa/IN: not loaded due to an error _default/30.168.192.in.addr.arpa/IN: no owner I have followed this video step by step, but I still get the s...
What you currently have is [CODE] That looks nicely lined out but is incorrect. There is no name before the SOA record. That should be [CODE] Where the @ is zone file shorthand. It will be replaced by the name of the zone, or whatever zone name you would set in the $ORIGIN variable. Then there are several other things ...
0
0
2,860
2021-12-23T06:26:45.417
infrastructure
serverfault.com
909,642
Egress data google cloud platform tracking
I have recently started using Google Cloud Platform. I am looking into making a vpn service with it. I have created an obfuscated OpenVPN server with it running on port 443. The only problem I have with that is the egress data usage. I have given it to a friend to test for now as I am operating on the free credit. I am...
If the two peers authenticate themselves properly, then there is no risk of being hacked in a way. Note that there are some requirements from Google side, to establish VPN tunnel, that need to be met. You still can check that information in your Console, under Logging, selecting Cloud VPN Gateway.
0
0
416
2018-04-26T22:19:50.687
infrastructure
serverfault.com
19,405
Implementation of Gaussian Mixture Model for clustering when dealing with multidimensional hyperspectral data in python
I have a python numpy array of size (800,800,4) which is my hyperspectral camera data. When I try standard GMM methods from scikit-learn I get an error saying that the expected dimension of the data should be less than or equal to 2. Current method: gmm=GaussianMixture(covariance_type="full") gmm=gmm.fit(data) Are ther...
If I understand your type of data correctly, what you have is essentially an image with $800\times800 =640000$ pixels and each pixel has a vector of 4 values. If this stands, I suppose you could then transform your data to a $640000\times4$ matrix, so as to conform with scikit-learn's data representation schema of inpu...
1
3
5,937
2017-06-01T20:47:59.267
data_quality
datascience.stackexchange.com
233,883
Postgres is Throwing a False Foreign Key Constraint Violation?
I am trying to delete a LocalTax record from Postgres. Currently, I don't think there are any Employee records that reference the LocalTax in question (8). [CODE] However when I try to delete the LocalTax, I get the following foreign key error: [CODE]
Thanks to @a_horse_with_no_name I realized that my employees table had a second foreign key to the local_taxes table by a different name. The there were entries in employees.school_district_tax_id that corresponded to the local_taxes table that needed to be removed.
-4
1
2,434
2019-04-03T20:19:22.020
data_quality
dba.stackexchange.com
789,862
Posfix: SASL authentication failed (unbuntu/office 365)
I'm unable to get postfix to work with our office 365 mail. here's the main.cf file: [CODE] And here is the error from mail.log: [CODE] Things I've done: I used this tutorial to configure postfix with 365 I've verified the username and password are correct in /sasl_passwd I've tried adding smtp_sasl_mechanism_filter = ...
I've managed to figure out the problem. The account inside of Office 365 was a shared mail account. After my client switched the account to a normal account, we reconfigured postfix and everything worked fine.
1
1
2,941
2016-07-14T16:11:02.727
api_errors
serverfault.com
350,506
IIS7 HTTP Redirect - Change Site1 Content and Removes Site2 Redirect
We had two sites setup in IIS7.5 for a long time. They were named (not real name but you get the point).... "domain.com" and "www.domain.com" The purpose was to set "HTTP Redirect -- Redirect requests to this destination" setting to " http://www.domain.com " and checkbox == true. Last week I applied Windows Updates to ...
If both sites share the same physical path, they also share configuration by design. Configure the physical path of the "domain.com" site to some empty folder on which the "Anonymous" identity ( [CODE] by default, otherwise the application pool identity) has access to read and execute, and then reconfigure your http re...
1
1
176
2012-01-17T03:29:39.110
api_errors
serverfault.com
930,368
HSTS and double redirect
I manage a little website in a shared hosting LAMP environment: this basically means the only thing I can edit is an htaccess file. I wanted to add HSTS support (and I did it), but, when I tested my website here for HSTS preload eligibility, I got the following error: Error: HTTP redirects to www first [CODE] (HTTP) sh...
As noted on the HSTS preload list submission requirements : Redirect from HTTP to HTTPS on the same host, if you are listening on port 80. You need to redirect to the same host (ie. [CODE] ), not simply to [CODE] first. You don't need to redirect to [CODE] if the user is requesting [CODE] directly. (The test will invol...
9
10
2,823
2018-09-11T07:19:23.803
infrastructure
serverfault.com
1,094,474
Debian 9: What powered off my system?
For a day or so I've been trying to figure out what is powering off my system. It's Debian 9 running on a Beaglebone Black, and 5 minutes after power up (give or take a few seconds) it powers itself off. Some piece of software asks it to, and I can't find out what. I've renamed /sbin/poweroff and /sbin/shutdown, they'r...
It turns out /var/log/auth.log told me the answer. [CODE] Embedded system watchdog. Beaglebone Black doesn't bring "reset" to the connectors, so it uses the power button signal to cycle power.
0
0
444
2022-02-22T18:00:22.717
infrastructure
serverfault.com
441,716
After creating a mysql user with all privileges, the user cannot create databases in phpMyAdmin and only sees information_schema table
This is a recurring problem for some reason... Using mysql 5.5, I am simply trying to create a user that can connect to the database remotely, have access to all databases, and create databases. I have created a user using: [CODE] then granted all permissions using: [CODE] and the result is that the user cannot create ...
I think the problem might be that you're using phpmyadmin from an address that doesn't match 192.168.% ? Maybe you're connecting locally and using localhost to connect. You can verify this by setting different passwords for 'dev'@'%' and 'dev'@'192.168.%' and see which one works through phpmyadmin. Make sure that the u...
1
0
2,062
2012-10-24T10:47:28.313
database_errors
serverfault.com
134,254
Updating a table with a not-joined query
I'm using Access and have a task that I want automated using an query. I have a table ( IncentiveAssignments ) that lists out all of the Gift Card numbers ( GiftCode , all are unique) I currently have along with the people I've given them to ( PersonID , all are unique). Not all of the GiftCodes have been assigned a Pe...
You can either run the following as many times as it takes to get zero rows updated: [CODE] And then run the following to clear all assigned persons: [CODE] Alternatively, you can use a couple of transient tables: [CODE]
1
2
34
2016-04-04T03:56:16.740
data_quality
dba.stackexchange.com
187,298
SELECT TOP 1 from a very large table on an index column is very slow, but not with reverse order ("desc")
We have a large database, about 1TB, running SQL Server 2014 on a powerful server. Everything worked fine for a few years. About 2 weeks ago, we did a full maintenance, which included: Install all software updates; rebuild all indexes and compact DB files. However, we did not expect that at certain stage the DB's CPU u...
The Clustered Index Scan shows 423,723 logical reads to return the first row, taking 1926 ms: This seems rather a lot to locate the first row in index order. Most likely your ghost cleanup task is running a long way behind, or has stopped. You should check the [CODE] for the clustered index in [CODE] and monitor change...
17
18
7,435
2017-09-29T17:40:51.103
database_errors
dba.stackexchange.com
629,208
openldap allop overlay configuration
I'm having trouble getting the allop overlay to work. I suspect I'm missing some vital configuration option or that I've done something incorrectly. Any help is greatly appreciated. I need to use allop to get a cisco device working with ldap using the memberOf attribute. I've already got the memberOf overlay working co...
You don't mention it in your configuration, but have you got the 'allop-URI' option configured? If left blank it will only return operational attributes for [CODE] - that is, a base of "" and a scope "base". You will need to specify a pattern for which it should return the operational attributes, such as [CODE] Note th...
3
1
533
2014-09-17T13:09:31.793
infrastructure
serverfault.com
937,945
Jenkins unable to get ssh-agent to work, looks for a missing askpass_*.sh file
I installed the ssh-agent before and had everything working nicely with an ssh key that has all the proper permissions for cloning repos from a github project, but now after setting up another instance of Jenkins (as closely as I could, I didn't clone it when I should have), I get the following error: $ ssh-agent SSH_A...
Stupid error message for a stupid mistake. In the credentials, the public ssh key was used instead of the private ssh key.
0
1
5,255
2018-10-30T20:50:20.830
pipeline_ops
serverfault.com
253,591
Cannot reverse tunnel between my local machine and my open solaris server
I want to reverse tunnel connection to my SunOS (Joyent) so that any connections coming to 12043 on this server will be served by my local development server running at localhost:8843. Edit : I don't know why but SO is not formatting my post properly (damn). Any experienced guy please help edit my post So here what I d...
Try replacing 0.0.0.0 with the IP you actually want the connection to be forwarded to . E.g.: [CODE]
0
1
450
2011-03-30T09:55:27.653
infrastructure
serverfault.com
812,902
How to change Azure RM deployment name when deploying through Azure Portal link?
When deploying a template through Azure Portal , i.e. by following the link: [CODE] All deployments created this wah are named Microsoft.Template (and subsequent ones Microsoft.Template_1 , Microsoft.Template_2 , etc.) in the Deployments section of the portal: Is it possible to customize the name (either by modifying t...
I do not think this is possible from the Portal. I tested modifying the URL in the portal, and also after validation. If you modify the URL the portal redirects to the Marketplace. https://portal.azure.com/#create/ test /uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fvm-disk...
0
0
1,783
2016-11-03T07:43:13.680
pipeline_ops
serverfault.com
161,023
How to deal with slow HTTP clients?
Every now and then a bunch of really slow HTTP clients decide to suck down pages off my web site. This is bad because when enough of them do this, it dramatically lowers the number of free Apache processes available to handle requests from the rest of the world. I don't know if it's some lame DDoS attack or just really...
If it was a DDoS attack you would seem many such connections from multiple locations. You don't give any stats in your question so we can not really judge. If many of the slow requests are coming from the same location, especially if they are for a large object, it could be that you have people opening many many connec...
1
1
1,788
2010-07-16T07:32:53.130
infrastructure
serverfault.com
40,492
Relational vs Non-Relational Database for Events Database
I'm trying to find out whether an SQL or no-SQL solution would be better for creating an events database. I'm creating a ticketing system, similar to ticket master. I know that for either database-type storage is the simple part. The deciding factor is the performance of the following queries: Select events by location...
This seems a little outside the scope of a StackExchange question. However..... NoSQL databases are, typically, build to resolve specific issues with the relational model. The most common issue addressed is scalability. However, because they're all designed to address different aspects of certain problems that some app...
10
11
5,123
2013-04-19T23:43:31.343
database_errors
dba.stackexchange.com
101,829
Dell t610 and Windows Server2008R2
I have this new server dell powerEdge t610, I am trying to install Win2008R2 but the installation process is being blocked by a missing driver and the windows setup is asking for this driver without telling me anything about this driver. Its just stop and allow me to brows drives to locate the proposed driver. I guesse...
Dell provide a bootable CD/DVD image you can download and boot from, which will preload all the required drivers, and only then ask for the windows CD. This is the preferred way of installing on OS on Dell (or actually any brand name system). If you want a link to the bootable image, call Dell support - they love easy ...
0
2
3,520
2010-01-12T07:40:29.053
infrastructure
serverfault.com
159,668
Database-stored configuration management
Developing database-backed software, often one finds it convenient to store stuff in the database which one might traditionally express in code, but which is useful to store in the database (so that it can be changed without requiring a reload of the application). For instance, one might have processes which send autom...
If I got you right, you have data which may be edited by your users (at least, to some degree), but this data is "required for the correct operation of the system" and "if it becomes malformed or missing, the underlying functionality would probably stop working". There are some things you can do here: forbid your end u...
7
6
449
2012-08-06T11:09:42.693
pipeline_ops
softwareengineering.stackexchange.com
147,374
Composite foreign key that is optional
I have a table with a composite foreign key like so: [CODE] The foreign key may or may not exists, therefore [CODE] to [CODE] may be [CODE] , however if so, they should be [CODE] all at the same time. Is there a better way to specify such an "optional composite foreign key" than to add a (rather verbose) constraint lik...
You can try with: [CODE] From the manual : A value inserted into the referencing column(s) is matched against the values of the referenced table and referenced columns using the given match type. There are three match types: MATCH FULL, MATCH PARTIAL, and MATCH SIMPLE (which is the default). MATCH FULL will not allow o...
3
2
1,706
2016-08-20T05:52:30.337
data_quality
dba.stackexchange.com
192,893
How can I identify which processes are generating UDP traffic on Linux?
My machine is continously making udp dns traffic request. what i need to know is the PID of the process generating this traffic. The normal way in TCP connection is to use netstat/lsof and get the process associated at the pid. Is UDP the connection is stateles, so, when i call netastat/lsof I can see it only if the UD...
Linux auditing can help. It will at least locate users and processes making datagram network connections. UDP packets are datagrams. First, install the [CODE] framework on your platform and ensure that [CODE] returns something, even if it says that no rules are defined. Then, add a rule to watch the system call [CODE] ...
49
61
75,829
2010-10-20T10:41:12.380
infrastructure
serverfault.com
460,437
FTP issue with Azure VM
I am trying to run a working FTP script on my Azure VM with Server2012. All firewalls are off for this test. Port20/21 is an open endpoint. [CODE] Response: [CODE] As you can see, it has a problem at the MGET command. Ive tried a active command with PORT xx,xx,xxx,xxx,xx,xx but i get an Invalid command after that line ...
I seems the windows FTP does not do passive ftp properly, so I ended up writing my own ftp program in c# forcing passive mode. This is fine.
2
0
855
2012-12-23T15:20:10.057
infrastructure
serverfault.com
244,729
Running multiple copies of openssh-server (sshd) on Ubuntu
I may be attacking this problem the wrong way, if so let me know. I have a server which is available through SSH from both the public internet and the local LAN. I would like to have two very different security policies for each, by running two copies of sshd with two different [CODE] files each on a different port. So...
Start your separate SSH daemons however your operating system traditionally starts SSH daemons: If Ubuntu is using [CODE] to launch sshd these days, create new upstart job that looks like the standard one, only pointing the daemon at your custom config file. If it's using [CODE] & [CODE] scripts copy them and modify th...
1
3
6,351
2011-03-08T15:33:30.483
api_errors
serverfault.com
951,428
Is ZFS L2ARC required if primary data is already on SSD?
I'm trying to tune ZFS on Linux for my workload (Postgres and a fileserver on the same physical machine [1]), and wanted to understand if I really need L2ARC, or not. If the information given at https://www.zfsbuild.com/2010/04/15/explanation-of-arc-and-l2arc/ (written in 2010, when, I guess, SSDs were expensive), is c...
L2ARC is only useful when using a faster than main pool device, and it is only active when you explicitly attach a cache device to the pool. [CODE] clearly reports your L2ARC stats, but obviously only if you attached it to the main pool. If you see no L2ARC stats, it means you have no L2 cache right now. To be sure, pl...
3
5
1,877
2019-01-30T05:42:32.597
infrastructure
serverfault.com
113,194
Using a TFS Build Process Template (Workflow) for Deployment
I'm thinking of using TFS Build workflows for complex deployments. We have some that may need to deploy: Web applications and services Database SSRS Reports SSIS Packages Who knows what else I like the fact that I can give the workflow some basic parameters like which build to deploy and it would just run. Potentially,...
We've used TFS to trigger our builds but used msbuild to build our projects. The main advantage is that we have a build script that we can change an keep under version control. Thing is with workflows e.g. : how are you going to build an older version of your project? With a build script you just get the older version ...
10
1
2,979
2011-10-08T22:11:34.937
bi_errors
softwareengineering.stackexchange.com
988,337
Suggested indexes
I am new to indexing in general and have just started learning about query plans etc. I am working on this one specific query that keeps advising me to create the following index: [CODE] I already have the following index created: [CODE] What i am wondering is, will i get the same result in speed increase if i changed ...
First up, be sure that you're dumping the cached plan for that query in between creating indexes. The nuclear option is to do a cache flush ( DBCC FREEPROCCACHE ) but you can also hunt down the plan handle and just do the specific one. I'd also recommend dropping the non-clustered indexes inbetween experimenting with t...
2
1
212
2019-10-17T06:13:42.280
database_errors
serverfault.com
1,047,719
Impossible to delete AWS backup vault, backup plans?
I swear, I've read all the docs I can find, and have tried everything including the AWS policy generator UI and manually editing policy JSON, but no matter what I try, when I try to delete any of these resources, I just get the big red header with [CODE] It seems like all I should need to do is to explicitly list the a...
In case anyone else comes across this post, as I did, here is the probable solution. AWS EFS, and presumably other services, create an automatic backup using AWS Backup and set it to Enabled by default. This backup plan and vault cannot be deleted. Instead you need to go the the service, e.g. EFS, and disable the Autom...
7
1
5,204
2020-12-27T21:20:13.613
database_errors
serverfault.com
757,399
AZURE Internal Load Balancer: response same VM in CS
I have two Windows VMs on which run two identical services. Service1 on port 80 and service2 on port 8080. These two VMs are in the same cloud service. I configured an internal load balancer between the VMs on port 8080. The service1 must query the service2 on port 8080 through the ILB (8080) so that requests are balan...
You haven't mentioned a probe. If you look here, you can create a tcp or http probe which will only balance load when the server is up and responding to the probe. https://msdn.microsoft.com/en-us/library/mt603847.aspx
2
0
83
2016-02-15T23:03:26.733
infrastructure
serverfault.com
601,960
TCP Server Memory management: #Connections Vs. #Requests
Given that, there is no theoretical limit to number of concurrent TCP connections a Windows 2008 server can handle. Only thing will happen is, with each connection there will be memory consumption in server. Unfortunately, memory is not unlimited (and I want to utilize only physical memory). For example, lets say we've...
There are finite limits to the number of concurrent TCP connections a server can achieve but they are so large they don't really count. Server resources will always be constrained first. The problem with your question is that it is largely dependant on your application, hardware, os configuration and use case. The only...
-1
0
764
2014-06-05T06:55:41.723
infrastructure
serverfault.com
854,520
dovecot mail storage auto detection failed
I setup a new user called sales, and gave it a password. Although it has a home directory, i set login to /sbin/nologin. [CODE] Did i have to initialise the mailbox in the homedirectory? What did i forget. I didn't change anything to the default dovecot.conf, i just installed the package with yum install dovecot (so la...
I fixed this. I needed to uncomment the mail_location in 10-auth.conf i believe to point to the mbox (as it says in the file, because this is a new user there is no mailbox yet. After you also need to change the /var/spool/mail/user to 0600 as you will get a permission. Thanks for your help.
2
6
13,977
2017-06-07T22:04:52.380
infrastructure
serverfault.com
157,736
MySQLdb on Windows
I'm trying to run the simple django tutorial on my windows 7 machine after having just read the python tutorial. But it complains, "django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb". So I find out that I need a module called MySQLdb. However, very surprisingly, this is ...
yes, there is no binaries yet for python2.7 because 2.7 has just released 2 days ago, on 4 July 2010. and the binaries will soon be updated just calm down. you can do your tutorials on django by using SQLite3 as DB backend (the Driver installed by default and it's file-based DB and the django developers like to use it ...
1
2
891
2010-07-06T08:10:49.587
database_errors
serverfault.com
184,265
Will I benefit from SQL Server 2014 In-Memory tables if my tables are already fully cached in-memory?
Our most frequently used database is relatively small (5GB), and as a consequence, our 16GB memory dedicated SQL Server 2012 database server chooses to cache all used tables in memory (Buffer Cache Hit Ratio is 100% constantly). Some people in our team want to move to SQL Server 2014 to increase performance with In-Mem...
Some people in our team want to move to SQL Server 2014 to increase performance with In-Memory Tables ... That entirely depends on: If more performance is needed What the current bottleneck is however I'm not convinced that doing such will increase performance since our tables are already in memory. You should be suspe...
2
3
116
2017-08-24T14:53:44.523
database_errors
dba.stackexchange.com
37,233
Safely Grant Access to SQL 2005 Replication Monitor to Create Snapshots
0 vote down star I have a database that I'm publishing to a remote site using Snapshot replication (only method that will work given the application and database schema). Because the replica database tables are unavailable while the database is refreshing, I am taking and delivering snapshots twice daily. For the targe...
Replication is controlled via jobs. Add the needed account to the SQLAgentOperator role in the msdb database. This should take care of the issue.
0
0
489
2009-07-07T18:25:36.690
database_errors
serverfault.com
912,514
IPv6 configuration missing in interface config file
When I use ifconfig command I get the following output: [CODE] As you can see, the ethernet interface has got both IPv4 and IPv6 address. However, if you check out contents of the [CODE] file below: [CODE] It doesn't contain the IPv6 address. Why this inconsistency? Is the IPv6 address configured separately somewhere e...
There are other means of assigning IP addresses to interfaces than just the scripts in [CODE] , for example the [CODE] command that may have been invoked since the system was booted. Or maybe the [CODE] script itself has been changed since boot. It's probable that in this case the server has dynamically generated that ...
0
0
583
2018-05-16T14:19:19.303
infrastructure
serverfault.com
116,882
No A or AAAA record for NS (Reverse DNS)
Okay I've searched through this site and read the numerous questions all on the same topic but the puzzeling thing is that I do have an A record for both of my ns entries. When I run named-checkzone on my reverse DNS records then I get this error: zone example.com/IN: NS 'ns.example.com' has no address records (A or AA...
Strange - copy and pasting your answer and running named-checkzone on it results in: [CODE] You sure that's the correct zone file you have on your system? Is there an $ORIGIN directive somewhere between the NS and the A records in your file that's changing the zone root?
8
3
26,928
2010-02-25T19:02:39.373
infrastructure
serverfault.com
213,454
Postgresql create index concurrently
I want to create a concurrently index in postgresql inside a trigger like following code [CODE] The problem is that when I execute that statement, postgresql complains sending an error like WARN SqlExceptionHelper - SQL Error: 0, SQLState: 25001 ERROR SqlExceptionHelper - ERROR: CREATE INDEX CONCURRENTLY cannot run ins...
[CODE] cannot run inside a transaction, and all functions are transactions, (but ordinary create index can). Perhaps something like [CODE] can be leveraged to create the index upon command from your trigger. https://www.pgadmin.org/docs/pgadmin4/3.x/pgagent.html Alternatively you could do a regular create index when yo...
7
1
20,703
2018-07-27T23:17:38.233
database_errors
dba.stackexchange.com
250,490
Managing a SQL Server database with over one terabyte of data
Recently we have an audit database that went over one terabyte and, since we have storage problems, management is looking for options. My proposal is at the end of each year we take a backup and truncate all the tables which will keep the database manageable. It will not be beneficial to have an archive database as it ...
Get more space. If you have a business requirement to retain that much data, they have to come up with the money. Turn on page compression for the biggest tables (and indexes) (test test test!), Log data compresses extremely well, but compressing that amount of data is going to take some time. See point 1
6
8
3,370
2019-10-08T02:02:39.750
database_errors
dba.stackexchange.com
5,225
Is there recording software with bookmark frames on the fly?
I've taken a look at PSR, which kind of does that, but it's just screen caps, and can only record a certain number. I would rather have a video and and a list of bookmarked frames to jump to in order to review problems that happened.
I found that Camtasia has this feature. In the Camtasia Recorder, you can enable the Effects toolbar, and there's an Add Marker button. When you add the video to the timeline, the markers will appear.
0
0
64
2012-11-16T21:53:54.107
data_quality
sqa.stackexchange.com
1,041,077
nginx to handle odd requests on hostname
Application logs are showing requests for a domain which is in fact the ip address of the server [CODE] Thus I created an additional enabled site as follows: [CODE] This does process requests for the ip address to the 404 response. However, there is no way to test the second hostname; any local machine returns [CODE] I...
You can just set the [CODE] header and use something like curl to send the request to the IP address. e.g. [CODE]
0
1
122
2020-11-03T08:20:17.657
infrastructure
serverfault.com
585,204
Nginx geoipblocking & allowing LAN IPs
I'd like to block IPs with geoip except whitelisted countries AND the local area network. The first part works flawless, the second one not. Somwehere searching the internet I found the codes LH (local host) and LN (local network), but they are both not working. I'm using the standard howto code for the blocking. The r...
I found a solution - no idea if it's 'clean'. Just overwrite the $allowed_country variable if a lan IP condition was matched before. geo $lan-ip { default no; 192.168.1.0/24 yes; } and this block before the "#block countries" part if ($lan-ip = yes) { set $allowed_country yes; }
4
6
8,729
2014-03-28T16:50:24.680
infrastructure
serverfault.com
299,194
Copy database backup files from Azure to on-premise network
Goal - Take a database backup in Azure and copy the backup file(s) to company network for archiving. Note that I'm not asking how to copy a database. Research - I have knelt at the alter of Google, but have yet to come across any useful information on solving this particular problem. Any ideas on what path I should exp...
The question is a little vague; do you mean an Azure SQL Database or Azure SQL Managed Instance, or do you mean an Azure VM hosting a SQL Server instance? Azure SQL Database or Azure SQL Managed Instance You cannot take a normal backup of an Azure SQL Database or Azure SQL Managed Instance because you do not have acces...
0
1
272
2021-09-07T18:54:27.847
data_quality
dba.stackexchange.com
432,386
Is it a good practice to Mock entity manager in spring boot unit testing
I currently design an API using spring boot. In my service layer, I use Entity Manager for accessing the database. I have provided a method in my service layer below as an example. [CODE] in the testing unit, I mocked the entity manager as below, [CODE] And in the test method, [CODE] My question is, if I mock entity Ma...
The objective of unit testing is to validate the outcome of a certain piece of code in isolation. By mocking the [CODE] , you are only validating that your implementation calls some methods, but it gives you no confidence on how this code will actually behave with the real dependencies. Even if you did make sure you se...
1
7
9,127
2021-10-01T15:26:49.683
api_errors
softwareengineering.stackexchange.com