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
1,143,248
Sign-Up verification emails going to spam despite proper authentication
I am using SendGrid to relay emails sent via Drupal. I am struggling with Gmail specifically marking Sign-Up verification emails as spam despite using DKIM, DMARC, SPF, reverse DNS, everything there is... I have set up SendGrid to use 2 dedicated IPs. This does not happen as much with other transactional emails sent vi...
Any email service provider has their own secret recipe for detecting spam - SPF, DKIM and DMARC play a part in this but they only VALIDATE THE ORIGIN of the email. None of the providers will tell you exactly how their rules work for 2 reasons: it makes it easier for spammers to bypass the rules the providers often don'...
0
0
115
2023-09-07T09:46:12.963
api_errors
serverfault.com
201,874
PostgreSQL drop view in case of unknown whether materialized or not
I'm trying to drop a view, of which I cannot assure whether it is a [CODE] or a [CODE] . [CODE] throws an error, if [CODE] is a MATERIALIZED VIEW and vice versa. What I am looking for is drop statement (or function) that does not care about if it has to drop a [CODE] or a [CODE] . (hint: there seems to be neither [CODE...
My solution at this point is a function [CODE] so that with [CODE] doesn't have to care about [CODE] or [CODE] .
1
2
357
2018-03-21T11:01:04.727
warehouse_errors
dba.stackexchange.com
196,248
What is the "SYS_C00054_14031410:34:03$" column in my regular Oracle table?
Tried to do partition exchange and it failed because of 2 extra SYS_* columns in the table: [CODE] ALL_TAB_COLUMNS show nothing on these What are these? and why CTAS didn't pick them up? If [CODE] - how do i drop them?
Unused columns. [CODE] Edit: Extra information: I used [CODE] , because [CODE] does not list such columns.
0
2
4,535
2018-01-25T16:15:52.913
database_errors
dba.stackexchange.com
1,044,473
How is nginx treating API requests?
In the process of my question here Production server much slower then local test server when sending large request I am trying to understand more profoundly what a webserver - especially nginx - actually does. Basically I want to understand better the architecture that I took for granted a long time. Maybe it's trivial...
nginx simply forwards the request to your backend server. It doesn't do any additional operations on the data except compression if so negotiated with the client. In 99% of the cases, there is nothing in nginx that could significantly affect performance. It is the actual application that needs to be analyzed for perfor...
0
1
125
2020-12-01T03:12:13.467
infrastructure
serverfault.com
577,351
Connectivity between Web Server and SQL Server inside Amazon VPC
I have a Webserver and a SQL Server inside an Amazon VPC. Previously, a Webserver outside the VPC could connect to the SQL Server fine. Now, sometime, when running SQL Scripts (the deployment script reruns all the stored procedures on install), some of the create procedure scripts fail with an error "An exception occur...
Looks like a combination of 2 things: The default MTU of 1500 is too high for Amazon Server Blocking ICMP (default for an AWS security group) stops the negotiation of a suitable MTU. Setting a lower MTU and enabling IMCP seems to have fixed it, so far, anyway.
0
0
1,278
2014-02-21T13:56:04.600
pipeline_ops
serverfault.com
441,380
Windows clients not accepting incoming connections on WiFi
I am having a few issues with clients in remote sites and have narrowed it down to TCP connections not being accepted by/not reaching the WiFi adapter. Outgoing connections are fine, and over Ethernet there is no problem. The adapter is in the Domain profile for firewall and the firewall is passive. I have determined t...
I think ultimately the answer to my question is no, there's nothing else on the client side that could be blocking the connections. Despite telling me that it wasn't the case, our network support team identified that the remote APs were configured with firewall rules that stopped connections being made.
0
0
1,306
2012-10-23T14:39:50.330
infrastructure
serverfault.com
112,165
What can be done with same samples with different target?
Suppose that we have a dataset that some samples have the save value but with different target. It can be a regression issue or classification. What we should do with them? Should we remove them or that is normal and we can let these data be in training set?
This is completely normal; leave them in. An easy example is in an ANOVA problem (which can be viewed as a regression) where multiple subjects in the same group (so same group "value" where group is the lone feature) will have different outcomes in $y$ . All this means is that, given your particular feature(s), you can...
4
6
823
2022-06-27T11:36:11.447
data_quality
datascience.stackexchange.com
767,569
make redirected folders always offline available
I configured server side profiles using GPO ( [CODE] ) and that works fine. My Setup: Redirected Folders reside in [CODE] . Server is a Windows Server 2012 R2 Essentials. Clients are Windows 10 Professional x64. The GPO object is linked to the Computers and the Users OU. In security filtering I added the users group th...
Well, I guess I mixed up roaming user profiles and redirected folders ^^ I set up roaming user profiles now, which is what I aimed for in the first place and deactivated folder redirection. (That also explains, why I was using "profiles" and "folders" as synonym for each other) Source that I used to learn the differenc...
0
0
3,340
2016-04-01T13:57:28.180
infrastructure
serverfault.com
736,015
Temporary home directory CentOS?
I would like to setup a linux machine that students can use to login and work on virtual machines. I would like the following behavior to happen from start to finish. This is a classroom environment and I do not want any changes that a student makes to persist upon logoff/reboot. User logs in with username/password. Th...
Matthew - What you are looking to do is built right into linux! You want to use the .bash_logout mechanism to wipe all contents on the user's home directory on logout, and upon logging in, those files should be restored. If not, add a line to copy them back in. You could do this with something like this: .bash_logout [...
1
0
709
2015-11-13T02:51:25.807
database_errors
serverfault.com
318,955
Moving Mysql 5.7 database from windows 7 pc to windows 10 pc Mysql 8.0. Can see database in files, but cannot open?
I have been running a Java project created using Netbeans and a Mysql 5.7 database on an HP Windows 7 PC. I moved the project to a Lenovo Windows 10 PC using Netbeans and Mysql 8.0. I can see the database with the ibdata1 file and all the tables with their .frm and .ibd files in the Program Data file just as they were ...
Plan A: Upgrade to 8.0 on the old machine, then move all files in MySQL's tree to the new machine. Plan B: Perhaps you did not move all files in MySQL's tree to the new machine? Plan C: Instead of moving files, use mysqldump. Plan D: (As you did) Move the old drive to the new machine and mount it as, say, `F:. Then do ...
0
0
50
2022-10-30T00:04:24.810
database_errors
dba.stackexchange.com
137,827
How to enrich event based data per row based on future events
I'm trying to figure out a not too terribly hacky way to solve the following issue. This data is currently available both in MySQL and RedShift, so a solution for either is fine though RedShift is preferable. Lets say I have a data set like this: [CODE] I want to have four additional columns for each row with a true fa...
As the two dates are compared inside a function this may prevent the optimiser using an index on the date. Changing to [CODE] may help (or try it the other way around). Refactoring the query as an outer join will likely produce a different execution plan [CODE] This pattern can be repeated for subsequent comparisons.
1
1
85
2016-05-06T23:11:06.217
database_errors
dba.stackexchange.com
391,722
Monitor SMART Values of a SAS/SCSI drive with Munin
I'm trying to monitor my two SAS drives using the SMART Tools Plugin for MUNIN. On SATA drives its no problem, all SMART values are being shown. It seems that smartctl doesn't output valuable SMART values for SAS drives: On Debian Squeeze with two SAS Drives "smartctl -A /dev/sda" outputs: [CODE] There is no informatio...
S.M.A.R.T. is implemented in different ways in SCSI (SAS) and ATA (SATA) drives -- in particular, there is no concept of attributes in SCSI drives.
2
2
1,835
2012-05-23T07:20:37.407
infrastructure
serverfault.com
1,056,328
Exchange 2013 HAFNIUM attack: based on these factors, is this server compromised?
Last week, a server running (only) Exchange Server 2013 was hit with probes from the ongoing HAFNIUM-style attack . We ran the Health Checker script provided by Microsoft and found that we needed to upgrade. We upgraded to Exchange Server 2013 CU23 and applied all patches starting at around mid-day 2021-03-04. The upgr...
According to my research, these vulnerabilities are used as part of an attack chain. The initial attack requires the ability to make an untrusted connection to Exchange server port 443. Patching Exchange Servers immediately is the best first step. Other temporary options can include protection by restricting untrusted ...
2
1
410
2021-03-08T17:17:49.643
api_errors
serverfault.com
809,526
is there a web-cache that act as bridge?
i have pfsense 2.3.2 and i want to make it work as a traffic controller through limiter and be web cache but this is a bug limiter don't not work where nat is applied so if i got a machine with pfsense installed act as a limiter and a second machine before lan interface to the lan act as a web cache it will work first ...
This is achievable with squid as a transparent proxy on a "second machine", which will intercept all the traffic and optionally cache it. However, there's little sense in that: modern Web is growing towards the HTTPS, furthermore HTTP/2, newly introduced standard is based on the HTTPS. At the time of this writing, all ...
0
2
205
2016-10-17T13:42:56.880
infrastructure
serverfault.com
462,507
What effect does it have on a server when you kill all root processes?
There were other devs logged in as root that I wanted to kick out. So I issued [CODE] Then I realized that I probably killed all kinds of root processes. Have I damaged my system? I can't reach it through SSH now. UPDATE: Web server is still running. But I can't connect by SSH now. I have no idea what I've done.
A quick answer is that you killed sshd (and lord knows what else) and will be unable to log back into the system using SSH. Unless you have some other method of gaining access to the system (such a remote console, IPMI, etc), you will need to reboot the system which will restore the SSH service and other services. Hope...
11
16
6,726
2013-01-03T06:57:31.643
infrastructure
serverfault.com
1,003,825
Why don't I need a certificate to connect to our AWS database?
I'm a developer more than a devops or sysadmin. person and I'm trying to work out what we have to do about SSL certificates and our AWS databases. It is well-known that the certificates issued in 2015 for AWS databases will expire on 5 March 2020 and it is necessary to install the certificates issued in 2019. However, ...
This can be configured per-user in MySQL. [CODE] See the [CODE] documentation and look for [CODE] .
1
2
111
2020-02-20T03:25:13.110
api_errors
serverfault.com
627,655
Apache can't read files outside of webroot
It has been many, many moons since I've set up an Apache server. I'm assuming some things have changed. The new one I'm doing is on AWS (Linux). It's installed fine with PHP support. I installed Twig via yum. The default location is [CODE] . I'm trying to load the Twig Autoloader, but PHP is telling me that it is unrea...
[CODE] is disabled by default, if you want to access it via [CODE] you need to uncomment [CODE] and place all files that you want to be accessible to [CODE] folder inside of your [CODE] , don't forget to restart [CODE] after uncommenting out [CODE] , also you might need to check [CODE] as well.
0
2
1,532
2014-09-10T19:42:22.980
infrastructure
serverfault.com
896,638
SSH refusing connection after chown command
I have SSH access to a Centos 7 virtual machine. I wanted to change the permissions on the apache folder (var/www) on my user in order to edit the files remotely, but I erroneously performed [CODE] . Now I cannot SSH anymore. How can I solve this problem? What could be the reason? EDIT: I don't have access to the physi...
[CODE] You may also need to restart the service
0
2
817
2018-02-10T14:40:18.913
infrastructure
serverfault.com
1,056,255
networkmanager script failing, how to see full logs output
[CODE] tells me [CODE] This is almost certainly a script we have hooked/symlinked in [CODE] , however all such scripts run without error when run directly. Where can I find, or how can I enable, a full capture of [CODE] / [CODE] for all things network manager runs (narrowing verbosity to [CODE] is obviously fine, too)....
it turns out it's NOT [CODE] that would have the relevant logs: a different service, [CODE] , is what runs scripts in [CODE] - and the [CODE] for that service does in fact have all [CODE] / [CODE] from the operation. And for the curious, the underlying error was an [CODE] from [CODE] ; the script we have generating the...
3
3
1,601
2021-03-08T04:21:25.343
infrastructure
serverfault.com
581,450
pfSense memory reporting
I have a box onto which I just installed pfSense 2.1. The box has 16GB of RAM and is a quad-core processor (yeah, we're planning on doing some serious traffic and using a proxy filter with a lot of clients). The BSD shell is reporting correctly that 16GB of RAM is installed: [CODE] My assumption here is that BSD report...
*Smacks Self in Head * The issue was a (very) silly mistake. I installed the 32bit version of pfSense, and not the 64bit version. Problem solved!
2
1
1,776
2014-03-12T01:39:07.170
bi_errors
serverfault.com
6,685
Cannot upload a file using requests module in python
After two days of continuous trial, I thought it's better to ask you folks here. I want to upload a file on my desktop to a remote server. For this I am making use of python and its module requests . I get good help from the internet but even then when I execute my piece of code, I am not able to upload it. So here is ...
@Praveen: your problem lies with the way you have authenticated to the website. You cannot just put the s.auth in request and hope it will work. The website probably is not using HTTP-Basic Auth. This is how you should do it (on windows machine): List item install a HTTP/Web tracer (Fiddler is available here: http://fi...
4
2
4,810
2013-08-25T15:09:08.740
data_quality
sqa.stackexchange.com
800,997
How to change http to https when tomcat redirects happen
I'm using elastic beanstalk single instance. So there is apache configured and tomcat is behind listening on http port 8080. Apache is configured on using ssl https 443. The problem is that tomcat redirects using http. But I can't set up apache to change http to https. So as a consequence the mixed content error happen...
You may want to solve this at the application level. You should be constructing a full path to the new location. This should consist of three components: the protocol (https), the hostname (from the request header) and the path (as required by the application). You may want a utility class that constructs links for the...
4
1
2,453
2016-09-04T14:35:10.533
database_errors
serverfault.com
452,055
Cisco AP, how to show dot11 wpa handshake timeout?
Please help me with a newbie question regarding Cisco AP CLI . According to this Cisco doc , I know how to change [CODE] value to 2000 milliseconds. [CODE] But, how do I query its current value?
If the command is present in the configuration ( [CODE] ) then the timeout is as configured. If the command is not present in the configuration ( [CODE] ) then the timeout is the default 100 milliseconds. I have yet to find it in any other show output. My first hunch was it might also be present in [CODE] . Nope.
0
0
1,978
2012-11-26T02:07:06.157
infrastructure
serverfault.com
1,125,847
Apache Authentication - Find out user password
My field of expertise is far away from server management but I am currently covering for a former collegue of mine, so I apologize in advance if my question doesn't make sense. I have to restart an Apache server running on Debian. However, I do not have the password for the root user, nor for the user that I am logged ...
No. First of all, you're not looking for an Apache password stored in a .htaccess file. You're looking for the Linux user password. That's stored in [CODE] , which you can't even read. And it's salted and stored using a good hashing algorithm. The certificates does not contain the password. They are merely an alternate...
0
0
640
2023-03-10T13:10:52.583
api_errors
serverfault.com
846,308
mysql keeps crashing corrupt databases
I have been trying to solve this for about 8 hours now. Due to unrelated issues, I had to remove mysql and re-install it. since then, mysql crashes and restarts every 2-3seconds with the below in the mysql log. [CODE] I have attempted several ways to repair the database including : myisamchk --silent --force --fast --u...
Your database has [CODE] error. This means that you have installed old version of MySQL than was used before crash. You need install newer version of MySQL which is used before crash or the latest version MariaDB from Percona's repository . Don't forget to remove old version of mysql before installing new version by co...
1
0
836
2017-04-24T20:20:52.240
database_errors
serverfault.com
180,179
Applying (log backup) LSNs to the secondary node of an Availability Group
I have a test instance configured as always-on go down today due to a restart of the primary node and the file-share going down together. I had a bunch of problems in order to get the secondary functioning again during which I had to remove it from the AG and add it again. During this time (the time when it went down t...
You have 2 options : Easy one - since this is test instance and its secondary. Stop the log backup on primary. Remove the db/s from AG. Take a differential backup or full backup if dbs are small. restore then on secondary with norecovery. take an additional log backup on primary. restore the additional log backup taken...
3
0
960
2017-07-18T22:46:38.633
api_errors
dba.stackexchange.com
1,113,301
BIND auto-dnssec is signing records with ZSK and KSK
I'm doing a rollover of my KSK and ZSK (concurrent with a server transfer) and BIND (version 9.16.23) has started causing problems for me. I have the following keys in my directory: [CODE] And a standard zone config: [CODE] So as you can see from the dates, the old RSA keys should have stopped being used by now, replac...
In the absence of any explanation for why BIND was misbehaving like this, I ended up running [CODE] , manually removing all the RRSIG records, running [CODE] , and thawing it again with [CODE] . BIND then proceeded to properly sign records with only the new ZSK. The old ZSK remains as a DNSKEY record, I'm hopeful it wi...
2
0
209
2022-10-17T17:48:23.860
infrastructure
serverfault.com
771,924
Detect silence in RTP payload
I'm facing issue with a Asterisk-based ToIP infrastructure. Sometimes my phone received 'empty' RTP (payload entirely filled with 5d). I browsed RFC (3551, 3389) and can't find/understand relevant answers. I have found that two web pages that have the same issue as me: https://www.wireshark.org/lists/ethereal-users/200...
This comes from G.711 audio codec PCM procedure. G.711 defines two logarithmic codecs used for PCM (Pulse Code Modulation) audio data: a-law and u-law. Codec algorithms are based on the perceptual properties of the human ear - weak signals are masked by strong ones. After compression (from 14 bit sample in u-law and 13...
3
6
7,510
2016-04-21T09:33:55.840
infrastructure
serverfault.com
1,122,052
How to allow VPN traffic to a Docker Container
I have the following: [CODE] So, from my phone, I want to connect to my OpenVPN server as a client and after that, I want to connect to my app (e.g. Nextcloud). Probably this is a firewall issue. I want to block all traffic except the one that is coming from the VPN. I tried different rules and ways to figure it out wh...
Why not just allow traffic from the OpenVPN server itself? Basically you are wanting to set up your VPN server as a middleman. So instead of, [CODE] do [CODE]
-1
0
655
2023-02-05T18:45:31.657
pipeline_ops
serverfault.com
1,054,191
How to choose right AWS EC2 instance for serving MySQL
Recently we have noticed that our application has some errors related to the MySQL load. There are some basic queries on large database (approximately 32 GB) which takes longer time than expected. For serving the MySQL server we use m6d.xlarge instance, average visitors volume is 3000 daily basis, though we see tendenc...
Your database is not that big but depends on how you use it. Rather than throwing more power at an under-performing database try to optimise the performance with your current setup. Enable MySQL Slow Query Log and figure out what queries take too long. Is there a pattern? Are your table indexes correct? Are they actual...
0
1
731
2021-02-18T22:12:49.513
database_errors
serverfault.com
777,253
smbclient: Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)
until yesterday I had a functioning Active Directory Primary Domain Controller running on a raspberry pi. Now it seems I cannot get the 'samba' service to listen at all. This is since performing an upgrade. [CODE] That looks fine, I suppose but [CODE] gives the error message quoted in the title. I have been googling th...
[CODE] Her's a simmilar issue http://www.spinics.net/lists/samba/msg133552.html solution was to install winbind http://www.spinics.net/lists/samba/msg133589.html You need a separate winbind winh samba 4.2 + http://www.spinics.net/lists/samba/msg133595.html
3
2
21,708
2016-05-17T12:42:51.513
api_errors
serverfault.com
235,618
Environment-aware Code
There are situations where the deployed environment ( development , test , or production , for example) might dictate the outcome of certain actions. For example, perhaps a successful "user registration" process will send a notification email to the new user. Environment-specific actions: Development: Do not actually s...
First, you should not use your real production data (especially not person-related data) in development or test (you may use carefully choosen excerpts from production data, of course). So your data pools (maybe a database, maybe a pool of files, maybe both), should be separated between those environments. So the only ...
3
1
6,899
2014-04-11T06:41:01.300
api_errors
softwareengineering.stackexchange.com
586,871
Cannot add any virtio discs in virt-manager, how to fix?
I’ve just freshly installed virt-manager and libvirt-bin (and related packages) on a Debian sid system, and have a strange problem I’ve not yet seen on another similar installation: When creating a new VM, I get presented one with an IDE disc and an RTL8139 NIC. I can change the type of the NIC to virtio, no problem, b...
I just had the same problem and came up with this solution: Check: Is kvm really enabled in your bios?? Run this: [CODE] If it says [CODE] go to the bios and enable it! in virt-manager you can now select kvm as emulator for new machines. I just recreated my machine without modifying the image and now virtio is availabl...
0
1
1,130
2014-04-05T09:52:02.907
infrastructure
serverfault.com
785,827
cannot use localhost but 127.0.0.1 works
My usecase is that I manage remote computers using reverse SSH tunneling. This works great as our customer enable the tunnel and I can then log on using it. However, on one machine the tunneling stopped working. [CODE] After a lot of troubleshooting it turned out that using 127.0.0.1 instead of localhost did still work...
Turned out it was the /etc/nsswitch file See the problem? [CODE] A '=' sign incorrectly in the script. This was done in a custom package of ours (not written by me, blame allocation FTW!). that simply wasn't installed on the one that worked but was installed on the one that didn't. Now I can correct the packet (used fo...
0
0
3,926
2016-06-23T13:00:10.043
infrastructure
serverfault.com
426,827
Database schema for two different types of elements on map
I wrote a software for a customer that shows clients on a map (Google Maps). I store the clients on a table on the MySQL database (table [CODE] ) and show them on the map using markers. Each clients has an id, name, lat, lon, and other satellite fields. The customer wanted to add a feature to add notes to the map. I ma...
The [CODE] and [CODE] fields for both [CODE] and [CODE] seem to represent the same columns duplicated across multiple tables, which is a violation of the DRY principle , so those columns should be consolidated into a single table ( [CODE] ?). However both [CODE] and [CODE] tables would also still be required (without t...
0
1
77
2021-05-29T08:40:12.937
database_errors
softwareengineering.stackexchange.com
1,055,521
Nginx Conf for multiple projects and locations
So I have 2 projects (made in Angular), for frontend and admin. I want [CODE] to serve frontend folder, and [CODE] to serve admin folder. Also, note that I don't want to add base href in admin project, like [CODE] So what I have untill now is: [CODE] So I have 2 problems with this: /admin is not being matched with rege...
Try this to avoid rewriting the second location to the first location and also to avoid appending the request url by using [CODE] instead of [CODE] : [CODE]
1
0
3,215
2021-03-01T15:36:06.117
infrastructure
serverfault.com
710,864
Stop nginx reverse proxy from redirecting
There are several similar questions but I haven't been able to figure out how to fix my problem. I am running an instance of nginx on port 80 which acts as a reverse proxy for some other instances of nginx (which are reverse proxying for gunicorn running different instances of a django application.) When I navigate to ...
After some fumbling around with the nginx documentation, I found a setting for proxy_redirect which solves the issue. [CODE]
5
2
12,139
2015-08-04T19:39:07.917
infrastructure
serverfault.com
448,076
Class Hierarchy for Generic Parameter Optimization Problems
I am working on a code library containing data structures and algorithms for solving parameter optimization problems. A parameter optimization problem is a problem of the form: given a vector of parameters P, and a loss function L(P), find the vector components of P such that L(P) is minimized. The implementation of th...
I think the simplest and clearest solution is to avoid subclassing altogether. Instead, my package will contain a concrete Parameters class like so -> [CODE] The consumer of my package will then be responsible for converting their problem specific data (SalesParameters in my example) into a Parameters object to interfa...
0
2
140
2023-10-13T02:39:06.663
api_errors
softwareengineering.stackexchange.com
290,503
Why dynamic memory allocation functions in C returns void*?
Consider the prototypes of C's dynamic allocation functions [CODE] Now a statement like following [CODE] I know that casting to (int*) isn't needed in C since a void pointer can be assigned to a pointer variable of any object type, but why these functions by default not return fully typed pointer?. Wouln't it be nice i...
Because it can't. How would it return a fully typed pointer? C doesn't have templates/generics, and it doesn't allow function overloading; let alone overloading by return type only. So there's no mechanism to have a [CODE] that knew what type you wanted. I've read here that in older C compilers the type of pointer retu...
4
10
4,206
2015-07-22T18:44:09.617
api_errors
softwareengineering.stackexchange.com
124,935
How can I narrow down the cause of a deadlock after the fact?
We're using a .Net 4.5 web application with SQL Server 2012 on the same machine. We will sporadically see a cluster of "Wait operation timed out" exceptions while using the site. Occasionally we will receive Deadlock exceptions as well. These are always on Select queries, not updates. I have run sp_lock a few times and...
I discovered the underlying issue by running sp_whoisactive repeatedly until the database hung again, at which point it became obvious that all the threads were waiting on "PREEMPTIVE_OS_WRITEFILEGATHER." It turns out that our transaction log had grown out of control and was taking three minutes to auto-grow, so connec...
1
0
1,096
2015-12-31T15:16:19.577
api_errors
dba.stackexchange.com
587,945
How to do exceptions in Group Policy?
We're implementing Group Policy for the first time at our organization and have some questions about best practices and capabilities. We've already done some work and want to see if there is a better way. Our Current Setup We have Security Filtering set up as follows: [CODE] Our Goal Have one OU for all end-user PCs th...
Is there a better a better way to do what we're trying to accomplish? Using security group filtering to exempt computers from various computer policies makes sense and I think you're going about it the right way. I'm not sure that I'm 100% clear on what you're actually trying to accomplish when it comes to the Folder R...
5
3
8,910
2014-04-10T01:21:44.007
infrastructure
serverfault.com
1,142,459
Secure method for automated copying of files over a root ssh connection
I currently have a few different services running on my home server and for simplicity, I have a single VM manage the certificates via certbot and just copy them across the network using SCP. The ssh connections are key secured but since I'm running it automated, the keys themselves don't require a password which obvio...
You can generate multiple ssh key pairs. On the remote server you can use the advanced options in the [CODE] file and add limits to each public key. That allows you to add restrictions to the amount of access logins with a particular key pair is granted. See authorized_keys file format description in https://www.freebs...
0
1
55
2023-08-26T19:43:07.617
infrastructure
serverfault.com
64,320
MySQL - Problems caused by SQL Security definer or invoker
I have a view used to be defined as: [CODE] The user1 has all privileges to the schema1's objects. And if I, as user2, [CODE] , it works fine. But If I do: [CODE] I got error saying: Error Code: 1356. View 'schema1.view1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to ...
i got same issue on my case, my resolution re-create the view with change this part from [CODE] to this [CODE] and test select the view from user.
1
0
2,685
2014-05-01T19:48:47.563
database_errors
dba.stackexchange.com
116,156
Left join not working with sub-query
I've got table of [CODE] where each entry corresponds to a particular [CODE] pair. [CODE] I want to pick the top 5 subjects with highest overall scores, and then compute the average score of each student across those 5 subjects. Some students may not have entries for some subjects. Those values would be given a default...
You could use a [CODE] from [CODE] to all the students and then a [CODE] join to [CODE] : [CODE] A different approach would be to alter your query to count the available scores each student has (in the 5 top subjects): [CODE] But even with this, you would still not get any result for the students that have no score in ...
1
3
2,810
2015-09-25T15:05:56.667
warehouse_errors
dba.stackexchange.com
867,314
Why is postfix not allowing received mail from internet?
I have a mail setup where a public mail server ( [CODE] ) receives mail to [CODE] and relays that mail to an internal server ( [CODE] ) at [CODE] and am having an issue where the internal server isn't allowing the email to come through. I know the external server is functioning because it works with another domain just...
The problem turned out to be relaying into 587 instead of 25 for anyone else who runs into this.
-1
0
93
2017-08-07T15:29:46.447
infrastructure
serverfault.com
156,967
Why offer both a secured login page and a non-secured login page?
I note that the xp-dev.com website (delegated SVN space) offers a regular HTTP login page but this page then has link to a "secure login" which is a login page but under SSL. I wonder what the point of defaulting to HTTP was when surely an SSL login page would be better anyway? Is it a browser compatibility issue? Do a...
SSL is a big hit for sever performance compared with http, so I would guess that the webmaster is worried about scalability. The visitors who are concerned about high security can make the extra click to use the SSL login.
1
2
134
2010-07-02T11:26:29.333
infrastructure
serverfault.com
1,025,656
Forwarding between two domains pointed to the same directory of the server without changing the URL
I have [CODE] and [CODE] . [CODE] is the main domain that is pointed to the server IP [CODE] exactly to the directory [CODE] . [CODE] is the domain that I want to forward to [CODE] without changing the URL in the user's browser. (Note: this domain will be the domain of the user profile). So, instead of typing [CODE] , ...
[CODE] It's not clear why this would result in a 500 error, unless mod_proxy or mod_rewrite is not installed or configured properly? Or you have a conflict with other directives perhaps? You should check your error log for the specifics of the error. However, if the two domains point to the same server/directory and yo...
2
1
37
2020-07-17T15:04:29.380
api_errors
serverfault.com
204,648
Optimizing a query comparing inner joins of a table to itself
I have a table [CODE] with the following structure: [CODE] So, it stores values captured on a daily basis for different parameters that are related to objects (m2m relationship). Objects have different sets of params and some object params may have gaps in values for certain dates. Now, I need to build a query that wil...
Upon experimenting with differenet implementation options and trying various indices, I believe I've landed on a decent solution that proved its performance on ~10mil rows: [CODE] This works under 1s upon creating the following indices on [CODE] (the column order is important): [CODE] [CODE] This final query turned to ...
2
0
113
2018-04-22T16:30:56.630
warehouse_errors
dba.stackexchange.com
136,757
Single email Stuck in Backend Exchange Queue
I have an outgoing message that has and is stuck in a queue on my backend mail server. The queue is: [CODE] It is in state retry with 183 failures. It is only one message and all other mail is flowing. The message is not particularly large. My limited understanding, a guess really, is that this message should get hande...
For more information, you can go into ESM and look at the queue. From the wording of your question, it sounds like you're already there. When you click on the name of the queue (name of the domain the mail is to be routed to), in the bottom pane there is a little box "Additional Queue Information" where you can get mor...
5
2
1,715
2010-04-28T19:44:29.530
infrastructure
serverfault.com
53,316
MySQL: Error while reverse engineering database from a sql file
I'm trying to reverse engineer a DB in MySql with a sql file generated from an OpenOffice database. while trying to import and run the sql file, I get the following error: [CODE] I tried many a things including removing double quotes and adding delimiter to the statements, yet the issue persists. For your reference, pl...
There are a few things wrong with the DDL Open Office has generated for you: MySQL doesn't have a [CODE] datatype The [CODE] statement isn't valid [CODE] should be [CODE] The following should work: [CODE]
0
1
2,361
2013-11-14T12:33:55.523
database_errors
dba.stackexchange.com
64,409
A transport-level error has occurred when sending the request to the server
In our Vb.net application(userd within a local network connection inside a office), which is used from long time now some of the users get the errors only sometimes a day A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly ...
If an application opens a connection (successfully) to SQL Server, and leaves it open in anticipation of sending a (or possible 'another') query, and in the meantime, SQL kills that connection for some reason (eg, service restarts, or a kill command is sent), then when the connection (which thinks it's open) tries to s...
10
12
67,508
2014-05-03T07:00:11.333
database_errors
dba.stackexchange.com
477,930
Trying to set up SFTP only in a chroot jail for one user
Hopefully you guys can help and see if I've done something weird here, I'm trying to log in with a user I set up, FileZilla shows me: [CODE] So, I went into auth.log and I see this: [CODE] This is the passwd entry for the user in question: [CODE] If I try running rssh myself, I get [CODE] so it seems to be set up corre...
1. Create a New Group Create a group called sftpusers. Only users who belong to this group will be automatically restricted to the SFTP chroot environment on this system. [CODE] 2. Create Users (or Modify Existing User) Let us say you want to create an user guestuser who should be allowed only to perform SFTP in a chro...
8
9
9,428
2013-02-12T10:32:29.190
infrastructure
serverfault.com
1,142,607
Apache Cannot See PM2 Node Process
I have Apache running on Ubuntu 20 and I keep getting this error in [CODE] : [CODE] My virtual host is set up like this: [CODE] In my web directory ( [CODE] ) I started my app with pm2 like this: [CODE] When I do [CODE] I see that my process is online. There are no errors in [CODE] . Somehow Apache and pm2 aren't talki...
You can't define port with [CODE] in PM2, there is no such option. Probably variable can do the work (as you mention in your comment): [CODE]
0
1
282
2023-08-29T05:40:01.060
infrastructure
serverfault.com
336,966
Data structures and algorithms for event correlation
What data structures and algorithms are suitable for event stream correlation? Specifically, I am looking at these two use cases: X occurrences within t seconds grouped by some variables (v1,v2). For example, 5 failed login attempts within a minute grouped by service such as SSH or FTP and IP address. Event A is follow...
Those are simple state machines. For the first you implement a ring buffer with [CODE] entries that log the time. If the wrapped time is within the maximum time, you found your event. Not sure about the second. It is just that you buffer the times for [CODE] , [CODE] and then the [CODE] combination with the variables. ...
0
2
169
2016-11-27T17:36:07.913
api_errors
softwareengineering.stackexchange.com
1,105,565
I can't setup bind9
where is my problem? I'm trying to find problem for 4 days I'm losing my sanity. [CODE]
Try more simply with : [CODE] ns2 is not define because it doesn't exist by whois.nic.ir , so I think it's useless (nic.ir is responsible of NS advertisement). If it's assigned to the same IP, it's also useless. Be very careful with syntax, specially with trailing dots. I edited my answer (a faulty MNAME !) and I don't...
0
0
57
2022-07-14T10:02:33.647
infrastructure
serverfault.com
1,112,846
DNS: how to redirect website traffic only, to a specific server
There are many similar questions on here but nothing that looks like it's actually what I need. I know what I need is very simple but I can't websearch it, probably I'm missing a key word. My issue: There is a standard DNS set up on a third party (as yet unseen by my eyes) controlling the website and email. Defined as ...
You need to sort out your concepts. There is no such thing as "the DNS for the new-website server". There is only the one worldwide domain name system (DNS) [1] containing resource records (RRs) for domain names, and within it one authoritative nameserver for your domain on which you can maintain and update RRs within ...
1
3
2,060
2022-10-11T19:28:56.520
infrastructure
serverfault.com
41,328
Best way of learning Python + GUI when coming from .NET
I've been developing applications in C# / VB.NET for about 3-4 years ( .NET Framework v2.0, 3.5, 4). I have also developed some command-line applications or scripts in C, and Python under Linux. Sometimes I need to develop my applications in another languages, like Python , but the problem thing is that lots of those a...
Id suggest Dive into Python 3 book. And this one for interface Rapid GUI Programming with Python and Qt if you prefer Qt, and wxPython in Action if wxWidgets are your tool of choice. First book helped me a lot, but I have ended up with Ruby=))
5
5
1,832
2011-01-30T03:39:44.827
api_errors
softwareengineering.stackexchange.com
822,952
Running SQL from memory faster than SSD?
Recently we have been having problems with our oracle database locking up on 1 query that we know so far. I will give a break down of what is happen however really doesn't have too much to do with my question but I am open to suggestions. Intermittently no telling when it will happen, has happen 4 times over the past m...
Which is faster SSD or Memory DRAM is faster than NAND flash. A RAM access is on the order of 100 ns, while a SSD random read around 16,000 ns. Latency Numbers Every Programmer Should Know You need to do a systematic analysis of what is happening and why. Do not change things merely because you heard something secondha...
12
6
394
2016-12-28T04:33:49.253
database_errors
serverfault.com
270,698
Publishing an internal mail server to mobile clients using ISA Server 2004
First, let's start with a picture to illustrate my problem... Naturally, IP addresses have been obfuscated for security reasons. I have an internal LAN, 192.168.1.x behind ISA Server 2004. On this network reside a number of fixed workstations, a POP3 mail server (not Exchange) and a WAP supporting mobile clients. All d...
The split DNS should be workable. I'd think that the system's local DNS cache would reset when switching wireless networks.. but now that I think of it, I haven't tried that before (and I can't find any documentation one way or the other). If it is the OS cache, it's is easy to overcome: [CODE] Times are in seconds, so...
0
1
552
2011-05-17T20:43:47.920
infrastructure
serverfault.com
131,397
Why use try … finally without a catch clause?
The classical way to program is with [CODE] . When is it appropriate to use [CODE] without [CODE] ? In Python the following appears legal and can make sense: [CODE] However, the code didn't [CODE] anything. Similarly one could think in Java it would be as follows: [CODE] It looks good and suddenly I don't have to worry...
It depends on whether you can deal with the exceptions that can be raised at this point or not. If you can handle the exceptions locally you should, and it is better to handle the error as close to where it is raised as possible. If you can't handle them locally then just having a [CODE] block is perfectly reasonable -...
114
179
180,024
2012-01-23T17:20:46.513
api_errors
softwareengineering.stackexchange.com
549,990
Office365 SPF record has too many lookups
For some utterly ridiculous administrative reasons we've got a split domain with one mailbox on Office365 which requires us to add [CODE] to our SPF record. The problem with this is that that rule alone requires nine DNS lookups of the maximum of 10. Seriously, it's horrible. Just look at it: [CODE] Given that we have ...
As of some recent date, Microsoft has "fixed" this problem by getting rid of all sub-records and using 2 or 3 "ptr" records instead: [CODE] Here's the problem: while this will help Office 365 clients avoid stay below the "Too many lookups" PermError ... it does so by forcing every mailserver in the world to do (expensi...
12
3
6,451
2013-10-31T18:36:58.083
data_quality
serverfault.com
301,944
improve performance of large scan calculation in PostgreSQL table
I have a table [CODE] that collects [CODE] contributions for each distinct [CODE] ( [CODE] , in this case a 'YES') during their [CODE] . The idea is to count how many users said YES out of the total contributions (could be NO or FIX or some other indeterminate string). The [CODE] table has over two million rows. Added ...
You can use FILTER to add an extra condition to one aggregate but not the others, so your two subquery could be reduced to something like: [CODE] Another thing that might help is increasing work_mem enough that the hashagg and sort don't spill to disk.
2
0
377
2021-10-31T15:40:58.027
database_errors
dba.stackexchange.com
364,935
vsftp login errors 530 login incorrect
Using Ubuntu 10.04 on an aws ec2 instance. I was happy just using ssh but then a wordpress plugin needs ftp access...I just need ftp access for one site www.sitebuilt.net which is in /home/sitebuil. I installed a vftpd and pam and followed suggestions that got me to the following state /etc/vftpd.conf [CODE] /etc/pam.d...
The guy in this question has a similar issue and configuration. The correct answer there is to comment out the following in your [CODE] [CODE]
3
3
7,395
2012-02-29T16:23:53.643
infrastructure
serverfault.com
404,882
How to remove Exchange data from a user's phone without remote wiping it?
Firstly, I apologize if this is in the wrong forum; I didn't see one that clearly pertained to mobile administration. This is for an iPhone since that's relevant. I will be assisting in the termination of a user that uses their own, personal phone for Exchange 2007. I'd like to get all the contacts/calendar/email data ...
Without a third-party app, yes; you're right. The only thing I'd change is start the forwarding first, then dump and delete, then disable AD account or change its password.
2
1
1,551
2012-07-05T03:20:15.560
infrastructure
serverfault.com
528,819
Connecting a VPS's static IPs to a mailserver on a dynamic LAN over an IPv6 OpenVPN connection?
Yes, I know. Ugh! I have a small office and we're trying to reduce our network expense. Because of client audit requirements, we run our own mail server, and would like to keep it that way. For that we need two static IPs. So far, we've had a 'StaticIP business plan' with our ISP for our office network. The service has...
You should be able to eschew the VPN and go direct via IPv6 from the VPS to the Mail server if you were to run a TCP proxy on the VPS Server. Socat would do the trick on Linux: [CODE] Or netsh on windows: [CODE] Either would forward connections made to the IPv4 address of the VPS server to the IPv6 address of the mail ...
3
1
1,079
2013-08-05T18:36:25.433
infrastructure
serverfault.com
68,748
Problem authenticating with SQL server 2008 server from IIS 6 server
I have 3 seperate physical servers: Old Webserver (IIS6; Windows Server 2003) New Webserver (IIS7; Windows Server 2008) DB Server (SQL 2008; Windows Server 2008) These are all non-domain standalone machines. The sites on the new webserver connect to the db server for their data. I accomplished this by setting up a loca...
You will not be able to use Pass-Through authentication in this fashion with SQL Server. That works with file shares and even authenticating people via web apps, but SQL Server itself treats the local machine like a DOMAIN and accounts with the same username/password are not the same across machines. Your options are: ...
0
2
1,377
2009-09-25T15:59:31.057
database_errors
serverfault.com
971,271
How to create a VPN that maps users into VLANs each?
I want to setup a VPN server that puts each user into a different VLAN. I've got a network with about 200 users in which each user is in a separate VLAN with his own /27-IPv4 network. Which user belongs into which VLAN is determined by an LDAP server which also provides authentication. I've got a Freeradius server as w...
The users should not see each other, it provides identification and access control within the network. The VLANs are already in use for e.g. wlan access. To answer that need please use a firewall or a firewall appliance that allow isolation for each VPN's user. Often those firewall will set the VPN user land inside the...
0
0
3,708
2019-06-13T12:27:59.127
api_errors
serverfault.com
24,862
Updates in Selenium 3 over Selenium 2
What are the new features/updates are available in Selenium 3 as compared with Selenium-2.0? What are the impacts of using Selenium 3.0? What are the recent errors which were found in Selenium 3.0? You can share Pros and Cons/your experience with the use of Selenium 3.0.
Good question, everyone should aware of the new updates and features in Selenium 3. As of my experience Selenium 3 has lots changes made in configuration/setup level. Even though we have to use GekoDriver for launching Firefox driver. There is also some browser compatibility restrictions are applied in Selenium 3 like ...
3
3
1,486
2017-01-12T08:56:12.637
data_quality
sqa.stackexchange.com
85,686
Linking to oracle from SQL Server 2005, this sucks
I need to create a link server from SQL Server to Oracle, but I'm having no luck. I've install the oracle 10g client software and I'm able to use TOAD for oracle and use ODBC to connect to the database directly. When I try to create a link server using the MS oracle driver, I get the following error when I try to selec...
We've had heartburn trying to setup linked servers from 64-bit SQL to Oracle, although never had any problems on 32-bit. Seems that MS and Oracle don't like playing together... We have them working using the Oracle Provider for OLE DB (OraOLEDB.Oracle). We also have Allow Inprocess and Non Transacted Updates set to tru...
2
1
493
2009-11-17T20:58:52.747
database_errors
serverfault.com
981,905
Why there are so many /API/updateV2.php logs in nginx from AWS Elastic Beanstalk?
I have a nodeJS app deployed in AWS EB, the app does not have any http server (is just doing a background task), but EB is warning me every minute the requests are 100% with 5XX, and from the logs I can see a lot of entries like this: /var/log/nginx/error.log 2019/09/04 17:10:15 [error] 30256#0: *511 connect() failed (...
Sounds like someone might have the wrong IP / URL and is attempting to reach your server using said URL. You could set up a "tcpdump -i any port 80" to see who's trying to reach your server. Worst case, set up ufw and add a firewall rule to block incoming traffic on port 80 / 443
0
1
104
2019-09-04T18:47:16.227
database_errors
serverfault.com
54,200
What's the best file-system for storing virtual machine images?
I'm planning how to partition my hard drive. I want to have 2 partitions - one for Ubuntu, the main operating system, and the other for virtual machine images, as I want to run virtual machines of Windows and MacOS through VirtualBox. My question is - what's the best file-system for the virtual machines partition? Are ...
I would put your VM images on a seperate spindle. Having them on a seperate disk with a large cache is likely to yield a much larger performance boost than which filesystem you use. Given that a corruption in a VM image could be catastrophic, I would be looking at robustness of filesystem over performance. Is it likely...
11
12
24,743
2009-08-14T13:08:38.867
infrastructure
serverfault.com
52,654
Symantec Ghost And Corrupted Images
I am using Symantec Ghost Corporate Edition (centralised server et al) version 11 to ease deployment of new desktops, and I am having a couple of issues. At the moment we have a very very basic use of Ghost in place - we use GhostConsole to deploy a client to a prepared computer, then to sysprep it and grab the image. ...
Richard, I've had the problem from 1 happen while deploying images before. Ghost creates a partition for its use and then doesn't delete it. I've been able to create a boot disk and put like fdisk or something similar on there. I've then deleted the ghost partition and marked the Windows partition as the active partiti...
0
1
1,848
2009-08-11T10:52:36.363
data_quality
serverfault.com
757,214
Server to something like a Workstation conversion
So the thing is: Im currently working with live visuals in concerts and stuff. (Yeah, serious work, not gaming or playing around), now im using a Macbook Pro 13" and its running at something between 12-30fps with the integrated gpu and I wanted to changed the setup for something more powerfull. I was thinking to buy a ...
Here are some things you haven't thought of or were not aware of: Windows Server has a feature known as Desktop Experience which can be installed to make it work almost exactly like its corresponding client OS, even accepting the same GPU drivers. A typical rackmount server will not fit into your existing audio racks. ...
0
0
265
2016-02-15T05:44:03.370
airflow_errors
serverfault.com
163,678
My server is sending me huge amounts of email from root@domain.com, how can I diagnose this issue?
I am the admin and I am getting email on my personal email address, I am getting over 1000 emails per hour with "Test mail" subject line. I have checked as many scripts as i could but cannot figure out what i sending these emails, everything was working fine a couple of days back. Please help this is very very urgent! ...
Try to sniff that port for outgoing messages (tcpdump). Than you will know what is the source port. Check in netstat after that. hint: [CODE] Also, you can check the headers, maybe there is the signature. Are the messages sent from your mail server or to your mail server? If are sent to your mail server, in tcpdump cha...
0
1
91
2010-07-24T09:40:45.890
infrastructure
serverfault.com
297,882
I know I have more free space
I'm trying to track down where all my hard disk space went. I have 1TB total space and, according to my system, 433GB used. However, I know I have more as I don't have any large files or folders that I'm aware of. The following shows the top 10 directories. [CODE] It says the /var folder is taking up 480GB but when I g...
If you do the recursive du as suggested, and calculate all space for the entire var tree, and it doesn't add up to the total used, you might want to check for an unlinked file handle that has been left open. This can happen with improper logrotate scripts that delete or move a log that is still actively being written t...
1
7
337
2011-08-05T02:29:45.193
infrastructure
serverfault.com
111,120
Getting column information from the MySQL command line
I am trying to get all the columns from MySQL using bash scripting. I want them to be stored in an array. If I write it this way: [CODE] ...I get an error that the identifier name is too long. If I write this way: [CODE] everything works fine. But I can't output it to a variable. Any suggestions?
Add [CODE] option: · --execute=statement, -e statement Execute the statement and quit. The default output format is like that produced with --batch. See Section 4.2.4, “Using Options on the Command Line”, for some examples. With this option, mysql does not use the history file. [CODE] Test: [CODE] EDIT 2: If you want t...
5
4
753
2015-08-15T01:35:37.670
database_errors
dba.stackexchange.com
312,228
Exchange 2010 DAG randomly losing quorum
I have a DAG set up between 2 Exchange servers at 2 different sites, connected via a dedicated gigabit circuit. For some reason, every so often, the remote host will get removed from the active failover cluster membership (even though its online), then the two Exchange servers will get into a fight over who's the prima...
Turns out this was a known issue with Exchange 2010, here's more information Exchange Team Blog
2
2
2,695
2011-09-16T15:20:41.040
airflow_errors
serverfault.com
329,893
Error message from server: ERROR: invalid memory alloc request size
I am running with the below issue while taking pg_dump(PG14) of a table with bytea column. pg_dump: error: Error message from server: ERROR: invalid memory alloc request size 1460154641 The command was: COPY TO stdout; The table "ABC" in concern is just 60MB large(total size) and it has a bytea column. But the error sa...
Your assessment that the table is only 60MB must be wrong. You don't tell us how you made that determination, so I don't where it went wrong. But it might be that small with compression. The value's size is 1GB; so it can be stored, but it can't be escaped for normal output. Assuming bytea_output is set to 'hex' (the d...
0
0
1,764
2023-08-02T09:24:06.773
database_errors
dba.stackexchange.com
870,985
Unauthorized access in reverse ssh tunnel
I created a reverse ssh tunnel between an internal work website and my home workstation. My aim was to work on the remote internal website from my workstation. There is only a computer between the ends and the issue comes from it. On that computer, there is a ssh client that initiates the tunnel. There is also a ssh se...
Looks like your lsof -i ist just seeing one of these failed login attempts. To see similar output you might try to ssh to windy like [CODE] and watch lsof output while your login attempt asks for a password. TomTomTom
0
0
304
2017-08-29T09:42:15.647
infrastructure
serverfault.com
25,264
Cannot start SQL SERVER SERVICE in Windows Server 2000
This morning this problem occurs when my co-worker says they cannot connect to [CODE] . I've checked the server and found that the [CODE] is currently stopped. The problem is I cannot start it manually I've also tried to start the service in [CODE] and there's still no luck. We are using [CODE] Here the screencaps: Her...
You don't mention the version of SQL Server you are running, however, are you up-to-date with updates? There have been fixes for Access Violations in SQL Server that you may not have at this time. Here is an MSDN post that has some relevance (though it is specific to SQL 2008): sql server 2008 is terminating because of...
2
1
3,582
2012-10-02T09:48:21.870
database_errors
dba.stackexchange.com
817,712
How to check if MS linked server is using SSL
I use MS SQL server with valid certificate and with encryption turned on. I added linked server using this script: [CODE] I would like to know if my connection is really encrypted. I tried to use: [CODE] but it doesn't show linked connections. Is there any way how to detect if linked server uses SSL encryption? Any hel...
Use wireshark to look at the packets. If you see a bunch of encrypted packets flying across the wire to and from the servers on the ports you want, then you are in good shape. You should also be able to identify what protocol is being negotiated (tlsv1.0 or higher). Shoot for tlsv1.2, the others are considered broken. ...
0
0
1,274
2016-11-29T16:55:32.523
database_errors
serverfault.com
895,369
Checkpoint Hide NAT feature and dynamic source port selection
Checkpoint firewall have two NAT modes: Static NAT (1-to-1 internal IP to external IP) and Hide NAT, which is called "overload" in the Cisco and so on. It is not being said in clear, but it seems that Static NAT doesn't change any port numbers, only IPs. The Hide NAT, in contrast, changes source port on outgoing packet...
You can change the port with static NAT, source and destination. Just look at the NAT tab of the policy and ond the left theres the original packet (the condition that has to match to trigger the translation) and on the right you have the translated packet where you can make the needed changes. So, all you have to to i...
2
1
2,605
2018-02-02T14:20:34.537
infrastructure
serverfault.com
835,494
SVN tunnel via SSH apparently blocked but SSH still open
I have just tried to setup subversion on a new server. The connection is being made via an SSH tunnel but isn't getting through, I suspect from a few bad login attempts, although I'm not sure there were 6. I can still login as root via SSH normally: [CODE] But get this error in the logs for the attempts via my SVN clie...
This turned out to be an issue with the client upgrading it or using another client worked fine.
0
0
381
2017-02-28T20:06:53.543
infrastructure
serverfault.com
1,048,814
rsyslog unexpected end of file on log files with OMFileZipLevel
OS: Centos7 rsyslog: 8.24.0 I have various hosts sending logs to my centralised [CODE] server. I use [CODE] option in my config file to compress my logs and then [CODE] anytime i wish to view the contents. Since i have upgraded to [CODE] , whenever i try to [CODE] one of my compressed logs i get the following error: [C...
It seems a normal behaviour. I'm not sure about [CODE] parameter because [CODE] is usually applied to services that generates a lot of output, so I've never had a file not being written for 10 minutes (or 10 seconds btw)! GZIP is a stream compressor, so the files are written with a header and a tail, but the tail is no...
2
1
389
2021-01-06T14:32:47.517
infrastructure
serverfault.com
472,953
OpenVPN certificate removal and connecting with no certificate file on server
I've run into a problem, that I removed certificate files from the server. But client that has these files can still connect. I've found out, that I should revoke the certificate and that this can be done by changing line with that certificate in /etc/openvpn/easy-rsa/keys/index.txt to have R, not V, as first character...
It does not work because the workflow is wrong: you cannot just remove a client certificate from the server. The basic misconception seems to lie in the idea that OpenVPN and the Certificate Authority do have a communication channel so OpenVPN would automagically know which certificates you want to allow but this is no...
9
12
35,429
2013-01-28T08:59:34.123
infrastructure
serverfault.com
237,237
How to handle exception in REST API
Given a REST API, which throws an exception when handling a request from a client. Whenever the REST API throws an exception, it's logged and the application (in this case a console application) closes to prevent further damage. Should I send a response to the client whose request resulted in an exception, indicating t...
I've never seen any API letting the client hanging in a case of an error. Unless you have a very specific case where this makes sense ¹ This simply doesn't make sense, and such behavior would only result in a practically unusable API: This would slow the development of the client applications. Unless I read very, very ...
2
10
5,484
2014-04-28T09:42:55.547
api_errors
softwareengineering.stackexchange.com
188,897
Revision Tracking & Source Control for Azure SQL Data Warehouse
What is a good approaching for tracking incremental changes to database tables, stored procedures, etc for Azure SQL Data Warehouse? I am in the process of moving a large database over to Azure SQL Data Warehouse. The prior approach for change tracking was using a 'Database Project' in Visual Studio 2015. This allows e...
Microsoft has started work on this and there is a signup page for a preview version. In the meantime you may want to look at DBUp and FiveTran , although I haven't worked with either of these. Update : As of Aug 2019, it is publicly available in preview. https://learn.microsoft.com/en-us/azure/sql-data-warehouse/sql-da...
4
0
619
2017-10-20T05:10:23.310
database_errors
dba.stackexchange.com
842,914
Static Routing Configuration
My network looks like this: The PPTP Server is currently routing all inbound PPTP connections to 192.168.1.0/24, which is good as I expect Device A and Device B to normally communicate with Device X. I can also communicate to Device X from the workstation. With this configuration, my routing table in the main gateway l...
Via static routing you could accomplish your goal with static routing like that: On device x: route 192.168.2.10 via 192.168.1.1 route 192.168.3.10 via 192.168.1.1 route 10.0.0.103 via 192.168.1.1 or you can set 192.168.1.1 as the default gateway like this: route 0.0.0.0 via 192.168.1.1 On main gateway: route 192.168.2...
0
1
357
2017-04-06T04:21:38.167
infrastructure
serverfault.com
188,565
How to invoke anonymous functions in testing?
Below is Java code. I need to cover the below function. I searched for many websites, but I still have no ideas. Is there any methods to cover the override anonymous classes? [CODE]
No, there is no way to do that with annonymous classes. You can refactorize your code so: [CODE]
5
6
9,653
2013-02-27T08:31:19.260
api_errors
softwareengineering.stackexchange.com
186,996
Architecting an application with a single page javascript driven UI
I have a single page application where everything in the UI is javascript driven so any operation requiring data or updating of data is done via Ajax requests. The way things are setup right now is that my Ajax called are made to one ajax.php file which takes care of routing them to the proper service method. This work...
I suggest what you do, rather than having user IDs visible at the client end, you implement a token. It would work like this: User logs on, you take note of this on the backend and generate a token which has an expiry You return the token to the client (browser) For each subsequent request, you pass the token to the se...
3
2
557
2013-02-13T17:39:30.090
api_errors
softwareengineering.stackexchange.com
267,004
Creatin Products Database with Multiple Color Variations
I found this Q&A already, that describes my problem and a more or less satisfying answer: Create products with color variants Basically, I want to set up a database for products with different color variations. Here the solution is given of setting up a product-table, a color-table, and a product-color-table as a combi...
Firstly I would advise strongly against having a column for each colour - This will cause very slow queries and will scale poorly (There is also a data size limit on the ammount of data in a single row in Microsoft SQL Server so this could cause you problems if your number of colours grows). To represent the many-to-ma...
2
1
906
2020-05-12T12:27:31.880
warehouse_errors
dba.stackexchange.com
324,004
Crash errors from apache
(none):~# /etc/init.d/apache2 restart Restarting web server: apache2 reboot ... waiting (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs failed! (none):~#...
Check what process is listening on :80: [CODE] Also check what is the path for logs (maybe additional for vhost) - does it exist? does apache has permissions to access?
-1
1
312
2011-10-23T03:21:31.137
infrastructure
serverfault.com
199,684
How can I maintain a SQL schema upgrade that goes out to our users on a regular basis?
I work on a project that uses a SQL database as a back end, and a desktop app as a front end. We do releases on a regular basis, and as part of a release, our client needs to update their SQL server. Our business requires that we are upgradable from version 1.x to 1.y, and the way we've been doing it so far is by follo...
This is not originally my idea , but here's a manual way to do it: Create a "UpdateScripts" directory. Create a field in the database which tracks the ID# of the last-run script. Every time any change is made to the database structure, save it as a script in that directory, with a sequential number (such as [CODE] ) in...
2
7
1,923
2013-05-28T15:58:48.070
data_quality
softwareengineering.stackexchange.com
16,893
Data preprocessing, relative scale problems in features of same type
I am using Keras NN with theanos backend in Python. In my data i have multiple features of the same type but in different columns (on purpose). Here is an example. [CODE] When i go to process this, say MinMaxScaler 0-1, even though '1.' in both features should be the same, because both columns have different min-max va...
If want you want is to scale both columns using the maximum of both and the minimum of both. You can do it like this: [CODE] According to the documentation of sklearn that is what MaxMinScaler does, if you want to use predefined values for max and min, you can just change ma and mi. If you have more columns you just ha...
0
1
151
2017-02-11T10:05:52.190
data_quality
datascience.stackexchange.com
407,679
CMake Error - trying to install chromaprint
I am trying to install chromaprint and I am getting from CMake Error. I can't figure out how to fix it. Error: [CODE]
Install [CODE] : [CODE] and try again: [CODE]
0
3
1,069
2012-07-13T22:44:29.260
infrastructure
serverfault.com
233,220
Virtual Host on centos
I started virtual host on my VPS, I am having two websites on it, one which was already there and the second which I trasferred now, But before changing the name-servers of the new transfered wordpress site, I want to test it. How can I check it, whether its working with no errors, or some errors are there? When I type...
It looks like you've already changed your DNS, which is fine. But I wanted to mention that if you want to test your virtual host configuration before messing with the DNS settings (useful if you want to keep an old site live while you get everything ready on the new host) you can temporarily make the change in your hos...
0
1
735
2011-02-09T11:19:56.933
infrastructure
serverfault.com
543,222
SSL Connect timing out during handshake (client exchange re-transmission)
We have a Java LDAP client making SSL connection to AD. Some times the connect hangs with client and server re-transmitting Client Key Exchange and ACK packets continuously as shown below and eventually times out after some 5 mins. Any possible explanation and solution for this behavior. [CODE] WireShark ScreenShot: ht...
So, assuming that you are correct that the ACK is at a TCP level: If the client is sent a TCP ACK, but continues to re-send the content which was ACK-ed, then it follows that the server has received and registered the content but the client has not received and registered the ACK. Where are you collecting your data on ...
1
0
1,075
2013-10-02T10:10:53.613
infrastructure
serverfault.com
279,034
PostgreSQL: Performance: ORDER BY an indexed column is slowing down the query performance
[CODE] Here is the query plan: https://explain.depesz.com/s/UC9B Here are the indexes in the associated tables [CODE] The moment I remove [CODE] the query is considerably fast. However, [CODE] is indexed, why is this happening? Is there a way I could optimize the query? Please suggest. I need the result ordered by name...
It is normal that retrieving a sorted result is more effort. If you want the total count, all rows have to be scanned, even if you only return the first 50. You could try [CODE] to see if a sort would be faster. My recommendation is not to retrieve the total count together with the query. The optimizer's estimates are ...
0
1
268
2020-11-02T08:27:27.853
database_errors
dba.stackexchange.com
245,301
Do long-running and locking queries on subscriber databases cause performance issues on the publisher dbs?
One of our servers has a subscriber database. I've not used replication before and cannot find information on how the mechanism works. Does the publisher have to wait on the replication completing before transactions are committed or does it make use of a queue or the transaction log before applying changes to the subs...
One of our servers has a subscriber database. I've not used replication before and cannot find information on how the mechanism works. Does the publisher have to wait on the replication completing before transactions are committed or does it make use of a queue or the transaction log before applying changes to the subs...
2
2
807
2019-08-14T09:33:39.630
database_errors
dba.stackexchange.com
874,524
Cant connect to Centos7 server with working internet - Cant ping, ssh, etc
Current Setup I am working on a fresh install of centos 7 from a minimal iso file that was installed through a bootable usb. The computer is an old apple machine that has run centos 7 before without problems. The machine has 1 account, named 'mas'. Problem I can't access port 80 or 22 from outside the machine. Situatio...
The default firewall on CentOS 7 is not [CODE] but [CODE] . [CODE] is disabled but [CODE] is active. You can disable [CODE] completely : [CODE] Or you can add allow rules for your services : [CODE] -- Edit for setting up [CODE] [CODE] You can define the zone editing [CODE] [CODE] Associate the zone to your network inte...
1
2
9,547
2017-09-19T21:06:15.403
infrastructure
serverfault.com