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
83,455
Moving a SQL Server TempDB of AlwaysOn members
We have two SQL Server instances on Azure Windows virtual machines. Always on availability group is configured between them. We need to move TempDB on both instances, is there a risk that something can get corrupted regrading data and availability group listener or we can simply execute instructions from MSDN instructi...
is there a risk that something can get corrupted regrading data and availability group listener No, tempdb is recreated when SQL server restarts. If your tempdb is large, Make sure to enable instant file initialization for data files only. The instructions are fine and follow the comment that I put in.(will add it in a...
2
1
1,422
2014-11-24T10:28:56.740
data_quality
dba.stackexchange.com
287,030
Temporary table is full
[CODE] The query is quite complex/big. Lots of joins in joins and unions, sorting, grouping, ... 1 out of 10 the result is returned. Otherwise it results in the above error. CPU and memory increase but never max out while running the query. There is plenty of disk space (100Gb free). I have fiddled with: [CODE] [CODE] ...
See the bug link in @Yoseph's answer above (although the temptable_use_mmap variable he mentions isn't the solution). If you are on Mysql 8.0.2x releases below 8.0.27 and experiencing this issue, then the temporary fix for this is: [CODE] This switches the implementation from the new TempTable back to Memory which is w...
3
7
9,602
2021-03-15T08:32:23.520
database_errors
dba.stackexchange.com
105,259
Syntax error while creating DB2 Trigger
What is wrong in the below trigger syntax, I am getting this error An unexpected token "INT" was found following " DECLARE NULL_ROW_ID". Expected tokens may include: "END-OF-STATEMENT".. SQLCODE=-104, SQLSTATE=42601, DRIVER=3.68.61 [CODE] It's on DB2 Express-C 10.5
I agree with what others have said, it is most likely a problem with the statement terminator. Try adding: [CODE] You might also consider using for example @ as your statement terminator globally. Another "undocumented" feature is to quote the ; in the trigger using to ending dashes. Example: [CODE] Personally I prefer...
1
1
1,099
2015-06-26T15:43:17.967
warehouse_errors
dba.stackexchange.com
26,474
Unzipping files that are flying in through a pipe
Can I make unzip or any similar programs work on the standard output? The situation is I'm downloading a zip file, which is supposed to be unzipped on the fly. Related issue: How do I pipe a downloaded file to standard output in bash?
While a zip file is in fact a container format, there's no reason why it can't be read from a pipe (stdin) if the file can fit into memory easily enough. Here's a Python script that takes a zip file as standard input and extracts the contents to the current directory or to a specified directory if specified. [CODE] Thi...
52
24
66,324
2009-06-16T12:32:52.883
infrastructure
serverfault.com
121,023
How to pivot this unpivot?
This is the pivot I made: [CODE] I need that this: Become this: [CODE] SQL is giving me error sintax in everything I try. This is the fiddle of the table: http://sqlfiddle.com/#!3/8d3d0
Why do you need to convert the average into a varchar? Also, why do you have two extra [CODE] wrapping the main select statement? This runs without error: [CODE] Results: Perhaps I really don't understand what you are attempting to do, or perhaps this is just a code fragment, or perhaps my sample data is incorrect, how...
0
2
109
2015-11-13T17:01:32.440
warehouse_errors
dba.stackexchange.com
310,893
Preventing MX record fallback
I have a website, example.com, running on a Windows 2008 server with IIS 7 and the "IIS 6" SMTP service. The website regularly sends out emails to info@example.com. In rare instances, the MX record lookup for example.com fails, and so the SMTP service falls back to the A record, which I understand is expected behavior....
The A record should only be delivered to if no mx records exist. If they exist but the server doesn't answer or 4xx the mail, the sending server should queue the message and try again. If the MX fails to answer and the sending server then tries the A record it sounds to me like that server is broken. Edit-.. Troublesho...
1
5
2,140
2011-09-13T14:29:08.997
infrastructure
serverfault.com
448,986
Migrating JBoss 5.1.0 to JDK 7 - gives SOAP jaxb error
we are working on a big project and we're in process of migrating the JBoss installation to use JDK7, currently it's using JDK6 and all works fine, but we need to use JDK7, but we cannot use JBOSS 6 as alternative. When starting JBOSS if jaxb debugging is enabled we receive the following errors: [CODE] The error is pro...
unfortunately JBoss 5.1 is not supported to run on JDK7, so a part of the visible problems you're experiencing, it may be dangerous to run this configuration in production environments. Look at compatible configurations for JBoss EAP 5.1 (it should be the same for GA - Community versions). And in the jboss.org forums y...
1
2
6,224
2012-11-15T12:00:22.100
infrastructure
serverfault.com
145,605
SSRS 2014 - query running fine on management studio - report timing out - how to troubleshoot?
I had a problem in reporting services 2014 - all the queries in a report were running fine from management studio but timing out when running the report. here is the message from the user: what to do to troubleshoot a SSRS 2014 report that gets stuck on loading? where are the SSRS logs? the report has 3 datasets and al...
You need to look at the Execution logs. On your Report Server database, there's a view called ExecutionLog3. You can query this view by date and find how the user was running the report. [CODE]
2
1
2,973
2016-08-02T10:48:11.480
bi_errors
dba.stackexchange.com
325,337
How to configure PostgreSQL security settings to allow select of different columns depending on the row
I have a complex security/authorization situation to set up in Postgres 15, where one role can CRUD all data, while another role can read-only data but must be allowed to see different columns depending on a value in a row's column. I've simplified this down to a very basic example below, although my real situation is ...
It looks like I was mistaken in three different ways when posting my comment : Your policies only grant full access to whatever a given user was already [CODE] ed access to, so [CODE] is just good practice, changing nothing in this case. I realised that your view is supposed to access everything, then narrow it down to...
1
1
327
2023-03-29T02:46:45.293
database_errors
dba.stackexchange.com
1,012,651
LDAPStartTLSError: ('wrap socket error: [SSL] internal error (_ssl.c:1108)',)
Hy I'm starting learning flask but when I follow this documentation I receive this error... Strange that using ldapsearch everything is fine.... Using: Ubuntu Focal python3.8 python3-flask 1.1.1-2 python3-flask-ldapconn 0.7.2-1 python3-ldap3 2.4.1-2 python3-openssl 19.0.0-1build1 openssl 1.1.1f-1ubuntu1 slapd 2.4.49+df...
Try changing the SSL config to accept older versions of TLS. On Ubuntu edit /etc/ssl/openssl.cnf || In RHEL 8.1: /etc/crypto-policies/back-ends/opensslcnf.config and edit the below: [CODE] Note that this is a severe threat to security, but you can use it for testing and see if this helps. ref: https://takraw-s.medium.c...
0
0
2,047
2020-04-16T21:26:31.213
api_errors
serverfault.com
131,913
Cannot install database engine services, replication and SQL writer
I am trying to install SQL Server 2012 Express, but I get this error (I try to uninstall and delete registry key, try to change account for database engine to NT Authority\System, but reinstall still not working): Feature failure reason: An error occurred for a dependency of the feature causing the setup process for th...
Solved this: I had an old SQL Server on the same machine. When I removed the old one, I deleted all the folders and ran ccleaner to clean the registry. This left a damaged sqlwriter service on the machine. I used "sc delete sqlwriter" to remove it. Once I did that, it ran ok. Another thing that I think helped was runni...
1
2
15,341
2016-03-11T02:38:06.007
database_errors
dba.stackexchange.com
322,519
Running any version of OS X on a PC
A common problem for a lot of people I would think, I need to run OS X on my Windows PC virtually because I need to use the VPN client 'Apple Connect' that is only supported on Macs. It does not really matter which version it is from the last sort of 5-6 years. I have access to; [CODE] Does anyone know a simple way of ...
The EULA for OSX precludes it's use on any non Apple platform. You cannot legally do this.
-1
5
140
2011-10-18T11:49:08.113
infrastructure
serverfault.com
753,317
SSL encryption with CNAME redirect
Here is my current architecture: I have a simple site hosted in the cloud that needs to be served from my company. Thus, mysite.com has a CNAME redirect to 1234.cloud.com. I understand that the SSL certificate needs to be created for mysite.com. Here are my questions: a) how does the CNAME redirect work when fetching c...
I think you're confusing terms a little bit. A CNAME is not a redirect per se. It's just a record type in DNS, also known as a DNS alias. The DNS protocol is ultimately about mapping names to IP addresses. The most common record type is a "A" record which is a one-way mapping of Name to IP. The CNAME record instead is ...
6
18
34,899
2016-02-01T21:47:52.157
api_errors
serverfault.com
666,912
CloudFormation with an ELB and its public dns
I'm using Cloudformation to build a load balanced stack. My concern is that each time the stack is recreated, the ELB public url will change, which will require a change in the website's route 53 domain alias, to point to the new ELB URL. I can add Cloudformation configuration to automate this, but I'm wary that the si...
you can use a Stack Policy to prevent stack updates from updating the ELB resource. documentation here: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html example: [CODE]
2
1
994
2015-02-11T21:20:38.210
infrastructure
serverfault.com
62,386
How to setup and use a fixed IP address on a PC
I have a communications application that has a server side component which requires either a known IP address or name (e.g. www.commserver.com) for communications to take place. For communications outside the local area network this must be a publicly visible address. This component will typically run on a clients PC, ...
I am not sure this is the right answer but will give it a stab. You mentioned a fixed IP the only way to get this is to get a fixed IP from your ISP. However if you need a fixed hostname (more likely) then you use a service such as EveryDNS or DynDNS to get a hostname that will change when your IP address changes. Also...
1
4
220
2009-09-04T12:17:19.180
infrastructure
serverfault.com
514,994
Outlook for Mac, Active Directory DNS and DDOS
Edit: This is not a question about DDOS, but a question about how to resolve a technical issue impacting only Mac clients of Outlook Anywhere. Problem and solution are are now known, but I cannot link it here for some stupid reason of stackexchange limits. I can suggest googling : "outlook anywhere We Get to Use Comman...
I'm still a little lost as to your explanation of why you are doing what you are doing with the port 53 block. Your internal DNS within your firewall should have no reason to be exposed to the internet, so you are right to block inbound port 53 to it on your firewall. Your external DNS should provide name resolution fo...
2
4
909
2013-06-11T14:48:01.993
infrastructure
serverfault.com
370,195
apache httpd error: "mod_rewrite: can't access DBM RewriteMap file"
I'm running a fresh httpd install on Fedora linux and all my static content 403s. The error_log shows this: [CODE] How do I fix this? Thanks, Chris
It looks like you may be using an old config file or something has been uncommented in an example file that shouldn't have been. Check through your apache configuration files looking for something like [CODE] If you find something similar either comment it out (put a # at the start of the line) or put a suitable file i...
1
2
954
2012-03-15T18:35:11.903
api_errors
serverfault.com
385,457
ssl not working on apache with Ubuntu Natty and multiple domains
Having some trouble getting SSL working on my server. I only need it for one of my two domains on this box. I have two IPs, and I am using A records on my DNS to point the domains to the different IPs. Here is my httpd.conf: [CODE] Hope something obviously wrong jumps out. Here are links to two gists with other configs...
This setup works for me (and it's the default Debian stuff, almost no changes). In ports.conf [CODE] That matches yours. Then, for each of my virtual hosts (non-SSL), [CODE] and SSL [CODE] I think you should use [CODE] so that the server generates URL's based on details passed by the client, so it gets the right port a...
1
0
1,062
2012-05-02T20:50:11.523
infrastructure
serverfault.com
885,731
Can't click on start button and programs in taskbar
I have several users using RDS to my Windows Server 2012 R2. Only one of my users have this problem... He can't click the start button. If he hover the start button, it flickers. Furthermore if he minimize apps, then he can't click them in the taskbar to restore the apps window state. I have many user on the same box, ...
I've seen this sometimes happen when there are two [CODE] processes running. Open up Task Manager with [CODE] and check if you currently have two explorer processes running. Either way, a restart of the process should fix the issue. Just end the processes and start up a new one with [CODE]
6
2
37,310
2017-11-29T13:22:30.243
database_errors
serverfault.com
254,635
Concatenate a string value from table A to a text field in table B, in a scalable way
On a daily basis, I am adding values from the following table ( [CODE] ): [CODE] To the text field ( [CODE] ) in the following table ( [CODE] ), with a comma: [CODE] (So on day one, [CODE] was added. On day two, [CODE] was added et.c.) This is to have a daily history of values, over the last year. The idea of having a ...
The suggestion to have one row per value is good advice. It should be the starting point for any relational database design. To ensure all rows are close together (on the same or at least adjacent pages) you will have to have the clustered index on (ID, Date) (or on (Name, Date) depending on which you've chosen for the...
3
1
690
2019-12-03T09:52:49.690
database_errors
dba.stackexchange.com
83,618
SQL Server 2008: how much RAM memory should SQL Server use in a 8GB RAM server?
We have SQL Server 2008 and 8GB RAM in a customer, hosted in a Windows 2008 R2 SP1, and consider the following amount of free memory: and consider the following running programs: Scenario: Users use a website which saves data in this server in a SQL Server database. No more than 5 users. Question: Considering scenario,...
Question: Considering scenario, that we have 8GB and we also have IIS hosted in this server (which I believe is a bad idea), in how much RAM should SQL Server use? The answer to the question "how much memory SQL Server would use" is, as much as it can. For that reason its always advisable to put appropriate value for m...
6
7
21,751
2014-11-25T17:57:35.193
api_errors
dba.stackexchange.com
953,145
GCP: Routing to ip alias over IKEv1 VPN without BGP
I have a private GKE cluster running in a single subnet and region. The nodes in the cluster utilize the subnet's CIDR of [CODE] . The cluster has two secondary CIDR ranges for its pods and services ( [CODE] and [CODE] respectively). On-prem I have a Meraki router with an established IKEv1 VPN tunnel to the single subn...
Which VPN tunnel option are you using? Have you tried route based VPN? Multiple traffic selectors are supported in GCP only for IKEv2 .As you are using IKEv1 I suggest you to configure a route based VPN. Take in mind that maybe there is a missing firewall rule to allow communication from you on-prem to GCP, you can add...
0
0
497
2019-02-09T16:16:56.017
pipeline_ops
serverfault.com
1,020,173
Own NS on different servers
I have domain [CODE] which I use as NS on my [CODE] . Also I have second [CODE] and I want to use hostdomain.com as it's NS too. OS of both servers is CentOS. I have 2 IPv4 on server1 and 1 IPv4 and 1 IPv6 on server2. NS records of hostdomain.com at the registrar are: [CODE] Domain is delegated. The problem is [CODE] a...
Name your servers [CODE] and [CODE] and make [CODE] and [CODE] records accordingly; the same hostname can have both [CODE] for IPv4 connectivity and [CODE] for IPv6 connectivity. [CODE]
0
1
51
2020-06-05T10:54:53.163
infrastructure
serverfault.com
219,387
How to scroll one page at a time in Asterisk at the command line?
Asterisk has a command line shell mode which I enter by typing [CODE] at the linux command line. Inside its shell the standard linux commands like [CODE] or [CODE] do not work. And the screen just whizzes past me with no way of scrolling back up that I know of. However, I can't be the first person that has this issue. ...
Have you tried Shift + Page-Up ? It is the common way of getting back in the scroll buffer of your console. That might not be the perfect solution but you should be able to get to any point in the log you want to. Note that most consoles allow you to set how many lines of buffer to keep. So you can increase it in case ...
1
1
1,801
2010-10-12T20:15:31.443
infrastructure
serverfault.com
335,446
exchange server 5.5 stops responding
From last couple of weeks I am getting connection problem with my in-house company exchange server 5.5 running on windows 2003. It has been working fine from last 5 years. but from few weeks it is loosing connection with other outlook clients. I have to restart my exchange server to make it work. This happens few times...
First of all I am very thankful to all those people who spent some time in reading my question and start criticizing by giving negative votes to question, rather than providing bit help to a person who know nothing about servers. I specially say thanks to Driftpeasant who pointed me to right direction to scrutinize the...
-6
0
133
2011-11-28T14:16:40.193
infrastructure
serverfault.com
4,863
Jenkins input pipeline step - Give submitter as a group
I could find that “submitter” parameter accepts individual user IDs and external LDAP groups. But “Jenkins-local” groups defined by any authorization strategy are not working. I have a limitation not to use external LDAP groups. The workaround that I have used is define the comma separated list of individual users as a...
We have moved onto using Jenkins templates and I have a workaround to keep the individual approver names list in one place. Sharing the sample code for your reference. [CODE] } [CODE] Below is how you call from the pipeline [CODE]
2
1
6,001
2018-08-29T09:25:56.827
pipeline_ops
devops.stackexchange.com
407,274
Understanding ipsec with NAT and dynamic IP's
I'm using OpenSWAN to set up a net-to-net VPN tunnel. I have succeeded in configuring a test scenario as follows: About [CODE] and [CODE] : they are Ubuntu 12.04 virtual machines created using ubuntu-vm-builder they use bridged networking to the host's physical ethernet (the 192.168.0.0/24 subnet). I installed the stan...
Can IPSec connect through a VPN gateway which is sharing a public ip via NAT (inbound NAT traversal)? Do NAT-T and IPSec passthrough relate to this or are they just for outbound NAT (i.e. dealing with clients which are behind NAT but where the gateway has a public IP)? Would it be sufficient to forward some ports from ...
4
3
12,990
2012-07-12T20:49:46.233
infrastructure
serverfault.com
978,010
ZFS on Linux: Which mountpoint option when mounting manually per script?
I want to create a zpool with ZFS on Linux (7.13) on Debian Buster. The problem is that the pool will be created based on LUKS encrypted drives (not root, only external). These drives are decrypted and loaded during boot by a script which i created since they are pulling a key file from an external source. To avoid any...
I've been using ZFS pools on LUKS encrypted volumes for the better part of a decade. It works fine. There is no reason to mount the pool manually to attempt to defeat nonexistent timing problems. Just create your pool normally and enjoy. To avoid any problems in the future, when creating and managing the pool, use the ...
5
4
1,286
2019-08-05T14:09:52.990
infrastructure
serverfault.com
449,083
Windows 2012 Cluster on P6300 SCSI-3 Persistent Reservation issues
Scenario: 1 HP 6300 with latest XCS version 1 Command View 10.1 + with hosts defined as Windows 2008 2 BL460c Gen8 Servers with SPP 2012.10 and Windows Server 2012 Datacenter Edition with all the updates + MPIO feature enabled DSM v4.03.00 Cluster Analyser Tool triggers this error: Test Disk 0 does not support SCSI-3 P...
It turns out that's a new feature on Windows 2012 named Storage Spaces. Cluster Analyser Tool validates if this feature is available or not but it does not compromise cluster functionality. Microsoft Technet: http://technet.microsoft.com/en-us/library/hh831739.aspx states that in order for this feature to work you'll n...
1
1
5,241
2012-11-15T16:14:29.430
database_errors
serverfault.com
142,345
pgAdmin ||| paging?
I'm wondering if there is no paging feature for the pgAdmin III 1.22.1 Query tool. So if I try to query a table with 500k+ rows without constraints, the query takes like 30s. Is there a paging option? Can I limit the default result size? Am I missing something here?
Using pgAdmin III, I ran the following command to generate 100,000 random records. [CODE] I then did as MarcinS suggested in his answer: "right click on it in Object browser, choose View Data from context menu, You will have options to View Top 100 Rows or View Last 100 Rows" And I do indeed get the first 100 rows. But...
1
1
623
2016-06-27T10:12:54.693
data_quality
dba.stackexchange.com
414,135
Nginx Mod Rewrite - Rewrite *.png to *.php
I am having an issue with Nginx Rewrites Currently my rule is as seen below rewrite ^/i/(.*?)$ /i/$1.php last; Basically what I want to do is redirect all .png files to .php within the /i directory. However, it seems that the $ has to be at the end so that I can not do rewrite ^/i/(.*?)$.png /i/$1.php last; Does anyone...
Requests for .png files are being handled by your [CODE] . Just stop that from handling png files and add a new location that only handles them: [CODE]
4
4
4,224
2012-08-03T20:47:51.207
infrastructure
serverfault.com
77,531
Did a SQL Server instance ever participate in replication?
How can I tell whether a SQL Server instance ever had replication in use or not? I'm debugging an issue with a 3rd party software. This software (Red Gate SQL Backup) reports the distribution database to be missing. The company has asked to find out whether this server has ever used replication or not. How can I find o...
I'm not sure if you'll be able to reliable tell if the server has ever used replication or not. For example, if someone drops replication properly, there will be no trace left behind.
2
4
183
2014-09-24T16:32:39.773
database_errors
dba.stackexchange.com
122,437
How to organize functional programs
Possible Duplicate: Functional Programming vs. OOP How to write manageable code with functional programming? In OOP, your basic unit of organization for code is the class. A frequently used methodology in Java, C# and similar languages is to organize your code around having one file for each class with the file name fo...
I suspect this depends on language. As far as functional programming, I have mostly dabbled in Haskell, so I'm going to explain how it works there. Haskell code is organized into "modules" which are basically just collections of functions and data types. Each module is a single file. A module is something of a mix betw...
43
34
13,157
2011-11-30T02:44:35.873
data_quality
softwareengineering.stackexchange.com
23,750
What are differentiable modules used in deep learning
I am reading this paper. Convolutional Neural Networks define an exceptionally powerful class of models, but are still limited by the lack of ability to be spatially invariant to the input data in a computationally and parameter efficient manner. In this work we introduce a new learnable module, the Spatial Transformer...
"Differentiable" means that you can compute the derivative of the operations in the module, and therefore you can compute the gradients of the loss function with respect to the module parameters (i.e. use backpropagation). This is normally a requirement for operations involved in neural network computations. Note: you ...
1
3
1,407
2017-10-13T11:12:31.830
data_quality
datascience.stackexchange.com
1,023,202
SpamAssassin local.cf DMARC configuration recognizes reject and none, but not quarantine
For SpamAssassin 3.4.2 I've added the below configuration ruleset to [CODE] with the intent of providing a spam score for failed DMARC tests. The DMARC and SPF Authentication-Results headers are created by [CODE] and the DKIM Authentication-Results header by [CODE] . The expected output is a score for all three header ...
The configuration you refer to is copied from Random Thoughts blog on DMARC / Spamassassin / Qmail . This blog post gives AskDNS as a third option if you can't use OpenDMARC for some reason. As you are already using OpenDMARC, you can directly use its [CODE] header in SpamAssassin. Modified from David Jones : [CODE] If...
1
2
3,182
2020-06-28T01:38:40.053
api_errors
serverfault.com
1,110,252
Relay access denied on VPS (error 554 5.7.1)
I'm trying to figure out how to solve a problem on my VPS, maybe you can help me :D Long story short: this is the first time I operate on a Bare Metal VPS, and I'm trying to setup the mail server. After a couple of tries I manage to setup the service, but, I can only send emails between the two domains and from this do...
The problem is not in SASL auth. For a basic mail server setup which can send and receive mail using local mail client (local==running on the server itself, eg. [CODE] or some webmail), you don't need SASL auth at all. SASL auth is for mail submission by remote mail clients that connect over SMTP to submission ports. C...
0
1
1,134
2022-09-08T11:32:01.277
infrastructure
serverfault.com
31,271
custom delimiter for dat file
I've a [CODE] file in the following format which I'm trying to load using [CODE] . [CODE] Code [CODE] I'm getting this error [CODE] Line 11: [CODE] I understand that it's because of the comma. One option I found is to skip these lines, which I don't want to. Is it possible to set newline as the delimiter here? Any help...
You have to tell [CODE] the separator that you want to use by doing: [CODE] This should work.
0
2
8,131
2018-05-06T07:45:12.430
data_quality
datascience.stackexchange.com
360,786
Green-IT: How do you deal with poweroff systems in your system monitoring?
Many of you probably have completed or are contemplating Green-IT projects with the goal to power off idle or unneeded systems when demand for computer resources is low: How you did handle this situation in your system monitoring ? I'm especially interested in solutions for Nagios . One idea is to schedule downtime in ...
The easy way: There are built-in filters for the status view, at the top of the page. You can just have the admins watch "unacknowledged" problems, or problems on hosts that are not in scheduled downtime. Or any other number of combinations. If you really want to go wild with filtering the CGI view, see the "HOST AND S...
7
2
437
2012-02-16T13:10:48.620
pipeline_ops
serverfault.com
15,930
validating map of objects
I am trying to validate a map of objects that is typed as below : [CODE] The value for the variable looks like : [CODE] Now, I want to perform some basic validation, but I cannot seem to get the syntax right. [CODE] This threw [CODE] Debugging on [CODE] described : [CODE] which indicated that my problem was because I w...
You can validate your variable with the following expression: [CODE] This might seem complex so let's brake it donw. We can extract the launch types from [CODE] with the following [CODE] expression: [CODE] The output of this would be something like: [CODE] Moving on, we would want to filter out those launch types which...
2
2
4,642
2022-05-08T05:15:05.200
data_quality
devops.stackexchange.com
422,637
How do you push Design changes in TDD in late development stage
I was recently part of a TDD development team. At certain point I realized that there is a design mistake instead of Object Oriented Design and Structural design the problems were solved via statuses. Tens of statuses. For a brief moment I thought - Hmm... maybe I can actualy try to do some modeling and reduce the stat...
How do you do design change in TDD when you have such huge amounts of test that may be dependent on the existing implementation? First, the best approach may be to avoid running into this situation at first hand, and refactor earlier. Often people forget that refactoring should be done rigorously in each TDD cycle, and...
19
25
1,901
2021-02-23T21:58:22.920
api_errors
softwareengineering.stackexchange.com
91,196
What can a senior programmer do that a junior can't?
Possible Duplicate: When should you call yourself a senior developer? I often see offers for senior programmers and the rule of thumb seems to be that you need to have worked three years to become one. Duration doesn't mean much so what exactly is expected of a senior programmer? What should he be capable of doing? As ...
There is (much) more to Software Development than cranking out code. Mentoring Developers Leading Projects Designing Software This leads to: Responsibility A Junior Developer is still learning the language and frameworks on a daily basis, and thus should be focusing on this. A mentor (or experienced colleagues at least...
23
26
16,604
2011-07-09T12:10:26.673
data_quality
softwareengineering.stackexchange.com
549,808
website not accessible with IIS6 while NAT is configured in Windows 2003
I have Windows2003 server configured with IIS 6. Until now it was working fine, but since I enabled NAT for my users to access the internet via this server, the website becomes unavailable. Note that I have two nics on the server one is WAN and 2nd is for LAN. Both IPs are behind the firewall. If I stop the NAT then th...
When you set up the server to do NAT, it doesn't know what you want to do with the ports on the public side. You need to configure the server to let Internet users access the web site. Here's how: Open the [CODE] console In the left pane, navigate to "IP Routing" -> "NAT/Basic Firewall" In the right pane, right-click y...
2
0
299
2013-10-31T05:05:48.750
infrastructure
serverfault.com
431,361
C++ PImpl and Move Semantics
Suppose I'm writing a C++ class with the PImpl idiom for the usual reasons of providing a stable ABI and/or reducing [CODE] dependencies. I want the class to have value semantics: modifying a copy of the object has no visible effect on the original object. Assume doing a semantic copy (copying the implementation member...
Option 2 is a good option if copying is a cheap operation anyway. Option 3 is also a good option if having a NULL [CODE] can be seen as a natural state of the object. Besides those, there is also an option 5: [CODE] Here, you create a new [CODE] with a moved version of the [CODE] class. The Impl class can then decide f...
2
2
494
2021-08-25T11:50:22.297
api_errors
softwareengineering.stackexchange.com
1,078,186
Outlook trying to autodiscover server that no longer exists
Autodiscover seems to have a lot of similar issues, but this one case existing solutions don't seem to help... Has the common "Allow this website to configure server settings?". However, the server listed below is a server that was removed years ago. The alert is popping up suddenly on a computer (which has been in ser...
Make sure any public/private DNS record for autodiscover.domainname.com got the same information, the correct IP for your autodiscover to work. As for me it seem most likely a DNS error. If the problem occur from the public side, make sure any redirection in any router point to the correct server. Keep in mind that if ...
0
1
1,557
2021-09-21T12:39:30.073
infrastructure
serverfault.com
281,795
Scripts for setting the environment for Oracle Database Multitenant
When working on shared database servers with several Oracle Container Databases installed in different homes and different versions it can be hard to find the pdb you are looking for quickly. We used a shell script to set the environment and I added a DB query function to display the PDBS. Example output: [CODE] The pr...
Looks to me like you are making this waaay more complex than it needs to be and re-inventing the wheel (oraenv) How bout this? [CODE]
0
1
2,014
2020-12-18T08:25:49.120
database_errors
dba.stackexchange.com
246,099
Relay log read fail, relay or master log currupt ,How to repair?
I am running mysql InnoDB cluster 8.0.17(group replication) During the repication the slave disk gets full and no space left at all the thread waits for the disk space to be freed at the same time this was happening the server restarted once server came back mysql error log shows relay log is corrupt and slave cannot r...
After searching for sometime I found a reason and solution. By default, the relay_log_purge variable was on and the relay_log_recovery was off in mysql configuration and both values are default. As per the mysql documentation the --relay-log-recovery option must be enabled on the slave to guarantee resilience in the ev...
2
3
1,785
2019-08-23T13:11:13.523
data_quality
dba.stackexchange.com
308,689
Server Monitoring / Network Health: What are the big players?
Possible Duplicate: What tool do you use to monitor your servers? What are the "best" monitoring solutions for mixed infrastructures ? i have been looking at the options and Nagios really look like to be the most complete software. Is there any other solutions i should be testing before purchasing ? We have about 25 se...
We have been using Paessler PRTG for a few months and it has worked well with our six remote offices and our main data centre. Does network traffic as well as monitoring services and VMs. Can use WMI and SNMP and does Netflow. There is a free trial Paessler and more info here. Support has been excellent when we have ha...
0
0
664
2011-09-06T20:03:23.297
pipeline_ops
serverfault.com
163,481
ruby on rails server is intermittently slow
My rails installation was chugging along nicely. Last night we had to perform a hot-patch with was really a standard deploy of some exception code. Once capistrano finished the operation one of our admins discovered that there were two long running passenger processes. While we have deployed release over the past two w...
Do your developers use some kind of performance monitoring tool like NewRelic RPM or Scout? Or they may be using one of performance-monitoring plugins. All these tools allow you to profile you production application in nearly real-time and see which parts of code take the most time to execute, so you can locate the pro...
1
0
304
2010-07-23T16:46:37.973
infrastructure
serverfault.com
250,708
MySQL - Column value depends on values from two different tables
I have a MySQL database that contains these tables (* denotes primary key): [CODE] : [CODE] [CODE] : [CODE] [CODE] : [CODE] The value of [CODE] column of each entry in [CODE] will be either [CODE] or [CODE] of the corresponding [CODE] entry, depending on whether [CODE] is a special date or not (whether [CODE] exists in...
With my original design, this view is simple to implement and it performs well. But if I get rid of the column TableB.price, how would I implement this view [CODE] Will the performance take a hit? I can't say for sure because I can't assume you have the right indexes setup to support this query without seeing the DDL o...
0
1
1,194
2019-10-09T23:32:16.583
database_errors
dba.stackexchange.com
523,862
Windows Server 2012 Can't Print
I know this may sound incredibly stupid and there is probably an easy solution but I can't seem to find it. Friends of mine recently upgraded their server for their small business from the POS old one. New hardware and a change from Windows Server 2003 to Windows Server 2012. I've got everything they need transfered ov...
I have seen problems like this when moving from win2003 server to win2008 and 2012. The problem is the print driver, and the new "easy print" system in windows. Some print drivers do not work with easy print. I should mention that the best solution is to use a "generic" print driver (under mfger "Microsoft") if that ca...
3
2
36,865
2013-07-16T22:38:16.533
infrastructure
serverfault.com
1,068,413
Set connection timeout using psql command line interface
Is there a way to set the connection timeout using [CODE] cli? How can I set a connection timeout to something low like 3 seconds using the following: [CODE] As far as I can tell, [CODE] does not support a connection timeout parameter. In the example above [CODE] is invalid and this command hangs for a long time. I nee...
Assuming [CODE] uses [CODE] , I think the environment variable [CODE] might work for setting connect timeout. You can check the libpq chapter of the official documentation for more details (do not forget to select the version you are using): https://www.postgresql.org/docs/current/libpq-envars.html
10
9
12,452
2021-07-01T18:31:39.250
infrastructure
serverfault.com
503,561
How to redirect all non www and http traffic to www and https with Apache2
In my httpd.conf, I have [CODE] But that's not working properly. I want the following to redirect to https://www.mysite.com : http://mysite.com https://mysite.com http://www.mysite.com How can I accomplish this?
Not sure what's not working properly. But the following will work: [CODE] This can be conceived as a duplicate post of many similar posts about rewrite rules on apache but I find this one particularly well worded about the redirect non-SSL so maybe this can be the last post that will need to be answered and people will...
3
2
1,738
2013-04-29T13:58:01.413
infrastructure
serverfault.com
1,041,292
Where is imagemagick located on an EC2 server
I am trying to update ImageMagick on my EC2 server. I'm not sure how to do that with a command so I just wanted to upload my local copy which is the version I need to replace the current version on there. I thought I had found it but when I updated the files it did not change the version or give me access to the update...
Just uploading your local version will likely not work at all or cause bugs. The imagemagick package is compiled for specific versions of its dependencies: [CODE] That information is included in the dsc file of the package. You can find the link to it here . You can use [CODE] to print the path to the binary. But as sa...
0
1
319
2020-11-04T16:48:34.917
infrastructure
serverfault.com
139,290
Kill Leaking Connections on SQL Server 2005
We have a legacy ASP application that somewhere leaks SQL Connections. In Activity Monitor, I can see a bunch of idle processes with Last Batch times over an hour old. When I look at the T-SQL command batch, these are always FETCH API_CURSOR[XXX] ([XXX] is a randomly seeming hex number, ex. FETCH API_CURSOR0000000002CE...
Not an original script but tweaked that might get where you need to be or at least a start: [CODE] ****Again, not original so credit must given to that now-unknown script writer **** I use a version of this to kill SQL 2005 spids that connect to a log-shipped stand-by database using Mgt Studion
1
1
3,314
2010-05-06T17:05:35.453
database_errors
serverfault.com
195,208
Issue installing SQL Server 2012 SP4 in a cluster - missing ‘vc_red.msi’
Installed SQL Sever 2012 SP4 (from SP3) on one node of a two-node SQL Server cluster without issue. On the other node it is exiting out of the install with the following message: The required MSI package 'C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Update Cache\KB4018073\ServicePack\redist\VisualStudioShe...
The problem is this update requires VS Redist 2010 SP1, but it does not contain it in [CODE] . Instead, it is in folder [CODE] inside of package itself. You can rename it to [CODE] , open it, and there is a [CODE] folder. I use [CODE] file manager with [CODE] plugin so I opened [CODE] file as [CODE] : Then copy it to [...
1
1
4,409
2018-01-11T20:14:38.370
database_errors
dba.stackexchange.com
329,506
Two way data synchronization between web application and REST API server
I have a web application and a REST API server (Microsoft Dynamics CRM 2016) that I don't have access to it's code, but I have access to the available resources. I need to create a data sync between both servers, some of the tables are one way and the others two way data sync has to be done, I haven't found any good so...
Given the scenario where you can't control/access REST server, you have to make calls for every table until REST service expose some API to enable this feature. But off-course you can optimize data flowing through network: Create list of tables which have updates more recent than your service (by querying REST service)...
1
1
3,436
2016-08-27T14:03:36.160
api_errors
softwareengineering.stackexchange.com
4,267
What top companies look for in an Interview?
Basically I am looking for what is it that you goof up and you are out from the remaining process ? Are elimination rounds a fair way to judge a person ? Anyone can have a bad hour :-( Should you code the best possible or should you get the Algorithm right ? I generally first code a workable solution and then work on i...
When doing technical interviews, I'm honestly looking for people to hit a home run. If the candidate doesn't look like they know their stuff, they're not going to be effective in their role (I'm talking senior developers positions here). Look at it this way: Would you rather have a tough interview where you don't get t...
9
7
789
2010-09-16T07:41:57.853
api_errors
softwareengineering.stackexchange.com
77,455
Time series binary classification
Which deep learning architecture and algorithms do you most recommend for time series classification problem? Of course LSTM, I am looking for state of the art papers.
https://paperswithcode.com/task/time-series-classification/latest -> You can find all the state-of-the-art papers along with code for Time Series Classification. https://arxiv.org/pdf/1809.04356.pdf -> This paper provides an in-depth review of some deep learning architectures for Time Series Classification. Hope it hel...
0
0
144
2020-07-09T21:46:21.457
data_quality
datascience.stackexchange.com
168,187
Select data from three tables using sub query and group by
I would like to write a query for SQL Server to select “Sales” by “month” (Sales from one table[sales_fact] and month from another table[time_by_day]) where sales is grouped by “ product_name" and it is again form another table[product] i.e. sales/product by month. Here is my query: [CODE] But it is not working. Gettin...
Your subquery: [CODE] returns a list of aggregate sum by product. But your main query expects only one value due you're grouping by month. [CODE] SQL Server returns an error indicating that your subquery returns more than one value. If you want aggregate sales by product, instead of a subquery, join your products table...
0
1
4,624
2017-03-26T02:09:55.387
database_errors
dba.stackexchange.com
347,513
Tabular Website Design with Continuously Added Content
I'm currently working on a site for a friend, converting a google sheet to a webpage (to reduce the time it takes to modify the spreadsheets and apply them to all users). One particular page is currently in a Google Sheet form, since the main purpose is to serve as a way of 'tracking' users. There's a lot of data that ...
For tabular data in a webpage, I'd suggest trying Datatables ( https://datatables.net/ ). I have used it several times to present JSON data returned from an API (so, I'm rendering client-side). Datatables performs really well and wouldn't have any issues with several hundred rows. I only started seeing rendering issues...
1
1
160
2017-04-21T04:56:02.007
api_errors
softwareengineering.stackexchange.com
1,051,028
Configure NICs as a switch in ESXi
ESXi 6.7u3, my host has 6 nics, I use one for connection to the network but i want to configure the remaining as a normal dumb switch, help needed. It seems that this should be rather straight forward but either it's not possible or i just can't get it to work. I'm using a ProtectLi Fw6. I need to basically run my VMs ...
An ESXi vSwitch (or dSwitch for that matter) never forwards frames received by a physical NIC back through another physical NIC. Therefore, you can't do switching/bridging between physical ports with ESXi natively. What you could do is to either install another ESXi-compatible virtual switch that does forward in betwee...
0
1
1,017
2021-01-24T19:48:53.960
infrastructure
serverfault.com
27,642
Meaning of "TRUE" column in R RandomForest output for Importance()?
I want to assess the importance of variables in my model using the [CODE] function of R RandomForest package. I have a binary response variable / class and binary feature values. [CODE] The output matrix contains the MeanDecreaseAccuracy and MeanDecreaseGini. I understand those two. My problem is with two other columns...
I don't see any columns like that. Here's a simple example: [CODE] If you're seeing columns named "TRUE" and "FALSE" in the matrix returned by [CODE] , my best guess is that those are the names of columns in your training data.
2
1
692
2018-02-09T09:46:08.143
data_quality
datascience.stackexchange.com
106,346
MongoDB eats 100% CPU when idle
I am running in OpenVZ container with Ubuntu 14.04 LTS. MongoDB version: [CODE] I use clean installation like described here - http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ [CODE] shows around 100% - 150% CPU [CODE] This is while nothing else is going on . Nothing else is running in the container. ...
This is the same issue as described here (for MySQL): High CPU usage from MySQL with no queries at all running [CODE] Caused by leap second and a bug in the kernel.
0
1
5,757
2015-07-08T15:08:41.363
pipeline_ops
dba.stackexchange.com
880,466
Block all non VPN traffic
I’ll shortly be traveling to a country with less lenient laws regarding free speech. I have a Windows 10 machine. I want to block this machines possibility to communicate on all interfaces except over a VPN tunnel (there is a network port and WiFi). If the VPN tunnel is down for any reason no network traffic is allowed...
The easiest way to achieve this is using the LockDown VPN Feature on Windows 10. With this feature all traffic must ONLY go over VPN and cannot go over other interfaces (except for traffic needed to establish basic connectivity as well as the VPN Connection) More information on deploying this feature is @ https://docs....
1
2
2,506
2017-10-26T16:40:07.547
infrastructure
serverfault.com
166,789
create additional oracle 11g database in linux
I have already created a database XE on my linux desktop.Please find the below information about the database. ORACLE_SID=XE ORACLE_BASE=/u01/app/oracle ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe I have to create another database,eg: database name is DB1. My question is how i can set ORACLE_HOME for DB1 and other pa...
Oracle Database XE Installation and Execution Restrictions Only one installation of Oracle Database XE can be performed on a single computer. This does not affect any existing installation or new installations of Oracle Database 11g Standard Edition, Oracle Database 11g Standard Edition One, or Oracle Database 11g Ente...
0
2
728
2017-03-10T07:25:19.143
database_errors
dba.stackexchange.com
146,586
Merits of a "Message Passing" system vs. an "Event Based" system
My question is coming from an somewhat uneducated perspective. What are the relative merits of a " message passing " system vs an " event based " system. Why would one choose one over the other? What are their strengths and weaknesses? I would like to know not just "in theory", but also "in practice". EDIT: Specific pr...
In my experience the only specific difference is that in most message passing systems, the sender of the message is aware of (and often declares) who the recipient of the message is. So instead of raising an event and anyone who is sucscribed to the event getting it, the sender defines some id of the intended recipient...
29
17
20,771
2012-04-30T13:29:12.470
api_errors
softwareengineering.stackexchange.com
233,062
How to optimize SQL query which involves GROUP_CONCAT function with ORDER BY
I wrote the following SQL query to group results and then sort results in each group by date: [CODE] Second query: [CODE] InnoDB table [CODE] is quite simple: [CODE] I have indexes on columns: [CODE] . And approx. 10 million records in the table. Above-mentioned query takes about 200 to 600 milliseconds. I tried to use...
Test [CODE] UPDATE: (draft code, see comments) [CODE]
0
1
1,013
2019-03-25T19:16:55.843
warehouse_errors
dba.stackexchange.com
127,354
What is the best way to store SSH fingerprints and public keys?
I'm building a virtual Keyring in our DB to allow users to store PGP/GPG public keys with relation to email addresses so that they can optionally encrypt all communications our system sends them. I'm just building the table now and wasn't sure about the column type to store the fingerprint. From what I understand finge...
If I'm not mistaken, the fingerprint is a hexadecimal number. That means you could store it as a binary number, since two hexadecimal characters can be represented by a single byte, making a 32-character hexadecimal string = 16 bytes. Here's the documentation on binary and varbinary data types for MySQL 5.7 (I don't ha...
0
1
3,252
2016-01-26T14:59:56.863
database_errors
dba.stackexchange.com
978,260
Dovecot + pam ldap authentication
Im trying to authenticate my mail virtual user's by dovecot through LDAP but i want to use PAM to do it instead of dovecot-ldap ( wanna use pam_cas module later on ). I setup everything but my problem is that my user's in ldap got uid without domain part, and dovecot try to authenticate users with full domain name. Whe...
set as separate variable auth_username_format and point it to %n value but with brackets. It should looks like that: auth_username_format = "%n"
1
0
505
2019-08-07T07:47:24.020
api_errors
serverfault.com
65,066
Need help performance tuning a query
Basically, here is the design of the table (the part that is necessary): [CODE] So what I am trying to do is to set the [CODE] dates to the data from the above column that is not populated with [CODE] . So the final data would look like this: [CODE] There are about 500,000 records being done at a time and it's about 50...
A possible simplification of the [CODE] statement that doesn't join the table to itself so many times. The query plan (at SQL-Fiddle, with small number of rows) is a clustered index scan with a clustered index seek for the subquery: [CODE] Seems to be good enough for the OP's situation. There is possibly some rewriting...
2
1
171
2014-05-13T18:08:05.157
database_errors
dba.stackexchange.com
1,042,884
Postfix with Docker: Error connecting to SMTP - 454 4.7.1: Relay access denied
So I have the following Setup Ubuntu 16.04 Server with postfix installed, running BigBlueButton On that, I have a docker container with Greenlight which is basicly the frontend of BigBlueButton This Docker Container has the IP 172.18.0.3 (which I added to my networks at the postfix config file) When I run [CODE] to che...
Are you certain that you got the IP addresses right? According to your postfix log, the sender is 172.17.0.2, not 172.18.0.3. Could you add 172.17.0.2 to [CODE] and try again?
1
1
3,264
2020-11-17T11:34:59.570
pipeline_ops
serverfault.com
410,826
How to learn more about IIS and Webservers in general
I am running technical support for a server software product. We support putting the static content of our product on IIS and Apache. Often I run into issues with the webservers (permissions, app-pools, etc). What is a good resource to find out all of the functionality and configuration options of the web-servers and g...
When it comes to learning any new technology, it's extremely tempting to take to Google, or even here on SF! However in my experience, the more I dig into the inner workings of different technologies, the more I value the good old fashioned book. Materials like O'Reilly guides are always a good bet, as well as vendor w...
0
3
70
2012-07-24T21:00:21.850
infrastructure
serverfault.com
103,206
Index optimization and cardinality
I'm by no means a DBA expert. Rather, a Magento developer having to troubleshoot some slow queries. I'll jump right in -- here's my attempt to [CODE] the troublesome query: [CODE] This table has anywhere between 4 and 5 million rows. The server is a dedicated DB server running on MySQL 5.5.42-37.1 and all the tables he...
The query has a lot of bloat: Two [CODE] , the second is completely unnecessary. Three levels of nesting, the last is also completely unnecessary. It uses [CODE] to find all the [CODE] that have rows with [CODE] and rows with [CODE] . Not the best way in my opinion. The [CODE] seems to return redundant information (the...
1
2
709
2015-06-04T00:04:39.487
database_errors
dba.stackexchange.com
313,109
How to monitor slow queries time on Mariadb
I have multiple MariaDB instances that I monitor with mysql exporter on grafana. I have spotted some slow queries recently which took more than 300 seconds by looking at the process list of the instance. My monitoring dashboard did not detect it because it looks for the number of slow queries and not their time. What s...
There are several sets of tools that will do what you want. First of all, enable the slow query log: [CODE] This will result in all queries getting logged with additional metadata. From here you can use: mysqldumpslow comes bundled with MariaDB/MySQL, but it isn't that great in terms of how it presents data. pt-query-d...
2
1
505
2022-06-08T14:15:33.947
bi_errors
dba.stackexchange.com
120,781
Design For Asynchronous User Interface
I have been working on a integration that has posed an interesting user interface conundrum that I would like suggestions for. The user interface is displayed within a third party product. The state of the interface is supplied by calls to a service I have written. There can be small delays between the actual state cha...
Just for the purposes of posterity, I'll share the solution. Race Condition The problem here is that the polling mechanism occurs every n milliseconds, and a request may be in-flight when a user clicks, causing a race condition. Happy path (button is enabled, then disables and stays that way): Poll Response (enable but...
5
1
2,514
2011-11-20T21:48:23.770
data_quality
softwareengineering.stackexchange.com
350,668
phpmyadmin scan from server IP address
I have number of such records in my Apache log: [CODE] Where 192.0.79.172 is my server external IP address configured on eth0. Clearly, someone is scanning server on subject of phpmyadmin vulnerabilities. But why all such logs entries show my own server IP address not the attacker? I would like to block such scans. I f...
With default setup you will always have your server IP in Apache logs, because Nginx is a client here. You can try adding some options to Nginx to pass real IP: [CODE] Or you can enable and examine Nginx logs.
0
2
570
2012-01-17T15:14:37.657
infrastructure
serverfault.com
178,224
I want to build a Virtual Machine, are there any good references?
I'm looking to build a Virtual Machine as a platform independent way to run some game code (essentially scripting). The Virtual Machines that I'm aware of in games are rather old: Infocom's Z-Machine , LucasArts' SCUMM , id Software's Quake 3 . As a .net Developer, I'm familiar with the CLR and looked into the CIL Inst...
I'd start by checking Lua . Both as a sample implementation, and as a very usable VM/language out of the box if you finally decide not to roll your own. The source code is very readble, and there's also the Annotated source code . And some Design documents written by the main author, Roberto Ierusalimschy. Finally, if ...
24
19
10,721
2012-12-04T09:36:13.250
api_errors
softwareengineering.stackexchange.com
12,016
Running AWS lambda in serial (for a given parameter)
I'm not sure if this is the best place to ask this. But we've currently got something in Microsoft Azure where we have their serverless functions (Azure Functions) running in serial based off a particular key, say a user ID. So I want these functions to be called in parallel for different users, but in serial for each ...
Use SQS with Lambda to accomplish this. SQS supports 2 types of queues: Standard & FIFO. FIFO is appropriate for your use case. Create a FIFO queue & attach a Lambda function trigger to it. This causes the Lambda function to be triggered when a message arrives in the SQS queue. When you send a message to a FIFO queue, ...
1
2
377
2020-07-17T13:55:23.147
pipeline_ops
devops.stackexchange.com
314,775
md-RAID5 - How fast should it be or where is the bottleneck?
I set up a new server with a LUKS encrypted RAID5. On the former server, the bottleneck was definitely the CPU, as it was a 7y old single core and the load went up to 100%. Now it is different. I still get poor write performance, but I cannot see where the bottleneck is. During [CODE] I get [CODE] The array is in sync ...
RAID-5 tends to have pretty low write performance, but I admit less than 13 MB/s is sub-par. Can you try benchmarking only a single disk? I've heard horror stories about WD Caviar Green series over the years. Haven't checked out if things have improved, but couple of years ago the debate was about RPMs of Caviar Green ...
1
1
2,211
2011-09-23T09:58:30.113
infrastructure
serverfault.com
456,366
Mid-2011 Mac Mini Server keeps dropping a disk from RAID, not sure what to do about it
The small business that I do sysadmin work for on the side uses a mid-2011 Mac Mini Server (running 10.7 Lion) as a fileserver and FileMaker database host. Its 2 750gb HDDs are RAID 1'd together, and it Time Machine backups over USB to a RAID 1 array of 2 1 TB disks. I set it up about a year and a half ago and had no p...
Have you read any log files that might give you a hint what the issue is? I would definitely not rule out a hardware issue - it's not only the disks that might be damaged but cables and even connections on the main board can be the culprit if they are no up to spec for whatever reason. These can be problematic to get r...
0
0
770
2012-12-08T16:41:40.810
database_errors
serverfault.com
488,128
How to improve poor SQL Server performance
We have a virtualized environment using VMware vSphere 5.0 U1 which hosts our Microsoft SQL Server and have very poor performance. the host server is a HP DL360 G5 with xeon X5450's, and the disk space comes from a SAN on HP P4300 G2's using SAS2 and Iscsi. The server itself has 3 cores at 3.00ghz, 12gb memory and 1gbp...
When you say memory is maxed out, did you account for the fact SQL will do this (pretty much) by default? Have you tried limiting the amount of RAM SQL can take? How is your disk layout set up? Different disks for temp/log/data/backup? You can run this script to find out: [CODE] How are your autogrows set up? How are y...
2
1
417
2013-03-15T12:33:41.803
warehouse_errors
serverfault.com
335,880
Writing business logic in view
Can writing business logic in the view(.cshtml) of an MVC application have an impact on performance (for example, Load time)? Is it the preferable way or are there any other best practices?
Writing any logic in a view is an anti pattern. When writing mvc you need to create a model that matches your ui 100%. This model will be separate from your db model. You should utilise editortemplated and displaytemplates whenever you have a list of something in your model. If you have a list of Foo called foos do a [...
1
2
498
2016-11-12T07:10:08.340
api_errors
softwareengineering.stackexchange.com
503,351
Squid releasing CSS files unnecessarily
The setup I have has Firefox talking to a web server with Squid being a caching proxy. Firefox Squid (ssl_bump) Web server While images (even on https) are cached and do see cache hits, most of the CSS and JavaScript files get cached and get released: [CODE] I tried playing with the switches in the config file, but not...
What I've temporarily ended up doing is that I modified HttpHeader.cc in squid's src directory to turn a blind eye to the "Vary" header. Original line: [CODE] My workaround: [CODE] But yes, this is a crude hack that's grossly unsuitable for anything other than temporary testing. Hopefully there's a better way out.
0
1
531
2013-04-28T16:32:10.350
infrastructure
serverfault.com
306,815
How do I stop script after certain maximum time?
I am doing daily backups to S3. I would only like to consume upload bandwidth only from 8 PM - 8 AM. Any individual run could take longer than 12 hours because our upload is crappy. I'm not worried about killing s3cmd arbitrarily because it will correctly recover on the next run. My crontab would look like this: [CODE]...
you are likely wanting the [CODE] command. [CODE] [CODE] for more information. at least in fedora this is installed with the "coreutils" package, which you should have by default.
2
5
2,723
2011-08-31T13:16:43.377
database_errors
serverfault.com
243,282
Job completes successfully and logs the errors to a text file
I am using Ola's scripts for our database backups, I am trying to come up with a way to be notified if any of the database backup fails. Job completes successfully and logs the errors to text file, Can we get a notification\alert that it found errors.
Create a notification for the Job failure. The below email will help you with the steps: Step 1 : Configure database mail and do a test if thats working fine. Step 2 : Change Agent properties Under Mail session, select the option to Enable mail profile. Ensure the correct Mail profile is selected. Step 3 : Create Opera...
2
3
131
2019-07-19T06:48:23.187
database_errors
dba.stackexchange.com
605,974
KVM : VMs need several restarts to boot (on 2 different hosts)
I'm using a KVM hypervisor on a Ubuntu Server 12.04 server. My virtual machine's virtual disks are LVM volumes, formatted as ext3. The guest OSes are all Ubuntu 12.04 and 14.04 server. Everything runs smoothly, except that the virtual machines gets stuck during boot, displaying a message like : [CODE] This happens whet...
I had a very similar issue after migrating some VMware guests to a new KVM host- until I came across this blog post which referenced back to serverfault . The solution that worked for me was to add: [CODE] to the [CODE] in [CODE] Don't forget to run [CODE] after editing the file. What is nomodeset? The newest kernels h...
1
1
1,729
2014-06-18T08:20:29.367
infrastructure
serverfault.com
372,385
Short write and read speed disk benchmarking
We're using cloud hosting for some of our backend servers and we noticed that performance on the disks (which as confirmed by the provider are shared with other customers) vary depending on the time/day of the week. We would like to find out how performance evolves throughout the day/week to decide whether it's worth m...
I wouldn't have thought it necessary to repeatedly run a benchmark/speedtest. Simply observing the I/O Wait, I/O in/out and I/O activity graphs in Munin would give you a solid overview. Plus, a 10 second benchmark will do no more than showing you how effective the disk buffer/caches are. Which would then lead you to fl...
0
0
675
2012-03-22T11:44:03.530
infrastructure
serverfault.com
257,135
How to get the SQL_ID that is blocking another SQL?
Well, I'm personalizing a useful script that I found and I need put in this script what is the sql_id of the SQL that is blocking another SQL. Here is my script, if you try this, You never will get the sql_id of the blocker session, just the sql_id of the bloqued session. [CODE] Can someone help me?
Locks belong to transactions, not SQL statements. SQL statements do not block other SQL statements on their own. Transactions may block other transactions. A transaction may consist of multiple SQL statements. The database can return the current ( [CODE] ) and previous ( [CODE] ) SQL statement for a session. If the blo...
0
1
949
2020-01-10T20:45:00.807
warehouse_errors
dba.stackexchange.com
180,271
why index scan is slower then seq scan?
[CODE] Given that [CODE] is integer indexed with btree, should't it be faster to sort and then select using tree search?
PostgreSQL will evaluate all (or a high number) of possible query plans, and make a good guess at which one will be the least costly. If the different cost parameters (that depend, for instance, on the speed of your disks; the amount of available memory, etc.) are well set, most of the times that guess will be accurate...
4
6
4,721
2017-07-19T18:14:17.373
database_errors
dba.stackexchange.com
48,135
Is SQLT safe to run in production?
I am debugging poor query performance for my application and recently came across the SQLT tool. The XTRXEC method combines XTRACT and XECUTE and it seems like this provides more info then XTRACT alone. However, one of the statements that I want to investigate is an Insert. Is it safe to run XTRXEC in a live production...
This is from the sqlt instruction file itself: "For statements that modify data, i.e. INSERT/UPDATE/DELETE, a savepoint is created prior to statement execution and the transaction is rolled back to the savepoint at the conclusion of the session. For further information regarding SAVEPOINT please consult the Oracle Conc...
2
0
159
2013-08-14T15:22:02.003
warehouse_errors
dba.stackexchange.com
210,841
File permissions with no sense (Linux, Apache)
I have a problem with file permissions which is driving me crazy. I have a Perl web app which installs itself, copying some files, creating DB, and so on. All works fine, except for some image files. These images aren't accesible by Apache: [CODE] But, the file es 644. I've tried chmod 777, and chown to Apache user, wi...
I suspect that perhaps SELinux is causing problems? Disable it and see things start working: [CODE] If things worked after disabling it, try [CODE] and re-enable SELinux to see if maybe your SELinux contexts were screwed up.
1
2
715
2010-12-09T13:57:16.250
database_errors
serverfault.com
74,320
How do I fix and prevent corrupted MySQL tables?
We have developed software that uses MySQL. After some months of usage, some of the database tables had been corrupted and need to be repaired. Because of the corruption,we are not able to create a backup using Navicat , and we can not generate a dump too. The log file has been indicating the following error for more t...
Have you tried [CODE] or [CODE] http://dev.mysql.com/doc/refman/5.1/en/repair-table.html --EDIT-- As mentioned in the comments under your question, convert your tables to InnoDB tables which are transactional. This should help prevent corruptions in the future.
0
3
681
2014-08-18T07:37:03.603
database_errors
dba.stackexchange.com
586,053
EC2 hosting, trying to understand network security model
We are hosting few virtual machines at amazon. Security groups and other configurations are set up to allow access only from desired addresses and to desired parties. The machines do talk with each other. My concern is about communication security. I tried searching around the web, but may be I am missing right keyword...
According to their Security Practices statement: http://aws.amazon.com/articles/1697 Packet sniffing by other tenants: It is not possible for a virtual instance running in promiscuous mode to receive or "sniff" traffic that is intended for a different virtual instance. While customers can place their interfaces into pr...
2
2
347
2014-04-02T01:27:44.987
infrastructure
serverfault.com
34,028
Why is it recommended to close all programs before installing a new program?
What kind of problems arise from installing a new program while other programs are running? I'd imagine the GAC solved a lot of the old problems of shared dll's being locked. So what kind of issues still arise? I can see issues with upgrading a single program for sure, but outside of this its hard to see why apps would...
GAC only helps with .NET assemblies. There a lot of other applications which are not written in .NET. What else problems exist? Other applications holding files open Other applications holding network connections open Other applications holding devices open Other applications slowing down the machine so that an unexpec...
10
15
7,773
2011-01-05T20:13:59.263
api_errors
softwareengineering.stackexchange.com
981,814
backuupc connection refused after upgrade
I conducted an upgrade to Debian Buster and lifted the backuppc version as well. Now I get an error when logging in to the website [CODE] [CODE] shows backuppc as [CODE] .
Backuppc cannot connect to the unix socket. Create the neccessary folder and restart the service. [CODE]
0
0
718
2019-09-04T09:27:30.363
api_errors
serverfault.com
766,122
ADUC object keeps returning
Within ADUC after turning on View -> "Advanced Features" and "Users [...] as containers" and clicking on a user, the right pane shows the users' objects. I am trying to delete one called "OTS Protected Storage" (Digital Persona software). Steps: Right click -> Delete "Are you sure you want to delete the dpUserSecret na...
If I google Digital Persona Software , it looks like software/drivers related to a fingerprint scanner on the PC. The object it's creating on the account is likely storage for the fingerprint metadata for that user. The object is likely harmless and probably required if you actually want to use fingerprint scanning for...
0
0
136
2016-03-25T16:23:47.603
pipeline_ops
serverfault.com
304,956
asterisk system function not working in dialplan
After a call hangs up, I've setup several lines in my dialplan to execute system commands. For instance, I have this in my dialplan: [CODE] In my logs, all I'm seeing is one System command running: [CODE] The rest are not running and the dialplan seems to just stop. I don't see any additional errors occuring. WTF is go...
see other log output h@fax-tx:4 mean h extension priority 4. so it do somethign for 1-3, maybe parts included by other contexts.
0
0
1,725
2011-08-25T16:13:47.983
infrastructure
serverfault.com
533,743
Hide or revoke permissions to the .ssh directory for sftp and ftp access
I dont want that the user has access to the ssh key via sftp and ftp. Is there a way to change the directory or revoke the permissions, even to see the .ssh directory ? Have not found anything with google. Im using debian 6
Because the authorized keys file needs to be read by the user that's login in, there is no way to prevent him/her from, at least, reading it. However, you can place the public keys of authorized users in a custom path using the following directive: AuthorizedKeysFile Specifies the file that contains the public keys tha...
0
3
1,900
2013-08-26T08:32:47.517
infrastructure
serverfault.com
798,025
How can I run chef-client remotely (windows to windows) without a password
I really hope I'm missing something here - because I'm starting to love Chef, but some pieces feel extremely stupid. I have a process (service) that runs under specific credentials. Those credentials (user / password) were typed in once upon installation of the service and are not visible to humans anymore. I want that...
I found my own answer. The short answer is "No", the [CODE] utility does not support this. However, [CODE] does natively support the ability to have your credentials come across the wire without having to re-type the username/password! So, I will have to use the [CODE] command to query Chef to find all the nodes in a p...
0
0
4,301
2016-08-20T01:34:23.840
pipeline_ops
serverfault.com
179,790
zabbix postfix gmail notification on ubuntu
How to perfectly configure zabbix gmail notification with postfix(relay to gmail) Actually this setup is working on my local machine but when I try to implement this on my real servers, email notification is failed and I could see the following error in Administration>audit>actions [CODE] my "/var/log/mail.log" message...
try configuring e-mail server in zabbix media type configuration as 127.0.0.1, not localhost. if localhost resolves to ::1 and zabbix_server is compiled without ipv6 support, that may fail.
1
2
7,057
2010-09-10T06:22:09.467
infrastructure
serverfault.com