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
262,630
Using listener_name in 4 part naming convention gives sys.servers error
App uses cross db connections, the dbs are in different AG's, so I need them to use 4 part naming convention - in the place of servername would be listener name. But when I run a simple query like: [CODE] I get: Could not find server 'Listener_Name' in sys.servers. Verify that the correct server name was specified. If ...
There isn't one place where I found everything written properly, which maybe is because not many people use cross AG dist txs, so this is what needs to be done: Have app make code change to use 4 part naming convention using the appropriate listener_name. Create linked servers for all listeners on all nodes: Script is ...
0
1
510
2020-03-25T01:41:46.420
database_errors
dba.stackexchange.com
660,156
Inconsistent Folder redirection
Operating on a 2008R2/Win7 Domain: We are using folder redirection with VM desktops for the users to create a roaming profile of sorts, without actually using the roaming profile. Folder redirection is applied VIA user GPO. Problem is under certain circumstances we have to delete out old user folders. When this happens...
Being someone that has been known to work in environments with stupid requirements I have sympathy and one suggestion. Can you add a login script that looks for the redirected folder and creates it if it doesn't exist? That way, by the time the user is fully logged in the folders are guaranteed to exist and hopefully y...
0
1
231
2015-01-16T19:21:25.050
infrastructure
serverfault.com
6,983
Tons and tons of relay logs on a master
I have a master that has 298 relay bin files as recent as today, going back well 298 days. There is no relay-log definitions in the .cnf and [CODE] Reset slave clears them out, but then they just start getting regenerated. Any idea what's causing this? How to stop it? EDITS TO REQUESTS General critiques of the cnf are ...
If a Master has relay logs, then the Master must also be a Slave in the midst of some Replication topology (i.e., Master/Master, Daisy-Chained Replication) What could cause relay logs to grow like this? BROKEN REPLICATION MySQL Replication is broken when the IO Thread or SQL thread dies under these SCENARIOS: SCENARIO ...
10
8
18,793
2011-10-20T00:02:23.410
warehouse_errors
dba.stackexchange.com
46,173
GTX 1660 Ti vs. RTX 2060 for a deep learning pc
I'm planning to build a PC for Deep Learning, after the launch of AMD Ryzen 3rd gen processors. My budget will allow me to choose between a GTX 1660 Ti and RTX 2060. I'm tabulating the specs of both the cards below. [CODE] Given this comparison, I'd like to know which one would be a better choice for me. Would the RTX-...
I would have gone with the RTX. If I was to design deep learning models,I would be prefer more number of cores in the GPU , where RTX is the winner. Lets not forget the Tensor cores which are present in RTX , which makes it stand out for Deep Learning processing. (Faster Tensor operations). Go with RTX if you can affor...
6
6
19,443
2019-02-25T05:00:29.683
data_quality
datascience.stackexchange.com
226,290
using tmpfs for mariadb tmp tables
My server is writing about 50% of temp tables to disk, even when max_heap_table_size and tmp_table_size are ridiculously high (500M). Yesterday I ran a script all day that monitored the tmp folder and the total space never exceeded 100M. My theory is big columns such as long text are forcing tmp tables to disk. I have ...
[CODE] for [CODE] is really dangerous, but not for the reason you might think. [CODE] and [CODE] work together. When a [CODE] needs to store intermediate results for, say, a sort ( [CODE] ), it first tries to do it in RAM. There are several cases where this won't work: A [CODE] or [CODE] column is being fetched. It wil...
0
2
1,890
2019-01-03T21:36:24.233
api_errors
dba.stackexchange.com
197,820
Arithmetic coding issue
Since a few days I am fighting my way through implementing arithmetic coding. I found a really great source of information which made me understand how it should work. Long story short, it implements arithmetic coding on integers using two registers: HIGH and LOW. Those register store a fraction, ex. [CODE] Then comes ...
You shouldn't use floating point in such cases. Probabilities can be represented as rational numbers with denominator [CODE] , this allows you to divide current interval exactly without rounding errors. So in your case 0.6 becomes 6/10, 0.8 - 8/10. How you will store such things is your choice. Usually some kind of fix...
3
2
1,302
2013-05-12T08:06:09.933
api_errors
softwareengineering.stackexchange.com
558,511
NGINX not serving CSS & JS
NGINX will not serve CSS or JS files to the browser Link to page (magento) http://836237.vps-10.com/ Access log shows: [CODE] Error Log Shows no errors. Following is my vhost file: [CODE] My Mime types in /etc/nginx/: [CODE] Please help taken way too long to solve this one! Thanks
Clear your browser cache. 304 means "Not Modified" and instructs the browser to serve its cached copy.
1
3
6,003
2013-12-01T17:35:13.277
infrastructure
serverfault.com
1,062,262
Fix “stripped down” install of FreeBSD 12
I have several legacy FreeBSD VMs made by ex-sysadmin who did some strange trick to save hypervisor storage space: he installed one VM from iso, the set it up a bit, installed needed software, then deleted ports tree and all package management related dirs (so basically the VM was stripped down for 1-2 Gb), then cloned...
You can download the base tar from here: https://download.freebsd.org/ftp/releases/amd64/amd64/13.0-RELEASE/base.txz (Be sure to select the appropriate release and architecture, this is just a sample url using the latest release and amd64 architecture) You should be able to download it using [CODE] , then untar it in [...
1
0
260
2021-05-01T18:37:40.783
infrastructure
serverfault.com
36,472
Selenium can't locate element by xpath
I am using Selenium and attempting to locate an element (table cell in a web app) by xpath. However, I am getting a NoSuchElementException when running my test cases. I am positive that the xpath locator is correct, as I can paste it into my DOM and locate the element that way (it is also unique). I have also confirmed...
[CODE] happens generally in 2 scenarios. Webelement locator is wrong. (which doesn't seems to be the situation in your case) Your are trying to find the webelement even before it is loaded on the page.(This seems to be your problem) To solve this you should wait till the webelement gets loaded on to the webpage. One wa...
0
2
22,944
2018-11-16T21:06:46.600
data_quality
sqa.stackexchange.com
338,747
avoiding download htaccess
I'm trying to develop a book reader online. The problem is that I save the pages as jpg or pdf and then I want to get the file using flash but I do not want this files as direct download, so I want to avoid download jpg and png but not js or swf. I tried to use this in my htaccess but does not work because does not all...
You can't do that if you want your swf to read them.
1
0
195
2011-12-01T18:22:24.417
infrastructure
serverfault.com
689,930
linux container bridge port forwarding?
How to setup linux container bridge port forwarding? I start using LXD, and looks like their policy is to setup port-forwarding with OS base unlike docker. I want to build a web server, so 80 port shall be mapped to 80. I have the following with one lxd container running: [CODE] I suppose I need to bind: [CODE] : this ...
Unfortunately I cannot comment because of low reputation, so please do not downvote if I'm not correct. I've googled around a d found this networking guide for "LXC", but it mostly seems to apply also to "LXD": http://www.flockport.com/lxc-networking-guide/ Within this article there is part "Deploy containers in cloud ...
1
2
2,534
2015-05-06T07:52:50.207
pipeline_ops
serverfault.com
569,585
samba: change unix group from windows client
I try to setup a small samba server on Ubuntu 12.04 to share files. It seems to work fine but there is one permission problem. All Unix users primary group is group_common. Some users are additionally in group group_confidential. For all Unix users there is an equivalent samba user. There is a group mapping setup for b...
While not quite the same situation, and not changing from the Windows end, this is what we did. Again, it won't help for actually changing the permissions, but hopefully it helps anyways. We had a confidential folder, where we only wanted some users to write to it, but others to read from it. We created two groups, [CO...
2
1
2,001
2014-01-24T11:49:14.013
infrastructure
serverfault.com
1,034,535
Pfsense DNS port-forwarding
I've encountered a problem when port-forwarding a DNS server using PFSense. I've pf'd many services on this same firewall, only am I unable to port forward a DNS server. DIG dns using local address: [CODE] But when I try to ask the same on the port-forwarded IP: [CODE] I've tried using dig on another machine in the net...
After some troubleshooting it was pinpointed to NAT reflection, which was set to the system default option. After changing it to "Enable (Pure NAT)" it worked as expected.
0
1
1,940
2020-09-19T13:04:23.973
infrastructure
serverfault.com
308,640
Postgresql 14 on Windows 10: pg_ctl.exe returns is not a database cluster directory
I have installed postgresql 14 on a Windows 10 machine. But, I'm getting this message: [CODE] The installation log file at [CODE] shows this text at the very end: Error running C:\WINDOWS\System32\cscript //NoLogo "C:\Program Files\PostgreSQL\14/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres"...
@LaurenzAlbe comment made it. He deserves all the credit, but I am posting the answer with commands output in case somebody has the same issue and it could help. First, running [CODE] : [CODE] Then starting PostgreSQL with [CODE] : [CODE]
1
3
3,149
2022-03-11T19:39:20.543
database_errors
dba.stackexchange.com
416,244
Does Dell Permit 3rd Party Hard Drives on Perc 6/i?
I have various Dell servers (all 2950's) I would like to put some SSDs in. I have spoken to Dell on the phone and asked for a quote for 128GB SSDs for 2950's, they told me they don't sell them for this server. These all have Perc 6/i's in them. Can I purchase any SSDs with a SATA II connection, of my liking, and connec...
Dell were, for a while, actively blocking third-party drives from their controllers. However, they stopped that pretty quick (probably due to the outcry), and now are just content to make the same profit margins on the sleds. I don't have any direct experience with SSDs on PERC 6/i, but if it doesn't work, make loud en...
6
5
6,409
2012-08-10T10:54:25.577
infrastructure
serverfault.com
137,820
Ubuntu 10.04 LTS - good enough to jump on it?
I'm currently planning to get a VPS from VPS.net for a PHP project. I personally haven't used CentOS (which is recommended all the time) and this is not a good time for me to start learning it, so I want to stick with Ubuntu, as that's the one I have experience with. Now there's the good ol' 8.04 LTS that's well suppor...
When does your project have to be production ready? Tomorrow? I'd go with 8.04 LTS. In a month? Maybe you should develop it on 8.04 and try it out on a local 10.04 virtual machine to evaluate it. In 6 months? My guess is Canonical will have fixed most problems by then. Make sure you have a simple repeatable installatio...
5
7
1,018
2010-05-02T07:11:03.703
infrastructure
serverfault.com
185,288
Autorise computer accounts through AD group
I would like to grant SQL access for computer accounts. It works if I declare a login for each account, like [CODE] but I can't make it works when using a AD security group containing the computername. Say SRV1 is member of contoso.com\server_group , and I create a login for it like this [CODE] . Now, trying to request...
Found it! The issue occured because we have set the group membership too early (before the computer login once to Active Directory). If we set group membership after a first login it is working as expected
1
0
43
2017-09-07T10:20:04.047
warehouse_errors
dba.stackexchange.com
357,221
How do I design a buffer for a console?
Problem I have a graphical console widget that receives output from an interpreter. Unfortunately the console is not fast enough to paint the output in real-time. So I had to implement a buffer(FIFO Thread Safe Queue) that delayed the writes to the console by 5ms. So when normally a loop of 1000 prints would be done in...
To add more flesh to the bones of Wikiti's comments. You need a fixed sized buffer and a timer set to n ms. When you write code to the buffer, if the buffer was empty, (re-)start the timer to n ms. If you write to the buffer and it is full then flush it to the console, clear the buffer and stop the timer. If the timer ...
3
8
1,145
2017-09-12T07:10:47.383
api_errors
softwareengineering.stackexchange.com
419,783
iptables: How to redirect / forward traffic without traffic through server?
I now played around with iptables (the whole day) to make my rules work, but there is one issue.. all traffic that I redirect goes through my server and back through my server. We are talking about high HIGH amounth of bandwidth. So I hoped there was a option to redirect a user to the external global IP, so it talkes t...
I think you want an xinetd redirect, not an iptables one (I've never needed to do this in anger). Try this: # /etc/xinetd.d/redirect25 service redirect25 { port = 25 type = UNLISTED disable = no socket_type = stream wait = no user = root redirect = 11.111.11.111 25 } then restart xinetd. You might need to consider rela...
0
1
1,299
2012-08-21T19:55:24.897
infrastructure
serverfault.com
11,819
Terraform fails on creating network with libvirt provider
I wanted to spin up a test environment locally using the description from this stackoverflow answer: https://stackoverflow.com/a/58607900/4397899 The main.tf looks like [CODE] The network_config.cfg looks like this [CODE] Steps to Reproduce Issue Run [CODE] Then I get the error message: [CODE]
I guess the issue is here: default = "10.10.10.10/24" you have defined a network address and not a subnet. Try and change the IP address to a subnet address it should work.
1
1
796
2020-06-14T10:35:06.260
pipeline_ops
devops.stackexchange.com
81,263
Sentiment analysis of the target in articles
The goal is as follows: I have a big article and I want to define the sentiment of the particular word. For example, the article describes pros and cons of bikes and cars and I want to find the sentiment of the word car. In such an example I cannot use document-level SA as the article itself can be positive while the c...
I'm not sure I completely get the idea, but it looks to me like what you're actually interested in is the sentiment of a word in a particular context : a content word like "car" might not carry a stable sentiment by itself, but its usage in a specific context might. So I'd suggest a method like this: for any target wor...
2
0
110
2020-09-05T09:07:51.273
data_quality
datascience.stackexchange.com
337,327
Query to return latest record between 2 tables
I'm trying to pull the most current date (cusPurDt) and corresponding amount (subAmt) by customer (cusID/subID). Here is some sample data: [CODE] The desired result should look like this: cusID cusPurDt subAmt 10606 2/1/2024 00057 11065 1/1/2024 00063 11543 9/1/2023 00099 11572 7/1/2023 00028 11804 11/1/2023 00397 Here...
You can use with MySQL 8.x Window Functions And a word of advise save MySQL dates in iso norm format '2019-09-07' [CODE] cusID cusPurDt subAmt 10606 9/1/2023 00142 11065 9/1/2023 00234 11543 9/1/2023 00099 11572 7/1/2023 00028 11804 8/1/2023 00423 fiddle For older versions (and much uglier) [CODE] cusID cusPurDt subAmt...
1
1
48
2024-02-28T17:25:54.317
database_errors
dba.stackexchange.com
630,885
How can I get Puppet generated configuration to include internal hostnames of other ec2 instances in my CloudFormation stack?
I have a stack generated by AWS CloudFormation that includes an EC2 instance (running Ubuntu 14.04) and an RDS (database) instance. They are both inside a VPC, which includes a puppet master (not as part of the cloud formation stack): [CODE] I want to puppetize the EC2 node, writing a config for the webserver and the a...
If you can create a script (on the Puppet master) that will print the name (likely through calls to the AWS CLI), you can use the generate function to use the name in your Puppet manifests and templates. You can add this call right in your [CODE] file. [CODE]
3
1
245
2014-09-24T13:01:41.527
pipeline_ops
serverfault.com
396,435
Notify thousands of clients with websockets, are there any caveats?
I'm building a web app, where users can create locations, which are displayed on a map. Also, users can click on the map objects in order to get to a place details page where further interactions with the server can be done. Users also can delete the places they added on the map and this could happen pretty often. All ...
You should not do that. The reason is simple: everytime you have a change you would try to inform them. And this comes with 3 major downsides: 1) You try to reach someone that maybe not reachable. Just because you think there is an open connection does not mean it really is. The information that is has been closed may ...
1
2
1,006
2019-08-24T15:54:27.217
api_errors
softwareengineering.stackexchange.com
15,208
select for update gives error on indexed column
here is my code: [CODE] if i run code with 2 browser if id column is not indexed code run correctly- second session wait until first session commit -. but if id column is indexed i get this error "mysql_fetch_array() expects parameter 1 to be resource, boolean given " on second browser - waiting session -. when i use m...
[CODE] tends to do row level locking in a deep way we tend to take for granted: Locking the corresponding index entries as well. SELECT queries can perform locks on the gen_clust_index , aka the Clustered Index. Here are three DBA Stack Exchanges questions I agressively looked over with @RedBlueThing , the person who a...
3
1
830
2012-03-17T16:55:40.380
database_errors
dba.stackexchange.com
40,580
Updating a table with more than 850 million rows of data
I have been tasked with writing an update query to update a table with more than 850 million rows of data. Here are the table structures: Source Tables : [CODE] [CODE] contains 52 million rows of data and [CODE] contains 400,000 rows of data. Here is the [CODE] structure [CODE] The relationship between these tables are...
To speed things up, you could try Adding a primary key to #CSpec.RowID so you don't scan it every iteration Change the CTE to a temp table with suitable PK. See next point too Add an index on SourceTable1 to match the CTE WHERE clause: currently the PK will be scanned, meaning all SourceTable1 rows will be scanned ever...
7
5
9,498
2013-04-22T05:48:54.550
warehouse_errors
dba.stackexchange.com
778,845
JBOSS AS 7 monitoring Paramaters
We are using JBOSS AS 7 in standalone mode to run our web application. Our user base is around 1000 users and we have 4 instances of a JBOSS running on 4 RHEL6 machines behind a load balancer. sometimes, our users are facing website slowness . I tried to monitor the Linux server parameters - the RAM usage and processor...
I used JBoss in the past and indeed those numbers are not bad. Quite the opposite, they are great! Anyway, I recommend you monitor your JBoss infrastructure with a monitoring solution. I used Pandora FMS ( http://pandorafms.com ) and its JBoss plugin .
0
0
491
2016-05-25T00:32:37.123
pipeline_ops
serverfault.com
239,131
Is mongodb upsert the right option for write intensive use case?
I'm designing a data model for a transactional use case which is write intensive. The write load would be 900 - 1,600 Transactions Per Second (TPS) which would account for 30 million Inserts/Updates per day and read load would be 600 - 800 TPS Since we have opted for an embedded data model, we are using upsert queries ...
To answer you question, and this is my opinion not hardwired: 1. Is it wise to keep the documents embedded and perform upserts every time (considering the load) rather than keeping the documents in 2 separate collections and perform joins to report the data to client applications? Ans : MongoDB is designed to handle em...
1
0
3,660
2019-05-27T10:02:30.910
database_errors
dba.stackexchange.com
19,439
CNNs for identifying scattered object?
As per my understanding, while learning the features, the Convolution part of the CNN works-on and preserves the 'spatial relationship' between the pixels. But, I want to identify object(s) in my image whose definition might be all scattered throughout the image. By scattered I mean - The identity of object may exist i...
This should not be a problem, the convolutional kernels will have bigger and bigger receptive fields when you get deeper, and either there will be kernels at the end that will combine all the components over the whole input if the receptive field is big enough, or if you use a fully connected layer at the end it will l...
0
1
59
2017-06-02T21:18:38.477
data_quality
datascience.stackexchange.com
30,850
GradientChecking, can I blame float precision?
I am trying to GradientCheck my c++ LSTM. The structure is as follows: output vector (5D) Dense Layer with softmax (5 neurons) LSTM layer (5 neurons) input vector (5D) My gradient check uses this formula $$d = \frac{\vert \vert (g-n) \vert \vert _2 }{ \vert \vert g \vert \vert _2 + \vert \vert n \vert \vert _2}$$ The D...
The fact that there is a sweet spot is a common issue in numerical differentiation . The issue is that using a high epsilon value will give you high error due to the fact that the numerical derivatives have error $O(\epsilon)$ (or $O(\epsilon^2)$ if you use centered difference), and using a very low epsilon will result...
3
3
234
2018-04-26T05:32:31.020
data_quality
datascience.stackexchange.com
485,868
How to make ESXi 5.0 check datastore and get VMs automatically?
I've desktop pc dell 9010 with HD 500 GB (SATA ) , i'm working with ESXi 5.0 and i run it from flash memory ... I was created 4 guest VMs before but when i restart pc everytime it dosn't get Virtual machines (although the files of VMs on the hard disk but nothing in the invetory) ... so i must create these machines aga...
I think that's the answer but i'm not sure hosts inventory problem
0
0
352
2013-03-08T04:12:11.300
api_errors
serverfault.com
865,824
Booting from PCIe SSD on Dell T3600
One of our local workstations SSD is severely slow. I can't seem to find much resources on whether or not the latest BIOS supports booting Windows Server from a PCIe SSD. If it doesn't, is there a way to force it to boot -- like grub on a USB drive or something?
Don't waste your SATA or SAS port for boot SSD! Boot from USB stick and keep expansion ports for capacity & performance tiers! https://www.starwindsoftware.com/blog/how-to-create-bootable-windows-server-2016-usb-thumb-drive-for-installing-os https://www.starwindsoftware.com/blog/create-an-esxi-6-5-installation-usb-unde...
2
5
1,495
2017-07-29T15:54:32.817
infrastructure
serverfault.com
678,605
Can I safely remove the Via http header?
I have a Internet facing service that provides APIs over https - json, xml and the like - something like https://api.example.org/api/foo . The API's are generally built from corporate internal services, but even if we are making requests to external internet based service I want them to appear to clients as my services...
The Via header is designed for passing the blame on to someone else. It is perfectly acceptable to remove, or not generate it, if it doesn't serve that purpose.
3
5
2,138
2015-03-26T22:19:42.827
api_errors
serverfault.com
42,900
Which is better: one database per application, or just one database?
I ask this specifically for SQL Server, the advantages that I can see for multiple databases are: Logs are smaller (so one runaway transaction cannot cause others (replication etc) to stall) A page corruption does not affect multiple applications (can this be isolated using filegroups?) I can't seem to find any benefit...
I agree with mrdenny to have 1 database per Application . There are many good reasons to do that : Most importantly Log : SQL Server uses transaction log to be able to allow a point-in-time recovery in case of any disaster, provided that log backups are regularly taken when the database is online. Full Backups : Easy t...
3
6
3,992
2013-05-23T13:09:24.043
database_errors
dba.stackexchange.com
620,252
How to preserve xrdp session on ubuntu 14.04?
I installed xrdp on my ubuntu 14.04 machine using the below commands. I can now remote desktop from my windows machine easily into my ubuntu machine. However, what I notice is when I close the remote desktop connection and login again with same credentials, it would start a fresh new session. I was expecting to see the...
There is a post at http://c-nergy.be/blog/?p=5305 that gives a couple of options e.g. edit /etc/xrdp/xrdp.ini sudo gedit /etc/xrdp/xrdp.ini Locate the section [xrdp1] Replace the following line: port=-1 With: port=ask-1 Save the file. Restart xrdp: sudo service xrdp restart. When you login enter a port number e.g. 1234...
4
0
9,746
2014-08-13T20:28:15.087
infrastructure
serverfault.com
130,863
How to apply DRY to files shared by repositories?
I've got a few files which are used in several of my repos: [CODE] , shell library to for example print a colored warning/error message or the documentation of a script file. [CODE] ; a standardized one which installs the file [CODE] to [CODE] and references a test script. [CODE] . [CODE] ; Makefile commands to for exa...
In SVN the concept is called "vendor branches", ie you think of your shared files in much the same way as you think of a 3rd party library that you're using. You make a 'read-only' copy of the external files to your repo and use them. but never change them - that only occurs when you re-import the vendor files. If you ...
5
1
534
2012-01-19T12:09:42.737
data_quality
softwareengineering.stackexchange.com
1,095,166
I might have broken container port mapping
Port mapping is not working. I don’t know if it was something I did or what. Setup : [CODE] , using nginx-proxy with its acme companion to get certs for various apps in other containers. Everything was definitely working well. Then all of a sudden I started getting [CODE] errors from the nginx proxy. It couldn’t reach ...
The [CODE] setting looks incorrect. You are using [CODE] while the container is listening on port 80. So instead you should have [CODE] . Connectivity between containers happens on a common user created network (e.g. [CODE] ), and on container ports. The published port on the host is for external users to access the co...
0
0
638
2022-03-02T14:03:56.640
pipeline_ops
serverfault.com
54,978
Windows 7 - Apache crash
I have to code tiny and simple php script. I don't want to depend on remote servers, so I decided I will install my own environment. My workstation was Windows XP, installed Apache 2.2.11, php 5.2.9 and mysql - 5.1.22. Everything was ok, it worked as it was supposed to work... Few days ago I upgraded to windows 7 . Ins...
my name is Angelo, and I'm a Web Master... I Had this same problem, so i've tried anythings to figure out this problem. Well, here, this problem was with 'libmysql.dll' if you overwrite the ' libmysql.dll ' that comes with PHP , for the ' libmysql.dll ' comes with MySQL Database Server, that's it. It's simple, recover ...
0
0
1,262
2009-08-17T12:51:50.923
database_errors
serverfault.com
741,675
bind9.10 dnssec inline signing failing
I am pretty sure the ultimate error is this: [CODE] I can query the server (both master and slave) [CODE] But no response from the google dns. I create and load the keys via [CODE] and then recover the DS via [CODE] and upload it to my registrar. but dnzviz.net say my key is incorrect. my named.conf options [CODE] my n...
Gandi is the ONLY registrar I have found that wants the PUBLIC key and not the DS. you get that via -> dig @127.0.0.1 dnskey domain.com and upload THAT has and not the DS to gandi and then THAT will produce matching keys.
0
0
316
2015-12-08T19:31:16.180
infrastructure
serverfault.com
61,269
Accidental Turn On of Replication
We had a log file that wouldn't stop growing even though we do backups. Turns out that replication had been turned on for that database. None of us DBAs did that (at least as far as we know). So, two questions. Can you tell after the fact who or what turned on replication. (We noticed that when we turned off replicatio...
As for question 1, I don't think there's any way to know who enabled replication once you've torn it down. Even if it was still up, it'd be difficult (there is a login_name column in syssubscriptions that you might be able to use, for instance). Speaking to point the second, the documentation for sp_addpublication says...
2
1
58
2014-03-19T18:43:58.977
database_errors
dba.stackexchange.com
234,732
Alter table - existing column as primary key
I am attempting to set one of the columns in the table as primary key. Here are the columns from the table: Now, when I run the sql: [CODE] I get the following error - [CODE] Here's the output of SHOW CREATE TABLE cb_company [CODE]
A [CODE] column cannot be in an [CODE] (a [CODE] is an index). As Akina points out, uuids may as well be [CODE] Such is indexable. Before changing away from [CODE] , running your [CODE] will give you [CODE] You could change the datatype, then do the [CODE] . Or if you are starting from scratch, [CODE] It is generally b...
0
1
590
2019-04-13T20:19:20.807
warehouse_errors
dba.stackexchange.com
807,534
LVM: moving physical volumes
In a virtual server (Debian GNU/Linux 8 amd64) I have the following disks and filesystems: [CODE] The root filesystem is ext4. Since [CODE] has enough room for all my data, I want to remove [CODE] and [CODE] . The latter is there as a temporary space only to provide room for the needed maneuvers. The data on [CODE] sho...
The following procedure is only an idea, never tried, but I think it can work: Consider Btrfs pros and cons, and the fact it isn't really production ready yet (well, as of 2015, but I couldn't find anything more recent on the subject). Let's assume you want it anyway. Backup backup backup Convert the ext4 filesystem to...
2
1
4,237
2016-10-06T16:33:03.360
api_errors
serverfault.com
232,713
Set root password in Amazon EC2
I am trying to set the root password on Amazon EC2 (CentOS machine). When I try passwd, I get this: [CODE] What can I do to fix this? I know ssh is better but I need to set the password because I require it to login to my webmin. Contents of /etc/nsswitch.conf: [CODE] When I tried [CODE] and then [CODE] , I got to rese...
To change root password of you CentOS in EC2 with webmin installed in it use the following command after login with your ssh. [CODE] after changing the password you can login with new root password in webmin ofcourse you can nomally login with your ssh and private keys as well.
2
2
2,962
2011-02-08T15:07:23.570
infrastructure
serverfault.com
135,712
Queries not Running in Prod
I've an update statement which uses 2-3 tables. It runs in less than a second in QA but it takes forever in Prod. The number of records are exactly same and all the indexes are same too. In fact Prod server is an stand alone box while QA is a VM and have Dev,QA and Stage SQL Server instances on one server. So in that w...
Two likely possibilities. Blocking Your production machine probably has a lot more going on than your test/dev machines. You could simply be seeing blocking. Run your query in one window and this in another. [CODE] If you are being blocked you may need to look at what's blocking you and how long it's taking to run. Con...
1
3
1,075
2016-04-18T20:57:06.050
database_errors
dba.stackexchange.com
1,057,685
Client PC (Win7/Win8) cannot ping to VMware server (CentOS 8), but server can ping client
first of all I'm not a networking technician, so my networking lingo is very much limited. I'm trying to help my coworker with troubleshooting a problem. So far I only rely on using search engine to find English-language solutions, and I haven't got any for this one. We're trying to setup a (I quote from him) "web serv...
Okay, so eventually I got it to work myself... What I did to finally get it working was: On VMware settings, I went into Virtual Network Editor and changed the settings for "Bridged". I changed the used adapter from "Automatic" to the corresponding adapter of the server PC. Changed the settings for the CentOS 8 to use ...
1
1
547
2021-03-20T05:35:20.883
infrastructure
serverfault.com
237,688
Adding port forwardings programmatically on a ControlMaster SSH session
I just found out about the ControlMaster/ControlPath feature of OpenSSH, which allows you to use a single SSH connection to run multiple terminals. As I often use SSH to use port forwarding to get encrypted and authenticated VNC sessions I instantly recognized that you can't add port forwardings to a remote server to w...
That's quite simple, actually. Simply add the ctl_cmd [CODE] to your existing command, thus: [CODE] becomes: [CODE] The [CODE] man page discusses the [CODE] option: [CODE] This, of course, assumes you've either enabled [CODE] in your [CODE] file or [CODE] on the command line.
15
17
3,482
2011-02-19T19:11:08.010
infrastructure
serverfault.com
415,554
PTR records not been created and/or updated
Windows domain, domain and forest functional levels at Windows Server 2003. Windows 2003 and 2008R2 domain controllers. Same for DNS (AD integrated). Dynamic updates on DNS zones are set to "Secure Only". DHCP running on Linux, it is not set the update DNS, clients do. I am experiencing a weird behavior. If I manually ...
It's been a while, but I've seen this. When using DHCP, by default (some/most/all) Windows OS's expect the DHCP server to register the DNS name. If your DHCP server is not doing that, do the following on the client so it will make its own DNS registrations. Control Panel, Network Adapter, TCP, Properties, Advanced, DNS...
2
1
4,746
2012-08-08T14:54:25.417
infrastructure
serverfault.com
123,811
Mysql RDS migration problem
I'm trying to migrate my MySQL RDS to a different machine. The reason is that I need smaller disk, and you can't make disks smaller for RDS servers, only bigger. I'm trying to migrate with this answer: https://stackoverflow.com/questions/20638012/backup-mysql-amazon-rds#20645291 and this tutorial: http://docs.aws.amazo...
I've managed to make it work with pointing slave to master IP instead of url, and putting slave ip to inbound rules of Master's security group
2
0
148
2015-12-16T10:46:42.713
database_errors
dba.stackexchange.com
439,993
Dependency resolution of tasks which have crontab information
I want to illustrate my problem statement with a use case. I am building a trading system that acts as a container for deploying trading strategies. The trading strategy comprises dependent tasks. Let's suppose there is task T1 and T2. T1 runs at the market open (the core of the strategy), and T2 runs after the market ...
I had a very similar use-case years ago. The simplest way of thinking here is a “system throughput”. Eventually you want both tasks running daily, and technically you have to keep them happening one by one. Let’s ask a few questions that should help here: Can we skip the day? Can we run a job on next day? Running job d...
1
1
152
2022-07-23T19:01:02.907
pipeline_ops
softwareengineering.stackexchange.com
68,759
BizTalk 2009 Visual Studio 2008 Deployment error
I'm currently trying out BizTalk 2009 for the first time. I'm by no means a BizTalk user/expert. The installation was quite a lengthy process but sticking to the Microsoft checklist, everything installed correctly without an issue on the first try. My question may appear to be more stackoverflow-oriented, but my guess ...
You need to run visual studio as administrator: Visual Studio does not let you deploy a BizTalk project on a computer with the User Access Control (UAC) feature turned on unless you run Visual Studio with administrative privileges. To run Visual Studio with administrative privileges, click Start, point to All Programs,...
2
3
2,332
2009-09-25T16:25:44.153
pipeline_ops
serverfault.com
675,320
BitLocker Already Configured Issue
System Configuration: Windows Server 2008 R2 Standard Disk Configuration: RAID1 We have a newly built system that is joined to a domain and has the proper GPOs for BitLocker already setup. We install bitlocker rebooting the machine as instructed. Next, we need to setup BitLocker so we run the following command: [CODE] ...
While we didn't find the root cause of this problem, we did eventually find a workaround. We figured that the bdehdcfg commands were detecting the 100 MB System Reserved space on the disk, which is set up by default to help implement BitLocker. Utilizing this partition with BitLocker would lead us to eventual failure o...
1
1
579
2015-03-13T16:13:33.653
infrastructure
serverfault.com
329,483
Fetch latest of 2 fields(columns) from multiple records by most efficient way
I am trying to fetch the latest email and contact from multiple records. Each record has a date of creation. This row could or could not have an email/contact. The table looks like this : [CODE] In this case expect output is for ID = 1 : [CODE] My query is [CODE] Can I improve the query further ?
One way would be using window_functions which require MySQL 8+. In case of a null row get the next non null value. Try, [CODE] See example here As per performance improvement please share table description and explain plan
1
0
79
2023-07-20T06:58:37.273
warehouse_errors
dba.stackexchange.com
109,061
reiserfsck on lvm
It seems like my filesystem got corrupted somehow during the last reboot of my server. I can't [CODE] some logical volumes anymore. The setup: [CODE] [UPDATE] First question: what "part" should I check for bad blocks? The logical volume, the underlying [CODE] or the [CODE] below that? Is doing what I am doing the right...
Well, after a few more hours of [CODE] ing it seems like repeating this three-step process [CODE] solves the problem eventually. I still don't know the cause for the problem as there seem to be no badblocks on any drive, neither do I know how much data is lost, but after all I am pretty sure that this should not happen...
2
0
1,202
2010-02-03T06:20:37.777
data_quality
serverfault.com
778,056
“service temporary unavailable” mod_proxy_balancer and sticky sessions
I have configured a Apache mod_proxy_balancer using a stickysession cookie. [CODE] A browser has receive a stickysession cookie related to route 1 if I shutdown 172.31.20.111, I got “service temporary unavailable” I do not understand why failover is not working when such worker goes offline. There are two balancers, on...
Set retry to be greater than zero, otherwise Apache will always retry the connection for a request with an existing route. Essentially if you set retry to zero you will never get failover of a request for one worker to another. When you make a request and a worker gets marked as 'down', normally because the underlying ...
0
0
556
2016-05-20T17:11:00.553
database_errors
serverfault.com
80,944
Any tips on getting hired as a software project manager straight out of college?
I graduated with a BS in compsci last September, and I've been trying (unsuccessfully) to find a job as a project manager ever since. I fell in love with software engineering (the formal practice behind it all, not just coding) in school, and I've dedicated the last 3-4 years of my life to learning everything I can abo...
Experience is (Often) Key Unfortunately, while this may be very frustrating, your skills and the knowledge of project management that you acquired at university or during your previous projects appears insufficient to a lot of people; I know I would be cautious. I can understand the frustration, but there's always the ...
18
41
4,090
2011-06-02T00:05:22.397
api_errors
softwareengineering.stackexchange.com
885,619
RPZ CNAME leaks usage of RPZ
For history reasons we have both internal (192.168.0.0/16) and public IPs on hosts on one domain (example.com). I now want to split this up so that internal hostnames are not resolved for external users. My current plan is to use bind with RPZ. my named.conf is as following: [CODE] my rpz zone file is as following: [CO...
Its quite a late reply, but this has been answered on the isc mailing list . Unfortunately you can not chain together multiple rpz-records like [CODE] rpz is a one shot operation. If your query causes 2 lookups (which happens automatically when CNAME is involved) - only the first lookup one will be handled by rpz. You ...
3
3
1,113
2017-11-29T00:25:18.520
infrastructure
serverfault.com
58,220
I have delete database from mysql but storage is not freed
I have deleted multiple databases (schema) from mysql on amazon RDS but the storage is not freed, is there anything else I should do to free up the storage? I have a mysql database that the total storage is 15GB. After adding multiple databases (copied from another mysql database) and deleting them the free storage ava...
You may find this surprising, but there are lots of little transactions that occur inside ibdata1. I wrote about this back on Jan 14th : AWS RDS showing large growth in Write Ops/sec, despite low # DB connections? Even though MySQL 5.6 has innodb_file_per_table on by default, the only way ibdata1 can grow is by having ...
2
5
4,229
2014-02-04T17:45:15.793
database_errors
dba.stackexchange.com
275,890
Eliminate filter operator before columnstore index scan operator
I have a large fact table with millions of rows called MyLargeFactTable, and its a clustered column store table. There is a composite primary key constraint on it there as well (customer_id,location_id,order_date columns). I also have a temp table #my_keys_to_filter_MyLargeFactTable, with the very same 3 columns, and i...
How could I remove the Filter operator and somehow force the Index Scan operator to read only the few thousand rows? The Filter operator is applying the bitmap built on the join columns at the hash join. Of the three join predicates, only [CODE] has a data type that is supported for bitmap pushdown to the column store ...
1
6
407
2020-09-22T14:21:18.763
data_quality
dba.stackexchange.com
431,822
Nginx's upstream failed, how to recover
From the doc: http://wiki.nginx.org/HttpUpstreamModule#server It said when the upstream reached [CODE] within [CODE] and it will become dead. What if my server is up sometimes after? In general, If a upstream server failed, will nginx retry with another server in the pool? Any variable I can configure so that they will...
The documentation you linked to states that nginx will try the upstream again after [CODE] seconds, to see if it has come back up.
1
3
3,365
2012-09-25T15:50:32.907
infrastructure
serverfault.com
23,637
How to check if a subquery has exactly one distinct result and a specified value concisely?
I found myself writing the following: [CODE] and wondering if there is a more concise way without sacrificing too much readability. I found one way which I am posting as an answer but I'm not entirely happy with it and would be very interested in alternatives In this case [CODE] is unique within [CODE] - there are no d...
Concise, fast (especially with many rows), my favorite concerning readability and would work with dupes, too: [CODE] Returns [CODE] / [CODE] .. or [CODE] - only in the case of exactly one row with [CODE] , because [CODE] never returns [CODE] or no row. The second [CODE] in the example just happens to be the same as the...
10
8
6,383
2012-09-04T15:42:23.580
data_quality
dba.stackexchange.com
1,055,489
Unable to connect to WSUS and Group Policy
So I have an odd issue where my server is unable to connect to either my WSUS server or update Group Policy. While running updates I noticed that one of my servers errors saying it can't connect to the WSUS server (my own, not MS). I rebooted several times and removed and re-added it to the domain and checked the netwo...
I actually found out the issue by trying to open local security policy and getting an error. Apparently the local .pol file was corrupted. By renaming that and re-running gpupdate it succeeded and was able to get the right WSUS settings from GP.
0
0
431
2021-03-01T12:51:12.687
infrastructure
serverfault.com
73,084
What characters should I use or not use in usernames on Linux?
I want to create user accounts named after a domain name. adduser complains that the usernames need to match the [CODE] regular expression. [CODE] I can add the users using useradd without complaint. Is there a reason that I shouldn't modify the regular expression to allow [CODE] , [CODE] and [CODE] ? What characters w...
My advice to you is to follow the standard recommended by the default NAME_REGEX. You can actually put nearly anything in a user name under *NIX but you may encounter odd problems with library code that makes assumptions. Case in point: https://web.archive.org/web/20170928165345/http://blog.endpoint.com/2008/08/on-vali...
61
32
173,652
2009-10-09T20:06:24.897
infrastructure
serverfault.com
328,607
Apache still using default SSL certificate for Virtual Host even after a real one has been installed
I am receiving 'Connection is Untrusted' errors when accessing my site from a browser over SSL. I can see from the details it is using the default self-signed certificate from Apache, and not the real CA-signed certificate I have installed. In the virtual host config for the site I have: [CODE] ...where domainname is t...
Is it the same error or are you seeing client negotiation warnings due to a missing Intermediate cert and associated [CODE] entry? Another possibility is you are using a default apache implementation that is including the old cert directives somewhere higher up in your httpd.conf or in an included conf file.
5
1
6,135
2011-11-07T19:22:22.660
api_errors
serverfault.com
68,667
Understanding pagefile.sys % Usage performance monitor (perfmon) counter correctly
Lately we run into performance inssues and I started tracking some recommended sql, memory, disk and cpu counters. I informed myself about the recommended values and numbers to look at. One of the counters is : pagefile.sys % Usage We had really small values like 0,5 in the beginning of collecting metrics. When it came...
pagefile.sys % Usage shows total system committed not what currently is utilized. This value can increase due to load when system finds out it has to back process with more page file. Have a look at below link for detailed explanation http://blogs.technet.com/b/perfguru/archive/2008/01/08/explanation-of-pagefile-usage-...
1
1
16,236
2014-06-20T11:18:01.327
warehouse_errors
dba.stackexchange.com
320,849
Can one use a view as a source on pt-table-sync?
Any attempt to fill a table from a view results in an error, as the source-table does not exist: [CODE] I know that the source table doesn't exist, as I am trying to use a view as a source instead. Access is not a problem either. As tests with a source-table instead of a source-view confirmed. In the DSN, I use [CODE] ...
Short answer: No. Long answer: Why do you need to sync a view? If the [CODE] has a single table 'under the covers', "syncing" the table has the effect of syncing the View. If the [CODE] has multiple tables, then simply sync each table.
0
2
55
2022-12-12T13:58:47.353
warehouse_errors
dba.stackexchange.com
519,923
How do I force a specific MTU for only certain TCP ports?
Background I have a set of embedded hardware deployed in the field. These remote machines connect back to my servers at AWS running Ubuntu and I use the [CODE] [CODE] chain to lower the MTU to 500 so these devices are happy. For reference, this is the [CODE] rule I am using: [CODE] Current Problem I'm trying to spin up...
Based on feedback from Joyent's support team, this appears to not be possible. The MTU can only be set on the interface level, not via the firewall as one can with Linux. Note that it is theoretically possible to change the MTU for a socket via the [CODE] call (via the [CODE] option), but there is currently no extensio...
1
0
1,183
2013-07-01T14:20:53.700
api_errors
serverfault.com
410,522
Need custom Nginx regex
Following is what I have right now and it works but needs some improvement. I am guessing that I will need to use regex and that is why I need help. What I need is this [CODE] to go to this: [CODE] Following works without the segments. the index.php works as expected [CODE] Stuff I tried: [CODE] [CODE]
You'll need the [CODE] directive from the rewrite module along with a regular expression to perform an internal rewrite of the path. Something like this inside the [CODE] block should work. [CODE] You'll also need to modify the regular expression of your PHP [CODE] block to match [CODE] files in the middle of the path,...
0
0
511
2012-07-24T05:29:17.407
infrastructure
serverfault.com
198,332
Running Drupal on a 256MB VPS?
Can I run Drupal on 256MB VPS hosting ? I know it depends on many factors, but I mean... can I run few Drupal websites on such VPS.. ? What are important configuration settings to optimize performances ? thanks
I had Drupal running with MySQL on a VPS with only 64MB of RAM for about 2 years. So, 256MB will definitely work. Things that I did to get it work with 64MB of RAM: Configure MySQL to the minimum. On Debian based distributions, the example [CODE] provided would be a good sample to use. Use a light-weight web server lik...
1
1
686
2010-11-04T19:34:05.490
infrastructure
serverfault.com
258,541
How can I improve the performance of this query?
I've tried to add an index on [CODE] , but the cardinality is so low ( The query: [CODE] The execution plan looks like: [CODE] events table: [CODE] records table: [CODE] Any tips would be greatly appreciated Edit based on comments: Here are the results of turning off seq_scans and io timing on [CODE]
Using WHERE EXISTS() with a correlated suqeuery instead of a JOIN is one option since you are not returning anything from the joined table. Something like (untested): [CODE] You can also add an index on the JSONB field for the key you are linking on.
0
2
1,054
2020-01-30T14:31:35.600
database_errors
dba.stackexchange.com
882,415
innodb-read-only prevent mysql replication? Table 'gtid_slave_pos' is read only
I set up a couple of [CODE] containers with the official docker image . Master can read/write and slave is read-only with this my.cnf. [CODE] Replication was working well for a while but it stopped with the following error: [CODE] I added this line into slave's my.cnf and set it up again from the beginning but still go...
As well explained here slave should be read_only. Are you sure that nobody is trying to write to slave? Check if available the binlog.
1
1
3,082
2017-11-08T08:55:38.870
database_errors
serverfault.com
158,523
How do I remote access mysql server from any host?
I followed 78246 When I do [CODE] How do I make it work ?
It should be to, not for. [CODE]
1
2
968
2010-07-08T12:38:50.407
database_errors
serverfault.com
1,103,045
www certificate not getting pulled correctly - nginx and certbot
I am using a docker stack with nginx and certbot. My domain is hosted on google domains. I want a domain to be accessible via example.tld only: redirect all http to https redirect www to non-www This is my nginx config: [CODE] I created the certificate successfully with [CODE] http://example.tld > https://example.tld ☑...
This is wrong and it shouldn't work. Nginx should complain into error log that the configuration of this virtual host is incomplete: [CODE] Any SSL virtual host needs to have a certificate. Even if all it does is redirect somewhere. Because it will only issue redirect after it has established a secure connection. [CODE...
0
1
4,148
2022-06-11T11:19:29.640
pipeline_ops
serverfault.com
935,988
Web Service Deployment to Production Server
I have a old style .NET Web Service running in IIS correctly on my local machine: http://localhost/MyService/MyService/Service1.asmx I added a Web Reference and set it's property to dynamic so that I could simply change the URL in the Web.config file. Prior to deploying to staging server, I configured it thus: [CODE] I...
I got this working by adding the outer folder first, as the application in IIS. Prior to this I was pointing to the inner folder. Now I can see the nested applications in IIS and the URL I want is working.
0
0
162
2018-10-17T15:37:49.803
pipeline_ops
serverfault.com
319,241
MySQL Server Cannot Verify SSL Certificate
I'm trying to configure a mysql server for secure remote connections over TCP/IP using SSL. The server mysql runs on has a domain name associated with it which i have requested a certificate for from Letsencrypt. I have copied all the letsencrypt certificate files to [CODE] and changed user and group ownership to [CODE...
I fixed it by copying the Root CA certificate in the chain.pem file to a separate file and installed it as part of the trusted root CAs on the OS by following the instruction here: https://ubuntu.com/server/docs/security-trust-store . Then i replaced the line [CODE] / [CODE] with [CODE] .
1
1
1,450
2022-11-05T19:32:33.127
api_errors
dba.stackexchange.com
498,652
APC Network Shutdown script on vMA
I'm trying to configure the APC Network Shutdown script for 3 ESX hosts, and it doesn't seem like I can run my test script on my vMA appliance. I'm trying to verify I've set it up correctly using a bunch of echo commands in a test file named 'sandbox.sh'. Here's my script: [CODE] I SSH into the vMA appliance and use th...
Remove ":" from the beginning of LD_LIBRARY_PATH definition: [CODE] Try to use [CODE] instead of [CODE] You don't need to invoke this script by [CODE] . You can do [CODE] and then you can invoke it as [CODE]
0
1
845
2013-04-12T05:43:54.620
infrastructure
serverfault.com
1,077,169
Is DKIM/ARC working properly on my Mailman server?
I've set up a Mailman 3 server with Postfix. I've configured Postfix to add DKIM headers using OpenDKIM and a test email from that server to a Microsoft-hosted email address suggests that DKIM is OK: [CODE] (Domains & IP address redacted/changed) With Mailman, ARC is used in addition to DKIM and I'm not sure if things ...
Is DKIM/ARC working properly on my Mailman server? No , if the first ARC-Validator ( [CODE] ) after you ( [CODE] ) claims that the chain is broken ( [CODE] ) then something is not working properly. Because of the order of your headers, I am almost certain you are sealing before signing . All message modifications (incl...
2
2
2,895
2021-09-10T09:51:40.033
infrastructure
serverfault.com
367,673
Passing ServiceLayer's services to WCF service
I want to expose my business logic via WCF service in the intranet environment. I have N-tier architecture, pretty simple: Database -> .Data (DAL) -> .Business (Service Layer) -> WCF So, far I have 4 services in [CODE] , but only one WCF service. I here comes the problem. My WCF service uses all 4 services. I'm using D...
You should avoid business logic in the WCF project. If your WCF project uses more than one Service Layer project then it must(?) have some business logic in it. Either: Make a new WCF 'hosting layer' project for each Service Layer project Or: Make a new Service Layer project which encapsulates the others and the busine...
1
1
318
2018-03-14T19:16:09.227
api_errors
softwareengineering.stackexchange.com
656,538
CentOS 7 and MariaDB issue
I have recently moved to DigitalOcean, and installed Centos7 along with its default MysQl server (MariaDB). But I am facing since first install. MySql is exiting down spontaneously and there is no memory issue. I checked using: [CODE] I am worried that why mysql is not restarting itself after closing ? is this a MariaD...
... assuming you have enough RAM to run [CODE] , try running MySQLTuner-perl by major and tweak your [CODE] .
0
0
926
2015-01-06T04:59:11.360
database_errors
serverfault.com
324,315
How to tell Postgresql what tables will be in a transaction?
RDS Postgresql 12.12 [CODE] is blocked by a stored procedure which only touches tables [CODE] and [CODE] . [CODE] and [CODE] don't seem to have a clause which lets one specify only the tables which are touched in the transaction. Am I missing something?
I think you are under the misconception that PostgreSQL locks tables that are not related to the active transaction. That is not the case. If a transaction has a lock on table [CODE] , one of the statements in the transaction did affect the table [CODE] . Note that statements can affect tables that are not mentioned in...
-1
1
46
2023-03-02T23:40:18.033
database_errors
dba.stackexchange.com
154,537
Enable Auto Update Stats in Async mode
We have a table with 10 billion records, where daily there are hundreds of thousands of updates/inserts/selects happening. As the auto-update stats was [CODE] there were a few performance issues; hence, we turned it [CODE] and there were positive results. Now, we want to turn the auto-update stats on in async mode , th...
You can't enable async auto-update stats for just one table. The setting is at the database level. I would recommend keeping auto-update stats enabled and also having an UPDATE STATISTICS job that runs on a schedule, perhaps daily. You could test doing a 10% sampling on the large tables rather than a more expensive ful...
0
2
878
2016-11-08T01:50:56.540
warehouse_errors
dba.stackexchange.com
324,191
Mapping Rows To Columns From a Partitioned Value Table
I have a table with the following structure: set_id value set_row_number 1 Foo 1 1 Bar 2 1 Baz 3 2 Foo2 1 2 Bar2 2 2 Baz2 3 2 Qux2 4 2 Thud2 5 3 Foo3 1 I would like to take this data and place it into a new table where the number of columns matches the max number of values in one set, the value with [CODE] of [CODE] wi...
Here's one way to do it statically , which is only useful if you know that there will never be more than 5 nodes for any [CODE] : [CODE] Results from db<>fiddle : start_node 3_from_end_node 2_from_end_node 1_from_end_node end_node Foo null null Bar Baz Foo2 Bar2 Baz2 Qux2 Thud2 Foo3 null null null null If you have to p...
0
1
117
2023-03-01T00:19:17.380
warehouse_errors
dba.stackexchange.com
33
Where can I find the mysql slow log?
Just as the title says, where can I see it ? Are there any config options for it ( like how many ms would determine if a query is slow or not ) ?
You can find it in the default directory, depending on your install. For instance, on my Red Hat, it's /var/log/mysql/ Query time is time, in seconds, over which it should start recording. This can be done at startup and at runtime. log-slow-queries = /var/log/mysql/mysql-slow.log long_query_time = 1
31
24
71,882
2011-01-03T21:33:43.767
database_errors
dba.stackexchange.com
221,890
File Group Association while Snapshop Replication
I want to know how can I save filegroup structure during snapshop replication in SQL Server? Does this property solve my problem? I want the same filegroups in publishers be created in the subscriber. Thanks
The information text in the description of the item property provides you with the solution to your question: ( emphasis mine) Copy file group associations Determines whether to script the associations between file groups and published objects. The file groups must already exist at the Subscriber . If the file groups d...
1
2
221
2018-11-06T08:16:46.297
database_errors
dba.stackexchange.com
14,248
Storing NULL Values in large VARCHAR fields
I have a table that represents a "note". This note has things like a title and various other meta data. However, I'm trying to figure out the best practice for storing the contents of the note. Currently, my strategy is to have the contents of the note be a VARCHAR(10000) and just store a NULL value if there are no con...
A note with no contents sounds like a fairly meaningless object to me. I would model this by the absence of such tuple in the notes table! p.s. a note's [CODE] is an attribute. An example of metadata ("data about data") would be the date a note's [CODE] attribute was most recently updated.
2
1
156
2012-03-02T02:59:11.670
data_quality
dba.stackexchange.com
761,061
Exchange 2010 Event ID 2159 showing up multiple times each day
I am getting a lot of [CODE] warnings on my Exchange 2010 server. When I navigate to the specified location in [CODE] , I don't see anything strange. The path is: [CODE] The only orphaned server references I was able to find were in the path below, and there are only three [CODE] objects there, all of them pointing to ...
The solution turned out to be just removing all routing group connectors which were still there from an Exchange 2003 server which was decommissioned years ago. The command I used: [CODE]
0
1
595
2016-03-02T17:26:35.780
data_quality
serverfault.com
688,563
How to Configure Ubuntu server samba active directory for authentication subdomain without control of parent firewall?
We have an organizational Windows domain xxx.org which provides DHCP, Gateway, Network, Winbind, firewall, etc. At a remote site we have another domain yyy.org that we manage and control. Currently, all users at remote site, as part of the parent domain, login and authenticate accordingly. Strictly for the purpose of u...
yes, it should be possible to get the SSO for the Windows and Mac Clients using Samba 4 and as long as the Server is in the same Network you won't have to do changes to the firewall. If you have to have the servers in a different network, there is a good chance that you will have to open additional Ports. Chromebooks a...
0
0
644
2015-05-04T20:05:03.400
api_errors
serverfault.com
1,119,159
Assign a public IPv6 to a Docker container
I have an IPv6 address, in this case [CODE] in the subnet 2603:c021:4004:7400::/56. I would like to assign that IP address to a Docker container, so that upon making a request from inside that container, the recipient would see the IP listed above. I only need outgoing requests to function, incoming requests are not ne...
I've managed to do it using a NAT like system. First, I added my IPv6 address to my host [CODE] Then, I changed the [CODE] value in the Docker daemon to a /64 CIDR in the private range (fc00::/7), in my case [CODE] . Next, I ran a Docker container giving it the static IPv6 of [CODE] . [CODE] I then used [CODE] to route...
0
0
1,567
2022-12-30T20:40:31.197
pipeline_ops
serverfault.com
977,623
RSA key pair is not allowing me to authenticate to my backup server
I have a server that authenticates SSH through RSA key pairs. Yesterday my rsync backup worked successfully I know this because of log files: [CODE] Today when I'm trying to SSH into my backup server I'm getting an error that looks like this: [CODE] On the backup server I get the following error from the [CODE] file: [...
Fixed it by regenerating keys again. Don't know why that worked the second time, but it did. Regenerate keys Restart SSH Login
1
0
191
2019-08-01T17:47:17.040
database_errors
serverfault.com
42,331
How to restore SQL Server 2008 R2 backup to SQL Server 2008
I am unable to restore a backup from a 64-bit instance onto a 32-bit instance. Source Server: [CODE] Destination server: [CODE] Error while restoring: Restore failed for Server 'servername' The database was backed up on a server running version 10.50.2500. That version is incompatible with this server, which is running...
Your issue isn't with the 32-bit vs. 64-bit, but it's that you are trying to restore a database on an older version. The database was backed up on a server running version 10.50.2600. That version is incompatible with this server, which is running version 10.00.4064. This means that the source DB is 2008 R2, and destin...
0
7
13,330
2013-05-16T05:43:41.803
database_errors
dba.stackexchange.com
237,935
Does SQL Server allow (make visible) DDL inside a transaction to the transaction prior to commit?
In PostgreSQL I can create a table with some test data, and then in a transaction migrate it to a new column of a different type resulting in one table-rewrite upon [CODE] , [CODE] Followed by, [CODE] However, that same thing in Microsoft's SQL Server seems to generate an error. Compare this working db fiddle , where t...
Generally speaking, no. SQL Server compiles the whole batch at the current scope before execution so referenced entities have to exist (statement-level recompilations may also happen later). The main exception is Deferred Name Resolution but that applies to tables, not columns: Deferred name resolution can only be used...
9
17
1,527
2019-05-12T01:42:45.003
database_errors
dba.stackexchange.com
910,223
Strongswan IKEv2 auth - pubkey and EAP
I'am trying to setup strongswan with pubkey and EAP authentication. To login users need to have certificate and valid credentials. My certificate is ok. I tested pubkey auth and it was ok, also EAP is working, but when i trying run this two auth methods at a same time i have auth error. I tested this on win7 and on and...
Using two (or more) authentication methods in IKEv2 requires support for RFC 4739 . Unfortunately, a lot of clients don't support this, for instance, the built-in IKEv2 clients in Windows and macOS/iOS. But combining certificate and username/password-based client authentication should work with the strongSwan Android a...
1
0
1,640
2018-05-01T21:12:46.267
api_errors
serverfault.com
615,597
Gateway gets stripped from DHCP Reply through OpenVPN tunnel
I have a bridged OpenVPN setup. This is my server config: [CODE] The server is running on a Debian machine running in network A, the client is running on a OpenWRT router in network B. On network A, the tap0 interface is bridged with the local network, containing a DHCP server and a gateway to the internet. On network ...
According to OpenVPN documentation [CODE] is a shortcut expression for [CODE] and [CODE] is a shortcut expression for [CODE] Interestingly [CODE] activates a DHCP-proxy that stripes out the default gateway option in DHCP response from the original DHCP server. This can be seen in OpenVPN log [CODE] Your solution would ...
7
5
7,476
2014-07-25T20:53:33.593
infrastructure
serverfault.com
343,115
Ubuntu 10.04 (LTS) DomU on Debian Wheezy Dom0 Xen 4
I have been forced to move from a Centos Dom0 xen 3 Centos + Ubuntu Lucid DomUs To Debian Wheezy Dom0 Xen 4 Ubuntu Lucid DomUs However although I can create new DomUs on wheezy I cannot get them to boot. pygrub returns Error: Bootloader didn't return any data I have ensured that the disks are the correct way around in ...
A few things to try: 1) Boot the guests by using kernel and ramdisk instead of bootloader in the domU config file. You can use the dom0 kernel and ramdisk 2) Try PV-Grub ( http://wiki.xen.org/wiki/PVGrub_HowTo ) 3) Boot the guests HVM and use the PV on HVM drivers ( http://wiki.xen.org/wiki/Using_Xen_PV_Drivers_on_HVM_...
0
1
979
2011-12-21T13:48:36.713
infrastructure
serverfault.com
639,034
Powershell arrays and comparissons
Im a Linux Sys Admin by profession, but am having to do some powershelling. My problem is this: Im getting a list of active users from the AD with this command: [CODE] My intent being that $allusers becomes an array filled with the lines of output from the get-aduser command. popping this block just after the array is ...
The problem comes with your Format-Table :) [CODE] TypeName : Microsoft.PowerShell.Commands.Internal.Format.FormatStartData Name MemberType Definition ---- ---------- ---------- Equals Method bool Equals(System.Object obj) GetHashCode Method int GetHashCode() GetType Method type GetType() ToString Method string ToStrin...
3
8
4,411
2014-10-23T08:11:45.747
infrastructure
serverfault.com
154,655
how is it possible that a hacker could have inserted a piece of javascript code at the bottom of several of my pages
Somehow some javascript code got appended to the bottom of several of my index pages on my site. I know it's a trojan or iframe attack. However, I am wondering how is it even possible that someone was able to add code to my source? Is it a security issue with IIS? Is it something they did through posting through one of...
If the forms on your site are posted and then displayed on your website, it is possible that someone injected a script in your site. But that's only possible only if you're not using htmlentities() or htmlspecialchars() (if you're using PHP, that is.)
1
2
272
2010-06-24T23:35:43.617
infrastructure
serverfault.com
998,373
my bash scripts are not working when called through supervisord
I'm using the following systems: Ubuntu 18.04.2 LTS bash 4.4.19(1)-release supervisord 3.3.1-1.1 I have written two scripts that work pretty well from the CLI, but when I try to use supervisord with them, they don't work. When I execute them by hand, I cd into the directory folder where they both reside and I issue the...
Looks like you're trying to maintain sync between files in different directories. Do your scripts have the necessary infinity loops in place? I'd suggest you debug with a basic script to determine if the issue is with your scripts of with [CODE] eg [CODE]
1
0
2,394
2020-01-09T23:55:42.523
infrastructure
serverfault.com
387,884
"open files" ulimit: controlling via limits.conf
I'm banging my head on this, and I can't understand why it's not working. I'm hoping that someone can shed light on this, or failing that, give me some suggestions for avenues of investigation. I've got a Red Hat 7.3 system (don't ask) where it's desirable to increase the open files limit for the [CODE] user. I thought...
Well, the mystery is solved. I found that when I did [CODE] I got the 1024 limit, but when I just did [CODE] I got the new, higher limit. It turns out that wls81's [CODE] invoked another script, which in turn invoked an environment-setting script from a completely different user on the system, which did a [CODE] . When...
6
4
7,881
2012-05-10T12:29:51.420
infrastructure
serverfault.com
275,321
Automatically-reconnecting TCP tunnel
I have an unreliable network connection between two machines: sometimes active TCP connections get dropped for reasons beyond my control. I want to establish a reliable TCP connection between the two machines. If the network was reliable, I'd just run [CODE] , with the server listening on port 1234 on [CODE] , and poin...
Is the old an unmaintained Reliable Sockets ( Rocks ) what you're looking for ?
11
6
6,054
2011-05-30T19:46:37.653
database_errors
serverfault.com
55,135
Trigger not working, why?
What i'm doing wrong? [CODE] The idea is, to calculate "STOCK" in ARTICLE, after an insert like: [CODE] on table bookings. How can this be solved?
You need a trigger for each operation on your table: Insert, Update and Delete To demonstrate, I created a SQL Fiddle First let's create the tables and the triggers: MySQL 5.5.32 Schema Setup : [CODE] Because of a SQLFiddle limitation we also need procedures to insert, update and delete bookings. Note that these are no...
-2
2
11,492
2013-12-16T20:24:45.933
warehouse_errors
dba.stackexchange.com
297,257
Server 2008 issue running batch file
For the life of me, I can't seem to get a batch file running in Server 2008 Task Scheduler, despite it not having the common problems I've seen before. Problem so far : I have a batch file that takes a hotcopy backup of some repositories and ZIPs them. I am able to run this manually. I have created a task in the task s...
I have the same problem. This is what I checked. What is the name of your batch file? Could it be a .bat? Try renaming it to .cmd SQL Server agent is running the job. Does the service account for that service ha rights? Do you use a call statement or do you just write the name of the batchfile? I think you do not need ...
1
1
2,543
2011-08-03T19:14:03.463
database_errors
serverfault.com