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
42,610
VarChar to NVarChar causing truncate error
I am importing some data from a temporary table which has a column defined as [CODE] . The destination tables column is defined as [CODE] . I'm using an [CODE] statement, but when I run the SQL statement commenting out this column the query runs correctly. When I uncomment this line, I get: Msg 8152, Level 16, State 4,...
Well this won't happen unless a trigger is firing on the target table, and the error happens there the INSERT does some processing that adds enough data to make it too wide Also, what happens with this please? This can not fail unless there is some processing. [CODE]
0
5
3,002
2013-05-20T10:45:21.930
warehouse_errors
dba.stackexchange.com
698,343
Can't connect to MySQL 5.5 with SSL
I am trying to get MySQL SSL replication setup for two brand new RHEL 6.6 x64 servers. I have replication working without SSL, but I can't get it set up with SSL, and can't connect directly using SSL either. I have tried connecting from both the master and the slave with mysql -h x.x.x.x -u root -p --ssl=1 --ssl-ca=ca....
Ensure the Common Name of your CA certificate and Server certificates are different If your certificates were generated using [CODE] with a version greater than 1.0 and are RSA, reformat your keys using the following: [CODE] ( replace filenames as appropriate ). The reason for this is that the key format is not compati...
1
1
1,971
2015-06-11T16:05:20.750
database_errors
serverfault.com
155,330
Ubuntu SSLH Service Not Starting on Boot
I am trying to run SSH and HTTPS both on Port 443 on an Ubuntu server. I found SSLH which seems to do the trick. My only problem is getting it to start on system boot. Supposedly, it is already setup to do. An "sudo update-rc.d sslh defaults" says it is already setup. However, rebooting results in it not starting until...
It turns out the vm I was working on was still on Karmic. I had updated packages which I thought would take care of any bugs related to init.d since they have all been listed as fixed. I did a release upgrade to Lucid and the problem went away.
0
0
1,043
2010-06-27T21:54:42.327
infrastructure
serverfault.com
186,896
nginx redirecting to localhost
I'm sort of a noob at this and I'm just switching into nginx so I apologize for the noob question. I have installed nginx and when I go to the root directory of its web folder I can get the index file. But when I try to go to a folder, say, server.ip.address/folder, it will go to localhost/folder. How can I stop it fro...
Change [CODE] to [CODE]
9
6
42,782
2010-10-02T13:29:55.967
infrastructure
serverfault.com
463,886
How do I preseed a simple RAID5 setup on Ubuntu Server?
I have three 2TB drives in the machine; I want a RAID5 of ~4TB capacity, and 100GB or so of swap space. No LVM, no encryption, no fanciness. This is easy to do using the interactive installer, but I'm hoping to basically preseed this whole setup. I had originally planned for the swap space to just be three separate par...
You don't. RAID 5 is dead . Expecially for 4TB volumes. The probability of an unrecoverable read error whilst rebuilding a degraded array is high enough not to want to take the risk. If it happens, your array is gone . All of it. RAID 6 is the only feasible way to go forward if you want a RAID-5-like array.
3
3
1,521
2013-01-08T01:31:55.073
infrastructure
serverfault.com
755,619
Minimal postfix config to receive email
I have do.ma.in with next DNS records: [CODE] I want to receive one mail from [CODE] to my postfix to only one address [CODE] or at least to [CODE] So, I installed pure [CODE] to machine [CODE] and edited next options in [CODE] : [CODE] The other settings are default. Then I fully restarted postfix daemon [CODE] . But ...
You need to assign domains for local delivery (do.ma.in in your case) to [CODE] variable in [CODE] [CODE]
0
2
133
2016-02-11T17:27:37.320
infrastructure
serverfault.com
27,081
How to cross-validate a deep learning model for highly imbalanced datasets?
I am working with a multi-modality classification problem (with [CODE] ). I have 1000, 5000 and 10000 samples for three different classes. I would like to do a five fold cross-validation to select the best pre-trained deep learning model for deployment. I'm including class weights during model training to give more wei...
Accuracy is not a good indicator of success with imbalanced data. The accepted answer is correct: F1 score is commonly used. Other options include [CODE] (see here ) and [CODE] (see here ), both defined through scikit-learn. If you're using Keras, I would recommend using [CODE] (note this will not work well if you have...
3
3
582
2018-01-26T14:20:47.687
api_errors
datascience.stackexchange.com
128,440
How should I copy the "mysql" database to my new server using PHPMyAdmin
My new webhosting company has set up a MySQL database for me and it has the tables MySQL and Information_schema already there. I want to copy my existing database from another server (a) to the new one (b). I assume I need to overwrite the 'mysql' database on server (b) with the one from my existing server (a) or atlea...
To migrate from your old system to the new one export all the databases and tables EXCEPT mysql and Information_Schema. Then import them into the new system. The mysql database is the "system" database and you shouldn't even be seeing it if the system was set up correctly. You certainly shouldn't have, or require, writ...
0
3
2,193
2010-04-01T12:50:16.787
database_errors
serverfault.com
384,793
Cannot resolve domain from within LAN
I just set up a Debian server in our office. We have a business account with comcast without static IP, so I'm using DynDNS to point a domain at the machine. The problem is that I can't resolve the domain from within the network. It is my understanding that there is no way around this using the comcast business gateway...
Set up a DNS server for LAN access only and hand it's address out via DHCP. That DNS server acts as an authoritative server for your domain but issues LAN address rather than the public address.
0
0
5,243
2012-05-01T02:37:50.697
infrastructure
serverfault.com
462,204
MySQL is too slow on Windows VPS
I'm running a wordpress blog on my VPS, But MySQL Queries are taking too much time. For example, it is taking more than 1.5 seconds to load a post from database. But CPU and RAM usage is low on my server. I've 2GB RAM, and 1.2GB of it is free right now. also CPU usage is below 5%. I'm running [CODE] on [CODE] , with [C...
I would imagine this is something as simple as tables not being properly indexed. Take a few of your slow running queries and run an EXPLAIN on them to see how many rows are being examined each time. Also the 127.0.0.1 vs localhost is true as it saves a DNS lookup but judging by what you're describing this is not likel...
1
0
1,261
2013-01-02T07:18:01.217
database_errors
serverfault.com
315,166
How do I enable DML logging in Cassandra 2.1?
How to enable logging DML(inserts, updates), DDL (alter, create) operations in cassandra version 2.1? [CODE]
You could try Ericsson's Cassandra Audit Logger: https://github.com/Ericsson/ecaudit I've used it with Cassandra 3. Not sure if they have a version that works with 2.1. If they do, you'll need to download the JAR for your version, and put it in your [CODE] dir. If they don't have one for your version, you can build you...
1
1
57
2022-08-03T08:54:27.947
database_errors
dba.stackexchange.com
1,033,746
Kubernetes Calico networking: calicoctl reports "reset by peer" and "bird: BGP: Unexpected connect from unknown address"
This is a new cluster built using Kubespray on bare metal. The issue that [CODE] reports not [CODE] status, [CODE] members cannot communicate between each other and majority of [CODE] requests take around 10 seconds to open sample Nginx page. All other components such as etcd, pods, [CODE] and [CODE] are okay. calico-n...
The issue was NATing applied on VPN TUN (layer 3). Calico doesn't support it (or I'm not familiar with NATed solutions available). Solution: use routes instead of NAT
1
1
3,171
2020-09-13T22:24:40.390
pipeline_ops
serverfault.com
987,688
give systemd service access to certificates in protected folder
I use certbot to generate certificate files. The certificate files are created in [CODE] . The live folder is created by certbot and is only accessible to admins. In the past, I then copied these files to the folder of my application, and that worked fine. But it felt wrong to copy the certificate files. So, I am wonde...
I don't think that copying certificate files from [CODE] to an application's folder is wrong. I suggest you to do so by defining a custom script in [CODE] folder, which would also reload the application each time the corresponding certificate is renewed. For example: [CODE] Please, check this URL for details: https://c...
2
2
841
2019-10-11T19:23:21.777
data_quality
serverfault.com
613,340
Configuring MariaDB to log to mysql.log using rsyslog
I'm a little stumped - there is something obvious I'm missing here. Recently I made the switch from mySQL to mariaDB. Everything is working so far - except for the logging, as I realized today. All the logs of mariaDB are going into the /var/log/daemon.log-logfile instead of /var/log/mysql.log - and I cannot, for the l...
Well, that was easy - my init-script was borked: [CODE] Changed it and everything is fine. Didn't come to think of actually checking the init script... well... next time ;)
1
1
4,902
2014-07-17T14:18:04.827
database_errors
serverfault.com
17,427
what could it be a good descriptor for simple greyscale symbols?
I need to find a good method to extract key points from drawing symbols like elements in CAD drawings (eg in 2D objects for the bathroom that can be placed on a floor plan). I've already tried all type available in openCV/accord (FAST, SURF, Harris, ..) but all of them failed to give me any point. The images are blank ...
If you can take a quick look with photoshop and get information on the shade of gray and zoom into the objects and count a pixel pattern. You would be able to build an algorithm around the color 0-255 in 8-bit grayscale and create a simple matrix for each symbol based on the number of pixels you counted. [CODE] You can...
1
1
96
2017-03-07T18:09:48.740
data_quality
datascience.stackexchange.com
403,735
Samba as a PDC and offline authentication
Say I have a Windows laptop which has been connected to a domain. The domain has a Samba server as a PDC. Now say that I move the laptop outside of the network (the network is completely inaccessible). Will I be able to logon into accounts I have accessed before on the laptop (through GINA)? Update: Looking at the [COD...
If you have a Windows laptop which is a domain member, using winbind offline logon would not influence its ability for cached credential logons as Winbind is caching the credentials for your Samba installation, not its clients. Cached Credentials is a domain client feature available in Windows 2000 and newer. It is wor...
2
5
1,991
2012-06-30T16:56:11.047
api_errors
serverfault.com
177,424
MDF file is close to 900gb but my calculation of reserved table space is less than 30gb... what am I missing?
In a nutshell, my server is running out of free hard drive space so I ran the script found here to get an idea of tables I could possibly delete old data from: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=10932 but when I got the results it seems that deleting old data doesn't seem to be my solution. I have a feeli...
A simple way to view the tables using the most space in your database is to run the canned Disk Usage by Top Tables report that is available through SSMS. Right click on the database in question, select Reports, and then select that report.
3
1
572
2017-06-27T19:14:51.950
warehouse_errors
dba.stackexchange.com
3,740
What are useful .screenrc settings?
Basically like some of my own that I've posted below. I'm looking for added functionality to the programme 'screen'. At the very least have a look at the last line for a fantastic 'menu bar' at the bottom of a screen session. [CODE]
For those wanting a less cryptic way of getting a nice screen set up, I can heartily recommend byobu (formerly called screen profiles). It gives you a nice default set of stuff at the bottom of the screen - the bottom line contains various handy status information, and the second from bottom line contains a list of you...
54
22
133,602
2009-05-04T00:17:07.003
infrastructure
serverfault.com
11,920
Not getting all links from page
I am trying to get all links from page but not getting all links. I am using selenium web driver. My code is below : [CODE] How can I get all links from page?
There should be lot of links as result so you must put loop when getting result , See update code below : [CODE]
0
1
1,016
2015-01-23T15:42:02.887
data_quality
sqa.stackexchange.com
343,927
Why do I get HTTP Error 504: Gateway Timeout on accessing public IP over Android
Question: When I start a webserver on my machine (on port 80), and then try to access it via my public IP, I get HTTP error 504 (Gateway Timeout). Why ? This only happens when I am connected to the internet via Android. When I connect via normal ADSL, everything works fine. Is there any way to enable this ? If Android ...
http://www.codeproject.com/KB/android/UsbPortForwarding.aspx The Android architecture does not allow to start communication from the Android to the host through the USB cable.The opposite is possible, using the Google "Android Debug Bridge" (ADB in short). http://sigitp.wordpress.com/2011/05/12/tunneling-and-port-forwa...
-1
0
4,697
2011-12-24T08:01:21.190
api_errors
serverfault.com
1,059,887
Exchange 2019 Archive Policy moves items to Recoverable Items Folder
So we have 3 Exchange 2019 servers in our environment. Two of them are DAG servers storing mailboxes, third is archive mailboxes only. For most users everything works fine, however there are few, where all items marked with archive retention tags are moved to inplace archive mailboxes, but straight to "Recoverable Item...
Whose " Recoverable Items " folder did these emails reach to? The primary mailbox or the archive mailbox? Were emails removed immediately since they were sent(Move to the [CODE] folder)? Or they were saved for one or more days and then be deleted? If the emails went straight to " Recoverable Items ", it seems that thes...
0
0
342
2021-04-09T13:48:23.347
hadoop_errors
serverfault.com
83,128
Repair database on Replica in sharded set up
I am using mongo sharding in my DB. The scenario I am facing is that I have deleted some of my collections in my DB. But as to reclaim the space I need to run repair option which i can not run using Mongos in production. So my plan is to run Repair on each replica server one by one by switching primary to replica and v...
In my opinion if your fragmentation is not over 15-20% its not worth doing that (except if you are running out of disk space). What i would do is: 1) Add an arbiter to each replica set (optional) 2) Shutdown one of the secondaries and delete the data directory 3) Start the secondary and let it do the initial sync which...
0
1
867
2014-11-20T05:39:16.703
database_errors
dba.stackexchange.com
298,234
How to return missing rows from LEFT JOIN in BigQuery
How can we get BigQuery to return the rows in a LEFT JOIN which exist in TABLE A but are NULL in TABLE B? [CODE]
Your query should work fine, but there's another approach which is slightly more specific and, at least in some RDBMS, slightly better perfoming: [CODE] Note that the database does not actually retrieve any records from [CODE] , so this is one rare case where [CODE] is legitimate. You could just make it [CODE] or somet...
0
0
4,101
2021-08-18T23:53:05.717
warehouse_errors
dba.stackexchange.com
82,428
Adding a distributor for availability groups
According to this MSDN article, I need to add a distributor: Configure Replication for AlwaysOn Availability Groups (SQL Server) I'm confused by this particular statement: The distributor should not be a host for any of the current (or intended) replicas of the availability group that the publishing database is (or wil...
The statement you are reading in the Microsoft article says that you should not (and cannot) put a Distribution database inside an Availability Group. Why? Because the [CODE] database is a System database and Availability Groups will only fail over User databases. Therefore you will require another (4th) server in your...
2
1
1,292
2014-11-11T22:22:48.363
database_errors
dba.stackexchange.com
1,149,333
Spammers are using my mail server to send out emails
Lately spammers are using my mail server to send emails to different addresses. For example, a colleague of mine received an email that was supposedly self-sent (it was not). Looking at the information in the email I find the following: Received-SPF: softfail (domain.com: Sender is not authorized by default to use 'use...
As Gerald already pointed out, SPF setup can be improved without any issue (I suppose). Moreover, in order to add, on top of SPF, another layer of security, I suggest you to activate DKIM authentication method on your domain. Basically you have to add a TXT record in your domain containing a public key properly set by ...
0
0
121
2023-12-07T11:49:31.377
infrastructure
serverfault.com
1,008,787
Why is the max heap much smaller than the value I set in Xmx (with -XX:+UseParallelGC -XX:+UseParallelOldGC)
I am running a SolrCloud on k8s with the following setting: Heap params: [CODE] Other params: [CODE] And the max heap shown on the admin page is only 277.5m , which is 34.5m less than Xmx And if I change the heap params to [CODE] Then the max heap is around 300m, which is much closer to the Xmx My questions is that: Wh...
So here is some details. [CODE] = maximum java heap [CODE] = initial and minimum java heap The [CODE] option and [CODE] option in combination are used to limit the Java heap size. The Java heap can never grow larger than [CODE] . Also, the [CODE] value can be used as “minimum heap size” to set a fixed heap size by sett...
0
1
1,171
2020-03-28T01:46:08.710
pipeline_ops
serverfault.com
1,102,879
Kernel reports writeback errors on a RAID array
I have a RAID-6 array [CODE] for which I have recently started getting bursts of writeback errors in kernel log, like this: [CODE] The sector locations are not quite random: they are concentrated around sector 286000000000. I haven't been able to correlate these bursts with any sort of activity such as high CPU load or...
Looking back over my logs and records, the problem was almost certainly caused by md bad block entries having been erroneously cloned to new disks when I was extending the array. These entries messed up the affected area despite there being nothing wrong with it, and as the filesystem on the array filled up and XFS sta...
2
1
1,294
2022-06-09T12:11:20.780
infrastructure
serverfault.com
3,578
How to have all keystrokes recorded during development phase in the tested application?
While reading an article about the bite-project the idea came to my head that it would be great to have something like bite running outside the browser. I am testing a C++-Windows application using TestComplete. While developing I navigate inside this application also without TestComplete. Sometimes I run into a crash ...
If you are using Windows 7, the Problem Step Recorder might be useful.
2
2
128
2012-08-02T11:51:59.837
data_quality
sqa.stackexchange.com
153,699
Best practice for changing a dynamic (system) disc?
We've been using Windows Dynamic Disks for our customers system discs as a software RAID1 solution (i.e. we install the system on one disk, and mirror it after installation using Dynamic Disks). I've run into a problem that suggests that my procedure for changing them isn't quite right, though it has worked in the past...
My guess (and it's only a guess) Is that there is no disk GUID or an invalid or unrecognized disk GUID in the GPT partition table header on the new disk and that's what's causing the problem. My suggestion would be to change your process: Break or Remove the mirror, replace the failed disk, re-make the mirror. Note: Br...
2
1
1,327
2010-06-22T17:43:53.033
database_errors
serverfault.com
836,848
Logstash Filter Conditional Not Getting Applied
I've got nxlog on my Windows servers shipping logs to Logstash (JSON-formatted). I want to clone off the security events to a SIEM, so I added the logic to catch certain Windows Event IDs: Even though the "Windows Event Log" tag gets applied (via "add_tag"), the "Windows Security Event" is never added, even when I revi...
EventID is an integer, but you are testing it in a string comparison. Try removing the quotes around the number in your if block.
1
2
640
2017-03-07T18:32:11.027
infrastructure
serverfault.com
728,139
HP ProLiant DL380 Boot Issues
I've tried researching intensely to find out why every time I try to boot my server, my monitor that I use to see what I'm doing to the server, seems to say "Out of Range". I have Ubuntu installed and it was working fine until I messed something up. I've tried booting into every OS it has listed in the OS selection opt...
The server you're describing is an HP ProLiant DL380 G3 from ~2003. That means that you're working with a 12 year-old server, so there's ALWAYS potential for hardware failure with something of that vintage. The positive side is that you have a Integrated Lights-Out (ILO) interface on that server. The ILO will allow you...
1
2
830
2015-10-10T23:43:35.923
infrastructure
serverfault.com
806,852
Cisco 1841 won't initiate site2site VPN
I'm trying to establish the site2site VPN using Cisco 1841 with dynamic WAN IP on one side (LAN 192.168.101.0/24) and Cisco ASA 5505 with static WAN IP on the other side (LAN 192.168.100.0/24). Cisco 1841 won't establish the tunnel: [CODE] And that's all. ASA 5505 doesn't have anything in debug. How do I fix/diagnose t...
Problem was that NAT rule on 1841 processed the packet before ACL. Thanks everyone for the hints.
0
0
578
2016-10-03T19:44:01.043
infrastructure
serverfault.com
496,707
Template for use with Outlook 2010 t enable creation of multiple PST's for many users on one system
This is probably not something many people would have a need for but at this company where there is a large turnover, every user has to have IT create their account on a laptop. Even when recycling, the need is still the same. Each account has the same incoming and outgoing mail-server, the same incoming and outgoing p...
Use Exchange: auto-configuration, retention policies, etc; all configurable (and scriptable). The time saved messing with this stuff will pay for the Licensing quickly.
0
0
125
2013-04-05T23:49:26.237
infrastructure
serverfault.com
13,989
How do I monitor failed logon attempts in Windows?
Is there any reliable way to monitor failed logon attempts on-the-fly in Windows XP? (well, Vista too for that matter). I need to monitor failed logon attempts programmatically which is currently accomplished with a simple GINA Stub by subclassing the Login dialog from MSGINA. However, my current solution is not waterp...
Microsoft ACS does this very well. It is a component of System Center Configuration manager. You can look at the logon failures from the DC perspective or from the client perspective depending on your specific needs. There are MS Partner Solutions that also aid in this from the Management Pack side as well as the ACS r...
4
4
3,497
2009-05-28T17:55:41.803
infrastructure
serverfault.com
354,271
Reducing mutability in an event-driven system
I'm building a game with the LibGDX game engine. The engine works by registering an implementation of an interface that receives callbacks on the game loop. The interface looks like this: [CODE] My current implementation is littered with mutating code that has resulted in [CODE] s and an overall sense of instability fr...
I'm going to assume this is a real-time game and that it is not particularly taxing computationally. The former assumption isn't much of a restriction. Things are only simpler for interactive-rate or turn-based games. Basically, the body of your game loop should be an externally pure function with type [CODE] . Any eve...
2
4
474
2017-07-22T10:39:43.100
api_errors
softwareengineering.stackexchange.com
978,796
Does azure block INCOMING port 25 to VM?
Added 443 and 25 to allow for inbound rule to VM [CODE] Setup a listener on the vm [CODE] From external computer [CODE] Connection times out. When doing the same procedure for 443 it works fine. This leads me to believe port 25 is blocked by azure itself?
Best way to troubleshoot this issue is usage of the traceroute with tcp packets. Use this command to check where the packets are blocked: [CODE] The next step - run the tcpdump on the VM and check incoming packets. The tcpdump captures packets before firewall. [CODE] So, if you see the packets in the dump, but nothing ...
1
1
315
2019-08-11T16:44:56.650
infrastructure
serverfault.com
949,981
Windows Server 2012 R2 FTP server "closed by remote host"
I'm trying to host a FTP server from my WS 2012 R2. I did all the IIS stuff, disabled stateful as well. Port 20 and 21 are open. Current situation: From the machine: [CODE] works From the machine: [CODE] doesn't, "closed by remote host" right after connection From my PC: FileZilla "Connection closed by server" after 3 ...
Try creating another rule to allow port 21 inbound. I had the same problem with the default rule not working correctly. I believe it has to do with the fact the default rule includes a service/program rule. [
3
2
3,771
2019-01-20T23:04:18.937
infrastructure
serverfault.com
269,870
Finding matching records in a chain to form a parent user
I need to find commonality across 3 columns of data. For instance, user 1 and user 2 have the same email. user 2 and user 3 have the same device id. So I want to assign a unique parentuserid of 1 to user 1, 2, and 3. See below for sample data. [CODE] This parentuserid = 1 is a set of 3 users, but this could actually be...
These users form a graph. They are linked by edges to common attributes (email, device etc.). The question boils down to finding disjoint subgraphs within the data, and assigning each a label. There's an answer on SO which addresses this. The web will have many more if you care to search. SQL Server 2019 introduced SHO...
1
1
40
2020-06-25T14:50:26.567
database_errors
dba.stackexchange.com
130,922
ERROR WSREP`: gcs/src/gcs.cpp:gcs_open():1379:` Failed to open channel 'test_cluster'
I have three server that I want to Install Galera clustering on them, I followed this link to install and config it. but when I want to start the first server I got this error : [CODE] and : [CODE] these are configuration file for the three servers : [CODE] Server1 : [CODE] Server 2: [CODE] server 3 : [CODE] I don't un...
We should start the first node without below parameter in [CODE] : wsrep_cluster_address="gcomm://192.168.120.107,192.168.120.111,192.168.120.117" Then start the other nodes normally : [CODE] The first node should start normally like the others.
5
5
11,903
2016-03-01T16:15:48.943
warehouse_errors
dba.stackexchange.com
7,847
The process could not execute 'sp_replcmds' on 'S15415940'. Cannot execute as the database principal because the principal "dbo" does not exist
Can anyone show me the way to fix these error messages: The process could not execute 'sp_replcmds' on 'S15415940'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20011) Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have p...
In my experience I had this message The process could not execute 'sp_replcmds' when two log reader processes where accidently trying to run. The fix I had was to: connect at the publisher, look in master..sysprocesses for a a leftover process from the distributor kill it, and relaunch the log reader on the distributor...
1
1
8,264
2011-11-14T04:55:14.713
warehouse_errors
dba.stackexchange.com
160,897
Is it bad practice NOT to delete unused database entities?
A recent code review by a client revealed that there some database entities (tables, views, stored procedures) were no longer being used in our Oracle 12c database. We have hundreds of stored procedures, views and tables (not thousands), and the database itself is about 40GB in size with a few hundred million records. ...
In case of tables, if it's not being updated you are safe to remove then and keep a backup (just in case). Other objects like SP, Views and Functions can be easily removed. Of course you can end up messing with relational integrity if you are not cautions in removing data. I recommend full regression tests over the sys...
2
3
843
2017-01-12T18:12:53.120
database_errors
dba.stackexchange.com
503,218
DELL Server won't accept Corsair RAM
I've ordered DELL PowerEdge™ T110 II with 2GB RAM and Corsair 16GB 1600MHz CL10 DDR3 Vengeance Memory Kit(2 X 8GB). By some reason the server works only with the original memory and won't accept the Corsair's one. Just before returning the memory could anyone advice on: a. Any tips for installing RAM (I've four slots -...
Your server requires ECC memory as do most servers. Return the kit if you can and get supported dimms. Please consult your servers manual before buying / installing RAM. see page 73 of the owners manual ftp://ftp.dell.com/Manuals/all-products/esuprt_ser_stor_net/esuprt_poweredge/poweredge-t110-2_Owner%27s%20Manual_en-u...
-3
10
1,187
2013-04-27T19:49:18.503
api_errors
serverfault.com
732,513
PHP upgrade fails, CentOS 6.7
System information Operating system CentOS Linux 6.7 Kernel and CPU Linux 2.6.32-042stab108.1 on x86_64 [CODE] only ones i added manually base - CentOS-6 - Base epel - Extra Packages for Enterprise Linux 6 - x86_64 extras - CentOS-6 - Extras ius - IUS Community Packages for Enterprise Linux 6 - x86_64 mod-pagespeed - m...
We recommend you use SCL versions of packages, so that the PHP versions can co-exist peacefully with each other and not cause the conflicts you're running into. I've got Remi's PHP 5.6.15 packages running on our new server, under Virtualmin, and it's working fine (I did have to tweak the detection code in php-lib.pl, t...
0
1
759
2015-10-29T13:21:32.540
infrastructure
serverfault.com
665,238
restore mongoDB databases from manual backup (not used mongodump): strange permission problems
Is it possible to restore databases which were manually copied from [CODE] to eg. [CODE] ? I am not sure if the backup was made after stopping the mongod service. Either way, no files were written to the database when doing the backup. Unfortunately [CODE] was not used. I tried to simply change [CODE] in [CODE] to [COD...
If SELinux is enabled you can try stopping mongo and then running: [CODE] Maybe SELinux contexts were broken while transferring files.
1
2
1,570
2015-02-05T12:26:27.020
database_errors
serverfault.com
1,148,454
nginx, only allow certain IPs to access a URL prefix
In nginx, how can I restrict access to a certain URL prefix by IP address. i.e. “only these IPs are allowed to access [CODE] ?”. I have a [CODE] directive, but it looks like the nginx [CODE] & [CODE] do no work inside [CODE] I want all IP addresses to be able to access all parts of the server, but I want only a set few...
To restrict access to a specific URL prefix in Nginx based on IP addresses, you can use the [CODE] and [CODE] directives inside a [CODE] block. The [CODE] directive specifies which IPs are allowed, and the [CODE] directive blocks all others. Here's how you can configure it: Define a [CODE] block that matches your URL p...
0
3
2,141
2023-11-23T16:00:30.753
infrastructure
serverfault.com
170,129
Complex string matching with fuzzywuzzy
I'm attempting to write a process that matches obscure strings to a single 'master string' for further processing. I have a lot of data that looks something like this: [CODE] ...and so on. These need to be mapped to a master record like so: [CODE] I also have instances of data resembling this format: [CODE] These situa...
Fortunately, I'm not one to give up easily. Through reaching out to other sources/communities I found Google Refine which (amazingly) completely resolves my matching issues 90% of the time, and leaves the remaining 10% incredibly manageable and easy to manually resolve. I hope this might help other people facing simila...
7
5
3,404
2012-10-16T19:18:36.053
api_errors
softwareengineering.stackexchange.com
19,561
How can I display and log PHP errors on IIS7?
We're running PHP 5.2.5 on an IIS 7 Server and we're having problems making PHP errors visible... At the moment whenever we have a PHP error the server sends back a 500 error with the message "The page cannot be displayed because an internal server error has occurred." This might be a good setting for production websit...
Just to double check, do you have logging set to [CODE] , and [CODE] in your [CODE] ? Usually this is enough to display these errors in IIS 7. Next, take a look at your IIS settings, as it may be set to only show error messages locally. In the IIS 7 configuration editor this is under system.webServer->httpErrors. You w...
34
41
82,578
2009-06-04T10:05:27.540
api_errors
serverfault.com
1,094,588
Centos7 Httpd cannot access mounted cifs directory
In a Centos 7 server I have a directory mounted with [CODE] in [CODE] . I can read those files without issues. The directory [CODE] is owned by [CODE] and has [CODE] permissions. Now, I created a symlink to that directory in [CODE] and would like to allow accessing those files. To do that I created this config in [CODE...
I'm not sure this is the more secure solution, but as this server (a virtual machine in fact) just exposes these files I solved my issue by executing this command: [CODE]
0
0
487
2022-02-23T16:36:09.800
infrastructure
serverfault.com
377,426
How to reduce celeryd memory consumption?
I'm using celery 2.5.1 with django on a micro ec2 instance with 613mb memory and as such have to keep memory consumption down. Currently I'm using it only for the scheduler "celery beat" as a web interface to cron, though I hope to use it for more in the future. I've noticed it is the biggest consumer of memory on my m...
You can make sure that celery is only including the bare minimum of your code (I've seen celery configured to import people's entire web applications... not pretty). However, at the end of the day, you're looking at a very large chunk of Python, which is going to chew up a lot of memory by it's very nature. If you want...
3
4
3,947
2012-04-06T22:18:09.447
data_quality
serverfault.com
1,049,959
OpenVPN client source port keeps changing, TLS fails
This problem only happens behind certain routers/gateways and i have no control over. this is my clients connecting over public internet. what seems to be the problem is that the source PORT changes almost instantaneously. and yes this is only specific to certain devices for example fortigate devices when they are the ...
You have no problem with the VPN, your problem is with the TCP connection that is probably restricted by the Fortigate firewall ( fortigate device) you mentioned. The way to solve this is to talk to the administrator of the firewall and ask for permission to contact the VPN server.
0
0
411
2021-01-15T12:31:22.710
infrastructure
serverfault.com
403,364
Preventing the codebase from turning into patchwork as more stories are implemented
The usual workflow for my team looks something like this: features are planned by product management and then collectively broken down to business requirements. Then the developers start working separately through those requirements one by one until the next feature comes around. One issue I noticed is since the storie...
Building an application piece by piece using Agile Development means you do not build what you do not need, but you still need to design the architecture for the application. When I see a code base become a patchwork of enhancements with little technical direction I see a number of issues that should be addressed: A la...
0
5
278
2020-01-05T18:32:40.100
api_errors
softwareengineering.stackexchange.com
447,976
If the concept of low code/no code program is nothing new, then why do developers talking about it still get frustrated?
In the question What is "low code"? , there are many comments against it. One example: In my experience these tools are managed by business users until they've painted themselves into a corner. Then developers are brought in to untangle a gigantic mess of unreliable buggy garbage with gobs of unnecessary complexity. Ho...
The problem is that "no code development" is rather like "no words lawyering" or "no numbers accounting". Part of the problem is that the level at which the latest GUI fad - often devised by some new corporate non-entity rather than any established force in technology - becomes inferior to battle-tested programming lan...
-4
5
216
2023-10-07T15:52:12.860
api_errors
softwareengineering.stackexchange.com
593,139
logrotate mailing of uncompressed logs
The man page of logrotate has this sample configuration file: [CODE] and explains the second set of directives as follows: The next section defines the parameters for both /var/log/httpd/access.log and /var/log/httpd/error.log. They are rotated whenever it grows over 100k in size, and the old logs files are mailed (unc...
The logs are compressed on the local filesystem, yes, and they are decompressed while being emailed, though it seems to do this with pipes instead of files (as in [CODE] ). It can't email them prior to compression, as suggested by Janne Pikkarainen, because it's emailing the least recent log - which in this case is 5 d...
0
2
997
2014-05-05T10:52:21.357
infrastructure
serverfault.com
161,149
Expected behavior when an request for a collection will have zero items
Let's say you are given the following... [CODE] If there were nothing to return, what would you expect fubar.Things.All() to return? Edit: Thanks for the opinions. I'll wait a bit and accept the entry with the most ups. I agree with the responses so far, particularly those suggesting an empty collection. A vendor provi...
Of the two possibilities (i.e. returning a [CODE] or returning an empty collection) I would pick returning an empty collection, because it lets the caller to skip a check of the returned value. Instead of writing this [CODE] they would be able to write this: [CODE] This second code fragment is shorter and easier to rea...
13
29
1,348
2012-08-16T16:58:47.163
api_errors
softwareengineering.stackexchange.com
200,507
Single fastcgi/php-cgi server for multiple virtualhosts?
I'm currently hosting sites for clients using the following setup: Apache 2.2.16 mod_fastcgi 2.4.7 php 5.3.3 Apache uses the worker MPM and serves PHP through a dynamic FastCGI config: FastCgiSuexec /usr/sbin/suexec FastCgiConfig -singleThreshold 0 -pass-header Authorization -idle-timeout 3600 SuexecUserGroup user grou...
If i may add a personal opinion.. Use Nginx, its faster, simpler, and much easier to do what you want.. ( and uses much less memory ) Its a personal preference of mine.. :D https://calomel.org/nginx.html is a nice detailed example
1
0
3,076
2010-11-10T20:21:58.823
infrastructure
serverfault.com
47,038
How to scrape text from html using Selenium or Beautiful Soup
here is the html [CODE] I need the '$682.0'. I have tried : [CODE] and [CODE] both return [CODE] I am open to using beautiful soup or selenium but I can't seem to understand why I am having problems selecting the element.
There might some issue with the element visibility etc., but I can't see the whole code, so I'll react to only what's in your question: [CODE] is a method, you are not calling it, you'd need something like [CODE] [CODE] is not an attribute, it's text, you need to get it with [CODE] , e.g. [CODE] in [CODE] there's an in...
0
1
558
2021-03-09T19:02:20.033
data_quality
sqa.stackexchange.com
728,152
difference between local port range & UDP sending port using dig on Debian nameserver resolver
When i go to my local port range on Debian 7, i can see that my ephemeral port range is: [CODE] My [CODE] is empty. Normally that would mean that all requests coming out from this nameserver resolver should use ports in that range. However, using [CODE] , when i look at a DNS request & answer created with [CODE] , I ca...
I don't think there is anything wrong with your [CODE] setting or that it wouldn't normally be applicable to this type of scenario, I rather believe this is directly related to making spoofing DNS replies harder. We see in your [CODE] output that you have [CODE] sending a datagram to [CODE] (some resolver server runnin...
2
3
872
2015-10-11T04:40:59.853
api_errors
serverfault.com
353,055
Strategies for avoiding expensive batch searches
We have a list of about 100, 000 customers. Every night, we run a batch search of these customer names against a list of known criminals/suspicious persons. This list contains around 1 million entries. To ameliorate false-negatives, we're using fuzzy string matching which catches small mismatches between the customer n...
Consider a solution with the following parameters a. The suspicious person list as it was the last time you ran the search b. The customer list and the date when each customer was added to the system c. The date when you last ran the search d. The latest suspicious person list The solution would: Diff the latest suspic...
0
3
87
2017-07-19T05:17:29.080
api_errors
softwareengineering.stackexchange.com
927,875
python get-pip.py not working behind proxy
i'm having an issue when trying to run devstack which is trying to get [CODE] using the following command i added the verbose parameter [CODE] i get this output, and it just hangs there forever then tries four more times and quits. [CODE] My machine is sitting behind a proxy, that uses a white list to allow some domain...
It looks like you need to use a proxy but don't setup the proxy with [CODE] . That's why it fails. According to the documentation [CODE] should be given the proxy in the following way: [CODE] Taking the verbose output from your experiments with curl as the base you would need to use it like this: [CODE] Or, with your s...
6
5
15,411
2018-08-24T16:25:44.537
infrastructure
serverfault.com
5,240
Jenkins pipeline nested parallel
Jenkins pipeline, declarative. Simple question, how do I create a parallel stages inside a stage which is parallel by itself? [CODE] I am sure it is possible, but how?
Sure, you can do this with Scripted Pipelines. I've never tried to do it with Declarative so I'm not sure whether it's possible to do with Declarative or, if it is, if it's easy or straightforward. Here's an example of what this might look like with a Scripted Pipeline. I haven't tested it so there may be syntax errors...
4
5
20,361
2018-10-23T13:47:32.543
pipeline_ops
devops.stackexchange.com
369,648
Contact group for alerting after one hour in Nagios / OMD
I am trying to find a solution for the scenario below. I have a few hundred services in a Nagios (OMD install with check_mk and other delicious stuff) and they are defined as different service types so for different types I have different contact groups who will get alerted when a problem occurs. It is working well, bu...
I hate to directly contradict another poster, but NAGIOS can do exactly that: what you're looking for is referred to in the documentation as notification escalations . As the doco says, Notifications are escalated if and only if one or more escalation definitions matches the current notification that is being sent out....
1
3
1,966
2012-03-14T15:27:27.003
pipeline_ops
serverfault.com
175,318
see what ARC does?
If I understand correctly, all ARC does is automatically add memory-management statements such as [CODE] and [CODE] in the proper places in a program. Is there any way to see all the memory-management statements that ARC automatically adds to a program?
In Xcode's assistant editor, choose to view the Assembly for the file you're working on. You should see calls to functions like [CODE] and similar; these are the functions inserted by the compiler to support ARC.
4
5
265
2012-11-09T19:39:39.017
api_errors
softwareengineering.stackexchange.com
115,670
Can I convert a VARCHAR field body to unquoted JSON result in SQL Server 2016 CTP 2.X?
I have downloaded and installed SQL Server 2016 Community Technology Preview 2.3, which if I understand correctly, should contain a built-in function called [CODE] . (Update: CTP 2.4 has shipped and no mention is made of new JSON features yet, either) Starting with the JSON features that DO already work, the " [CODE] "...
You'll need to wait for CTP 3 to use things like [CODE] and [CODE] . These constructs simply didn't ship in the CTPs up to and including CTP 2.4. That doesn't mean there isn't some way to get the result you want right now, but the amount of time and effort you might spend doing so is probably not worth it, especially i...
3
5
1,403
2015-09-21T17:25:05.660
database_errors
dba.stackexchange.com
522,172
530 User cannot log in, home directory inaccessible
I have seen this question asked in the forum, but realized not much was explained about the configuration done on IIS 7.5. I am using IIS 7.5. Have two websites running. One is using the default folder wwwroot. FTP is working here. I set up file permission for domain users, domain admins, IIS_IURS and administrator to ...
IIS 7.5 FTP 530 User cannot log in, home directory inaccessible. Posted on March 21, 2014 by Frank McCourry http://xpertnotes.net/blog/2014/03/21/iis-7-5-ftp-530-user-cannot-log-in-home-directory-inaccessible/ There are a ton of articles out there addressing this issue. I’m not going to repeat them here. What I am goin...
2
1
5,720
2013-07-10T08:28:35.903
infrastructure
serverfault.com
164,701
AAG expansion between datacenters
We have a 2 node AAG setup in the DC data center, and due to an application requirement, it requires a third node to be created at the DR site and the only option I have is at the Data center in San Jose. What I want to know is - is creating an asynchronous connection a feasible option with AAG's (not AAG+FCI) . The 3r...
You can absolutely add a 3rd node to a DR site and have it be an asynchronous replica. It'll be a multi-subnet configuration, so be sure you add the MultiSubnetFailover=True to the connection strings to get a successful connection, that is if the drivers you are using support it. You may want to disable the 3rd node's ...
2
2
51
2017-02-17T15:11:51.137
warehouse_errors
dba.stackexchange.com
1,102,434
GRE tunnel. Port Forwarding with IPTables from VPS to Local Server not working
Dear ServerFault community, I have an OVH VPS with 3 public IPs (1.1.1.1, 2.2.2.2, 3.3.3.3) and I am trying to forward them individually, with one tunnel for each IP, to a server in my office (IP 5.5.5.5) with port forwarding. This so that I can hide my office IP when running services on my office server. 1.1.1.1 is re...
According to the output of "TCPDump from Office server (when visiting 3.3.3.3:80)", it looks like the port forwarding is working. It could be a routing issue from the office server: its routing table is probably set to route all traffic (except local network) via wg0. Therefore, the visitor reaching 3.3.3.3:80 will get...
0
0
1,170
2022-06-03T17:54:55.400
infrastructure
serverfault.com
341,148
Connecting to Redundant NFS Servers (Load Balancers or Round-Robin DNS?)
In a typical NFS setup with redundant servers (multiple boxes), do people use a load balancer or round-robin DNS to achieve a single connection vector for clients? Is there a better way to do this without manually adding the IP address of each NFS share to each client machine?
You might want to read on this: Highly Available NFS Server Using DRBD And Heartbeat On Debian 5.0 (Lenny)
0
1
1,944
2011-12-15T08:38:36.070
infrastructure
serverfault.com
916,576
Trying to create script to port GPO
[SOLVED]: When creating GPO programmatically, the gPCMachineExtensionNames property in the LDAP entry for the policy isn't set. We put some code in the script to export the key to a txt file and then reimported it at the client sites and everything went fine after that. I created a script to create a GPO that we use du...
Unfortunately, this file isn't portable because of the UID in the NTService line. I believe this is equal to a UID for the user account that this service is set to run under (NetworkService, in this case). According to the XML spec for group policy preferences, the [CODE] value is not related to the user you're configu...
0
0
204
2018-06-14T00:43:34.100
infrastructure
serverfault.com
841,978
google compute engine - change external ip after resize
Today change the size of my VM, memory and processor. When doing this I did not mark the previous external IP as static. So the IP change and I want to go back to the previous one. I have tried from the gcloud console but it tells me that the IP I want to assign was not found in the "us-central1" region. These were the...
As explained in the Google groups post , an ephemeral IP is released when you delete the resource that is using it. You can promote or reserve an static IP as explained on this link Static external IP addresses . Note that you can't recover an ephemeral IP.
1
3
619
2017-04-01T16:35:30.847
infrastructure
serverfault.com
152,064
How can I redirect database requests in my postgres server
So I have a list of(lot many) scrapers which push lot many data into one of my database location. Unfortunately I have a requirement that my database location have to be changed for some performance issues. Rather than changing my so many scripts config can I have some mechanism implemented in my db server so that data...
As @horse_with_no_name already comment: you can use pgbouncer to do that. Basically you need to create a pool configuration, and during your maintenance you ajust the pool config to a new server or database. Take a look at the session [CODE] on [CODE] file: [CODE] So, if you want to redirect the connections for the dat...
0
0
1,828
2016-10-12T07:59:39.620
warehouse_errors
dba.stackexchange.com
634,991
MySQL: Grant permissions for `start transaction` and "surroundings"
I have created a sample user with the following request: [CODE] but that user does also need permission to use [CODE] and [CODE] . Which is the suitable permission to allow both commands?
This doesn't require a specific privilege, as a transaction just groups a number of database operations into one to maintain consistency. All you need is to have the privileges to do all operations within the transaction. Please take the time to actually read the MySQL documentation.
0
3
1,261
2014-10-10T08:10:02.380
database_errors
serverfault.com
72,708
execute su -c over ssh
I am trying to check the BIOS version of a server over SSH, a command that requires root privileges: [CODE] but this of course fails with the error: standard in must be a tty How do I make this work? I cannot use sudo, and when I try to log in as root@remote-server, it won't accept the password I use for the 'su' comma...
Use [CODE] to force ssh to allocate a tty: [CODE] You might also consider allowing root to ssh directly. If you're using public key authentication, this may be more secure as you won't be passing a password around. If you decide to do this, consider blocking root logins from anywhere except your trusted IP addresses by...
12
14
34,489
2009-10-08T21:14:42.743
infrastructure
serverfault.com
195,301
Tomcat memory issue?
I have deployed my web application under tomcat6 on windows server 2008. In office hours my application needs to respond to a lot of traffic. At that time it seems that the memory consumption of tomcat reaches say 8GB, however even more memory is available in the system, but my application's response time is very low a...
If you run Tomcat on Windows, you can use the neat "Tomcat Monitor" application that ships with Tomcat (available via the Start menu). Go to the Java tab. At the bottom, below the "Java Options" textarea, you will find 3 input fields: [CODE]
0
0
231
2010-10-27T12:01:19.080
infrastructure
serverfault.com
247,051
Logging Timeout'd Request in Apache 2.X
I am migrating some applications from Apache 1.3 to 2.2. We used to run some tests where attacker opens some HTTP connection to our server, and do nothing. Apache 1.3 would log the following 408 code, for example: [CODE] But with Apache 2.2, nothing is logged to the log file. I run the same test by using netcat to open...
I found this in the Apache mailing list https://issues.apache.org/bugzilla/show_bug.cgi?id=39785 . Which talks about this. This looks like it was resolved in apache release 2.2.2. This is the relevent check in http://svn.apache.org/viewvc?view=revision&revision=919323 . It has a comment stating "Only log a 408 if it is...
4
2
6,373
2011-03-14T07:26:22.517
infrastructure
serverfault.com
439,440
Should i write tests if it takes more time than testing manually?
Im making a website and trying to learn Test Driven Development (TDD) I'm doing one of CS50 projects, were we need to make a website to trade stocks. I decided to use this oportunity to learn TDD. I learned how to use the unittest module from python. But now, im taking way more time to write the tests than actually wri...
Lets take this XKCD literally: You wrote it took you 30 minutes to automate a task which manually takes 30 seconds. Now lets make the conservative assumption that you will run your automated test suite (which includes the test) at least once a day - then you find the break-even point for a five-years return-of-investme...
0
12
567
2022-06-24T00:14:16.500
api_errors
softwareengineering.stackexchange.com
176,560
Use CASE statement with VARCHAR column And SUM()
I have a situation where the data type of the column is [CODE] and I am casting to [CODE] for a SUM() but I need to add a CASE statement/expression to alter to a text string if certain conditions are met. I have tried the below syntax, but I get an error of Msg 8114, Level 16, State 5, Line 7 Error converting data type...
You cannot have a column that holds both [CODE] and [CODE] . The query initially gets a [CODE] value and thus sets the [CODE] column in the subquery as a [CODE] column; when it generates a value a [CODE] , it tries and fails to convert that to [CODE] . You can make the subquery work by converting the results of the [CO...
-1
1
7,472
2017-06-18T02:07:19.967
warehouse_errors
dba.stackexchange.com
62,712
SQL Server: CONVERT From ISO8601 To DateTime Within Query
I have a Microsoft SQL Server 2008 R2 database where the [CODE] column is not a [CODE] data type, but [CODE] . Our website logs that data and I don't really have control over it (I'm sure a proper [CODE] column would be preferable). I'm trying to do a query that gets some year-to-date results with [CODE] . SQL Server t...
The issue is that you cannot [CODE] or [CODE] a [CODE] ISO8601 datetime with an offset to a [CODE] . From SQL Server 2008 onwards, the [CODE] datatype was introduced to handle datetimes with offsets. As answered elsewhere, you would need to [CODE] your DateTime [CODE] column to a [CODE] [CODE]
2
4
18,039
2014-04-07T20:02:54.307
database_errors
dba.stackexchange.com
232,236
Syntax Error on Create Trigger
[CODE] I can't find where I'm doing wrong: [ERROR in query 1] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5
You just need to change the command delimiter that the client is looking for in order to split commands: [CODE] The default is a semi-colon, hence it complaining at the end of the [CODE] line when you try and create your trigger. It's all explained in the documentation here .
0
1
2,802
2019-03-15T10:10:12.060
database_errors
dba.stackexchange.com
527,525
Centos server rebooted unexpectedly and i'm unable to process crash file, what am i doing wrong?
One of my Mysql replication servers has rebooted during the night and i'm trying to find the reason. Running the command [CODE] shows this line: [CODE] I'm trying to read the [CODE] file which has been created during the reboot. I've installed [CODE] package which created the [CODE] file. then I ran: [CODE] Can anyone ...
I found the solution! The steps I did: [CODE] I ran: [CODE] And manually looked for: [CODE] I then ran: [CODE] and [CODE] 'ed the current installed wrong version of [CODE] . Then I installed the correct [CODE] , ran [CODE] and then [CODE] 'd the new [CODE] with the correct version. Then I used the next command: [CODE] ...
2
1
2,945
2013-07-31T08:08:22.057
database_errors
serverfault.com
59
When to use NULL and when to use an empty string?
I'm interested mainly in MySQL and PostgreSQL, but you could answer the following in general: Is there a logical scenario in which it would be useful to distinguish an empty string from NULL? What would be the physical storage implications for storing an empty string as... NULL? Empty String? Another field? Any other w...
Let's say that the record comes from a form to gather name and address information. Line 2 of the address will typically be blank if the user doesn't live in apartment. An empty string in this case is perfectly valid. I tend to prefer to use NULL to mean that the value is unknown or not given. I don't believe the physi...
120
90
138,411
2011-01-03T23:05:38.630
database_errors
dba.stackexchange.com
674,462
Why is RAID 1+6 not a more common layout?
Why are the nested RAID levels 1+5 or 1+6 almost unheard of? The nested RAID levels Wikipedia article is currently missing their sections. I don't understand why they are not more common than RAID 1+0, especially when compared to RAID 1+0 triple mirroring. It is apparent that rebuilding time is becoming increasingly pr...
Generally I'd say RAID 1+0 will tend to be more widely used than 1+5 or 1+6 because RAID 1+0 is reliable enough and provides marginally better performance and more usable storage. I think most people would take the failure of a full RAID 1 pair within the RAID 1+0 group as a pretty incredibly rare event that's worth br...
18
17
12,134
2015-03-11T01:32:33.997
database_errors
serverfault.com
1,146,433
Is it possible to clean up this procmail filtering a little
I have this procmail filter which seems to work, but which I'm really not proud of. I'm convinced that we can do much more optimized and clean with nested sections, but I can't achieve any functional results. [CODE] You may have understood, I try to tag the email headers with [CODE] or [CODE] depending on the clamdscan...
As a quick stylistic note, the braces are unnecessary here. [CODE] The [CODE] flags apply to the action and it's only taken if the conditions match. On the other hand, I would probably use a set of braces around all the actions you want to take when these conditions are true. As an alternative to fix the syntax errors,...
0
1
136
2023-10-23T20:07:18.833
infrastructure
serverfault.com
834,721
Start-Process : A parameter cannot be found that matches parameter name 'Command'
Strangest error. Im attempting to run an elevated powershell process in order to install an application on a headless windows server 2016 core container. steps to reproduce this: start the container in interactive mode ( [CODE] ) from cmd - [CODE] from powershell session prompt [CODE] receive the unrecognized error sta...
That's because Start-Process does not have a parameter called -Command . You probably mean [CODE]
1
2
4,095
2017-02-24T15:04:13.780
pipeline_ops
serverfault.com
588,761
OSX Mavericks and Windows 7 missing files
I have in a local Mac mini server running Mavericks which is acting as a file server for two windows 7 clients The files on the server are mainly images and are shared via SMB. Whenever I try to view certain folders of through a client image editor or ftp client only a few appear. ALL files can be viewed in Windows Exp...
I discovered the solution. The problem lies with an issue in SMB2 running on OSX Mavericks. The answer is to disable SMB2 and SMB3 in the client machine ( in the case below for Windows 7 ) [CODE] Sourced from this article http://support.microsoft.com/kb/2696547 under the section 'How to enable or disable SMB protocols ...
1
1
662
2014-04-13T21:25:38.230
infrastructure
serverfault.com
69,540
Database/Storage engine suggestion for a project involving heavy inserts?
I am looking into a project which involves large number of inserts daily.I will have a list of user's (for example a user set of 500k ) , for which I need to monitor daily certain activities associated with them. For example, let there be a set of 100 users say U1,U2,...,U100 I need to insert their daily scores into my...
Let's break this question up into a few parts. Q: I need to insert 1mm rows a day. Is that a lot? Not really. 1mm divided by 24 hours divided by 60 minutes divided by 60 seconds gives you about 12 inserts per second. For a rough frame of perspective, it's not unusual to see 1,000 inserts per second in typical commodity...
2
8
771
2014-07-02T12:31:24.873
database_errors
dba.stackexchange.com
368,229
802.1x PEAP GPO that trusts self-signed CA certificate
I am working on a Freeradius backed 802.1.x authentication infrastructure for our wireless clients. I am using a rather generic Freeradius configuration with EAP-PEAP. Our clients are predominantly Windows XP SP3 machines but a few Windows 7 32 and 64 bit laptops also exist. Our domain is at the Windows Server 2003 fun...
OK. Admittedly I am not a Microsoft or GPO expert by any means but this just seems weird. This question seemed to have half the answer - the certificate needs to be available in the Trusted Root Certification Authorities on whatever domain controller gpmc is connecting to. That seems to make sense. However, even after ...
4
2
12,575
2012-03-10T02:11:12.030
api_errors
serverfault.com
25,994
Identify social users using graph embeddings
I have a social network and I want to identify the most social people in the graph. In a typical graph experiments this could have done using different network features. However, I recently came across graph embeddings and interested in knowing if my problem can be solved using graph embeddings. If so, please letme kno...
This question can have many ways to answer but here is what I think: Lets assume the example of very common, facebook. Very naive sense Number of friends is equal to the 'social-ness' of the person. In graph context, a node with more degree will considered to be strongly connected in the graph. But ofcourse we know thi...
1
1
201
2017-12-25T16:57:29.313
data_quality
datascience.stackexchange.com
827,717
pureftpd mysql auth working on one server but not others with same config
System: Ubuntu 16.04 Percona Server (using Galera cluster) pure-ftpd-mysql from the Ubuntu repositories The pureftpd database is replicated to all five servers in the cluster and I have verified the replication is working and the tables are identical. Issue: I installed pure-ftpd-mysql on one of the five servers in our...
I resolved this by removing [CODE] and reinstalling [CODE]
0
0
569
2017-01-21T12:20:33.197
database_errors
serverfault.com
291,890
Security best practices for SSIS package execution via SQL Agent job
We're trying to rein in the number of sysadmins on our servers, and one of the issues we're running into pertains to SQL Agent security -- especially with regard to SSIS jobs and our ETL team. I understand that non-sysadmins cannot execute SSIS job steps by default and that proxies can be created in order to allow this...
You don't need to use a proxy account nor do you need to grant [CODE] to your ETL team for them to be able to run SSIS packages and SQL Agent jobs . You should first look into the SQL Server Agent Fixed Database Roles , such as the [CODE] . (I'm guessing you have already, but in case you haven't yet.) If that alone doe...
1
2
2,743
2021-05-19T20:46:38.397
data_quality
dba.stackexchange.com
161,705
Is there a limit on how many global consts are used before an application is considered bad programming?
Basically, I develop websites, some large with many crud operations, etc... However I've gotten into the habit of storing re-usable data as a constant in my PHP applications I currently have 44 constants defined in one application. These range from: Database config Home page for admin and guest url slug names declaring...
It's okay to break programming rules if you understand the potential problems the rules are designed to avoid. For global constants, the main problems are discoverability, name clashes, difficulty unit testing, and difficulty recognizing poor cohesion. I would seriously consider refactoring them out in the following ci...
3
14
1,094
2012-08-21T11:27:32.287
api_errors
softwareengineering.stackexchange.com
866,067
Errors when using Google Container Engine (GKE) with Google Container Registry (GCR)
In setting up our company infrastructure on Google Container Engine, I'm attempting to place our Docker images in Google Container Registry. When I attempt to start a Deployment using the images hosted on GCR, I'm getting the following errors on the pod in kubernetes. Failed to pull image "gcr.io//portal:latest": rpc e...
So, I found the problem. In moving the project from my "experimental" environment to production, I changed the name of the app from [CODE] to [CODE] . I had this buried in my container definitions so I was using the wrong URL for my images. I put in a request with Google for a better error message.
2
3
2,632
2017-07-31T14:14:27.390
pipeline_ops
serverfault.com
713,700
postgresql: 'invalid page header' message even after drop and recreate
My Ubuntu 14.04 LTS server running postgresql 8.4.11 crashed, and after a reboot the application server running a query against postgresql reported the following error [CODE] I googled, tried to create a dump, and used the resulting error message to identify a broken table. I then executed [CODE] others mentioned [CODE...
This sounds like you have corruption of some sort on your filesystem or disk. I'd recommend looking here: postgresql corruption Following that, I'd look in [CODE] or [CODE] for any hardware errors you might see. If you got a working dump, I'd copy the current data directory away from [CODE] , run [CODE] on a new direct...
1
3
2,854
2015-08-12T18:35:28.220
database_errors
serverfault.com
291,284
Sendmail sending @samedomain emails to /var/mail/root
I found out a lot of people with the same problem but anybody actually solved it aparently The thing is that i can send emails to anyone@anywhere but when i send to @mydomain it is sending to /var/mail/root and in /etc/mail/local-host-names there is just "localhost" written, which i commented and still the same problem
I've written a blog post that covers similar problems. Maybe it can be of help to you.
1
0
634
2011-07-18T01:26:17.553
infrastructure
serverfault.com
880,497
Unable to Access Terra-Master F4 NAS with Full HDD's
I have a TerraMaster F4 NAS in a RAID 1 configuration. The drives ended up filling up (only 20.0 K free according to a mapped drive's info), and now I can't access any data on them. At this point I'm perfectly content just to get in there and start deleting some files, however nothing I do seems to work. Mapped drives ...
Ultimately bought an external HDD case, connected it, and remounted the drive using mdadm so that I could delete files and copy the drive. From my research it appears that every server handles the disk full scenario differently, so if you’re looking at this for different hardware you may not need to go this route.
0
0
1,097
2017-10-26T19:43:01.857
infrastructure
serverfault.com
336,133
How to make my educational dynamic array C library less verbose to use?
I really like to make tools prior to starting some assignment, so for the C programming assignments I have prepared dynamic array library. We are restrained to only using C99 standard. Note that all programming I'm describing below is, as per question title, done for education purposes . This is not production code but...
First, I believe that flexible array members are relevant for your task. Then, you should use much more inline functions , that is [CODE] functions defined in some header file. They are in practice as readable as functions, and as fast as macros. BTW, it is common practice to have some header declaring [CODE] functions...
3
0
406
2016-11-15T21:20:27.893
api_errors
softwareengineering.stackexchange.com
176,160
How to check which database roles can see `masked` columns?
In [CODE] standard edition we can use dynamic-data-masking . The masking of data is controlled using the built-in security, for example: [CODE] Of course, this is not working for the users who are members of the [CODE] database role. Is there a list with security roles or cases showing when the [CODE] is going to work?...
How to check which database roles can see [CODE] columns? Normal query which checks for users permissions seems to do the trick [CODE] I tested it on below sample script from msdn [CODE] now querying gives me below result
2
1
4,731
2017-06-13T13:16:11.247
warehouse_errors
dba.stackexchange.com
17,255
Top level domain/domain suffix for private network?
At our office, we have a local area network with a purely internal DNS setup, on which clients all named as [CODE] . I also have a VMware environment, and on the virtual-machine-only network, I name the virtual machines [CODE] . Currently, this network for the virtual machines isn't reachable from our local area networ...
Since the previous answers to this question were written, there have been a couple of RFCs that alter the guidance somewhat. RFC 6761 discusses special-use domain names without providing specific guidance for private networks. RFC 6762 still recommends not using unregistered TLDs, but also acknowledges that there are c...
194
112
211,335
2009-06-01T21:47:14.133
infrastructure
serverfault.com
46,074
Query Plans not retained insufficient memory errors
We have been experiencing memory issues with SQL Server. We first realised we had a problem when we started getting timeouts and login errors: A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The specified network name is...
I'm guessing the 'memory left' output you posted is from Christian Bolton's VAS usage analysis script . Is that correct? If so, you have only 17-18 MB available in the [CODE] area, which is likely to cause a problem at some point and could cause all or most of the error messages that you pasted. This query from Jonatha...
6
8
1,041
2013-07-10T12:38:47.983
pipeline_ops
dba.stackexchange.com
429,282
Rock Paper Scissors with Visitor Pattern
I've been going over the Visitor Pattern to try to understand it. Is this a correct implementation of the Visitor Pattern for RPS?? Here's the implementation code: [CODE] I think I understang the gist of it (avoid the instanceof operator) but it seems a bit cumbersome in the sense that if you have N visitable elements,...
This is an interesting use of the implementation techniques behind the visitor pattern. However, is does not reflect the essence of the visitor pattern which is: Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the ele...
1
3
384
2021-06-12T17:57:11.487
api_errors
softwareengineering.stackexchange.com
549,239
Doesn't DNS diversity negatively affect performance? Why/how?
If you look at the press releases of various orgs that run the internet, you can see them praise the fact that now they run root server X in city Y, as if that magically makes everyone in city Y get all the relevant resolutions from the local server X, instead of going 200ms across the oceans and lands to other contine...
Anycast is what makes this work well for large DNS servers. The same IP address gets routed to servers all over the world, and the routers closest to you pick the nearest one. Most geographical diversity for DNS is about making sure it stays up even in the event of large outages.
0
2
161
2013-10-28T21:03:49.553
infrastructure
serverfault.com