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
390,101
Cannot write to newly created file
I have an ubuntu server. I created a simple [CODE] file using [CODE] . and tried to use [CODE] and it turns out the permission is denied. Why is this? If I just made the file on the server why wouldn't I have write access in the first place? My second question is if I wanted to change the permissions to the number form...
Your problem is reading nano's history file (.nano_history), as indicated very clearly in this massively whitespaced error line: [CODE] This is opened prior to nano opening your file (which works fine because 644 is okay for this) Looks like your home folder/.nano_history's permissions might be set too tight. Following...
0
7
1,652
2012-05-17T18:07:58.637
infrastructure
serverfault.com
71,906
MS Access .mdb & .ldb database corrupted
I am using a A.mdb database. You know when connecting the database Microsoft automatically create a .ldb file. Unfortunately my pc shutdown when connecting the database. As a result after restart the PC I couldn't open the A.mdb file. The message shown A.mdb database is corrupted. A.mdb database was password lock but a...
Open in Safe Mode Open the Access application with the following option: [CODE] Open and compact/repair Open the Access database with the [CODE] parameter: [CODE] Reference: Command-line switches for Access Open the database and repair In Microsoft Access 2000 and later, compact and repair functionality is combined und...
1
1
4,992
2014-07-19T13:57:01.587
data_quality
dba.stackexchange.com
580,900
Login for users with no folder redirection is virtually instantaneous, but login for users *with* folder redirection takes around 45 seconds
I have just configured a Windows 7 laptop for use on a SBS 2003 domain. Everything works perfectly, except users with folder redirection have to wait approximately 45 seconds before they see their desktop after entering their credentials. This happens both when they are connected remotely to the main site via VPN and w...
It is expected to have such behavior over a WAN connection -which got confirmed by yourself in the answer you just posted (actually 45sec is not bad at all). have a look to this Technet Article for Folder Redirection over Slow Link GPO.
1
2
698
2014-03-09T23:16:55.697
infrastructure
serverfault.com
433,892
Is there a reason why you shouldn't use 'integration variables'?
I tend to create a variable whenever I need an uncircumstantially same value as to that of an earlier value more than once (the values are not happening to be the same by chance rather they actually have to be the same). I think of them as the integration variables , as their particular value may have of no importance ...
For example, having an additional line, for defining a variable, makes it a tid bit harder to c/p and run the line of the code. Not really. In fact the definition of variables makes code far easier to reuse. It might not apply as well to shell scripting (which I believe is the context here) but assigning variable names...
0
6
311
2021-11-29T17:54:28.050
pipeline_ops
softwareengineering.stackexchange.com
154,838
After how much line of code a function should be break down?
While working on existing code base, I usually come across procedures that contain Abusive use of IF and Switch statements . The procedures consist of overwhelming code , which I think require re-factoring badly. The situation gets worse when I identify that some of these are recursive as well. But this is always a mat...
If you want to change this code, first write unit tests that validate it's functionality. Then as you make changes you will have confidence that you haven't broken anything. There is no hard and fast rule about numbers of lines, but a function with 40+ lines is certainly a hint that it is too long. A function with 2 li...
1
7
2,800
2012-06-29T11:16:44.557
pipeline_ops
softwareengineering.stackexchange.com
986,656
Cockpit-Machines Guest Machines configuration location
I've installed Cockpit and cockpit-machines to manage KVM virtual machines. I tried installing Lubuntu through cockpit but it fails with an error: [CODE] I want to find the configuration file for the Guest VM because I suspect that the config file has some wrong default parameters. I can't seem to find the config file....
This is just a front end to libvirt, so you can use the ordinary libvirt command line tools to manage the same virtual machines. For instance [CODE] , or by running [CODE] to use a desktop app to manage them.
0
1
812
2019-10-03T14:31:39.233
infrastructure
serverfault.com
110,599
Use PostgreSQL builtin operator <@ after including extension intarray
I added the intarray extension to my PostgreSQL database in order to make use of the [CODE] operator, but I still want to use the builtin [CODE] operator, not intarray's [CODE] operator. Is there a way to do this? The reason to prefer the builtin operator is that the builtin operator allows [CODE] values in the array i...
If you installed the [CODE] extension to the [CODE] schema (or some schema other than [CODE] ), you can schema-qualify the operator to choose the built-in one. Instead of [CODE] you can write [CODE] to schema-qualify it. e.g. [CODE]
4
3
447
2015-08-10T20:30:29.790
database_errors
dba.stackexchange.com
420,374
Problems with bash variable expanding with single quotes
I have a variable that I build like this : [CODE] The variable now contains (notice the whitespaces in the file name) : [CODE] And now I want to use this variable in a command like this one : [CODE] But it turns out that it expands like this, and thus the command fails (notice the added single quotes surrounding the ex...
Filenames are notoriously unreliable in expanded strings; resist this temptation. Instead, use an array to keep the filenames intact, regardless of any whitespace: [CODE] See the Bash Guide on Arrays for reference.
4
7
6,022
2012-08-23T11:07:54.903
infrastructure
serverfault.com
857,102
psexec hangs only when using username and password and calling from a PowerShell script
I am attempting to use psexec to start a process in an interactive session that has already been opened. Both my machine and the remote machine are Windows 7. Using the command from within command prompt works fine, the executable is started and is visible in the GUI. [CODE] However, when I attempt to execute the same ...
Declaring a variable like [CODE] makes an array of strings. You are running whatever the strings say (using [CODE] ) instead of launching a process and providing arguments, so the arguments would need to be simple strings as well (not an array of strings). Then to further muddy it, if you were to provide the arguments ...
0
0
3,061
2017-06-21T17:08:53.153
infrastructure
serverfault.com
223,224
virtual host settings fail on multiple sites
Edited (again): I thought that an apache2 installation on my ubuntu os (personal) would enable me to "host" websites internally - without going onto the web. I am realizing now that the two domains that "work" are actually registered domain names, the other two are names that I intend to register later when I go live. ...
The answer was in the /etc/hosts file. To discover IP addresses for names the systems DNS resolver will (should) first look to the /etc/hosts file for name=ip, if not there it goes on a DNS search. Read "man hosts" to see the syntax for the hosts file. Assign all of your domains (preferrably not FQDN) the ip # of your ...
1
1
2,971
2011-01-17T06:14:36.370
infrastructure
serverfault.com
271,108
Preventing bash (and ksh) history alteration in Linux
From the looks of things, fixing ksh to make history alteration impossible is fairly easy. I've seen all the recommendations to make HIST* environment variables read-only, and the use of chattr to make the history file append-only (with chattr +a .sh_history). Bash, however, has two things which seem to make it impossi...
Here's a solution for sending all commands executed to a syslog server. http://blog.rootshell.be/2009/02/28/bash-history-to-syslog/ Extract from the blog post Here are two methods to send a copy of all commands executed by the users to a Syslog server. The first one will use the Bash “trap” feature. The second one is a...
3
4
2,281
2011-05-18T17:22:43.890
infrastructure
serverfault.com
918,557
Apache2 proxy fastcgi conditional rewrite with proxy pass match and cookie
I currently have two projects: /home/piotrek/Vhosts/sf.local/web/app_dev.php /home/piotrek/Vhosts/sf2.local/web/app_dev.php Both have same repo but are set to two different branches. I have vhost for first site: [CODE] When I request http://sf.local/ everything works fine. But now I want to send people to /sf2.local/ w...
Ok, so I figured it out. Vhost should look like this: [CODE] /home/piotrek/Vhosts/sf.local/web/app_dev.php [CODE] /home/piotrek/Vhosts/sf2.local/web/app_dev.php [CODE] Now, when I enter http://sf.local/ first time, request is rewritten to [CODE] [CODE] handles request to old theme directory [CODE] cookie is set [CODE] ...
1
0
717
2018-06-27T21:15:02.220
infrastructure
serverfault.com
505,675
Unable to connect to SQL Server 2012 Enterprise local instance
Just installed SQL Server 2012 Enterprise on my work machine, and I'm unable to connect to my local instance (MSSQLSERVER). I get the "Login failed..." message. I enabled the SQL Server Browser service, and have tried many different combinations of logins, using both Windows Authentication and SQL Server Authentication...
Gary, the part of SQL Server setup you need to look at is as follows. Make sure you record what users and groups are in the Specify SQL Server administrators section.
0
2
4,930
2013-05-07T14:55:34.863
api_errors
serverfault.com
331,999
Slow CREATE TABLE AS followed by SELECT (other solutions haven't worked)
I have a problem which is similar to Slow CREATE table from subquery using SELECT .. INNER JOIN but the solutions provided there have not made any difference for me. I'm using MariaDB 15.1 and have tried this on 2 separate physical machines. One is a production web server (4 GHz, 8 core Xeon with 32 GB RAM and a produc...
You can use the [CODE] command to "debug" i.e. show the query execution plan. Or even the [CODE] command which will actually run the query and give you some additional stats. You can use [CODE] with both commands if you prefer to read JSON format, and I think it also can give additional information. Your [CODE] query c...
1
1
55
2023-10-10T09:21:52.940
database_errors
dba.stackexchange.com
1,073,503
AD account for monitoring services across servers
We have some Windows servers that run various services and we have a situation where sometimes those services just stop. To monitor these services I have written a Windows service that uses the ServiceController to look at the suspect services and check their current status. This works fine when I configure the new ser...
The account will need the following access on scmanager to remotely monitor all of a machines services: This String that would need to be injected into the current scmanager ACL: [CODE] [CODE] The ACL is stored at [CODE] You will want to determine what the current ACL is on scmanager, and include the above string in th...
0
2
308
2021-08-04T11:38:34.003
database_errors
serverfault.com
1,001,506
Process request in NGINX on Azure App Service
I have an UWSGI application and a Celery/Flower task worker/monitor. They are deployed on Azure App Service as a multi-container application. Locally I am routing jobs to the worker by using "HOST: worker" in the HTTP request. The task monitor is set as default_server. Both are listening on port 80, since Azure App Ser...
I eventually solved the issue by routing requests based on location. Note that the location has been changed to avoid conflicting with the internal routing of the backend application. [CODE]
0
0
1,200
2020-02-03T08:13:44.767
pipeline_ops
serverfault.com
960,792
Installing a commercial wildcard SSL cert on Nginx
I'm trying to install a Godaddy wildcard SSL certificate on AWS Lightsail (Ubuntu/Nginx). The [CODE] is mainly the default one that gets installed with nginx... [CODE] I did a [CODE] and everything looked good so I restarted nginx. In a browser I get "This site can’t be reached". When I do a curl it hangs. I've turned ...
Server blocks normally come in below the basic settings or by way of: include /etc/nginx/conf.d/ .conf; or include /etc/nginx/sites-enabled/ ; And not before the basic settings of the nginx http block so I'd give that a shot as a starting point. ie. https://www.nginx.com/resources/wiki/start/topics/examples/full/ Also:...
0
0
679
2019-03-30T22:34:09.820
api_errors
serverfault.com
951,592
Replace explicit `virtual_alias_domains` by domains in `virtual_alias_maps`
I have a working Postfix config with some local mailboxes, some local aliases and a handful of purely virtual alias domains. Because I find it tedious to add all to [CODE] I'm asking: How to define them by simply using them in [CODE] ? Example: [CODE] When adding new entries like [CODE] I will probably forget to list t...
I ran into this same problem. This answer is correct but I wasn't quite understanding what it meant. To use a single file for both [CODE] and [CODE] , you need to separately include each domain that you are forwarding for, without an [CODE] . To keep Postfix happy, both a key and value are required, but for these domai...
0
1
672
2019-01-30T23:30:35.213
infrastructure
serverfault.com
287,116
Galera - why can't I use port 4567 for replication?
I have two [CODE] clusters in two different datacenters. I want to replicate cluster [CODE] (using [CODE] node as replication master) to cluster [CODE] (using [CODE] node as replication slave). Everything works well if I use port [CODE] on [CODE] for [CODE] instead of the default port for replication [CODE] . If I swit...
[CODE] is the default Galera Replication Port for replication between nodes within a Galera cluster. That is not what you want to use here - you are doing primary-secondary replication (master-slave). [CODE] is the default TCP/IP port you want to use for primary-secondary (master-slave) replication.
0
2
581
2021-03-16T12:04:58.610
database_errors
dba.stackexchange.com
505,694
Vps to laptop ssh tunnel
I have a laptop that I use mostly as a desktop but occasionally it moves networks. I have a vps with a static address and I want to forward ports from the vps to the laptop so that I can get to the laptop from a public address even if the laptop is behind a router with no port forwarding setup. Is this possible by runn...
The usual way is creating a VPN (e.g. with OpenVPN). But you can use SSH, too. [CODE] You can automate this by using keys without passphrase but interrupted SSH connections are not restarted automatically. Thus it would be useful to make the SSH call from a loop. OpenVPN would be more useful though. Edit 1 If you want ...
1
2
513
2013-05-07T15:48:55.083
infrastructure
serverfault.com
308,710
Windows 2003 networking performance behind leased line
I have a leased line which is capped @ 10mbit/sec up & down. Border device is a Draytek Vigor 3300V+. I have a couple of Dell servers running Windows 2003 behind the Draytek. My issue is that the upstream speed from the servers maxes out at about 7-8mbps when accessing them from another location. As a test, I installed...
Did you try disabling the QOS scheduler on the network adapters? 7-8 is right around 20% of the maximum speed, which according to http://support.microsoft.com/kb/316666 is the limit as to what programs can reserve through the QOS scheduler. Also, check that the MTU of the adapters is set correctly for whatever your int...
2
0
154
2011-09-06T20:50:56.250
infrastructure
serverfault.com
1,116,756
Isolating CPUs on AWS/GCP: error mounting cpuset
I have two 32 vCPU instances on AWS/GCP. I'm trying to set up cpu shielding so that CPUs 0, 1 are used by the system, and cpus 2-31 are shielded and only used explicitly by userspace threads. System info: [CODE] [CODE] However, when I try to run [CODE] , I get an error to do with mounts: [CODE] I've dug a bit into the ...
You are using systemd which already mounted v2 ("unified") cgroups, so its not you managing the control groups - its systemd. Tell it to do so via the [CODE] and related options in the [CODE] section of a [CODE] file . You can then use the [CODE] (empty to reset, non-empty to add) in for those specific unit.service fil...
2
2
1,208
2022-11-27T22:51:45.777
infrastructure
serverfault.com
659,359
default NTFS permissions on NetApp CIFS share
Basic premise is that I've created a share and permissioned it up and I can't then change permissions, or even create a folder in it. Volume: /vol/ProjectData Share /vol/ProjectData as \netappfiler\Projects inside OnCommand System Manager I've assigned a domain group for which i am a member as having full control. I ex...
Never have volumes or qtrees set to mixed security. Pick either NTFS or UNIX and use that. If you want to be able to have a CIFS shares to a folder with permissions, use NTFS. If you need both concurrent CIFS and NFS connections, pick NTFS. If it's a LUN or a NFS share, pick UNIX. If you right click a volume in the gui...
1
0
6,749
2015-01-14T09:20:19.230
infrastructure
serverfault.com
238,619
Table structure for entity versioning
For an assignment I have to build an application that is able to store tests. Every test has to be validated by a a different user when created or updated. When it has been validated by an user, the test gets an expiry date of the last time it was validated plus 2 years. Everytime a test gets updated, it creates a new ...
My preference is to handle this with a stored procedure rather than a trigger, but that's an option if you have a lot of legacy code running unwrapped [CODE] s. [CODE] Apologies if I screwed up the MySQL syntax, I've been working in MS SQL 90% of the time for the past ten years. Note that this code temporarily sets the...
1
2
2,218
2019-05-20T20:25:24.103
warehouse_errors
dba.stackexchange.com
372,778
IIRF on IIS 6 Rejects Server Connections
My clients have two sites (call them, say, [CODE] and [CODE] ) that are run as subscription services. They want clients to be able to access [CODE] only if they've got a paid subscription on their main site, so anyone accessing [CODE] directly or not through [CODE] should get redirected to [CODE] (to buy a subscription...
It turns out that while our server runs on the 64-bit version of Windows Server, our IIS installation is running in 32-bit mode. Running through the Windows Event Log revealed that we had the 64-bit version of IIRF. The 32-bit version wouldn't install on our server (sensibly enough), so a manual installation got it to ...
1
0
481
2012-03-23T15:25:34.890
infrastructure
serverfault.com
322,547
Operation not allowed from within a pluggable database Pre-Built Developer VMs for Oracle VM VirtualBox
I downloaded Pre-Built Developer VMs for Oracle VM VirtualBox , which contains Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 I want to BACKUP the Database using Rman , but it is in NOARCHIVELOG mode, so it is necessary to shutdown and change the database to ARCHIVELOG mode, but when I try to alter database ...
"Pluggable Databases" are not really Oracle Databases at all. Think of them more like "TableSpaces on Steroids". All the "real" database work, including Redo Logging, is done by the Container Database (CDB). Seems a bit weird, I know, but that's how Our Friends in Redwood City decided to do things. You can do just abou...
0
0
693
2023-01-25T12:07:07.097
hadoop_errors
dba.stackexchange.com
809,413
Use LetsEncrypt certs with Neo4j
How can one use the certificate files generated by LetsEncrypt together with a Neo4j instance? The files generated by LetsEncrypt are: cert.pem chain.pem fullchain.pem privkey.pem I've tried conversion via OpenSSL with no luck so far, using conversion from PEM to DER. Neo4j complains about not finding the certs upon st...
I was able to use the lets encrypt certificate on neo4j by using the following process: Used the letsencrypt/acme client implemented as a shell-script method to make the certificate for my domain. Three files are generated running the script to get the certificate fullchain.pem cert.pem privkey.pem Copy them to the cer...
8
9
1,474
2016-10-16T22:11:42.167
infrastructure
serverfault.com
1,102,044
Error installing mongodb on debian 11 in proxmox container
I try to install mongodb on Debian 11 in a proxmox VE 7.1 container as described in this tutorial https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-debian/ But I get the following error: [CODE] [CODE] Here the full log: [CODE] What is causing this error?
I changed the container from unprivileged to privileged made a backup of the original unprivileged container 113 made a new privileged container 117 from the backup pct restore 117 /var/lib/vz/dump/vzdump-lxc-113-2022_05_30-10_13_11.tar.zst --storage local-lvm --unprivileged 0 Now I can install mongodb without errors
0
0
1,065
2022-05-30T07:51:14.857
database_errors
serverfault.com
738,394
Ubuntu 12.04 PHP 5.3 to 5.5 update fails
on a Ubuntu 12.04 Server I´m trying to update PHP 5.3 to 5.5 this is what I have done: [CODE] unfortuntely the installation ends with following error: [CODE] It seems PHP 5 affects Apache 2.2 as well. Thankful for help why the subprocess was killed. EDIT: I solved this by uninstalling apache2.2 completely and reinstall...
I got same problem when upgrade PHP, you can try this [CODE] and then install php5 by [CODE] this will upgrade apache2, enjoy it.
1
1
1,299
2015-11-23T17:13:41.017
infrastructure
serverfault.com
507,594
CentOS 5.9 Apache mod_php issues
I'm currently using NGINX with FastCGI and PHP 5.4 on the production server. Lately we've been getting mass CPU usage spikes and I'd like to spend a few days using Apache and mod_php again to see if the problem might be isolated to NGINX/FCGI. The server is new, conf copied from previous server. The problem is, I don't...
The required libphp5.so should be part of your php-package. Check [CODE] for it. As you have PHP 5.4 installed on a CentOS 5, this is definitely not a package from the standard repo (perhaps you compiled it yourself?), so it's possible you don't have the apache module compiled with it. In this case, you would have to r...
0
1
1,583
2013-05-14T09:57:33.467
infrastructure
serverfault.com
260,201
Help Installing Perl Module XML::Parser using CPAN
I'm trying to install the XML::Parser perl module using CPAN and can't get it to work. Below is the output that is being displayed by CPAN which appears to indicate that Expat is the issue. Geting this installed is critical for us and I'm at a loss as to what to do next. Any help would be greatly appreciated! [CODE]
You're probably missing the expat dev package. On Debian or Ubuntu, just type: [CODE] On RedHat or CentOS, type: [CODE] Hope this helps!
5
5
7,630
2011-04-15T17:34:51.693
infrastructure
serverfault.com
542,381
Openvpn, forward packets very slowly
I rebooted my server, and an odd issue just came out. I am running on ArchLinux, the clients are Ubuntu, Android and Mac. The problem is that accessing the internet via the clients is slow, about 2ko/s and slowly stop. But downloading something from the server to the client directly is made at full speed. And, obviousl...
I am not sure if it is same cause but I think it worth to adjust about tun-mtu and mssfix as mentioned in openvpn-on-android-tcp-retransmissions-after-openvpn-server-reboot EDIT: I found this one might be helpful too [RESOLVED] Inacceptable openVPN performance Changing a kernel parameter: net.inet.ip.fastforwarding = 1...
10
1
6,332
2013-09-28T16:23:38.893
infrastructure
serverfault.com
940,282
Monitor for duplicate MAC addresses?
We just had our third incident of a duplicate MAC address from provided hardware in 2 years. I know it's possible to override the MAC in software, but detecting it during troubleshooting can take ages in a large network. On Linux, how can I monitor for duplicate MAC addresses across a whole network so that I can send i...
Do you have managed switches? I suspect my approach might be to periodically pull the mac tables (cam table) from all your switches/network devices and then store them in some kind of database or something where you can track which mac addresses are being used on which switch/ports. There are many tools that could be u...
2
4
651
2018-11-16T06:01:16.413
data_quality
serverfault.com
49,109
loss/val_loss are decreasing but accuracies are the same in LSTM!
I am trying to train a LSTM model, but the problem is that the loss and [CODE] are decreasing from 12 and 5 to less than 0.01, but the training set [CODE] and validation set [CODE] and they remain constant during the training. Why this happening and how can I fix it?
I think this is because your targets [CODE] are continuous instead of binary. Therefore, either ignore the [CODE] report, or binarize your targets if applicable. I assumed you are using [CODE] . When you use [CODE] , this is what happens under the hood: [CODE] where [CODE] In the case of continuous targets, only those ...
2
6
4,883
2019-04-11T09:30:05.897
data_quality
datascience.stackexchange.com
166,477
Constraint to prevent 'duplicates' only when column > 0
I have a table with a [CODE] column that should be unique when another [CODE] column is [CODE] . If that sentence doesn't make sense, here is an example of valid rows: [CODE] Adding a new row to the table with a [CODE] value of [CODE] and a [CODE] column that is [CODE] would be invalid. Is there a way to do this with a...
Add a conditional unique index [CODE] dbfiddle here
3
6
406
2017-03-07T19:14:34.680
data_quality
dba.stackexchange.com
265,876
How to make apache display "only" PHP errors?
Trying without succes to make apache display on screen errors on our development server. Basically I understand that my: [CODE] Has no effect over: [CODE] As this will also insist in displaying all PHP notices as well. I was hoping that only the specified error level on the PHP ini would have effect over the display_er...
You're trying to filter specific types of notices, correct? The PHP manual shows a couple ways of doing this. First, you can allow which errors to be reported by specifying the type followed by a pipe character ( [CODE] ) for each specified type. Second, if your intention is to remove a specified type you can use the c...
0
2
1,945
2011-05-03T15:07:33.437
infrastructure
serverfault.com
1,888
What bug statistics are most useful? Why?
One of the managers at my company recently suggested that we should add a field in jira to track the number of times a bug gets reopened. I thought that it wasn't a very useful thing to keep track of but I had a hard time articulating why. So, I have a couple questions: What statistics do you track? How do you decide w...
As well as the usual "what they said" to joshin and user246, I'd add this: there's no guarantee that the number of times a bug gets reopened is going to give you any useful information. Here's a few reasons why: There are several different bugs involved, but they all have the same symptoms. Here, someone could have reo...
12
8
11,090
2011-10-03T16:20:54.023
data_quality
sqa.stackexchange.com
975,750
re-parenting to screen two processes joined by pipe
Let's say in a PuTTY connection I start [CODE] which creates two processes: [CODE] with PID 5800 and [CODE] with PID 5801. Is it possible to let the running processes continue execution when I want to close PuTTY and still be able to get back to them later? I found some answers around here that deal with a single proce...
Leave your busy session running. Open another fresh session. Use [CODE] so that app will persist even if you close or lose your ssh connection. The [CODE] is similar to [CODE] , arguably a bit better. [CODE] Now the crucial step, steal the terminal of the processes. [CODE] I've noticed one side effect of the [CODE] met...
0
1
379
2019-07-18T13:11:14.180
infrastructure
serverfault.com
521,101
Change DN in OpenLDAP "on the fly"
I'm a newbie in LDAP and I have the following issue: I use OpenLDAP as a caching proxy for remote Active Directory. And the full DN of a user is like [CODE] , while the [CODE] ( [CODE] ) is the short form of first and second name. For example John Doe will be jdoe . I already have SVN server, Bugzilla and ReviewBoard w...
Even though this question might be a little old, I've come up with a few thoughts on this. Maybe it will help somebody in the future: You could simply modify the DN by using [CODE] with [CODE] or [CODE] providing the new DN ( [CODE] ). More information on this can be found in bulletpoint number 4 in here: http://www.zy...
2
0
4,669
2013-07-05T14:35:58.443
infrastructure
serverfault.com
660,560
Loop device going into Readonly Mode
We are using a network Samba drive for Backup on our Linux Server. In order to store permissions (Samba does not support this), we have created a loop device to a large file (50GB) on the network drive. This works fine most of the time, but every few weeks the loop device goes into readonly mode. Here is the fstab snip...
Years later we replaced this loop drive on samba with Borg backup over ssh. This is overall better solution for file backup.
1
1
1,914
2015-01-19T08:45:22.877
database_errors
serverfault.com
339,429
Is there any difference between casting and calling .Value in Nullable<T> objects?
Let's suppose we have a nullable variable. [CODE] If we wish to use it's value, there are at least two options: Explicit casting [CODE] Calling [CODE] 's [CODE] property [CODE] I've noticed that when the conversion fails, in both cases the same exception is thrown ( [CODE] ), which makes me think that they are both imp...
If you check out the source for [CODE] , you'll see that the explicit cast operator does this: [CODE] And that that [CODE] property does: [CODE] In other words, the cast calls the property and the exception is thrown by the property. So, no, there is no difference between the two options. Style-wise, we are then into s...
6
12
1,786
2017-01-04T15:26:08.677
api_errors
softwareengineering.stackexchange.com
363,122
How does mysql determine the hostname of its clients?
I'm trying to create a MySQL user which will only be allowed to connect to the MySQL database from a specific hostname. grant all on db_name.* to 'user_name'@'appserver-lan.mydomain.com' identified by 'some_passwd' By checking the user table on the mysql db, I can see that the user was created successfully: use mysql; ...
It uses a reverse DNS lookup. It takes the IP address of the client and uses whatever PTR record is returned for that name. In my opinion doing authentication based on the name is not very useful at all, I suggest you consider using IP addresses instead. See this document about how Mysql uses DNS .
15
15
38,652
2012-02-23T19:13:07.720
database_errors
serverfault.com
159,536
ERROR: invalid input syntax for type money
While importing I get this error: [CODE] [CODE] completed, but the [CODE] table is empty. This is Heroku's PostgreSQL Dump database. PostgreSQL version on Heroku is 9.3.15 and the same on my system The command I used: [CODE] Could anyone suggest a solution?
The manual about the [CODE] type has advice for your case exactly: Since the output of this data type is locale-sensitive, it might not work to load [CODE] data into a database that has a different setting of [CODE] . To avoid problems, before restoring a dump into a new database make sure [CODE] has the same or equiva...
7
12
6,495
2016-12-30T02:29:14.053
database_errors
dba.stackexchange.com
284,785
Postgres handle case to continue Insert other row if some row doesn't exists
I am trying to insert data to a table using below query: [CODE] This query fails when some user is not there in users table ( [CODE] ). I want to handle such cases, and skip such rows (where username doesn't exists) and continue adding other rows. In case of duplicate rows, I know we can do "On Conflict Do Nothing". Is...
Build a [CODE] expression that does what you want, and then use [CODE] to insert it into the table. To get a [CODE] that does what you want, wrap the [CODE] expression in parentheses, add an alias with field names for your sub-selects, then add a [CODE] for the project and user IDs being [CODE] . The final query become...
0
0
69
2021-02-05T15:42:52.560
data_quality
dba.stackexchange.com
1,015,991
gke master upgrade when current version is 2 versions behind oldest available
We have a gke cluster running 1.12 as master and nodes versions. We were supposed to upgrade to 1.14 today but were not able to proceed since we can't go up 2 versions and 1.13 is not supported any more. An important detail is that we had node pools still running 1.10, but these were upgraded to 1.12 just before the ab...
big upset ! I’ve enabled auto upgrade on all node pools to see if it would trigger something and it did. My master have been upgraded to 1.13 in the next minutes so I could proceed to upgrade to the target version! auto upgrade was not enabled because we have certain pods that are not able to handle it.
1
2
691
2020-05-06T19:45:18.127
infrastructure
serverfault.com
1,020,988
Nginx redirect to main domain from subdomain without changing URL in address bar
I have a domain and wildcard subdomains. [CODE] Now the requirements is [CODE] will be redirect to [CODE] [CODE] will be redirect to [CODE] and For [CODE] or [CODE] my configuration is: [CODE] Now I am not sure what i am missing in my config.
This should work (not tested): [CODE] or using rewrite: [CODE] I think it's better to separate the config of the subdomain (*.example.com) and the main domain (example.com). If you separate it you should not use [CODE] in the subdomain because the config is only for redirection without content.
0
0
2,168
2020-06-11T06:22:27.927
infrastructure
serverfault.com
879,714
VCenter 6.5 Permissions not being applied
I have created a local user using the SHELL, gave it a password and then added it to the Read Only admin group using the UI. I'm a bit clueless as to why the permissions are not being applied though as I cant login using that user.
You didn't provide any details about your environment, but as far as I read I can assume that you're experimenting, thus you have one ESXI host with one vCenter server VM or appliance on it. I have created a local user using the SHELL... Do you mean that you created an account on the ESXI host using ssh? This accounts ...
4
0
1,777
2017-10-22T15:55:17.943
infrastructure
serverfault.com
18,171
Redirect all (non-rejected) spam to a special mailbox in sa-exim
I'd like to redirect all spams (that weren't rejected outright) to mailbox of local user [CODE] (i.e. deliver mail to [CODE] user rather than to original local recipient). I'm using [CODE] (exim 4 + spamassasin 3.2) on Debian (it's got its own [CODE] convoluted config). I've tried adding the following router (before ex...
Double check that the new router is being used by exim [CODE] Then do some debugging, something like: [CODE] You should see it run through each router, so check if it runs yours and hopefully tell you why its not working (condition failed, earlier router already took the message, etc)
0
1
1,141
2009-06-02T20:25:25.197
infrastructure
serverfault.com
634,788
nmap repeats the scan to a specific port multiple time
I scanned a subnet (16 hosts) while dumping the network traffic with wireshark. I did it 2 times and I noticed that in the traffic there is the normal SYN-SYN/ACK and SYN-RST from open/closed port, but also there are thousands of SYN-SYN/ACK (and ACK for closing connections) from a specific port (first scan was port 11...
I answered this question on StackOverflow but the short answer is that it's a heartbeat Nmap uses to monitor network congestion.
0
1
1,884
2014-10-09T16:17:42.420
infrastructure
serverfault.com
894,197
How run docker on VDS (lxd/containers)
I have VDS like lxd/container (I see it df -h). Os is installed debian 7.11. Kernel: [CODE] I want to run mysql in docker which installed into VDS. I pull mysql: [CODE] but when I tried to run from root I excepted error [CODE] When I installed docker I excepted warning mount: permission denied , but docker installed. W...
Docker can't be run in a container without a specialized setup. Get a proper virtual machine if you want to use Docker.
0
0
450
2018-01-26T06:46:30.700
database_errors
serverfault.com
888,454
sshd_config AllowUsers and IPv6
Have two servers communicating via ssh and crontab, a "master" and a "slave". Only the master can connect (execute command) on the slave. Authentication was done automatically (IPv4) thanks to master's [CODE] added to slave's [CODE] slave's [CODE] having [CODE] It was working fine until IPv6 was added both master and s...
Have a look at the UseDNS directive. " UseDNS Specifies whether sshd(8) should look up the remote host name, and to check that the resolved hostname for the remote IP address maps back to the very same IP address. If this option is set to no (the default) then only addresses and not host names may be used in ~/.ssh/aut...
4
1
2,668
2017-12-16T16:10:18.677
api_errors
serverfault.com
900,394
Checking what commands were run on windows?
From time to time a cmd windows popps up (or two of them) for a split second I cannot track what was started. Is there a way to monitor the cmd/powershell window? Sysmon? Or is there a way to force cmd window to not close when command finishes? The main issue is that I cannot see what command was started
For a one of situation, procmon would be the easiest choice Disable the registry, file and network activity to minimize the amount of logging. Make sure the process activity is enabled start capturing and wait for the popup (end capturing once the popup has, well, popped up) double click the process get the command lin...
0
2
180
2018-03-07T07:04:34.253
infrastructure
serverfault.com
335,303
How to set up locks to prevent stale data being written
I'm mainly a C#/Javascript developer, with only a basic understanding of SQL and databases. I've been doing some reading on transactions and locks, but I'm still struggling to figure out how to set things up to achieve my goals here. I'll get straight into the problem description since that'll illustrate better what I ...
Architecturally- volume of writes .. maybe you should find a queuing service to serialise those & stream them in, rather than having multiple writers? And having queued your write, queue a request to respond once your write is committed, rather than assuming it just worked.. If you need to serialise at the SQL level, t...
0
0
61
2024-01-29T22:49:46.030
warehouse_errors
dba.stackexchange.com
72,211
Matching two rows in a single table if two specific keys have different values
I have a table called [CODE] in that there are two columns and data like following. [CODE] Here , the values of rows [CODE] and [CODE] should be same always. I want a query which display the only these two fields along with values if their values are different. That means if [CODE] then it should throw an error (I mean...
You can do a join on [CODE] for the settings you are looking for. [CODE] Result: [CODE]
0
3
14,495
2014-07-24T04:40:26.993
warehouse_errors
dba.stackexchange.com
374,057
vSphere 5 and Powerpath/VE?
I am in the process of setting up our vSphere 5 environment. With previous version of vSphere I have used the native pathing with VMware but I now want to investigate Powerpath/VE since it now works for v5. Has anyone swapped over to using Powerpath on your hosts and if so have you seen any performance hits/increases?
I have not migrated, however my EMC rep told me that the biggest benefit is not performance, but standardization with the physical servers running powerpath. VMWare is extremely good about storage multi-pathing with the native tools, and I can't see much of an opportunity to improve that.
3
0
172
2012-03-27T17:34:17.603
infrastructure
serverfault.com
472,947
Outgoing SSH timing out from Ubuntu
I'm trying to diagnose why an SSH connection is timing out. I have two OSX boxes which can SSH to the remote server fine. I have a two ubuntu boxes, on the same network and subnet which just time-out every time they attempt to SSH into the server. The two ubuntu boxes can SSH into many other servers just not any domain...
Try this first: (On Client) open /etc/ssh/ssh_config and add following line: [CODE] This will send every 60 Seconds a keep-alive message to your remote-host. if this does not work you can reduce the time. The other way (not so secure like the first way) On the Server, open your /etc/ssh/ssh_config create if it does not...
1
0
683
2013-01-28T08:18:59.717
infrastructure
serverfault.com
68,766
How to setup windows authentication between non-domain servers
How can I setup windows authentication between a Windows Server 2003 running IIS6 and Windows Server 2008 running SQL Server 2008, when both servers are standalone non-domain servers. I want the sites on my 2003 server to connect to the databases on the 2008 server, but I don't want to store credentials in the connecti...
Rather simple, create two accounts that are identical on both machines (same username/password). Set the app pool identity to that user and bam you have integrated authentication. That is all...
0
4
859
2009-09-25T17:06:00.157
database_errors
serverfault.com
186,783
nginx - saving images resized via image_filter locally
i'm using image_filter resize in nginx to resize a bunch of images that are in Amazon S3. I want to be able to save the resized image so that for the 2nd and subsequent request for the image it doesn't need to get resized. I have worked out how to cache the original image in Nginx so at least the image isn't continuous...
See this forum post replied by Igor Sysoev and this entry from Foswiki.
3
4
7,435
2010-10-01T22:49:42.560
infrastructure
serverfault.com
339,714
Critique on design principle and validity of such in general
I was hoping you could give some feedback on an idea I had for designing functions. I am trying to think of a unifying principle for choosing what functions should return. The specific project is mostly data access classes. So the principle is this: "When deciding what value to return as a status code, either True or F...
It's a matter of taste and style, however a function, in my opinion, should only return [CODE] or [CODE] if it is performing a test. It should not use a boolean value as a poor man's status code. Now, some code bases do use status codes, in which case a [CODE] or an [CODE] will be the go to choices. In this case you ca...
1
3
151
2017-01-08T18:23:49.167
api_errors
softwareengineering.stackexchange.com
140,141
Syncing 1TB+ to a iSCSI device, software needed
I need to sync a local disk to a iSCSI mount on Windows (server 2003), and I'm struggling to find software that's capable of doing so in a reasonable timeframe. Notes on the current 1TB disk: - 800GB currently in use - Contains a folder with several hundred thousand subfolders, which in turn have several thousand files...
Robocopy is the classic tool for this. It won't however give you a good estimate of time remaining, and this is going to be quite slow. You should however be able to get a reasonable idea by looking at the number of files and amount of free space on the iSCSI volume periodically and extrapolate. You may gain a little p...
0
1
261
2010-05-10T08:25:19.883
infrastructure
serverfault.com
831,132
bind9 can't resolve domain without prefix (prefix.domain.com)
i've set up a bind dns server on my linux server. But for some reason it can't resolve the IP for my domain when theres no prefix, like www I tried to use nslookup and set the server to my dns servers ip For example when I do an nslookup on www.mydomain.com it shows the IP which I defined in the bind9 zone file, but wh...
You need to add a record for [CODE] , which represents the current origin. It should look like: [CODE] This is because the wildcard (*) record only represents subdomains, not the main domain.
0
1
1,975
2017-02-07T16:52:10.350
infrastructure
serverfault.com
308,583
ssh + tinyproxy: poor performance
I am currently in China and I would like to still visit some blocked websites (facebook, youtube). I have VPS in the USA and I have installed tinyproxy on it. I log in on my VPS with SSH port-forwarding and I have configured my browser appropriately. Everything works more or less: I can surf to those websites but every...
Did you try with SSH's built-in SOCKS proxy? ssh -D 1080 yourvps-server and then configure your browser to use [CODE] as SOCKS proxy (not HTTP proxy). SOCKS is more powerful as it will allow also non-HTTP connections to be forwarded, as long as your program has SOCKS support. BTW, make sure that also DNS resolutions go...
1
4
6,248
2011-09-06T14:56:44.023
infrastructure
serverfault.com
828,975
Hyper-V Point to Point using FC HBA
Is it possible to connect Point to Point two Hyper-V servers using FC HBA to replicate data without connection to external storage?
This kind of setup model is called hyper-convergence when compute and storage are running on the same hosts. From my experience, I have never meet FC HBA that could run replication between 2 directly connected hosts. Check specifics of your FC, could it proceed with EoFC . If so, FC could be used for configuration of i...
3
5
457
2017-01-27T13:20:07.960
infrastructure
serverfault.com
362,620
Apache 2.4 upgrade tips?
I'd like to upgrade my apache to 2.4 on a CentOS 5 VPS, for it's performance and reduced memory usage. Any experience/tips to share?
Do you have it running already ? The 2.2 config should work almost verbatim; start from there.
3
1
490
2012-02-22T07:19:07.357
infrastructure
serverfault.com
779,024
Bitlocker not turning on: Windows 7 U 64bit
I am running Windows 7 Ultimate 64 bit with TPM 1.2. I originally had BitLocker turned ON with my C drive encrypted. I unfortunately had to reimage my system, load the image back up and try to turn BitLocker back ON. When I press "Turn On BitLocker" and UAC asks for permission (I am using the administrator account) and...
If you re-imaged your computer you may need to open up the TPM MMC and re-claim control of the TPM. run [CODE] as administrator. Add the snap-in [CODE] . Use [CODE] .
0
2
862
2016-05-25T17:04:38.753
infrastructure
serverfault.com
271,071
Receiving "Query processor could not produce a query plan because of the hints defined in this query" when using FORCESEEK but can use FORCESCAN?
I have a fairly large table (500 million rows, 30 columns wide, about 130 GB of data total). One of the columns in that table is a DateTime data type, and I need to repeatedly select records from that table within a certain date range. Seems like a good candidate for a filtered index to me. This is my filtered index: [...
SQL Cannot "Seek" as the order of this index is by date first and then by PrimaryKey. As you are selecting with a date that match the full content of the index and as the PrimaryKey are not ordered (they are but only within each specific date), SQL have to scan it. Try to change your index for this one: [CODE] Sql Shou...
0
2
1,590
2020-07-16T14:52:05.527
api_errors
dba.stackexchange.com
274,437
What is the proper way for these methods to function?
How can I properly design what a method or function should do? To clarify the question I am going to use an example from a simple (non GUI) hangman game I created. The design is simple, it has a HangmanGame class which has the word the user needs to guess and other such things as well as the methods that control the ga...
The main issue I have is that you are printing to console from all your methods. If possible, see if you could refactor your code to return significant results, and then print (or read) to/from console from 1 place, such as the driver. This would come in handy should you want to make a GUI program, and now your logic w...
1
3
481
2015-02-25T16:01:21.183
data_quality
softwareengineering.stackexchange.com
638,260
Is it valid for a hostname to start with a digit?
Is it valid for a hostname to start with a digit? e.g. [CODE] From reading RFC 1123 it would appear that this is a valid hostname. However, I'm not clear on whether a hostname can only start with a digit when there is a suffix e.g. [CODE] The origin of this question is that [CODE] in the Google Guava library ( Javadoc ...
RFC 1123 relaxes a constraint of RFC 952 which specifies a legacy of the Hostname Server Protocol (described in RFC 953 ) replaced by DNS. So a fully numeric hostname would be valid per these RFCs. RFC 1123 itself discusses consequences when it comes to IP versus hostname parsing : If a dotted-decimal number can be ent...
54
39
36,369
2014-10-20T09:24:56.387
infrastructure
serverfault.com
99,176
SQL Backup - Restoring to different data / log files - Changing file structure...?
I'm trying to restore a BAK of a database we have, onto new, better hardware. Here is a screenshot of the UI in Management Studio http://twitpic.com/wmtr8/full The existing db has an mdf, and ndf file... and two log (ldf) files... Is there any way I can restore it so that it just has ONE mdf and ONE ldf file...? The ex...
I'd suggest restoring the database as is and then remove the superfluous log file afterward. The error is because the two logs have the same name and you're tying to restore to the same volume - restore one of them using a different name. There may be a good reason why the database file has been split into two (one .MD...
2
2
3,911
2010-01-04T12:38:06.883
database_errors
serverfault.com
202,954
Rowcount issue in sql server
I'm trying to get the rowcount for each table by using the query below: [CODE] The problem cames up when I run it in a particular enviroment, i'm getting no rows, but when I tried in another server, I'm able to retrieve rows. I have this query also to match the collate in case of any collation issue: [CODE] And no rows...
Some things to check (for future readers, since we now know what happened here), off the cuff: Case sensitivity : on a case sensitive instance, the metadata needs to be an exact match; [CODE] <> [CODE] <> [CODE] . Collation : in some cases you may have names in your objects that were created with a different collation ...
0
1
182
2018-04-03T19:36:53.823
database_errors
dba.stackexchange.com
1,074,330
OOBE not run after sysprep, only a login screen is displayed
I try to prepare a Windows 10 21H1 installation with sysprep for imaging. I activated OOBE and generalize. Sysprep says that it was successful, but it ran to quick and the log file ( [CODE] ) ends abrubtly, see below. The problem is that after a reboot I'm not presented with the OOBE first run setup stuff but just with...
Since the warning is about a driver, investigate the driver store with [CODE] Search for [CODE] and/or [CODE] and try to uninstall that device before sysprep. If confirmed it is the driver that is the culprit, the fun with trying to understand why starts. (But maybe that is a non issue if the driver just reinstalls aft...
0
1
990
2021-08-12T09:36:38.190
infrastructure
serverfault.com
311,747
Monitoring multiple linux servers and automatically restore services or reboot
Possible Duplicate: What tool do you use to monitor your servers? I want to monitor around 30-50 servers. This includes: Is MySQL running? Is Apache2 running? How high is the ping? If any of the Services fail (not pingable, MySQL down, ...) i want to receive an email with a detailed status report. I'd love to see a nic...
There are several tools in the space. Depending on how complex your problem and how much you want to learn will determine the solution. Nagios was mentioned by @Matteo. It is a very good tool, cross-platform, very powerful and a bit complex on the config side. ZenOSS is supposedly simpler to configure. Monit is lighter...
0
4
1,199
2011-09-15T12:44:39.940
database_errors
serverfault.com
323,352
Shared development and CI database
I'm just about to set up CI for my web application. I'm using Bitbucket and Pipeline beta as a CI. The web application is strongly coupled to the database, nothing can be tested without data in it. My team also has some issues with the local devenv, as due to frequent DB schema changes, Django migrations are irreversib...
We have a set of SQL scripts that we use to create and modify the DB between versions - as its text, its stored in the VCS and tagged along with all the other code. One of the scripts is a "set up default data" one, and another is a dev-specific script that sets all the usual environment, such as developer users. When ...
3
4
308
2016-06-27T11:57:00.470
database_errors
softwareengineering.stackexchange.com
190,283
Which hard disks for PostgreSQL?
The size of the our PostgreSQL data directory is 100 GByte. Up to now we use traditional hard disk drives and hardware RAID 10. Which hard disk drives and RAID setup would give us maximum performance? The budget is at maximum 5000$. The load is like in most average databases. Maybe 1/5 writing (update or inserts) 4/5 r...
That is a big fat "it depends on your application(s)". You say how large the total data is but not the commonly active data-set? All in one DB or several? If several is it the same structure in each (i.e. multi-tenant with one tenant per DB) or a mix of different application databases? What sort of read and write IO lo...
1
2
963
2017-11-07T09:39:44.137
database_errors
dba.stackexchange.com
168,512
pg_restore: [custom archiver] could not read from input file: end of file
Not going into details how that happened, all started with a corrupt DB. It was OK on the file-system level, but trying to: [CODE] resulted in the following: ERROR: could not read block 257798 in file "pg_tblspc/16386/PG_9.6_201608131/16385/16506.1": read only 0 of 8192 bytes The table is very large (~200GB) and contai...
I would suggest you try to do something along the line of: [CODE] ... and find at which point it fails. [This may be tedious, but you can just cut in half repeatedly, until you find the value that first fails.] You will most probably need to alter the different settings that affect index usage, because you actually wan...
3
1
12,134
2017-03-29T13:31:50.980
hadoop_errors
dba.stackexchange.com
1,035,519
Deploy java "trusted.certs" by GPO to all users of domain
In my domain, we have a couple of applications that establish a connection by java: when users do the Windows logon the box windows of Java appears and ask "" Do you want to run this program? " with the box which says " Always trust content from this publisher ." Often, users don't read it or just close this warning an...
From the messages in your question, I assume the app is properly signed with a trusted certificate. If you want to avoid the regular Java security prompt, consider using Deployment Rule Set . You can define rules based on the location of the app or its signing certificate. When [CODE] is ready, package it into [CODE] a...
2
0
1,081
2020-09-27T15:26:14.677
pipeline_ops
serverfault.com
952,027
Issue with the Azure File Copy on VM
I am trying to copy my files to my virtual machine using Azure File copy tas in my release definition and I am getting the following error :- Could not fetch access token for Managed Identity. Please configure Managed Identity for virtual machine ' https://aka.ms/azure-msi-docs '. Status code: '400', Error message: The...
It might be helpful if you list the multiple things you have tried. However, the error is fairly clear, when you create a task to work with Azure you need to provide a service principal via the Azure DevOps connection object, that has access to your subscription and VM. The error message indicates that this account can...
0
0
384
2019-02-02T15:57:03.660
api_errors
serverfault.com
314,034
DHCP Server with multiple scopes. Which one does it use to handout an IP?
I have 4 DHCP Scopes. 10.200.0.0 10.54.0.0 10.16.0.0 10.32.0.0 A DHCP broadcast request is sent to my DHCP server. How does it decide which scope to pull an address from? My problem is that a client that should be getting a 10.200.0.0 address is actually getting an IP address from the 10.16.0.0 scope and I can't figure...
That's not expected behavior, so it makes me think something more complex is happening than a simple broadcast being received by the DHCP server. When the DHCP server receives a layer 2 broadcast DHCPREQUEST it will fulfill that request out of a scope that corresponds to the subnet of the interface the DHCPREQUEST was ...
6
7
9,991
2011-09-21T18:04:14.320
infrastructure
serverfault.com
211,835
Path to learning compiler design
I'm not sure if this is an acceptable question, but compiler-os-design-where-to-start was, so I figured that I'd take a shot at it. I have taken no formal Computer Science classes. I have programmed in Python and attempted C# without success. My technical vocabulary is expansive, yet scattered over a very wide range of...
Compilers are not some mythical creatures, even though some people might like you to think that. A compiler is a program like any other program. It takes some input, tries to make sense of it, and generates some output. Have you ever written a program which reads a text file in some format and outputs some HTML based o...
1
10
5,435
2013-09-18T05:02:06.077
api_errors
softwareengineering.stackexchange.com
241,642
What is the best way to unpack JSON objects in SQL Server?
Part 2 of my foray into JSON, I'd like to add a user to multiple groups: insert an JSON array into a table. Ideally, the JSON would look like this: [CODE] Currently, I can do it with JSON like this: [CODE] then "unpack" it with the following ditty: [CODE] which returns a nice little table like so: [CODE] Problem This i...
I think your JSON definition for arrays might be a little odd, you should be able to unpack an array like so: [CODE] value 0 1 5 The notation [CODE] is saying that within an object, there is a key "Groups" which has a value of an array containing a single element. That element is also an object, but then - [CODE] is no...
0
1
277
2019-06-28T15:35:42.823
database_errors
dba.stackexchange.com
246,916
xm create error cant read ramdisk
So I am attempting to move a physical Native CentOS 4.6 Installation to a DomU instance on a CentOS 5.5 Server. I have followed the available to tutorial @ CentOs - WIki but have encountered the following issue upon running xm create. [CODE] The funny thing is pygrub loads fine, but it seems to run into a snag loading ...
I think it wants to load a ramdisk. In my xen confs, I have a line like so: [CODE] Now, in my confs, this is because the kernel and the ramdisk resides outside the VM file system. I would have thought that this was config pygrub should read from the VM grub conf/file system, but you could try simply copying the ramdisk...
0
0
562
2011-03-13T19:04:26.353
infrastructure
serverfault.com
41,156
How can I make a smooth transition from being a Black-Box Tester to an expert Automation Engineer?
I have worked as a functional, black-box tester for over 8 years in the Software Industry. I am a skilled exploratory tester and have found a lot of critical problems in many products over the years. I have been appreciated for my exploratory skills. I use heuristics to guide my test design and have been a reading a lo...
Quote:- If you can’t do great things, do small things in a great way. Automated testing requires more discipline compared to manual, Learning automation is not difficult but it requires a focused and planned approach. Keep this in your mind Cheating is acceptable in automation if you understand what you are doing. As y...
15
14
2,379
2019-10-10T06:14:46.270
data_quality
sqa.stackexchange.com
337,254
Should you include the primary key in an index, if the column is used in a condition?
Let's say I have this table: [CODE] this table will become quite large, and there is a I will be running on it that I would want to be as efficient as possible: [CODE] column details t1: a somewhat random timestamp (though never greater than current_timestamp) category: one of (currently) approx. 1000 possible values. ...
If you have several processes inserting concurrently, and you use sequence caching to speed it up, it is possible in some cases to have a lower id inserted after a higher id. Here's an explanation . If you do not use sequence caching, then a higher id means the row was inserted later. I'll create some test data: [CODE]...
0
0
44
2024-02-26T16:12:37.163
airflow_errors
dba.stackexchange.com
755,756
Coldfusion - IIS only one website down
I have a ColdFusion server with one connector for IIS and multiple websites. From this morning only one website is down with Error 500 or "Service is unavailable" . I have checked the web.config and it looks exactly like on the other website and Application Pool identity it's the same for all the pools. Also I am not a...
If you are getting Error 500 , then please ensure the bitness of both CF and IIS. Else, if you get Error 500.19 or any other, please ensure that you have permissions on \ColdFusion11\config\wsconfig. However if you are getting "Service is unavailable" , then either CF Service is not sunning or Application Pool under II...
0
1
446
2016-02-12T09:12:21.383
api_errors
serverfault.com
298,720
Does Semantic Versioning allow 4 components in version numbers?
All examples of semantic versioning I've seen show 3 components in use. No more than 2 period characters. At [CODE] , we use 4 components in our release numbers: [CODE] Does Semantic Versioning allow for this? And as a higher-level and more arguable side question, does it really even matter? I started to think it might...
It sounds like you are bypassing normal conventions just to avoid process overhead/audits. That... strikes me as concerning. What you are doing is effectively making an extra version number (your minor PCI digit) somewhat intentionally in order to move your feature/minor version numbers back a place, to no longer trigg...
32
33
24,059
2015-10-01T13:06:48.980
api_errors
softwareengineering.stackexchange.com
96,902
SQL Transactional Replication snapshot not applying
I'm using SQL Transactional Replication with pull subscriptions to replicate databases (hosting their own distribution database) from several servers across a VPN to a central server. I've got the first 2 databases working fine but the 3rd one is causing me problems. My subscription server is SQL 2008, the source syste...
Check the Publication Properties-->Snapshot-->Location of snapshot Files-- Make sure put files in the default folder is checked, in my case it was't check marked instead put files in the following folder was checked with a location address(C:\REPL) but i had my distributor in a different server other than publisher and...
0
1
2,199
2009-12-23T09:31:11.413
database_errors
serverfault.com
124,487
Procedure Cache Dropping
We've experienced an issue with SQL Server dropping proc cache out of the blue. I'm talking 4GB down to 0 in 2 minutes. This has occurred approx once per day in the last two weeks. It does happens at random times and does not coincide with process. Has anyone seen this before? So far as I'm aware the cache its only wip...
One reason could be somebody changing options or running sp_configure. That would be logged in your error log. Please read this article: Using Sp_configure To Change a Value Will Issue DBCC FREEPROCCACHE using sp_configure to change a configuration value causes SQL Server to issue a DBCC FREEPROCCACHE statement. and Th...
6
6
765
2015-12-23T20:07:37.807
database_errors
dba.stackexchange.com
48,294
Incoming Email setup in MOSS
I have setup incoming Email on my first WEF and it looks like it is working OK and I don't see any error messages. However, I have added a second WEF and I see error messages in Event Logs on the second WEF about incoming email. A critical error occurred while processing the incoming e-mail drop folder . The error was:...
Actually all you need to do is create a drop folder on your 2nd front end on the C drive - whatever path it is looking for. I've seen this before - and it's remedied by just creating a drop folder where it says it needs to be. Don't try to share the drop folder from WFE #1 - they operate independently - and #2 just nee...
0
1
474
2009-07-30T21:04:36.437
infrastructure
serverfault.com
676,178
Exchange 2007 ignores whitelist (BypassedSenderDomains) when IP is found on a block list
On my Exchange 2007 machine I configured the IP block list provider to query zen.spamhaus.org bl.spamcop.net dnsbl.sorbs.net some of our business contacts or on those lists and get blocked by Exchange. So I added their domains to the [CODE] list: [CODE] Unfortunately, they get blocked anyway, as you can see in the Agen...
Exchange isn't ignoring your setting. This happens because Connection filtering occurs before Content filtering. you'll need to add the sender's ip address to the IP Allow list. https://technet.microsoft.com/en-us/library/aa997242(EXCHG.80,printer).aspx
0
2
663
2015-03-17T15:44:15.850
infrastructure
serverfault.com
291,067
APC configuration on Ubuntu 10.4. Problem with apc.shm_size, apc.shm_segments and Apache
I installed apc on my ubuntu 10.4 vps today using the following lines. [CODE] While everything works fine. I encounter problems configuring [CODE] . I try to increase the allocated memory size. To my understanding I could do this either by increasing the amount of segments [CODE] or [CODE] . If I configure [CODE] and r...
try this config and see if it works: [CODE]
2
0
1,735
2011-07-16T20:19:46.540
infrastructure
serverfault.com
765,976
Confused on BigFix relevance - x64 files
I am using BigFix in an Enterprise Environment and noticed a recent round of Microsoft patches for 2016 have failed on a small group of assets. I was able to work around this by creating Custom Copy Fixlets, using modified relevancy, however the relevancy that I had to use was not always consistent, even though most of...
Just to clarify, this is a question about BigFix relevance, not BigFix ActionScript. I will say, that although BigFix relevance has a bit of a learning curve and makes the source of the complexity hard to figure out sometimes, the issues you are experiencing have more to do with the complexities of how files can have m...
2
1
3,239
2016-03-24T21:14:28.843
infrastructure
serverfault.com
541,839
Slow software raid with SSDs
We have moved a web application with an Oracle database to a new server because the old one was dying. The old server had two mirrored hard discs plus a separate non-mirrored SSD for the Oracle datafiles (without redo and undo log). The new server has almost the same configuration except there are now two SSDs to have ...
You've got enough money to pay for Oracle but not enough money for a test environment? No answer (it's a bit long for a comment though) but some observations: SSDs lie about their physical block size - this is actually the erase block size - which is huge. Most disks also lie about their geometry (so you can format the...
2
1
3,305
2013-09-26T12:32:49.200
database_errors
serverfault.com
213,456
What better design to support dynamic relationships?
Instead of creating a seperated join table for one many-to-many relationship, I will design a centralized table, called 'Collection'. It will contain whole relationship data for all tables in database. This table like that: Towards row 1, since table A and table B has many-to-many relationship, so the value of 'Unique_...
You should definitely use the "traditional" way! You cannot enforce referential integrity with constraints like that, as such a constraint has to point to only one table and cannot have multiple target tables depending on a columns value. You had to simulate it with complex triggers, that are almost sure to be less eff...
-3
4
665
2018-07-28T00:25:57.707
warehouse_errors
dba.stackexchange.com
235,315
In mysql how to identify what caused a table lock
We are using MySQL 5.6 on rhel 7. Planning to migrate to version 8.xx soon. We have a mysql database of size 4TB. It has around 3000 tables with few tables having size of 200-300GB. Sometimes queries takes longer than 60 to 100 seconds on these bigger tables. Sometimes due to less search conditions, select query execut...
The best way to do this is to enable the slow query log . It will log in a file queries that took more than X number of seconds to perform, as well as, the lock time it took. You need to edit your /etc/my.cnf and add the following lines (you'll need to restart your mysql service for the changes to take effect): [CODE] ...
0
2
1,669
2019-04-20T16:15:28.083
database_errors
dba.stackexchange.com
294,022
Ftp site setup. The "name" is not working!
I am a complete freshy at this, so forgive my lack of understanding. Problem: Basically, I have set up an ftp site on windows server 2008 r2, set the name as "ftp.myname.com". Now i have managed to get it it up and running, but I cannot access it via " ftp://ftp.myname.com ", instead i have to use " ftp://my_machine_na...
If you have a machine, called webserver, in a domain called "office.local", there will be a DNS record for "webserver.office.local" - there is no DNS record created for "ftp.office.local" unless you add one. If you have access to the DNS server for the domain, add a static entry for "ftp.office.local" (whatever your se...
0
1
1,006
2011-07-26T00:34:00.073
infrastructure
serverfault.com
230,425
Domain name in server other than the website
I'm not very popular with hosting, but I have a special situation: I live in Tunisia, I can buy a domain name with .tn extention, but the problem is that: The domain could not be pointed to a server outside Tunisia All servers in Tunisia are bad, no one provides really reliable hosting so, I want to use the .tn domain ...
This domain registrar suggests that if you register a .tn domain (let's say "kit.tn") then you are allowed to set up a server in Tunisia that does nothing but redirects people somewhere else (let's say "kittn.com"). If you do this, kit.tn will be almost unused since Google and other search engines will pick up the redi...
1
1
94
2011-02-02T23:25:42.327
infrastructure
serverfault.com
1,083,259
No incoming traffic on Hyper-V Adapter inside VM
I have a very annoying problem with my Hyper-V setup and it's bugging me quite a bit, because I can't figure out why. My Hyper-V Host is a Windows Server 2019 and has three network adapters. Adapter 1 & 2 are physical and have static configurations. Adapter 3 has been configured as a Hyper-V extensible Switch. (Externa...
I figured it out and the answer is quite sad. On the physical NIC that was used for the vSwitch, there was a VLAN configured on the hardware-driver. This didn't get deleted upon creation of the vSwitch and it somehow managed to block all traffic in/out, since nobody really could communicate, when the hardware itself ch...
1
0
2,648
2021-11-11T14:28:00.250
infrastructure
serverfault.com
140,496
After upgrade to 2016, can't view SQL Server Logs
Just upgraded to SQL Server 2016 from SQL Server 2014 SP1 CU4. This is a clustered instance I am no longer able to use xp_readerrorlog and xp_enumerrorlog [CODE] Found this link: Unable to open SQL Server Logs I can open the error logs manually via file explorer The startup parameters for SQL Server Service indicate th...
Windows patching and majid's solution is what worked for us too. Just adding my 2c that may help others. We have a cluster with 2008, 2014 SP2 and 2016 CU2. After upgrading an instance to 2016, we had the following errors: 2014 and 2016: syspolicy_purge_history job failed on step 3 2016: SQL agent would start then stop...
5
3
1,714
2016-06-06T10:22:45.367
database_errors
dba.stackexchange.com
132,007
how do I use a value from the select in a joined subquery?
I'm trying to avoid a stored procedure or bringing it into code but they may be my only alternatives. Here's my sql. Does anyone know any SQL voodoo that could make this happen without a stored procedure? [CODE] It's the LEFT OUTER JOIN that I'm trying to get data from a table that has ip address ranges and not exact i...
You probably have a bug: It should be [CODE] instead of [CODE] -- to cover the case where [CODE] is the same as [CODE] . You must make sure that there are no overlapping ranges in [CODE] ; otherwise you will occasionally get strange errors. And, as Lee pointed out, you do need [CODE] Otherwise, you could fall into a ga...
1
2
671
2016-03-11T18:49:21.603
database_errors
dba.stackexchange.com
45,607
Hardware setup advice for SQL Server 2005
I'm currently having trouble with a database server for a DB with lots of small writes and a few in comparison big reads. Read performance is more important because people is involved, writes are performed by automated clients. This database is currently 30GB and will grow up until a hundred or so. The currently awful ...
32GB of RAM is a nice typical round number for most Server CPU's but if you are looking at Xeon 5500 (Nehalem) CPU's then remember that they are configured optimally in banks of 3 DIMM's per CPU, and multiples of 6 DIMMs for dual socket servers so you will see better performance with 24\48GB RAM rather than 32GB. There...
1
2
476
2009-07-25T23:11:45.377
database_errors
serverfault.com