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
746,289
Not able to ssh into server after mounting users home on other ebs volume
I have a server which has a low storage problem. What i want is to mount the user [CODE] 's home directory that is [CODE] to another attached storage drive which is available at [CODE] and its partitioned as [CODE] and the partition is [CODE] . So what i did is login as [CODE] and rename [CODE] to [CODE] and then [CODE...
The [CODE] directory needs to have [CODE] permission set too [CODE]
-2
2
1,199
2016-01-01T19:48:35.917
infrastructure
serverfault.com
653,621
OpsWorks nginx namespace conflict
I want to deploy one of my cookbooks, nginx-passenger, to opsworks. I've tested the cookbooks locally already using testkitchen and all the recipes and tests passed successfully. However, when using opsworks, the run of nginx-passenger::default fails with the error "Could not satisfy version constraints for: nginx". Op...
Naming conflicts are a known problem with the OpsWorks cookbooks and there isn't an easy solution. What you might have to do is download both community nginx and nginx-passenger cookbooks to your cookbook directory, rename the nginx cookbook to something like nginx-community then update any references in the nginx-pass...
0
1
235
2014-12-19T04:57:57.200
data_quality
serverfault.com
818,511
How to redirect /services to /services/onetime?
Through htaccess file I am trying to redirect [CODE] to [CODE] but its redirecting me to [CODE] What is the problem with the code and is there a way to do it? This is the code I have used: [CODE]
[CODE] (Assuming that is just a typo on the target URL?) The mod_alias [CODE] directive is prefix matching, and appends everything after the match onto the end of the target URL. So, this will also match the redirected URL [CODE] and then append everything after the match (ie. [CODE] ) onto the end of [CODE] , etc. etc...
0
2
156
2016-12-03T03:34:03.267
infrastructure
serverfault.com
690,187
Windows Server 2012 - Cannot Log In
I have a box running Windows Server 2012. I have been playing with this box for a bit and have two admin accounts set up: administrator and my account. I recently had to change my password due to policy. I set a new one, updated in my password manager, logged out, and tested. It all worked for a couple weeks. Not today...
Not sure what happened, but as I posted a response to yagmoth555's comment, I realized I have CLI access via my RM. Just change my user password manually and can get in. Can't believe I didn't think of that when this first came up. Now to fix the server...
1
1
13,800
2015-05-07T02:59:59.640
infrastructure
serverfault.com
79,725
Bad results for training set and good results for test set
When training an algorithm, I have ROC = 0.5896, Sensitivity = 0.3333, and Specificity = 0.8375. When considering the test set, Sensitivity = 1 and Specificity = 1. This could happen or is a problem? Another question: When comparing several learning algorithms, I choose the best based on the results of the test set? An...
Seems quite strange. I bet you've got a bug or test set size is small enough. Like if there're only 2 objects: 1 positive and 1 negative, you could have classified them correctly even with a random classifier. I assume your test set is not that small, which means there's a bug somewhere. Also, in theory, if both of you...
0
2
163
2020-08-03T18:17:59.067
data_quality
datascience.stackexchange.com
278,672
ESXi boot process / state storage
I've got a standalone ESXi server and I'm having problems with it losing config on reboot. I restored the config from a previous install and it reverts to that every time it's restarted. My current hypothesis is that although the state is correctly being backed up to [CODE] on the hour (it's a USB installation and if I...
In the absence of suggestions either way, I bit the bullet and removed the [CODE] parameter from the [CODE] line in [CODE] and, judging by a couple of test restarts, config changes are persisting between boots now. I read post #44 in this thread , which suggested it was a valid thing to do. It seems [CODE] is read on b...
3
1
6,820
2011-06-09T12:03:49.553
hadoop_errors
serverfault.com
396,438
How swap space works in this example?
Say I have total RAM memory of 1GB , HD of 10 GB with 250 MB swap space Say I have two files(f1 and f2) each of 500 MB opened on my my laptop. Now both files are in memory and have consumed 1 GB of RAM. Currently f2 is in front of me. Now I start writing in f2 with 100 MB of characters. Now will OS will swap space here...
Forget about having large files. Just say you have an object of 500 MB, another object of 500 MB, and you want to add 100 MB to the second object. And we ignore the fact that OS, code, and other applications also need space. The OS will not care about the objects. It will just pick 100 MB of RAM that haven't been used ...
0
0
164
2019-08-24T17:32:59.070
api_errors
softwareengineering.stackexchange.com
308,058
how to limit memory size a process can consume in linux
I am trying to figure out how to limit memory usage of mongo daemon to 4G. I thought to use limits.conf with memlock but I am not sure that's the right way to do it. from limits.conf man page I've understood that ulimits are referred to users and not for processes, and also the definition of "memlock" is not clear to m...
MongoDB uses memory mapped files for all storage, it appears that you can limit the size of these files: http://blog.mongodb.org/post/101911655/mongo-db-memory-usage http://www.mongodb.org/display/DOCS/Caching However, if you're concerned abut the large memory numbers displayed in top, they don't correspond (exactly) w...
4
1
8,988
2011-09-04T14:30:18.097
database_errors
serverfault.com
849,920
NGINX fails to start after update to K/Ubuntu 17.04
You'll get only a cryptic [CODE] in /var/log/syslog .
The distro upgrade/update will install and start up Apache alongside Nginx. Stop and or uninstall Apache and Nginx starts normally.
0
0
79
2017-05-13T15:03:59.717
infrastructure
serverfault.com
255,457
RefactorException: Good idea or bad idea?
When I'm doing large scale refactors I'm often commenting out the contents of methods and using NotImplementedExceptions for stuff that I still need to refactor. Problem is that this is interfering with 'valid' NotImplementedExceptions. I'm thinking about introducing a custom RefactorException, that I quite easily find...
Refactoring is improving code in a way that doesn't affect it's functionality. That is, the public interface stays the same, but you might improve code formatting, algorithms, or implementation details. In a few cases, this might even be cleaning up a class hierarchy. Because the behaviour of the code is the same befor...
2
2
183
2014-09-05T09:02:50.430
api_errors
softwareengineering.stackexchange.com
707,026
creating vm fail if vm type is different than other VMs in the Virtual Network
My Azure configuration: Virtual Network: VN VN suppose to contain 3 virtual machines 2 of type DS2 1 of type A3 After creating the first 2 successfully (both under the same [CODE] and with the same [CODE] ) i'm unable to create the 3rd vm. The error i'm getting: [CODE] When creating the vm i'm using different [CODE] - ...
So... a cloud service is allocated to a specific compute cluster, and that particular cluster may support only a subset of available virtual machine types. It's entirely possible that, based on the original VM size for the very first VM created, your cloud service ended up on a cluster which doesn't have A-series suppo...
2
1
768
2015-07-20T11:37:35.107
infrastructure
serverfault.com
920,111
Re-allocate space from one Volume Group to another Volume Group - Linux CentOs
I have a dedicated server provided to me by 1and1. I started migrating websites to the server only to realise that I am running out of disk space. I had to clear my backups in order to continue migrating my sites. I thought this to be weird as the server comes with 4T of disk space. On accessing the system via ssh. I s...
I assume that /data is where the data you are migrating is going to be. The underlying volume is on 'hdd' volume group which is over 3.5 TB large. Why don't you set its size to something which is going to be enough for data you are migrating? You should be able to measure it on the source(s) and adjust /dev/hdd/data ac...
1
0
418
2018-07-09T13:20:18.183
database_errors
serverfault.com
561,129
Robocopy job will run manually but not as a scheduled task
Using Robocopy on Server 2012. I have created a .cmd script to copy some files from a mapped drive to the local machine. The mapped drive is on another server in a different domain and connects with the remote domains domain admin credentials. Domains are not trusted. It works if i double click the .cmd file and run it...
Just use the UNC path to the remote server instead of drive letter W: Probable reason is the network mapping isn't available during the scheduled task. You can also change your script to map the drive, do robocopy and unmap it in the end, but it's simpler to use UNC path.
1
6
19,606
2013-12-13T10:56:50.040
api_errors
serverfault.com
36,904
MySQL replication between VPS and shared host
I have a VPS where I have ssh access and shared host with CPanel. Both have MySQL. I need to create a master/slave setup among the two server. As per this tutorial: How To Set Up Database Replication In MySQL , I will need to modify the [CODE] file. Is it possible to achieve this with the following permissions on both ...
if you have MySQL root access on the shared host, there is a change that it works, just make sure that you: Use the VPS as master Enable the shared host ip to connect on vps host run a [CODE] on shared host and set the vps to use a different one. follow the steps described on tutorial run the [CODE] on SQL tab on PhpMy...
1
1
2,678
2013-03-18T06:35:18.173
database_errors
dba.stackexchange.com
299,396
Virtual Hosts with Tomcat + Mod JK
I have set up Apache and Tomcat on my system and I want to combine both using Mod_JK. I have created a mod_jk worker (ajp13_worker) and added a virtual host to my Apache config: [CODE] and it works fine, I end up on the default Tomcat page. The Manager applications are working fine too. Next, I have my application, whi...
Ok, I found it. In the Tomcat sever.xml, you can specify the context path for each host: [CODE] My mistake was, that I always tried to modify the appBase parameter and did not know about the Context element!
0
0
1,145
2011-08-09T20:40:18.477
infrastructure
serverfault.com
389,484
Exposing complex actions using http verbs in REST API
consider the following REST resource [CODE] [CODE] Now say we have the following CRUD operations: [CODE] However, I still have to support other operations that don't fall into the CRUD operations group. Operations like: deduct tax make account dormant change account type and apply charges and many others that don't cha...
HTTP is an application protocol, whose application domain is the transfer of documents over a network -- Jim Webber. The key idea of REST is that you pass documents (messages), like you would passing paper forms around an office. The HTTP methods describe generic semantics of the document transfer, and useful work is a...
0
5
2,383
2019-03-30T10:33:01.693
api_errors
softwareengineering.stackexchange.com
222,711
MySQL crashes and currently the error.log file is huge
I've created a droplet on DigitalOcean created using Laravel Forge 6 months ago. Two weeks ago, we decided it was time to upgrade the droplet and we moved from a 4GB RAM/2CPUs to a 16GB RAM/6CPUs droplet and since a few days ago the MySQL server just crashes and the only way to make it work again is by rebooting the se...
For the 4GB droplet, change the config: [CODE] to 1500M and restart. For the 16GB droplet, change the config: [CODE] Revised Analysis (After running more than a day) Observations: Version: 5.7.24-0ubuntu0.18.04.1-log 16 GB of RAM Uptime = 1d 02:59:16 You are not running on Windows. Running 64-bit version You appear to ...
0
1
3,698
2018-11-16T08:36:30.130
database_errors
dba.stackexchange.com
195,329
Reading decimal mark comma with an external table
SQL Server 2016, SQL Server Management Studio (SSMS). Creating external tables with Transact-SQL and Polybase. How can we read decimals with a decimal mark, comma instead of dot? When using [CODE] and [CODE] , it fails and throws an error. When using [CODE] data type it succeeds, but misreads decimals and integers are ...
It seems that interpreting '1.000,55' as a float isn't simple, but as a numeric is possible . From that answer [CODE] I've tried every which way with other target data types. None work. Obviously a CAST() can be wrapped around the try_parse to get the desired final type. So what I'd suggest is you define your external ...
2
1
915
2018-01-13T15:26:10.393
database_errors
dba.stackexchange.com
1,025,222
How can I get my server to execute (instead of displaying source for) PHP?
I am having trouble getting PHP to be executed instead of treated like plain text. I'm on a new Debian 10 development server, and have installed e.g. [CODE] and [CODE] , which installed [CODE] , but [CODE] is not finding a PHP module to execute. [CODE] has: [CODE] PHP does not appear to me to be listed. Are there other...
Did you run the following commands after you checked Apache worked? sudo apt update sudo apt install php libapache2-mod-php And did you restart Apache after the install? sudo systemctl restart apache2 This was all I had to do to make it work on Debian 10. Test Put a file named index.php in your server web-root. It shou...
1
0
198
2020-07-14T20:10:28.727
infrastructure
serverfault.com
157,360
How to cache select with variables? (MySQL)
Context: I have complicated very often executed query: [CODE] I enabled cache [CODE] and I obtain great performance improvement. First time (4.5 s) [CODE] Second time (5 ms) [CODE] It is ok. Problem But now I want to add to this result one column with identifiers 1,2,3... because I would like to be able to get selected...
For efficient fetch of a random row, here is a blog on such. Do you really select all columns of all rows, as indicated in the timings you mention? Keep in mind that all entires for a given table in the "Query cache" are deleted whenever any write operation happens on that table. (This makes the QC rarely of any use in...
0
1
582
2016-12-06T15:17:23.920
database_errors
dba.stackexchange.com
139,350
Partitions on Linux and their CHS dependance
Recently I came into a problem with partitioning WD20EARS disk (with 4k sectors). I needed partitions to be aligned correctly so I just used parted in "unit s" mode and started all partitions at mod8 sector (drive itself reports, that sector is 512b) and ended all of them at mod8-1 sector. But then I thought, that may ...
You don't need to worry about cylinder alignment on a modern (post-1998, approximately) hard drive. The C/H/S values have nothing whatsover to do with the actual drive geometry. Your BIOS is choosing and reporting some convenient fictional values for backward compatibility's sake. (You may be able to alter those values...
3
4
1,018
2010-05-06T20:07:42.520
infrastructure
serverfault.com
569,798
Permission to write using 'deploy' user
I'm currently new to Chef and Capistrano. I'm using version 3.x of Capistrano to deploy Rails 4 application. I have successfully bootstrapped a server using chef solo. One cookbook that I'm using is Nginx. Back to my simple Rails 4 app, I'm trying to run this command to check the status of my deployment: [CODE] However...
The directory you intend to deploy to should already exist and have the correct ownership and permissions before you try to run Capistrano to deploy to it. So you need to handle that beforehand, probably in the same chef recipe where you created the user.
0
1
3,235
2014-01-25T05:41:26.407
pipeline_ops
serverfault.com
847,272
Connection closed by <ip> [preauth]
I'm on a Ubuntu server. I'm trying to enable an ssh tunnel in order to add a git remote in a project of mine. On my local win7 machine I generated the key pair with PuTTYgen. I pasted the public key in [CODE] file I set the private PuTTY ppk filepath into putty Auth config When I try to open a remote shell I get the er...
The name should be [CODE] instead [CODE] . Probably somebody setting this up (for the other key) named the file wrong and was similarly wondering why it does not work. Also the file should not be writable by anyone else but owner. Therefore the permissions should be 644 instead. You can fix that using [CODE]
7
5
43,435
2017-04-28T22:45:29.987
infrastructure
serverfault.com
542,166
nginx - get parsed server_name
I have created virtual hosts for my websites and then i have created an other virtual host with [CODE] in order to catch everything else and show a specific page in that case (ex. if someone tries to access my ip). Also i use phpmyadmin, roundcube and squirrelmail and i wanted to redirect any connection to them from ht...
Use [CODE] instead of [CODE] . [CODE]
2
1
1,045
2013-09-27T15:42:21.507
infrastructure
serverfault.com
230,069
Logging in a distributed system
We have several application servers (and different applications) running on Amazon AWS and our main method of logging is a combination of statsd, carbon/graphite, and an alert system based off of the metrics coming into carbon. This has been working great for a lot of different situations but I feel we need something e...
I think you're on the right track. You could centralize logging to a central server and then have logstash consume the logs and store everything in elastic search. Then, you can use Kibana to search / lookup, etc. It's a good complement to statsD+graphite. http://logstash.net http://www.elasticsearch.org http://www.ela...
2
3
1,748
2014-02-24T02:35:13.810
database_errors
softwareengineering.stackexchange.com
612,137
Replace @remi packages with base packages
while installing iRedMail, I ran into the issues that some of my old packages were installed or updated by the Remi repo. I have disabled the epel and remi repos now, ran [CODE] and I still get this error when trying to install iRedMail. [CODE] Is there any way to replace these packages? I was thinking about uninstalli...
wrong way, you have to enable remi repo, because you have php already installed from remi. if you have problem installing iRedMail with remi enabled, so you better post that error.
0
1
370
2014-07-12T17:32:15.960
infrastructure
serverfault.com
458,916
Email function not working
I have this 3 commands. All of it are not able to send the email. Any solution or my mistake here? The OS is Centos 6.2 [CODE]
You need to provide an email body: [CODE]
-1
0
105
2012-12-18T03:47:04.577
infrastructure
serverfault.com
363,250
SQL Server 2008 R2 memory leak
We're in the process of moving from one server to another. I'm running the SQL Server database off our new server, with the old server now using that as a DB server with the aim to make it a smooth transition from one server to the other whilst DNS propagates so no down time for anyone. Nothing else is currently runnin...
I'm not a SQL internals guru, but to my knowlege, SQL will use as much RAM as you've configured it to and that the OS will allow it to have. There's more cached than the DB its self, for example the execution plans http://msdn.microsoft.com/en-us/library/ms181055.aspx As a good rule of thumb your SQL memory should be c...
1
3
2,186
2012-02-24T01:58:35.607
database_errors
serverfault.com
496,727
Allow LAN to access External Internet, Iptables
I have an internal network behind my router on eth0, and I have my router connected to the internet thorugh wlan0. I can't access the internet from inside the lan, how can I fix this? [CODE]
You need to set up NAT in order for your box to act as a router. Once this is done, set the default gateway on your LAN systems to the internal IP of the box. Instructions here: http://www.revsys.com/writings/quicktips/nat.html [CODE]
-2
0
2,989
2013-04-06T02:59:19.583
infrastructure
serverfault.com
482,767
Allow a user to remotely unlock a file on a windows share
Stupid question but is there any way a user can remotely unlock a file which is open by another user on a shared drive? Here is my problem: Engineer opens excel file which is on a shared folder on a windows 2k8 server (no domain). Accounting girl also needs to open excel file but engineer claims he does not have it ope...
Yes, On the file server: In "server manager", "roles", "file services", right click "manage shares and memory", "manage open files". You can do so also remotely if you run server manager elsewhere and right-click connect to a remote server. Normally, hardly anyboday besides an Administrator can do that and should not d...
1
1
5,065
2013-02-26T21:06:52.180
infrastructure
serverfault.com
14,929
How to mount EC2 intances to AWS EFS via Terraform
I'm trying to Terraform a few EC2 instances, and would like to automate the provisioning steps that involve mounting their filesystems to EFS. The commands to run this manually are as follows: [CODE] As you can see from my string interpolation, I have already attempted to set things up in a Terraform [CODE] block when ...
A better approach I came to discover was using the [CODE] of a launch configuration. While it still suffers some of the same issues that provisioners introduce, there's a lot less room for error in terms of permissions and timing as seen in other questions . For Example: [CODE] I should note, that this also implies my ...
1
0
1,183
2021-11-03T14:37:53.960
pipeline_ops
devops.stackexchange.com
228,756
OpenVZ vs KVM for Linux VMs
Hardware: Intel® Core™ i7-920, 12 GB DDR3 RAM, 2 x 1500 GB SATA-II HDD (no SoftRaid because Proxmox developers don't support softraid and they are sure you'll run into problems) Software: Proxmox VE with KVM and OpenVZ support and debian everywhere I want to run multiple Linux VMs on this server. One for a firewall (I ...
nginx and MySQL work well in OpenVZ and OpenVZ uses fewer resources than KVM. I recommend OpenVZ VM for the speed. KVM VM more flexibility. pfSense(FreeBSD) runs only in KVM.
2
2
3,412
2011-01-30T11:07:24.420
api_errors
serverfault.com
8,094
Creating a view on a non-existing view
I have a whole bunch of views that I need to create. Many of these views depend on other views. If I create a view that depends on a view not yet created, I get an Invalid Object error. Rather than go through the whole lot and work out the dependencies and then deal with creating them all in the correct order, is there...
If you have access to adatabase that the views exist within you can query sys.views to determine the order in which they where created. Query below should help with this, add a predicate to filter the list if it helps. [CODE]
8
2
4,212
2011-11-18T10:04:04.737
warehouse_errors
dba.stackexchange.com
212,985
Splitting the servers
We have a Windows 2012 VM running SQL Server 2012. There are around 20 databases with a total size of 5.83 TBs. There is 64GB of RAM and 16 logical processors on the box. The server is extremely busy with a lot of users hitting the databases with queries during 7 - 6 window and a lot of jobs hitting it in the evening a...
Community wiki answer : Have you considered just migrating the VM to a bigger host and giving it more cores and RAM? How to move a VM to a new host and assign additional resources is dependent on your hypervisor, and is something whoever manages your VMs can do. For Hyper-V see: Windows 10 and Windows Server 2016 Power...
2
0
257
2018-07-23T18:07:54.597
bi_errors
dba.stackexchange.com
436,298
Active Directory login Errordd
I've configured an AD-DS with two user accounts. then I logged in to these accounts using my laptop separately. But after server shut down still I can logged in to these two accounts using client machine. why is this happen ?
Windows caches (stores a local copy (of the hash)) of your AD credentials for just this situation. If you are part of a domain but want to use your laptop when you aren't connected, the cached password lets you log in.
1
3
27
2012-10-09T08:24:13.793
spark_errors
serverfault.com
1,018,431
bind 9.11 with views and also-notify with keys: slaves receive notifications with wrong keys
Example error message from a slave shows notification for view avcan received with key vpn [CODE] named.conf.options has [CODE] named.conf.local has [CODE] If I understand how also-notify works, the master should send notifications for view avcan with key avcan but the error messages from the slaves show it is also sen...
My bad. The master had acl stanzas as shown above. The slaves were missing the !key lines. Sorry for the noise. Maybe it helps somebody.
0
0
536
2020-05-24T03:49:25.153
infrastructure
serverfault.com
264,532
SQL Server evaluation period has expired
OS: Windows 10 Enterprise 64bit SQL Server: Microsoft SQL Server 2019 (RC1) SQL Server Version: Developer Edition I'm unable to start the SQL Server service due to the following error, "SQL Server evaluation period has expired". What's strange about this is I'm already using SQL Server Developer edition. Can anyone mak...
Release candidates and community technology previews (CTPs) are considered evals and they expire 180 days after installation. You may not be able to upgrade the instance as upgrades are not supported (see Upgrading SQL Server 2019 from CTP to RTM version: Is it even possible? ) Backup up your user database files (you'l...
5
7
6,981
2020-04-07T20:18:28.287
database_errors
dba.stackexchange.com
81,875
Trace Flag 1222 Not Working?
I have a customer site with two similarly configured 2008r2 SQL Servers "A" and "C". On both servers the trace flags 1204 and 1222 are enabled and [CODE] shows the following on both servers: [CODE] On A the trace flags work as expected, when a deadlock occurs, we get both the 1204 and 1222 deadlock reports in the error...
I had a similar issue, not sure it will sort yours. Try this: [CODE] Even though it was logging in the event log via the trace flag, this also needs to set in order to trigger the emails. You can see the table here: [CODE] You can have more details here
8
1
1,428
2014-11-04T20:19:53.133
database_errors
dba.stackexchange.com
668,144
Observium > Cannot retrieve processor/memory data from host
I have successfully setup an Observium monitoring server on a AWS EC2 instance to monitor other EC2 instances running Ubuntu. Hosts has been added successfully. I can run [CODE] And get some output. In Observium dashboard, for each host I can see poller/system information, even data about Nginx status is working but no...
Problem was on other host side, by default, the SNMP client configuration gives basic information. You must edit /etc/snmp/snmpd.conf and be sure of: [CODE] That's it, I got plenty of data now! I have written a small tutorial: https://medium.com/@thomasdecaux/monitor-your-ec2-servers-with-observium-8851d2441aa1
2
0
1,979
2015-02-16T20:52:44.600
pipeline_ops
serverfault.com
257,986
error 500 for .htaccess error
I am running a LAMP server, and this .htaccess is giving me a 500 error. What this does is filter keywords and redirect to the respective domain names. [CODE] Why does it give me a 500 error, do I have to check if IfModule is installed, or has to be installed.
You didn't properly close the IfModule container. You need to use at the end. You simply forgot the /
0
1
753
2011-04-08T15:50:41.617
api_errors
serverfault.com
716,739
Piwik + uWSGI setup
I have a problem setting up uWSGI+piwik using nginx. My configuration follows this blog entry . My uwsgi ini file looks like this [CODE] and my nginx config [CODE] The log file contains this, which indicates the error: [CODE] When I open the page with a browser a log entry like this is generated and I see a blank page ...
You are questing /piwik.php (if you requesting /, /piwik.php is marked as default). /piwik.php is the tracker. You have to request /index.php before and use web administration interface to produce the config file.
1
0
304
2015-08-25T19:51:39.760
infrastructure
serverfault.com
1,101,233
How can I set the ACL of a CA programmatically?
When launching the CA console ( [CODE] ), I can right-click on my CA, select Properties and then I can modify the ACL of my CA in the Security tab. When I modify it, the changes are applied to the AD object at: [CODE] When I view it in the ADSI editor, the modified ACL entries are not inherited, but directly applied (a...
Thanks to the pointers of Crypt32 and some additional sources 1 , I came up with the additionally needed changes that have to be performed in the registry of the CA: [CODE] 1 Further reading: TechNet: Setting Certificate Authority Security Permissions with Powershell SO: Powershell SDDL modification CommonSecurityDescr...
0
0
447
2022-05-18T14:25:34.967
infrastructure
serverfault.com
181,845
Fixing Files and Links in a Windows to Linux Migration
currently I'll be tasked soon migrating some websites from Windows to Linux. The only real catch that I've seen thus far is that the windows (soon to be Linux) site owners have built their hyperlinks in mixed case (for example they link to a file in all caps, but the file itself is named in lower case). While permissib...
If you are using Apache it looks like the mod_spelling modules might be away to work around this if it is all just kind of legacy stuff. I would look into fixing it as you are however if this is high volume. I you can't find anything for the links I would recommend looking at HTML::TreeBuilder in perl to find all the h...
0
0
106
2010-09-16T15:22:25.647
infrastructure
serverfault.com
13,360
puppet hostname problem
I searched online and I see a few other people have had this issue on other lists/boards. When I run sudo puppetd --waitforcert 60 --test for the 2nd time after signing the cert on the master server I get this error- [CODE] I'm not sure I understand what the problem or how to fix it. So that is why I ask. I'm setting p...
Sounds like the puppetmaster certificate was created when the host was named something other than "puppet". Recreate the certificate and you should be good. The name stored in the certificate has to match what you configured your client to connect to (exactly). For instance, if you configure your client to connect to "...
10
10
10,301
2009-05-27T22:47:14.340
pipeline_ops
serverfault.com
628,321
Can't curl. curl: (7) Failed to connnect... Connection Refused
I can't curl one of my installed software using the external EC2 ip address but if I curl using localhost:5000 (or 127.0.0.1:5000), it works fine. Any insights will be appreciated. I've installed these 3 items: Elasticsearch, port 9200 => I can curl using internal and external IP Jenkins, port 8080 => I can curl using ...
Flask apps by default only listen on the local interface, if you want your app to be available on external addresses, start it as [CODE]
3
6
91,938
2014-09-13T16:02:39.273
pipeline_ops
serverfault.com
507,380
Unable to ping gateway from network
I got the following route table : [CODE] [CODE] All of my computers on 10.45.13.0/26 and 10.45.15.0/26 are unable to ping 10.45.13.1 and 10.45.15.1 but can be everyting on 10.100.36.0 and 10.200.36.0. IPTables : [CODE] [CODE]
Try this instead of your rules. But reboot the route first so all other routes/rules are cleaned (obviously don't load at boot that the previous script) [CODE]
0
0
177
2013-05-13T18:29:52.190
infrastructure
serverfault.com
71,468
MySQL Update Multiple Rows in Large Table
I have a large InnoDB MySQL database table. I would like to run this query against the database table: [CODE] The exact contents of the where clause is dynamic. Through a web front end, an administrator checks one or more users who they want to update via this query. However, when the above query is run, mysql usually ...
SHOW ENGINE INNODB STATUS\G and see https://stackoverflow.com/questions/6000336/how-to-debug-lock-wait-timeout-exceeded increasing the lock timeout period could solve the issue. Apparently default is 50seconds. Which is maybe enough for all of the rows with userid=99, but not enough for rows with 99,22,88 or 7 userid. ...
0
0
1,754
2014-07-14T17:51:39.427
database_errors
dba.stackexchange.com
209,722
Is it a Bad Idea to Use Compressed Folders for Log File Archiving?
We have a custom Windows Service in our production environment that for auditing and diagnostic reasons generates log files in the file system. The log files are quite verbose (by necessity) and produce about 100 Mb of output daily. The log contents must be retained for a 12-month period, but are highly compressible. W...
I've personally done this on the one Windows server I was in charge of. I think it's a good idea. As you mentioned, the repetitive plain text in log files compresses VERY well. The overhead involved with compression seemed pretty small. I used it for firewall logs, and easily dumped out 100MB+ per day. (although I had ...
3
3
3,946
2010-12-06T21:00:17.337
infrastructure
serverfault.com
225,791
slow autovacuum on table with binary data
I have a table with about 4M rows, but each row has some binary data that may consume up to 1Mb. The autovacuum process on this table is taking over 1.5 hours to complete, which seems way to long to me. I understand that when Postgres updates or deletes a row it keeps a copy of the old row and then autovacuum cleans th...
4M rows with each one up to 1MB means that the table is up to 4TB, not counting the obsolete rows themselves. 1.5 hours would be astonishingly fast to vacuum a table of that size. Especially if you still have the default settings of "autovacuum_vacuum_cost_delay" and kin, which would throttle the autovacuum to about 8M...
0
1
92
2018-12-26T13:47:01.467
warehouse_errors
dba.stackexchange.com
138,247
Table design for ticket sales
I'm designing a database for a ticket sales system in PostgreSQL, where the admin user can create a batch of tickets for a specific event. All tickets for a given event have the same attributes (like eventId , name , price etc.) except for a serial number, which must be unique for each ticket. What are the best practic...
I can see no strong reason to avoid having a [CODE] table that stores each serial number on a separate row, assuming that makes most sense for the application that will use this database . You should still normalise the overall design to avoid repeated data in this table. "Thousands of rows" is pretty tiny for a relati...
3
2
951
2016-05-11T17:37:18.733
database_errors
dba.stackexchange.com
441,082
User Experience for Fraud Detection
Users are allowed to post on our website and we have started to get some spam. We have a background process that removes most of them after a few minutes, but are integrating a better solution that blocks on ingestion. This way they never make it to the site. My concern is that if we give them a big “we’ve detected spa...
I think there is a pretty standard practice for this Add a CAPATCHA If CAPATCH is passed but spam is detected, move to a review queue instead of publishing User can see their own review posts as if they were published but others can't Optionally have a human process the review queue.
-2
2
59
2022-09-17T04:16:04.433
api_errors
softwareengineering.stackexchange.com
416,017
Methods that receive buffer objects AND return another Object - is that bad design?
The Argument Some say that if you write a method that receives a buffer, iT MUST RETURN VOID -> the buffer is your exit point. Do not abuse the methods by receiving buffers AND returning a another object. [CODE] The Counter Argument Some say that this is fine and should not be a problem. The Question Is that a design p...
Like all "must", "always" or other imperial rules they're more guideline than hard rules. First what is Object to buffer? Is it the difference between before and after the call to MyMethod? Is it an Error status? Why do you need it? I think the rule to returning "void" and without adding a parameter so plainly is true ...
-4
0
163
2020-09-18T08:28:58.940
api_errors
softwareengineering.stackexchange.com
282,928
SVN ci failes: Commit blocked by pre-commit hook (exit code 255)
I'm trying to commit dirrectory and svn fails with message: [CODE] Any ideas what it can be and how to fix it? Thank you in advance!
Pre-commit hooks are custom scripts installed by the server admin to prevent commits that break whatever rules/standards they have in place. Your commit looks like it's being blocked because you're trying to commit a file that matches some sort of pattern that the hook is blocking. There's no single answer to this ques...
0
3
10,193
2011-06-22T09:41:23.830
infrastructure
serverfault.com
1,069,687
Plugging in a server rack with UPSes into a room that has its own UPS backup issues
Thank you everyone who's responded. There's been a common theme in some of the responses that I wanted to clarify since I wasn't clear in my original post. This is an upgrade that will replace their current hardware as part of our standard upgrade cycle. We aren't installing this in a data center; it's local hardware m...
Your typical UPS (i.e., excluding a double-conversion UPS), including all APC SmartUPS that I've worked with in the past, does nothing to the power except when running on batteries. It will draw a little extra power in regular use. When power is restored after an outage, it will draw extra power to charge the batteries...
19
26
3,526
2021-07-15T10:50:03.427
database_errors
serverfault.com
182,617
Using memcached with upgraded Subversion FSFS repository
Subversion 1.6 release notes suggest that it's possible to use memcached to "cache data of FSFS repositories". Creating a new repository using [CODE] has a fsfs.conf file within the db/ subdirectory which contains some examples and documentation for the memcached configuration. I have two related questions: To enable m...
I don't see a reason why an upgraded repository would behave differently from a newly created one. They should be functionally equivalent. The settings in fsfs.conf default to disabled, so it should be safe to copy it from a new repo. However, if you're in doubt I'd suggest copying the repo, enabling the memcached supp...
1
2
1,146
2010-09-19T11:17:52.113
infrastructure
serverfault.com
100,188
EFI pxe network boot error
Asking this on both serverfault and superuser . When attempting to network boot RHEL 5.4 on an old ia64 machine I get the following error : So I've basically followed the tutorial here : http://www-uxsup.csx.cam.ac.uk/pub/doc/suse/sles9/adminguide-sles9/ch04s03.html DHCPD,TFTPD etc are already setup and working with st...
I messed around with DHCP/BootP/PXE a while ago. The easiest thing I can recommend you do is to set up a virtual machine and install TftpD as you can configure it to be verbose and use it to diagnose problems. From that screen, it looks like as it says, it simply cannot find the file - try messing around with forward s...
1
1
3,735
2010-01-06T20:09:23.357
infrastructure
serverfault.com
261,197
Database design where % of rows have unused attributes/columns
Is there a theory/practice that promotes a design by analysing the usage of attributes of a table, such that given a threshold of unused columns over a percentage of rows would suggest that the attributes do not actually belong that that table, but instead in a relationship? example: [CODE] The above false and nil case...
The question of 'when should nulls be used?' is touchy. See this post as an example. I haven't heard of a principle that is based on the percentage of null values. How would the threshold be decided? To avoid nulls completely, I also thought of the same 'join table' solution you did: for every nullable column, convert ...
1
0
51
2020-03-04T13:16:11.320
warehouse_errors
dba.stackexchange.com
717,844
Asterisk behind Cisco ASA 5505
I'm in the process of upgrading from an old WRT54GL running Tomato to a Cisco ASA 5505, versioning as follows: [CODE] On Tomato I had configured a simple port forward directing all traffic coming in on port 5060 to the Asterisk server's local IP address, also port 5060. I can't seem to achieve the same thing with the A...
Turns out the SIP registration was failing due to the server's resolv.conf still pointing to the old DNS server (i.e., the old router). I'm assuming those web services were failing as they were trying to connect to TCP ports, not UDP as Asterisk is configured to listen on by default. I ended up using this hosted versio...
1
0
897
2015-08-30T17:09:45.350
api_errors
serverfault.com
37,309
Connecting remotely to an SQL server inside a LAN
I am using SQL server 2008 inside my home lan. I've configured it to accept remote connections and I can now connect to the server from other pcs inside the lan. The problems rises when I try connecting to the server from a computer outside of my home lan. I've disabled my router's firewall and I've configured a virtua...
When you're outside of your home LAN, first make sure you can ping the address you're trying to connect to. For example, if your home internet connection's IP address is X.X.X.X, then open a command prompt and type: PING X.X.X.X The X's will be replaced by numbers like 50.60.70.80. If the numbers start with 192, then i...
0
2
8,977
2009-07-07T20:00:46.403
database_errors
serverfault.com
964,795
Is there a way to restart the D-Bus on CentOS 7 - without crashing the system?
On CentOS 7, doing [CODE] [1], will bring the system to its knees. Is there a way to restart the D-Bus without crashing the system? [1] This is dbus.service - D-Bus System Message Bus.
AFAIK It is not possible, restarting dbus mean breaking ipc between all process which is similar to reboot itself.
2
1
5,193
2019-04-26T19:29:38.603
infrastructure
serverfault.com
43,771
Increasing timeout period for schema compare
I need to increase the timeout period for schema comparison. I'm using Visual Studio 2012 to compare two SQL Server 2008 R2 databases on Windows Server 2008. I believe this is something I need to set in the Windows registry but I can't find where.
You have to increase the query timeout allowed on the connection. Unfortunately there is no user-interface-exposed way to do this. You have to search the Windows Registry for the key "QueryTimeoutSeconds" and increase the value. I increased mine from 60 to 360 and that made my schema compare timeouts disappear in Visua...
2
7
5,343
2013-06-04T12:37:09.057
database_errors
dba.stackexchange.com
60,051
How can I get students to stick with data science?
I am a chief data scientist at one of the largest corporations in the world. I am constantly approached by employees to teach them more about data science and help them on their learning path. The problem is that no one really seems to stick with it over the long term, everyone just wants the "shortcut" to the sexy dat...
I have not tried this yet, but I have decided to try it on a friend who is a software engineer. He is so used to picking up skills on the fly and I am concerned he will lose interest since data science takes a bit longer to learn. I suspect a top-down-approach, like Jeremy Howard's fast.ai , will have an easier time to...
3
1
58
2019-09-11T15:31:05.523
data_quality
datascience.stackexchange.com
674,496
What does the --master option ACTUALLY do in uwsgi?
While the uwsgi documentation is perhaps fine for someone already familiar with server administration, it is definitely not so helpful for someone trying to learn it. I hope someone can help out with the questions below. I read, that it can close/reload processes gracefully. But what does that mean? And what is the alt...
I agree with you that Uwsgi documents are quite good. Now: 1)It means that uwsgi server will gracefully shut down/restart/reload its master process and its workers gracefully sending them a 'SIGHUP' signal, allowing the processes to respond to that signal: "flush buffers, close any established connections/sockets, e.t....
13
12
7,438
2015-03-11T06:23:34.697
infrastructure
serverfault.com
65,613
Postgresql database backup (and restore) from two servers to third storage place
I have two server machines with PostgreSQL: (A) is version 9.0.15 and (B) version 9.2. I wish to make backups of the databases stored in (A) and (B) - and be able to do restore if needed too! - to a 'storage' machine (C) where I have postgresql-commons clients installed (9.3). Which is the cleanest/better way to obtain...
I would run the backup jobs on A and B at specified times using the local native pg_dump, then push them to C for storage. [CODE] Restoring from the backup file can be done with: [CODE]
0
0
230
2014-05-21T17:09:47.507
database_errors
dba.stackexchange.com
629,496
RPC timeout between 2 linux servers
There are 2 servers in different routed networks. I can ping, ssh from one to another via router, and nmap utility shows opened tcp:111 and udp:111 ports. Also both servers show something like that: [CODE] Problem is when I try to mount NFS share or connect glusterfs server from both sides I have a timeout error. I'd t...
Not sure about your Linux distribution's specifics. But if it's Red-Hat Enterprise Linux based, you might want to check their documentation RHEL 6 - NFS Firewall Configuration Basically, the things you want to check (in order) are; Do you have all the necessary services running? nfs nfslock prcbind rpc.nfsd Do your fir...
2
1
15,007
2014-09-18T10:57:10.527
infrastructure
serverfault.com
81,831
Custom domain names for hosted service with SSL
I have a hosted service and have been issuing domain names to clients in the form clientxyz.ourdomain.com. Now we want to offer clients the ability to specify their own domain and Alias (CNAME) it to our servers (e.g. product.clientdomain.com points to clientxyz.ourdomain.com). The issue is with SSL -- all interaction ...
Yeah... I've been here before. You will have to install a dedicated cert for each client in order for this to work properly. It is certainly one of the more frustrating issues when trying to make this sort of thing happen, but makes sense when you think about it.
1
2
212
2009-11-05T18:19:16.920
infrastructure
serverfault.com
318,696
Settings Root Device on EC2
I would like to change the "Root Device" for an EC2 EBS backed instance using the AWS Console. "sda1" was set as the root device but I detached the EBS volume and mounted it elsewhere to fix a boot error, and when I re-attached it to the original instance as /dev/sda the root device is still shown as blank in the AWS c...
Scratch that, the problem was I was attaching as /dev/sda (which is the normal way to attach an EBS volume) but actually for the root device it needed to be an explicit partition, i.e. /dev/sda1
3
4
2,659
2011-10-05T13:17:56.617
infrastructure
serverfault.com
1,048,301
Freebsd Jails alternatives on Debian/Centos
I am moving from FreeBSD/Freenas to Debian/Freenas Scale eventually, but the question is broader. What would be the equivalent for jails on Linux osses. Now most will recommend docker or some variant of that. I would agree but I really REALLY like how jails work how I can go to the shell and change/install what I need....
If you need to use a certain operating system for design reasons, you will need to port tools to that. We don't do product recommendations, so you'll need to find or create container management tools. Jails are definitely different from Linux containers in implementation details. However, a comparison of container tech...
1
0
1,583
2021-01-02T12:38:12.940
pipeline_ops
serverfault.com
159,328
How can I obtain the full text for a query that appears in sys.dm_pdw_exec_requests?
I'm trying to tune a DB in Azure SQL Datawarehouse for queries produced by Power BI, which can connect directly to Azure SQL Data warehouse. I'm interested in studying execution plans, tweak things like indexes and statistics, retry queries to test changes and so on. A typical way to do this is by looking at sys.dm_pdw...
This came up the other day and the reply was "switch on Auditing": https://learn.microsoft.com/en-us/azure/sql-data-warehouse/sql-data-warehouse-auditing-overview I have not tried this myself yet so I'm not sure if you get the full text of the query. I plan to test this feature in the next few weeks so will update the ...
3
1
853
2016-12-28T12:23:31.390
database_errors
dba.stackexchange.com
126,819
SQL Server Agent initiating self-termination
For the past month, one of my servers is facing issues with SQL Server Agent. It stops automatically with below error, which happens randomly: Sql Agent Output file [097] Memory leak detected [204 bytes] Exception 5 caught at line 403 of file e:\sql9_sp2_t\sql\komodo\src\core\sqlagent\src\alerter.cpp. SQLServerAgent in...
Since you recently upgraded a few months ago from SQL Server 2005 EE to 2012 SE, you should save off and clear your event logs because SqlAgent may crash when it sees Event Log IDs from an older build of SQL Server. For example, the Agent may crash because it reads an event logged by a SQL Server build earlier than the...
9
1
811
2016-01-21T05:45:40.433
database_errors
dba.stackexchange.com
222,718
Mysql replication, Slow resyncing of slave after an error
I have a slave that got an error about a months or so ago and got way behind the master. I fixed the error and now playing catchup with the master but its going very slowly. Its going at 1.3x real time. I was using less that 10% of the db resources when these writes were first happening so the speed of the server shoul...
MySQL uses only one thread on the slave to apply the replicated statements coming from the master. In the master server, SQL statements are executed in a multi-threaded concurrent way, but they get serialized when appplied in the slave. That's why your slave server may seem to be underused while, painfully, tries to ca...
3
5
1,684
2011-01-14T23:17:35.687
database_errors
serverfault.com
385,151
Track spammer Exim
hello i have a exim server , and have a lot of spam last 24 hours , i watch exim_mainlog and see this [CODE] But i cant track the spammer , any ideas to track this , a friend says me possible trojan send spam on server thanks
Well, you already have the IP address that the message was sent from (186.106.221.159). What more do you want? Honestly, "tracking" spammers (whatever you mean by that) is a losing battle. Your time would be much better spent setting up Exim to use a reasonable RBL and Spamassassin or the like.
-1
2
330
2012-05-02T03:49:58.903
infrastructure
serverfault.com
221,778
RAID 10, how layout works?
Possible Duplicate: Can someone explain the physical architecture of RAID 10 in complete layman's terms? I'm trying to figure out how exactly works the RAID 10 in linux with mdadm . I want to create a RAID 10 out of 4 partitions, let's say a, b, c and d. a and b are on the array 1, c and d array 2. So what I want is to...
FYI "So what I want is to have the couple a and b, c and d in RAID 0. Then on top of that, a RAID 1." I would advise you otherwise. Make a RAID 1 set of a and b, and c and d and then do RAID 0 on top of that. This will provide you better risk management. This will let you keep a RAID 0 even if one drive from both the s...
0
3
3,169
2011-01-12T22:08:14.647
data_quality
serverfault.com
327,646
best configuration for large mysql database
I have the following scenario: I need to update in a MySQL database ( innodb ) ~5-10 million records / day For each record i update or insert i need to run ~10 read queries, then I split the record in ~4 tables. Problem is right now I'm limited to ~3 million records / day, and i don't know what i should upgrade, CPU, r...
i should upgrade, CPU, ram or drives? No. That might get you from 3M to 4M. Then you will hit the same brick wall again, long before getting to 10M. And there will be no further simple hardware fixes available. Instead, let's see those dozen or so queries that go into each new item being received. Also [CODE] for the 4...
0
0
184
2023-05-29T13:38:52.660
database_errors
dba.stackexchange.com
46,632
Altiris gets Disabled?
We use Altiris for software deployment at our organization. Sometimes when we remove a piece of software altiris will turn gray and every feature is disabled in it. The only way to fix that is to reinstall it. Does anyone know why it happens and what is the best way to fix it other than reinstallation?
So you're saying when you remove a critical part of Altiris, then Altiris stops working until you reinstall that part? I'd say the solution is to not uninstall that part in the first place. Or am I misunderstanding something here?
0
2
449
2009-07-27T17:52:50.657
pipeline_ops
serverfault.com
302,287
Grub loading Error 22, on trying to boot second hand Dell 1950 server
I bought a Dell PE 1950 on Ebay, the post runs through showing the SAS 5 controller and two hard drives, but then it hangs at Grub loading ... Error 22. I want to put Windows web server 2008 on it, but it will not boot from CDROM (the disk is fine tried it on aother machine). It will boot to an Ubuntu 8 disk. ANy clues...
The server comes with a CD-drive, not a DVD-drive. Since Windows 2008 is shipped on a DVD that won't work. I doubt it will even run, so why don't you try to install Server 2003? Or if you really want 2008 you could PXE-boot it.
1
0
856
2011-08-17T21:27:10.723
infrastructure
serverfault.com
679,842
Daemontools (djbtools) freezes processes after system restart
We are currently using the latest daemontools ( http://cr.yp.to/daemontools.html ) to manage our background linux (AWS-linux) application servers. Our application servers run in JVMs: [CODE] Everything works well and as expected unless we restart the server: sudo shutdown -r now When the server restarts the configured ...
The first step to diagnose is to execute [CODE] from the service dir and just make sure that will run continuously in the foreground . If it doesn't, then you'll need to address it in your application. If it does run all right manually, then the problem could be in how you're setting up the service dir. Can you post yo...
0
0
181
2015-04-01T14:41:59.713
data_quality
serverfault.com
305,712
At what point is it taboo to have loops within loops?
Just curious. The most I have ever had was a for loop within a for loop, because after reading this from Linus Torvalds: Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the ...
The kernel strongly prefers simple algorithms While a variety of algorithms may require deeply nested loops within loops, in context of the Linux kernel (in which the quote was said) you generally need quick real time responses. In that context, deep nesting is a smell that may indicate that the code flow is too comple...
23
19
5,093
2015-12-23T12:03:40.277
api_errors
softwareengineering.stackexchange.com
813,894
Are Rack-Servers always loud?
So, I'm thinking about getting a rack server (one blade) at home for stuff like gameserver, rendering, webserver, cloud etc but I'm worried about the loudness of the fans. I've only seen one single server rack in real life and it was pretty loud (and warm) so I'm unsure if every server is really that loud or if there c...
Yep, these are always loud. Fans may go slower if the temperature's cold enough. Even though, you'll always ear it. Even with a couple closed doors in the way, ... In addition to the noise, you should also consider these are hotter. And if you don't have some sort of air conditioner, fans would run faster, ... The main...
0
3
2,491
2016-11-08T22:20:32.893
infrastructure
serverfault.com
404,483
Apache: how to set custom 401 error page and save original behaviour
I have Kerberos-based authentication with Apache/2.2.3 (Linux/SUSE). When user is trying to open some url, browser ask him about domain login and password like in HTTP Basic Auth. If user cancel such request 3 times Apache returns [CODE] error page. My current virtual host config is [CODE] I want to set nice custom 401...
Firstly, when I used [CODE] [CODE] was dynamic backend-generated content. When I've created simple static [CODE] and have setted [CODE] whole system started work properly. So the solution is: don't use dynamic pages for displaying 401 error, use static html.
4
3
10,671
2012-07-03T17:55:02.747
api_errors
serverfault.com
174,042
Tor + Privoxy on Debian Lenny Problems
I've followed the instructions here, to get it running on my debian server. http://www.cyberciti.biz/faq/debian-ubuntu-linux-install-onionrouter-software/ Everything is installed. I've configured privoxy config and restarted both services after. However, when I use 127.0.0.1:9050 as proxy, it says "TOR is not HTTP Prox...
In the web page you cite: Set 127.0.0.1 and 8118 as privoxy server IP and port number. Now Firefox is ready to use with Tor. The http proxy is Privoxy, not Tor.
0
0
481
2010-08-24T19:15:14.043
infrastructure
serverfault.com
738,287
HP Code 341 "Physical Drive State: Predictive failure. This physical drive is predicted to fail soon."
this is my first post so bear with me here :-) Background: I have a RAID5 setup with 4 disks that have been working perfect for years. After one drive failed, I installed new drives which where rebuilding but it will mark new drives as smart status fail. Hardware: HP Proliant ML350 G6, 6Gb RAM, Xeon E5620, BIOS D22 Win...
Assuming that all 5 new HDs are of the correct type, it's extremely unlikely that all of them are faulty. We've had a similar problem of an HP ProLiant NAS with new disks constantly failing, and we solved it by replacing the disk controller.
4
1
9,546
2015-11-23T09:17:30.043
api_errors
serverfault.com
324,231
Defensive coding against an 'official' WSDL service specification
Earlier today I was asked to diagnose an issue in some development code. It turned out that the issue was caused by a new stub implementation returning random data which did not match the service specification. This led to a conversation with other with regards to the correct approach to dealing with this scenario and ...
If you have a schema that defines what a valid message is, your software should be able to accept everything that is valid from the perspective of the schema, even if it doesn't make sense in the context of your application. One of the first things you do upon receiving a message is to validate it's correctness. If the...
0
1
131
2016-07-07T10:27:26.223
api_errors
softwareengineering.stackexchange.com
366,270
How can I find out where a UDP connection fails?
I want to setup a VPN server with OpenVPN, so client PCs can access each other like they were in the same physical network. One problem I encountered is, that I cannot connect via UDP. When I change server+client configuration to use TCP connections, clients can successfully connect to the server. I read TCP over TCP i...
Sounds like a firewall is blocking traffic. I'd recommend using a udp sniffer..for linux, try tcpdump (which despite its name does also udp).
2
2
7,913
2012-03-04T20:17:48.243
infrastructure
serverfault.com
265,114
MSSQL Ubuntu Unexpected call to legacy ABI
We recently had a Ubuntu 16.04 server loose power. After restarting the server I noticed that MSSQL Server was no longer running due to a an error [CODE] After researching for hours I could not solve the issue. I then uninstalled MSSQL Server fully and reinstalled it. I went through the configure prompts although when ...
I found this : Short answer: Try renaming /var/opt/mssql/.system/instance_id to something else, and restart SQL Server. Rationale: I was running into this issue on Linux Mint. I started noticing the problem after having done a system update and a reboot. I tried reinstalling SQL Server 2017 (same error), upgrading to t...
4
0
883
2020-04-15T20:09:40.680
database_errors
dba.stackexchange.com
337,705
What is meant by the phrase “Software can replace hardware”?
Studying beginners course on hardware/software interface and operating systems, often come up the topic of if it would be better to replace some hardware parts with software and vice-versa. I can't make the connection.
I think the fundamental connection that other answers are missing is this: Given a general-purpose computer (e.g. a CPU), one can program it to perform pretty much any computation that we have defined. However, specialized hardware may perform better, or may not provide any value. (this answer is focused on desktop pro...
96
178
20,069
2016-12-07T15:27:01.343
api_errors
softwareengineering.stackexchange.com
1,025,457
How to properly setup VMs for testing (personal test)
So both of my testing VMs are on the same laptop and both of them are running Windows Server 2019 and both of them are on the same SSD. Basically, I need to test performance when the SQL database is on iSCSI disk in LAN network while the SSMS is on the local disk. When I setup the machines and set their network adapter...
First of all, you could manage cloud-based VMs running your application and test performance on top of appropriate hardware. As for the latency, you could simulate its low bandwidth, high latency environment. https://stackoverflow.com/questions/130354/how-do-i-simulate-a-low-bandwidth-high-latency-environment
3
3
53
2020-07-16T10:38:17.690
infrastructure
serverfault.com
67,278
Can I remove create table permission in postgresql 8.3?
Using postgresql 8.3, I've created a read only user like this: [CODE] and then granted select to all the tables this user needs to access. but I see this user can [CODE] and insert/update/delete/drop the table. Is there a way to remove create table permissions for this user on this database?
Yes. Revoke privileges from public schema.
3
3
2,910
2009-09-21T11:07:18.513
database_errors
serverfault.com
228,142
MongoDB Performance of Overwriting an Array Field vs Individually Updating the items
The problem I am facing is basically updating the inventory when an order is received in a MongoDB database.The general hierarchy is as follows [CODE] Note: I will be using Scala driver syntax from here on There are two ways to solve this problem: 1) Find() the corresponding Items array, update all the necessary items ...
Both of the described approaches are very suboptimal in theory. My strong recommendation would be to design a more efficient schema to suit your data access & update patterns. For example, order items could be referenced in a separate collection rather than being embedded in an array. If you are currently using a singl...
0
2
2,020
2019-01-26T00:39:37.107
database_errors
dba.stackexchange.com
339,600
How to install Mysql 5.1 on Fedora 16
I can't seem to install MySQL 5.1 on Fedora 16. When I try to install an RPM downloaded from the MySQL website I get conflict errors with the existing 5.5 packages which I have already 'removed' via yum. TIA SO [CODE]
Looks like you still have an old mysql 5.5 package that conflicts with your attempted 5.1 install. Doing a : yum remove mysql-libs should remove it and allow you to properly install your MySQL 5.1 server package.
1
1
1,777
2011-12-09T19:28:20.617
database_errors
serverfault.com
415,868
Remove Computers added to WDS database without a name
We run WDS on Server 2008 R2. We have a large stock of Loan Laptops that we reimage when they come back from loan. these machines all used to have a generic name (LoanLT) which was specified in the answer file. We have since decided to barcode all the machines for ease of stock checking and would like the machines to p...
According to this article you can clear all approved devices from the database with this command: WDSUTIL /Verbose /Delete-AutoAddDevices /Server:MyWDSServer /DeviceType:ApprovedDevices. Hope this helps.
3
2
2,318
2012-08-09T11:12:39.277
infrastructure
serverfault.com
308,879
Is stack allocation in Java implementation dependent?
I've looked through the different threads, and there are a lot of conflicting information out there. The most useful article I found was this: Java theory and practice: Urban performance legends, revisited but it's from 2005. So I was wondering what is the state of the Java standard regarding heap allocation. In the re...
I was wondering what is the state of the Java standard regarding heap allocation. It only takes a couple of seconds to actually [CODE] the text of the Java Language Specification for all occurrences of the words "stack" or "heap" and inspect those, so the answer is not really hard: it doesn't say anything about stack o...
1
4
297
2016-01-31T04:15:46.897
api_errors
softwareengineering.stackexchange.com
206,077
dbo.SORT temporary run storage: 148643705716736' What does this number means?
I totally understand what this error means and how to resolve. My question is what does this number ( 148643705716736 ) referring to? Date 5/7/2018 1:36:58 AM Log SQL Server (Current - 5/7/2018 2:31:00 AM) Source spid125 Message Could not allocate space for object 'dbo.SORT temporary run storage: 148643705716736 ' in d...
That is most likely the [CODE] that was attempting to be allocated when it ran out of space. You can check by running the following query to see if [CODE] is currently using similar IDs: [CODE]
5
5
5,377
2018-05-07T18:47:03.520
database_errors
dba.stackexchange.com
30,364
Getting last row for each day in MySQL
I have problem in selecting other columns for the max(datetime) records. In layman terms I need to get relevant columns where max(DialDateTime) records for all the dates in Mysql. [CODE] 7 rows in set (0.00 sec)
You should be able to use a subquery to get the max date and then join that to you table to return the remaining columns: [CODE]
3
6
21,766
2012-12-13T13:37:39.920
database_errors
dba.stackexchange.com
250,423
Auditing all User activities
Today I had to grant sysadmin rights for 2 users. ;( As I couldn't change that, I at least want to see, what they are doing, so I am looking for a way, to audit all activities by these 2 Users. Sadly I couldn't find anything on how to set this up, with the exception of using the Profiler (which I don't want to do). Doe...
Today I had to grant sysadmin rights for 2 users. Why? There should be no Good Reason for anyone (except you and your Team) to have this level of access to any database. If they're having problems that they cannot resolve for themselves, then they should be working with you to solve them, not working around you and lea...
1
2
60
2019-10-07T10:25:05.653
warehouse_errors
dba.stackexchange.com
301,788
How do you get Redis connections working within an Amazon VPC private subnet?
I have an Amazon VPC setup with a private subnet containing 2 instances. One of them has redis running on it, the other instance I want to use to connect to the redis server. I have the redis instance listening on port 6123. When I connect locally on the Redis instance, everything works, but when I try to connect from ...
By default redis listens on 127.0.0.1 have you edited your redis.conf to include the line [CODE] ?
7
15
8,820
2011-08-16T20:32:48.060
database_errors
serverfault.com
917,654
EMC VNX 5300 - How to access Control Station
We have an EMC VNX 5300 and the certificate has expired. I have already researched the instructions for viewing the certificate and regenerating a new one. The steps require accessing the Control Station CLI through the service port on one of the SPs using a specific IP address (128.221.1.250). I have connected with my...
A couple things to note: That KB article says to login to the control station, which is an entirely different box than the one that uses the ip [CODE] . The control station is the small box, it has a vga port on the back. I had to use a PS2 keyboard and grub commands to start it in single-user mode to reset the [CODE] ...
1
1
14,380
2018-06-21T14:28:08.860
api_errors
serverfault.com
202,945
Joining table from Linked Server is very slow
I have a production SQL server and a linked server (Azure SQL Database) I join two tables to do update [CODE] When I run below query [CODE] The update of 100 rows takes about 18 seconds! 1000 or more rows take much more time I made sure below is true: [CODE] I even tried to significantly scale up Azure SQL DB (from 20 ...
Put an index on A.ID Add a <> so it can avoid taking locks [CODE]
1
1
4,399
2018-04-03T18:30:21.233
database_errors
dba.stackexchange.com
125,771
Multiple column concatenation
How to concatenate multiple columns in to a single row? For example: [CODE] The expected result set is: [CODE] Using a solution I found on Stack Overflow: [CODE] Are there any better solutions? The inner select comes from an expensive multi-table join (not the single table 'test' shown above). The query is in an in-lin...
I ran a few tests using a little over 6 mil rows. With an index on the ID column. Here is what I came up with. Your initial query: [CODE] This one ran for ~23 minutes. I ran this version which is the version I first learned. In some ways it seems like it should take longer but it doesn't. [CODE] This version ran in jus...
7
7
19,362
2016-01-10T05:07:26.327
warehouse_errors
dba.stackexchange.com
540,214
Is it necessary to do an svnadmin dump to backup subversion?
We have subversion repositories that are accessed via svn+ssh and apache's svn module. Is there any problem with just backing up the repository directories directly, or will I get something out of doing an svnadmin dump on them? I'm currently of the opinion that a backup copy of the directories is fine.
See here: Best way to do Subversion backups? as it will answer your question overall I believe. NOTE: the below is based on my own sysadmin experience. I'm not a Subversion expert, and you might get more informed answers over on StackOverflow. Personally, I had to backup an SVN server in the past and I used [CODE] even...
1
4
8,191
2013-09-19T15:10:24.970
database_errors
serverfault.com