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
1,041,734
Error when add mirror in disk management window server 2012
I have a problem when add mirror in disk management window server 2012 The problem is: The operation failed to complete because the Disk Management console view is not up-to-date. Refresh the view by using the refresh task. If the problem persists close the Disk Management console, then restart Disk Management or resta...
Encountered same problem in Win10, and this answer lead me to the solution: make sure the partition you're trying to mirror is the LAST one on the disk, i.e. extend it to cover up any free space that's sometimes left behind after shrinking or deleting other partitions.
4
2
1,026
2020-11-08T15:23:01.370
infrastructure
serverfault.com
52,246
MS SQL Server accepts non-SSL connections even with Force Encryption enabled on the server side
I am forcing encryption on my SQL Server. My intention is to reject any client connection that does not use SSL to connect. Am I on the right track? Here are my detailed steps : makecert -r -pe -n "CN=slc02xla.company.com" -b 01/01/2000 -e 01/01/2036 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky exchange -sp "Mic...
Yes, this is correct. It's also described here Enable Encrypted Connections to the Database Engine (SQL Server Configuration Manager) And maybe also this discussion helps: force-encryption-on-sql-server-not-working
8
8
18,813
2013-10-26T01:14:30.557
database_errors
dba.stackexchange.com
181,626
Securely changing system configuration from a web application
I need to write a web application that acts as a configuration interface for some system services. Meaning it will probably change some kind of configuration file and has to restart (linux) system services. I was wondering how to design such a thing in a secure way. It is very similar to router web interfaces and such,...
You've mostly answered your own question. You're right to dislike running the web app as [CODE] , no matter how you run it. You're right to look at separation of priviledge to bridge the gap between the less- and more-secure environments. I'd just add that your chosen bridge (and I like text files for this) should desc...
1
0
115
2013-01-05T14:08:17.710
api_errors
softwareengineering.stackexchange.com
93,977
Join multiple Tables by date
i got some problems on my approach to join a couple of tables by a date range. This are my tables: [CODE] and [CODE] As a first step, i created a date range and then tried to join these two tables to it. This is my SELECT statement: [CODE] This was the Result: [CODE] Thats a problem because when i GROUP BY DAT and then...
You could join to the 2 tables separately (and [CODE] ) and then join them together: [CODE] Or use inline subqueries: [CODE]
0
1
4,364
2015-02-27T08:07:52.620
hadoop_errors
dba.stackexchange.com
66,072
Is it advisable to add indexes to a data warehouse's staging area?
We have a data warehouse built in MSSQL 2012, Staging area, EDW, cubes and reports. In the staging area, the tables are a 1:1 copy of those supporting the systems used to fill the DWH with. The staging area tables are TRUNC'ed and refilled daily (nightly). Then views on those tables provides input for the ETL process t...
We have a similar situation as the one you described, except that these copied tables are only used for ETL (by select queries). I'll describe how we approached it, but you have to evaluate if it works for your environment (see Jon Seigel's comment at your question). The concept is straightforward: We index these "copy...
4
1
5,198
2014-05-28T14:38:13.810
data_quality
dba.stackexchange.com
199,224
DB2 - Inserting a timestamp operation result in a timestamp field
I got a some javascript Dojo code assembling a query from JSON variables and I have been trying to insert a timestamp in it. This is my test table ( [CODE] ): [CODE] and [CODE] are varchars [CODE] is an integer [CODE] is a timestamp I found out these statements work fine: [CODE] But this one does not work as expected. ...
Following sequence of statements worked fine in Db2 (for LUW) [CODE] I just copied the second statement from your question. This means you made some other mistake running it or you are maybe not running it on Db2 LUW - this is why it is always useful to specify the OS.
1
1
11,633
2018-03-02T14:19:53.807
warehouse_errors
dba.stackexchange.com
1,114,449
My server is attacking other servers
I've been reached by OVH multiple times regarding a dedicated server which I bought from them, and they're saying that the server is attacking other hosts on their network. The first time, the server was an open proxy due to a misconfiguration (I've enabled the proxy with Apache and didn't restrict it), so I've reinsta...
Attack is relative, can they quantify what the "attack" is? Sending errant packets does not constitute an attack. The packet count and payload size is consistent. Since you own the server instance, you could do a packet dump of the data leaving your server with wire shark, and it would not take long to narrow down what...
-1
1
184
2022-10-31T11:21:00.380
database_errors
serverfault.com
22,714
How do I replicate a MySql server's data without using mysqldump?
I've got a working server with a lot of data on it. I've built a new server that will be lots faster. Both are running x686 code on Debian Squeeze. A quick test using one of the tables shows that it takes about ten days to load up the output of a simple mysqldump dbname tablename > table.sql mysql dbname Since I have l...
The question essentially equals this one: "what is a fast backup + recovery method for MySQL". This is because setting up MySQL replication is essentially taking a backup of some sorts, and opening it on another machine (and then syncing the slave with the master, which is a simple operation). So it boils down to the f...
3
3
9,102
2012-08-18T17:56:39.310
database_errors
dba.stackexchange.com
96,353
How to insert an "index.php" into every url using .htaccess?
Example: My Site gets called like that: [CODE] Now, .htaccess needs to rewrite this URL into: [CODE] But the problem is: In case of an img , css or js directory, no redirection should happen. How can I achieve this? I only know the mod-rewrite engine is my friend here.
To complete Khal Weir's answer, the resulting rule should be something like : [CODE]
1
3
4,775
2009-12-21T15:27:34.270
infrastructure
serverfault.com
750,492
F5 SSL offloading custom 404 page
We have an F5 that we want to use for SSL termination in front of our JBoss servers with NetIQ auth, and we have the configuration working for all normal traffic. The problem is with our custom 404 page. The static site on which the page is hosted has an http and and https component. When serving up the custom 404 page...
sorry for the delay on this. I browsed DevCentral for a possible solution and think this article could have a solution for you. irules for 404 redirect Effectively, an irule would exist on your virtual IP and redirect any 404 behavior to a new custom page (or new server if you want). [CODE] This may get you started at ...
1
0
1,559
2016-01-20T14:28:57.600
api_errors
serverfault.com
73,583
How to train-test split and cross validate in Surprise?
I wrote the following code below which works: [CODE] However when I do this: (notice the trainset is passed here in cross_validate instead of whole dataset) [CODE] It gives the following error: [CODE] I looked it up and Surprise documentation says that Trainset objects are not the same as dataset objects, which makes s...
EDIT: It seems I misunderstood the task at first, so here's my correction. Hope it works this time It seems like what you're trying to do is similar to what is in the documentation under [CODE] (or this github issue which seems to be exactly what you want) The code manually splits the dataset into two without using any...
0
1
3,626
2020-05-05T09:34:05.210
data_quality
datascience.stackexchange.com
970,340
Add calendar event to Nextcloud using curl
I am unsuccessfully trying to add an event to Nextcloud agenda (Nextcloud version 16), using cURL : [CODE] The content of the myEvent.ics file : [CODE] I've validated this content using https://icalendar.org/validator.html The UID is randomly generated using : [CODE] And the same for the file / ressource name [CODE] I ...
Found the solution : the [CODE] option of curl is not ok here, since it does not preserve the line feeds of the submitted data file. Instead, one must use the [CODE] ! This option preserves the line feeds and then the Nextcloud server accept the request and creates the event in the calendar. See https://curl.haxx.se/do...
0
1
1,282
2019-06-06T08:33:21.243
infrastructure
serverfault.com
285,339
Share service instances amongst all controllers?
We've taken over coding on a .NET MVC project, and as I'm relatively inexperienced with many of the MVC design approaches, I'm working on getting a good understanding of the design choices. One aspect that's caught my attention is that each controller class is initialised using existing instances of services. In my non...
It looks like Dependency injection has been implemented in the MVC project. This is considered best practice these days and def superior to your two options! You would expect the services to be instanciated per request rather than singletons which would persist over all requests. (although these are sometimes used) How...
2
1
1,604
2015-05-30T07:19:30.207
api_errors
softwareengineering.stackexchange.com
74,029
Tracing the origin of noTimeout cursors
I'm currently managing a Mongo DB instance that has several applications using it. It's been accumulating noTimeout cursors, and, while it's easy enough to cull them if they start getting overwhelming, it's a waste of memory and I'd like to track down the culprit process. Is there some way to view the origin of noTimeo...
I ended up using this command: [CODE] The expanded form of the actual js in there is [CODE] The command will get the information from [CODE] about current querying cursors for every db and save it into the file [CODE] .
2
2
905
2014-08-14T19:44:05.500
pipeline_ops
dba.stackexchange.com
502,822
Misunderstanding about packet travel over NLB-Network
I'm doing a LAB about NLB(Network load balancing) on Windows Server 2008 - Unicast mode. But I can't understand how the packet travel across the Network... http://technet.microsoft.com/en-us/library/bb742455.aspx http://technet.microsoft.com/en-us/library/cc782694.aspx In this reference. They said that: If the cluster ...
A switch learns what MAC addresses are connected to each port by looking at the source MAC of packets coming into it. If a packet comes in on port 1 with a source of AA:BB:CC:DD:EE:FF, it knows that any packets destined for that MAC address can go out through port 1. If a switch receives a packet for a MAC address, and...
0
1
819
2013-04-26T09:54:43.307
infrastructure
serverfault.com
853,196
Restrict NT Domain / AD user or desktop to read-only access to ALL shared folders
We have a long time fulltime employee going into working from home via Remote Desktop connection to her office (Win7 or Win8, don't quite recall) machine, that would work 24x7 for it. We think there would be a risk, that her home computer can possible get infected by viruses, or the children/guests can get access to it...
"Is there such a functionality in NT domain or GPOs ?" The answer is: No. To accomplish this goal: You should set ntfs and share permissions using GPOs on all servers. I won't explain how, the web is full of how-to's for this. Then, an experienced admin can build a template so that a group called "GoodGuysFromOutsideTh...
2
2
1,128
2017-05-31T11:20:01.377
infrastructure
serverfault.com
957,485
How can I fix link-mtu and tun-mtu are used inconsistently warnings in OpenVPN?
when connecting to my OpenVPN I am getting the following warnings in the client log: [CODE] How can I fix this inconsistency in the MTU values? I have been reading about some not so intuitive MTU value calculation rules, but I don't feel safe about changing these values without knowing what's going on and stick with th...
Okay, I managed to fix these warnings by inserting: [CODE] in the client's .conf/.ovpn file
12
9
71,334
2019-03-09T10:14:58.617
infrastructure
serverfault.com
57,923
Calulating savings between two schemes
I've normalized a single table to reduce the number of nullable columns from 3 down to 0. The idea was to save a little drive space but I'm seeing a 45% decrease in space needed to store the same amount of data between the two schemes but it just seems too good to be true. Am I calculating or going about this incorrect...
Turned out that the query I was using to calculate space combines indexes and data sizes into one. I used the [CODE] procedure as well as the below query to track down the the vast size discrepancy to two very large indexes on the current state table that I think were created by the tuning adviser. Those two indexes ac...
3
1
63
2014-01-30T22:55:35.990
warehouse_errors
dba.stackexchange.com
221,782
Error purging PostgreSQL database. Reason: ERROR: syntax error at or near "exists"Position: 15
I am using PostgreSQL database with Tomcat Server. When I checked webpage today, it shows about mentioned alarm with following logs: [CODE]
After checking postgres logs, I update postgres version from 8 to 9.2 and everything works now.
0
1
775
2018-11-05T07:26:56.997
database_errors
dba.stackexchange.com
231,578
nginx + php-fpm - where are my $_GET params?
I have a strange problem here. I just moved from apache + mod_php to nginx + php-fpm. Everything went fine except this one problem. I have a site, let's say example.com. When I access it like [CODE] [CODE] is [CODE] and there is a [CODE] also. But when I access [CODE] [CODE] is [CODE] yet there is no [CODE] (there is n...
You are not passing get arguments in your try_files call in the question: [CODE] Should be: [CODE] You can use either $query_string or $args , they are equivalent - except [CODE] is readonly (or alternatively, [CODE] can be updated by any other logic you may wish to add)
36
75
44,145
2011-02-05T15:02:41.777
infrastructure
serverfault.com
34,444
Query is slow for certain users
I have a couple queries called from a C# .NET web application which are always fast for me (I am an local admin on the SQL Server) but for a group of users (domain group with required permissions), the query is incredibly slow to the point it times out in the application. What would cause the exact same query to run di...
If the parameters are the same (I'm assuming that's what's meant by [CODE] ), it shouldn't be parameter sniffing (users get a bad plan for the wrong parameter(s)), but rather users are getting different plans for the same parameter(s). It could be because of settings like [CODE] and [CODE] , which you can compare in [C...
11
5
8,141
2013-02-08T22:08:48.077
database_errors
dba.stackexchange.com
672,855
Redirecting to game ports based on subdomain?
I've been browsing, looking for an answer and there does not seem to be one that works. Here's the situation: I have a web server (running Apache) that I only have access to the files for. It hosts all of my websites. I have a VPS that is hosting multiple game servers. They are not the same machine. My goal is to have ...
No, this is not possible. The game would need to support something like HTTP's Host header, which is unlikely to happen.
-2
0
851
2015-03-03T23:31:52.823
infrastructure
serverfault.com
324,339
Support needed creating Dovecot listener on Debian ( postfix)
I would like to create a dovecot lmtp listener under /var/spool/postfix/private/. Because postfix runs chrooted by default under debian. How can I do this? Grtz
You can't do this. LMTP is a network protocol that uses TCP/IP for data exchange. What you describe is a Unix socket, but this is not applicable for LMTP.
0
1
245
2011-10-24T16:58:46.587
infrastructure
serverfault.com
46,894
Are short abbreviated method/function names that don't use full words bad practice or a matter of style?
Is there nowadays any case for brevity over clarity with method names? Tonight I came across the Python method [CODE] which seems like a bad name for a method to me. It's not an English word. It apparently is an abbreviation of 'representation' and even if you can deduce that, it still doesn't tell you what the method ...
I heard a great quote on this once, something along the lines of: Code is written to be read by humans, not computers If computers were all we cared about we would still be writing assembler, or 1s and 0s for that matter. We have to consider the people who will be using our code, as an API for example, or the person wh...
24
36
13,435
2011-02-11T21:34:12.227
api_errors
softwareengineering.stackexchange.com
184,657
agile / scrum and functional specs
I work in a small team of four devs, one domain expert and one manager. We are looking to move to using scrum to try and formalise our processes. From what I understand of agile, it seems to be close(ish) to what we are doing anyway. We have a brief document with the overall features our product will have. As we come t...
Given the lack of this document how are we supposed to prove that the system does or does not do what it's supposed to to an auditor? Why is that a given? There is no rule of scrum that the only thing created is software. Make your acceptance criteria include "done when we have a detailed ISO 9001 compliant functional ...
7
9
3,513
2013-01-24T09:13:29.727
api_errors
softwareengineering.stackexchange.com
301,686
Microsoft SQL Standard 2012 DB recovery without .BAK file?
Morning, I'm posting for some guidance on an issue we're up against. We had a server crash and don't have .BAK file for our SQL DB (the backup/images failed). Anyhow, we DO have a file level backup of the entire Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER folder. Is there any hope at being able to piece this...
If the mdf and ldf files for the database were in that directory, you might be able to get the database up and running again by trying to "attach" the mdf and ldf files into a new SQL Server instance. The answers on these other Stack Overflow / DBA questions go into more detail on exactly how to attempt that: SQL Serve...
2
2
41
2021-10-26T14:22:22.940
database_errors
dba.stackexchange.com
102,551
Is Primary Key Non Clustered recommended?
I am designing a database table. Columns are RouteId ,Origin , Destination. RouteId is a string, it is always unique but length will be more than 60 characters . Since RouteId is unique, I am thinking to make it Primary key and since the size is large (nvarchar(1000)) I am thinking to make it non clustered index. My Qu...
In a general sense, the Clustered Index should be what is used most often to access and sort the data. A major factor in deciding what to use for a Clustered Index is that the key field(s) will be copied into all Nonclustered Indexes on that table. The main concern for choosing a PK is finding the field(s) that uniquel...
4
3
3,782
2015-05-27T12:49:12.273
warehouse_errors
dba.stackexchange.com
443,252
How can I use builders for products with incompatible interfaces?
I am working on a program to automatically design heater units based on varying client specifications. The process for creating each heater is quite involved and requires multiple optional steps depending on the type of the heater and it's options. I am trying to figure out what the best way of creating heater objects ...
Without delving into details, since builder design pattern is a solution for object creation, an approach using builders can be a viable one with the straight forward implementation of one builder that sets values while a sequential read of client's specification. The details of building only heaters of types that are ...
-1
0
195
2023-01-06T21:59:41.477
database_errors
softwareengineering.stackexchange.com
1,030,520
Virtual Host Setup Redirecting Request to Local IP address
I want to make an application running on apache2 (ubuntu) available over the internet. So i decided to setup virtual host after purchasing a SSL certificate. Everything works fine on my Local network. When I visit 172.16.2.28/moodle (on local network), Everything works fine. When I also visit example.com, I am served t...
Moodle redirects you exactly how you configured it: [CODE] Change that line to the proper URL: [CODE]
0
0
734
2020-08-18T00:17:42.743
api_errors
serverfault.com
344,993
In MVP, should we call repositories from the Model or the Presenter?
Note: The example in this question is for demonstration. Please focus on the question and not on problems in the example (such as tight coupling, lack of Dependency Injection etc.). I have a form to create a contact with a button for saving it. Here are the [CODE] and [CODE] (written in C#). View: [CODE] Presenter: [CO...
In an MVP model, the presenter acts as middleman between the view and the model. In consequence, from the presenter you shall call the model and not short- circuit it by calling repository directly. The model has to take care of the persistance, including locking if necessary, maintaining the unit of work , caching (e....
5
5
3,054
2017-03-27T10:37:37.500
api_errors
softwareengineering.stackexchange.com
46,127
Recursive self joins
I have a [CODE] table, which can be simplified down to this: [CODE] where [CODE] is nullable, but might be a key for its parent comment. Now, how can I [CODE] all descendants of a specific comment? The comments might be several levels down...
Hierarchical queries , as those recursive queries are known, are now supported in MySQL 8 . Old Answer Alternatively, you can find a dynamic (and thus, potentially dangerous) trick here: https://stackoverflow.com/questions/8104187/mysql-hierarchical-queries You can also find a discussion on how to store hierarchical da...
16
17
58,885
2013-07-11T04:21:56.870
warehouse_errors
dba.stackexchange.com
1,114,901
What are the default settings for the "Default Domain Controller Policy"?
TL;DR : See title. Background : Back in the "old days", we did a lot of bad things: We used the same server for Active Directory and other services (anyone remember Windows Small Business Server?), and did not follow best practices with respect to Group Policies. Fortunately, those days are over, but we still use the s...
The information you are looking for is below: SOURCE: http://www.sysadminlab.net/windows/restore-default-domain-policy-and-default-domain-controller-gpo-settings-to-default
0
1
10,168
2022-11-05T16:27:25.960
infrastructure
serverfault.com
316,161
Installing SQL 2008 Enterprise - which OS?
Do we go with Windows Server 2008 Standard or Enterprise? We're not doing clustering. 32GB of memory with 2 processors, local disks.
I really don't believe that you will NEVER upgrade your memory, so I would suggest you stay away from the Standard Edition and/or the x86 architecture. [CODE] Also why not go directly to Windows Server 2008 R2 (which is x64 only) and stay with an older release? [CODE] I believe that the from the above tables, the Enter...
-2
0
82
2011-09-28T00:11:31.420
infrastructure
serverfault.com
225,359
SQL Server database level roles for creating tables
Is there a way to create or change a special role for creating tables? Our software developer team has [CODE] and [CODE] roles but they can not create new tables. I read this article related to database level roles. I don't want to grant [CODE] role because there is too much permissions in this role. So my question is ...
If you want to create a role with specific rights, you could do this: [CODE] Create the test user: [CODE] Add the user to the role: [CODE] Test the user's permissions: [CODE] Result [CODE] Or like Tom stated, add the user to the db_ddladmin role. [CODE]
6
9
29,407
2018-12-19T10:52:52.243
database_errors
dba.stackexchange.com
106,642
In a 4 hour Powershell 101 class should I skip for/while/do and just teach ForEach-Object
I'm making a syllabus to teach non-programmer co-workers PowerShell. The first non-pilot group I will run the course with will be a team that deploys and configures one of our software products. They are bright intelligent motivated IT workers, but not programmers. I intend to cover the basics (variables, arrays, funct...
Why skip them? I appreciate you are time restricted, but include the syntax of each with a little example in the course notes at the very least. You don't have to spend more than 30 seconds describing them. If they can't code a "display the first 10" easily I think you've missed a trick.
2
5
454
2011-09-08T10:38:35.543
database_errors
softwareengineering.stackexchange.com
306,438
nginx loadbalancing - Only log server failures?
I currently have a medium sized cluster (15 servers), with 3 nodes running nginx load balancing with ip_hash. The protocol being balanced is a very high rate of connections, so I have my max_fails set pretty high to avoid false positive server down messages. Is there a way to monitor when nginx marks a server as offlin...
We tried to do this too for our nginx and ended up learning that NGiNX keeps the upstream status on a per worker basis, so unless you have only one worker it is hard/difficult to track using a module. However, we did notice that if you have upstream data in your log it will point out when nginx hit more than one backen...
2
2
202
2011-08-30T14:26:13.897
infrastructure
serverfault.com
1,102,174
Firewalld port forwarding fails
I'm trying to replace an existing tunnel with firewall rules: [CODE] This should forward all incoming TCP connections to 100.1.1.1 The problem is that it does not work (the port stays closed). I'm trying to understand what I'm doing wrong, and the only thing I can think of is that the destination IP address is on a dif...
You probably need to add masquerading to your port forwarding (to apply SNAT along with the DNAT port-forward, so that [CODE] knows to respond back through your firewalld host). The simplest way to do that is to add the outgoing interface for your port forward (ie the tailscale interface, eg [CODE] ) to the [CODE] zone...
0
1
3,180
2022-05-31T20:03:59.437
infrastructure
serverfault.com
651,933
LSI Megaraid alarm - clearing hotspare
I have several Supermicro servers with LSI Megaraid controllers, 9266-8i. One recently lost a drive; I replaced it as usual, but it is still beeping on reboot. It is set up as RAID 10 + hotspare. [CODE] shows me: [CODE] Since the beep pattern is 1 second on, 3 seconds off, which is the code for "SPEAKER_HOTSPARE_ENTRY ...
Source: IBM tip H206526 There is no functional impact. To prevent the message from appearing in the system event logs: Open MegaRAID Storage Manager. Select Tools --> Monitor Configure Alerts. Select Change Individual Events. Highlight event ID 406. Deselect the System log check box.
8
5
16,736
2014-12-11T17:08:41.747
infrastructure
serverfault.com
943,193
Server space issue : how to merge drives
my server is having space issue below is what is see when using df -h , my space of /dev/m2 is getting fulled say 99% frequently and it causes issue with my sessions and all , i want merge /dev/m3 with /dev/m2 or is there way i can move code and all to m3 so i do not get space issue [CODE]
This is what happens when default storage partitioning is used without thinking about capacity planning or layout. Plan a storage migration to LVM. Test your backup restores. Create new volume groups for your data. Create new logical volumes and file systems. Only as big as needed: if you have a 5 GB [CODE] only make t...
0
1
42
2018-12-06T19:02:53.730
infrastructure
serverfault.com
1,008,645
Is it possible to restore postgres database with a non-DBO user?
I'm struggling with finding an appropriate backup / restore method for my postgres databases. My requirements are these: DB owner is a non-superuser account. it only has "can login" and "inherit parent role rights" privileges. backup should be transferable among multiple DB hosts (e.g. development local copies) databas...
You say "backup / restore" but I think you mean "distribute copies of". If you mean "restore", then use the standard tools in the standard way. Anything else just increases the Risk of something going [badly] wrong when you can least afford it to. Yes, these tools require elevated permissions. That's just the Nature of...
0
0
768
2020-03-27T07:23:28.310
database_errors
serverfault.com
419,475
Distributed message queue, propagating queue leader/follower information
I'm designing a distributed queue message queue and I'm not sure how to get the leader information to another component. This is my current design: I have the following components: FrontEnd: request validation, authentication, SSL offloading, server-side encryption, etc Metadata Service: keeps queue metadata informatio...
The problem with the last option is that I would still need somewhere to store queue metadata information like creation date. Other than you may store other fields (like timestamp) in Metadata database, Metadata service should scale out well for reads and be highly available as every PUT and GET call for a message resu...
1
5
312
2020-11-29T11:39:31.103
database_errors
softwareengineering.stackexchange.com
816,381
How to shut down haproxy with systemd
I have a RHEL 7 box running HAProxy 1.5.x. I want to be able to shut it down gracefully so that keepalived can fail over to another node on the cluster and obtain the VIP. I can do this if I manually kill the process outside of systemd [CODE] However, I'd like to do this from systemd. Something like [CODE] But when I e...
The brute force method would be; killall -TERM haproxy. I'm sure there is a much more elegant way to accomplish this. Hope this helps.
2
1
3,285
2016-11-22T16:51:39.623
infrastructure
serverfault.com
1,010,432
RHEL7.7 How do I run "debuginfo-install kernel" when using a local repo that is an iso mounted locally?
I want to use "crash" to look at the kernel core. crash /usr/lib/debug/lib/modules//vmlinux /var/crash//vmcore But /usr/lib/debug/lib is empty and it looks like that directory (debug libraries) is populated with "debuginfo-install kernel" I have the iso mount on /mnt/disc and yum recognizes the repo. yum repolist all L...
If you have an iso image or a DVD try the below step to have it mount and install packages in the local system. mkdir -p /mnt/disc mount -o loop RHEL7.1.iso /mnt/disc [CODE] yum repolist enabled Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered to Red Hat Subscription...
0
0
1,956
2020-04-01T15:42:46.660
infrastructure
serverfault.com
187,201
Reducing Memory Pressure When Performing Parallel Staging Table Loads
I'm attempting to migrate several very large tables in my data warehouse to new partition scheme (the older partition scheme was based on a [CODE] function, that wasn't regularly split, and the most recent data is top-heavy in the last filegroup). The tables are sufficiently large (5 billion rows, 400 GB data space), t...
If you take a look at my answer over here , I mention a new(ish) query hint called [CODE] that you can use to further control memory grants at the query level. Documentation is here . Assuming queries are in the [CODE] pool and you haven't altered it, right now they can ask for 25% of your 768 GB of RAM. That's a lot o...
2
1
198
2017-09-28T18:19:24.297
warehouse_errors
dba.stackexchange.com
1,005,023
Poor performance with rook, ceph and RBD
I have a k8s cluster on 4 VMs. 1 master and 3 workers. On each of the workers, I use rook to deploy a ceph OSD. The OSDs are using the same disk as the VM Operating System. The VM disks are remote (the underlaying infrastructure is again a Ceph cluster). This is the VM disk performance (similar for all 3 of them): [COD...
It is not enough information about your CEPH cluster. But some thing will improve the performance: It is necessary to put the journal on separated SSD (NVMe is even better). Even if you SSDs. Use 10GbE network and separate cluster and external network. It will improve network latency. Don't use 3 copies volumes. It is ...
1
4
3,957
2020-02-28T19:08:05.370
pipeline_ops
serverfault.com
116,924
cannot repair database in mongodb
I accidentally deleted 2 data (mydb.47, mydb.62) files from my [CODE] of my mongodb. I have rest of the files in place... Now my mongodb won't start up..I tried repairing it using this command [CODE] Repair finished with no errors. Mongo docs say You may also wish to move the repaired files to the old database location...
As per my knowledge you cannot reclaim your data using MONGO. But you can go for some other third party tools that can help to recover data from your hard disk. I hope this link will help linux data recover on unix.stackexchange.com
0
1
1,012
2015-10-03T23:49:28.963
database_errors
dba.stackexchange.com
45,691
How can positional encodings including a sine operation be linearly transformable for any offset?
In the paper "Attention is all you need" the authors add a positional encoding to each token in the sequence (section 3.5). The following encoding is chosen: $ PE(pos, 2dim) = sin(pos / 10000 ^ {2dim/d_{model}} ) $ $ PE(pos, 2dim+1) = cos(pos / 10000 ^ {2dim/d_{model}} ) $ The text states that "for any fixed offset $k$...
I elected to ask this question on the Mathematics Stack Exchange and I thought it prudent to add the answer here: https://math.stackexchange.com/q/3119882 From what I have learned from @Servaes , who was kind enough to answer the question, there is a function $\operatorname{PE}(\text{pos}+k,2d)=\operatorname{PE}(\text{...
4
3
364
2019-02-16T14:55:10.860
data_quality
datascience.stackexchange.com
406,301
LdapErr: DSID-0C0903AA, data 52e: authenticating against AD '08 with pam_ldap
I have full admin access to the AD '08 server I'm trying to authenticate towards. The error code means invalid credentials, but I wish this was as simple as me typing in the wrong password. First of all, I have a working Apache mod_ldap configuration against the same domain. [CODE] I'm showing this because it works wit...
Tail between my legs I'll have to answer this one because I have the embarrassing inside information. I did not realize that you had to create a regular Unix user on the system to be able to login. As soon as I created a user matching ivasta I was able to login with that users AD password. Only thing I can't do is chan...
2
1
7,483
2012-07-10T09:05:13.793
api_errors
serverfault.com
457,117
Provider claiming "all web servers in the cloud are automatically kept in sync" - should I be skeptical?
I'm no expert in cloud computing - I've spent a fair bit of time researching it and various providers but am yet to get any hands-on experience with it. From what I've read about AWS and auto-scaling EC2 instances though, it seems as though each instance should be completely decoupled from all other instances. i.e. If ...
To serve an application that relies on a consistent backend filesystem, the synchronization would have to be omnidirectional and would need to block any write requests until all copies are updated... very hairy business to get working correctly to say the least, and any internal bug of such a system will have cataclysm...
0
0
138
2012-12-11T16:53:02.110
data_quality
serverfault.com
95,342
NTP is running, system clock still not in time - what gives?
A Debian Stable (5.0.3) server is running [CODE] , and connected to the internet. Still, the system clock is about 5 minutes wrong. [CODE] Relevant parts (I think) of [CODE] : [CODE] I know NTP doesn't necessarily bring the clock in time immediately. Still, how many hours or days you need to wait in order to reasonably...
Stop ntpd, run [CODE] 3 times, start ntpd, check up on [CODE] , delay, offset and jitter should be non-zero.
28
24
87,948
2009-12-17T14:51:12.600
infrastructure
serverfault.com
163,077
Domain computer account deleted, trust relationship broken and local admi is disabled
My computer account was accidentally deleted from Active Directory, when I try to logon to my Windows 7 PC I get the message "the trust relationship between this workstation and the primary domain failed" and I can't logon. In Windows 7 the local admin account is disabled by default, there is one other local account th...
If you have logged on as a domain admin recently then you can pull out the network cable and log on with the cached credentials, then enable a local admin to unjoin/rejoin.
-1
4
14,525
2010-07-22T15:10:01.943
database_errors
serverfault.com
779,832
apache reverse proxy with basic auth
I am trying to reverse proxy a web site with apache httpd 2.2 on centos 6. Access to part of that site should be restricted via basic auth. To that end, I have the following config: [CODE] The reverse proxy part is working, i have tested without the auth. Also the auth part is working, I have tested with a simple index...
After watching the traffic with [CODE] , I found that it is indeed the proxied server that is sending another authentication request. The reverse proxy forwards the [CODE] header, and the application treats that as a valid login procedure. However, since the login credentials from the revers proxys htpassword file do n...
0
1
4,695
2016-05-30T14:52:45.043
api_errors
serverfault.com
617,010
ssh, telnet to AWS EC2 instance time out
I can't connect to my AWS EC2 Ubuntu instance. I appear to have the address and user right, the security group allows connections on all ports, and I'm using the right key pair. SSH and telnet keep timing out, though. I don't know what I'm doing wrong. Suggestions? I'm quite new to AWS.
Make sure your security groups are fully set up properly. Each rule in a security group consists of 3 parts the protocol (TCP,UDP,etc), the port range, and the source IP address. Protocol / Range The first two can also be set via common protocols (SSH, SMTP, etc). IP Address There are three options for the IP address: ...
0
2
3,488
2014-07-31T18:15:49.647
infrastructure
serverfault.com
1,112,308
Sonarqube app pod is not connecting with PostgreSQL DB pod when deploying to Kubernetes
I am trying to setup SonarQube in a Kubernetes cluster. The cluster was made using KubeADM in the AWS cloud. I have the following files for the setup. Sonarqube App Deployment file Sonarqube App Secrets file Sonarqube-PostgreSQL Deployment file. Sonarqube-PostgreSQL Persistent Volume and Volume Claim file Sonarqube-Pos...
You are using the container incorrectly. The sonarqube and postgres deployment are both referencing the same PVC, which cannot work. Only postgres needs it, as the sonarqube container only comes with an embedded H2 DB and is supposed to use the postgres deployment. Add a service to your postgres deployment and use the ...
-1
1
844
2022-10-05T14:50:26.463
pipeline_ops
serverfault.com
615,523
Why would a bind mount unmount unexpectedly?
I have configured some bind mounts on all users's home directories to access a shared directory (or parts of it) that is somewhere else in the file system, so I have entries like these on my fstab file: [CODE] Yesterday before I left the office all the binds where working as normal, however when I came to work today on...
You should check the cron files for whatever is inside /etc/cron* and if any "sudoed" users got a cron inside /var/spool/cron/crontabs/ that could umount something. autofs can also do stupide stuff with mount binds, but I've never seen it happen.
3
1
471
2014-07-25T15:10:19.080
infrastructure
serverfault.com
195,749
MySQLI stored procedure return PK/AI insertID
I am using a PHP framework called CodeIgniter for my application. This is using the MySQLI driver for its database work. This framework has built in support for things like a [CODE] where I could just code the statement into the model, but I am trying to use a [CODE] setup. Anyway, I posted some questions with their su...
Add [CODE] to the argument list. Just before the [CODE] , add this statement: [CODE] Then decide how you can retrieve the id from whatever variable you pass into the proc.
2
1
346
2018-01-19T04:11:58.647
database_errors
dba.stackexchange.com
559,061
How do NTFS permissions become improperly ordered?
I have some files on a network share and they were read-only accessible to users. I had set the permissions to provide full rights to all domain users - when I checked the main folder, this was still set, but at deeper levels it was sent to read-only. When I right-clicked on the child folder it told me that the permiss...
There is no one definitive way for them to get out of order, it can happen a few different ways. Some that I've run into: Making a rights change and hitting cancel cancel OMG cancel in a panic before it gets done applying (kinda bad if you do it at the top of a 4-million file directory tree). Command-line utilities (I'...
8
6
1,923
2013-12-04T01:56:05.260
infrastructure
serverfault.com
321,006
Run pt-online-schema-change with multiple ALTER queries synchronously
I want to run 3 ALTER queries with pt-online-schema-change tool: [CODE] However I face this error: [CODE] So it looks like is trying to run these 3 queries asynchronously rather than 1 by 1. How can I prevent that?
Try doing that like this [CODE] This should work because I have seen [CODE] present ALTER TABLE commands dropping a single column out of an index by dropping and redefining like that. To verify this, make an empty copy of the table and run [CODE]
1
3
657
2022-12-15T12:30:36.073
warehouse_errors
dba.stackexchange.com
67,881
Machine Learning - How to predict set of fixed fields based on past features
I have quite a large dataset (> 100k rows), which contains information for logistical shipments. (export shipments) The dataset looks like this: [CODE] So what we have here is a list of past shipments. It shows the relationship between shipper and consignee, and from where the shipment was from and where it was sent to...
It's a supervised classification problem: you're trying to predict the destination (class) based on some categorical features (input columns). I would suggest starting with some simple algorithms such as decision trees or Naive Bayes. However I'm guessing that logistical shipments can evolve over time: maybe a shipper ...
1
1
28
2020-02-11T09:42:24.603
data_quality
datascience.stackexchange.com
145,658
SQL query not selecting records
I'm trying to select * records. The problem is some only have values ('MNT', 'NPT', 'OM') for attrib_type 1-3 in this case. Attribute types 4 & 5 do not exist in the older records therefore there are 4500 records that are not being selected. I would like to be able to select ALL records even where there is no attrib_ty...
As Mihai said, use a LEFT JOIN on feat_attrib_type_4 and feat_attrib_type_5. Either old style (as you have) or ANSI joins style would work. For the former add (+) after every reference to a column in the where clause from those two aliases. For the latter, convert the statement to ANSI join syntax and add LEFT before t...
0
1
282
2016-08-02T16:22:05.833
api_errors
dba.stackexchange.com
705,706
Why is my puppet master not using hiera?
I have a puppet master (version 3.8.1) set up, with a hiera.yaml file which I think is set up correctly, like so: [CODE] When I run the following command: [CODE] (ip-10-1-3-7 is one of my nodes) I do not see any information in the catalog based on my hiera data. Even more confusing is I do not see this line in the debu...
Verify that this line is in your [CODE] : [CODE] Then try running this command: [CODE] This should give you output like this: [CODE] Running the command above without the [CODE] part should give you something like that too: [CODE] proving that classes are being loaded. The data you shared doesn't make clear if any clas...
1
3
2,633
2015-07-14T17:48:48.187
pipeline_ops
serverfault.com
839,267
Exchange mailbox move-request from 2013 to 2016 gets stuck at Initial Seeding
I'm in the middle of migrating from Exchange 2013 to 2016. Most of the moves have gone well, however, some mailboxes seem to be getting stuck at Initial Seeding , and then after some hours of stalling here, fail at FailedStuck . Running [CODE] shows that the move is stuck running IsInteg because they are large mailboxe...
I found a simple solution to this problem: Downgrade your Exchange 2013 box. As part of my migration plan, we had 2013 also in its own 2-node DAG. The 2nd node was brand new and had been patched up to the latest CU at the time: AdminDisplayVersion : Version 15.0 (Build 1236.3) (Exchange 2013 CU14) The old 2013 node was...
2
0
7,688
2017-03-19T15:25:03.540
infrastructure
serverfault.com
192,314
troubling anonymous Logon events in Windows Security event log
I have a dedicated server hosted on Rackspace Cloud, and this morning as I was casually checking the Security event log, I saw a series of successful Logon events that are troubling. It appears random IPs are successfully "logging in" to my server somehow. How is this possible? I have a very strong Administrator passwo...
The "anonymous" logon has been part of Windows domains for a long time--in short, it is the permission that allows other computers to find yours in the Network Neighborhood, find what file shares or printers you are sharing, etc. It is also why Windows admins say never to grant share permissions to the "Everyone" group...
4
5
44,228
2010-10-18T19:27:03.733
api_errors
serverfault.com
283,731
How does the result of Product Backlog revision during Sprint Review influence the next Sprint's Backlog?
On scrumguides.org , the following is said about the result of a Sprint Review : The result of the Sprint Review is a revised Product Backlog that defines the probable Product Backlog items for the next Sprint. However, a Sprint Review is something you do at the end of a Sprint, meaning the next one is about to start a...
By-products of the sprint review include a possible change to average velocity, and feedback from the stakeholder. That feedback might end up being "no, that's not what I wanted" or "excellent! Let's use that design for the rest of the app!". All of that can potentially change the items or order of items on the backlog...
3
2
466
2015-05-13T10:01:04.547
data_quality
softwareengineering.stackexchange.com
415,612
RHEL BIND Server Intermittent error
I have a RHEL 5.7 server running bind-9.3.6-16.P1.el5. At seemingly random points during the day, the DNS will fail to resolve hosts on the LAN for about ten seconds. WAN hosts always resolve. Then it goes back to working fine. I have logging enabled and there are no errors in the logs. Total devices using this DNS ser...
There's a RH KB article which says this happens when the cache expires, but still contains IPv6 information (they're pretty vague in the root cause). They suggest disabling IPv6 support, if that's an option. add [CODE] to /etc/sysconfig/named
3
5
1,331
2012-08-08T16:28:52.660
infrastructure
serverfault.com
1,061,860
Observing conflict on VPN when multiple users on same network attempt to connect and access EC2 Instance behind security group
We have external services that are behind an Amazon EC2 security group, users connect to a VPN (this is supplied and maintained by a third party) so that they are given an IP that is consistent over time and accepted by the security group rules. Multiple users can connect on their own networks and use the vpn/websites ...
Issue here was the VPN provided. VPN installed was L2tp/IPsec VPN, the limitation of this is that it allows only one user from a particular public IP address to connect at one time.
2
0
149
2021-04-28T12:58:32.797
infrastructure
serverfault.com
333,104
Changing Isolation Level after retiring database from active/production use
We have a product that uses SQL Server (currently 2019). We're moving to a different product, but will keep the database from the old product around for several years for reporting purposes. Part of this project involves reviewing account permissions for who still needs access and revoking write permissions for most ac...
I am also considering changing the default isolation level for this database from the default READ COMMITTED to instead be READ UNCOMITTED. Since the data should no longer change, things like dirty reads, etc are no longer a concern, and in theory we can (at least marginally) improve performance by going to the less re...
0
2
52
2023-11-14T21:26:10.020
database_errors
dba.stackexchange.com
403,286
How to get physical partition name from iSCSI details on Windows?
I've got a piece of software that needs the name of a partition in [CODE] style, as shown e.g. in WinObj . I want to get this partition name from details of the iSCSI connection that underlies the partition. The trouble is that disk order is not fixed - depending on what devices are connected and initialized in what or...
One possibility: if you can find the GUID volume name (your question doesn't make this clear) and if the volume has a drive letter assigned, then Win32_Volume will link the GUID volume name to the drive letter and Win32_LogicalDiskToPartition will link the drive letter to the disk number and partition number. However, ...
4
2
6,433
2012-06-29T03:44:49.297
infrastructure
serverfault.com
956,166
NGINX redirect results in “DisallowedHost at /” Django
I have installed nginx on Ubuntu 18.04.1 LTS with Django One-Click Application on digital ocean, I have this config settings.py [CODE] when I run www.enterpise.online [CODE] I try to modify this line in settings.py with [CODE] nginx send a message: [CODE] nginx setup : /etc/nginx/sites-enabled/ ... [CODE] I don't have ...
This is an issue with you django settings. This error means that the IP that is being used for the connection isn't showing up in the [CODE] list . Make sure your [CODE] has a line that looks like: [CODE]
0
0
1,217
2019-02-28T14:34:58.293
infrastructure
serverfault.com
444,507
How can I forward email to a perl script on Linux?
I would like all mail sent to a particular alias on a Linux machine to be processed by a perl script but sendmail is giving me a "Service unavailable" error and I don't understand what I'm missing. I created my handle_email.pl script (right now, this just prints its parameters to [CODE] ) and added a symbolic link to i...
Try changing the permission of /etc/smrsh/handle_email.pl to 755 and I think you'll have more success. You might want to restart sendmail just to be sure things are properly initialized and configured.
0
1
1,995
2012-11-01T19:02:17.040
infrastructure
serverfault.com
1,084,593
How to migrate to Google managed certificates without downtime?
I'm moving example.com from an external (non-Google) hosting provider into GCP. When setting up the load balancer, I noticed that I have to point example.com to the load balancer in order for the Google managed certificate to validate. I'm supposed to just change the A record of example.com to the (static) IP of the ne...
The other answers are very good, but I was very motivated to find a way to migrate to a GCP load balancer without planning for downtime where we basically just sit and wait for certificates to be issued. Adding my own answer since this question got quite a lot of traffic and it turns out that downtime is not necessary ...
9
7
3,052
2021-11-25T15:31:06.150
infrastructure
serverfault.com
1,028,627
Certbot fails with AttributeError: 'module' object has no attribute 'Locale'
I setup a new server a couple of months ago, running Ubuntu 18.04 LTS. I successfully installed certbot and created my certificates using the cloudflare DNS plugin. It's now getting to be time for renewal, but when I run [CODE] (or various other certbot commands) I get the following error [CODE] The output of [CODE] is...
Check to make sure you don't have a /usr/local/bin/certbot script I had one, I think I cloned the certbot auto package on this system once. And after removing it and getting back to running /usr/bin/certbot I no longer get this error. Also seems certbot is python 3 app, the correct certbot script starts out: [CODE]
7
1
4,703
2020-08-03T03:43:38.710
infrastructure
serverfault.com
355,717
Is It Better to set KeepAlive to 1 second rather than turning it off all together?
I've heard setting keepalive timeout at too high a number will diminish its value. So, to be on the safe side, and still somewhat benefit from it, can I set it to 1 second ? Or will setting it to 1 second be equivalent to just leaving it OFF ?
First of all, before you make any kind of changes, get familiar with the system internals. Install munin to monitor what your system does, how many connections, open sockets, apache processes etc. you have and make choices based on the real numbers/statistics. KeepAlive's main purpose is to send several static files vi...
3
1
1,766
2012-02-01T09:44:40.443
infrastructure
serverfault.com
264,749
How to shrink 40GB LOG file
I have a problem that is my log file in SQL Server 2008 is grown to 40Gb and I wanted to shrink it. The query I am using is [CODE] is not shrinking the log file at more level and also the shrink log file is expanding immediately in short time only. So where is the problem ? I wanted to shrink the log file upto 1GB and ...
Go into Management studio, right click the database, Tasks > Shrink > Files. Under File Type, pick the log file. Make sure Release unused space is selected as the shrink action, click OK. As for the shrunken log file growing quickly again, it is probably because you are set to a Full recovery model. Setting it to simpl...
7
10
61,171
2011-04-29T07:46:06.590
database_errors
serverfault.com
284,344
Is it okay to go against all-caps naming for enums to make their String representation simpler?
Several times I've seen people use title-case or even all lower-case naming for enum constants, for example: [CODE] This makes working with their string form simple and easy, if you want to do [CODE] , for example. This seems more acceptable if the enum is [CODE] , but I still don't like it. I know I can make an enum c...
The short answer is, of course, whether you want to break with naming conventions for what are essentially constants... Quoting from the JLS : Constant Names The names of constants in interface types should be, and final variables of class types may conventionally be, a sequence of one or more words, acronyms, or abbre...
21
17
45,234
2015-05-19T18:35:13.517
api_errors
softwareengineering.stackexchange.com
402,966
Performance of external USB disk with ESXi5
I have a new HP DL120 G7 server with ESXi5. One VM is a Win2003 instalation and I have an external USB2.0 drive attached by USB Controller and USB Device. I copy a 4GB file from external USB to server disk. In the VM that takes up to 10 minutes. On a native Win2003 that takes aprox. 3 minutes. I have no explaination fo...
The best performance in this scenario would be achieved by passing the USB controller to the virtual machine (VT-D). Otherwise, you'll only get USB 1.1 speeds.
1
0
980
2012-06-28T07:21:22.197
infrastructure
serverfault.com
106,316
How to resolve foreign key references across different databases (iSeries and SQL Server)
I've got a system that has a DB2 iSeries database. We are rewriting a portion of the system and implementing it using SQL Server and Entity Framework. Originally, I was lead to believe that there wasn't much of a tie-in between the tables we are moving to SQL Server and the DB2 ones. However, I'm finding a few spots wh...
If the foreign key constraints don't point to any other table inside of originating database (ie, if SQL Server doesn't point to SQL Server, etc.), then I would drop those foreign keys. They aren't useful. If they do point to other tables, then perhaps you do have to copy what data is needed just to satisfy the constra...
3
1
1,965
2015-07-08T11:30:21.747
data_quality
dba.stackexchange.com
269,279
Accessing databases from different domains on same server
I have a LAMP server - on there I have multiple domains. Each domain has its own user, db's, public_htmls/, etc. I need to access Domain A's database from a web app on Domain B in php. Currently I just use [CODE] as my host for all DB connections in my web apps - but now I need to access a DB under a different domain s...
If you only have one server, then localhost is still your local server. You only have one MySQL server for all your domains. You simply need to specify a different database when you connect - you may still use localhost as the server.
0
3
2,402
2011-05-11T04:29:22.157
infrastructure
serverfault.com
372,765
Should Jetty always be behind another webserver (eg nginx, apache) to improve security?
For a long time I've always run nginx in front of jetty to do load balancing. However, I have a new project where I will be using HAProxy to do the load balancing and was wondering if I should have HAProxy send connections directly to Jetty or if I should have each Jetty instance be behind nginx or another web server. ...
If you're passing requests directly to Jetty from nginx unaltered, then there is no security benefit to be had. nginx doesn't change requests in any way that would protect the Jetty service, unless you've added custom configuration or modules to do so.
3
3
1,528
2012-03-23T15:00:51.230
infrastructure
serverfault.com
2,063
Why does this query cause a deadlock?
Why does this query cause a deadlock? [CODE] Deadlock graph added: [CODE] ADDED: Thank you Sankar for article that has solutions how to avoid this type of deadlock: eliminate unnecessary columns from reader’s projection so he does not have to look up the clustered index add required columns as contained columns to the ...
It looks to me as if you are trying to do an SELECT and an UPDATE in the same statement and onto the same table. The SELECT is holding a shared lock on the values inside the IX_system_Queue_DirectionByStatus index, and the UPDATE needs for those locks to be released before it can get it's exclusive lock which will upda...
11
13
8,186
2011-04-04T16:39:41.750
database_errors
dba.stackexchange.com
482,733
AWS MSSQL RDS Instance periodically timing out
Every 5 or so days (including just now) I get a barrage of timeout errors from my webapp. If I look at what my SQL instance is doing in CloudWatch, it reports this: Freeable space: http://cl.ly/NBRM DB Connections: http://cl.ly/NBLH Write throughput: http://cl.ly/NBFs Read IOPS: http://cl.ly/NBp3 Write IOPS: http://cl....
It appears that there is a spike of activity, the disk queue is not good however this all depends on what storage you are using, if this is virtualised or from some sort of SAN due to a hosted infrastrcture you might be using, queue depths can be meaningless. Even then you could really do with something even if this is...
1
0
2,097
2013-02-26T19:27:16.100
database_errors
serverfault.com
244,863
SQL Full Backup job is taking too long to complete
I am facing a strange issue with daily FULL backup. We have a total of 23 databases. We have 1.21 TB big database in this SQL server 2012 Standard Edition. We are taking daily FULL database backup for all databases. For the last 2 days the backup is taking too long. After more than 10:30 hours it had only completed 67 ...
I found last_wait_type is ASYNC_IO_COMPLETION for this backup job. We have sufficient disk space available. This blogpost from Paul Randal gives you most of the information regarding this wait stat ...The official definition of ASYNC_IO_COMPLETION is ‘Occurs when a task is waiting for I/Os to finish.... ...Long-duratio...
1
2
2,343
2019-08-08T12:08:26.447
database_errors
dba.stackexchange.com
748,843
In Exchange 2010/2013 co-existence, should I be seeing 2013 CAS servers when running Get-*VirtualDirectory Cmdlets?
We're in the middle of migrating from Exchange 2010 to Exchange 2013. I have 2 Ex2010 CAS and 2 Ex2013 CAS servers. I understand changes have been made to the roles between 2010 and 2013 versions. I also have 3 Ex2010 MB and 3 Ex2013 MB servers. Everything seems to be operating normally. I have created databases on the...
If I run the Powershell command while connected to one of the Exchange 2010 servers, I do not see the Exchange 2013 servers. Using PowerShell on one of the new MB servers shows me the expected output for the above commands, which includes the new 2013 CAS servers. I am sure there is a logical explanation, but I have ye...
0
0
55
2016-01-13T15:34:18.637
infrastructure
serverfault.com
934,213
Bash function doesn't work for remote ssh command execution although interactive shell function fine
I define a function in [CODE] file and include it in my [CODE] file. My [CODE] file: [CODE] The function is: when someone executes the command: [CODE] , bash reads the content from [CODE] and return. My [CODE] file: [CODE] It works when I interactively execute the command by typing the command in the bash shell. Howeve...
I can't speak to paramiko specifically, but ssh typically detects when a session is non-interactive and behaves differently; such as not loading certain files. You might have to tell it to setup like an interactive or "login" session or maybe force allocation of a tty. Or maybe just load the file yourself before callin...
0
1
2,104
2018-10-05T18:56:37.923
infrastructure
serverfault.com
20,709
Oracle out-of-place upgrade on same host: impdp issues
I am testing an out-of-place Oracle upgrade from 11.2.0.2 to 11.2.0.3 on the same host. From what I've read, expdp and impdp is the way to go. My problem is that since I am importing to another instance on the same host, it's trying to recreate the same directory structures. The beginning of the import log looks like t...
Check the Oracle Utilities documentation. When using Datapump tools, you can reset paths using the REMAP_DATAFILE parameter for import jobs. Also, insure your OS session variables reflect the new DB. This is often over-looked when working with a new DB on a server that already has a DB working on it.
1
2
779
2012-07-11T15:12:10.303
database_errors
dba.stackexchange.com
126,006
Setting up a externally facing server on Windows. How do i setup DNS/Nameservers?
So i have a domain name that i would like to host from my static ip internet connection. I have windows server 2008 r2 installed, and dns setup. The dns server is currently behind a firewall, and i have the appropriate rules to allow traffic to reach it. My question is, what entries do i need to create in the DNS so th...
You need a NS record that lists the hostname of your server (this defines it as a DNS name server) and you need an A record that matches that hostname to your external IP address. You then need to tell your domain registar to point to this hostname for DNS. That will get you started and then you're free to create other...
1
2
1,938
2010-03-24T22:19:48.943
infrastructure
serverfault.com
105,302
How to improve enterprise level application that consists of only static methods
I am new in a enterprise level application project and discovered that 99% of everything I've seen in code is static methods, static properties. The application at hand is a distributed app consisting of about a handful of WCF services that communicate through a business layer with a data access layer. The data access ...
When the application only consists of static methods it is clearly not object oriented (however, this doesn't mean that you should never have any static methods). Further more you will probably have little to no unit tests (since testing static things is almost impossible). The only advantage I can think of is that wal...
3
3
341
2011-09-01T07:15:45.867
api_errors
softwareengineering.stackexchange.com
280,181
non cumulative differential backup for SQL Server
SQL Server natively do not support non-cumulative differential backup type. I wonder why independent backup software providers like from RedGate, Idera or Quest do not support it either? It looks easy to implement: just store LSN from last non-cumulative backup and put in the backup files only pages changed from this L...
Transaction log backups are incremental, that is, they only store incremental changes since the previous transaction log backup. And they do it more or less as you told, using last well know backuped LSN (a checkpoint). This is why you have to restore the full backup and then all the TLOG backups in the proper order. B...
-1
1
108
2020-11-23T16:38:22.503
database_errors
dba.stackexchange.com
678,698
How can I change the directory in wich pam_mkhomedir creates the user's home directories?
I am using pam_mkhomedir to automatically create user's home directories when they first log in. However, the home directories are created inside the [CODE] directory, while i need them to be created inside another one ( [CODE] ). How can this be achieved ? Extra info: Editing [CODE] does not help. The only options tha...
The homedir should be created in the path for the homedir specified in the users entry in [CODE] (or other similar account sources like an LDAP directory). Did you try to change that? This entry is the authoritative declaration of where the users homedir is (and should be created).
1
3
2,405
2015-03-27T11:55:33.817
infrastructure
serverfault.com
184,756
Natural Keys vs Surrogate Keys part 2
A while back, I asked if surrogate keys provide better performance than natural keys in SQL Server . @sqlvogel provided an answer to that question yesterday that caused me to revisit it. This question is an attempt to "upgrade" the prior question, and hopefully provide the opportunity for thoughtful answers that help t...
I think your question title, apart from the fact that it is not a question, is a bit misleading. You're not measuring performance of natural/surrogate keys , unlike the question you're referencing. Instead you're measuring performance of queries against two databases with notably different models, caused by the choice ...
2
1
524
2017-08-30T20:04:44.610
data_quality
dba.stackexchange.com
404,818
Bandwidth * Delay Product
I'm trying to calculate the bandwidth delay product between various hosts, and reading this wiki article , I am confused. From the acticle; Residential ADSL2+: 20 Mbit/s (from DSLAM to residential modem), 50 ms RTT B×D = 20×106 b/s × 50×10-3 s = 106 b, or 1 Mb, or 125 kB. One of the connections I am testing from, to a ...
I'm trying to calculate the bandwidth delay product between various hosts... Have I missed something obvious, or is the article wrong? You're only missing the units; when you multiply bps by seconds, you get bits as the units: 10Mbps * .029s = 2900000.0 bits (362500 bytes) The point of the article is that it highlights...
3
4
562
2012-07-04T20:03:53.673
infrastructure
serverfault.com
943,222
save hdf5 data when admin kills script
I have a lot of Monte-Carlo data that I need to process at a particular cluster. What I do is, for a given data sample (which is on average of size 70 GB), I run some statistics script in python on that data and I save it onto an hdf5 file, which reduces the over-all size of that data by 90%. There is not much I can do...
Would it make sense to close your file after each write: [CODE]
1
0
220
2018-12-06T22:42:18.417
data_quality
serverfault.com
148,395
MongoDB using too much memory
We've been using MongoDB for several weeks now, the overall trend that we've seen has been that mongodb is using way too much memory (much more than the whole size of its dataset + indexes). I've already read through this question and this question , but none seem to address the issue I've been facing, they're actually...
Okay, so after following the clues given by loicmathieu and jstell, and digging it up a little, these are the things I found out about MongoDB using WiredTiger storage engine. I'm putting it here if anyone encountered the same questions. The memory usage threads that I mentioned, all belonged to 2012-2014, all pre-date...
49
39
102,664
2016-08-22T19:50:43.223
database_errors
dba.stackexchange.com
18,523
Vista changes harddisk numbers at random why?
We use Truecrypt for encryption in my company, however recently an employee has got quite the odd problem. Every once in a while when he boots his Vista pc, it changes the harddisk numbers. This is a huge problem, because Truecrypt has encrypted partitions on two harddisks (two physical drives), however when the harddi...
Could it be that your HD with the 3 partitions is a slow starter? try enabeling PowerOn or Boot delay in your BIOS.
2
1
287
2009-06-03T07:44:21.033
infrastructure
serverfault.com
771,054
Remote desktops scenario - Server 2012 R2 Hyper-V RDS/VDI or VMware ESXi with Win7 guests?
I wasn't sure whether this question should be asked here or over in Super User... I'd like some guidance for setting up a Remote Desktop scenario for users in a reliable yet cost-effective way. Factors are: 5x frequent staff who work from home or out of the office 8x Windows 7 Enterprise licenses available in our VLA M...
I don't think 2GB of RAM for a Windows VM is enough, whether they're running under Windows or ESXi. With 2GB of RAM I think your users will probably complain about performance. 8GB of RAM for an RDS server will easily support 30 RDS sessions. IMO, you'll get more bang for your buck going with an RDS solution. The RDS R...
2
0
362
2016-04-18T01:22:36.930
infrastructure
serverfault.com
681,691
When debuginfo rpm is generated?
I have a series of RPM spec files and no debuginfo directive set in them. When I run rpmbuild, some packages generate a debuginfo rpm, some do not. What is the criteria used by rpm to decide if a debuginfo is generated? It seems to me that: only arch packages generate debuginfo (noarch packages do not) only main packag...
In order to generate debuginfo RPMs, the directive [CODE] needs to be added to the .spec file (usually, after all package and sub-package definitions and before the [CODE] section, surrounded by empty lines ). reference: https://trac.netlabs.org/rpm/wiki/RpmHowToPackagers#Generatingdebuginfopackages another good blog: ...
2
2
7,814
2015-04-09T22:51:04.300
infrastructure
serverfault.com
199,426
advice on database index maintenance
I have a fairly large table, which I have to keep up, with some very, very fragmented indices. This seems to be causing problems with performance. I would like to have neat fresh crisp indices on this table. I also have some rather annoying restrictions: 1. At no time can this table become unavailable. 2. I don't have ...
Recreate index in off time OR do it without dropping it - SQL Server Enterprise edition ahs this feature, and a table which CAN NOT BECOME UNAVAILABLE needs enterprise edition. Sorry. Otherwise you are basically toast. I cant run a formula 1 race witha street car. I cant fullfill enterprise high end requirements withou...
0
1
88
2010-11-08T15:57:01.110
database_errors
serverfault.com
257,044
Migrate zpool to new SAS controller
Long ago, we bought an Adaptec 31605 under the impression that: a) it could do true JBOD, and b) it was well supported on OpenSolaris. Turns out both of these were incorrect. I'm trying to get my zpool onto a NexentaStor Enterprise OS, but to do that they want us to swap our controller out with a LSI SAS 9201-16i. I'm ...
Your plan looks good, I imagine you won't have any trouble. You mentioned three 1TB disks for the temporary pool. I assume you'd planned to use single parity raidz (2TB usable), but I'd recommend you consider a mirrored pair of 1.5 or 2TB disks instead. This way when the migration is complete, each of the disks has a c...
1
1
1,074
2011-04-07T20:53:26.183
infrastructure
serverfault.com
316,100
Java EE exceptions for validation and APMs
In my current work, we have some Java EE applications and we use exceptions and exception mappers to deal with user errors, i.e. that can't be dealt with in the frontend. We usually reply with a 400, and make the frontend show a "pretty" message for the user. Problem is: those exceptions count as errors in our APM (New...
Http codes has nothing to be with business (validation) errors. Some ppl use HTTP error codes to encode their catatalog of errors. But I don't think it's a good practice. Http errors are related to the protocol (http). So any business exception thrown by your code, should be (in my oponion) handled and returned as a mi...
2
1
185
2016-04-18T16:51:51.150
data_quality
softwareengineering.stackexchange.com
461,135
No space left on device prevents login
It seems that when you run out of disk space all remote logins are prevented [I'm using Red Hat 4.4]. Apparently this is because all non-superuser logins have to write to /var/log/auth.log This is a common occurence when /var/tmp/cores gets filled due to (user) programs crashing, or a process generating tons of log (un...
There are several things that you need to do to prevent problems and possibly system crash in the future: Create separate partitions for [CODE] , [CODE] , [CODE] and possibly others to help your system survive (hopefully) in case of one partition got filled accidentally. Use reasonable logrotate configuration to allow ...
1
3
2,886
2012-12-27T11:43:22.837
infrastructure
serverfault.com