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
311,761
recommended way to collect email notifications from crond in Arch Linux
Arch Linux doesn't have [CODE] installed by default. So I get the following messages in my syslog: [CODE] What is the recommended way to fix this default behaviour so actual messages are sent? [CODE] is installed and capable of sending email messages using SMTP. Is it possible for [CODE] to use [CODE] to send notificat...
I usually use (and recommend) small relay-only mail servers like [CODE] for this case. Don't know if it's in your repos, though.
1
2
968
2011-09-15T13:24:54.517
infrastructure
serverfault.com
60,694
Report in MSSSRS without Star Schema?
I have to create a single report in MSSSRS to view calculated columns (Salary, Total Compensation, Performance Bonus, 401 (k)) by Employee, Department, Service Line, Geography, Quarter, etc. My modeler is going to give me one and only one single flat TABLE (No FACTS and Dimensions) that he has developed in MS Access an...
It sounds like you are talking about creating a report that allows the users to choose the grouping of the data, e.g. there is a report parameter that allows the user to select "Employee", "Department" etc. which will then drive the grouping in the report data (presumably a table). You have a couple of options to achie...
0
1
211
2014-03-11T20:21:46.707
api_errors
dba.stackexchange.com
582,244
Starting supervisor with init fails
I installed supervisor using pip on my debian 7 installation. I then grabbed this file and moved it here: /etc/init.d/supervisord [CODE] Then I ran: [CODE] However, when I run the command supervisord the program starts fine, but when I run: [CODE] I get no error or message, but supervisor doesn't actually start. How ca...
I installed supervisor using pip on my debian 7 installation. Why would you go and do a thing like that?!? :) There's a perfectly good supervisor package in debian's apt repo. Why not use that? That package has been well-vetted, and is configured to work seamlessly with your specific linux distro and version - none of ...
1
1
282
2014-03-14T21:50:31.930
infrastructure
serverfault.com
41,359
"Microsoft" has an online tool for troubleshooting Exchange issues - is it nifty?
**please note, I've changed the question in response to the suspicion that this site is dubious.* I found this today - https://www.testexchangeconnectivity.com/ Pretty nifty! (or maybe not?) There's a post about this site on a site called msexchangeteam.com. They claim to be the "official blog of the Microsoft Exchange...
As the updated question says, there's a post about this on "You had me at EHLO," so I guess it's official: Announcing the release of Exchange Server Remote Connectivity Analyzer
5
3
4,852
2009-07-16T01:15:00.157
infrastructure
serverfault.com
216,810
Tender vs. Requirements vs. Solution Design
Conventionally, which of the above documents is deemed to hold the most weight when it comes to system acceptance? I recently had a conversation along these lines: It was argued that the initial requirements / tender documentation should be used to determine system acceptance. It was said that the solution design only ...
Passing acceptance testing is an indication that the system meets the users' requirements acceptably. As such, the requirements document is generally considered the source of truth for acceptance criteria. There will almost always be further elaboration of requirements during design. If these are truly an expansion of ...
2
5
954
2013-11-07T17:04:13.360
api_errors
softwareengineering.stackexchange.com
626,113
PKI - Cert Template could not be loaded. This function is not supported on this system
I've built PKI's many times yet this organization's results have me puzzled. Offline Root 2008 R2 Standard 2xEnterprise Subordinate CA's 2008 R2 Enterprise Installed services, all is good. When I go to add v2, v3 templates they aren't available so I google and discover that in AD Sites & Services under PKI Enrollment S...
Figured this out myself. Turns out the Enterprise servers that were handed to me to configure PKI were actually built as 2008 R2 Standard servers that were upgraded to Enterprise. I never expected that. We backed up the CA, wiped the server and reloaded Enterprise fresh, restored the CA and everything is working perfec...
1
0
1,815
2014-09-04T00:55:44.850
database_errors
serverfault.com
963,250
Cloud DNS forwarding not resolving in other networks of shared VPC
Our setup: We have a master project [CODE] , and two other projects, [CODE] and [CODE] . In project [CODE] , we have a shared VPC with networks [CODE] , [CODE] , and [CODE] (related to which project they're meant to serve). The VPC for [CODE] is shared from project [CODE] to project [CODE] , and the VPC for [CODE] is s...
From your description, it looks like the networks A, B and C are peered with each other. The documentation about Peering zones says that, "when two networks are peered, they do not automatically share DNS information". This could explain why the DNSs can only resolve names to instances within the same VPC ehn using Clo...
0
0
1,042
2019-04-16T08:47:01.383
infrastructure
serverfault.com
192,082
Analyze table in procedure
I have many partitions to analyze and don't want to paste every single line to terminal so I'm trying to run a procedure for it, but I got complitaion error: [CODE] Warning: Procedure created with compilation errors. [CODE] What is reason for that?
You can not place DDL commands directly in PL/SQL code. You can run them as dynamic SQL, for example: [CODE]
0
0
1,782
2017-11-30T15:25:09.063
warehouse_errors
dba.stackexchange.com
45,926
How to undo every change made to a database in a controlled environment?
I'm doing system testing of a product, and several tests are severely changing the data of a demo database. The data is quite complex to create queries which will undo the changes done by the tests; moreover, those tests are subject to change. Using a backup/restore is not an option, since restoring the database takes ...
If this is just for development/testing, you can get a license for Developer Edition (free for 2014+ and ~$50 for 2012 and lower). and use snapshots, since Developer Edition supports all of the features supported in Enterprise Edition. The only difference is licensing - you cannot use Developer Edition in production. Y...
4
5
6,390
2013-07-08T15:47:29.323
database_errors
dba.stackexchange.com
114,725
OpenSSL support for Ruby: "Cipher is not a module (TypeError)"
The Problem Our systems admin needed to upgrade the packages on our CentOS 5.4 dev server to match the packages on our production server. The upgrade affected ruby and/or openssl . We run a Ruby on Rails issue tracking system called Redmine that is deployed with Passenger on Apache. Everything worked before the server ...
ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux] in ruby source directory [CODE] Finding a fix for this took a very long time...
2
2
4,258
2010-02-19T18:39:52.507
infrastructure
serverfault.com
165,908
Yum install error (mysql-devel) depsolve
I get the following error on yum install mysql-devel. Can anyone help? I dont have this in my /etc/yum.conf exclude list. [CODE] Please help!
Things I'd try: [CODE] If it was an intermittent problem with the yum repo you're using, that could fix it. [CODE] It's also possible that you have duplicate copies of the same package installed. I've seen very similar errors to what you describe when that happened.
1
1
1,655
2010-07-31T18:05:14.333
database_errors
serverfault.com
543,392
script resources limit when visitors over 1000 in same time
I have a Linux Server (i7 / 48gb ram) that hosts just two sites. One site is wordpress and the other is custom design php script. When I have heavy load on the two sites ( 1000 visitor in same time ) the custom design has high response times, but when it has fewer visitors ( 100 ) the wordpress have small response time...
So, you have a crappy programmed custom stript and hen many people use it at the same time, you overload the server. What is the question? Your i7 likely has limited ressources - either CPU or Disc IO, RAM is unlikely (but also possible). One of those gets overloaded. Fix? Either distribute load over bigger hardware, o...
-1
1
79
2013-10-02T19:18:36.500
infrastructure
serverfault.com
11,821
I am getting an error while trying to download binary for mysql 5.5.11
I am trying to upgrade MySQL 5.1 to 5.5.11 on Ubuntu 10.10. Everytime I try the [CODE] command I get this error: [CODE]
I'm guessing that you got that link from http://www.ovaistariq.net/490/a-step-by-step-guide-to-upgrading-to-mysql-5-5/ ? At any rate, MySQL is up to 5.5.20 now and I don't think they offer older versions of 5.5.x. If you want an older GA release, you'd have to download 5.1.61. If you visit http://www.mysql.com/download...
1
1
1,008
2012-01-27T21:20:21.213
database_errors
dba.stackexchange.com
735,728
Google Cloud with SQL Server Express - add database permissions
I've recently setup a google cloud server for the first time and I installed the asp.net framework which is marketed as "Windows dev stack featuring IIS, SQL Express and ASP.NET". I'm familiar with SQL Server, c# asp.net and would like my first project done with these technologies for simplicity. I manually installed s...
Using Developers Console, you can check the [CODE] username's password in two different places : under [CODE] , click on your deployed ASP.NET instance and look for [CODE] value under [CODE] . under [CODE] , click on your deployment. In right pane look for [CODE] and [CODE] values. Using PowerShell command line from in...
2
4
1,835
2015-11-12T02:06:24.227
database_errors
serverfault.com
25,078
Slow loss of connectivity to SQL Server 2005
Client has a dangerously open instance of SQL Server 2005. VB.NET 1.1 connects to this from another server without problem. Turning on Windows firewall with port 1433 open to subnets only seems like a quick stopgap solution. DB seems fine, but begins to slow down over the course of an hour... As though it is losing con...
SQL Server provides a way to monitor open connections under "SQL Server Management Studio". I would check to make sure that connections are not getting opened up and left open from the application. Because unless the application explicitly closes the connection it could be possible for it to remain open until the Garba...
1
0
269
2009-06-12T22:39:51.023
database_errors
serverfault.com
238,691
Fixed duration Jobs need to be scheduled across fixed number of queues
Say I have 9 jobs with estimates of how long they will take to complete, and 3 queues that process these jobs - this constitutes one batch. Note that all the jobs are allocated to a queue beforehand and not at run-time. So with poor-scheduling, some queues may remain idle while others continue to process a job. All the...
This is related to the knapsack problem , except that you have multiple, variable-sized knapsacks. That makes it enormously easier. A simple algorithm is to sort the jobs by size and then, starting from the largest job, assign each (one at a time) to the queue with the least work assigned to it (so yes, you'll need to ...
1
3
61
2014-05-11T05:57:48.250
data_quality
softwareengineering.stackexchange.com
738,145
Laravel 5.1 deployement Your requirements could not be resolved to an installable set of packages
When I am trying to deploy my laravel project and do a php composer.phar install I get this annoying error. I pulled in my project via git with a git clone. And when I surf to my domainname I would like to see my app obviously :). I've installed a correct version of apache, mysql and php. Everything is up and running. ...
Try removing php-common-5.4* and rerun the installation. You must remove old PHP packages before installing replacement.
1
1
1,676
2015-11-22T14:46:00.617
database_errors
serverfault.com
287,406
Windows Share Unavailable when Accessing from Wifi
We are running a small LAN in our Company using a Cisco Router. Attached to this Router is QNAP NAS providing Access to Data via Windows Shares (we all use Windows 7 Computers). As the Router does not provide WiFi Access, we attached an old D-Link Router (that works fine) and use it as an Access Point. Everything is wo...
Any chance you have the D-Link attached via its WAN port? If so, you may consider taking a closer look to see if the D-Link has a "wireless access point" mode, which will probably be more appropriate for your configuration.
1
0
188
2011-07-06T08:13:39.450
infrastructure
serverfault.com
871,993
AWS billing-related monitoring
As a sysadmin I typically monitor at the server level, OS level, and application level. I can even do data-center monitoring (temperature of the building, power load, etc.). My organization is planning on moving some production services to AWS. AWS provides notifications about how much you are spending, but since I don...
Items 1 and 2: AWS sends such emails to the email address associated with the root account, so choose that address carefully, and ensure that it is monitored. There does not appear to be another notification mechanism. These two items are essentially the same as far as I can tell -- if the payment method is declined, t...
0
1
86
2017-09-04T14:22:53.620
pipeline_ops
serverfault.com
138,523
Determine if application is re-using SQL Connection
I have a legacy app that connects to my SQL 2008 server. I'm trying to determine if the application is re-using it's connection to the SQL server or is creating new connections on a regular basis. Using SQL Profiler I've audited for login events, but that appears to generate an event every time a SQL statement is execu...
sp_who will give you a list of connections.
0
1
137
2010-05-04T19:03:47.960
database_errors
serverfault.com
797,742
Selecting/sizing GCE disks for high IO
We've got a project on the go to migrate much of our infra to GCP, and a major component of that is our monitoring system. Currently the storage system for perfdata is a 6-node Carbon Storage cluster, and each node pins its underlying physical host's IO at ~2000 write IOPS. So my baseline requirements for porting over ...
I will answer in the same order as the questions: Yes according to this Help Center article without any other scaling factor Standard Persistent Disk sustained performance caps increase with the size of the volume until reaching the maximum performance available. These performance caps are for sustained activity to dis...
0
1
1,278
2016-08-18T19:13:33.393
api_errors
serverfault.com
734,808
Reach server via ssh tunnel and nginx proxy
I'm new to nginx. I've inherited a fully functional and configured Ubuntu server with nginx and would like to tune it additionally to support a somewhat weird configuration, described below. Basic info. My Ubuntu server (let's name it server.corp.com) runs in an internal corporate network. It hosts Gerrit and Jenkins, ...
Found solution. One needs to add to hosts [CODE]
3
0
7,576
2015-11-08T17:56:53.563
pipeline_ops
serverfault.com
855,319
Postfix error log has "DKIM verify result: Message is not signed"
What may be causing this issue? How can I diagnose it? I've just enabled SMTP via an additional entry in [CODE] .
Obviously it is a missing DKIM signature or an service option which checks for DKIM signed messages. You should consult your logs or enable more verbose debugging options . We do not really know in which context this error occurs and if postfix throws this error. It might be another service like OpenDKIM which gives a ...
0
1
416
2017-06-12T17:36:49.173
infrastructure
serverfault.com
570,576
PowerShell ftp get won't save on Windows Server
From a Windows Server 2012, using [CODE] , I connect to a remote device through [CODE] and run [CODE] to retrieve a file. The process goes through with no problems but the file doesn't get saved on to my local machine. The command returns [CODE] and after a few seconds the connection gets closed. [CODE] On the destinat...
I'm not sure what exactly is the process behind the [CODE] method, but it seems to me that it interrupts the ftp connection right before the download transfer completes causing the operation to fail. By using the asynchronous method I managed to successfully download the file. Here's my updated function using the [CODE...
2
0
1,922
2014-01-28T23:48:50.537
infrastructure
serverfault.com
108,113
What are HIPAA rules concering RPO and RTO for a doctors office?
I am planning system upgrades at several Group Practice doctor offices. I am asking them questions concerning what their RTO (Recovery Time Objective) and RPO (Recovery Point Objective) may be so I can balance their budget with those objectives. What I am wanting to know from ServerFault, does HIPAA have rules concerni...
I don't think they regulate that, presumably the office would have downtime procedures for capturing records on paper that would later be entered in the system after the upgrade is complete. HIPAA doesn't care if the system is up or not, just that you can produce the records when required, and that they are kept secure...
2
3
754
2010-01-31T19:22:45.053
infrastructure
serverfault.com
663,497
Jenkins maven java 7 permission issue
I'm getting this error when attempting a Maven build in Jenkins, [CODE] I have follow the links and they own by root but with 777 permissions so enable for everyone to follow the link, the real file is read for everyone.. so not sure why is this happening. any tips?
Do you run Jenkins manually or via service? It's not recommended to run it manually via [CODE] but with [CODE] . When you manually start, it'll change owner to user which started [CODE] via [CODE] , service runs under user:group [CODE] . Default path for service Jenkins (Debian/Ubuntu) should be [CODE] and everything i...
0
1
4,587
2015-01-29T18:11:16.747
pipeline_ops
serverfault.com
156,670
Script to turn off SQL agent when Primary role change to Secondary in AlwaysOn - sql2014
Thanks for reading, here is what i need to figure out: Below script is what i think might fix my issue. I know how to do them individually, but i want them to run as whole.I'll use them in a job or automation in case if the databases on my AlwaysOn Availability group is not a primary, then the sql agent or agent XPs sh...
We use a 'Primary checker' on all of our agent jobs on both nodes as Step 1. It validates that the DB is, in fact, the primary. [CODE] We then set the on failure action for this step to 'quit the job reporting success', which eliminates job failure alerts and allows it to fail silently on the first step if it isn't the...
-2
2
1,861
2016-11-29T14:48:44.143
database_errors
dba.stackexchange.com
490,507
Setting up a Godaddy SSL on CentOS?
I've never set up an SSL on Linux before, but have a general idea of how it works. Server specs below if it helps: Server: CentOS Linux 6 Workstation: Windows 7 So, I have 4 domains all of which share a single Magento installation and IP address. Assume one of my domains is "mywebsite1.com" I am trying to enable SSL ju...
You have a bunch of [CODE] entries that don't have a port number defined. Thus, as your [CODE] output showed, the definition is being applied to all listening ports. Define a port number for each of those [CODE] s.
1
3
4,347
2013-03-22T16:12:15.147
infrastructure
serverfault.com
102,737
Alternating usernames while connecting to mysql database
My server has a max_connections value of 400 and a max_user_connections of 250. Since I am always connecting with the same user name, my effective max_connections is 250 instead of 400. To solve this, I though to connect with one username 50% of the time, and another username 50% of the time: [CODE] My question is, are...
I would opt to increase the number of connections instead of owning two different users/configurations in the same host with same privileges. Unless, there is a persistent connection, php itself will close the connection explicitly even though you do not close them yourself.
0
0
88
2015-05-28T23:32:48.280
database_errors
dba.stackexchange.com
279,808
Test and deployment environment design for small team
Question is about organizing dev environment for the web development. There is 2 things to deploy: web site and database schema We use SVN to keep track of source code We use RedGate tools to generate migration SQL and to version-control database schema. It is important to have fresh copy of data in our dev environment...
This is a difficult problem. You can try to solve this by using feature branching - each new feature is developed in its own branch independently from the other features. You can then have "test" branch where all of these feature branches are merged so that customer can test all features at the same time . When feature...
0
0
156
2015-04-22T01:52:32.067
database_errors
softwareengineering.stackexchange.com
207,928
Is it possible to represent mutation of object-graph efficiently with immutable states?
I am practicing using of immutable object in C++. My personal goal is representing generic object graph (in heap) with sequence of immutable graphs. Building the multi-version graph itself isn't that much hard. The problem is performance. Brute-force versioning needs full copy of graph, and this was not acceptable. I t...
What you are looking for is called a Persistent Data Structure. The canonical resource for persistent data structures is Chris Okasaki's Book Purely Functional Data Structures . Persistent data structures have gathered interest in recent times due to their popularization in Clojure and Scala. However, for some strange ...
15
14
2,277
2013-08-12T01:23:28.827
api_errors
softwareengineering.stackexchange.com
91,281
Splitting a result row into multiple rows
I have the following query: [CODE] which gives me the following output. [CODE] But for some code I am working on, I need each row to be split into four rows and add a string identifier to indicate the type of row, like this: [CODE] How can I accomplish that by tweaking my query -- OR by creating a query based on the Vi...
As Mark mentioned, UNPIVOT would be a good choice here. I often find it's easier to throw the original query into a temp table then unpivot that. You could use that approach, CTEs or views depending on performance. All the datatypes need to line up for it to work, so I'm casting everything to [CODE] in my example, some...
1
2
9,587
2015-02-06T10:02:26.933
warehouse_errors
dba.stackexchange.com
889,826
Mount a hardware RAID in Ubuntu 16.04 LTS
I added a hardware RAID to my server. It was configured with the LSI-MR9361-8i as a 87TiB RAID 10. [CODE] returns: [CODE] When I go to mount /dev/sda with [CODE] I get the following error. [CODE] Obviously, I want the 87TiB, but what is happening here? I should be able to mount this quite easily. Thanks.
You first have to create a filesystem on the block device before you can mount it. For example: [CODE]
2
1
4,425
2017-12-28T02:36:57.423
infrastructure
serverfault.com
639,697
Secure Domain.nl , Alias of SSL Certified Domain.com not working with .com's SSL Certificate
I have a .com site that is https with a Comodo certificate via Dreamhost. I also have https://cdn.domain.com with a unique ip address to make it play nice with MaxCDN. The site is run in two languages with WPML (WordPress Multilingual Plugin) and .nl is an alias (Dreamhost calls it site mirroring ) to .com. WPML makes ...
How should the client (browser) know, that .nl is an alias of .com? Because this is not defined anywhere you need to explicitly specify this by having this information inside the certificate, that is use a certificate which is valid for all your domains you own at the same time.
0
2
233
2014-10-26T07:02:47.467
api_errors
serverfault.com
830,636
Cannot install openjdk-8-jre-headless on Debian Jessie
This Friday I saw that I had 2 held back packages for some reason when I ran [CODE] , so naturally I did what any inexperienced sysadmin would do and uninstalled the packages in the hopes that I could simply re-install them and the problem would be solved. Little did I know, I just made the situation worse. When I trie...
This worked for me: [CODE] REF: https://unix.stackexchange.com/questions/342403/openjdk-8-jre-headless-depends-ca-certificates-java-but-it-is-not-going-to-be
30
35
68,999
2017-02-04T22:32:40.440
database_errors
serverfault.com
105,101
Implementing emailing (bulk & event based) features for my website
For my upcoming social networking website, I am looking for suggestions on the best way to implement emailing. Here are some of my requirements and constraints: Requirements: - Should be able to send emails based on events (new registrations, change password, etc.), promotions (advertisements based on user consent), bu...
To me, this seems like more of a StackOverflow question, but i'll give you some hopefully useful information anyway. Send plain text emails only, and avoid using any special characters. This will ensure that your host, and the recipients host will block as few emails as possible. Just take a look at the emails the majo...
0
1
211
2010-01-21T17:29:01.397
data_quality
serverfault.com
321,927
Receiving error "Local collection types not allowed" while working with associative arrays
I have an input parameter with this format [CODE] , what I want to do is to declare an [CODE] with a variable size (by this I mean the input parameter might be like [CODE] , so the size is not fix), separate the items (0,1,2,3,4) and store them in an array of numbers. Below you can see what I've done so far : [CODE] an...
[CODE] works only with queries that return a single row, and it can collect only scalar types. Your query returns multiple rows, and [CODE] should be used: [CODE]
0
1
362
2023-01-10T11:27:37.613
warehouse_errors
dba.stackexchange.com
135,979
Installed SQL Server 2008 and now TFS is broken
My W2K3 server was running TFS 2008 SP1, SQL Server 2005 Development edition. I installed SQL Server 2008 Standard. I installed it while leaving SQL Server 2005 alone. Upgrading was not possible due to the differences in editions of the SQL Servers. Now TFS is broken. On a client computer, if I go Team -> Connect to Te...
We just did this in house but this was not the recommended approach that we found when we researched the method. In order to move from SQL 2005 to SQL 2008 you need to do an in-place upgrade because you cannot change the hostname of the SharePoint database server AND you need some of the sysmessages entries from the ma...
2
1
1,629
2010-04-26T18:04:36.730
database_errors
serverfault.com
28,689
Security permission to only read SSAS Cube with Excel
I have an SSAS database set up on a SQL Server 2008 server. I have a Role set up with a group of users that I want to be able to access the Cubes in that database. I set up "Read definition" and "Read Access" wheverever it says, but that didn't seem to work. The users were able to open up a pivot table that I had previ...
In order for a specific role to have permissions over a cube data you have to specifically grant cube permissions to that role. That can be done using the Cube tab in the role properties page: in SSAS -> Databases -> Your db -> Roles -> your specific role -> Cubes tab. You can assign specific permissions for: Access - ...
4
6
7,677
2012-11-14T21:28:53.627
database_errors
dba.stackexchange.com
75,487
Lower performance on newest servers
We have several db servers on production, 4 of them with very similar hardware configuration. Dell PowerEdge R620, only difference is that 2 newest ones (bought and configured 3 months ago) have RAID controller v710, 256GB RAM and CPU is 2 physical Xeon E5-2680 2.80GHz. Old ones (bought and configured about 1year ago) ...
This image says it all. Thanks Kin for pointing out your question and related answers. I've learned a lot in the process. By looking into your detailed question I thought on doing the same, comparing execution plans of our heaviest query...and voila!! The issues was a job that was supposed to be executing was already c...
8
1
242
2014-09-02T13:31:49.527
pipeline_ops
dba.stackexchange.com
73,375
"/phpMyAdmin/index.php was not found on this server" error
I am trying to run phpmyadmin on ubuntu 9.04 I installed phpmyadmin through apt-get install and configured it to use apache-2 php files can be run correctly mysql server is set up properly I can't figure out what's wrong... Can somebody help?
run [CODE] and use your web browser to go to http://server.address/phpmyadmin/ to be on the safe side - configure it manually to one non-default vhost and even better - set apache rules to limit access to it only from trusted subnet.
0
1
3,558
2009-10-11T09:18:53.757
database_errors
serverfault.com
460,009
Netgear VPN LAN2LAN address translation
Here's my question: I have set up a VPN IPsec LAN2LAN (or site2site) with the following parameters: local subnet: 10.178.51.64/27 remote subnet : 10.174.0.0/16 The vpn tunnel comes up correctly but the problem is that I can't ping or send any data to the remote subnet machines. That's because my 'real' subnet is 192.16...
In order for a site2site VPN tunnel to work correctly you typically have two choices to setup the tunnel. First, is route based. You create the tunnel between two WAN interfaces and then setup routes in the firewall that says "to get to this LAN subnet go out the tunnel". Typically you still need to specify a policy on...
2
1
1,543
2012-12-21T13:43:58.617
infrastructure
serverfault.com
148,383
Users lose access privileges every night
I'm having a problem with a WSS 3.0 instance where users keep losing their upload access rights every night. Users can always enter the Site involved and can browse lists, document libraries etc. just like normal, but they get an error when trying to upload documents, getting access denied error. This can be fixed by a...
I've only seen this happen when there is custom code accessing SharePoint and is removing the users. Check the server logs in inetpub to see if a person or service account is actidentally removing people. WSS will not just remove people at random, it has to be told to do so. Also check your timer jobs in the Central Ad...
1
1
2,429
2010-06-02T23:41:02.100
infrastructure
serverfault.com
128,914
Data warehouse server. How do you calculate RAM/CPU specifications?
I am trying to write a spec for a data warehouse server for our planned data warehouse upgrade. As we run virtual servers on VMWare hosts we have the ability to add or remove resources as necessary. In the past we've incrementally added RAM and CPU as required. As our demands have increased we've lobbied for more resou...
Great question, and I did a session about this at TechEd a few years ago called Building the Fastest SQL Servers: https://channel9.msdn.com/Events/TechEd/NorthAmerica/2012/DBI328 In it, I explain that for data warehouses, you need storage that can provide data fast enough for SQL Server to consume it. Microsoft built a...
8
9
26,372
2016-02-11T01:28:01.870
database_errors
dba.stackexchange.com
763,166
Why can't I view or add SQL and Network Performance Counters in Performance Monitor?
I'm trying to add the below Performance Counters to a user-defined data collector set in a Performance Monitor on Windows Server 2012 R2. I can see them when I dump them to a file (eg typeperf -q -o "C:\Temp\counters.txt"), but I'm not able to see them among the Available Counters of the Data Collection properties. SQL...
I ended up using the command-line tool typeperf. You can use it to extract all [CODE] I pulled the counters I wanted from all_counters.txt and then I used the below to capture these pointers into a log file [CODE]
1
0
168
2016-03-11T14:07:50.100
database_errors
serverfault.com
561,081
Postfix bad notify parameter syntax
Please bear with me as I'm not an expert admin I have a linux mail server that has been running for a couple of years and now all of a sudden a certain user is unable to send emails. They immediately get a response from "System Administrator" saying [CODE] This only happens for this user and only on their computer. It ...
I've been reading and it appears that NOTIFY=NEVER can not be mixed with any other NOTIFY commands For reference, it defined in RFC 1891 Section 5.1 A RCPT command issued by a client may contain the optional esmtp-keyword "NOTIFY", to specify the conditions under which the SMTP server should generate DSNs for that reci...
1
1
1,040
2013-12-13T04:16:28.280
infrastructure
serverfault.com
166,109
Apache 2 on Ubuntu returning 500 with no known cause?
NOTE: This question has been resolved ! Please see below for the solution in my case if you are having a similar issue! Background: This is a PHP/MySQL based, database driven application that makes heavy use of AJAX, and nearly all requests to the server occur this way. The requests are GET requests in this instance, a...
Solution It turns out, that although PHP 5.2 introduced the DateTime object, the DateTime->diff() method did not become available until PHP 5. 3 . In my case, a conditional block of code would execute depending on the contents of some results. The results causing the 500 were invoking the part of the code using DateTim...
1
1
1,607
2010-08-01T20:28:21.117
data_quality
serverfault.com
112,626
SkLearn DecisionTree doesn't include numerical variables after one hot encoding pipeline
I'm trying to fit a dataframe with SkLearn DecisionTree with the following code. But I get a error [CODE] . The DecisionTree seems to have only fitted categorical features after transformed by onehotencoding, not the numerical feature. How can I include the numerical feature in the decisiontree model? [CODE]
It's probably due to [CODE] 'remainder' parameter. If you see on the docs , [CODE] will drop the features that wasn't specified. remainder{‘drop’, ‘passthrough’} or estimator, default=’drop’ By default, only the specified columns in transformers are transformed and combined in the output, and the non-specified columns ...
0
0
56
2022-07-13T21:24:06.500
pipeline_ops
datascience.stackexchange.com
127,858
How does BTRFS compare to ZFS?
I am considering which OS and filesystem to use on some new servers I have and am considering either Free BSD with ZFS, or Linux with BTRFS. The programs I have run on both systems, so the only issue is reliability of the filesystems and performance, etc.
As of April 2010 Btrfs is still in development and not ready for production use (really, it isn't - I have been bitten experimenting with kernel 2.6.32). Feature-wise btrfs contains some but not all of ZFS features. Most notably RAID-Z and data deduplication are missing. What does work with btrfs is snapshotting, copy-...
22
16
15,018
2010-03-30T20:45:48.263
infrastructure
serverfault.com
354,236
Traffic routing with unreliable connections
I have a group of offices that are all connected to the main office via DSL links on the far end to save costs. (We're a non-profit, don't ask) We've historically had noticeable problems with the link-up between the ISP that handles our remote sites and the ISP that handles the T1 lines our OpenVPN runs on, so those li...
OpenVPN should be able to execute commands upon the creation and termination of tunnels. Instead of having this job run in a cron, you can have the DNS record shuffling triggered by these events. Then, you just have to monitor something over the unreliable link to know when to restart the VPN tunnel.
10
3
467
2012-01-27T13:47:23.407
infrastructure
serverfault.com
318,050
The finer points of writers locking each other out under the snapshot isolation levels
The read committed snapshot and snapshot isolation levels in SQL Server do away with most locking except one: A writer still locks out other writers . The documentation tiptoes around saying as much and subsequently doesn't document anything else which would be very interesting to know: Is it really ever just a modifie...
General rules about locks and lock escalation: Row level locks can get escalated to Table level (or Partition level) locks. So, it is possible for unrelated rows to be locked, under certain circumstances. Those circumstances are documented here . Also note that lock escalation can be disabled with the [CODE] table opti...
3
5
436
2022-10-10T20:11:17.817
database_errors
dba.stackexchange.com
257,661
SQL Agent running Ola scripts: all fine and perfect but a differential backup on a specific database fails
I've two SQL servers with multiple DBs. On both, I've set up maintenance tasks using the Ola procedures. One DB server is Enterprise SQL with Agent and the other is Express using Win scheduler to run procedures. All database backups are done towards a network share (QNAP NAS) with plenty of space (800Gb with 750GB stil...
For the help of everybody I post the resolution I did found to my problem. Scanning other forums I noticed that this I/O error 112 - "not enough space on disk" is fairly a common issue, erratic but not so infrequent. I read a post where the issue is described to come from the sql backup algorithm which, before starting...
0
1
78
2020-01-17T14:09:59.883
database_errors
dba.stackexchange.com
127,907
Help with Rewrite rules
I was wondering what a rewrite statement that looks for this situation: I want to have multiple users on my server. Each user can have [CODE] like sites in their directory. For example, they just make a directory like [CODE] in their home directory, and it's hosted. The problem is I don't know if [CODE] can do this, or...
[CODE] is indeed the directive you want. This site has some details , including some very important caveats about Bad Things that can happen with PHP and the [CODE] value but the basics: [CODE] should send you to [CODE] if the browser requests foo.com . You should also spend some quality time with the Apache Manual's m...
1
1
87
2010-03-31T01:04:15.723
infrastructure
serverfault.com
1,143,576
Devices keep getting IP from previous VLAN
Some devices (printers and laptops) that are moved to another building with a different VLAN will not release the IP address assigned. I noticed this first when a laptop reported no network connectivity, but upon closer inspection noticed that it did get IP, network mask, DHCP, and DNS info from the DHCP server, but fr...
It seems that when they created superscopes it really messed up the DHCP releases and assignments. This other forum post was helpful. After they removed the superscopes, everything went back to normal.
1
0
624
2023-09-12T19:57:12.970
infrastructure
serverfault.com
197,953
What is object ID -710746692?
I am using SentryOne, and have what I believe to be a deadlocking process. It shows it with a database id of 32767 and an object id of -710746692. I looked in sys.databases and sys.objects and didn't find anything for these. I did a search for the Database ID and believe it to be the hidden Resource Database that sql s...
As Erik mentioned, 32767 is the resource database, and it is hidden from the [CODE] view, but that doesn't mean the object you're after lives only there - in fact most system objects are in all databases. To determine the object, we just need to pass your [CODE] to a query against [CODE] (rather than [CODE] ): [CODE] A...
4
8
2,048
2018-02-14T22:17:17.247
database_errors
dba.stackexchange.com
97,696
Percona MySQL 5.6 databases ignoring key length at constrait creation
We have a 3 servers running Percona MySQL 5.6 in a Master/Master configuration that are all reporting errors on key length, either too long or not specified. The structure of the databases is all generated from a mysqldump on existing standalone MySQL 5.6 databases that do not report these errors. Key too long error: [...
By default, an index key for a single-column index can be up to 767 bytes – MySQL Reference Manual The size of your index is: [CODE] The calculation may not be 100% exact, I am not fully sure about the length requirements, but I will assume it is not a bug. The reason why it may be working initially could be because yo...
1
0
623
2015-04-13T11:42:39.903
database_errors
dba.stackexchange.com
718,603
MySQL querries slow down during upload, slow internet connection
I have a bit of an issue with my SQL queries. Basically whenever someone within my network uploads something (to gmail, dropbox anything) my SQL-queries become approximately 20 times slower. Sadly, where I am, we can only get a 6mbit internet connection, so that may be part of the problem and our upload-speeds are part...
Sounds like Qos (Quality of service) needs to be implemented. Depending on where your OpenVPN set up is configured (local, device behind the router, or on the router itself) and if the other people saturating the connection are also using the VPN connection, either your router or VPN device will need to have QoS applie...
-2
3
810
2015-09-02T16:30:17.310
database_errors
serverfault.com
749,351
Tomcat7 - slow startup
I have a problem with very long startup of Tomcat7. It started suddenly and logs don't reveal anything - when I type 'sudo service tomcat7 start' it says OK and logs are silent for 10-15 minutes. Then my app log says: INFO [2016-01-14 17:38:36,336] (FrameworkServlet.java:initServletBean:463) - FrameworkServlet 'Spring ...
I found out what was the problem. App developer was using some old server as one of the data sources and for some reason app was waiting for 15 minutes before the timeout, without any warning in the log.
1
1
748
2016-01-15T10:51:52.010
pipeline_ops
serverfault.com
732,655
Removing LDAP from CDP & AIA in a Microsoft PKI
A default installation of a Microsoft PKI running Windows 2012 R2 includes LDAP URL's within CRL distribution points (CDP's) and Authority Information Access (AIA). I want to issue certificates outside of my organization but I don't want an internal LDAP address being included with my certificates. Is there any reason ...
It is recommended to NOT HAVE LDAP URLs in the CDP/AIA extensions. Instead it is recommended to have one internally and externally accessible and high-available HTTP location. Edit 31.10.2015: Official Microsoft recommendation is written in Certificate Revocation Checking in Windows Vista and Windows Server 2008 whitep...
3
4
6,405
2015-10-29T23:38:57.327
infrastructure
serverfault.com
707,683
Python3 virtualenv: ImportError: no module named 'ConfigParser'
I'm working on OSX and I'm trying to create a virtualenv with Python3, but I'm getting an error: [CODE] It looks like it's looking for [CODE] , which has been renamed [CODE] . Is that right? What can I do? I've tried to update virtualenv with [CODE] but it hasn't helped.
I had a similar issue, and I'm not certain if this will solve you problem, but for me it was due to a new version of python-future which jumped the queue in my path (ahead of the core python [CODE] ) and then ran into issues. What solved the problem for me was just removing the [CODE] file from that directory, since th...
3
2
17,186
2015-07-22T16:01:28.517
infrastructure
serverfault.com
75,634
how to activate "Cut [Command+X]" option in Mac?
I am new to OS X and one thing that is constantly bugging me is the fact that I cannot move any file in Finder. I have to copy the file and then delete the file at the source. Can anyone help me out with a solution?
If the file you want to move remains on the same volume, just drag the file from one folder to another. If you want to move the file to another volume, press and hold the Command key while dragging the file from one folder to another. Alternatively: Highlight the item(s) to be moved, and type Command-C (or Edit>Copy) a...
1
3
15,634
2009-10-18T11:20:10.007
infrastructure
serverfault.com
888,145
VMware vCenter - Is rebooting gonna break the cluster
We are currently working on updating our infrastructure to the latest versions of everything but now we are stuck with vCenter. I would like to know if it is possible to update the VM appliance then reboot it without disrupting the vSphere Cluster we have. Will it continue to work during the reboot or every VM host wil...
The cluster and VM Guests will continue to run just fine. Obviously management will be offline and anything that relies on the vCenter (backups that talk to the vCenter, etc) will not work until it comes back online. Some functionality will be impaired or not function as well (DRS for sure) until the server is back onl...
3
5
151
2017-12-14T14:35:52.587
infrastructure
serverfault.com
352,677
Strong Cryptography in Solaris Zone
I'm trying to setup a Kerberos KDC on a Solaris zone but ran into a bit of a problem with the Cryptographic Framework on Solaris 10 even though the packages for strong encryption (SUNWcry & SUNWcryr) are installed the stronger keys seem only to be available in the global zone: Global-Zone: [CODE] Nonglobal-Zone: [CODE]...
I got a solution: (provided by Oracle Support) This is apparently a bug in the packaging of SUNWcry/SUNWcryr, which can not be fixed during the Solaris 10 release cycle (as said before it is fixed for me on Solaris 11). Bug report examples: 6534506, 6759852 Workaround: replace pkcs11_softtoken with pkcs11_softtoken_ext...
3
1
1,839
2012-01-23T11:27:47.840
infrastructure
serverfault.com
255,879
shutting down tomcat process smoothly in Linux
This has been bugging me for a while. In my JSF development cycle, I do a lot of tomcat reload and sometimes to the point of restarting tomcat. I notice that at times, shutting down tomcat using shutdown.sh doesn't work, because when starting it via startup.sh says the address is already in use for port 8080. And in th...
You can avoid 2 commands by simply running: [CODE] to gracefully kill process matching with text catalina . And to check whether catalina process is still running you can then do: [CODE] And finally to kill with brute force try: [CODE]
6
6
20,045
2011-04-05T04:55:41.383
infrastructure
serverfault.com
319,351
TestFlight version numbers
If I update an iOS app as a result of tester feedback during TestFlight, should I be updating the "marketing" version number, or just the build number? My current (initial) version number is X.Y.Z where Z is currently 0 and X.Y are out of my control (because they relate to the version of the upstream non-iOS product th...
Every release to customers should have a new version number. Every release to testers should have a new build number. Customers will think something is wrong if version numbers are missing, so a sequence of version numbers could be for example 1.3.0, 1.3.1, 1.3.2, 1.4.0 etc.
0
1
1,778
2016-05-24T14:53:30.967
api_errors
softwareengineering.stackexchange.com
255,275
Are mutliple database calls really significant with a network call for a web API?
At one of my employers, we worked on a REST (but it also applies to SOAP) API. The client, which is the application UI, would make calls over the web (LAN in typical production deployments) to the API. The API would make calls to the database. One theme that recurs in our discussions is performance: some people on the ...
But is that really important? Consider that the UI has to make a network call to the API; that's pretty big (order of magnitude of milliseconds). Databases are optimized to keep things in memory and execute reads very, very quickly (eg. SQL Server loads and keeps everything in RAM and consumes almost all your free RAM ...
21
30
42,100
2014-09-03T15:42:22.943
database_errors
softwareengineering.stackexchange.com
1,143,331
Append prefix to caddy route
I want to achieve the opposite behavior of “uri strip_prefix”: I always want to add a /foo in front of the url. e.g. [domain] → [domain]/foo [domain]/a → [domain]/foo/a I'm using Caddy version 2.
Found it: it's just [CODE]
0
0
184
2023-09-08T14:49:32.140
infrastructure
serverfault.com
154,190
Execution Plan StatementText contains incorrect syntax
I have run an execution plan with management studio 2014 on mssql 2008 R2. To be able to better read the Selectstatement i right-clicked the plan to view it in xml. I noticed that some statements seem to contain invalid charachters [CODE] . At least if i copy them into a new query window i get an invalid syntax error [...
Community Wiki answer generated from question comments These are not "invalid characters". This is a side-effect of formatting the plan as XML; some characters have special meaning in XML and must be encoded. To read the query text: Save the XML plan as a [CODE] file Reopen it in SQL Server Management Studio Right clic...
0
2
275
2016-11-03T20:01:50.830
database_errors
dba.stackexchange.com
168,808
debian: upgrade from etch to lenny fails
The error message is: [CODE] How can I solve this problem? I'm doing [CODE] ouptput of dpkg -S add-shell: [CODE]
Short answer: first upgrade from unstable etch to stable etch, then from etch to lenny. It looks like you didn't have an up-to-date etch installation, according to the discussion for bug #458452 . Upgrades are supported from one stable release to the next, and between successive states of an unstable release (including...
3
3
242
2010-08-10T09:01:32.980
infrastructure
serverfault.com
76,202
Windows domains, 2003 SBS, Exchange and AD in multiple sites/locations
We're currently running Win2K3 SBS as the domain controller with an additional Win2K3 server for hosting files and not really doing much else. We are probably looking at expanding to other offices in the near future. I'm thinking of having a central domain controller with a win2k3 server at each site replicating the AD...
Sounds like a pretty straightforward deployment. It sounds like you've already created your domain. Since you're using SBS, be aware that the existing SBS machine will be forced to hold all the Active Directory flexible single-master roles. That's probably not a big deal, but the 75 user limit in SBS might be. While SB...
2
4
674
2009-10-20T02:14:27.263
infrastructure
serverfault.com
1,147,727
Get Apache to serve example.com from a directory and all subdomains *.example.com to be ProxyPass / http://localhost:8050
Running Apache 2.4.58 I need to get Apache to serve example.com from a directory and all subdomains *.example.com to be ProxyPass / http://localhost:8050 (so they can be served from another web server dependent on the subdomain). I can currently get it to ProxyPass absolutely everything to the other localhost server or...
You need two virtualhost for this, serveralias just work as alias of servername, so you cant define in that way, you can read documentation here: https://httpd.apache.org/docs/2.4/vhosts/name-based.html Try this: 1 Virtual host for your main domain: [CODE] And another one for your wildcard subdomains: [CODE] Remember l...
0
1
101
2023-11-12T18:05:45.393
infrastructure
serverfault.com
323,820
Netfilter/iptables - Accept connections from an DNS CNAME
So I'm trying to accept connections on port 80 only from those IPs whose reverse DNS has a CNAME alias like, for example, [CODE] : [CODE] resolves to [CODE] and [CODE] then accept the connection. Any tips?
[CODE] has deal with IP addresses and subnets, not with DNS records. You have to write script, which will perform full zone transfer (something like [CODE] ), parse obtained zone file to get all CNAMEs from it, resolve them to IP addresses and add rules to iptables. Then you should place this script in cron.
0
1
1,053
2011-10-21T23:38:52.780
infrastructure
serverfault.com
987,185
Resize-Partition errors after first execution in DSC script
I'm trying to use the following piece of code in a powershell DSC script. It runs fine on first execution but on following executions it throws an error as it's already expanded. Here's the command: [CODE] What's the best way to get my script running with no error on subsequent runs?
You can add the following parameter to Resize-Partition: [CODE] it's a common parameter and allows you to choose how Powershell responds to errors with the cmdlet
0
0
162
2019-10-08T12:32:53.070
infrastructure
serverfault.com
336,281
Can a user story have a child user story?
I'm working on an update of an existing medical software and I defined user stories together with some end users. If you're not familiar with medical environments: A doctor usually has multiple patients. Each patient has multiple cases (broken leg, skin disease, etc). In medical terms, a case will be closed once the pa...
I think you're over-thinking this. What is the ultimate aim? Are you trying to deliver a quality outcome for the business, or are you trying to follow a methodology to the letter? Now, in a sane world, the answer would be obvious and I would simply advocate that you specify your requirements in whatever way describes t...
5
4
2,457
2016-11-18T03:14:58.040
api_errors
softwareengineering.stackexchange.com
91,488
shrink after archiving, is this that bad too?
I have a database which grow to 20 GB, after archiving some data, the real size of tables is just 5GB. Backup script does save a copy of the backup to a different location. Moving 20GB or 5Gb does make a difference, so I would like to reduce the physical size, but everywhere I read to do not shrink if I don't want to a...
What you are seeing on net is mostly a copied advise where people actually want to say that "please don't make shrinking data file or log file a daily routine operation". Had it been so bad Microsoft would have removed it but it is still there and even most experienced DBA's and developer use it but they are aware abou...
6
7
1,421
2015-02-09T11:45:43.260
database_errors
dba.stackexchange.com
219,345
Upstart multiple instances of service not working
I started playing with MongoDB on Lucid. Now I would like to run a DB and Config server on the same box. They both use the same binary to launch, but with different config files and running on different ports. All directories for log and lib is split so one goes to mongodb and the other to mongoconf. Each process can b...
For you intrepid sysadmins that find this, upstart doesn't just test the paths, it appears to test that the inode is different. This means that Hard-linking the file is out of the question too. the only way to run the same binary multiple times is to make multiple copies.
3
2
1,565
2011-01-06T10:51:50.307
database_errors
serverfault.com
337,321
CouchDB/xulrunner hang on Ubuntu 10.04 LTS
I have an Ubuntu 10.04 LTS box setup as a Chef server. This was all working fine until the first time the box was rebooted, after which the following three (possibly unrelated) things happened: chef-client attempted to install updates via. apt, which failed The Chef webui stopped working (connection refused/timeout) Co...
I eventually worked out that it was another package on this system causing a conflict with xulrunner. Rebuilding the box minus the conflicting package solved the problem.
0
0
346
2011-12-03T13:54:03.927
api_errors
serverfault.com
1,057,412
How to automate certbot certificate renewal on Ubuntu 20.04
I'm running certbot on Ubuntu 20.04 in AWS, installed as a snap package. I'm not sure if certbot renewal is running properly. I'd appreciate some help working out how to best get it working. This is a new server, which I turn on and off while I'm getting it ready for production. It runs about 8 - 10 hours a day at the ...
Since you're using snap, it's worth double checking to see if there's a second timer in place (other than certbot-renew) which is implemented by snap, and does do the renewal properly. Here you can see I have both a mask to make sure that the normal certbot.timer is disabled, but I also have a timer installed by snap: ...
5
7
19,828
2021-03-17T20:52:08.520
infrastructure
serverfault.com
40,215
Send email on behalf of clients
We're a communications company primarily doing printing of statements / utility bills, then mailing them out in the post. A few clients have asked for e-Delivery. Pretty much take the print output as a PDF, and instead of printing and mailing, email it as a PDF attachment. Whats the best way to send out these types of ...
WIth the proper use of e-mail headers it is possible for you to setup and use your own mail server, but send the e-mail message with the "appearance" of coming from your customer. This is not a spam tactic. This is a proper use of several e-mail message headers for this purpose. [CODE] By specifying both the sender and...
5
8
5,451
2009-07-14T00:26:21.347
infrastructure
serverfault.com
699,649
Exim Blacklist -> *domain doesn't work
I have a manual filter in the exim. It was done this way: In section: "CONFIG". I put: [CODE] In Section: "PREROUTERS". I put: [CODE] So I put a host in each line of the file /etc/eximblacklist. Works perfectly, the emails are blocked. But sometimes i need to use a "wildcard". For example, I like to block all senders o...
Use wildlsearch instead of lsearch. [CODE] See here for more info.
0
0
2,326
2015-06-17T12:30:16.207
infrastructure
serverfault.com
206,900
Batch-script implementing 2 ODBC-connections
Thanks for all previous help! I have a question regarding av script. My computers is all XP, and needs the following when I do my thing : I have 2 ODBC-connections (towards MS-SQL-DB), which I have a username / password to create a connection to. Does anyone have any advice on how to accomplish this? Either in a batch-...
I'll recomend to use Windows Scripting (WSH) or Windows powerShell. The reason are: you will probably get more use for that tecnology in a Windows enviroment than of python. (I like python but this is true) It's included in all Windows Version (the scripting tecnology). You can do a lot of things in a easy way... check...
0
1
1,639
2010-11-29T09:07:45.083
infrastructure
serverfault.com
1,035,692
Unable to connect to nginx from the very machine itself
I have no problem to connect to my nginx web server contents from remote machines using url like [CODE] but when I try it inside the machine itself (or other machines in same network), the connection times out. If I replace [CODE] with [CODE] or local IP address, it returns 404. My vHost file is like below: [CODE] PS :...
If it is returning a 404 you are in fact connected to the server. But it seems if your virtual host is not configured to answer to this hostname/ip. If there should only be one [CODE] block you could use the special value [CODE] (underscore) to let it answer for every name available or add [CODE] to your [CODE] s.
1
0
121
2020-09-29T08:07:31.430
infrastructure
serverfault.com
273,949
deleted postgres files on ubuntu
I was cleaning out some files in [CODE] , and accidentally deleted the directory named [CODE] . Now nothing works. Here is the error I get when I try to run [CODE] as the [CODE] user: [CODE] What did I break, and how do I fix it? Other info: This is a scratch database, so I am not very concerned about recovering old st...
That depends on what you deleted: was it the database data or the database software? Since [CODE] still works, I suspect that the database software is still there, and you deleted the data. Then the only way to recover is to restore from a backup. No, there is no way to "undelete" data.
0
1
361
2020-08-18T20:18:32.807
warehouse_errors
dba.stackexchange.com
952,606
Batch Script for service restart and alerting over email
Please let me know what i am doing wrong in my code. I am trying to check a set of Services starting with specific set of name. And triggering an email if service is in stop state. I have made a loop where in it will traverse. But i am not able to end that loop. [CODE]
You may be interested in sending an email even if the [CODE] command fails. Then, your script could be improved as follows (given merely a template): This approach applies [CODE] command (call a subroutine) . To exit the subroutine specify [CODE] : [CODE] Read the Redirection article for explanation how [CODE] and [COD...
0
0
606
2019-02-06T14:29:11.563
pipeline_ops
serverfault.com
235,504
Branch per feature: What are the actual benefits (and risks)?
I've read quite a lot of posts lately about different branching strategies (e.g a lot of links from To branch or not to branch? ), and while almost every article explains on how to do this or that strategy they rarely explain the why. Currently our team is investigating whether or not to switch to "feature branches". W...
The advantages are obvious - you work on features independently, and so they never affect anyone else's work until it comes time to merge. You can do code reviews and targeted testing on the feature branch without holding anyone else up if there's a problem. The disadvantages: firstly, you do have to merge and while th...
2
3
8,878
2014-04-10T11:23:30.327
api_errors
softwareengineering.stackexchange.com
71,615
Firewalling gateways and IDS's
For IDS, I plan to have a Win 2008 server running on the gateway with the majority of roles disabled. I plan to firewall the Internet connection, but I'd also like to install Snort to work as an IDS. However, I am guessing that regardless of the Snort install of the promiscuous Winpcap driver, I won't be able to monito...
Usually you keep the IDS on the inside of the firewall to keep the usual "noise" of the internet out of your IDS logs. There's no need to have an alarm for a normal portscan every firewall blocks. What you want so see with an IDS (and/or block with an IPS) is all that funny stuff that passes your firewall. [CODE] Howev...
0
1
285
2009-10-06T05:30:36.577
infrastructure
serverfault.com
105,514
Leap second in Database system (Postgresql and SQL Server)
This night will be longer because of leap second: https://en.wikipedia.org/wiki/Leap_second My impact will be minimal in my case, I don't even know if I will recive some weird data like 20150630 23:59:60 . But I have monitoring systems from both windows, linux and other systems. In worst case, I will lose one second of...
Here's a description of PostgreSQL's date handling I found on the [CODE] mailing list from January 2012 : As best I can tell, that document is talking about issues that are beyond Postgres' ken. When you tell us a timestamp value is '2012-01-30 21:13:28.097017-05', that's what we store --- whether you meant it to be in...
5
5
1,648
2015-06-30T10:16:59.400
pipeline_ops
dba.stackexchange.com
815,193
Jira and Confluence remote issue No route to host
I have Jira Core (Software) and Confluence installed on same server. They are connected via application link. Problem is when i adding link to confluence into jira issue it says that page is failed to load. And there is log: /var/atlassian/application-data/jira/log/atlassian-jira.log [CODE] any ideas? thanks
It's a DNS (well, name resolution) error. Make sure they can resolve each other's host names properly - maybe they are not set to use FQDN? Or using localhost instead of hostname? Is the hostname itself resolvable? What's the URL you are giving them to talk to each other? I see this on my servers in AWS when they can't...
0
0
1,058
2016-11-16T07:59:06.293
infrastructure
serverfault.com
188,270
MySQL Error: “Table storage engine for `proc` doesn't have this option (ERROR 1031)”
I'm running into a strange problem with MySQL. Searched everywhere for a fix but cannot find anything. Running Ubuntu 14.04. I have a database running on [CODE] . I want to update this to [CODE] . I run a script that performs a [CODE] through Ruby on Rails in a [CODE] task. When I use the updated [CODE] and get to the ...
The error you got is often seen when you try to use a table option that is incompatible with the storage engine used by the table you're working on. For example, [CODE] This table option was deprecated in MySQL 5.7. It will raise an error if [CODE] is enabled. You should always run mysql_upgrade after installing an upg...
1
1
900
2017-10-11T21:57:50.240
database_errors
dba.stackexchange.com
415,476
Software Package List installed in Linux
I have RedHat Linux on which there are some softwares installed like: Standard C++ Library 33-3.2.3-47.3 WebSphere MQ Client 6.0.2.6 IBM Global Security Kit 7.0.4.11 IBM Key Management Tool 6.0 or above Tivoli Data Exchange 4.4.0.0 I want to know if there is a way to get this list by executing some command from the Com...
If you know the RPM names for all of those packages, you can use the [CODE] option to the [CODE] command to identify missing files or what has been modified since it was installed. For example: [CODE] If nothing has changed, the command will produce no output. However, if a change is detected, you'll receive a report l...
1
3
125
2012-08-08T11:42:06.377
infrastructure
serverfault.com
351,837
ldap_bind: Invalid credentials (49)
i have a problem with ldap configuration : [CODE] i deleted the contains of [CODE] ,then execute ldapadd -x -D 'cn=Manager,dc=ircoms,dc=com' -f file.ldif -W Now I get this error: [CODE] I work on fedora 15.
[CODE] indicates that 1) the password you typed was incorrect or 2) the server is configured to return [CODE] even when some other problem prevented authentication, for example, if the authorization identity does not exist in the directory database. In the 2d example, you attempted to authenticate with a bind request t...
1
1
5,690
2012-01-20T10:45:35.027
infrastructure
serverfault.com
405,092
Nice level not working on linux
I have some highly floating point intensive processes doing very little I/O. One is called "xspec", which calculates a numerical model and returns a floating point result back to a master process every second (via stdout). It is niced at the 19 level. I have another simple process "cpufloattest" which just does numeric...
I've discovered what's causing this problem. It's due to the "autogroup" feature of the CFS scheduler. If I do echo 0 > /proc/sys/kernel/sched_autogroup_enabled Then everything behaves as you'd expect. The nice 19 processes drop to near zero CPU usage when nice 0 processes are running. I'll try to find exactly what the...
6
10
5,992
2012-07-05T16:16:32.533
infrastructure
serverfault.com
103,901
how to convert pandas plot to OO Matplotlib bar chart
I am trying to convert pandas dataframe bar plot to matplotlib OO concept. [CODE] this live perfectly working and generating bar chat attached now this is my OO matplotlib trying to convert below what is wrong I am doing? [CODE] Error is :- [CODE] I understand "Height" parameter is missing but how I compute this?.
Only this line is solved the error [CODE]
1
1
548
2021-11-07T11:19:52.747
data_quality
datascience.stackexchange.com
222,457
Is it a good idea to const-qualify the fields of structure in C?
Consider the following program: [CODE] I'm not aware of anything particularly bad with this kind of design, but there might be impact when compiler is heavily optimizing the code and some considerations I'm missing. Is it a good idea to use [CODE] in [CODE] as a mechanism of write access control in such a way?
No, using [CODE] in such a way is not a good idea. By declaring your structure fields as [CODE] , you are declaring an intention that those fields will never change their value. If you then change the value after all, you are misleading both human readers of your code and the compiler. The first makes the code harder t...
11
15
24,052
2013-12-27T14:45:15.723
api_errors
softwareengineering.stackexchange.com
14,735
Why my docker container is running on swarm manager node instead of worker?
This is my docker-stackk.yaml file. [CODE] I did not specified any constraint. [CODE] if you see above rockpix is worker node. and infinity is manager. but when I started the stack the container started on manager node instead of worker node. [CODE]
A manager is able to run containers just as workers do. To prevent workloads from running on the manager, you need to include a constraint. This is different from the kubernetes model where the managers are tainted and you include a toleration to run on managers. [CODE] For more on the placement policies and constraint...
0
1
658
2021-09-25T21:49:01.760
pipeline_ops
devops.stackexchange.com
2,298
Differences in scoring from PMML model on different platforms
I've built a toy Random Forest model in [CODE] (using the [CODE] dataset from the [CODE] package), exported it in [CODE] and deployed onto Hadoop, using the [CODE] library. I've run into an issue where [CODE] scores the same data differently (in a binary classification problem) than the same model in [CODE] . Out of 20...
The difference was, it appears, due to the different implementation of Random Forests in [CODE] and [CODE] (as well as [CODE] which I tried later) with respect to ties in the tree voting - i.e. when an even number of trees are built (say, 500) and exactly half classify an application as [CODE] , and the other half as [...
2
3
360
2014-10-17T13:58:39.353
hadoop_errors
datascience.stackexchange.com
447,004
Removing 1 of 2 Exchange servers
I'm new in a company and I'm still learning exchange as this is the first time, I'm managing a system. I have been tasked to remove one of two 2010 exchange servers from my environment which are both running on Windows 2008r2 and are virtual servers. Lets call them EXVM01 and EXVM02. I do not know the technical name of...
There are a number of considerations that are beyond the scope of your question (making sure there are no orphaned public folders, for example) but, ultimately, you need to be doing a clean and orderly uninstall of Exchange from the EXVM02 server computer. Hopefully your boss didn't delete the VM but, rather, just powe...
1
1
70
2012-11-09T05:05:56.707
infrastructure
serverfault.com
153,903
Move from JSON to Protobuf. Is it worth it?
We have REST webservices that can serve XML or JSON (WCF). I'm toying with idea of implementing Protobufs. Why? PROS Less load on servers. Smaller message size - less traffic. It is easier to switch now than later. CONS Need to be implemented Going to be harder to troubleshoot/sniff messages for debugging. I can enable...
Does the business value of implementing them exceed the cost? If you implement, you need to change not just your server, but all clients (although you can support both formats and only change clients as needed). That will take time and testing, which is a direct cost. And don't underestimate the time taken to really un...
26
40
20,144
2012-06-22T15:35:27.263
api_errors
softwareengineering.stackexchange.com
438,703
Writing a growing simulation that scales
Or ways to get better run time than a nested loop? How would you design this? I hope this is the place to ask semi-vague software engineering questions. My simple simulation is like this: There is a population of X number of people. Every day, people go to work, which creates some quantity of something. After work, the...
There are a number of ways of handling simulations. I've worked on a grand total of one simulation project, but it did have a lot of lessons to be learned from the process. Properly scaling requires a few things: The abstraction is good enough (i.e. modeling a real world system by the literal interactions that happen i...
0
2
178
2022-05-19T00:41:44.007
api_errors
softwareengineering.stackexchange.com
111,296
Checking members and instantiating in properties
Consider this: [CODE] Is this a recognised pattern, or possibly an anti-pattern? I've never seen it suggested in any books, but it does come up time and time again in code I see. I think the logic of this is that _myResource is instantiated 'just in time'. To me, it seems a bit smelly. UserResource() is accessing a pub...
This is an accepted pattern. It's called lazy initialization , a creational pattern . You usually use this for performance reasons, often combined with other patterns, for example the Proxy Pattern . When resources are heavy and you don't need them right away, then this is a good and clean approach to make sure they're...
5
4
138
2011-09-28T12:16:36.813
api_errors
softwareengineering.stackexchange.com