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
244,191
Postgresql, commas in string_agg function
Need FIELD like this, with [CODE] and without [CODE] at the end of whole field. [CODE] Tried [CODE] but error behind 2nd [CODE] [CODE] With [CODE] at the end of whole field, I don't know how to do that. Thanks.
to escape a ' in a string in postgres, you have to double it List of escape sequences for Postgresql string data types so this give you this : [CODE] I tested it, it works =) However, i don't know why you want to create this field, but it's probably better to follow a_horse_with_no_name's answer and use Jsonb_agg and l...
0
1
1,191
2019-07-31T09:17:59.083
database_errors
dba.stackexchange.com
1,119,035
Nginx conflicting server name "" on 0.0.0.0:80, ignored
I cannot figure out how to resolve the following warning when running [CODE] : [CODE] I have two sites running on my server. home.conf [CODE] bug.conf [CODE] Going to the site bug.int.mycompany.lan always shows me the int.mycompany.lan site instead. If I remove the symlink to one of these files from /etc/nginx/sites-en...
Silly mistake. I deleted the semi-colon on the [CODE] line. That took me several hours to spot.
0
0
5,377
2022-12-29T05:40:49.440
infrastructure
serverfault.com
26,901
SQL Server Schema Security
I have a user U in a database where I want it to be able to create types and stored procs in a specified schema say UserSchema but not be able to alter schema dbo. So I created the schema and also applied the following grant statement to it: [CODE] When I login as user U and I try create a type in UserSchema it fails w...
That's because you also need to grant the [CODE] permission on the database to the particular principle(s). Please see this BOL reference on CREATE TYPE : Requires CREATE TYPE permission in the current database and ALTER permission on schema_name. [CODE]
2
2
184
2012-10-12T11:04:16.497
database_errors
dba.stackexchange.com
12,595
Do operations on indexed views happen in parallel?
When I'm inserting into a table that has a view with a clustered index, the estimated execution plan appears to do the table insert and the view's clustered index insert operations in parallel. Is this true? Why do the %s not add up to 100%? Below is somewhat of a contrived example. [CODE]
It appears to do it in sequence in your plan. Not in parallel. The insert happens into the heap. The inserted rows are inserted into the eager spool which is a blocking operator. When all rows are inserted into the base table the rows are inserted from the spool to the view. As for the percent issue it appears that the...
3
5
173
2012-02-09T21:42:08.407
database_errors
dba.stackexchange.com
347,476
Apache Virtual Host with Alias
I have a virtual host running on my local copy of Apache. It has an alias. [CODE] This works fine. I can access the alias by going to [CODE] in my browser. However, I have a simple [CODE] in that alias' folder, which rewrites everything (except folders) to the index.php page. This rewrite is working fine. Although the ...
Solution : The RewriteBase have to be the same as the Alias definition, not the physical path/directory in the filesystem! Check the [CODE] directive for mod_rewrite, it sounds like it could be related to that. Read about it at: http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase Edit 1 : To try this ...
2
7
26,768
2012-01-06T20:17:50.153
infrastructure
serverfault.com
325,173
Can not log in to Amazon EC2 instance (Beginner)
I am having difficulty logging onto my Amazon ec2 instance. I set it up, downloaded the key. At first it complained because my permissions were setup correctly. Then I executed: [CODE] . When I try to log in, I still get: [CODE] Next I deleted all of my keys and tried fresh: [CODE] I am confused by the other responses ...
Ok I figured this one out by trial and error. Below is the string that AMAZON told me to use. [CODE] Next is what I tried first [CODE] Error message says use [CODE] . [CODE] Other than stumbling on this How was I supposed to know the user name was bitnami?
0
0
862
2011-10-26T18:44:03.333
infrastructure
serverfault.com
797,009
How do I successfully deploy shared printers via GPO? Windows 10 Pro + Windows Server 2012 R2
I keep getting a GPO error 0x80070bcb on my Windows 10 Pro clients when trying to install a Brother shared network printer. Apparently this error means it can't find a driver (or can't install it). The printer is shared from a Windows Server 2012 R2 machine, which is also a DC in my domain. I have downloaded the latest...
I found that Cumulative update for Windows 10 KB3176493 breaks the deployment of printers via GPO to Windows 10 clean builds. I uninstalled this update and have successfully deployed my printers again to my clients.
0
0
1,474
2016-08-16T01:32:59.157
infrastructure
serverfault.com
44,337
Switch from Solaris to Linux cut backup speed 80%. Help me get the old speed back?
First a quick overview of the environment: NetBackup running on Windows Servers (6.5.4 if you care) with LTO3 drives. The backup target used to be a Solaris 9 server, on Sun hardware, with Veritas Volume Manger. Rebuilt as RHEL5 box using LVM to manage the volumes, now on a Xiotech SAN. With a large number of volumes. ...
The problem turns out to have been a NetBackup client version problem, more than it was a linux/LVM problem. When the box got rebuilt as a linux box the 6.5 client was installed. Today in response to another issue we upgraded client version to 6.5.4. I am back to pulling data off the box at 25-27mb/sec. How it is I cou...
2
2
950
2009-07-22T23:23:10.437
database_errors
serverfault.com
184,111
Programatically scan a stored procedures parameters
I have been trying to figure out how to scan a stored procs parameters from the execution plan. I often see most people suggest using the ParameterList within the execution plan xml. This works fine when there is just one statement that uses all of the parameters. However this is often not the case. The stored procedur...
This is as close as I got to extracting the parameters and their values out of the plan. However, this query fails to get the parameters 100% of the time because of the reasons listed above. EDIT: Removed previous posted query. This version groups all the parameters, and finds them at any various level in the plan. Thi...
1
0
634
2017-08-22T19:14:41.327
database_errors
dba.stackexchange.com
670,563
Configuration of git-http-backend with Nginx (returning PROPFIND 405)
I'm trying to configure git-http-backend over nginx and having some troubles. The actual result is that I'm getting a 405 error for the PROPFIND request: [CODE] Versions: Debian GNU/Linux 7.8 (wheezy) git version 2.3.0 nginx version: nginx/1.6.2 fcgiwrap version 1.0.3 The configuration parts: nginx site configuration [...
Oh sorry, this was my mistake. The problem with my configuration was, that I clone the repository via https_://dlock.../lw/bla which successfully worked, because of: [CODE] But [CODE] expects for sure: https_://dloc.../git/lw/bla to serve requests via smart http backend m(. If anyone stumbles upon same issue, the follo...
2
2
3,030
2015-02-22T16:33:08.870
infrastructure
serverfault.com
15,249
MKS Errors on ESX
I have several ESX 3/3.5 servers (a few standalone 3.01 and the cluster is all 3.5) and every now and then I get an MKS error when accessing a VM console (10% of VM's). Looking on the VMWare forums no one seems to have a definitive answer. From what I can gather the usual suggestions are Make sure your VI Management Co...
What might help is making sure you have the following setting on all the affected ESX servers: /etc/vmware/config file needs the line [CODE] Here's more info on this issue, it appears to be a bug which should be fixed in later releases: http://communities.vmware.com/message/442403
2
1
6,091
2009-05-29T23:15:29.857
infrastructure
serverfault.com
564,818
Bypass cache from single IP with NGINX
I want to setup NGINX to serve content from the cache to everybody but one IP address. The 2 goals I want to achieve are: make sure that from the specified IP I never hit the cache but will be served the actual file on disk (so if I remove the file it should immediately give a 404) for all the other IPs: if content is ...
Bypassing the cache is done with [CODE] . It will cause the cache to be bypassed if any value you pass to it is nonzero. But before you can do that, you need a variable to pass to it. In your case this can be done with a [CODE] directive to examine the remote IP address. (It could also be done with a [CODE] , which is ...
2
2
4,040
2014-01-03T11:22:21.277
infrastructure
serverfault.com
267,541
Conversion failed when converting the nvarchar value 'A35' to data type int
This is my stored procedure that I am trying to execute: [CODE] After creating the procedure the error I am receiving is: Msg 245, Level 16, State 1, Procedure CAMP_UpdateCaseProfileID, Line 4 [Batch Start Line 2] Conversion failed when converting the nvarchar value 'A35' to data type int. Please Help!
We could use more information about the relationship between these tables. It sounds like you want to update the records in one table, when there is a change to related records in another table. Depending on the relationship, a foreign key constraint may accomplish what you need. This is Microsoft's documentation on cr...
-1
1
1,027
2020-05-20T15:43:52.537
database_errors
dba.stackexchange.com
829,005
View disk activity (IO/s, MB/s) of a Windows server remotely
Our company does a lot of very network- and disk-intensive processing. We would benefit greatly from being able to glance at which of the five drives on the server are currently being "hit" or have a lot of read and write activity. All the information that we would need to make decisions is very easily found in Windows...
You can use "Performance Monitor" to connect to another computer, gathering its performance data. As "Performance Monitor" can monitor many items, you obviously need to select the correct metrics.
0
0
2,979
2017-01-27T14:52:29.480
data_quality
serverfault.com
710,386
How to find difference in sending passwords to ProFTPD
There is a CentOS Server with proftpd installed, that works for a long time. Now I create a user the right way as the last time and check it with ftp command on windows CMD and it works. [CODE] Now the new user try to connect with the new created credentials to the server and get a password incorrect. So I retry with t...
You could use tcpdump to capture the packets from the wire to a file then analyse them. That should tell you exactly what is being sent.
0
0
454
2015-08-03T07:01:27.373
infrastructure
serverfault.com
122,455
Windows iScsi software initiator automatic reconnect
I am using sofware iscsi initiator in windows server 2008 r2 to connect to a san. Everything works fine. But issue is if at time of boot san is not available it's not adding drives. It stays in reconnecting status when san is available. I have to manually disconnect and connect to get it working. How can i make it auto...
Make sure your [CODE] is set to [CODE] start.
2
1
2,538
2010-03-15T03:54:46.337
infrastructure
serverfault.com
263,309
What is the HTML 4 DTD role in HTML5
All, I know there are three types of [CODE] for [CODE] (strict, transitional, and frameset). And I knew the [CODE] defines the syntax of markup constructs and the document structure with a list of legal elements and attributes. So why is [CODE] missing in [CODE] ? Isn't it necessary for [CODE] ? Or no need to specify [...
HTML5 is not an application of SGML, therefore it doesn't need an SGML DTD. I'm pretty sure that there are some things in HTML5 that are illegal in SGML, so even if you wanted to, you couldn't create an SGML DTD for HTML5.
0
3
165
2014-11-20T11:13:15.890
api_errors
softwareengineering.stackexchange.com
1,102,384
reverse nslookup attach arpa zone to response
I have an issue that some reverse (PTR) resolution reattach in-addr.arpa zone to response.This is something wrong in the named(bind9) configuration. Now is : [CODE] How should be : [CODE] Can you suggest which config files can produce this wrong output ? Or which config files to lookup ? Thanks
This is because you have in your zone something like this: [CODE] Notice that ORIGIN is appended to each and every relative name in the zone (defined below the line where origin was set), including names that appear to the right in the data of PTR, MX, NS, SRV, CNAME (and possible other) records. If you want some names...
0
1
258
2022-06-03T08:38:16.857
infrastructure
serverfault.com
672,603
How can I remove stagnant Exchange 2010 MoveRequest when the target DB is no longer available?
I inherited a server that was running a move request to a new mailbox database. Unfortunately the server died a horrible fiery death during this move request (some genius set up a RAID 1+0 array with just two disks, and only one connected...) and I was unable to restore from a recent backup. Since I recovered from a da...
I have not tried the below answer, but it seems reasonable as a starting point for your own investigation. http://www.nonstop.co.il/kb/view.php?kb=66 Solution Open ADSIEDIT and navigate to the OU where your broken user account is stored. Locate the user account, right-click on it and then choose "Properties". Click on ...
1
1
421
2015-03-03T03:05:37.497
database_errors
serverfault.com
1,010,136
Yum on Centos 8 - Failed to download metadata for repo 'AppStream'
I'm on a fresh Centos 8 install and have tried to use yum for the first time (on this machine). I get the following for any attempt to install or update anything: [CODE] Port 80 is open although nmap reports it as closed presumably because I haven't yet installed apache. To be double sure I have added port 80 to firewa...
Apparently not the problem here, but if you have pinned yourself to CentOS 8.1.1911 you will get the same error until you re-point your /etc/yum.repos.d/ repositories at http://vault.centos.org instead of http://mirror.centos.org
8
6
122,634
2020-03-30T19:25:35.410
infrastructure
serverfault.com
821,710
Error MDAC higher than V2.6 required but V10.0 installed
We're trying to run a program that connects to SQL using ADO. It's been working fine for computers running Windows 7, but a new PC running Windows 10 is getting the below error Application cannot connect to a database via ADO wit ha version of the Microsoft Data Access Components lower than version 2.6. MDAC v10.0 was ...
I was just given more info after posting this question. The application is used for multiple legal entities. Some of those entities have been upgraded, some haven't. The fix is to upgrade the application dll's to recognise v10.0 (will require vendor support) or run the application on a PC that doesn't have v10 installe...
0
0
238
2016-12-20T00:46:42.420
infrastructure
serverfault.com
125,401
Integrate MySql Full Text searches in CMS
I'm developing my own CMS and using MySql v5.5 DB to save the content items records. Due to a technical limitations, I can't upgrade my database to a newer version that support Full-Text searches on InnoDB tables. Would it be a good practise to use MyISAM tables for textual searches while the "real" data is saved in In...
It works. It performs reasonably well. You have two tables, one is InnoDB and contains most of the attributes of an entity. The other is MyISAM, is 1:1 with the first table, and contains a [CODE] field, plus [CODE] index. The relevant query looks something like: [CODE] I think that the [CODE] will always occur first, e...
5
3
548
2016-01-06T16:10:16.710
database_errors
dba.stackexchange.com
7,746
Are there any good tutorials on how to set up JMeter to load test a deployed ASP. NET web app?
I'm having trouble finding a decent tutorial on how to set up JMeter to load test a deployed ASP.NET web app? Does it have to run on localhost or can it be used to test a deployed app? I would like to test the performance of the deployed app during different times of the time and test at what times is the app most stre...
From server side perspective if you want realistic numbers your application needs to be deployed to environment close to production. From JMeter side you need to consider the following: Correlation. ASP.NET web applications use dynamic request parameters like VIEWSTATE and EVENTVALIDATION. You'll need to extract them f...
3
2
1,531
2014-02-06T20:11:30.953
data_quality
sqa.stackexchange.com
442,339
Is Microservices a means of implementing Clean Architecture through technological constraints, just way more expensive?
I spend a lot of time lately talking about Microservices architecture and I have a really hard time buying all the benefits that are sold to me. For most arguments I hear I come to the conclusion that Clean Architecture can do just the same, especially when combined with strict implementation of architectural fitness f...
I'd say microservices are a technical solution that enables you to employ more people working on the same system. The microservices provide boundaries between teams to they don't step on each other toes quite so much. So if you are unsatisfied with the speed of one Team of 8 people, you can use microservice architectur...
0
6
274
2022-11-18T20:21:50.133
data_quality
softwareengineering.stackexchange.com
924,724
CustomResponse Action Type Status Cod 404 on Azure Web App
I'm attempting to setup a rewrite rule to return a 404 for a directory on an Azure Web App. We're using Sitecore, so I'd like to block access to the Sitecore admin interface on our delivery servers. In my web.config, I've added the following rewrite rule [CODE] However, this rule doesn't have any effect. If I change th...
Works for me if I just use the [CODE] instead of [CODE] . I tested with a rewrite to block access to an images directory, first with a [CODE] : [CODE] And then with a [CODE] : [CODE] Removing the rewrite:
0
0
495
2018-08-03T01:26:15.960
api_errors
serverfault.com
322,754
How do I get the date next week in SQL (Firebird)?
I want to get a date using an SQL statement. For instance, if the date is '2018-08-07' output this should return: '2018-08-14' (one week later). Then I'm going to get the total rows between these dates. [CODE] However, i get this error because of dateadd() function: [CODE]
You need to use [CODE] , note the keyword date used. Consider the following data [CODE] Result [CODE] https://dbfiddle.uk/7Vh6wDiw
2
5
688
2023-01-30T09:02:05.003
warehouse_errors
dba.stackexchange.com
947,623
Properly redirect traffic with nginx for java client-server apps that use their own certificates
I have a server and a client app, that communicate with each other using Https connection and their own certificates (.jks file). The server listens on port 443 and the client connects to it using the dedicated IP and the port of the server. Recently, I wanted to add a website/service on the same machine. I registered ...
I did find a temporary workaround; still looking for a better solution. The JKS file can be transformed to the required files for nginx by following the below commands [CODE] After doing that, changing the config file for the Java apps to the below: [CODE] reloading the settings with [CODE] and the Java application was...
1
0
1,514
2019-01-04T16:37:18.460
api_errors
serverfault.com
873,428
rsync blocked - re-reading the same data again and again
I have some kind of a synchronization script transferring files from a production server to a DR one every day via rsync. however, since a few days the script seems to be crashing. they were multiple instances of it running, so I killed them all and restarted the process, however, it doesn't seem to do anything. when t...
it looks like my filesystem grows to 100% while doing the rsync and that's probably the reason why it fails ! I will see to extend it and rerun the process again (I also had an ssh key error)
1
0
553
2017-09-13T09:32:06.150
infrastructure
serverfault.com
358,574
recursive mounts not visible in endpoint
I have a little (virtual) infrastructure with multiple servers - and some of these configuration I cannot change because of software restrictions. 2 of the servers are WEBservers, and a NAS-like server. In front of the webserver is a load-balancer (not question related, but for understanding). The NAS has mounted a par...
You want to take a look at the [CODE] option. As the manpage for exports says:- This option is based on the option of the same name provided in IRIX NFS. Normally, if a server exports two filesystems one of which is mounted on the other, then the client will have to mount both filesystems explicitly to get access to th...
1
0
749
2012-02-09T22:44:06.430
infrastructure
serverfault.com
25,062
How can we scale up the number of classes for deep learning after training a model?
I have trained a deep learning model for a face recognition application. The model has been trained on the existing subjects (or call it classes) in the gallery. Now consider the real world problem, where the gallery size is dynamic as new subjects are to be enrolled, how can deep learning solve those type of problems?...
Face recognition from images is still an open area of research. Many different techniques have been tried. One approach is not to directly learn the identities of the people as classes, but to learn a multi-dimensional embedding for images of faces (e.g. 128 dimension vector) and train the network to make this embeddin...
3
4
189
2017-11-23T19:35:22.613
data_quality
datascience.stackexchange.com
970,918
substitute url with apache mod proxy
I have configured a new vhost on apache 2.4 and when I tested the configuration all work fine but only one page is not redirected correctly. the call to the images is done by images.html page : [CODE] the received code in the browser is like this : [CODE] are there any chance to change all localserver in the response t...
the correct code is : [CODE] with mod substitute I have replaced the localserver with publicnameserver. thanks for your help.
1
1
2,863
2019-06-11T08:40:08.343
infrastructure
serverfault.com
35,213
Set up AlwaysOn in virtual environment: How to add nodes to domain?
On a beefy server, I have a few Virtual Machines (VMs) running. On one of those, I have Domain Controller (DC) with a domain name (ex:SQL.AD.COM) running successfully. Now, I need to add the other VMs into this domain. How do I do that? For AlwaysOn, all nodes must in a domain. So, for that to happen, all nodes need to...
Finally after some reading more articles on Windows and AD Networking and speaking with abunch of people, this is what helped. Settings on DC machine: IP: 192.168.1.10 Subnetmask: 255.255.255.0 Gateway: (none) Preferred DNS: 127.0.0.1 Alternate DNS: (none) On Each VM: IP: 192.168.1.11 (/12/13.../15 - on each node) Subn...
1
0
197
2013-02-22T01:15:22.620
warehouse_errors
dba.stackexchange.com
577,068
Office365 Published Room Calendar shows everything as "Busy"
I am trying to allow people from outside of our organization to properly watch one of the Room Calendars. I managed to successfully publish it using this powershell command: [CODE] I then got the URL through this command: [CODE] The Calendar is visible although I can see everything as "Busy" without actual information....
Run this command, it will expand what anonymous users are allowed to see: [CODE] then [CODE] You can check whether the right policy is assigned by running: [CODE] If you are sharing with users who do not authenticate against your domains(ie, anyone else on the internet) set the correct permissions for the calendar [COD...
1
3
10,092
2014-02-20T14:22:08.530
infrastructure
serverfault.com
195,409
pptp vpn - Kill User Connection
I'd like to be able to terminate a user's connection to my pptp server from the server itself without interrupting anyone else's connection. Problem is - I have no idea how and have found no useful information via the usual channels (google, basically). Any help is much appreciated! Edit I'm using Debian.
I'm fairly sure that Debian uses the PoPToP [CODE] , which in turn uses [CODE] . The [CODE] process forks for each new user connection so you should just be able to [CODE] the 'pppd' process related to the user you want to terminate. The process list doesn't show the username associated with the [CODE] process for a gi...
0
0
9,116
2010-10-27T17:01:39.657
infrastructure
serverfault.com
410,202
Maintaining Objects Across API Deployment Instances
I am working on a web application as a hobby and trying to learn some concepts related to cloud development and distributed applications. I am currently targeting an AWS EC2 instance as a deployment environment, and while I don't currently have plans to deploy the same instance of my API application to many servers, I ...
Implement the trie in another service, deploy it separately & make requests to it. This is indeed the right way to do this & is a very common practice in distributed systems. As you correctly understood, keeping an in-memory cache on a single node of a distributed system is not a good idea. Not only do you need to repl...
0
1
132
2020-05-16T02:29:23.097
pipeline_ops
softwareengineering.stackexchange.com
387,017
Passing Keys instead of Messages
Recently I stood up a Redis server and tested the idea of storing application 'states' that only existed in our application and were never stored in our database. Don't know if we will ultimately do this but for the first time this information was available external to the application. What I did notice above all else ...
If my system requires message passing (say CQRS for example) can I just store the message data as a record in Redis and pass only the key? Yes. The reference you should go review is Rich Hickey's talk The Language of the System , where he discusses names, values, references, and some of their implications. But if you s...
0
1
126
2019-02-11T18:32:18.133
database_errors
softwareengineering.stackexchange.com
340,995
How to not redirect when cookie is set in haproxy?
On my site I redirect users with mobile devices to a mobile site using my Haproxy loadbalancer. I got some complaints about that and want to offer the users a link back to the "classic" portal. As not all sub-pages are available in a mobile format I have to select if the content is available or not first. [CODE] If the...
I think you cannot use the same ACL name more than once, try using something like this: [CODE]
5
0
3,236
2011-12-14T19:24:01.687
infrastructure
serverfault.com
245,255
How much information about an error should be shown to the user?
Applications can always throw errors. If such an error occurs, the user should be notified, because what he asked the application to do has not succeeded. However, how much information should the user be given? I think most of us agree on not showing a stack trace ( Should a stack trace be in the error message presente...
what to show to the user. Should this also be hidden from the user? You show the user what is actionable for them. For example, if you have an error which is caused because of some null pointer exception and more of a bug than user error you don't want full explanation because they can't do anything different. Or shoul...
37
33
3,475
2014-06-17T14:40:26.693
api_errors
softwareengineering.stackexchange.com
155,868
SQL database performance optimization
We have a write-heavy SQL database (SQL Server 2008) and the insert speed decreases after some time. I read these similar questions: Sql insert speed up , SQL: What is slowing down INSERTs if not CPU or IO? and Speed up INSERTs . Also, I read this post about how to analyze SQL Server performance which helped me to know...
There are many factors that could be causing this slow down of inserts as you have described. Something that I do not see in your information is the Database / Table size that the inserts are going into. As the table grows, the longer your inserts will take due to table size, fragmentation and writing the same data to ...
7
2
538
2016-11-21T09:10:35.780
database_errors
dba.stackexchange.com
1,054,743
Cannot find Network Message ID in Message Trace
I'm viewing a message trace from https://admin.exchange.microsoft.com/#/messagetrace If I expand "More Information" on the selected email, I see "Message id". When I go to https://security.microsoft.com/reportsubmission and try to submit it, it asks for a "Network Message ID". I tried entering the "Message id" from abo...
Network Message ID: This is a GUID value that's available in the X-MS-Exchange-Organization-Network-Message-Id header in the message, or in the X-MS-Office365-Filtering-Correlation-Id header in quarantined messages. For more details: Submit a questionable email to Microsoft Here are some steps for your reference: 1.ope...
2
0
3,401
2021-02-23T15:23:17.183
infrastructure
serverfault.com
302,624
MySQL 8 - Performant query for exact words match
We have a database table with more than 10 million entries, and we are struggling to find the best SQL query to find the entries having all the exact words in a field irrespective of the order . Below is the query that we have for 20 words: [CODE] bind variables contains boundary markers. Ex: [CODE] . Number of bind va...
[CODE]
0
0
358
2021-11-15T04:29:50.317
database_errors
dba.stackexchange.com
1,097,010
How to troubleshoot Ubuntu Certbot cron/timer?
[CODE] and have installed certbot via apt-get My issue is that it is the second time that certificates expire and the cron(also systemd service) installed by certbot is not working. I see this file created: [CODE] [CODE] [CODE] [CODE] [CODE] [CODE] My init system is systemctl: [CODE] I see there timer registered: [CODE...
This works for me Your system doesn't use the cron so ignore that, it is systemd. certbot.timer: [CODE] certbot.service: [CODE] I also see you rebooted your computer a couple of times, but you are also looking at [CODE] . So you won't see anything about certbot's timer!
1
1
3,261
2022-03-25T11:16:16.010
infrastructure
serverfault.com
449,236
Server becomes unreachable and comes back up on its own (most likely a network issue)
I'm having a strange problem with a server I have sitting at my workplace (it's behind a NAT, if that's important). The issue is that at some times, it becomes unreachable and then comes back up again, usually within a few seconds, sometimes lasting up to 1 minute. It doesn't reboot, it doesn't crash. It simply becomes...
This kind of problem usually doesn't generate a lot of log messages. You have discovered the important two messages which show the interfaces going down and up. These can be generated by unplugging the ethernet cable and plugging it back in. It could be a bad cable between the NIC and the router. My first steps (done o...
2
7
9,804
2012-11-15T23:10:28.357
infrastructure
serverfault.com
249,960
Combining 2 MySQL queries with IN clause does not work
I have a 2-step query that I am trying to combine into one. This returns the ids: [CODE] -- Then I take the results for parent id=26 (from prior query) and put them in an IN clause. [CODE] However when I combine the above 2 into one query, this does NOT work and returns a much shorter set of results: [CODE] What am I d...
You have basically two problems here, Your sub-query is returning row-based results and you need comma-separated results. You could fix this issue by using the GROUP_CONCAT(value SEPARATOR ',') like this: ...r.reactable_id IN ( select GROUP_CONCAT(id SEPARATOR ',') from (select * from comments... But you won't see any ...
0
0
90
2019-09-30T19:10:31.523
database_errors
dba.stackexchange.com
161,563
Why Does Microsoft SQL Server Management Studio Keep Creating Table Aliases?
When I create or edit queries using design view, SSMS keeps creating aliases (TableName_1) for some tables for no apparent reason. More annoying is it will also do this if I open existing queries in design view. In other words, it changes my SQL code! Even simple queries have this issue, for example: [CODE] will be bec...
The best option is to stop using the SSMS View Designer. By sticking to using a plain old query window to create or edit views, you will have full control over the queries as well as regular practice in Transact-SQL. Besides, the SSMS View Designer is known to be buggy (see view corrupted when viewed using design featu...
4
5
2,191
2017-01-19T03:29:54.533
database_errors
dba.stackexchange.com
409,297
Proper way to use hiera with puppetlabs-spec-helper?
I am trying to write some rspec tests for my modules. Most of them now use hiera. I have a .fixures.yml: [CODE] and a spec/classes/mongodb_spec.rb: [CODE] but when I run the spec test, I get: [CODE] Module spec testing is relatively new, as is hiera. So far I have been unable to find any suitable solutions. (the back a...
Officially, hiera is not supported for puppetlabs_spec_helper with 2.7, and will be available in a future, 3.x compatible release. Unofficially, the Puppet Developers mailing list told me there is a "hackish" patch you can apply to puppetlabs_spec_helper that will allow spec tests to be written with hiera support. The ...
2
0
2,955
2012-07-19T15:57:42.477
pipeline_ops
serverfault.com
93,211
System.Data.Entity.Infrastructure.CommitFailedException: C# Multithreading & SQL Server 2012
We have a C# multi threaded (100 threads) program which reads the records from the DB and each thread picks up one record (one Entity Framework connection per thread) and update the a single DB table. For first few minutes (5 minutes) the program works fine without exception then all of a sudden all threads starts thro...
Looks like blocking in action. You should try to monitor blocking with tools such as sp_WhoIsActive or an Extended Events session. If you want to use Extended Events, there's a tool called ExtendedTSQLCollector that can help you automate monitoring and collection of the events you need. I wrote a blog post on how to us...
5
2
3,247
2015-02-18T12:50:05.413
database_errors
dba.stackexchange.com
346,976
Custom language with mixed markup and Python, parsing in Python
I need a system for creating Python subclasses in a simple manner, and I was thinking of using a (custom) config language similar to [CODE] , [CODE] , etc. Here's the initial structure I thought of (one file = one subclass, files are in a folder where they're read from automatically), which is basically just a simple c...
I once wrote a regex-based parser for a similar config language, but it was a lot of unnecessary work. Instead: use an existing configuration language like YAML – it has a JSON-like datamodel and a syntax almost indistinguishable from your example (you just need to use [CODE] instead of [CODE] to start verbatim lines)....
2
3
981
2017-04-11T13:12:00.550
api_errors
softwareengineering.stackexchange.com
609,098
No mod-mono.so or mod_mono.conf after Install
(I apologize in advance for "spam" I asked on "Ask Ubuntu" but no one answered in 5 days. I didn't think this would be hard as I'm sure many have installed Mono with Webmin on Ubuntu 12.04.) On Ubuntu 12.04, I have webmin and apache2. With webmin, I did apt-get install mono-complete and everything appeared to install f...
Source: https://help.ubuntu.com/community/ModMono [CODE] The above commands are for ASP.NET 2.0 AutoHosting.
1
1
2,035
2014-06-30T21:33:57.547
infrastructure
serverfault.com
230,419
SQL Server 2017 crashes when backing up because filepath is wrong
I was trying to restore my database and SQL Server kept crashing. I would get a message in SSMS that said there was a network transport error (the connection dropped bc the crash). I checked the logs and found nothing more than SQL Server closed unexpectedly. I would then have to go and restart the service. I narrowed ...
I was able to reproduce this. On 2016, if I put an invalid path like that, I get this message: Cannot open backup device 'D:mapbenefits_LogBackup_2019-02-21_13-58-24.bak'. Operating system error 3(The system cannot find the path specified.) On 2017 CU 13 (14.0.3048.4), it results in the service crashing. You've already...
25
25
2,018
2019-02-21T19:07:30.820
database_errors
dba.stackexchange.com
1,007,754
How to remove bloat from my logs automatically
I was going over logs on a server with multiple vhosts/accounts, trying to figure which ones to delete because it is late in the month and an automated backup failed (I use Apache and/or Nginx). I realized a good chunk of what is there is meaningless to me. I mean, I probably should log it because it it weren't working...
Log file retention is the job of rotate and purge scripts, calling [CODE] , [CODE] or [CODE] commands. These are intended to automatically keep log file storage from filling up, absent some enormous increase in volume. Usually not much processing here, to keep purge scripts simple. But you could remove some lines while...
0
3
244
2020-03-20T21:04:15.333
pipeline_ops
serverfault.com
985,711
Evicted pods not getting removed from the cluster when autoscaling is enabled
I have a cluster created in GCP with autoscaling enabled on the cluster. In my case, few pods are getting evicted from node A due to Memory Pressure and are running on new node B. But the evicted pods are not getting removed. Its still visible when I run 'kubectl get pods'. Is this an expected behavior? Do these evicte...
That's perfectly normal. Seeing the pods there with the error helps you troubleshoot errors / failures. If they were auto deleted, you'd never know. If it is not running, it is not consuming resources. You can do something like the command below to clear them if it bothers you. [CODE] In this case replace 'Error' with ...
0
1
900
2019-09-26T09:58:36.813
infrastructure
serverfault.com
131,518
How to relax firewall for UDP connections/ports for a specific IP address?
My server is [CODE] . iptables version is v1.3.5 . I want to allow all UDP connections / port for the IP address [CODE] . This IP address is configured in my eth0. So basically I want to set it up the same as my local loopback (127.0.0.1) UDP traffic. What is the [CODE] command to allow all UDP connections / ports for ...
The basic command is: [CODE] This will add the rule at the beginning of the [CODE] chain. You may need to specify a different chain depending on what your current rules look like though. See the [CODE] man page for more details. Also, the rule is for all packets going to .200. If you meant packets coming from .200 then...
1
3
3,554
2010-04-12T07:12:45.993
infrastructure
serverfault.com
278,638
Latest version to support MySQL 5.1.69 ib* files
Would like to recover InnoDB data from a crashed server. The last backup indicated it was running MySQL server 5.1.69. When doing a recovery, the log files show that the current MySQL won't support [CODE] files from this far back. I tried installing 5.1.69 from archives and compiling from sources, but no-go, rabbit hol...
You should be able to load it with 5.5. As a general rule, next version up should always work. You should be able to run mysqldump from there, or run mysql_upgrade to keep it as is for 5.5. Then if you want to upgrade from there, you have to go up to 5.6 and run mysql_upgrade again. Repeat for 5.7 and 8.0 depending on ...
1
2
53
2020-10-25T14:12:30.540
hadoop_errors
dba.stackexchange.com
6,111
Single database schema or multiple schemas?
I'm designing a website for an annual event. The events are similar but mostly independent year-to-year. I see 2 possible designs: A single schema with most tables having an EventID column to tag data to specific year. Possibly have views for each year. Multiple schema one per event. The events are independent, so it w...
the 'cleaner' solution would definitely using a single schema, and relate your data to a specific event, either with a EventID column, or yet better, using an Events table, relating your data to a row in this table (but keep it simple, you don't need to relate every row in every table to your event, just the 'top-most'...
5
6
6,657
2011-09-23T21:45:26.723
warehouse_errors
dba.stackexchange.com
364,501
Running expensive computation on single server
I'm building a website that lets a user pay for a service that automatically does some video encoding for them. Encoding takes several minutes. A naive solution would run each encoding job immediately. this could lead to several instances running and cause all of them to finish very slowly. the processing would probabl...
This is a very high-level question, and it might get closed as "too broad". But in short: What you need is an asynchronous solution: a request doesn't start the expensive job, but simply plans to do it and returns a ticket under which you can check for its stats. If you stay with only one server, you'll need to use a q...
4
7
146
2018-01-23T10:17:15.380
api_errors
softwareengineering.stackexchange.com
264,700
DNS resolution problems; dig SERVFAIL error
I'm setting up a couple of dedicated servers, and having problems setting up my nameservers properly. One of these is a LEMP server (LAMP with nginx in place of Apache), and the other will function solely as an email server, running exim/dovecot/ASSP antispam (no Apache). The LEMP server is CentOS 5.5, with no control ...
I'd start with verifying, that your server runs: [CODE] It should show a line similar to [CODE] If named doesn't run, then stop it (just to clean up), then start and see what it writes to log files (/var/log/messages, /var/named/data/named.run). There may be some typo that prevents the daemon from starting successfully...
1
1
46,034
2011-04-29T13:13:04.633
infrastructure
serverfault.com
551,233
Restore access to SSH of own dedicated server with Debian
I have own dedicated server. I lost my root login & password for SSH. All I have now its access to ftp, and access to vhcs panel where I can to create ftp users, mysql... I collected some info to help you help me: 1. On the server installed Debian, Apache2, Mysql, and PHP5 as user 'www-data' 2. SSH is running. 3. file ...
First, ignore anything related to php. It's completely irrelevant unless you've got the most insecure setup imaginable. If you can ssh into the system and access sudo from another account, you can try [CODE] If you can't, you're SOL. You do not (well, should not) have the permissions via ftp or through php. You'll have...
-2
0
174
2013-11-07T00:22:41.413
database_errors
serverfault.com
332,686
Comparision of modeling with inheritance vs idiomatic trait based composition
I recently I started learning Rust and Scala and what struck me was the lack of inheritance model that I'm used to in C++ and Java. Although I can model simple things with structs and traits in Rust, I want to see a more idiomatic way to model different kinds of problem domains using traits and composition. For example...
You can create a trait for Observable methods, implement the trait for your particular InterestingThing. If you want Dude to be observable, you must also implement the trait for Dude. One thing that might work is to add InterestingThing as a struct member for Dude, or maybe you can simply contain a [CODE] item that you...
8
1
679
2016-10-03T19:51:42.083
api_errors
softwareengineering.stackexchange.com
18,297
Selenium WebDriver statement is skipping after ajax call
Selenium WebDriver statement is skipping after ajax call for example if we use hotmail signup and want to check whether email is available or not I input the text and on lost focus hotmail return a message (email is available) or (email not available) so now after input I want to check the message returned using locato...
Solution 1 : I use PageFactory with AjaxElementLocatorFactory - PageFactory is a support class for the Selenium 2 Page Objects pattern which you are using, and the AjaxElementLocatorFactory is the factory for the element locators. In your case the constructor will looks like: [CODE] This code will wait maximum of 15 se...
0
1
1,651
2016-04-25T15:41:42.770
data_quality
sqa.stackexchange.com
256,563
Setup SQL Server replication for schema only or schema + nightly data
We have 2 offices that we would look to keep our databases in sync with. Unfortunately one of our officers has a really poor connection and doing live SQL replication of the data probably isn't ideal. The ideal situation would be live schema replication with nightly data replication. If the ideal isn't possible strictl...
What is the amount of data changes for a given day? What is the version + edition of SQL Server? Please add more details to get decent responses. You can synchronize schema by building something like below using DDL triggers. http://thehobt.blogspot.com/2009/03/synchronizing-changes-to-stored.html
1
0
322
2011-04-06T21:00:42.097
database_errors
serverfault.com
266,602
Frequency of SQL Server full backups vs. diffs
I have a SQL Server located in a colo center. Currently, our database is about 100Gb. Log files average about 500Mb/day, and differential backups grow by a bit less than that. My current disaster recovery plan is: have a full backup elsewhere, take log backups every ten minutes, diffs every night. I copy the logs and d...
Our schedule is the same as yours. Tlogs every 15minutes to 1 hours (depending on the db), Diffs at night, and fulls during the weekend. It all depends on the SLA of the database that you are serving, and how much downtime everyone is okay with having.
1
1
608
2011-05-05T12:47:54.220
database_errors
serverfault.com
61,606
Delete log to increase DB space?
I'm running SQL Server 2008 Express and hitting the 4GB size wall. I'd like to make some space to give me time before i migrate to a larger DB. I don't need my transaction log. So, can i delete my log to increase space? Otherwise, i'll have to create a duplicate DB structure, and then copy the data into the new DB and ...
I don't need my transaction log. Yes you do. can i delete my log to increase space? No you can't. In this case, is there an "easy way" to copy the data from the old tables into new tables? Before you go throwing the towel in with your current database, you should step back and analyze why you think your transaction log...
2
5
294
2014-03-24T12:50:00.310
data_quality
dba.stackexchange.com
324,978
How to mentally keep track of recursion
I have great trouble doing recursion, especially trying to visualize it. A great example is the aging wine problem described in the top answer of this link: https://www.quora.com/Are-there-any-good-resources-or-tutorials-for-dynamic-programming-besides-the-TopCoder-tutorial . In the example, you are tasked with finding...
Don't try to descend the stack in your head. That way madness lies. By the magic of mathematic induction, every recursive invocation below you can be assumed to be debugged and already working thanks to the programmer who is the future you. Treat it like a call to a library function that you don't have the source code ...
3
8
2,268
2016-07-16T01:07:53.223
api_errors
softwareengineering.stackexchange.com
275,826
Strategies for long term data growth optimization for a query with an index on a joined table
Given two simple, contrived example tables [CODE] with a lot fake data [CODE] Attempting this query... [CODE] runs a sequential scan on exchange_content (for Postgres 9.6) With these tables and large queries frequently being executed on them together, what are the strategies for ensuring that the queries will scale wel...
It is not inevitable that it will keep using the seq scan. Perhaps at some point it will change (indeed, if the tables are vacuumed and analyzed, I don't get the seq scan in the first place, as the anonymous horse indicates.) However, if your tables keep growing into the future (rather than into the past) your query wi...
1
1
89
2020-09-21T14:51:36.253
warehouse_errors
dba.stackexchange.com
83,140
Improve the insertion rate of mongo sharded cluster
I can't disable the write concern while i mongorestore with .bson file. It totally damages the insertion rate (insert/sec). This is my sharding status. [CODE] This is my shard. I already changed the property of getLastErrorDefaults w:0 for disable write concern. [CODE] This is my mongorestore command which load data vi...
The problem (from what I can see) From what I can see from your output, you have a monotonically increasing shard key like [CODE] or a [CODE] or something similar. MongoDB sharding is done with key ranges over the selected shard key. Put simply, it works like " [CODE] is supposed to hold the rang from [CODE] , [CODE] t...
2
1
1,894
2014-11-20T08:47:40.140
database_errors
dba.stackexchange.com
404,734
Why should I use containers instead of deploying build artifacts directly to Azure App Services or AWS Elastic Beanstalk?
Recently, I have been told by others to look into containerization of my stateless web applications (in this case .NET Core 2.x and 3.1). All of my dependencies are retrieved from public and private Nuget feeds. For a few years, I have been deploying to Azure App Services (Web apps) with no issues and only some very si...
On a very high level, you are not missing out on anything crucial. Docker (and Kubernetes) provide a runtime environment, control plane, deployment, network abstraction etc. which are also provided by cloud vendors. They are different mechanisms but they solve the same problems. With containers, it's a little easier to...
1
3
743
2020-02-05T16:20:23.213
database_errors
softwareengineering.stackexchange.com
306,589
How to use json_arrayagg function on more than one pivot table
As the title suggests consider the following example where there are three tables and two pivot table [CODE] If I want to extract the following JSON using json_arrayagg function what approach should I take? [CODE] Here is Db fiddle link with schema and sample data and also here is my take on how to solve the problem.
This is another take: [CODE] as illustrated in this dbfiddle
0
1
726
2022-01-26T03:28:25.440
warehouse_errors
dba.stackexchange.com
182,413
Is it possible to run dhcpd3 as non-root user in a chroot jail?
I would like to run [CODE] from a chroot jail on [CODE] . At the moment, I can run it as root from my jail. Now I want to do this as non-root user (as "-u blah -t /path/to/jail" Bind option). If I start my process like this : start-stop-daemon --chroot /home/jails/dhcp --chuid dhcp \ --start --pidfile /home/jails/dhcp/...
In order to bind to ports You can set the capability [CODE] with the [CODE] utility (pacakge libcap2-bin )
1
1
1,970
2010-09-17T22:17:47.760
infrastructure
serverfault.com
1,048,131
Unable to access S3 static website using https
I have followed all the steps from https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-https-requests-s3/ but my website still cannot be accessed using https. My certificate was issued to the domain admin.studentqr.com successfully as displayed here My cloudfront seems to be working fine too And I've upda...
Since my domain is under Wix, I need to update the CNAME for my subdomain to point to the given * .cloudfront.net instead of my S3 bucket. Wait for a few minutes then if you faced the error below when accessing your site [CODE] try using the solution given in https://stackoverflow.com/questions/59693199/route53-and-clo...
1
0
1,348
2020-12-31T05:24:13.993
infrastructure
serverfault.com
459,218
32 core (each physical core) 2.2 GhZ or 12 core (6 physical cores) 3.0GHZ?
I am working on a multithreaded application (Forex trading app built on C#) and had the client upgrade from the 12 core 3.0GHZ machine (Intel) to a 32 core 2.2 Ghz machine (AMD). The PassMark benchmark results were significantly higher when using multicores doing Integer, Floating and other calculations while for a sin...
Let me get this straight. You upgraded the client based on a hunch and a single benchmark? That's a mistake. Benchmarks are entirely artificial and do not reflect how real world programs will perform. I will say that they do however provide an indication of potential performance. Firstly, there is a lot more to getting...
3
8
836
2012-12-19T03:13:17.287
api_errors
serverfault.com
472,177
Tape backup size versus file retention time
How we back up We currently have a file server that is backed up to tape. The backups are incremental which means the files that have changed since the last backup get written to tape. Over time the tape sets get larger and larger. Once they reach a certain size our backup software grooms the sets back down by removing...
Backup to tape is great for long term retention, but for recovering from mistakes, we used backup to disk. Depending on your total storage, this can be a cheap way of keeping at least one copy of every file cheaply and quickly. Say you have a total of 4TB of storage to backup. It doesn't cost much to build a 12TB backu...
5
5
274
2013-01-24T20:05:54.777
database_errors
serverfault.com
593,683
How can I allow specific addresses to send email?
I have a network split into two parts - one for office and server computers, and one for computers that manage scientific instruments. The instrument computers are running on the vendor's patch schedule, meaning some of them were just upgraded from windows XP, so we keep them relatively isolated from the office machine...
You can set individual IPs in your mynetworks file, just use the /32 netmask, like this: [CODE] If you'd like a bit more security, I'd set up SASL authentication on your office machines, configure them up to use SASL authentication, then include a mynetworks file with the IPs of just the scientific machines. If you all...
0
2
206
2014-05-07T15:37:47.927
infrastructure
serverfault.com
124,998
RuntimeError: mat1 and mat2 shapes cannot be multiplied (25x7 and 1x512)
I am dealing with multivariate time series forecasting using Transformers. below is my code step by step: After some preprocessing and windowing time series dataset … 1- Creating Mask function [CODE] 2- Positional Encoding [CODE] 3 - Creating Transformers Encoder and Decoder with Pytorch [CODE] 4 - model [CODE] 5 - cre...
The error occurs at [CODE] [CODE] is defined as: [CODE] In your code, [CODE] and [CODE] . This means your linear layer expects an input of size [CODE] and produces an output of size [CODE] . In your code, you say that [CODE] is of size [CODE] . This size is incompatible with the linear layer, giving the error.
0
1
48
2023-12-10T22:58:28.933
data_quality
datascience.stackexchange.com
39,603
Should I separate frequently updated columns?
I have a [CODE] table that contains users' information and a column named [CODE] that is frequently updated. On index page I'm showing list of users with basic user information but I don't need credits. On details page I'm also showing credits with user information. Two main operations are dense in project. The first o...
It seems what you want is a so-called Index-Only Scan for the query on the "index" page. That means that you have all the data (columns) that you select on the index page in the index you are using for this query. This makes it unnecessary to go to the table when executing this query. Example: [CODE] (I just suppose yo...
8
14
1,652
2013-04-09T14:07:30.270
database_errors
dba.stackexchange.com
735,774
Bulk import to AD powershell
I'm trying to import en employee list into AD using powershell. The script needs to update exisisting AD objects. The problem I have is that some users will have mobile number some internal numbers and some just an extension, when i run the Set-ADuser command in its most basic form it seems to fail whenever a value is ...
[CODE] and an empty string ("") are two different data types to powershell. Replace any instance of [CODE] with [CODE] and you should be good. Almost all MS provided cmdlets are set to [CODE] . I'd like to expand a bit on what [CODE] is. Powershell is an OOP (Object Oriented Programming) shell with direct hooks into .N...
1
5
797
2015-11-12T09:17:00.973
infrastructure
serverfault.com
968,578
A parameter cannot be found that matches parameter name -ComputerName
I written a script to verify the services were succefully stopped If not it will kill the running processes. Below is my script. Let me know what needs be added. I am very new to powershell. [CODE] Error message " A parameter cannot be found that matches parameter name 'computerName'
As @LotPings pointed out, the trouble is not with the computername as the error suggests. The command errors when attempting to stop a service that is already stopped. Get-process returns the same error. Its still possible to use these cmdlets by muting these errors and returning failures when they actually work. [CODE...
-1
1
6,760
2019-05-23T13:56:04.270
infrastructure
serverfault.com
34,004
My Neural network in Tensorflow does a bad job in comparison to the same Neural network in Keras
I am trying to predict "sales" from this dataset: https://www.kaggle.com/c/rossmann-store-sales There are>1,000,000 rows, I use 10 features from the dataset to predict sales I merged two datasets into one in advance. I created a code in Keras to predict "sales". Firstly I created some new variables, threw away some unn...
You can try these: a) In the tensorflow implementation you have used learning rate of 0.0001 while in keras the default value of learning rate is 0.001. You have set different learning rates in the two implementations. Try the same learning rate and the results you will get should be close enough. b) The initialization...
2
1
767
2018-07-04T11:51:36.970
data_quality
datascience.stackexchange.com
159,212
4 CPUs of 20 (NUMA node 0) Pegged at 100%
The previous Senior DBA left the company and I was made aware of a server which suffers from multiple problems, largely slowness (all the way from SSMS taking a long time to open, long running queries, and failing SSIS jobs (Data Warehouse), to difficulties connecting to linked servers (150+ of them)). There is most li...
The cause of this problem was almost certainly at the VM level. The Ops team had configured the server to not only have 20 CPUs but also 20 sockets. I've read online that virtual servers do not differentiate between sockets or cores or CPUs but the problem has gone away since I requested the configuration change. Addit...
4
1
1,201
2016-12-26T19:46:44.223
warehouse_errors
dba.stackexchange.com
1,029,984
Postfix SSL USING SNI
I What to give assign multiple SSL cert to Multiple Domains I have manage to do so : by creating a single wild card SSL cert (e.g mail.example.com , mail.example2.com, etc) But I Want Each domain to have its own ssl cert. Like So smtpd_tls_cert_file = msql:/etc/postfix/pem smtpd_tls_key_file = mysql:/etc/postfix/key SQ...
Your mail server only has one name and your TLS certificate only needs to have that name. The domains you accept mail for are irrelevant. There is no need to attempt to do this at all.
0
1
896
2020-08-13T13:26:49.940
api_errors
serverfault.com
821,695
mysqld.service for systemd - Failed to parse resource value, ignoring: 40000 - LimitMEMLOCK
I got this error [CODE] on Centos 7 with mysql 5.7 when I set the [CODE] limit for MYSQL 5.7. [CODE] Why it is not possible to set a numeric limit for [CODE] ? What is the purpose of [CODE] ? Is the only soultion [CODE] ? * [CODE] * [CODE] I do not see this error message on other Centos 7 version ( [CODE] ) when [CODE]...
Let's start with the systemd documentation : [CODE] Set soft and hard limits on various resources for executed processes. See setrlimit(2) for details on the resource limit concept. For MEMLOCK, that man page explains: [CODE] Locking memory into RAM prevents the kernel from swapping it out. This isn't often done, but f...
2
4
2,944
2016-12-19T23:28:48.380
database_errors
serverfault.com
1,053,286
Powershell New-Service With User Credentials
I am trying to add a service to my windows computer by using the command [CODE] (yes, I know I have [CODE] set as "") I am not sure what value should go for [CODE] I have tried just the [CODE] i've input into Powershell [CODE] and [CODE] and I've used for [CODE] the value I get from both of the above commands and added...
It needs an object of type PSCredential . It can be created manually using the command [CODE] . There are other ways, but they are a bit tricky because the password needs to be passed in as a SecureString . You can find how to programmatically build a PSCredential object here . Sample code: [CODE]
2
2
6,335
2021-02-11T16:06:00.920
infrastructure
serverfault.com
250,040
Is it wrong to use Agile when clients' requirements don't change at all?
I have seen a lot of posts recently saying that one of the major reasons why Agile is used is because clients often change the requirements. However, let's say the clients do not change the requirements often . In fact, the clients have firm requirements though might be a bit vague (but nothing unreasonably vague), but...
Would this be considered as bad, cowboy coding, anti-pattern. Short answer: no. Doing "agile" correctly does not mean "no planning", it does mean not to overanalyse things. one of the major reasons why Agile is used is because clients often change the requirements. That's an oversimplifying statement. "Changing require...
12
16
1,595
2014-07-16T06:27:13.607
api_errors
softwareengineering.stackexchange.com
135,193
Oracle SQL Developer 3.2.09 is consuming lot of memory on windows 7
Oracle SQL Developer Version 3.2.09 is consuming lot of memory on windows 7. I can see, after 1/2 days of usage and without closing the this application, the memory consumption is going upto 700 MB. So, in this case, I need to close the application and again restart. Any remedies for this can be helpful. Details of SQL...
Add below lines to [CODE] For 64 bit SQL Developer add: [CODE] For 32 bit SQL Developer add: [CODE] Restart SQL Developer. To reduce the memory close only the results pane that has huge result set. TIP: I typically increase JVM memory to 2 GB so SQL Developer does not crash for queries with large result sets. This can ...
0
2
8,393
2016-04-13T17:09:30.203
database_errors
dba.stackexchange.com
1,127,926
OpenVPN bridging with server and multiple clients?
I am setting up a bridge that will connect two or more disjoint physical networks in the single shared "ethernet space" (e.g. I want everything to work like it is plugged into one Ethernet switch). Both of my networks will be behind NAT and therefore I am setting up server in the cloud with the public IP that will acce...
At the end, I took the "use the bigger hammer" route. Took some time to set it up, but now on the server side, I have 8 OpenVPN servers, occupying 8 UDP ports, with 8 firewall holes, and tap0-tap7 devices, joined under one br0 bridge. Everything works flawlessly and is pretty robust. Bridge scripts have been set up as ...
1
1
1,591
2023-04-04T21:15:10.007
infrastructure
serverfault.com
1,021,026
Logstash RabbitMQ output plugin
I am a new to Logstash and I want to store nginx messages in RabbitMQ queue like this: Nginx logs -(input)-> Logstash -(output)-> RabbitMQ logstash config: [CODE] During debugging in RabbitMQ web console I see the following: message are visible to RabbitMQ but it doesn't save them in the queue in the same time when I u...
I found the root cause of my issue, I needed to add a binding to my queue, after adding the binding, every message logged correctly. enter image description here
0
0
1,236
2020-06-11T12:11:45.810
infrastructure
serverfault.com
240,725
Percona Server 5.6.40 restarting with singal 11
We recently migrated our mysql to new hardware and it was running in slave mode for 15 days. We made it the master 11th June. On 13th June it restarted for the first time with signal 11. Stacktrace from 1st segfault - 04:32:32 UTC - mysqld got signal 11 ; This could be because you hit a bug. It is also possible that th...
Because each event had a problem with /usr/sbin/mysqld(pfs_spawn_thread, consider for your my.cnf [mysqld] section [CODE] Disclaimer: I am the content author of website mentioned in view profile, Network profile and you will find free Utility Scripts available and contact information.
2
0
289
2019-06-17T14:36:01.960
api_errors
dba.stackexchange.com
365,517
Change Root DSE in OpenLDAP
To start, I am an OpenLDAP newbie. I hope my terminology is correct, but there's no guarantee. I am trying to migrate our OpenLDAP server to a new box and, in the process, update our LDAP tree to accurately reflect our current organization name. When the original server was set up in 2004, our organization has a differ...
I figured out a work-around for this. If I copy the records over from the original tree, I am able to do it. Moving does not work, due to the "cannot rename between DSAs" error. I thought I would post this answer to help anyone having this trouble, but if anyone has the "proper" answer, I would appreciate it!
1
2
1,623
2012-03-02T02:58:10.823
infrastructure
serverfault.com
723,878
Wordpress on OpenShift will not load (310 error) without "www." on example.com in General Settings
I installed a Wordpress site on an OpenShift Online [PAAS] account. If I configure Wordpress Address & Site Address (in General Settings) both to http:// example.com (without the space; I added the space here to not be prevented from posting with an http link), then requesting that URL returns "Too Many Redirects" erro...
Openshift uses a CNAME to route your traffic to the correct host, although some NameServer hosts may permit CNAME for the root domain, this is not RFC Compliant. since a CNAME includes all types of records, not just A (MX, TXT, and NS!)
0
1
136
2015-09-21T23:24:56.397
infrastructure
serverfault.com
231,937
Recommended way to restrict Apache users
Following on why should we restrict Apache users , another two questions arises: What is the recommended method of restricting the places Apache users can traverse & read in the file system? What to do against fork bombs and other shell scripting problems? (bash scripting is allowed) My possible solutions (I prefer to ...
SELinux or Apparmour are the serious ways of achieve a truly high level of security, and not just for web applications. They're not simple though, however a lot of modern distros have done a lot to integrate them in, Redhat/SELinux and Ubuntu/Apparmour (with the latter considered "easier" to maintain). If security is s...
3
3
781
2011-02-06T20:31:42.457
infrastructure
serverfault.com
268,399
Move Oracle Database to New Server with Dataguard in place
I have a live Oracle Database with Dataguard in placed. I want to migrate live database to new server as tech refresh, but only Primary database. How I can achieve this? I have ideas on how I want to do it but I'm not sure whether it is correct. Create a full backup, then restore it to new server and update the datagua...
Create a full backup, then restore it to new server and update the dataguard configuration. Problem is, SCN in Standby database maybe different than New Primary database due to old Primary database is still running. If this happen, can i apply log from old Primary to New Primary? I'm not sure.. You can have multiple st...
1
1
989
2020-06-03T02:12:13.923
database_errors
dba.stackexchange.com
4,581
how to interpret log files with high transactions
I'm having this issues with too many logs files being generated. Over 60gb in the last 24 hours. It's not a massively high transactional website. What is the best way to read the log files and work out a likely cause. I'm using SQL Server 2008
Usually, these questions arise from a misunderstanding of what the log file does . Usually, a larger than expected log is caused by a database in full recovery where log backups aren't being taken. If you are taking log backups or your database is in simple recovery , there is probably a very large or long running tran...
3
3
225
2011-08-12T11:49:50.447
database_errors
dba.stackexchange.com
284,136
Detecting and Dealing with obscene language in user input
I've seen some pretty darned restrictive 'chat-systems' in kids games, that make it nigh-on-impossible to get much of a message across whilst typing. So, I looked at some ideas, and there where two main ones, the whitelist and the blacklist: Whitelisted words are the only words you can use. Certainly safe language with...
There is no technical solution to this problem. From Jeff Atwood's article : I'm doubtful it will ever be possible to solve this particular problem through code alone. If a user really wants to use bad words in messages, he will still achieve it if the only filter is a program. Is “fuck” a forbidden word? OK, we'll try...
0
7
399
2015-05-17T14:40:15.573
api_errors
softwareengineering.stackexchange.com
1,024,353
How can I recover data from a five disk raid 5 on HP Proliant DL 380
How can I recover data from a five disk RAID 5 on HP Proliant DL 380 where four of the five disks are reporting a SMART error. I have some critical data on the failed logical drive and checking online all I am getting is that the data is lost.
That's because your data is lost. A RAID 5 can only tolerate one drive failure. If four drives failed, there is nothing left to do but replace them and restore from backup.
1
1
250
2020-07-07T13:57:35.453
infrastructure
serverfault.com
485,213
AsteriskNOW server routes outgoing calls as if they are incoming
I am very new to Asterisk so this is undoubtedly a misconfiguration on my end. Right now my test setup behaves as follows: When I make an incoming call to an FXO port on my analog card, Asterisk sends the call to an analog telephone in an FXS port and it rings. I can answer the call just fine. I can also make calls fro...
Well I managed to solve the problem, but sadly I was in too much of a hurry to pinpoint which particular setting change solved it. Various things I did were: Changed the outbound dialling rules to use digit placeholders instead of the wildcard character Removed the ZAP Channel DIDs Switched the FXO ports to individual ...
0
0
986
2013-03-06T13:05:54.707
infrastructure
serverfault.com
383,737
centos: unable to write to whoosh indexes
got a problem here. In my development server, I ran into a problem when I try to search using [CODE] / [CODE] with the [CODE] backend engine. [CODE] Hmm this seems like a obvious permissions problem, but when I check my folder [CODE] it seems correct, as the user [CODE] is added to the group [CODE] . May I know what se...
If SELinux is enabled, it might cause the error. If you don't need SELinux or just quickly want to test if it's the reason, try command [CODE] and see if that helped. SELinux can be permanently disabled by setting it to [CODE] in [CODE] .
1
0
796
2012-04-27T08:40:45.817
infrastructure
serverfault.com
575,172
Fail2ban not working on Ubuntu
I noticed a bunch of those w00tw00t requests coming to my Ubuntu 12.04 server and so I installed fail2ban. I followed these instructions on setting up Fail2ban against w00tw00t requests. I made sure to name the files properly, and restart fail2ban after the configuration was changed. I tested by typing in various [CODE...
Those quotes [CODE] don't look right to me did you use a proper text editor to write your regex ? Try [CODE] Which according to fail2ban-regex finds the in both your examples.
2
3
656
2014-02-12T21:33:18.683
infrastructure
serverfault.com
2,700
What was the worst piece of code you fixed that you are proud of?
I have had a few that I am proud of and some of them were written by myself few years ago. It doesn't have to be necessarily buggy, just bad code.
I don't know about being proud of the fix because it was so obvious, but the most horrible code I remember fixing was this. [CODE] Apparently the previous developer just kept adding new lines every time a new (usually Irish) user started getting errors in the application. I'll leave it as an exercise for the class as t...
14
20
1,523
2010-09-10T21:26:38.993
api_errors
softwareengineering.stackexchange.com
39,906
Object name 'Clean Up History' in use when trying to complete the maintenance plan wizard in SQL Server 2008 R2
I am trying to create a maintenance plan on a instance running SQL Server 2008 R2 SP1 (no CU's installed). When completing the wizard I get the following error: The object name cannot be changed from "{1E1746D3-B671-4799-8F61-7EE6117257C2}" to "Clean Up History" because another object in the collection already uses tha...
The job is "owned" by a maintenance plan in the following table, and I don't believe the names have to match. So you may want to check the following location: [CODE] So you could rename that one, but it may cause problems later (some automated process may need to match on that name, or simply re-create it if it doesn't...
1
2
644
2013-04-13T16:42:40.027
database_errors
dba.stackexchange.com
160,468
Fastest Way to Move Data from Current Database for Multiple Tables to New Database?
This is my first question and post so let me know if I can improve. I'll err on the side of providing too much information. I'm a fairly new DBA at my company, less than two years with the DBA team, and have been tasked with coming up with a way to move data from an existing database for one specific entity to a new da...
You say that you're worried that your proposed solution won't work because it won't run in parallel. You already have a PowerShell cmdlet which deletes from all 160 tables, right? Deleting rows can often take longer than inserting them, especially if you have indexes on the table that you're deleting from. If that cmdl...
4
3
1,725
2017-01-09T21:37:25.447
database_errors
dba.stackexchange.com