Dataset Viewer
Auto-converted to Parquet Duplicate
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
251,733
Task Scheduler runs as hidden, how to make it visible?
This small but really annoying thing worked well on the Windows Server 2003 machines. After upgraded to 2008 and it's new flawless Scheduler, the scheduled Console Applications are running in hidden mode. I can't for my life find out, even with google other that have same problem? Every task has a "hide this" option th...
This isn't possible anymore: services are run on a different desktop than users, and this affects the Task Scheduler as well. More info: http://blogs.technet.com/b/askperf/archive/2007/04/27/application-compatibility-session-0-isolation.aspx What I'd suggest is that the scheduled tasks pipe the output to a log file, e....
7
5
34,113
2011-03-10T07:16:58.107
infrastructure
serverfault.com
449,701
Secure upload of big files to Ubuntu server
I need to allow my users an easy way to create a directory and upload a few files to this directory on my Ubuntu server. I also need this to comply with the following requirements: Must use the local users for authentication (would also be nice if it can be just a subset of these) Everything uploaded must be uploaded a...
A secure FTP server is the way to go. Just try pure-ftpd or vsftpd with explicit or implicit SSL encryption for both data and control channels. You can configure both to fulfill all your requirements.
2
1
758
2012-11-17T13:58:45.447
api_errors
serverfault.com
531,443
Keeping ssh connections open on Windows?
I know that on Unix Systems, you can keep an ssh connection open. Step 1: Create a ssh configuration, for example: [CODE] Step 2: Start ssh with the [CODE] parameter. Is there something equivalent under Windows to reuse ssh connections? Maybe I looked at the wrong places, but I didn't find any good links on this topic....
You need to use openssh for windows, either through cygwin, or this port: http://miked.ict.rave.ac.uk/display/sshwindows/OpenSSH+for+Windows
6
2
5,563
2013-08-16T09:05:59.390
infrastructure
serverfault.com
1,018,358
Apache Webserver no starting, please help, Newbie
I have centos 7 , and everything was working fine untill I restarted apachectl. And it gave me following error and not starting after this. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. Result for systemctl status ...
Form the log, it seems the apache didn't restarted correctly or some other process use port 443. You probably need to check which process use that port, if you use netstat, you might try to use this following command: [CODE]
0
0
118
2020-05-23T11:56:52.547
infrastructure
serverfault.com
448,453
Deriving entities in different domains from one DB table
Let's say I have a table for storing users. In this table, I have data like id, name, address, bank account and birthdate. Also, I have two domains in my codebase; in one of them, I need a user entity with id, bank account and address; in the other domain, I need a user entity but only with name and birthdate. The firs...
Modeling-wise: this is fine. The modelling should come from the domain , not the tables, and the tables are an implementation detail. You might even change the table structure to normalize/denomalize (in the Codd sense) the data. When it comes to implementation, you may need to do something to cope with the fact that y...
0
2
91
2023-11-03T18:26:44.107
api_errors
softwareengineering.stackexchange.com
1,085,959
How to determine why a static external IP address changed in GCP?
I noticed that a static external IP address changed in GCP in our project. I'm trying to determine why and when, and i'm not finding any useful information in the google console. Is there any way to view history of a external IP? Creation date, deletion date, etc? Has anyone heard or experienced Google changing a stati...
In Google Cloud, there are two lifetimes for external public IP addresses: reserved and ephemeral. There are also two types: global and regional. A reserved IP address does not change. These addresses are allocated to your project and can be moved between resources. An ephemeral IP address is assigned to a resource and...
-1
1
1,001
2021-12-10T17:47:24.883
infrastructure
serverfault.com
212,590
MySQL: Reference aggregate function in conditional select
I'd like to reference aggregate function like this: Sample Data: [CODE] Query: [CODE] Expected Result: [CODE] Fiddle: http://sqlfiddle.com/#!9/08af68/2 But this results in the error: Invalid use of group function I've simplified things here but I'm trying to use this in a much more complex scenario where the [CODE] val...
Cleaver. But no go. To achieve what you ask for would take two passes over the data. Things don't work that way. The first pass is to find the max for each group; the second pass is to check all the value against the maxes. You can do it with a subquery, an [CODE] or several other ways. Follow the tag to see ways to do...
2
1
329
2018-07-18T19:39:59.630
database_errors
dba.stackexchange.com
757,760
Is my gateway a fixed or a dynamic IP?
I have some virtual machines under my control with Azure, some of them have public IP and some of them don't. In regards to the one that don't: I can see that they still have internet outbound (not inbound) access via NAT, connecting to some virtual gateway 10.0.0.1. So my question is: will the public IP assigned to th...
You choose if you want it to be static or dynamic when you create a public IP for your instance. At any moment, you can also change the configuration. If you are using ARM, you should see the IP address resource in the list. Click on it and select Configuration. Just change it to your desired state. This also applies t...
0
0
798
2016-02-17T09:34:08.250
infrastructure
serverfault.com
888,428
Windows Server takes too long to send SYN-ACK
We have a Windows Server 2012 R2 that hosts our websites on IIS. We also have an Ubuntu 16.04 server which runs Nginx 1.10.3 to proxy incoming requests to our backend Windows server. Both these servers run as VMs on ESXi. We have noticed that our Windows Server sometimes takes too long to send SYN-ACK in response to in...
To my knowledge, it's possible that the good old Nagle is kicking your balls here. I would recommend you to test switching it off and also reduce the internal ticks-to-reply counter. This is done in the registry: In [CODE] Create a DWORD [CODE] with the value of '1' Create a DWORD [CODE] with the value of '1' Create a ...
4
1
847
2017-12-16T11:55:21.727
infrastructure
serverfault.com
1,017,501
What's the proper way to use certbot for subdomains served via nginx?
I figure I must be missing something, because every time I try to load content by hitting the subdomain in my browser, it says "not secure", even though I went through the steps that followed after running [CODE] without error. Here's my config file for the vhost: [CODE] I don't know if this matters, but... the main ro...
With the HTTP-01 challenge you can only get certificates for specified (possibly with multiple SAN) host names. According to Certificate Transparency logs for [CODE] you don't have a wildcard certificate for [CODE] , so you couldn't even use the same certificate for your subdomains. (Getting wildcard certificates is po...
0
1
3,091
2020-05-17T13:58:57.380
api_errors
serverfault.com
37,439
The effort and details for setting up a clustered, load balanced instance on Amazon's EC2
I've been trying to gather all the pieces together for setting up a load-balanced cluster of three servers (2 for Web nodes and one for MySQL) as a LAMP stack on EC2. This is only to run performance tests on an application, and I need to gather the appropriate information so that I can estimate the time it will take. I...
As mentioned, a compute unit is roughly an older 1.0-1.2 ghz server-class processor, and you'll want to consider Amazon's Elastic Load Balancing. For a simple load balanced LAMP stack, you should start with a small instance type and work up from there based on your testing and benchmarking. memcached works fine on EC2,...
2
2
989
2009-07-08T02:25:54.967
database_errors
serverfault.com
638,159
Openshift permission denied for upload and changing directories through sftp in filezilla
I can't upload or change directory permission through sftp in filezilla; copying is fine though. I'm getting permission denied for this. Even through PuTTy sftp, sudo returns a permission denied. How do i get around to accessing files just so i can change the alias for phpMyAdmin? I'm using the login details given by O...
Users of OpenShift Online do not have access to sudo. Thought you can(this is 100% unsupported) copy https://github.com/openshift/origin-server/tree/master/cartridges/openshift-origin-cartridge-phpmyadmin to its own git repo and add that as a custom cartridge instead of phpMyAdmin. If you did that you can edit https://...
0
1
1,094
2014-10-19T19:42:34.140
infrastructure
serverfault.com
351,627
Why I get different network traffic values from dom0 and from domU?
I'm using Xen 4.0.1 with Linux 2.6.32-5-xen-amd64 (standard packages on a Debian Squeeze system). From Xen Networking : For each new domU, Xen creates a new pair of "connected virtual ethernet interfaces", with one end in domU and the other in dom0. For linux domU's, the device name it sees is named eth0. The other end...
Two guesses: 1. Traffic that came in before the DomU xennet was ready to receive. 20℅ is pretty much, though. Do you boot often and have low normal traffic? 2. Broadcast/Multicast Traffic not targeted to the DomU? Is there perhaps an incoming firewall on the DomU?
3
0
295
2012-01-19T18:54:18.320
infrastructure
serverfault.com
83,690
Is there a way to replicate certain part of collection in Mongodb
Is there away to stream certain part of collection in [CODE] or [CODE] from master server to another server? I need to duplicate only certain collection Or if it isn't possible, are there any other alternative for database that doesn't enforce schema?
MongoDB at least to current version 2.6+ for sure does not support that as build-in functionality. I guess because a replica set using selective replication won't be consistent. There is a feature called filtered replication in Couch but never tried it: http://wiki.apache.org/couchdb/Replication#Filtered_Replication
0
1
1,651
2014-11-26T11:33:52.993
data_quality
dba.stackexchange.com
385,802
Manage multiple zLinux SuSE Servers
My shop virtualizes a few hundred SuSE 11.1 servers through IBM's zVM hypervisor . (If you've never heard of zVM, it runs on a mainframe and virtualizes Linux in the s390x architecture. It's a different beast than most of you are used to. The guys who wrote zVM left IBM to form VMWare Inc.) Currently, we manage our ser...
You're asking for a large number of characteristics that you won't find in one tool. Many systems engineers end up using multiple tools to manage an environment. This is no different. Server provisioning can be accomplished with Cobbler . It's a good provisioning tool with zVM support . Cobbler can handle the system bu...
1
2
329
2012-05-03T18:08:13.447
pipeline_ops
serverfault.com
233,126
Tilde expansion not working when I hit tab on ubuntu 10.10
I try to do this: [CODE] where the \t is tab character and I expect it to be expanded by bash_completion to this: [CODE] but it doesn't. I've uncommented the following lines in /etc/bash.bashrc and logged out and back in. [CODE] What gives?
You probably have: [CODE] try running this: [CODE] then try your [CODE] again. If that works, add [CODE] to your [CODE] , or wherever you put your configs for bash.
1
0
572
2011-02-09T06:30:49.270
infrastructure
serverfault.com
368,250
Server Cluster Design/Setup
OK So I am not sure if this is posted already but let me explain my goal and what I am trying to do. Really need some help on this as I am not really linux or server savvy yet. I know the basics with SSH and things like that but nothing advanced. So my goal is to have this: 2 Virtual Machines (Cloud from SingleHop.com)...
My advice to you is this - you admit that you're not a very experienced linux sysadmin. As such, you need to start simple . You need to get your head around managing a single linux server before you can venture into managing several like this in a complex configuration. All things considered, this is not a very complex...
-1
1
202
2012-03-10T05:17:47.807
database_errors
serverfault.com
1,007,156
Using su with service account for management
We're going through the arduous process of configuring sudoers for least privilege. We were going over what was needed in a meeting and our manager recommended that rather than use our own account with sudo, we [CODE] for the service being managed. This seemed a little strange to me, and potentially harder to administe...
There is many reasons for his suggestion, one of the issues you will encounter when running a service with your own account are : 1- The service that is running by a service account loads the environment variables of that account knowing that most services needs those environment variables, they will be not accessible ...
0
0
1,895
2020-03-16T20:58:35.267
infrastructure
serverfault.com
682,414
Possible reasons for extremely low RAM usage on a debian 7 VPS
After a fresh install of a debian VPS, my system shows very low memory being used. I am not sure if this is even a issue. But according to 'free -m' My system is using only 21MB of RAM [CODE] This is a small debian 7 VPS with 512MB RAM running postgresql/php/lighttpd I am concerned because resource intensive queries ar...
I think you're misreading the memory usage a bit. Small actual memory usage can be normal, however in your case more is going on. According to your "free -m" output: [CODE] Since you are using almost all of your swap your system is partially running from swap and performance may be severely degraded. Being worried is g...
2
0
575
2015-04-13T18:52:45.410
database_errors
serverfault.com
1,134,089
IIS 8 Default SSL Bindings Break
Scenario: We have two sites on Windows Server 2012 R2 running IIS8. There are two wildcard certificates for each domain. *pharmlogs that binds to the site and subdomains pharmlogs.com and *traxworx that should bind to domain and subdomains of traxworx.com (shows privacy security error for traxworx) If I uncheck "Requir...
I found the issue. One of the sub-domains still had the "Require Server Name Indication" unchecked. Trick is that every domain and subdomain must have the "Require Server Name Indication" checked and associated with the correct certificate. Thanks all for the input.
0
0
103
2023-06-16T13:42:26.193
infrastructure
serverfault.com
239,599
Unable to connect to one server at all + RDP logon problems on other servers
All servers I am writing about below are running Windows 2003 R2. We have a 2003 native domain with two sites (connected by VPN) and two DCs (one DC in each site). It started a few hours ago - my database server stopped responding gradually, and I already couldn't log in by RDP at the time I discovered this. Event View...
We've dealt with similar symptoms to the ones you describe in the past - logging in at the console just showed a blank screen, unable to RDP, etc. Turned out to be a NOD32 update causing the issue. The first time it happened a hard reboot was the only way to resolve the problems. Second time, we had to wait for ESET to...
0
0
715
2011-02-24T08:05:06.510
infrastructure
serverfault.com
115,000
How does the universal approximation theorem connect to classification problems?
Feedforward Neural Networks are used a lot for classification problems and they seem to do a good job. How can this be justified? As the universal approximation theorem for neural networks assumes there is continuity, which clearly is not the case with classifications?
There is continuity. Remember that a neural network doing “classification” actually outputs probabilities of class membership. Therefore, the neural network is a continuous function between the feature space and the interval $[0,1]$ , and the universal approximation theorem applies.
1
2
24
2022-10-07T19:58:09.327
data_quality
datascience.stackexchange.com
378,357
iptables dos limit for all ports
I know how to use limit conntrack option to allow for DoS protection. However, I want to add a protection to limit no more than say 50 connections for each port. How can I do this? Basically, I want to make sure that each port can have no more than 50 connections , rather than globally applying 50 connections (which is...
You will be looking at the [CODE] switch. --hitcount [hits] match requiring a certain number of hits within a specific time frame. The maximum value for the hitcount parameter is given by the "ip_pkt_list_tot" You will also be interested in the [CODE] switch. I believe a sample rule using port 80 and restricting connec...
0
1
2,152
2012-04-11T05:03:26.613
infrastructure
serverfault.com
331,669
How to fit a rules engine in a microservice architecture when it requires lots of input data?
Current situation We are implementing (and now maintaining) an online shopping web application in a microservice architecture. One of the requirements is that the business must be able to apply rules on what our customers add to their cart, in order to customize their experience and the eventual order. Quite obviously,...
Let's take a step back for a second and assess our starting place before writing out this likely-to-be-novel-length answer. You have: A large monolith (the rules engine) A large quantity of non-modularized data that gets sent around in bulk It's hard to get data to and from the rules engine You can't remove the rules e...
13
9
11,957
2016-09-22T00:31:53.547
api_errors
softwareengineering.stackexchange.com
33,618
Mozilla browser open issue in the Selenium Webdriver
Getting below issue while opening Mozilla Firefox browser using selenium webdriver. Browser opens for just few seconds (1-2 seconds) and it gets closes automatically. Error: [CODE]
For Selenium 2.53, use Firefox 45.0.2. It will work perfectly. You can also try upgrading to Selenium 3, but then you will need to upgrade the Firefox Version above 47 and also need to use GeckoDriver with it. Both configurations work properly for Automation. You can choose whichever you are comfortable with.
0
1
125
2018-05-10T09:01:58.837
data_quality
sqa.stackexchange.com
215,157
SSMS crashes when attempting to create a database diagram
I'm currently using the latest version of SSMS (17.8.1) on windows 10 and everytime I try to create a database diagram it crashes without giving me any error message. I've already tried to re-install SSMS but the problem still occurs.
I've found that the database diagram tool seems to crash if you modify things outside of the diagram. Diagrams appear to remain stable if: The database diagram tool is used to do all of your modifications, thus retaining all metadata of the process within the diagram. Your database structure is modified outside of the ...
3
5
4,433
2018-08-17T07:37:39.043
warehouse_errors
dba.stackexchange.com
147,019
How Sql server 2012 join cardinality is calculated?
We have data warehouse based on SQL Server 2012. Often we get poor cardinality estimates for joins impacting downstream operators and slow execution, memory spills, etc. Is there a good article or whitepaper or blog or video or something that explains how cardinality for joins are calculated? Update stats with full sca...
To answer your first question, Microsoft released a white paper for the new cardinality estimator in SQL Server 2014. That white paper describes how join cardinality was calculated in the 2012 CE. I also know of a blog post that dives into the internals of join cardinality quite a bit. To answer your second question, I...
0
2
348
2016-08-17T02:08:53.327
warehouse_errors
dba.stackexchange.com
836,368
PostgreSQL Default Unpassworded Account
I've a PostgreSQL database and our internal vulnerability tool complaining about [CODE] . The problem that I can't realize which account unpassworded. I've created a few accounts but everyone has password. [CODE] account has password too. When I perform : [CODE] I got the following output: [CODE] Any advices how to res...
Ok, it looks like I have found the solution, thanks to this SO topic: https://stackoverflow.com/questions/23641823/check-if-a-role-in-postgresql-has-a-password-set When I issued [CODE] [CODE] So, roles [CODE] and [CODE] indeed didn't have the passwords. Updated password for these accounts by: [CODE] And it looks like n...
1
0
3,741
2017-03-05T11:03:05.437
database_errors
serverfault.com
271,015
VPS (LAMP) Runs out of memory every so often
I have a VPS on CentOS 5, running LAMP. Twice now in the last 3 months the server has had to be rebooted due to being out of memory. Downtime ends up being an hour, before someone can look at it. I have munin running to create some graphs, and am trying to figure out where to be looking (which logs) to find out what we...
VPSes are pretty notorious for going down as soon as your memory is used up. Once your memory is gone, it tries to hit the disk swap, and as soon as that happens on a VPS you are going to be dead. I can't tell exactly based on that graph - do you have 256M or 512M RAM on your vps? If you are at 256 it isn't going to ta...
1
1
185
2011-05-18T14:02:01.643
infrastructure
serverfault.com
456,368
How to tell rsync not to touch the destination directory permissions?
I am using rsync to sync a directory from a machine to another but I encountered the following problem: the destination directory permissions are altered. [CODE] The problem is that in this case the permissions and ownership of the [CODE] forlder will be assigned to the destination folder. I do want to keep the permiss...
If you want to exclude the [CODE] directory from having its permissions altered, you would have to literally not include it in the command (since you obviously want to maintain the permissions of everything you are copying). You can thus either do this: [CODE] Or, in case you have files or directories starting with a d...
3
6
3,190
2012-12-08T16:48:06.690
infrastructure
serverfault.com
1,017,191
TCP Connection to a Google Compute Engine Virtual Machine
I'm having trouble making a TCP connection to a Windows virtual machine instance that I created in Google Cloud Platform's "Compute Engine". Within the Windows machine, I have tried specifically opening the ports I'm using (135 and 445). I've even tried disabling the firewall completely on that machine without any luck...
It looks like this was happening because my ISP is silently blocking my attempt to connect to Port 445. My local development machine and my GCP Windows VM are not on the same VPN or network. My attempts were likely blocked by my ISP because an external port 445 connection looked suspicious based on past vulnerabilities...
2
0
768
2020-05-14T18:27:31.660
infrastructure
serverfault.com
853,612
letsencrypt certbot "Failed to find executable apache2ctl" with NGINX
Today I get error because my webserver server EXPIRED SSL OK I go into os server and run Let's Encrypt script fastly manually [CODE] OK there is some weird message about "apache2ctl" for Apache2 nevermind I'm using NGINX in openresty and typically run another command to renew all certificates [CODE] and then I got anot...
At first I backup machine and then this is my steps [CODE] after that I check it and command option "renew" works OK without errors even with runned webserver again [CODE] Maybe it help someone.
2
1
4,178
2017-06-02T10:39:35.827
infrastructure
serverfault.com
53,351
XOR binary values greater than 64bit
I have a binary blob holding the results of a SHA256 hash that I XOR with a script generated SHA256 hash. For testing I am using the values [CODE] and [CODE] for the test hashes. [CODE] PHP: [CODE] MYSQL: [CODE] As far as I can tell, the issue is that bit-wise XOR is limited to 64bit values, but I can't find a straight...
Perhaps you could the following: split each value into little two character strings convert each 2-character string into a decimal numebr XOR each decimal number side by side CONCAT all results Lower Case the Result Sounds simple, eh?? Wanna see the code in MySQL ?? Here we go ... [CODE] Wanna see it executed ??? Here ...
2
1
1,031
2013-11-14T22:54:06.853
database_errors
dba.stackexchange.com
785,344
How to execute some commands before the user scripts in cloud-init
I'm trying to run some scripts and config using a multipart config. [CODE] The problem is the order in which the scripts are executed... - First yum install scripts - Then the bash scripts - Then the [CODE] scripts then is the docker service hasn't been started when the user scripts commands are executed I'm using an A...
@smoser from the irc #cloud-init helped me look in [CODE] you'll see one file named [CODE] and the other files that are in your multipart are named by their filename. The scripts in that directory are run in C locale sorted order (as if by runparts) So if you change the name of the script you've added from [CODE] to [C...
2
3
2,930
2016-06-21T15:31:40.590
pipeline_ops
serverfault.com
16,064
Helm Error: INSTALLATION FAILED : manifests contain a resource that already exists
When I run the helm command to install [CODE] , I get [CODE] I get the following error, Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole "mysql-operator" in namespace "" exists and cannot be imported into the current release: invalid own...
You can see everything helm has installed with [CODE] Which should return something like this [CODE] The problem here is that the resource [CODE] is currently installed into the [CODE] namespace. In order to delete it and recreate it you can do, [CODE] Then you should be able to run the above command.
1
2
13,272
2022-06-03T20:16:46.920
pipeline_ops
devops.stackexchange.com
44,805
Deploying database changes in high availability environment
We are currently looking at our deploy process, which consists of an application tier and data tier for a web solution. We'd like to develop a deployment strategy that does not require downtime for our sites. From an application point of view this is simple enough - we have a load balanced environment, and can turn ser...
If you're talking SQL Server, I have some specific advice about making database changes backward compatible. The ideas and concepts are quite similar to other platforms, but the code samples won't help much. The basic idea is this: make your changes in such a way that they don't require downtime and that they don't bre...
3
4
591
2013-06-19T01:47:20.233
database_errors
dba.stackexchange.com
685,727
How to configure IIS server to redirect sub domains?
I have a machine in my network which hosts a website using IIS 7.5. I can access this website from the internet, using port forwarding on my router. So far, so good. Now and want to host multiple websites using sub domains. Now I have this (dummy ip): [CODE] and I can view my site. What I want now is to add sub domains...
You can't do what you are trying to do! With http://251.25.185.52/ you are browsing to an IP number. http://site1.251.25.185.52/ is neither a valid IP number nor a valid IP name. I understand what you are wanting to do, but this isn't the way to do it. You want to register a domain name eg mydomain.com. You then want t...
0
1
1,214
2015-04-26T22:26:07.460
infrastructure
serverfault.com
30,288
List of webelements getting cleared during my test run?
I'm trying to compare two different tables using the method called [CODE] located at the end of the [CODE] method below. [CODE] The issue i am seeing is that when i print out the first row of [CODE] in the main method, it prints out correctly. but within the VerifyOrderSummary method, it prints out a blank line: [CODE]...
I would not recommend to use [CODE] objects as the carriers of some long-life information. They might change depending on the changes of your page. Instead I would recommend to have the following approach: You have [CODE] list that you have just populated somehow: [CODE] Then you should create a list holding the types ...
3
1
5,764
2017-10-28T21:14:43.167
data_quality
sqa.stackexchange.com
722,890
Configure Gitlab to use FreeIPA as LDAP server
I'm running in ran into a bit of a trouble and I don't seem to be able to fix it. Please follow the scenario bellow: I have two servers: ONE (10.0.3.10): Ubuntu based, having Gitlab (as deb package) installed with the following configuration /etc/gitlab/gitlab.rb [CODE] TWO (10.0.3.100): Oracle 6.5 based, having FreeIP...
You have two problems in your configuration: You are using too generic and incorrect settings: [CODE] Instead, they should be [CODE] Your check for users is done against wrong subtree: [CODE] Instead, you should use main subtree: [CODE] Explanation FreIPA stores users and groups in the containers under [CODE] , e.g. [C...
3
4
5,716
2015-09-17T00:04:57.833
database_errors
serverfault.com
823,007
Third party trying to test LDAP(s) port on our server
So we've been trying to set up an LDAP sync with an outside vendor. We have a Cisco ASA, which I'm fairly confident is configured correctly as far as NAT/PAT goes. I also opened the ports on the server itself. So here is my question, which may be incredibly stupid....but I'm more of a networking guy so I could definite...
You can test some service with telnet, as it handle the connection handshake correctly, you don't need anything on your side. I do it a lot with mail server to test the SMTP. (telnet ip 25 can test if the remote smtp server answer) For your question for LDAP, the telnet prompt should turn all blank if the remote LDAP s...
1
0
1,266
2016-12-28T12:29:08.250
infrastructure
serverfault.com
644,488
One-way audio problems with SIP over AT&T
I have a customer who has an VOIP PBX connected to a Level 3 fiber connection. He has offices all across the country using different ISPs. Two of those offices use AT&T, both in different states. One is T1, the other is DSL. For the past week, every day around noon EST, both AT&T sites have one-way voice issues where t...
One-way audio with SIP/RTP calls is caused by one of the pair of RTP streams not being established. This is either a routing (i.e. NAT) problem, or a firewall problem. By default, SIP usually causes RTP streams to be established over UDP with destination ports on either side between either 10000-20000, or 16384-32768. ...
0
1
2,665
2014-11-14T21:34:34.787
infrastructure
serverfault.com
107,218
Pitfalls to using Gluster as a home/profile directory server?
I was asking recently about options for divvying up access to file servers, as we have a NAS solution that gets fairly bogged down when our users (with giant profiles, especially) all log in nearly simultaneously. I ran across Gluster and it looks like it can cluster different physical storage media into a single virtu...
Theorically, GlusterFS is an answer to your need. Using GlusterFS, you can easily create RAID0 (type cluster/distribute) and RAID1-like volumes (type cluster/replicate), distributed across many machines. GlusterFS architecture lets you stack translators in a way you can create 2 distributed volumes, replicate them, and...
4
2
3,977
2010-01-28T15:04:09.650
infrastructure
serverfault.com
264,638
ORDER BY on field that isn't in a SELECT using DISTINCT or GROUP BY to get distinct records
Migrated from MySQL where this query worked: [CODE] Basically, get a list and sort it by a user/company defined [CODE] that is not based on [CODE] , [CODE] , or [CODE] . Now that I'm in Postgres, this query does not work and gets a: [CODE] Doing this however returns duplicates because there are additional fields not li...
Actually, did manage to figure it out with: [CODE]
0
0
36
2020-04-08T22:31:11.313
database_errors
dba.stackexchange.com
144,021
Connecting Remote Shares via Powershell
I had a big problem which I just happened to solve, but it's a permissions issue I don't quite understand. Unfortunately I'm in a tight bind and no amount of googling in the past week has really helped, so perhaps someone could explain what happened here: As part of an interface out to our customers we developed a Powe...
Alright, so this solution has turned out to be pretty ugly. The end result is that I have to run the powershell command via the Powershell job step type and run it using xp_cmdshell in a sql job step type. Running it in both contexts guarentees the drive is mapped. I then run a secondary step for both environments in w...
0
1
511
2016-07-15T16:02:36.503
database_errors
dba.stackexchange.com
587,832
Do I have to update my snakeoil certificate after updating openssl (heartbleed)?
I just updated my debian wheezy server to the newest version of the openssl package which has the heartbleed bug fixed. I do support SSL on my server, but only with a snakeoil certificate. I was just wondering if there is actually any security concern about updating the snakeoil cert as well or can I just leave it as i...
No, you do not need to bother to update them. It is true that now that heartbleed bug (possibly) has exposed your private key, any third party on network path in between your users and your server ("man in the middle") can see all data as is it was not encrypted. However, for snakeoil certs, that does not differ much f...
8
8
1,759
2014-04-09T17:12:45.687
infrastructure
serverfault.com
33,448
Splitting TempDB into multiples files equal to number of CPUs
The article SQL Server tempdb Best Practices Increase Performance suggests that I should split [CODE] into a number of files equal to the number of cores. So for 4 cores you get 4 files. By having the larger number of files, you can increase the number of physical I/O operations that SQL Server can push to the disk at ...
A ratio of 1/4 to 1/2 times the number of TempDB data files to machine cores has long been the recommendation... But there's now even better guidance. At PASS in 2011, my good friend Bob Ward, who’s the top guy in SQL Product Support, espoused a new formula: if you have less than 8 cores, use #files = #cores. If you ha...
8
13
11,395
2013-01-23T22:21:47.513
database_errors
dba.stackexchange.com
222,212
When running PowerShell script as a scheduled task some Exchange 2010 database properties are null
I've written a script that intends to retrieve the DatabaseSize of a database from Exchange 2010. I created a new AD user for this script to run under as a scheduled task. I gave this user admin rights to the Exchange Organization (as a last resort during my testing) and local admin rights on the Exchange machine. When...
Did you create a "Basic Task" or a "New Task"? You can set the security options for your task if you use "New Task" directly on the first page of the dialog.
0
0
1,008
2011-01-13T21:01:58.193
infrastructure
serverfault.com
98,225
Can this UPDATE be faster with indexes?
[CODE] I have dropped indexes on [CODE] (except the primary key) because I figured since it is the table being updated, indexes would slow down the update. Other than that, I have indexes on these columns (in addition to primary keys): [CODE] The result of [CODE] : [CODE] I am using Postgres 9.4.
Query You [CODE] statement looks good except for one major problem. Fixed and re-formatted with some other minor improvements: [CODE] You don't need to join [CODE] a second time. And you also forgot to join the two instances, producing a cross join (as pointed out by @a_horse in the comments). I removed the redundant t...
2
1
1,402
2015-04-18T18:55:28.760
database_errors
dba.stackexchange.com
1,115,660
Google Cloud App Engine with network peering
I'm trying to connect App Engine application to MongoDB Cloud over a peering connection. All services in my GCP are using non-default network called "main". I've setup peering connection with terraform: [CODE] It works as expected. Presumably App Engine uses default VPC network. When I'm trying to create second connect...
You cannot have 2 or more VPC peerings that in your case, uses the same overlapping IP Ranges. This will create confusion since the routes will be created with the same priority. And as @jabbson pointed out, the app is not using any of your networks by default. so you'll need to create a serverless VPC access connector...
2
0
312
2022-11-14T18:32:08.173
database_errors
serverfault.com
107,637
Violation of the DRY Principle
I am sure there's a name for this anti-pattern somewhere; however I am not familiar enough with the anti-pattern literature to know it. Consider the following scenario: [CODE] is a member function in a class. For better or worse, it's heavily dependent on class member variables. Programmer A comes along and needs funct...
it is just called duplicate code - I don't know of any more fancy names for this. The long term consequences are as you described, and worse. Of course, eliminating the duplication is the ideal option if only possible. It may take a lot of time (in a recent case in our legacy project, I had several methods duplicated a...
10
18
2,336
2011-09-12T13:31:20.957
api_errors
softwareengineering.stackexchange.com
88,422
Linux RAID Device Partitioning Question
I have a server that has 4 1.5 TB disks. Every disk has identical partitions /dev/sd[abcd]1 200 MB /dev/sd[abcd]2 2 GB /dev/sd[abcd]3 1.5 TB (the rest of the disk) /dev/sd[abcd]1 are RAID 1 device with four disks and it's mounted to the /boot partition. md3 /dev/sd[ab]2 /dev/sd[cd]2 are two different RAID 1 devices and...
"There is no installed LVM on top of them.". -- This is bad. "it will take 6-7 hours to install a new server." -- I hope that includes racking, cabling, lunch, OS install, afternoon tea, and application configuration. "I have two identical servers" -- then that makes it even easier. Reinstall, this time with LVM. Autom...
1
1
358
2009-11-26T02:13:48.377
infrastructure
serverfault.com
165,508
screen / autossh question: easiest way to transparently integrate screen into my ssh?
I'm a bit new to screen and autossh: I'm simply looking to "fully automate" my ssh sessions, make them implicitly persistent, and have them automatically restore should my connection drop. I've tried using screen directly, but find some of its keystrokes (e.g. ctrl+a) interfere with my shell - i.e. they override shell/...
I use the following setup: I have an alias that connects using SSH to my server of choice, starting/reconnecting screen as needed. I also remap the Ctrl-A shortcut to Ctrl-Z because I use that one much less often and it's easy to type. [CODE] I can then open a terminal and type [CODE] , and I will connect to [CODE] . I...
4
4
1,120
2010-07-30T07:15:46.017
database_errors
serverfault.com
10,142
Using `dig` Ansible module?
I am trying to look up the IPv4 address (a single one, which I will [CODE] on!) for a given name using Ansible and use that as a fact "down the line". An MWE looks like this: [CODE] ... and fails as follows (relevant excerpt): [CODE] So I thought to myself I'd install the [CODE] library for the appropriate Python versi...
See: Ansible is using the wrong version of Python How can I specify the version of Python to use in an Ansible playbook? How to choose Python interpreter for Ansible playbook? See also Setting the Python interpreter that explains various configurations' options, variables, and debugging. Q: "None of that explains why -...
2
2
7,505
2019-12-18T00:06:50.437
pipeline_ops
devops.stackexchange.com
195,398
What problems can happen if an XML file is not backed by a schema?
What is a XML schema in plain simple terms? What will be the problem if an XML doesn't have a schema defined? An example can be very helpful.
The main problem I see is that it cannot be validated either against a DTD, or against an XML Schema. As such, you don't have any guarantee that what you received is what you expected. For example, if you are sending this XML file to someone: [CODE] How can he be certain that: is "id" always a number ? is "id" mandator...
2
5
276
2013-04-18T19:02:34.767
api_errors
softwareengineering.stackexchange.com
28,913
What corner cases exist when relying on undocumented behaviour to determine values selected by MySQL for hidden columns in GROUP BY operations?
Under [CODE] and [CODE] with Hidden Columns , the MySQL manual documents (added emphasis): MySQL extends the use of [CODE] so that the select list can refer to nonaggregated columns not named in the [CODE] clause. This means that the preceding query is legal in MySQL. You can use this feature to get better performance ...
I was thinking the [CODE] example you just used [CODE] If you shift to another type of [CODE] and impose [CODE] , ordering can come and go without warning in spite of the ill-advised reliance on undocumented behavior of the [CODE] . For this example, I will use Windows 7 use MySQL 5.5.12-log for Windows create some sam...
6
1
524
2012-11-19T12:46:40.690
database_errors
dba.stackexchange.com
637,609
Ansible error when unpacking some archives into /usr/local/lib
I'm running an ansible playbook on my machine, and every task completes successfully except for several steps that involve unpacking various zip and tar.gz archives into [CODE] . Here's an example of such an error message: [CODE] I can't figure out why this happens because manually running the command works fine. Is it...
This appears to be an ansible bug . You will probably be able to work around it if you read the ticket.
0
1
1,107
2014-10-16T17:53:39.783
pipeline_ops
serverfault.com
138,834
mysql Relay log file not found error while changing mysql data directory
I want to change data directory of my mysql server running 5.6.28 on centos 5.11. Its a slave to some master server. i have edited the config file ,moved the data contents from old directory to new required directory. When i tried to start the server it failed to start with below error in error log. /usr/sbin/mysqld: F...
From the manual : An absolute path remains unchanged; in such a case, the index must be edited manually to enable the new path or paths to be used. Previous to MySQL 5.6.5, manual intervention was required whenever relocating the binary log or relay log files. (Bug #11745230, Bug #12133) So if your binlog index was wri...
0
1
1,757
2016-05-18T06:24:45.023
database_errors
dba.stackexchange.com
388,051
Outlook Web App on Exchange 2010 - User added an image to his email signature in OWA, now cannot edit signature
Using a method like the one described here , a user who shall not be named (cough cough not me) hastily added an image to his email signature in OWA for Exchange 2010 w/ SP2. Now, that said user cannot edit his email signature! When crafting new emails the signature does appear. I assume this is a situation that the de...
You should be able to use the Set-MailboxMessageConfiguration EMS command with the -SignatureHTML and/or -SignatureText argument to reset the signature.
4
2
1,031
2012-05-10T20:03:58.643
infrastructure
serverfault.com
43,469
Appointments don't show up in outlook calendar
One of my users is having an issue with appointments in a resource mailbox pop-up that he didn't create. It wouldn't normally be a problem (just delete them, since it's actually an mailbox the previous holder of the position used as well). However, when anyone tries to look in the calendar in the normal day/week/month ...
What version of Outlook? 2007 SP2 in particular has some calendar bugfixes that may help. View -> Current View -> Events to show all your appointments as a list, that might help to track down elusive items
0
1
1,522
2009-07-21T11:51:14.627
api_errors
serverfault.com
169,292
how to configure influx properly
I am storing some data in influx and it is quite confusing that influx is 4-5 times slow as Mysql. I try to test by inserting 10000 rows in mysql and then in influxdb. and the stats are below. [CODE] my code for influx is given below, I used the same pattern to store in mysql. [CODE] Can someone give me an idea how can...
InfluxDB: 3% cpu; MySQL: 1%. Do you have something else to use the CPU for? Can you get InfluxDB to perform a MySQL [CODE] ? That will do all that work in a single SQL statement, and probably do it faster than 6 minutes elapsed .
0
2
498
2017-04-06T11:08:07.340
database_errors
dba.stackexchange.com
1,084,557
Is there a way to requeue bounced mails in Postfix?
We have a postfix server which delivery via a smarthost / relay. Due to a misconfiguration we 60 emails were bounced back. [CODE] Is there a way to requeue these mails or are they "lost" and have to be regenerated by the mail sender?
No. While the error is temporary, postfix will retry to send the mail in regular intervals. But with a final error like this the process is finished. The mail will have to be sent again.
2
6
1,686
2021-11-25T07:32:21.570
infrastructure
serverfault.com
282,349
How to insert duplicate values into a primary key column in a table in postgres?
I had a table as below [CODE] I had the following insert statements [CODE] In the above insert statements i am trying to insert duplicate 'id'. I am getting the error saying duplicate value the value already exits. Is their any other way that we can declare a column as primary key and duplicate the primary key
The point of a (primary) key is that it is unique. So, no, you simply cannot insert duplicate values in key columns. You may face an XY problem though and might probably ask a new question where you describe, in detail , what you actually want to do and how this can be achieved.
-2
1
430
2020-12-30T09:33:31.687
data_quality
dba.stackexchange.com
1,056,575
How should I further troubleshoot port 53 incoming network connections?
I have a Debian 10 Buster server connected to a fiber Internet connection. I'm attempting to run a DNS service on port 53 of the server. What tools or techniques should I use to determine why packets are not arriving at my DNS service on the server? System setup One network adapter, [CODE] connected to the fiber modem....
I got my local ISP to finally admit to blocking, and unblock port 53 by running traceroutes to port 53 (both TCP and UDP) from a remote shell and emailing them the results. They stonewalled me for 48 hours prior to that, insisting "no block exists"
0
0
725
2021-03-10T13:33:00.553
infrastructure
serverfault.com
959,784
Migrate server from 2008 to 2016 - Maintain same Hostname and IP
I have a server, DHCP1 running on Windows Server 2008 and I want to migrate it to Windows Server 2016 without downtime to the DHCP service. My problem is that I have to maintain the same hostnames and IP Addresses for the 2016 server. So I’ll have to bring down the 2008 server, replace it with a 2016 server and import ...
Migrate to a new name and IP to reduce conflicts and confusion. Also, reverting the change if necessary will be easier if the old one is still on the network. DHCP will discover the new DHCP server, that's what it is designed for. From a Windows role migration guide , emphasis mine: DHCP Server clients that attempt to ...
0
0
380
2019-03-25T05:52:13.060
infrastructure
serverfault.com
740,013
CentOS6.7 vsftpd 530 Permissions Denied
I'm running CentOS 6.7 and I'm trying to successfully establish an FTP connection using vsftpd. [CODE] I tried checking /var/logs/messages and /var/logs/xferlog but the log is empty. I also checked the home directory permissions of the local user and made sure that the user was listed in the userlist and not in the den...
Some options to check: Is it possible that the username you're specifying is in the /etc/vsftpd/ftpusers list and disallowed from logging in? (usually when a login is rejected before the pasword prompt, that's a sign it's a disallowed user account) Also, check to see if the user you're logging in with has permissions t...
0
1
2,176
2015-12-01T15:02:01.420
infrastructure
serverfault.com
113,140
MySQL - Small table popping up in slowlog, refuses to use index
So I have two very very small tables (~20 rows) that are hit very frequently and pop up in the slowlog (I'm also logging tables not using indexes). I tested using a large multipart index (that's just all the columns being selected) on this query: [CODE] However the query is still being logged (the QEP in this case show...
By default, MySQL logs ALL queries not using an index, but you can change that by setting a nonzero value for min_examined_row_limit - set it to 100 and these tables won't pollute your log anymore.
2
3
288
2015-09-03T19:33:14.157
database_errors
dba.stackexchange.com
740,420
Does data get bottlenecked when copying from one server to another when the two servers have different RAID configurations?
Suppose Server 1 is configured with 8 1TB disks in RAID 5. Server 2 is configured with 8 1TB disks in RAID 0. There is a link between the two servers but for the purpose of this question, lets suppose that the link speed is unlimited. I want to copy data from Server 1 to Server 2. Please advise which of the below state...
RAID 0 shouldn't be used. There's enough information out there detailing RAID levels that I don't think you need to benchmark this. I hope this isn't a homework question. What are the different widely used RAID levels and when should I consider them?
0
1
46
2015-12-03T00:37:43.160
infrastructure
serverfault.com
267,634
Analyst MSDB Access SQL Server 2017
i'm an accidental DBA for a company and having trouble figuring out this permissions situation. We have a new 2017 SQL server that I would like to get our report writer / analysts access to a few of the databases. She is in an "analyst" AD group with another analyst. That group is setup at the server level login's with...
There are several things that could cause SSMS to attempt to connect to a certain database at logon: If the user is in an AD group, and the login for that group has the msdb database set as the default. If the user belongs to multiple groups that have logins, I don't know which login it uses to decide which database to...
0
0
45
2020-05-21T16:18:55.463
database_errors
dba.stackexchange.com
471,307
Accessing web site/server from inside a NAT network
I've got a web server/file server running on a small network that is connected to the outside world via an ADSL line. Everything works great, but the problem we have is that we can't access the web site or server via the URL from inside the network, presumably due to NAT. My question is: is there any way around this? I...
Many firewalls/routers do not allow routing back to an internal host, like you're trying to do when you're accessing your internal server on it's externally masqed IP. Either get a firewall that has mechanics to help with these situations (A Cisco ASA can use DNS spoofing for example), or use hosts/internal DNS server ...
-1
1
95
2013-01-22T09:09:46.800
infrastructure
serverfault.com
449,074
ubuntu's average load never below "0.00 0.01 0.05"
I have several ubuntu 12.04 VMs running on a ubuntu 12.04 KVM host. Those of the virtual machines that are totally idle with no services (except syslog and the other "small" standard stuff of a fresh installation) show a constant load of "0.00 0.01 0.05" in top/htop as average 1/5/15. When there are "real" applications...
Actually the real reason for that is how load averages are calculated in linux. As of these days it's implemented as [CODE] which if you perform calculations manually will lead you to the fact that if the value once has increased over 93 (93 / 2048 = 0.04541015625 (which is rounded to 0.05 on output)) will never go bel...
1
2
781
2012-11-15T15:57:02.483
pipeline_ops
serverfault.com
801,729
Tracing Network Usage from Specific IP Address on Centos 6
I found this article http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ but I'm kind of stuck here. I'm running a server with Centos 6.8 64bit for hosting customers. I have about 100 IP addresses routed here and The server is using high consistent bandwidth throughout the day. I'm trying to figure ...
I don't know what your requirements are, or what resources you have available, but if I had this problem I would probably use Packetbeat .
-1
0
288
2016-09-08T02:17:11.783
infrastructure
serverfault.com
93,451
iptables question
I am currently under an SSH attack. The attack is very strange in nature, the attacker is using a botnet of computers and using them as individual login attempts (see log snippet): Dec 11 08:30:51 rhea sshd[16267]: Invalid user maureen from 78.43.82.153 Dec 11 08:35:24 rhea sshd[20012]: Invalid user maurizio from 201.2...
To setup a separate file, however, I can only see the logged data in dmesg. Messages from the [CODE] subsystem are logged via the kenerl logging mechanism. This shows up in dmesg output, and also usually ends up in your syslog via the services of [CODE] . If you're running [CODE] or [CODE] , these generally read kernel...
3
2
516
2009-12-11T16:24:40.323
infrastructure
serverfault.com
324,320
Is a one-to-none relationship one-to-one or one-to-many?
I am working on an existing database design. There is one table in which each row is created with only half the columns populated (the remainder are initially all [CODE] , except for an [CODE] column), and later a single [CODE] to populate the remaining columns (usually weeks to a month later). None of the data in any ...
This is an optional 1 to 1 relationship or a 1 to (0,1) relationship. A true identity relationship would be 1 to (1,1). I find this notation useful in understanding the scale of the relationship. A one to many relationship could be 1 to (0,10), 1 to (1,5), 1 to (1, *). The fist digit is always 0 (optional) or 1 (mandat...
2
3
5,430
2016-07-08T00:20:19.573
api_errors
softwareengineering.stackexchange.com
977,566
Phpmyadmin error in Ubuntu 18.04
I recently installed Mariadb with PhpMyAdmin and it seems to be working fine except when I need to browse a database. This is the error I get when browsing a column: “Warning in ./libraries/sql.lib.php#613 count(): Parameter must be an array or an object that implements Countable” Screenshot: http://prntscr.com/omy08s ...
Ubuntu repositories have an old phpmyadmin, not fully compatible with default PHP release (7.2 in Ubuntu 18.04 distribuiton). To get rid of this error just install a newer phpmyadmin from https://www.phpmyadmin.net/downloads/ You might want to follow this as a reference: https://devanswers.co/problem-php-7-2-phpmyadmin...
1
2
1,490
2019-08-01T11:47:50.107
database_errors
serverfault.com
159,549
Selecting data from one table via categoryID field and displaying in different areas whilst excluding categoryID for one area
I have made a very simple CMS for the company I work for. We need to display articles on our index page as well as headlines above in a carousel. All articles are setup with a table for articles and art_categories table to link articles to their respective categories. I have been able to create a query that selects all...
You can use LEFT JOIN for this: [CODE] as advice - avoid use *, better to list all columns by name, it also allow avoid duplicates and/or arrange aliases for them
0
0
56
2016-12-30T07:56:41.300
warehouse_errors
dba.stackexchange.com
172,401
Select a CSV string as multiple columns
I'm using SQL Server 2014 and I have a table with one column containing a CSV string: [CODE] The output from the table looks like this: I want to select the second column as multiple columns , putting each item of the CSV string in a separate column, like this: So I created a function for splitting a string: [CODE] I w...
For solving this, you will probably need some more procedural code. Different databases have different sets of built-in string functions (as you know). Thus, for finding a solution for this I have written "proof of concept" code that is rather generic and uses just the SUBSTR() function (the equivalent is SUBSTRING() i...
6
3
13,729
2017-05-01T07:28:50.280
database_errors
dba.stackexchange.com
6,322
Clustering uncertain data with independent uncertainty per dimension
I have $n$ objects located in a $d$ dimensional space, however I do not know their exact coordinates. For each object and each dimension, I have a set of noisy measurements of the coordinate. I would like to cluster this data in the For example, with $n = 3$ and $d = 2$, I could have access to the following data: objec...
Model the measurement process For each dimension you could attempt to model the distribution of the measurement process variance. Perhaps every dimension has the same measurement process or perhaps it is distinct. Combine all measurements from all dimensions if the process is the same. If you have enough data then you ...
1
1
260
2015-07-02T16:45:35.833
data_quality
datascience.stackexchange.com
184,204
Consequences of tnsnames.ora and sqlnet.ora being unavailable
Our database servers are configured with the tnsnames.ora and sqlnet.ora files centrally located on a shared network drive. In every ORACLE_HOME/network/admin directory we have a symbolic link pointing to the centrally-located tnsnames.ora and sqlnet.ora files. I want to understand the consequences of these files becom...
Are these files used by any database processes, or only by client programs like SQL*Plus? Yes, these files are used by Oracle processes while connecting to the database, once the connection is established they don't need these files. For example, If you have specified the following parameter in [CODE] file on server si...
0
3
1,390
2017-08-23T20:40:03.640
database_errors
dba.stackexchange.com
592,002
SW SSD Raid 1 over HW RAID 10
A provider(data center) recommended I go with 1TB SSDs in a software RAID 1 over HW RAID 10 with mechanical drives. Their quote: Typically SSDs are most reliable than RAID cards and since you have less parts, there are less points of failure. There won't be much of a CPU load since RAID1 is extremely simple storage. Ho...
In RAID10 any one of your drives can fail and the array will survive, the same as RAID1. While RAID10 can survive four of the six "two drives failed at once" circumstances the main reason to use R10 with four drives instead of R1 with two is performance rather than extra reliability, and the SSDs will give you a greate...
6
3
4,445
2014-04-29T13:25:59.437
infrastructure
serverfault.com
194,958
How to move a directory to newly mounted drive?
What is the easier way to move a directory to newly mounted drive Example, if I have a directory called /example and mounted a new drive to /vol, how I can easily move /example to /vol Since database data is stored in /example, if I copy the folder it might just get corrupted. Thanks
[CODE] (Works in Linux, BSDs, most Unix flavors, and Windows PowerShell)
2
5
8,307
2010-10-26T16:24:00.113
data_quality
serverfault.com
753,071
Should we allow DNS zone transfer to root-servers and parents zone NS servers?
I never found any reference to this in example set-ups, including those from the Bind ARM. Nevertheless, I noticed my authoritative server received transfer requests from IPs — not their names — that were actually part of some root-servers' set — the DNS root. I was about to allow such transfers in my configuration and...
For the most part, while I would agree with the sentiment about not trusting the big fish to always manage their settings. Since there is really no (direct) profit available from running DNS (let's ignore OpenDNS/Google etc). I have always believed that the root domain servers are very likely run by very very geeky DNS...
2
1
959
2016-01-31T22:19:35.790
infrastructure
serverfault.com
173,516
Prefix matching while importing large CSV file
I have list of huge phone numbers to be imported to the database. And want to group each phone number by their states and timezones of the state, by identifying them from their prefix. Timezones are Eastern, Central, Pacific etc .. For example 786800XXXX is a number from Florida which is in Eastern timezone. I thought ...
DRY -- a database principle -- "Don't Repeat Yourself". Instead of copy the data over as you load it, look it up when you need it. [CODE] Caveat: This assumes that you won't modify the timezone after assigning it to a contact. What is the application? Perhaps some form of call center?
0
0
40
2017-05-13T22:18:22.530
warehouse_errors
dba.stackexchange.com
212,427
Query keeps on giving me 'unknown column' issue
I've researched quite a lot for the past few days about this error that I'm getting but I cannot really fix it so I was hoping somebody could help me. The query keeps on telling me: [CODE] This is the query: [CODE] and the description of my table would be: [CODE] I tried looking for unprintable characters but I didn't ...
The problem is that your [CODE] in the [CODE] part: [CODE] does not return the field [CODE] .
2
4
1,702
2018-07-17T11:48:13.590
warehouse_errors
dba.stackexchange.com
825,242
Openldap not sending certificate on handshake
I am trying to set up PWM for my OpenLDAP server on Ubuntu 16.04, but it fails to connect to LDAP with error [CODE] If I try to connect unencrypted, connection seems to be succesful, but setting up an account for PWM fails with [CODE] , which is intentional. Authentication on clients and ldapsearch (with the switch -Z ...
389\TCP is not LDAP SSL port by default. Port 636\TCP commonly used for LDAP SSL (ldaps). On the 389\TCP port can be enabled STARTTLS ( [CODE] with the switch [CODE] or [CODE] use it). I'm not sure that OpenSSL s_client is able to implement STARTTLS for LDAP protocol.
2
1
1,840
2017-01-10T06:30:02.203
api_errors
serverfault.com
84,083
Kiosk Computer GPO
We have several kiosk PCs that are used in common areas. I have GPOs in place to lock these machines down (one GPO has all the Computer settings and another has all the User settings). These GPOs are applied to an OU that contains the User Accounts and Computer Accounts for the Kiosks. Block Inheritance is set on the O...
With touchscreen LCDs I've noticed they tend to have built-in power-saving options. The display itself has a timer that counts how long it's been since someone touched the screen, and then goes into standby mode to protect itself. On the displays, check the menu options accessible through the buttons on the front, and ...
2
2
1,447
2009-11-12T16:14:50.120
infrastructure
serverfault.com
1,016,108
Azure SQL Server login failure
Brand new Azure account. Created a vnet (10.25.0.0/16) and an SQL DB/Server (no AD, just an admin login: sadmin/***) Using SSMS, I can connect the SQL server through its public endpoint (prompted for Azure login by SSMS. FW rule added on-the-fly) ✔ Now, I'm trying to connect through a private endpoint : Created a VNet ...
I know this post is old but I had the exact same issue where I turned off public access to the Azure SQL and enabled private endpoints. Once I did this, all my connections were failing. After research, I found this helpful article here Basically, when using private endpoints, access to Azure SQL gets confused of what i...
0
1
1,616
2020-05-02T10:19:55.017
api_errors
serverfault.com
821,793
System boots to initrmafs prompt after rdiff-backup restore
I was making daily backups with rdiff-backup. system and data partitions separately. Now I restored the system from the backup, but it doens't boot. All I get is an (initramfs) prompt. I typed [CODE] and it says there was no init file found. What's going on? Is my backup corrupted? I excluded some system directories in...
Check if the system directories are present on the restored system partition: [CODE] The backup script looks like it could have omitted not only the contents of these directories, but the directories as well - in that case the system won't be able to boot properly, becasue there is no directory to mount the kernel inte...
0
0
67
2016-12-20T11:57:23.233
database_errors
serverfault.com
99,183
change Access Permissions in Component Services > COM Security with script/api?
How do I go about changing the Access Permissions for the COM Security? I need to write new values to "Edit Limits..." and "Edit Default..."
HKEY_LOCAL_MACHINE\Software\Microsoft\OLE MachineAccessPermissions, MachineLaunchPermissions, DefaultAccessPermissions, and DefaultLaunchpermissions, Reg_Binary values, as to how to change it that's what I'm looking for now is an easy api to change it.
0
0
1,833
2010-01-04T12:57:07.500
infrastructure
serverfault.com
303,150
How to serve static files very fast?
I'm looking for a solution need to serve a few XML files to as many users as possibly. My current solution are static files and a Nginx server. The files a small so I could them also hold in memory. Does everyone have a good solutions?
Using Nginx seems reasonable. Just make sure the server has an adequate amount of RAM, hopefully enough to hold your entire set of XML files. As they get served, the OS kernel will automatically cache these files in memory, allowing them to be served very quickly.
1
5
388
2011-08-19T19:10:56.263
infrastructure
serverfault.com
174,340
Why did a SQL Server Restart roll-back seemingly committed transactions?
I am using SQL Server 2014 Express It seems that restarting SQL Server when an event such as a Data Lock happens is not (always) such a good idea. http://www.sqlpassion.at/archive/2016/08/08/restarting-sql-server-always-a-good-idea/ I want to ask specifically about the problem that a SQL Server Restart will roll-back u...
As per docs online: Returns the number of BEGIN TRANSACTION statements that have occurred on the current connection. https://learn.microsoft.com/en-us/sql/t-sql/functions/trancount-transact-sql This is a connection level variable. If there were transactions open for connections other than the one your colleague ran his...
5
9
1,326
2017-05-23T15:32:17.280
database_errors
dba.stackexchange.com
154,695
Django not running on CentOS but simple wsgi example works
my django.wsgi [CODE] http.conf [CODE] The Apache error says the following When i go to localhost/myapp then it gives some server error [CODE] Output of ldd: [CODE] I tried import sys and there was no error in apace the only line was [CODE]
What platform? What exact version of Python is installed for the operating system? What exact version of Python is installed in /opt/python2.6? What do you get when you do 'ldd mod_wsgi.so' for installed mod_wsgi Apache module .so file? Are you by chance setting WSGIPythonHome in configuration? Overall this looks a bit...
0
0
3,488
2010-06-25T02:46:35.280
infrastructure
serverfault.com
669,470
Is there a way to duplicate entire AWS environment
I know I can create image from my existing instance and relaunch them later, what I want to know is if there is a way to duplicate my whole environment, like duplicate every VM in UAT to create Beta.
Yes, you can use AWS CloudFormer to generate CFN templates of existing resources, which you can modify and re-deploy. Make sure that you are very familiar with CloudFormation before doing this, though, as there are many ways you could harm your current environment if you're not careful. You may even consider deploying ...
7
6
4,270
2015-02-18T02:32:27.253
data_quality
serverfault.com
202,619
Solaris 10 shared-ip zone networking woe: connections get in (slowly) but they don't get out
I'm having network problems with a Solaris shared-ip zone -- connections in are painfully slow; connections out fail (save that the pinging the global zone by IP address from the local zone gets one packet back.) Here's the view of things from the global zone. I've substituted the impossible IP prefix 256.115.99 for th...
You should have an IP in your global zone in the same network "172.16.27" than your non global one and use that one to communicate instead of the "256.115.99" one.
1
2
2,140
2010-11-16T19:48:20.277
infrastructure
serverfault.com
1,093,393
Format SFTP Logs to have Username on Each Entry
I'm running a production server (Debian 10, standard OpenSSH package) that has Pure-FTPD running for legacy connections and SFTP for all our current connections. The SFTP server is setup with a chroot jail that logs via a bound device in the user's chroot jail. This is picked up by rsyslog and sent to /var/log/sftp.log...
I was able to build a solution with Python and systemd. This is very quick-and-dirty but works for my purposes. I take in a sftp-internal log file and dump it to a reformatted one. I do not modify the original in case this formatter makes any errors. The Python Script This logs out to rsyslog for monitoring and respond...
2
1
1,170
2022-02-11T15:30:22.273
bi_errors
serverfault.com
274,538
Why does Type Resolution fail when using SELECT DISTINCT instead of SELECT on PostgreSQL?
Here is a minimal reproduction: [CODE] Fails with: [CODE] According to the PostgreSQL documentation on Type Resolution for UNION, CASE, and Related Constructs and the following chapter on SELECT Output Columns , the type of [CODE] should be derived from the preceding select. In fact it works, if I remove the [CODE] : [...
Without the [CODE] , the type of the second part of the [CODE] is [CODE] : [CODE] This gets resolved to [CODE] . If there is a [CODE] , PostgreSQL has to resolve the type of [CODE] earlier on: to eliminate duplicates, it has to know which equality operator to use. Lacking other information, it chooses [CODE] as the pre...
2
4
353
2020-08-28T10:36:00.017
database_errors
dba.stackexchange.com
56,875
What causes lost updates being observed in my SQL Azure database?
I have a SQL Azure database with the following tables: [CODE] and the following code being concurrently executed via several connections the database: [CODE] and then I run the following query: [CODE] and I often see something like this: [CODE] which looks like the two concurrently running updates read the same initial...
The problem was because of "other interpretation" lost update - when data is first read into local memory and then the table is updated with that data. There was another code that was intended for resetting balances of some users very rarely. It was something like this: [CODE] and this code would run concurrently with ...
0
1
348
2014-01-16T07:21:20.740
data_quality
dba.stackexchange.com
450,604
Is my git branch strategy best practice?
We are a small software team with 6 members. We are working on different software projects in our company. Before I joined the team no version control system was used. It was/is my task to reorganize the team and daily work to use a vcs (git with own Gitea server). I'm now at that point where I have to find an appropri...
If you make sure that the [CODE] branch can be released at any time, so that the following conversation can happen: CEO: Is New feature X already done? You: Yes, it has been tested and merged. CEO: Good. I have a customer who needs that feature ASAP. Forget about what else we had planned for the next release, I need a ...
0
3
354
2024-01-17T20:28:31.933
pipeline_ops
softwareengineering.stackexchange.com
193,504
MySQL : DATE_FORMAT() vs. SUBSTR()
I'm currently working on MYSQL DB optimizations. I'm looking around some slow queries and I try to optimize some of them. In my app, for statistics purposes, I'm querying and -very- big table (millions of records) which contains visitors log entries (clicks, opens, impressions,...). That table contains : [CODE] ( [CODE...
Since [CODE] is a [CODE] column, you don't need to use [CODE] , you can simply [CODE] . And the extra [CODE] call seem completely redundant. The query can be rewritten: [CODE] Add an index on [CODE] , to make it more efficient.
1
2
5,610
2017-12-19T10:42:06.237
database_errors
dba.stackexchange.com
988,484
Is Windows 7 machine logged into domain or local cache
I've been learning AD and also troubleshoot a problem I'm having with AD. I'd like to be able to tell if a Windows 7 workstation is actively logged on to a domain or if it's logging into an account using locally cached credentials. To test if this works I logged into a user account on a domain named grasstree.void . Th...
You will need to query the security event log for the event id 4264 event, which includes the logon type. Type 11 is cached interactive logon. (This also implies auditing must be enabled). https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventID=4624
0
2
291
2019-10-17T22:09:29.283
infrastructure
serverfault.com
31,491
SQL Server 2008 DB size grown huge
I am a .net developer and not a expert in database. I have a application running with SQL server 2008. Yesterday there was issue with a certain query getting executed in infinite loop and which caused DB size to grow from 500 MB to 380 GB. The log file itself was 300 GB and mdf file 80 GB. Today I stopped the query and...
Are you using a simple recovery mode ? if you do not need the full mode this could help. How big is the Log file now? maby it got huge again according to a full recovery mode, try to shrink it again if you change to the simple recovery mode and check it then.
1
1
1,072
2012-08-01T09:51:14.870
database_errors
dba.stackexchange.com
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
23