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
62,207
Windows Permissions for Developers?
I work at a Fortune 500 company as a Windows software developer in R&D. Corporate IT is currently gearing up for a company-wide Win7 deployment and as a part of it they are looking to completely lock down admin rights on all boxes (including our dev workstations). I've been tasked to work with them to make the transiti...
Because you are going specifically to Windows 7, you should push hard to be admins on your own boxes. There are two really good reasons to keep developers from being admins: the same reason you keep everyone else from being admins, so that malware doesn't do really awful things if it happens to run so they won't write ...
9
9
2,688
2011-03-25T13:40:26.013
pipeline_ops
softwareengineering.stackexchange.com
806,775
Mailbox moves - MSExchange ResourceHealth registry key doesn't exist
Migrating mailboxes from Exchange 2010 to Exchange 2016. It's going excruciatingly slowly, likely because the old and new VMs share the same relatively slow disks, and it keeps getting throttled. Everything on the internet says to go to [CODE] and set [CODE] to 0, to disable the throttling. I've found plenty of posts f...
Instead of changing the registry value you mentioned above I would try to "tune" the Mailbox Replication service. As the service is responsible for moving mailboxes (in your case from Exchange 2010 to Exchange 2016), importing and exporting .pst files, and restoring disabled and soft-deleted mailboxes. What I changed i...
0
0
2,974
2016-10-03T13:51:47.887
infrastructure
serverfault.com
10,657
Call a stored procedure from a trigger
I have created a stored procedure in mysql using the following syntax. [CODE] FYI I've greatly simplified the stored procedure but I do know it works without any issues. What I'd like to be able to do is set up a trigger from usergroup_comments that works like this. [CODE] But for some reason every time I do mysql thro...
So it turns out this is the issue that plagued me for a few hours believe it or not. I can easily define a procedure called, sp_set-comment_count. However when calling said procedure, it doesn't work the same way. CALL sp_set-comment_count (I can only assume this is because the server interprets the - as a minus). I ha...
20
9
105,145
2012-01-13T18:49:20.733
database_errors
dba.stackexchange.com
675,520
nginx can't execute many requests
I have a question about nginx tune. I have an application which I want execute 200 times every second. I created bash file and used wget with bqO switch for execute. But it has a problem. When the number of requests is greater than 100. nginx not responses to another request and stuck into loading until one request don...
You seem to be obsessed with nginx tuning while not even knowing which part of your architecture is the slowest. It's very unlikely that nginx would be the first thing to tune. Put your fastcgi targets in one upstream block and append [CODE] and [CODE] to your log format. If not already present, append [CODE] to your l...
2
2
1,512
2015-03-14T16:21:38.717
api_errors
serverfault.com
64,416
Do Programmers sometimes intentionally over complicate code?
It seems alot of times on stackoverflow, that people (programmers especially) tend to over complicate a solution to a problem to where the solution is vastly much more complicated then the original problem? Im not an expert by any means, but alot of times I try to go with the simplest solution that works (and obviously...
Obviously, some programmers are eager to show how smart they are by making some outrageously complicated code that no one can understand. Other programmers are firing at such a high level, that complication in solutions is a natural evolution. Some of the worst code I've ever seen was a method that had over 2000 lines ...
30
20
16,280
2011-04-01T18:22:42.313
api_errors
softwareengineering.stackexchange.com
150,354
How would one build a relational database on a key-value store, a-la Berkeley DB's SQL interface?
I've been checking out Berkeley DB and was impressed to find that it supported a SQL interface that is "nearly identical" to SQLite. http://docs.oracle.com/cd/E17076_02/html/bdb-sql/dbsqlbasics.html#identicalusage I'm very curious, at a high-level, how this kind of interface might have been architected. For instance: s...
Berkeley DBs are not that distant from SQL databases. For instance, ISAM systems (which are similar to Berkeley DB) have been used to build relational databases (for instance, MySQL's MyISAM storage backend, warts et al.). Basically, a Berkeley DB can store table rows. You can use Berkeley DB indexing to implement rela...
4
2
1,534
2012-05-26T19:11:02.260
database_errors
softwareengineering.stackexchange.com
619,960
EC2 cannot connect to RDS on VPC. Subnet issues?
I was able to deploy our .NET app using the AWS toolkit for Visual Studio. I set up the RDS database manually (MySQL) and deployed the app using elastic beanstalk (set up on VPC). The issue was that when i tested the signup form on the app running on the EC2 instance, it wouldn't store the user data into the MySQL data...
Since RDS requires you to have two availability zones when deploying in a VPC, you need to make sure that beanstalk is able to get to both of them via Network ACLs as well as the permissions for the instance based security groups. Only your ELB and your NAT instance/NAT gateway need to be public subnets, everything els...
4
1
1,309
2014-08-12T19:34:48.877
database_errors
serverfault.com
564,742
linux OOM-kill why?
. Greetings, fellow admins. I post in the hope of shedding light on the OOM-kills that haunt one of my company's machines. I cannot decide if they are legit OOMs or not. It's a Centos 6.x with kernel 2.6.32-279.1.1.el6.x86_64. Ram 8 gb, cpu athlon2-x4. The big processes are mysql and vmware player 4, with a max of resp...
Well, I think your min_free_kbytes is really high. I have a 16GB machine and my min is 67584kB. Note that vmware's ram counts as cache, because of the mmap-ed vmem Thats not always true. Only if the mmapped() file is opened in MAP_SHARED is that true. Else dirty pages are swap-backed. Which is the case for you it seems...
8
7
3,146
2014-01-03T00:42:17.803
database_errors
serverfault.com
661,734
Fedora 21 NFSv4 mount hangs for a long time, then times out; showmount -e works
I have a fedora 21 server with the following /etc/exports: [CODE] On my client on the same subnet, connected to the server through a hub, I run [CODE] , which just sits there with this verbose output: [CODE] After a very long while, I get [CODE] . [CODE] on the client correctly shows the exported directory, albeit afte...
It looks like this was a bug that was fixed in a recent update. Everything works correctly now.
3
1
2,029
2015-01-23T02:27:30.760
infrastructure
serverfault.com
599,357
How does Amazon ec2-user get its sudo rights
I am looking for where the default Amazon AMI linux image sets up the privileges for the default [CODE] account. After logging in with this account I can use sudo successfully. Checking via the sudoers file, which I open by running visudo (with no other options) I see a few default settings and permissions for root ALL...
It's in [CODE] . I, too, delete it from my production systems as soon as I can. It is included by virtue of the line [CODE] in the [CODE] file. Note that, as it says, that leading [CODE] isn't treated as a comment sign. On some of my servers, it's also in [CODE] ; it may be safest to [CODE] the ec2-user user.
26
28
45,790
2014-05-29T08:57:18.283
database_errors
serverfault.com
333,493
Executable documentation
I like asciidoc , resp. asciidoctor , for documentation purposes. It is way better than MS Word and integrates better with source control compared to tools like Confluence. Furthermore, I am aware of tools, which allow you to write executable parts within your asciidoc documentation. For example, PlantUML code can be i...
I would like to be able to instead directly execute the documentation such that the latest form X copy is placed into folder Y and maybe even an editor is directly opened. This isn't documentation so much as automating your workflow. A simple web, wiki, or whatever page with a button linked to a script and text boxes f...
6
6
1,020
2016-10-13T08:22:57.207
api_errors
softwareengineering.stackexchange.com
1,073,487
Azure Access control (IAM) roles - Reader vs Resource specific Reader
I can see it very clear from documentation, so asking this here does Azure IAM Reader role includes all that resource type specific Reader role or not exactly? For example if I take some resource, like Log Analytics Workspace - there I can assign both Reader and Log Analytics Workspace Reader, roles descriptions provid...
The role definitions for each built-in role will help you identify exactly which role you want based on which component permissions it provides. https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#reader https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#log-anal...
0
1
767
2021-08-04T08:46:11.730
pipeline_ops
serverfault.com
109,810
Any issues with adding an internal DNS to a domain-less environment?
I am a web developer at a small design studio. Most of our IT is handled externally. I manage our internal test web server (Windows 2003) and live dedicated web server. On our live web server we will be using host headers and a shared IP. I would like to do the same thing for our internal test server. We run Windows XP...
You'll have to ensure that your internal DNS server is able to resolve external DNS records through your firewall, as all your internal clients will now be talking to that server for DNS resolution. In addition to that, you'll need to decide which way to go with your internal DNS TLD. You could: Go the old '*.local' ro...
0
2
209
2010-02-04T23:05:40.093
infrastructure
serverfault.com
169,269
Ensure same tenant in a Many to Many relationship
I am trying to draft a very simple data model for a multi-tenant database. So far I have only 3 tables: company : pretty much my tenant account : is part of one company and zero or more groups account_group : same as account: one company and zero or more accounts Here is the SQL: [CODE] In this specific case, there is ...
This is almost an anti pattern if you ask me. All accounts have a company All account_groups have a company They're all linked through a linking table which also has a company. So, everything has a company: except when it doesn't? And if a company has a subsidiary you're in a world of trouble. It may make sense. But, w...
1
0
366
2017-04-06T04:44:07.817
data_quality
dba.stackexchange.com
386,801
Migration Of Demo Version Projects to Live Version in .Net MVC Applications
I have an application which is currently used by clients. So based on the feedback from the client, normally we are fixing bugs in a live application.Parallel I am adding new modules to demo projects.My plan is to migrate the new modules into live after testing. But the issue is we have fixed many bugs in live version ...
It sounds like you need branches to separate the development of new modules (demo) from the bugfixes on the live environment. You can then have the version control merge the changes. Depending on how much code was changed in both branches, it will be able to merge some of the changes automatically and some changes will...
-2
0
19
2019-02-07T09:09:41.203
api_errors
softwareengineering.stackexchange.com
12,524
Where to find Beta-Testers
New to the site. Please let me know if this question is out of the scope of this forum, and if there is a better place to post it. I have developed many applications both in a production environment and for personal use. In the production environment, we have dedicated software analysts, testers, and frameworks/procedu...
Applause You could try Applausse the testing services based on their tester network from UTest , I have done some cross-browser and mobile app testing for them. They offer scripted testcases and exploratory sessions where you pay per found issue. Amazon Mechanical Turk With Amazon Mechanical Turk you can define small w...
8
5
475
2015-03-30T13:18:51.823
data_quality
sqa.stackexchange.com
1,033,646
How can I add TLSv1.2 and TLSv1.1 to ssl protocols?
I use the DigitalOcean server for my project. The server's default tls is TLSv1.3 But on my Nginx configuration, even if I don't add [CODE] , still only [CODE] appears. How can I add [CODE] to SSL protocols? The problem is, if I use [CODE] , there is a [CODE] error on [CODE] , So I need to add old versions. [CODE] and ...
nginx seems to first select TLS version and only after that check the SNI. Therefore, it selects [CODE] using the same algorithm as is used to select default virtual host. That is, if there is a [CODE] block with [CODE] , [CODE] is used from that block. Otherwise first [CODE] block [CODE] is used. This means that you n...
0
2
309
2020-09-12T13:45:50.387
infrastructure
serverfault.com
168,655
Import all csv files into a table oracle
Trying to import all the files into a table but I receive the following error. #!/bin/bash . ~/.bash_profile export ORACLE_HOME=/u01/app/oracle/product/11.2.0/client_1 sqlldr USERID=user/pass@mydb DATA=/data/SDP/Import/*.csv \ CONTROL=/home/path/test.ctl LOG=/home/path/test.log Error Message SQL*Loader-500: Unable to o...
Use a shell loop, instead of trying to pass a wildcard: #!/bin/bash . ~/.bash_profile export ORACLE_HOME=/u01/app/oracle/product/11.2.0/client_1 for FILE in /data/SDP/Import/*.csv; do sqlldr USERID=user/pass@mydb "DATA=$FILE" \ CONTROL=/home/path/test.ctl LOG=/home/path/test.log done
2
1
2,534
2017-03-30T15:42:49.723
api_errors
dba.stackexchange.com
916,683
Google Cloud Platform + Confluence Server + SMTP
I am trying to migrate my Confluence server to live in a vm hosted in Google Cloud Platform. So far so good, I got mostly everything working, except my mail setup. I read in google's documentation that those ports are blocked due to security issues and past bad experiences, see here: https://cloud.google.com/compute/do...
Ok, after checking with some collegues, they had the same issue, and apparently in my case, since I am using AWS I can use another port they have available in their smtp setup, port 2587 , this port has not been blocked by google so I was able to use that one instead of 587 I hope this helps someone else more info here...
0
1
364
2018-06-14T14:38:22.520
infrastructure
serverfault.com
98,315
MongoDB "overacts" on cleaning/flushing and finally hangs up
Recently I run several times into trouble with mongodb that exhausted my system. The database is tiny, after a mongodump, all files together weight 248KB. After some hours uptime it happens that the machine is not accessible anymore, i.e. no responses to HTTP-Request, neither to SSH. The AWS console shows not more than...
After eliminating other memory-hungry processes, the machine runs smoothly at the moment. No such log entries like described above are observed. Thanks for pointing out that MongoDB really needs an amount of memory. Best
4
1
978
2015-04-20T14:18:20.067
database_errors
dba.stackexchange.com
798,298
Moving Servers Within The Same Building
Here's my scenario: I'm a developer that inherited (unbeknownst to me) three servers located within my office. I also inherited the job of being the admin of the servers with a distinct lack of server administration knowledge and google / ServerFault as a reference point. Luckily, I've never actually had to come into c...
Genuinely interesting question, well asked :) There's a few things you need to check before this move, some easy, some hard. Power - check that the new room has not only the right amount of power outlets but that they're the right type - as in physical connector type and if the current location allows for different pow...
61
61
6,229
2016-08-22T10:51:41.817
database_errors
serverfault.com
71,308
how to start with unmanaged vps?
Possible Duplicate: What a beginner should know/learn for sysadmin job? I have a managed VPS, so whatever i need i can just ask my support, and they will do it for me. Now i plan to migrate to unmanaged VPS, so i need some guides, tips on how and where to start learning. I will have more specific questions once i start...
This is like saying: I've only gone out on the ocean before on a boat. I want to swim by myself now, can someone give me any tips or guides on how to swim? You need to get the unmanaged VPS before migrating and then read the multiple other posts on here and other sides. Google "How to learn system administration". You ...
3
2
3,106
2009-10-05T11:26:35.547
database_errors
serverfault.com
850,796
edge server 2016 not receiving email, blocked ports?
I am trying to setup a new Exchange 2016 implementation. I can send emails but I cannot receive them. So far, the emails don't get rejected though I suspect in a few days, they will start to bounce back as they are probably queued somewhere. This is the first time I've tried to setup exchange, so I'm probably doing som...
About the Question you had above: Definitely yes. Edge Roles Uses SMTP for inbound and outbound connections on port 25. Edge Server has only to do with SMTP Communication and nothing else (no client communication - many people confuse this). I don't have a Edge Handy these days but you can try Get-Queue on the Exchange...
4
1
1,699
2017-05-17T21:24:18.583
infrastructure
serverfault.com
973,006
Can internet connection performance on client side of rdp connection affects server application performance?
Our company develops a Winforms based desktop application that we host on our servers. Our customers use our software via RDP. A question was recently asked if the client's internet connection could be causing a performance issue at the server. To clarify, the claim is that an operation that happens in our application ...
I've certainly seen problems with apps on RDP servers and network connected apps. In a previous job (so no logs I'm afraid) we set up a Server 2008 terminal server runnning the SITS (Student Records System) client. Briefly the SITS client is little more than a shortcut to a share holding the actual client o the server....
0
0
483
2019-06-26T16:40:22.253
database_errors
serverfault.com
954,113
How to specify azure storage connection string in node js?
I'm trying to use azure storage for storing the assets in node js application. I followed the official documentation. But the connection string specification is not working. So i'm getting error. throw new SyntaxError(SR.INVALID_CONNECTION_STRING); ^ SyntaxError: Connection strings must be of the form "key1=value1;key2...
The .env must be read before azure store gets initialized. Use [CODE] And do not call [CODE] until just before it is actually used.
3
0
2,120
2019-02-15T11:13:58.787
infrastructure
serverfault.com
59,290
How to update SQL Server 2005 clustered instances?
We have a 3 node cluster with an instance running on each. Windows 2003 R2 32bit (16GB) / SQL Server 2005 I want to bring them all up to build 9.00.5266 (SP 4 + CU3) (1 Node is already updated) The links and articles I have found haven't been very helpful in terms of order installation and gotchas. Our test cluster nod...
I think this is a pitfall. I recall SQL 2005 and older versions requires active nodes to be updated. SQL 2008 and later versions allow passive node updates like the walkthrough you described. A posting from Linchi Shea explains it well.
1
2
1,490
2014-02-20T15:40:00.713
database_errors
dba.stackexchange.com
101,843
ML for data processing. What are the options?
Currently I am working on improving a stage on a data processing pipeline. The source data has a large number of fields and is getting normalized into a simpler entity. This entails that in many cases a destination field value may be copied from arbitrary input fields, according to the context. My idea was to regress a...
What you are describing could be modeled as bipartite graph , one set of nodes connects to another set of nodes. Thus, it becomes a bipartite graph matching problem. As the size of each graph grows it quickly becomes intractable, then approximate nearest neighbor search might be useful.
0
0
24
2021-09-06T12:57:16.183
pipeline_ops
datascience.stackexchange.com
173,059
Installing OpenVPN on Windows7
It seems I cannot install the current version of OpenVPN (2.1.2) because the TAP driver is not signed and therefore windows 7 x64 refuses to install it. It shows up in the device manager, but with a yellow exclamation mark. It's a fresh system, and OpenVPN was never installed before. When I start the OpenVPN client it ...
To install, the application has to be run in Vista Compatibility mode. Download OpenVPN 2.1 and then : [CODE] Once the program is installed you need to mark OpenVPN-GUI in compatibility mode with Vista(SP1) and then mark checkbox "Run As an Administrator".
4
5
13,456
2010-08-21T12:52:06.663
infrastructure
serverfault.com
28,136
Postgres Plus Cloud Database on AWS for write heavy social game?
I'm one of four founders of a big social gaming iPhone app in Sweden. We now suffer from severe database server issues so I'm turning to you guys to get some help. First of all, let me get this out there: I'm not the tech guy in charge of the servers but I assist with research. We got about 8k querys/5 sec to our Postg...
For high performance systems, I think virtualization usually causes a lot more problems than it solves. Save yourself the headache. Build a decent db server inhouse. It is hard to say what your current problem is, and virtualization makes troubleshooting much harder. Is the load cpu bound? Is it I/O bound? Are you havi...
3
1
396
2012-11-03T21:59:05.777
database_errors
dba.stackexchange.com
15,463
Create table statement in MYSQL
I am trying to create the following table in MYSQL and is giving errors, [CODE]
You have to specify a length for your VARCHAR fields and also make your AUTO_INCREMENT field a the primary key. I made up lengths here for you - you should consider the maximum length that you actually want for each field. [CODE] A few other suggestions: Specify the ENGINE (InnoDB or MyISAM) Get rid of the CUS_ prefix ...
3
5
4,222
2012-03-23T12:51:05.230
database_errors
dba.stackexchange.com
227,821
What is the best network design for a new multi-floor building?
Specifics: 4 floors. Floors consist of central cubicle area and exterior offices pre-wired to wiring closet on each floor. IT data center will be located on 1st floor Conduit exists in building between floors Data and voice networks needed (either VLAN or physically separated) User count per floor upwards of 100 locati...
There isn't any single "Best" imho. There are plenty of good solutions that can fit a number of budgets and design styles - I mention the last factor because the "best" can often be the design you are comfortable with and can easily support. That said, I'll tell you what I've got in the same situation: A 10Gbe fibre ba...
5
8
35,442
2011-01-27T21:33:52.167
infrastructure
serverfault.com
103,762
Distribution Shift vs Transfer Learning
Transfer learning (TL) is a research problem in machine learning (ML) that focuses on storing knowledge gained while solving one problem and applying it to a different but related problem [ 1 ] Distribution Shift The conditions under which the system was developed will differ from those in which we use the system. [ 2 ...
Yes - One difference is between transfer learning and distribution shift is intention and knowledge of a different dataset. There are many types of transfer learning. Sometimes models are trained on one dataset and applied to another dataset without additional training. This has to be the case when there are no labels ...
1
1
518
2021-11-03T09:20:11.353
data_quality
datascience.stackexchange.com
236,758
Identify SATA hard drive
Very similar question to: Physically Identify the failed hard drive But for Windows 2003 this time. Scenario: Four identical SATA hard drives plugged into motherboard (no RAID controller here) Configured as single drive in Windows as a spanned volume One of them is starting to fail with error "The driver detected a con...
The answer is identical in principle -- Get some software that can interrogate the disks for their SMART status, and it should also tell you the serial number. I'm not sure if Windows has anything built-in, but PassMark DiskCheckup was the top google hit and looks like it would do the trick (Free for personal use, $15 ...
0
2
372
2011-02-17T14:56:42.403
infrastructure
serverfault.com
1,115,966
Setting up LAN gateway for school club network - "No subnet declaration for enp3s0"
I am a computing teacher, I am trying to setup a "sandbox" network with internet access for an after school computing club. I have an old PC (Debian 11 installation) with 2 ethernet interfaces, one interface is connected to the standard school network. This is used to be used to transfer internet traffic to the second ...
You obviously have configured enp3s0 to automatic configuration, so it tries to get an IP address via DHCP but fails; this is why it auto assigns the 169.254.151.221/16 address. In order to use this interface as a DHCP server you first need to configure a static IP address on it and this address must be within the rang...
0
2
322
2022-11-17T16:18:13.773
infrastructure
serverfault.com
130,038
PostgreSQL ignoring (unique) index on TEXT field
I have a [CODE] table similar to [CODE] and a [CODE] constraint defined on [CODE] : [CODE] Now, I tried running [CODE] and PostgreSQL is returning [CODE] The table has 256 rows at the moment. Could it be that the table is so small that PostgreSQL thinks it's better to do a full-table scan instead of scanning the index?...
ypercubeᵀᴹ and a_horse_with_no_name were right: I had too few rows in the table. For just 256 rows an index gives no benefit at all. I added 100,000 extra rows and [CODE] started showing usage of the index.
4
7
1,058
2016-02-22T11:47:41.760
data_quality
dba.stackexchange.com
539,884
SAS internal cable compatability
In the office, we've elected to whitebox go with a commodity approach to a certain class of server we'll eventually need a lot of. It's time to consider picking up a few more. It has been a year since the last time we did this, so I'm looking to update a few components. Specifically, the RAID card. When we built these ...
Good question. I'd never even seen an SFF-8643/SFF-8644 connector before. It's not even on the Serial-Attached-SCSI Wikipedia page (yet)!! So, as with all things, throwing parts into a chassis and calling it a server is fraught with peril... But you understand those risks :) Your RAID controller selection should be dri...
5
5
1,522
2013-09-18T12:16:58.660
infrastructure
serverfault.com
939,767
password unavailability on AWS
I have one windows instance. whenever I try to get the password of that instance. It shows me the error The instance is already running from last 24 hrs. Is there any other way to retrieve the password.
If you stop/terminate the instance and spawn a new one, it's usually resolved. In my experience, it has happened when a custom AMI is in a bad state, and Windows cannot start. So I would advise checking the AMI.
0
0
98
2018-11-13T08:23:43.630
infrastructure
serverfault.com
843,560
Remove trailing slash NGINX 2 sites one domain
I have following NGINX config [CODE] so as you can see, there are two sites in following scheme: [CODE] first site (sk) is hooked on '/' URI that works fine, domain.tld but everything with "en" prefix fails. domain.tld/en There are two main problems with EN version "en" is redirected to "en/" how can i prevent this? UR...
Using [CODE] and [CODE] in the same [CODE] block can cause problems due to a long standing issue . Also, your default behaviour is to send [CODE] to [CODE] , which is the wrong URI and should be [CODE] . Try: [CODE] EDIT: One possible way to fix the [CODE] to [CODE] redirect is to add another [CODE] block: [CODE]
1
0
1,622
2017-04-09T17:33:48.250
infrastructure
serverfault.com
970,819
Ansible and dictionary keys with variables
I'm trying to create a template task in an Ansible playbook which iterates a dictionary which contains some vairables: [CODE] This task gives me the following syntax error: [CODE] I cannot understand where I'm wrong.
You have a typo, with_items is not parameter. [CODE]
0
2
2,928
2019-06-10T15:10:40.447
pipeline_ops
serverfault.com
281,851
Make mod_wsgi use python2.7.2 instead of python2.6?
i am running Ubuntu 10.04.1 LTS and it came pre-packed with python2.6 but i need to replace it with python2.7.2. (The reason is simple, 2.7 has a lot of features backported from 3 ) i had installed python2.7.2 using [CODE] the altinstall option installed it, without touching the system default version, to /usr/local/li...
compiling python 2.7 [CODE] don't forget [CODE] or you may have problems later on. compiling mod_wsgi for python 2.7 https://code.google.com/p/modwsgi/wiki/InstallationIssues since you did a [CODE] to install [CODE] you won't have a [CODE] package to install; so you would need the [CODE] to refer to proper python. [COD...
5
4
12,595
2011-06-19T00:55:58.663
infrastructure
serverfault.com
66,325
Mysql database in a symlink-ed directory gives ERROR 1005 (errorno: 13)
I've the need to put my database outside the default datadir of mysql. To achieve that I followed the symlink guidance in the mysql documentation. However when I [CODE] the db if I try to create a table I'm greeted with: ERROR 1005 (HY000): Can't create table 'test' (errno: 13) In my search for solutions I already read...
I managed to solve this, basically by the advice given by Mat. The first valueable tip was to use [CODE] to show information for the file the link references rather than for the link itself. It is clear that the symlink should show the user (and group) mysql is using. When mouting (in this case the cifs type) I first u...
2
1
1,418
2014-05-31T13:45:19.987
database_errors
dba.stackexchange.com
353,743
OpenSSH - how to require PublicKeyAuthentication *and* login/password authentication
I have an Internet facing server that I need to allow shared (non-administrative) access to. I want to allow access only if the users key is in an authorized_keys file, but I don't trust some of these guys not to get their keys stolen, and I know some of them don't secure their private keys with a passphrase, despite m...
You can configure a forced command in the authorized_keys file. This could do a sudo or su or some shell script that in turn invokes some type of login password requirement. Each user may have two accounts. One for SSH key-based access that in turn invokes a forced command requiring them to enter a password before gett...
1
1
432
2012-01-26T04:20:50.623
api_errors
serverfault.com
845,244
Too many process with /usr/sbin/apache2 -k start , is this normal?
When I run htop command, I see lot of process running /usr/sbin/apache2 -k start The site become very slow. Is this normal? Is any process trying to start it again and again? Here is the screenshot (Can't add image due to reputation) https://ibb.co/hK9XQk
In the default configuration on Ubuntu runs in a multiprocessing mode named "prefork" where Apache forks a number of child processes to handle incoming requests. This is perfectly normal. If your system becomes too slow, this might mean that you need to tune the configuration (e.g. the number of child processes Apache ...
0
1
3,292
2017-04-19T09:32:39.553
infrastructure
serverfault.com
182,173
Update nvarchar value with GETDATE results
I would like to be able to update an [CODE] column with [CODE] . e.g. if the value is currently 'ordered', I need to append the date. I did try : [CODE] but I received the error Msg 241, Level 16, State 1, Line 1 Conversion failed when converting date and/or time from character string. Is there a best method of achievi...
You should [CODE] the date to a string type , otherwise, the [CODE] operator tries to make an erroneous implicit cast (it is actually trying to convert [CODE] into a datetime, to add it to the [CODE] ): [CODE] and will result in: [CODE] ol_number | comments --------: | :-------------------------- 10 | ordered Jul 29 20...
-2
3
1,549
2017-07-29T16:00:13.540
warehouse_errors
dba.stackexchange.com
916,459
Dovecot – Can send, not receive mail (visable in mail queue) Where is email?
Mail queue administration say’s: Received from myemail@adres.com H=mail-wm0-f44.google.com [74.125.82.44] P=esmtps X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no S=3663 DKIM=gmail.com id=CALSm3d9r2Qd9JcO-AFg+inZmKheuq0w9PzErUv98tjh0bg5KmQ@mail.gmail.com T="Re: test mail " myemail@adres.com R=virtual_user T=dovecot_lmt...
The problem was dovecot I have found the solution that worked for me. cd /usr/local/directadmin/custombuild ./build update ./build exim ./build exim_conf mv /etc/dovecot /etc/dovecot~moved ./build dovecot ./build dovecot_conf
0
0
1,125
2018-06-13T13:25:37.897
api_errors
serverfault.com
371,303
How can I speed up file tranfers on local storage in vSphere 5?
I have a few datastores on my ESXi server, as seen below. I am moving files from one datastore to another. It is just taking too long. I have done io testing on the hard disks, and I know they can perform much better than this. What really is going on? Why is it so slow? What can I do to speed this up?
I never got any official confirmation for this, but I believe the I/O is capped (or at least de-prioritized) for datastore copy/move operations from the GUI as I have seen rather similar behaviour in different ESXi environments on from version 3.5. That being said, the actual performance numbers do scale with your stor...
2
3
8,751
2012-03-19T21:05:23.267
infrastructure
serverfault.com
877,821
NGINX Proxy Pass multiple folders
I have a NGINX proxy and I want to redirect different folders to different web servers. The issue is that the local servers are looking for absolute paths for images, JS, APIs etc. How can I make it so there is a rewrite rule or something like it to mitigate the issue? Below is what I currently have for the server conf...
What we ended up doing is to use the sub_filter sub_filter "/path/" "/ch2/path/"; sub_filter_once off; sub_filter_types application/json application/x-javascript application/javascript;
0
0
390
2017-10-10T16:44:03.573
infrastructure
serverfault.com
257,254
Duplicate Account Detection - New Approach?
So I'm working on a web based game, and need to deal with the age old issue of duplicate account detection. Players often create multiple accounts to farm money/items etc to their main account, or to stash items etc. In the games I've typically played the main way this is done is by preventing multiple account to be us...
On the client, create a randomly generated "machine id" and set that as a cookie. Then send this value up with requests. This will avoid many of the issues you mention with IP addresses. (Though not all.) On the server, you can maintain a list of all machines associated with a given account. If you see the same id on t...
2
2
1,459
2014-09-25T23:08:33.450
data_quality
softwareengineering.stackexchange.com
417,483
ServicePrincipleName setup for Web Service on IIS 7
I'm so confused. Consider the following: Active Directory environment with a domain called DOM An IIS 7 box with a NetBIOS name VS1 A DNS record providing an alias for VS1 as pineapple.london.uk.corp An Application Pool running as DOM\PineappleService Windows Authentication enabled. Clients use HttpWebRequest to call t...
This should not be attempted until it has been configured and tested in development exactly as it will be in production. Using Windows authentication and impersonation with IIS and custom applications can be very complex. Even if it were to magically work in production without having a development environment that accu...
7
2
2,709
2012-08-14T18:38:09.660
database_errors
serverfault.com
105,474
What is your recommendation for a software load balancer or load sharer for the given case?
I have provisioned a server with 8 cores and plan on deploying a network service. For spreading out request load I'd like to run 8 instances of my service. Nothing shocking here. I do not have access to a hardware load balancer. I should mention that I currently have allocated 5 public IP addresses (but I can get more)...
whatever the solution, if you install a process to forward stream data, it will require per-connection buffers. This is because you can't always send all what your received, so you have to keep the excess in a buffer. That said, the memory usage will depend on the number of concurrent connections. One large site is hap...
3
3
712
2010-01-22T19:22:22.043
infrastructure
serverfault.com
203,267
need to run mail utility in linux OS
I need small help from you guys..I 'm not that confident in Linux commands.So, anybody who can guide be 'll be very much appreciated. I want my celerra (Control station which is Linux OS based) to generate a utilization report and send a mail to our storage team ID. This is the command : [CODE] I want this report to be...
Add this to your crontab: [CODE] ...of course this is predicated on the fact that you have a working MTA of some sort running on your server, but that's another question. :)
-1
4
320
2010-11-18T04:28:29.293
infrastructure
serverfault.com
242,911
We are moving to two servers from one server due to performance issues. How do we monitor the value of this change?
We are moving to two servers from one server due to performance issues. We are moving our MySQL DB to its own dedicated server and will keep the original machine as the front end machine running nginx/apache (Django backend.) How do we monitor the value of this change? It is possible our whole site could actually get s...
Moving the database to it's own machine is very common, and if done right should help your performance considerably. However, I'm worried about your "secure remote connection". Normally, the database should be in the same data center (and even the same rack, on the same switch) as your web server. I believe the appropr...
3
3
140
2011-03-03T19:59:35.207
database_errors
serverfault.com
839,111
Handling multiple Symfony sites depending on the URL path
I have multiple Symfony projects, each of them are stored in custom subdirs inside [CODE] ; these subdirs are not intended to be public URLs. For example: [CODE] Note : I only have a personnal IP address, without any registered domain, and I'm using Apache 2.4. I would like to link each of these projects to a simple UR...
Forgot all this vhost stuff. All you really need to do is to set [CODE] es in your main vhost: [CODE] See https://httpd.apache.org/docs/2.4/urlmapping.html
2
0
1,378
2017-03-18T11:47:13.703
infrastructure
serverfault.com
96,478
Dealing with coworkers when developing, need advice
I developed our current project architecture and started developing it on my own (reaching something like, [CODE] ) . We're developing a simple subway routing framework and my design seemed to be done extremely well - several main models, corresponding views, main logic and data structures were modeled "as they should ...
Refactor mercilessly to get out of the mess! Take the coding style that accounts for the most part of the usable style and use it for this project. Worst thing is, that you have to roll back to revision 40, and your programmers had a 12 day training session, that gave them a better understanding of the subject. If your...
20
18
1,078
2011-07-27T22:55:30.790
api_errors
softwareengineering.stackexchange.com
376,920
Postfix load balancing
I have 4 VPS servers, my plan is to use one of these VPS servers as a load balancer which sends mail received by it from another server to other 3 VPS (smtp) clients who will relay mail to the outside network. The idea is: [CODE] I want Postfix to be used as an MTA in this configuration. Can anybody help me out in this...
What kind of volume are we talking about here ? One postfix machine with proper disk subsystem on modern hardware will easily do hundreds of messages per second. One reason to use separate sending machines is to use different source IPs to increase throughput to the big email providers, but you provide no details about...
3
1
4,149
2012-04-05T09:15:00.100
infrastructure
serverfault.com
51,155
Create new database with large initial size
I want to create a new database with a 200GB data file ( [CODE] ) and 50GB log file ( [CODE] ). But it is very slow (it's about 15 minutes and still hasn't created). and it is very time consuming. Is that normal? if yes what does it do that takes time? can I enhance its creating speed? I am using SQL Server 2008 R2, Wi...
Unless you're using Instant File Initialization , SQL Server must zero out all sectors for the files. This is a very time consuming process, especially for 250 GB (data+log). In order to speed things up, enable this feature and then SQL Server will not zero out the space for the data files. Please note, SQL Server will...
8
17
5,626
2013-10-07T19:52:15.210
database_errors
dba.stackexchange.com
370,183
MDT Handling Failure
I have a MDT server that needs to run a script. This script is potentially problematic and sometimes errors out with an access denied to a network resource. It looks like I can handle this with the 'continue on error' option to move on to the next step. I would like to manipulate the current step attribute in some fash...
In SCCM, when a task sequence action fails, the variable [CODE] is set to [CODE] . You can add a step immediately after the step that runs your script and set it to only run when [CODE] is [CODE] . This will give the task sequence two chances to run your script. If you want the task sequence to keep trying the script u...
0
1
277
2012-03-15T18:10:38.480
infrastructure
serverfault.com
34,121
Driver with tag "Stor" on Windows XP (32 bit)
I have a leaking driver (leaks 40-60MB/day) on Windows XP (32 bit). I used poolmon.exe from Server2003 SP2 (file-date is in 2007), I get: Stor Nonp 169527 ( 13) 950 ( 0) 168577 49377328 ( 3744) 292 Unknown Driver After hours of googling and searching my *.sys files for strings, I am still not able to identify this driv...
I am still doing some checks, but I am >95% sure that the leak was caused by Daemon Tools v3.46. I had this virtual CD/DVD software installed since 2004, something else had to trigger this leak (a Windows update, etc.). I removed the Daemon Tools and now the Poolmon tag "Stor" does not show up. Also, the file atapi.sys...
0
0
1,162
2009-06-30T21:53:22.680
infrastructure
serverfault.com
81,903
Query execution involving two servers in SQL server , is really slow
I am running the following query , and it takes over 1 hour to finish execution. As there are so many joins and then one union is involved, is it normal for this query to be executed in 1 hour, or is it because of bringing result from two different servers ? In fact , there is one procedure , involving this select stat...
Yes you're right, joins across linked servers is slow. A simple but unflattering solve is to pull the data across from each table on other servers and insert it into a temp table (select a,b,c into #temp from server.database.schema.table) or table variable. Then use that table in your queries. A better way would be to ...
0
1
524
2014-11-05T06:53:52.883
database_errors
dba.stackexchange.com
856,946
How to deploy changes to a production website while not taking the website down for a fraction of a second?
I use Git to manage the development cycle of my web application, and for changes where a [CODE] is enough and no changes needed, I just naturally keep the site up and [CODE] the changes. But I'm thinking, say I have 100 files changed, and say there was some unexpected load on the disk, what happens if someone does a re...
You will want a load balancer. It can provide rolling upgrades, high availability, and scale out. Large, non trivial, but somehow always up websites change ever so slightly constantly. Perhaps they are rolling out a daily update, or some feature failed but things still run. They have decided that a slightly different u...
2
3
1,156
2017-06-21T00:14:35.843
data_quality
serverfault.com
330,955
Is it necessary to set auto_bootstrap to false when adding a new datacenter?
I am preparing the documentation for another Cassandra cluster in a new datacenter and wonder how the bootstrap process of the seed nodes and non seed nodes should be done. For the most part I am following the steps from this blog. Currently the cluster is on version 3.11.5 and the official documentation says nothing a...
When adding a new DC, you don't need to worry about setting that property one way or another. This is because when nodes are bootstrapped, they will only stream data from their local data center. As your data center is new, there isn't any data to stream. So in this case, it doesn't matter what that property is set to;...
1
1
192
2023-09-06T12:17:15.553
database_errors
dba.stackexchange.com
674,029
Lsass.exe high CPU usage and causing request queuing on webserver
I have a webserver with Windows 2012 R2, running only one website, on ASP.NET 4.5.1, IIS 8.5. It does not have, and has never had, the AD role installed. Last Sunday, the process lsass.exe, suddenly started using 20-40% CPU. We did not change anything on the server, or in the surrounding network. (No windows update hap...
After enabling TLS 1.2 (also 1.0 and 1.2) on Windows 2012 R2 and 2008 R2 SP1, process lsass.exe began to overload CPU. I used the IISCrypto40, click "Best Practices", and in "Key Exchanges Enabled" left enabled only PKCS. After it, the load on the cpu returned to normal (5 - 10%). p.s. sorry for the poor english IISCry...
4
6
19,337
2015-03-09T12:57:19.147
infrastructure
serverfault.com
505,821
Install a New Package Using Puppet 3.1.1 on Solaris 10?
I'm pretty new to Puppet and Solaris, and I'm running into an issue installing a package on a Solaris 10 VM using Puppet. As part of my testing, I wanted to see if I could install Java 6 update 43 on a Solaris 10 VM that only had Java 5 update 24. Shown below is the issue I'm having and my question. Environment Solaris...
I posted the same question on ask.puppetlabs.com, and here is the answer I received: How should puppet know, if a package is brand-new? Puppet has to check if the package is already installed. But this looks like a recent regression bug in the [CODE] package provider because having a short glance at it puppet neither c...
1
0
1,184
2013-05-07T22:20:08.363
pipeline_ops
serverfault.com
116,346
Backing Up User Data when data is not in use. Should I be concerned?
This may be a dumb question. I would like to use duplicity to make backups to Amazon S3 of directories, each of which contains a different user's data. Each directory could be written to at any time. So I have two questions: Should I be concerned that a scheduled backup of a directory might occur in the middle of data ...
To provide part of the answer to my question, it looks like I can use [CODE] to see whether any processes have any files in a directory open.
0
0
73
2010-02-24T18:13:34.383
database_errors
serverfault.com
66,290
Restore postgres in command line on ubuntu failed
This question may be asked many times. We are trying to move a postgres db from windows (psql 9.3) to ubuntu runing postgres 9.3. Here is what we did: In windows, create backup for db cis with pgadmin. The backup file name is cis.backup Copy the cis.backup to ubuntu and save it under /home/myname Log in to psql with: [...
[CODE] The hash is not part of the command name. It's a convention on unix systems used to indicate "root prompt". Unfortunately, it's also a comment on some shells. Try again without the hash.
-1
2
3,824
2014-05-30T21:22:26.320
database_errors
dba.stackexchange.com
813,298
How to get the true client IP for a service running inside docker
My scenario: I'd like to have my docker-based services know what IP is calling them from the web (a requirement of my application.) I'm running on a cloud VPS, debian jessie, with docker 1.12.2. I use [CODE] in verbose mode to open port [CODE] . [CODE] Say, the VPS has the domain [CODE] , and from my other machine, whi...
According to the documentation , the default driver (i.e. when you don't specify [CODE] in [CODE] , is the [CODE] network driver. It's not about docker 'masking' the IP addresses, but on how [CODE] and [CODE] networking modes vary. In terms of Docker, a bridge network uses a software bridge which allows containers conn...
23
23
18,672
2016-11-04T20:29:16.173
pipeline_ops
serverfault.com
348,815
How to change libcurl SSL backend from gnutls to openssl on Ubuntu server
I am getting gnutls specific errors in my Tornado webserver while processing Google OpenID SSL responses. One of the suggestions I got from Tornado mailing list is to try OpenSSL backend instead of gnutls. But it doesn't seem to be straightforward on Ubuntu server (11.10). On Ubuntu server, [CODE] is provided by [CODE]...
The [CODE] packages are the development packages, they contain the library headers, used to develop and compile programs that use the library. They're usually not required by application binary packages (which are already compiled). Installing [CODE] isn't enough to make the binary packages that have been built against...
8
5
23,834
2012-01-11T11:36:47.330
infrastructure
serverfault.com
220,888
How to do a clean refactoring of an If Else Code without leaving any free blocks?
[CODE] I would like to refactor that code so that I do not duplicate Statements. I always need to check condition1 before any other condition. (So I cannot just change the order of the conditions). I also do not want to write [CODE] after every other condition. I solved it like this [CODE] However I do not think an emp...
[CODE] And now: [CODE] As I wrote in my comment to Kieveli's answer , I see nothing wrong about multiple [CODE] s in a method, if there is no memory management considerations (as it might be the case in C or C++ where you have to release all resources manually before you leave). Or another approach still. Here's the de...
13
32
24,898
2013-12-10T13:26:09.283
data_quality
softwareengineering.stackexchange.com
99,975
What are pros and cons of using temporary "references"?
In C and C++ (and I guess other languages that allow taking a "reference" to an array element or something similar), when you have an array like type, accessing individual elements of such an array can be done "directly" or via a temporary reference or pointer. Example: [CODE] Obviously if the loop body becomes too com...
Each approach has advantages. The temporary reference approach has the advantage that you get to name the reference. This can provide additional information to help make the code more self-explanatory. It also eliminates having multiple instances of the same expression to access the variable. The no-reference approach ...
2
3
1,794
2011-08-10T14:21:21.520
api_errors
softwareengineering.stackexchange.com
101,905
What is the recommended method to move databases?
I want to know the recommended method to move a database and data from dev to pre-prod to production in SQL Server. The databases are originally created in MS Access so some upsizing to SQL Server will be needed The 3 options I've read about: (I'm sure there are others) Use Detach and Attach - I've been led to believe ...
Do a back-up/ restore - takes longer but appears to be a favoured method. This is what we prefer. -- Backup and Restore. Safer Method. Option to detach the database using sp_detach_db and then attach it using CREATE DATABASE ... FOR ATTACH; or detach and attach using the GUI will actually detach the database from the s...
3
5
248
2015-05-19T14:10:06.907
database_errors
dba.stackexchange.com
948,873
btrfs recover: reliable or last-straw?
The chunk tree of a btrfs filesystem corrupted and I could not recreate it after hour-long reconstruction. As a last resort (besides restoring from backup) I could use [CODE] to get all the files back. Does anyone know whether the restore is a best-effort way of accessing the data and corruption might be expected or is...
As read from the man page: [CODE] So I would definitely put it in the "last-straw" category. As such, I do not expect for it to made any guarantee on the consistency/integrity of recovered files (even if it seems to work quite well for people using it).
1
1
310
2019-01-13T18:48:33.243
database_errors
serverfault.com
301,749
Copying Data into another table and removing older data should I do in batches and should I remove indexes and FK constraints?
I am looking to remove older data from a table which consists of 889 million rows of data. I have a script but I am trying to make it more robust as removing approximately 418 million rows of data to be precise. Am running in Postgres 9.6, with the table and FK Constraints [CODE] Scipt have looked to use: [CODE] I am w...
The first step would be to upgrade to a current version. Postgres 9.6 reaches EOL on November 11, 2021 - in three weeks. Postgres 13 or 14 are much faster with big data. Dropping and recreating all indexes has additional benefit in this case: that way you tap into the new feature index deduplication of Postgres 13 or l...
3
3
1,307
2021-10-27T10:16:28.353
data_quality
dba.stackexchange.com
855,620
How can I buy end-user bandwidth for my customers?
I sell a product to customers, and as part of this product I have a website where customers can upload data for processing. The data is of considerable size (gigabytes). I am looking to buy extra bandwidth for my customers, and to make the arrangement with their ISPs myself so that the experience is seamless to the end...
It sounds like in effect you want to pay a users ISP to zero-rate traffic to your site, similar how to some cell carriers allow you to stream video from certain websites without impacting your allocation. If you are a major company like Google or Netflix then this has a ghost of a chance of being feasible, otherwise mo...
27
17
6,773
2017-06-13T23:15:10.083
infrastructure
serverfault.com
1,047,045
403 redirect not working .htaccess
I want to block users from India from the website and redirect them to a custom 403 page. Here's the code that i placed in .htaccess file: [CODE] The ip blocking is working fine but it's redirecting to default 403 error page. Also if i manually enter the 403 error page in the url it's accessible but its not redirecting...
When you block access to all content, you also block access to the custom 403 error page....
0
1
880
2020-12-21T14:55:53.637
api_errors
serverfault.com
64,694
Why won't ruby recognize Haml under ubuntu64 while using jekyll static blog generator?
I have been trying, quite unsuccessfully, to run henrik's fork of the jekyll static blog generator on Ubuntu 64-bit. I just can't seem to figure this out and I've tried a bunch of different things. Originally I posted this over at stackoverflow, but this is probably the better spot for it. The base stats of my machine:...
You're calling something in your template called 'header' that doesn't correspond to an available method. Fix your template, and all will be well.
1
1
476
2009-09-11T23:10:35.570
infrastructure
serverfault.com
240,985
rsync via ssh from linux to windows sbs 2003 protocol mismatch
Possible Duplicate: protocol version mismatch — is your shell clean? I am trying to backup my linux webserver to our local windows sbs 2003 server in the office. I have set up ssh and cwrsync on the windows server and have confirmed that the linux server can reach the windows server via the command: ssh RemoteUser@xxx....
The error [CODE] means that the local rsync gets some invalid data from the remote machine which isn't part of the rsync protocol. This is normally caused by automatic shell login messages like the message of the day ( [CODE] ), therefore the [CODE] part. Log into this machine manually and look if you get any such mess...
1
0
2,284
2011-02-18T13:14:40.893
data_quality
serverfault.com
291,116
What did I miss in EXPLAIN that hinted at server crippling loads?
I reviewed [CODE] output for a query and found a couple subqueries were scanning the whole table. This is done to get only the most recent record in those tables related to an appointment. After some research, I decided that it would be reasonable to use a lateral join on those subqueries to dramatically reduce the amo...
[CODE] suggested the cost of the whole query with lateral joins would be about a quarter of the original. [CODE] ( estimating the cost) suggests [CODE] vs. [CODE] unicorn points. But [CODE] ( measuring actual execution times) disagrees and shows [CODE] ms vs. [CODE] ms, so around 1/3 slower. There can be many reasons w...
1
3
168
2021-05-06T15:08:32.640
database_errors
dba.stackexchange.com
286,540
How does the Hip hop virtual machine (HHVM) theoretically improve PHP runtime performance?
From a high level, how does Facebook, et. al use to improve PHP performance with the Hip Hop Virtual Machine? How does it differ from executing code using the traditional zend engine? Is it because types are optionally defined with hack which allow for pre-optimization techniques? My curiousity arose after reading this...
They replaced TranslatorX64’s tracelets with the new HipHop Intermediate Representation (hhir), and a new indirection layer in which resides the logic to generate hhir, which is actually referred to by the same name, hhir. From a high level, it is using 6 instructions to do the what required 9 instructions before, as n...
9
7
708
2015-06-12T03:34:19.683
api_errors
softwareengineering.stackexchange.com
683,902
libvirt NON TLS connectivity
virsh seems to require TLS even when tls is set to 0 in libvirtd.conf. I would prefer not to use TLS since I am working in an secure environment and as such TLS only adds complication, but doesn't add anything to security (If you are in position to be able to exploit the plain text I have far bigger problems on my hand...
You can use 'spicy' (which comes from 'yum install spice-gtk-tools' on fedora) to directly open spice display. Sample: [CODE] Good luck:)
1
1
348
2015-04-19T20:19:43.083
infrastructure
serverfault.com
961,250
How to quickly transfer email files from one server to another?
I was wondering what is the fastest way to transfer emails from one server to another, because i'm sure that i can get this done a lot faster than it is now. My servers are on the same location (Hetzner CX22, Nurnberg, Germany), both of them are CentOS 7. I was searching for some answers and have found this instruction...
Maybe it is not possible in your context, but I use imapsync to migrate mailboxes [CODE] , avoiding to deal with the "how long it will last to copy stuff". Just route emails to the new mbox, and let imapsync populate it from the old mbox.
0
0
633
2019-04-03T07:41:42.053
infrastructure
serverfault.com
241,506
What does HY stand for in error code?
I've seen those error codes with prefix HY like HYT00 in MS-SQL or HY000 in MySQL, but, what do they stand for? why are they similar?
what do they stand for? Codes like [CODE] and [CODE] are called SQLSTATE . The [CODE] part is the Class. I can't find any documentation that even hints at what it stands for. There is nothing to indicate that the individual letters have any meaning. Most other classes are numeric (hex), ranging from 00 to 46. And then ...
0
4
710
2019-06-26T23:06:47.633
database_errors
dba.stackexchange.com
196,934
Unique Value Object vs Entity
Trying to convert some entities into value objects I am stuck in a case where what seems a value object must be unique within an aggregate. Suppose we have a Movie entity which makes the root of an aggregate. This Movie entity is related with some set of AdvertisementEvent objects with the role of displaying an adverti...
The distinction between Entity and Value object should be based around the question: If I have two objects with the same contents (two AdvertisementEvents linking to the same Banner with the same parameters), should I treat them differently or can one be replaced by the other without affecting how the software works? I...
7
9
2,583
2013-05-03T10:06:48.007
api_errors
softwareengineering.stackexchange.com
728,728
w3wp hanging - possible blocked threads? Trying to debug with WinDbg
I have been having trouble for the past week where one of my web apps running on IIS is hanging at random times at least once a day, I have to recycle the app pool to kick it back into life. CPU and memory seems normal. When I look at the active threads in the worker processes section in IIS manager i can see threads b...
Probably a lot simpler and quicker to start with DebugDiag v2 update 1 and force a process dump then run the hang analysis.
0
0
1,426
2015-10-13T20:41:04.273
infrastructure
serverfault.com
181,651
Are these SQL concepts for beginners, intermediate, or advanced developers?
I've been learning SQL recently and practicing with MySQL/Postgres and soon Oracle DB. I've also search the web for a 'road map' study of databases but couldn't find one, unfortunately. I want to understand where and why particular database concepts fall on the scale from beginner to intermediate and advanced. I'm thin...
I would say there are two types of things to know in regards to SQL (this is true of many technologies really), there are specific technical things like joins, subqueries, unions, etc which you understand or don't, and then there's things like database design and data modelling which has a gradient of skill in it, like...
19
25
80,948
2013-01-05T20:44:09.083
database_errors
softwareengineering.stackexchange.com
673,854
How to let PHP connect to database by using UNIX socket (Joomla)
I'd like to have my PHP applications such as Joomla make use of the UNIX socket to connect to the local mysql database. I've already configured the php.ini with: [CODE] But in Joomla I can only set localhost or 127.0.0.1 as database, is it possible to override this? How can I test the UNIX socket is actually being used...
127.0.0.1 is used for TCP socket. 'localhost' is used for Unix filesystem socket. We can use [CODE] to determine the connection method.And explore option to enforce a particular type [CODE] The connection parameters should be like this $link = mysql_connect('localhost:/var/run/mysqld/mysqld.sock', 'mysql_user', 'mysql_...
3
4
26,679
2015-03-08T16:42:43.180
database_errors
serverfault.com
23,305
Sql Server - Best Practices for Growing Database Files
I have been monitoring file growth via the data collector in sql server 2008 r2 for two weeks. The database is growing consistently at around 35(MB)/Day. The DB has not yet hit the initial size of 2 GB. The DB files auto growth is set to 5MB and I would like to try a different approach, so I am looking for suggestions ...
You should be aiming to auto-grow as little as possible. Seven times a day is excruciating, even with instant file initialization. Don't do a Shrink Database. Ever. Shrinkfile, maybe, but only after an extraordinary event. Shrinking it just to grow again is an exercise in futility and should actually be called auto-fra...
19
29
44,871
2012-08-28T17:57:16.733
pipeline_ops
dba.stackexchange.com
858,990
Dockerized Nginx and Gogs not serving assets (404 error)
I have set up a Server to serve a website from the standard URL with a containerized Nginx. This website works completely fine. On a suburl (/gogs/) I proxy all requests to an instance of GOGS though. This is also containerized and the containers communicate via a custom Docker network. My problem is, that all the asse...
(Not enough rep to comment...) Looks like your containerized nginx doesn't serve static files from Gogs. What Gogs image are you using ? How do you start your containers : [CODE] ? [CODE] ? Might also be helpful to post your Dockerfiles or docker-compose.yml and the nginx conf (at least the [CODE] section) Both contain...
1
0
1,195
2017-07-02T20:01:39.193
pipeline_ops
serverfault.com
16,656
Is SELECT COUNT GROUP BY more efficient than counting a result set?
I have a table with a [CODE] column which can be either [CODE] , [CODE] or [CODE] . I need to count the number of records for each rank, but I also need to display all the data ordered by rank. From my perspective, the two ways to accomplish this would be: Pull out the data with a normal [CODE] and then run a second qu...
The answer depends a great deal on how well organized your data is and the query itself. For example, look at the query you have in the question: [CODE] The first thing I think about with this query is whether the table is properly indexed. OBSERVATION #1 If tablename had no indexes, a full table scan would be required...
4
2
28,818
2012-04-18T02:20:05.477
warehouse_errors
dba.stackexchange.com
220,974
bind9 DNS Ubuntu names pingible on server, but not on Windows Machines?
I setup a DNS server today on Ubuntu, following this tutorial . My intent was to setup my network for dns-name resolving on the private LAN within a single zone (nothing fancy I just want name resolution). I've tested the setup on the DNS server machine itself, and I can ping all the machines listed in the configuratio...
I'm wondering if the issue is how suffix appending is working on the windows machines. To test this, try running nslookup on a full name on one of the windows machines, i.e. [CODE] . If that works it means your windows machines are not appending the leerdomain.local suffix to your queries. You can check that in [CODE] ...
0
4
6,057
2011-01-11T05:33:57.840
infrastructure
serverfault.com
805,004
Squid ACL - IP ranges not working
In my Squid FW I have a list of domains where I want to bypass NTLM. I have achieved that with the following: [CODE] Now I need to bypass a range of IPs, for example 192.168.0.0/24. I have tried adding this as a line in bypass_domain.txt but it doesn't work. If I add the exact IP (ie 192.1683.0.111) to bypass_domain.tx...
Please RTFM http://wiki.squid-cache.org/SquidFaq/SquidAcl#ACL_elements . The ACL type "dstdomain" compares things against URL hostname. An IP address range is not a vaid URL hostname. Which was why your first attempt did not work. The ACL type "src" matches your client IP addresses where requests are coming from. Which...
0
0
2,584
2016-09-23T18:48:59.103
infrastructure
serverfault.com
150,525
Managing servers over ssh with PermitRootLogin=no
If I can't ssh as root to each of my servers how can I make modifications in an efficient way? I am not allowed to setup ssh keys or open the sudoers file with NOPASSWD. I can't install puppet or spacewalk. Sometimes when I try to include a sudo command in a script I get the error "no tty present." Has anyone worked in...
You could always login as a regular user and [CODE] to the root user once you're in the server.
1
5
1,450
2010-06-11T17:41:00.117
pipeline_ops
serverfault.com
94,179
Where has STATMAN gone in SQL Server 2014?
So we've recently upgraded our environment to SQL Server 2014 (Enterprise on CU5) and are having some problems diagnosing performance issues, compounded by the problem that we no longer seem to be able to tell when SQL Server is updating/creating statistics. Previously, when compiling a plan, if SQL Server needed addit...
I still see [CODE] operations captured if I use SQL Sentry Plan Explorer PRO against SQL Server 2014: click to enlarge So, not exactly sure what [CODE] is doing differently in this case (I've never used it to analyze statistics creation), but I can assure you that SQL Server 2014 still uses StatMan.
4
2
492
2015-03-02T14:12:31.547
warehouse_errors
dba.stackexchange.com
9,991
Is information lost when converting an image to a single vector for analysis?
On several tutorials on object and pattern recognition in images (such as the typical mnist digit recognition problem), when working with a sample of $m$ images of $n \times n$ pixels each, the first step is to build a matrix of $m \times (n * n)$, where each image is converted into a single row-vector with all of its ...
The short answer is it depends on two things: what definition of information you use and if you really use that information. From information theory point of view, if your transformation is reversible than the information is there. This happens because you can apply the inverse transformation to recover the original. S...
6
8
227
2016-01-27T14:12:48.323
data_quality
datascience.stackexchange.com
856,101
Is running multiple queuerunners on a single sendmail queue a good thing?
I noticed the following blurb in the batbook: The best way to flush a full queue is with a command line something like this: [CODE] [CODE] ← V8.12 and later [CODE] ← V8.13 and later Here, the -d99.100 tells sendmail to run in the foreground (so that you can kill it easily when done). The -q10m causes a queue-processing...
What you see is typical sendmal-ish "fix only one problem, ignore other possible problems" - it is caused by decades of "I contribute to fix MY problem" development. The first advice deals with "slow to process" items in pretty big (but not huge) queue. The second advice deals with HUGE queue processing which makes def...
1
1
524
2017-06-15T22:49:07.053
database_errors
serverfault.com
371,535
Migrating users and mailboxes from postfix / Maildir to Postfix with Mysql backend
So I've got 60 or so users on a hand rolled postfix installation on openbsd and I'd like to move their mailboxes to our new mail server running iRedMail (postfix, vmail/mysql back end) Does anyone know of a good way to do this? Preferably a script I can run to keep syncing the users mailboxes as MX records get updated?...
I don't know anything about iRedMail, but have done many mail migrations before on heavily used mail servers. I wouldn't recommend doing this during normal production hours. You should schedule downtime of at least an hour or two depending on how long it takes to migrate the data and turn off the mail servers while thi...
0
1
4,659
2012-03-20T13:09:27.383
database_errors
serverfault.com
577,381
Puppet Master does not seem to be receiving certificate to sign from agent
I wanted to configure DNS round robin on my Puppet 2.7.23 Master servers. I configured 2 Red Hat 6.5 servers with [CODE] . I configured alt_dns_names and created 2 A records to point to puppet.mydomain.com with the IP of each server. I wasn't really sure what I needed to do to get failover working properly since the ce...
This was caused by PTR records still being active, despite removing the associated A records. After removing the PTR records and doing removing and reinstalling puppet on agent, I could sign this agent's cert again. Well, there's your answer. At least someone answered it. Thanks anyhow ServerFault!
0
0
603
2014-02-21T15:58:37.457
database_errors
serverfault.com
23,621
Any benefit or detriment from removing a pagefile on an 8 GB RAM machine?
I'm running Windows 7 on a dual core, x64 AMD with 8 GB RAM. Do I even need a page file? Will removing it help or hurt performance? Would it make a difference if this is a server or a desktop? Does Windows 7 vs. Windows 2008 make a difference with a page file?
TL;DR version: Let Windows handle your memory/pagefile settings. The people at MS have spent a lot more hours thinking about these issues than most of us sysadmins. Many people seem to assume that Windows pushes data into the pagefile on demand. EG: something wants a lot of memory, and there is not enough RAM to fill t...
223
307
82,642
2009-06-10T19:50:46.843
infrastructure
serverfault.com
396,770
Determinism for networked games
I am currently making a game project that will have players play together. And i am basically planning to do it by only sending player inputs and have each client run the simulation on the pretence that the math will be fixed point throughout. I am wondering if algorithms like A* path finding needs fixed point or are t...
What you are really asking is whether a cost function in an optimization algorithm (like A*) can be sensitive to floating point error. Yes it can be. And results of an A* algorithm could therefore be non-deterministic if: paths were tried in a different order on different machines, or the different machines floating po...
2
3
135
2019-08-31T02:16:09.063
api_errors
softwareengineering.stackexchange.com
373,284
Rails showing files list and not running app
I followed this tutorial: http://railsapps.github.com/tutorial-rails-mongoid-devise.html Running nginx via proxy on port 8000. You can see it here. Why is it listing the files in the /public dir? Also, if I try to go to any of the devise uris, it shows the Nginx 404, and not the rails 404...could this be a passenger is...
Kevin, It looks like Apache maybe misconfigured. Upon clicking one of the links in the file list it tried to redirect it to, [CODE] You can add rails.pixelcraftwebdesigns.com to /etc/hosts but it looks like a trailing / might be missing on your proxy_pass directive.
1
1
202
2012-03-26T00:39:19.843
database_errors
serverfault.com
453,555
Can't access site hosted on EC2 but the public dns url works
Possible Duplicate: Can’t access EC2 hosted website For some reason, I am unable to access our website www.doccaster.com (Bad request nginx). We are hosted on amazon EC2 with elastic ip associated to it. The weird part is a) I can access it through the public dns url http://ec2-184-73-195-180.compute-1.amazonaws.com b)...
I also get 400 Bad Request [CODE] You probably have an error in your nginx configuration for this specific domain. Could you please post it for a review? I found the reason for both - why you can't and why your co-founder could access the website. You didn't set up www.doccaster.com for the correct IP address, while do...
0
2
1,995
2012-11-29T16:14:28.203
database_errors
serverfault.com