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
127,166
memcached append() php ubuntu - bad protocol
I am running ubuntu gutsy(7.1) , php5 and I am trying to get memcached running locally. I installed everything as per the docs: memcached daemon, php PECL extension, libevent, etc. But now I can only run half of the example script for memcached append(): [CODE] The script terminates @ append() with an [CODE] error mess...
Whoops. I just had a very old version of memcached installed. 1.2 something. Installed the newer one from source. I must have gotten the old one from an ubuntu repository. (new is version 1.4 something) Not sure which version the append() and prepend functions were added. Bad protocol means that the daemon doesn't unde...
1
0
261
2010-03-29T01:47:10.893
infrastructure
serverfault.com
752,172
Safest Means of Deleting Old Messages in Dovecot
So I'm trying to setup automated deletion of messages in Dovecot using a cronjob to run a daily [CODE] and weekly [CODE] to clear out old messages with some given criteria (mostly stuff in trash and junk folders, everything else I archive instead). The problem is with an expunge command like the following: [CODE] This ...
The solution I've arrived at is by adding a custom flag to messages that are about to be deleted. I do this in my nightly script like so: [CODE] This essentially sets up a multi-stage deletion consisting of two-steps for most mailboxes, with three steps for [CODE] based mailboxes: First, each message that has been seen...
0
0
5,174
2016-01-27T17:51:53.647
hadoop_errors
serverfault.com
963,545
redirect to a different localhost based on url nginx
I'm using docker to create multiple containers and I'm trying to redirect calls coming to my website to the relevant container. for example, if someone tries to go to http://wavenapp.com/bot/test1/webhook then his request will be redirected to http://test1:1337/webhook I tried the following code [CODE] but it's not wor...
What you are trying to do is very dangerous. Letting the user specify the [CODE] destination server is an open security hole waiting for abuse. For example, someone could request [CODE] , and your server would happily proxy Facebook front page to your client. I recommend that you configure a [CODE] block for all your [...
1
1
1,563
2019-04-17T19:38:45.413
pipeline_ops
serverfault.com
24,381
How to close pop up in Selenium web driver?
Please help me out for this problem. I tried to close this Pop-up page with Selenium, but not able to do it. HTML code [CODE]
Try this [CODE]
0
0
8,951
2016-12-16T09:59:59.790
data_quality
sqa.stackexchange.com
101,546
Storing hierarchical template into a database
If this title is ambiguous, feel free to change it, I don't know how to put this in a one-liner. Example: Let's assume you have a html template which contains some custom tags, like [CODE] . We now create a page based on a template containing more of those custom tags. When a user wants to edit the page, he sees a text...
First of all, thanks for all your answers. It is even nicer here than on stackoverflow because the answers are having more details in general and can be discussed better. I have now found a more-or-less-solid solution for this (more-or-less because I am still experimenting with it) which I got accidentally while debugg...
3
0
1,480
2011-08-16T18:02:22.347
api_errors
softwareengineering.stackexchange.com
592,935
What is the performance implication of hardware vs software RAID in 2-disk RAID0/RAID1 setup?
I am choosing between two similar models of servers, one of which has software RAID, while the other hardware one. Servers in question are SYS-E32-1 and SYS-E32-3 from So you Start (an OVH brand) and have similar configuration, the biggest differences being absence/presence of Hyper-Threading and hardware RAID: SYS-E32...
If you have hardware raid then you'll most probably have a hardware controller with hardware cache on it. If that controller has a BBU (battery that retains the contents of the cache on power loss) then the performance difference will be huge. Having cache with BBU will speed up most of you things a lot . That's becaus...
1
4
11,065
2014-05-03T19:01:54.467
infrastructure
serverfault.com
139,488
How to get JMS to front end
I currently have a web application and I would like to add a messaging feature to it. In order to do that, I use JMS(actually OpenMQ, the implementation provided with Glassfish 3). The problem is that I do not know how to get the message notification from the background(from the listener) to the foreground. I am using ...
You may be interested in Comet , a programming model that allows the server to push data to a client. There are implementations for JSF, look at this blog post about Richfaces integration for an example. HTML 5 specifies WebSockets that can be used for server push, but not all browsers support it. The simple alternativ...
3
5
1,240
2012-03-13T10:27:32.430
api_errors
softwareengineering.stackexchange.com
289
Questions about flooding.
I have seen numerous questions dealing with yard flooding, which do not possess enough uniqueness to warrant their own question. Personally I have seen these below... How do I stop backyard from flooding when it rains hard? How to ensure proper drainage in a back yard Usually I just reference them to this answer How to...
A bit of general advice: If you see questions that you think are duplicate, but you don't have the reputation to vote A to close flag it for moderator attention. One of the moderators will then check out and and close as a duplicate if they agree. If I'm unsure I'll leave a comment pointing at the possible duplicate so...
discussion,exact-duplicates,questions
3
3
216
2011-05-23T17:41:47.750
data_quality
diy.meta.stackexchange.com
182,980
Data drift on Row-Based-Replication
i've realized that one of my mysql slaves has missing rows. select count on specific table on master: 9605010 on slave: 9593831 slave is completely sync, no seconds_behind_master, no errors, no slow log version on both master and slaves: mysql Ver 14.14 Distrib 5.6.35-80.0, for debian-linux-gnu (x86_64) using 6.3 sync_...
It's impossible to tell without investigation. Potentially it could be mistakes when you created the slave, it could be direct writes to the slave, bugs in replication, bugs in an app with [CODE] , etc. Worse, it's very hard to investigate post-factum. You need to prepare for the data drift troubleshooting. [CODE] woul...
0
2
888
2017-08-08T17:53:57.823
database_errors
dba.stackexchange.com
1,064,002
I cannot ping a specific external IP through some machines inside the GCP
I have several servers configured in one instance. I'm having problems accessing a certain external IP where only a few of my machines can ping. other machines do not. I looked at the firewall rules and I have no ping block, let alone the IP in question. Does anyone know how I can validate if the lock is within my inst...
Do you have any VPC confgured within your GCP ? if so, could you please check all the routes and default gateways of this. Will be great if you can check also VPC firewall rules if they are present.
0
0
781
2021-05-18T16:01:38.457
infrastructure
serverfault.com
53,842
how to use multiple generator in keras fit_generator()
I want to train the multi-input model on a set of images. I use [CODE] and [CODE] in keras. The problem is I don't know how to use multiple generators. This is my inputs & output generator and seeds are same: [CODE] How should I use [CODE] with this data?
In my opinion, you should build the custom data generator or just use the fit function of Keras and make your input data as follows: [CODE]
2
0
2,666
2019-06-15T09:44:42.450
data_quality
datascience.stackexchange.com
916,675
MySQL in CentOS is down, how to fix to start MySQL?
Sorry about the title. I don't know the error code to provide more information. My website is down by hack. I tried to log in the VPS and backup my source. But I can't access MySQL. It's show error like: [CODE] with command: [CODE]
Run systemctl status mariadb.service -l Command. This will show the status in detail along with error description. Please post above command output which will help us find root cause and assist you quickly.
-4
0
1,510
2018-06-14T13:44:17.517
database_errors
serverfault.com
126,967
Select ONE most recent post for each author
I'm sure its a simple question and I suppose it was asked many times, but I just can't figure it out from other answers, sorry. I use recent versions of PostgreSQL and MySQL. I have 2 tables: [CODE] I need to select one most recent post for each author. Thanks! UPDATE Thanks, both links provide answers to my question w...
If you aim is to have queries with maximum efficiency, none of the above queries is really the best. Not always at least. Efficiency depends on many different things, like the specific DBMS, the specific version (different versions have different improvements on the optimizer and the available syntax), the type of colu...
8
21
17,510
2016-01-22T10:05:13.257
database_errors
dba.stackexchange.com
584,222
Strange notice in apache error log
Today I found a strange notice in apache error.logs. The log tells me the following: [CODE] What I find strange about it is that I was not touching apache during that time. When I checked info from the [CODE] command I have not found anyone connecting to the machine anywhere close to this time. I also was not able to f...
As you're not giving away the time (which might aid in tying this down) I'm going to point my finger at logrotate carrying out it's weekly rotation of the apache logs. Logrotate is called by the /etc/crontab line that runs cron.daily (at 06:25 on my system) and the rules for apache2 can be found in /etc/logrotate.d/apa...
1
4
361
2014-03-24T18:59:21.493
infrastructure
serverfault.com
149,970
I can write code... but can't design well. Any suggestions?
I feel that I am good at writing code in bits and pieces, but my designs really suck. The question is, how do I improve my designs - and in turn become a better designer? I think schools and colleges do a good job of teaching people how to become good at mathematical problem solving, but let's admit the fact that most ...
The only way to become really good at something is to try, fail spectacularly, try again, fail again a little less than before, and over time develop the experience to recognize what causes your failures so that you can manage potential failure situations later on. This is as true of learning to play a musical instrume...
88
90
12,416
2012-05-24T05:16:45.913
api_errors
softwareengineering.stackexchange.com
388,378
What does the error message 'Attempt to serve directory' mean in apache log?
I see this a lot in my server's apache logs (coming from different IPs and directed at different pathes). I am wondering if it can be an attack attempt, and in any case, how to deal with it?
The message "attempt to serve directory" means Apache received the request to server a directory (for example, "http: // www. yoursite. com / mydir"), which is a directory. Usually Apache would look for an index file (as defined with the DirectoryIndex directive, per-server, vhost or directory) or it would try to build...
7
4
24,379
2012-05-11T21:09:26.457
infrastructure
serverfault.com
103,472
In a javascript only web application, what state information should the URL contain?
I'm writing a single page web application that talks to a business layer via asynchronous RPC (encoded with json). I'm targeting fairly modern browsers, so I can at minimum control the URL after the hash. However, the URL won't really be what drives the application's state (that will be maintained by a javascript model...
The URL should be used for what it does: locating a resource. You should put in the URL only things relative to the location of the resource, so users will be able to always find it (bookmark, permalink). With this in mind, you should avoid to insert variables in it or other custom data. Just look at the link of this q...
5
3
1,261
2011-08-24T22:10:34.557
api_errors
softwareengineering.stackexchange.com
269,266
Needs (in principle) C++ parenthesis around if statement condition?
In current C++ when body of [CODE] statements contain only one command then: Parenthesis around [CODE] condition are mandatory but block are optional. So, both examples are OK: [CODE] But is it theoretically possible to do it also oppositely?: Blocks mandatory and parenthesis around [CODE] condition optional: [CODE] Is...
I don't believe any such extension could be made. The problem is that there doesn't seem to be any way to tell if a brace is the start of an initializer or not. For example, the following code would appear to be ambiguous under your proposed change: [CODE] The two interpretations are: Create a new T with an empty initi...
6
17
5,134
2015-01-07T07:35:23.450
api_errors
softwareengineering.stackexchange.com
222,419
Deleted user default database - SQL Server 2008
I cannot connect to the database anymore, I'm getting: Cannot open user default database. Login failed. I have deleted the database during a previous session and then tried to recreate it. But the recreate failed. Now I am stuck with this error, what can I do? Edit: I'm using Windows Authentication Any ideas? Fixed: us...
Fixed it!! use the command: sqlcmd -E -d master then type: ALTER LOGIN [Your Windows Login] WITH DEFAULT_DATABASE=master GO
0
1
260
2011-01-14T11:52:03.557
database_errors
serverfault.com
605,336
HP DL180 G6: where is temp sensor #21
With the warmer summer days starting to hit, my server is increasingly going into thermal protection shutdown due to temp sensor #21 reaching critical level (58*C), as reported in ILO. The fans are all running fine but unfortunately, the server is not in a climate controlled room and there isn't much I can do about the...
Does it matter which sensor #21 is? What would you actually do about it? Can you check your ambient temperature? What can you control about your environment to keep that within a reasonable range? Are you absolutely sure you don't have a failed fan? --edit-- It makes sense to ensure the firmware of ALL of your componen...
1
2
3,642
2014-06-16T00:24:46.877
airflow_errors
serverfault.com
1,117,381
Openvpn unable to ping on-premises servers (port unrechable)
I have configured as an OpenVPN server (Debian) and other servers in Azure network 172.20.0.0/24 which is connected to on-premises network (10.1.0.0/24) via site-to-site VPN IPsec tunnel. Connection was established between Virtual Network Gateway on Azure and local Paloalto. Network connection from azure to local netwo...
Did you announce your 172.32.128.0/17 (client's address space) in the s2s vpn between palo alto and azure vpn gw ?
0
0
90
2022-12-06T12:02:56.250
infrastructure
serverfault.com
577,306
Redirect Multiple Domains to Subfolders and Hide the subfolder from URL
I have sat up two virtual host on the same ip and same document root with Apache, because I want to use shared files and contents in the document root. I want my second website point to a subfolder of the document root [CODE] I tried various rewrite rules in the .htaccess they all can redirect but maintain the subfolde...
What you want to do is not make a redirect but to rewrite the query with RewriteRule. So it should be like this: [CODE] F.ex. the query http://www.example1.com/foo.html will be treated by Apache like it was a query http://www.example1.com/subfolder1/foo.html . Change the domain in this query and the file will be served...
2
6
15,807
2014-02-21T09:05:53.293
api_errors
serverfault.com
831,828
Detecting own down time?
Is there a tool to detect the downtime of a own server? Something like a program which is pinging another server every 30 seconds and write it into a file, so that you can read the file and see when your server was down. (When your server is down there are no entrys for a time) Since some months I get sometimes randoml...
Well, there are plenty of solution for your problem. Those solutions are often referred to as monitoring systems. You can easily set up one, which will monitor your server, record performance statistics and provide them in useful way. I really don't want to mention a specific product. But I think I can provide few exam...
0
1
32
2017-02-10T13:38:52.970
infrastructure
serverfault.com
45,241
PostgreSQL not starting correctly, is it repairing itself first?
I never saw that problem before. I had problems and many PostgreSQL processes were stuck so I killed them with a -KILL... When I tried to restart, it says that it cannot restart, but the daemon continues to run and uses a little processor a lot of I/O. Is it trying to repair the database? I get no log at all. I think t...
I had problems and many postgresql processes were stuck so I killed them with a -KILL... Don't do this . It won't cause data corruption, but as you've discovered it forces the whole database system to restart and do crash recovery. If you hard-kill any database back-end with [CODE] ( [CODE] ) the postmaster has to assu...
0
6
2,841
2013-06-25T22:43:11.483
database_errors
dba.stackexchange.com
154,528
Delete Only Log Backup History in SQL Server
Is it possible to run something like [CODE] to only delete transaction log backups without rolling your own scripts? Using Ola's maintenance scripts, we do 5 minute log backups on all our critical databases and nightly differential and weekly full backups. This means we get about 8500 transaction log backups in a month...
There isn't any builtin code to just delete the transaction log backup history. You'd have to roll your own to achieve that. But I would recommend that you just dump the data that you want to keep in a separate table and purge msdb backup history normally with [CODE] .
0
1
863
2016-11-07T22:03:40.157
api_errors
dba.stackexchange.com
365,221
SSL URL gives a 404
I have recently created an SSL cert on my server [CODE] and a [CODE] file. I then created the [CODE] and the [CODE] with Comodo. I have 2 current vhosts: vhost for - http://www.example.com [CODE] vhost for https://www.example.com [CODE] The problem is, when I go to [CODE] I get a 404 I'm not sure if the vhost(s) is cor...
Without special tricks, HTTPS does not support NameVirtualHosts; remove [CODE] from the config. That said, the ServerName does not match the certificate CN - change it to www.example.com. Restart apache.
4
1
6,580
2012-03-01T09:21:42.070
api_errors
serverfault.com
7,721
Assertions and Outputting Specific URLs
Here's what I've done so far. [CODE] The problem is, this test returns false. It does not find the meta data. Any idea why?
You can match your text, if it is false, you can save the url. Try following: [CODE] Hope you get the idea.
1
1
134
2014-02-04T15:55:18.873
data_quality
sqa.stackexchange.com
481,084
EC2 servers are slower than local machine
We have been trying to do some performance benchmarking for our webapp written using python that uses mongodb heavily and we have found the following. We tried using 1st Gen Extra Large ec2 servers with 8 ecu's and 15 GB memory The python on ec2 servers is at least 30% slower than the local machine The disk I/O is extr...
There are a number of factors for EC2 machines to be slow. Disks are not attached directly to the instance. Instead the ebs volumes are large network disks and whatever you write to them is sent across the network to these disks. Now usually the latency is quite low but, of course, in comparison to something which is d...
2
7
3,222
2013-02-21T13:31:51.113
database_errors
serverfault.com
163,106
Procmail recipe to block spam faked from domain
I'm getting a high value of spam with the sender faked as my own email address i.e. from name@example.com Now all emails from my domain example.com are sent using a particular server. How can I setup a procmail filter (or other filter) to delete all emails purporting to originate from example.com which are not sent thr...
SPF, DKIM are designed to stop this sort of thing. You can block those mails at MTA level without accepting them using either SPF or DKIM
1
0
966
2010-07-22T16:16:13.207
infrastructure
serverfault.com
952,712
htaccess rule to protect against malicious post requests to WordPress index.php?pubkey=
I've been looking at a log created by a WordPress plugin called Bad Behavior and in it there are many entries from different IP addresses at various intervals during the day that are requesting the following URL: [CODE] The part of the URL that remains the same is [CODE] then the rest is different for the other entries...
The solution is indeed very similar to the question you linked to . However, one question I would ask is, do you need to specifically target POST requests? Why not any request (GET or POST) that starts [CODE] ? Or does this carry some other meaning in WordPress? In which case, you can do something like the following at...
1
0
2,874
2019-02-07T02:48:55.627
infrastructure
serverfault.com
658,844
Outbound mail queue lifetime standard
Description: I am trying to setup an email server with qmail and postfix as a MTAs. I am using postfix to handle my outbound mail flow traffic. Problem: I have set postfix [CODE] to 2d. If some mail gets rejected temporarily then postfix holds it for 2 days then generates bounce back. So users get an NDR (Bounce back) ...
If you want to get standard in your MTA, then you can read all links in the RFCs . As postfix built upon this standard, then default value in postfix configuration should be standard. In your case, [CODE] default value is 5d (5 days) , you can check it yourself via run [CODE] Above configuration derived from RFC 5231 s...
1
6
2,324
2015-01-12T07:44:57.830
infrastructure
serverfault.com
387,337
How do I get statistics from Exchange about the number of words typed in emails
Summary I am looking for a way to show staff that if they put just a small percentage of the time and effort they spend e-mailing each other into writing documentation, they would end up with a great support tool. I want to do this by getting word-count statistics out of MS Exchange 2007. Background I am helping an org...
I think this is what you are looking for. It's for Exchange 2010 though, not sure if there is that kind of functionality in exchange 2007.
4
0
266
2012-05-09T05:17:39.953
database_errors
serverfault.com
847,073
Kali linux on xenserver 6.5 is not displaying in VM console
I have a problem with installed Kali Linux 2016 x64 as VM on Xenserver 6.5. Installing done successful, but when system starting, it not displaying in VM console. I know, what system started, because ping on it working. But I can't do anything with it. Last message in console is " [CODE] " I can't connect to Kali Linux...
If it's the Kali Linux livecd/usb system, it should log you in as root by default if I recall right. Try typing [CODE] to get gnome's [CODE] prompt, then type [CODE] . I think the default root password is [CODE] . Then you can at least get in and try to find out what's wrong. If that doesn't work, try pressing enter a ...
1
1
822
2017-04-28T06:06:48.617
infrastructure
serverfault.com
590,804
FreeIPA client's sssd not using LDAPS
No matter what I try I am unable to get sssd to connect to my ldap/FreeIPA server via LDAPS/636. Checking debug shows that sssd is showing that it should be using 636... however packet captures and lsof show otherwise. Client is RHEL6.4, sssd 1.9.2, ipa-client 3.0.0 snippit of sssd logs [CODE] from sssd.conf [CODE]
SSSD communicates with FreeIPA via 389 port. However, it always sends the STARTTLS (see [CODE] option) command first ( related question on stackoverflow ) to initiate TLS/SSL connection - it does not perform authentication over unencrypted channel. Related info in [CODE] which also applies to IPA provider: [CODE]
1
3
3,077
2014-04-23T13:57:47.680
infrastructure
serverfault.com
485,976
Expiring content creates 404s with Nginx?
I have a virtual host that includes the following [CODE] block: [CODE] I've never had problems before, but I just added a feature that allows users to upload & store files. If the user uploads pdfs, txt files, etc. all is well and I can load the upload just fine via its URL. Images, on the other hand, not so much. 404s...
Your [CODE] location block catches requests for uploaded assets ending with those file extensions. Since nginx only executes a single location block at each level, your PHP script is not executed for these requests. nginx tries to serve the file directly from disk, but it can't find the uploaded asset. You need to make...
2
2
1,245
2013-03-08T13:42:43.967
infrastructure
serverfault.com
337,334
Can't see table partitions after adding PK
I'm on Azure SQL, adding monthly partitioning to some historical archive tables (creating a 2nd table with partitioning scheme/function and dumping the rows from the original into it). I was using a query to view all the partition numbers and date ranges and was able to see everything after inserting the data into the ...
problems When you create a clustered primary key on a heap, it transforms the original heap table that you created, by logically ordering the previously unordered structure by the key column(s) you've chosen, and replacing internal row identifiers (RIDs) with the index key columns. Sort of like how a caterpillar turns ...
1
1
30
2024-02-28T21:32:39.503
hadoop_errors
dba.stackexchange.com
973,176
How to skip failed sub-playbook and continue to next
Using playbook structure as, [CODE] If B is having some issues and failed, entire run fails. How do we skip the failed playbook(B) and start playbook C.
The only way how to gracefully exit a play is meta module [CODE] Put into the block the tasks that may have the issues and end the play in the rescue section if any of the tasks fails. To proceed to the next play clear errors with [CODE] . [CODE]
0
2
4,800
2019-06-27T22:30:45.923
infrastructure
serverfault.com
662,699
How to configure a Linux network namespace that allows UDP broadcast
I'm trying to use the [CODE] family of commands in Linux to create a network namespace in which I can run a program that uses UDP broadcast. I do not need access to the Internet, or any interface on the root namespace (but if that's what's necessary to get things working, it's definitely acceptable). Here's an example ...
This particular issue is solved by adding a default route to [CODE] : [CODE] Add that line immediately after the line that brings [CODE] up, and the script runs successfully.
2
1
6,683
2015-01-27T13:41:40.620
infrastructure
serverfault.com
821,359
Protect server ports from being used for attacks
I'm a programmer and I just know some basic & web development related thing like managing dns, adding websites to iis &... I have had two different servers and both of them was shut down because my server was used for launching attacks on other servers. I have always used very strong passwords I always have the windows...
That particular signature means that you have a misconfigured DNS server running. It allows anyone to run DNS Amplification Attack from your host. It doesn't matter how strong is your password in that case. Please follow this guide to configure your server correctly (or just disable DNS completely if you don't need it)...
-1
2
63
2016-12-17T23:21:13.677
database_errors
serverfault.com
836,138
Modem PPP: The modem is not responding to "AT" at ModemCmd: label
I am trying to install a 3g modem in pfsense, the huawei e173, but seems to be complicated to let it communicate through it. After the installation of the 3g modem in Interfaces/Interface Assignments/PPPs, http://prntscr.com/efkgfl http://prntscr.com/efkgjy i came back to Interfaces/Interface Assignments and added a ne...
After checking the compatible list ( https://doc.pfsense.org/index.php/Known_Working_3G-4G_Modems ) I notice that this version is not compatible. Just to let you all know, this version is a Huawei E173S-1 with an idProduct = 0x1c05 This idProduct was extracted through console with the following command line: [CODE]
0
0
3,326
2017-03-03T16:10:28.903
infrastructure
serverfault.com
595,467
Permission denied for root to change inotify max_user_watches, how solve this?
As root in a CentOs 6.4 server I got this error in an application: [CODE] But when I try to run the command as root I got permission denied. [CODE] Even if I edit the /etc/sysctl.conf I get permission denied: [CODE] How can I solve this?
I found the answer. This server is a VPS and it is running in a OpenVZ container and I'm not allowed to modify any kernel parameter of that container.
6
8
10,776
2014-05-16T05:16:27.460
infrastructure
serverfault.com
704,330
Unable to connect Google Compute Engine instance via SSH in browser
i am new to google cloud,i just deployed my first instance it was working fine till yesterday, i used last time to set email server using this tutorial email server , but now i am unable to connect ssh in browser and also with google cloud sdk in terminal. Website is running fine,I don't know what happened Please help ...
It looks like you've added [CODE] in [CODE] configuration file. To resolve this issue, you'll need to attach the boot disk of your VM instance to a healthy instance as the second disk. Mount it, edit the configuration file and fix the issue. Here are the steps you can take to resolve the issue: First of all, take a sna...
3
5
5,884
2015-07-08T13:34:37.773
infrastructure
serverfault.com
591,741
Apache HTTPS redirect from old domain to new HTTPS Domain
I used to have a domain which used to have a SSL Certificate, it still does have. But I have changed the domain, and I also have a new SSL Certificate for that new domain. I still have users accessing the site via [CODE] and it gives me the [CODE] But when they access the site via [CODE] it redirects them correctly to ...
You need to create a separate virtual host for your old domain, which has the certificate and private key of the old domain installed. Then you can put your rewrite rule there. Currently your virtual host will catch all domains, and therefore it presents the new domain certificate to clients connecting to the server, i...
0
3
11,779
2014-04-28T10:55:51.220
data_quality
serverfault.com
566,287
Foreman-Installer change certificate
Looking to install Foreman for a puppet deployment in my environment. I ran foreman-installer with defaults at first and didn't care for the SSL certificates and URLs being server01.example.com I would prefer it to use a cname like puppet.example.com which is more descriptive and a default puppet agent setting. It shou...
In my experience some installer settings can't be rewritten just by running foreman-installer again, the hostname for instance. You need to restore the installer file and when you run the installer again it will use the new data (hostname, fqdn,...) Overwrite /etc/foreman/foreman-installer-answers.yaml with the default...
2
0
2,202
2014-01-10T04:28:54.787
api_errors
serverfault.com
284,469
Possible Double-Hop issue. SSIS User changing to anonymous when making a remote query
I am attempting to execute a PowerShell script that uses Microsoft.SqlServer.Management.IntegrationServices in an Azure pipeline. The SSIS package is successfully invoked, however, the package fails when a remote connection is attempted. I feel this is double-hop related but can't figure out how to resolve the issue. B...
Either configure the directory to allow Kerberos Constrained Delegation to work or configure a SQL Agent job to run your package with a proxy (or the perhaps just Agent Service Account), and kick off the job with sp_start_job from your applciation.
2
3
1,906
2021-02-01T20:23:58.983
pipeline_ops
dba.stackexchange.com
982,407
Why use AWS API Gateway instead of naked Lambda?
This is more of a suggestion that I need. What is the need for API Gateway when we can directly execute Lambda functions from the apps? What are the missing pieces provided by API Gateway which we will otherwise miss while using naked lambda?
A few reasons why I've personally picked API Gateway over direct Lambda calls: Legacy The obvious cases are Legacy cases, those where you have some component that would require bringing in the AWS SDK to make a Lambda call. Sometimes bringing in the SDK is easy enough, but sometimes, for instance in pure C code, doing ...
0
0
283
2019-09-08T10:01:52.587
api_errors
serverfault.com
1,021,247
Routing issue for windows with multiple NICs
I have a routing issue on a windows box. The windows box has three NIC's with ip's: 10.87.6.27 (no gateway set) 10.87.11.27 (no gateway set) 10.87.60.51 (gateway = 10.87.60.254) When I contact a host in 10.87.11.0/24 (for example 10.87.11.212) the windows machine sends the traffic to 10.87.60.254, which routes it to 10...
This will get a bit technical and dry, sorry. This is because of the host model design in modern operating systems. Which you can change, but should only carefully consider. More on that later. What? A "host model" is a way of designing the internals of a TCP/IP stack. For example, when a unicast packet arrives at a ho...
4
1
3,229
2020-06-12T20:42:28.413
infrastructure
serverfault.com
20,493
Multidimensional regression in Keras
I'm trying to implement the One Hidden Layer Model presented in this article using Keras. This is my code: [CODE] X_train shape is (2140, 9216) y_train shape is (2140, 30) X_valid shape is (1783, 9216) But [CODE] shape is (1783,). I'm trying to understand why I'm not getting a (1783, 30) output. Am I missing something?
The problem is using [CODE] in: [CODE] this is designed to select the argmax (index of the maximum output) and choose it as the predicted class, for a classifier. You have a regression problem, and just want the raw output from the network. So instead you should call: [CODE]
1
3
5,477
2017-07-17T18:37:25.337
data_quality
datascience.stackexchange.com
29,284
How To Profile Stored Procedures
I am using SQL Server 2012 and was wondering how to profile stored procedures For instance can profiler capture each individual SQL statement in a stored procedure, what it is, and how long it takes to run etc? I am trying to diagnose merge replication stored procedures, and this must be captured a part of a full run o...
Kevin's answer describes what events to capture in SQL Trace/SQL Profiler. To expand on that answer a bit - [CODE] will show you each statement within a stored procedure being completed, as it sounds. Also if you are on a busy system and trying to diagnose a performance issue you should be careful with SQL Profiler. SQ...
31
29
74,153
2012-11-26T09:26:04.827
database_errors
dba.stackexchange.com
559,571
Install a root certificate in CentOS 6
I know it has been already asked, but despite many hours of research I couldn't find a working solution. I am trying to install my root certificate in my server, so internal service can bind to each other using SSL. What should know about the new root CA: Apache httpd and PHP OpenLDAP client Node.js For Apache I need a...
On my RHEL 6 box the [CODE] manual page has a pretty extensive explanation on how the system-wide CA certificates and associated trusts can/should be managed. More often then not configuration is application specific as the comments above indicate.
11
8
34,539
2013-12-05T21:34:03.277
infrastructure
serverfault.com
339,321
Is Microsoft discouraging the use of 'var' in C#? (VS2017)
I'm looking at the upcoming Visual Studio 2017 . Under the section titled Boosted Productivity there is an image of Visual Studio being used to replace all occurrences of var with the explicit type. The code apparently has several problems that Visual Studio has identified as 'needs fixing'. I wanted to double-check my...
TL;DR: no, Microsoft are not discouraging the use of 'var' in C#. The image is simply lacking context to explain why it's complaining. If you install VS2017 RC and open up the Options panel and go to [CODE] , you'll see a new section: [CODE] . This is similar to what ReSharper has offered for a while: a set of configur...
20
28
7,611
2017-01-03T01:15:18.560
api_errors
softwareengineering.stackexchange.com
985,119
LetsEncrypt/CertBot Installed, Chrome Still Not Secure
hopefully this is pretty open and shut, but here's the situation. I used LetsEncrypt and CertBot to set my website www.blueprintstats.com up with an SSL certificate. Now, I realized after the fact that I had to add blueprintstats.com (no www) separately, and made that change. All good! If you go to these links, you can...
I needed to redirect http traffic to https. Used this link to figure out how: https://kinsta.com/knowledgebase/redirect-http-to-https/
0
0
641
2019-09-21T15:20:12.443
api_errors
serverfault.com
183,145
Quota settings on Folder Level
I have requirement to enforce quota settings at folder level. And this enforcement is purely based on folders and not on groups. So I may have to monitor a folder /dev1/folder1 and its subfolder /dev1/folder1/folder1_2 separately. And I think quota package in linux purely works on groups or users at file system level. ...
Use LVM( http://tldp.org/HOWTO/LVM-HOWTO/ ) or: [CODE] df -h: [CODE]
0
1
434
2010-09-21T12:18:15.600
infrastructure
serverfault.com
1,081,161
Supermicro - XFS (snumbd6d): log I/O error -5
So, We have a supermicro server with the next hardware configuration: CentOS 7 Softraid (because this supermicro configuration didn't support hardware raid..) / Partition is RAID 10 and the rest one is RAID 1 CPU: 2x AMD EPYC 7402 RAM: 512Gb DDR4 (16x 32Gb) 10x 2TB Intel SSD DC P4510 NVMe. This server is a shared hosti...
Does the device node for the xfs volume, i.e. /dev/mdXAY, vanish when you get these errors. If a xfs filesystem is above 85% full, the volume has trouble committing the log metadata, and so the file system log (xfs, zfs, ext4, btrfs are all logging file systems, whereas ext2 is not) fills up with commits. That in turn ...
1
0
479
2021-10-20T15:42:58.657
infrastructure
serverfault.com
639,255
Is it possible to attach an Amazon RDS SSD volume to an EC2 instance?
It has been my understanding that you cannot attach an Amazon RDS SSD volume to an EC2 instance. I was under the impression that the RDS instances were a "managed" solution and that the volume was not accessible. I've searched the RDS Dashboard for a section on Volumes but don't see any options. However, the wording in...
As stated earlier in the linked document, "Amazon RDS does not allow direct host access to a DB instance via Telnet, Secure Shell (SSH), or Windows Remote Desktop Connection." It is assumed this includes direct storage volume access. The linked document details steps "To run a client-side trace on a SQL Server DB Insta...
0
0
1,089
2014-10-23T20:33:54.797
database_errors
serverfault.com
2,574
What are the benefits of using a different tablespace for a new user schema?
The tables in the schema are intended to be used read only and is only updated once each three month. My question refers to performance maintenance (backup/restore, export/import) What about the temporary tablespace, is it better to use a different one in this case?
If you are planning to drop schemas, having a separate tablespace which can also be dropped will reduce fragmentation in whatever tablespace you would otherwise use (unless you are using uniform extents, but that is not the default). RMAN recovery options are different as you would be able to do TSPITR on each individu...
4
9
4,244
2011-05-07T07:38:52.997
database_errors
dba.stackexchange.com
129,395
Postgres 9.5 xlog fills all disk space in replication setup with replication slot
I have replication set up on Postgresql 9.5 using replication slot. I have one primary and one slave machine, both Ubuntu 14.04 with a cluster called main that is in a directory other than the default. On both servers separately the database worked as expected (before setting up replication), including access from anot...
If you just want a hot standby master/slave setup, without, eg point in time recovery, just set archive_mode to false or remove it from your postgres.conf. Otherwise you'll have to come up with a storage plan so you have enough space which might involve setting up archive_command to copy the archive to a disk with enou...
3
0
2,537
2016-02-16T11:01:36.673
database_errors
dba.stackexchange.com
1,099,570
traceroute: sometimes routers don't respond and user sees timeouts
I'm an admin of small network and I'm investigating a problem my users complain about. The root of their complaints is [CODE] : sometimes routers along the path simply don't respond to [CODE] probes and users see timeouts (those [CODE] s in place of RTT). The network consists of a few Linux routers connected by Etherne...
As part of control plane policies on hops ICMP probes mostly are ignored. I would suggest a dedicated on prem smokeping instance if you want to have more thorough, in terms of metrics and trends, historical data.
2
0
1,072
2022-04-27T08:58:24.673
infrastructure
serverfault.com
90,282
MS Access - protecting backend file
I'm creating a split database in Access which has the backend on a drive accessible to all employees in the company at the moment. This isn't such a big deal at the moment because I'm still developing it and have a backup of the file. The main reason I did this was because the protected drive I intended to use didn't a...
What about setting special permissions to the folder containing the backend file. This page has a table that might help.
1
1
537
2015-01-27T10:57:41.283
database_errors
dba.stackexchange.com
814,759
RHEL/CENTOS SSH freezing randomly
I noticed following behavior on two of my CENTOS7 machines .. (it also happened on a RHEL6 too). Sometimes meanwhile i'm typing, my session freezes. What I've already figured out. Router shows connections as still active but as idle ping has recorded no errors while transmitting packets (server got pinged the whole log...
The configuration for this is in the file [CODE] . To send the signal every four minutes to remotehost, put the following in your [CODE] . [CODE] This is what I have in my [CODE] . To enable it for all hosts use: Host * ServerAliveInterval 240 Also make sure to run [CODE] , because the config file must not be world-rea...
0
0
2,537
2016-11-14T10:46:13.480
infrastructure
serverfault.com
224,638
Select fields from sub query , but I face field could not be bounded
[CODE] How can I select [CODE] from my sub query or any alternate solution which I can get the ClosedDate of [CODE] . Example. Account number: 123456 is closed at date 2018-12-06 (closed mean no balance) So in order to get the balance of this account number I need to look up this at 2018-12-05 (before 1 day this accoun...
Based on your comment to the question of whether multiple rows could come out of your subquery for a given account number, you indicated that was not possible. If that's true, I don't see why you can't simply [CODE] by account number against a derived result of your subquery. Not tested, but basically like this: [CODE]
0
1
52
2018-12-11T10:02:22.517
warehouse_errors
dba.stackexchange.com
319,602
How to treat validation of references between aggregates?
I'm struggling a bit with referencing between aggregates. Let's assume the aggregate [CODE] has a reference to the aggregate [CODE] . This reference will be modelled by having [CODE] . Now my problem is how far should I go to validate the creation of a [CODE] aggregate in [CODE] . Should I trust that the passed [CODE] ...
I could change the signature of the car factory to accept a complete driver entity. The factory would then just pick the id from that entity and build the car with that. Here the invariant is checked implicitly. This approach is appealing since you get the check for free and it's well aligned with the ubiquitous langua...
18
8
4,645
2016-05-27T10:37:52.010
data_quality
softwareengineering.stackexchange.com
16,229
Changing ANSI_NULLS setting on a table
Can we use the following query to update ANSI_NULLS option. [CODE] I am not sure what it is doing. I got this after searching for a solution. Our db is SQL server 2008. But while i am running this i got an error like this [CODE] Please give your suggestions
Updating system tables directly is unsupported and unsafe. The structure of them has changed since 2000 so the code you have won't work against them anyway. It is sometimes possible to use [CODE] to do this as a metadata only change however. A full worked example below. [CODE] One caveat however is that this does not a...
8
10
4,565
2012-04-09T09:08:22.857
database_errors
dba.stackexchange.com
829,298
My certificate issued by StartSSL is not accepted by my clients
I have requested a new class 1 server certificate from StartSSL today and it is working great with Apache and Dovecot + (Thunderbird/Outlook/OpenXChange ), but when I try to connect to the mail server using an Apple client (Mac/iPhone), I get an SSL error message. I have chained the 2_Server Certificate 1_Intermediate ...
Your problem is your CA: StartSSL. Their certificates are nothing but a waste of electrons since this year, because Apple, Google and Mozilla don't trust them anymore out of the box and for sure others will follow. https://linustechtips.com/main/topic/688200-apple-google-and-mozilla-disavow-wosign-and-startcom-certific...
18
39
3,145
2017-01-29T18:58:30.797
api_errors
serverfault.com
332,436
iptables port redirection on Ubuntu
I have an apache server running on 8100. When open http://localhost:8100 in browser we will see the site running correctly. Now I would like to direct all request on 80 to 8100 so that the site can be accessed without the port number. I am not familiar with iptables so I searched for solutions online. This is one of th...
Try: sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 127.0.0.1:8100
5
3
2,056
2011-11-05T20:47:45.370
infrastructure
serverfault.com
57,812
Neural style transfer loss fucntion
In the loss function between generated image and content image, we calculate the error taking the only activation of the corresponding channel but for calculation of loss function between style and generated image we calculate the gram matrix. But we should do the same for the loss function between content and generate...
Gram matrix is just a way to theoretically represent style. In the NST paper, the authors defined style as the correlation between different features of a certain layer, where the layer position (i.e. a deeper layer or a shallower layer) determines the local scale on which the style is matched. They mentioned that (the...
1
2
153
2019-08-19T17:09:24.073
data_quality
datascience.stackexchange.com
274,711
Covering Index Not Being Used Effectively
I have a unique composite index on three fields (hash, is_customer, user_id) in a table a. And queries that go like this: [CODE] When I do explain, it identifies properly as: [CODE] However the above query showed up in a slow query log as [CODE] and query time of over 5.083821 seconds. The dump of the explain is as fol...
[CODE] means that an index was "covering" and was used. Or, at least, when the [CODE] was run, it decided that. I have looked at thousands of [CODE] and slowlog entries. In theory, they always match. However, there is nothing that forces the [CODE] to actually match what happens and is recorded in the slowlog. I have s...
0
1
139
2020-08-31T17:04:57.090
database_errors
dba.stackexchange.com
356,634
delete lvm volume
Possible Duplicate: Increase Linux Partition dynamically? There are 3 lvm volume on Science Linux 6.1 x86. I want to remove one volume and give the amount to /dev/mapper/VolGroup-lv_root. [CODE] Please let me know these command work correctly.
You don't have to unmount your root filesystem (and in fact, you can't ). After you have resized the LV on which it resides, you can simply do [CODE] on it.
1
1
560
2012-02-03T18:04:11.683
data_quality
serverfault.com
94,117
Compare multiple values from a DataFrame against a single row from another
I'm trying to compare address values for inaccuracies, for example, given multiple records like: Reference Apartment Address PostCode AS097 NaN 00 Name Road BH1 4HB AS097 Flat 1 Building Name 00 Name Road BH1 4HB AS097 Flat 2 Building Name 00 Name Rd BH1 4HB AS097 Flat 3 Building Name 00 Name Road BH1 4HB AS097 Flat 4 ...
You can join [CODE] and [CODE] on [CODE] : [CODE] Note: The [CODE] would really depend on what you want in the joined table. You can then compare the values in the joined columns: [CODE]
0
0
4,316
2021-05-07T06:53:03.883
data_quality
datascience.stackexchange.com
944,340
How do I install OpenSSL (Windows)
I must be missing something exceptionally simple here, but for the life of me I cannot figure out what I should download/install to allow me to use OpenSSL on Windows. I need to combine a SSL certificate file ( [CODE] ) and a private key file into a single [CODE] for installation into IIS 8. Everything I've read has sa...
Chocolatey is a package manager for Windows. It can install OpenSSL: https://chocolatey.org/packages/OpenSSL.Light You can also try: https://wiki.openssl.org/index.php/Binaries You can also convert between certificates formats if needed. There's an example for converting PEM to PFX: https://www.sslsupportdesk.com/opens...
1
1
999
2018-12-14T10:47:42.907
api_errors
serverfault.com
459,662
Database server
Possible Duplicate: Can you help me with my capacity planning? I am going to make an Internet project. The sizes of it I don't know now. But I want to ask some questions. : 1. What database system is better? ( MySql or other ) 2. What is more useful CPU or RAM? 3. What server is better for database server ( i5-2500 (4 ...
Use whatever technologies you're most comfortable with. Figure out how your application demands resources, and then find the best fit for that based on what server solutions are available. There's no way to prove which is better in terms of processor specification without doing a side-by-side benchmark using your appli...
0
0
56
2012-12-20T12:55:25.693
data_quality
serverfault.com
303,007
JOINing tables when PK and FK differ
I'm new to SQL so this might be easy. I'm trying to join two tables where the first has a standard incremented primary key, but the second table has a column with values like "Ref:36736", where 36736 is the primary key from the first table but it's prefixed with "Ref:". How do I formulate the JOIN? :)
You can join on an expression: [CODE] However the better solution would be to fix your broken data model.
1
3
158
2021-11-23T08:54:22.937
warehouse_errors
dba.stackexchange.com
482,284
Hosting Cacti install from NginX
I have having an issue with hosting a Cacti installation from NginX. I have cacti installed under /usr/share/cacti and the below block in my default NginX config file. [CODE] The problem as I can see is that the NginX error log is full of errors that "/usr/share/cacti/cacti/index.php" doesn't exist. For now I have simp...
The [CODE] directive still results in the URL path being appended, so if the root is [CODE] and the path is [CODE] the directory is [CODE] . You can do one of two things: Since your URL path matches the directory, set the root one level higher: [CODE] Use the [CODE] directive, which doesn't append the URL path. This ap...
0
1
5,353
2013-02-25T15:55:22.133
infrastructure
serverfault.com
733,714
Disk IO Performance Difference -- Hyper-V / CSV -- Guest vs Host
I have two different [CODE] environments that use iSCSI to connect to their virtual machine storage. While the environments are different (one is all 10 GB whereas the other is mixed 1 GB / 10 GB, one is using an SSD array in RAID 6 whereas the other is RAID 10 spread across two arrays), the odd behavior I am seeing is...
After further research and some discussions with storage experts, the culprit has been found. Even though the host was running a single virtual machine and that vm was the only client reading and writing the storage array, the built-in Hyper-V storage and networking load balancer was kicking in and throttling back the ...
4
2
6,642
2015-11-03T22:44:18.980
api_errors
serverfault.com
261,882
When is it ok to use an Index Hint on a query in production code?
I've recently been working with decently sized tables (between 100s of million of rows to 10s of billions), and have ran into a few cases where I was forced into a corner to use query hints, which I used to think were bad practice but since learned they have their place (mostly the ForceSeek and ForceScan hints). I've ...
It's OK to do this only when a better solution doesn't exist. As David Browne - Microsoft commented: If you were writing in another language you wouldn't think twice about telling the computer not just what to do by how to do it. That's all an optimizer hint is.
0
3
1,086
2020-03-13T14:01:48.253
api_errors
dba.stackexchange.com
571,345
Connection two subnets behind routers
Task is very peculiar. I ask your help. Do you have any ideas on this subject. We have: 1.First device: |Internet| -> |ASUS RT-N16(firmware dd-wrt) 1| -> |Server base on Ubuntu 1| 2.Second device: |Internet| -> |ASUS RT-N16(firmware dd-wrt) 2| -> |Server base on Ubuntu 2| Distance between them nearly 100-150 meters. Ta...
Little late to the party but still sharing a solution if it may help anyone You can use Ubuntu1 as controller without any VPn configuration. Just configure dd-wrt to do port forwarding for ports 8081,8080,8443,8880,8843,27117 to ubuntu1 Now using ssh add dd-rt1 1's IP as controller IP
2
1
469
2014-01-31T17:25:02.170
infrastructure
serverfault.com
128,496
How to deal with Users Needing to Enter Mixed Data Types in MS SQL Server
I have a form in a C# application that I can't change with a data table bound to a query. The user enters a mark for a student's task or 'A' for absent. However, the person who designed this had the underlying table as all varchars, when really it would be nice to have decimals for marks and char for 'A'. To this end, ...
The presence of an [CODE] trigger does not prevent SQL Server from validating the data-types of the [CODE] statement against the data-types of the target columns. The error message: Msg 245, Level 16, State 1, Line 70 Conversion failed when converting the varchar value 'A' to data type numeric. indicates that SQL Serve...
4
3
1,615
2016-02-07T02:15:14.387
data_quality
dba.stackexchange.com
218,182
Which is the most practical way to add functionality to this piece of code?
I'm writing an open source library which handles hexagonal grids. It mainly revolves around the [CODE] and the [CODE] class. There is a [CODE] class which builds the grid which contains [CODE] objects. What I'm trying to achieve is to enable the user to add arbitrary data to each [CODE] . The interface looks like this:...
For as ill-defined a problem as this, I prefer to write an actual application first, without particular reference to what the interface will be. Of course, you should think about what the interface will be as you go, but there's a single client so you're free to reorganize as necessary. When you start the second applic...
4
3
476
2013-11-12T00:24:25.233
api_errors
softwareengineering.stackexchange.com
1,135,930
openvpn split-tunneling for a blacklist
I want all my internet traffic to go through the vpn, except a few sites (e.g. so I can stream shows normally, but run other things through the vpn). My vpn provider gives me a .ovnp file. I should quickly mention I have fibromyalgia and can't think well. So I've blindly added verbatim somewhere in the middle kinda ran...
Hopefully it's not because those domains have multiple ips or something. — they definitely do. Also they might use DNS round-robin load balancing, which results in that answers to each individual DNS reply can differ substantially (not just order, but the whole set of IPs may differ), and they likely use geographically...
0
1
113
2023-07-06T21:20:17.603
infrastructure
serverfault.com
219,258
error code 3417 - after installing CU for SQL SERVER 2016 SP1
I am getting below error message after installing cumulative updates for SQL Server 2016 Sp1. The description for Event ID 7024 from source Service Control Manager cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or re...
I have started the sql server service from the command line using the trace flag /T902 FROM TRACE FLAGS 902 [CODE] If you encounter an error during script upgrade mode, it is recommended to contact Microsoft SQL Customer Service and Support (CSS) for further guidance. For more information, see this Microsoft Support ar...
1
1
2,300
2018-10-04T06:59:18.223
database_errors
dba.stackexchange.com
622,670
Apache redirect to parent folder
I have a server pointing to [CODE] I would like to redirect all requests from [CODE] to [CODE] I tried the following: [CODE] But it doesn't work. After spending several hours on it, I can't find where is the problem. Do you have any ideas? Thanks
You need to remove /mysite from the redirect-match. The redirect-match is relative to the document root. [CODE]
-3
1
1,100
2014-08-20T08:14:17.440
infrastructure
serverfault.com
6,912
Should I invest the time to change the column type from CHAR(36) to UUID?
I have a few million rows in my database already. I didn't know about the PostgreSQL UUID data type when I designed my schema. One of the tables has 16M rows (about 3.5M to 4 M records per shard), growing at about 500K records per day. I still have the luxury of taking the production system down for a few hours if requ...
I would consider changing to the UUID type. [CODE] takes 40 bytes, [CODE] takes 16, so you'll save 24 bytes per row, which for you will equate to 12 MB a day, 4 GB after a year. Plus indexes. Depending on what hardware you have, that isn't much, but it could be. And it adds up if you have more improvement opportunities...
15
13
3,459
2011-10-18T02:01:15.433
database_errors
dba.stackexchange.com
174,903
Emulate row count on 2 columns in Access
I have the following table in Access I have a number of lines where there are duplicates when you filter on the first and second column. I need to remove these duplicates. The best way I found is to use [CODE] . I want to emulate the equivalent of this Postgres query in Microsoft Access: [CODE] I had a look on the inte...
A "triangular" self-join and group by or - the equivalent - inline self-join and count should work (but I'm not really sure if it fails due to some Access restrictions): [CODE]
1
2
560
2017-05-30T12:43:02.863
data_quality
dba.stackexchange.com
994,998
Error - Enable or disable IAM database authentication for the DB Cluster(Mule4 rds connector aurora)
I have created the dbcluster using aws-cli. and i wanted to create db instance within the created cluster using mule 4 rds connector. and when i give the values DBcluster name : cluster-name DbInstance class : db.t2.small DB Instance Identifier : testdbinstance Engine : aurora it gives the below error: [CODE] but while...
What helped me: I have both [CODE] and [CODE] with option [CODE] . I removed this option from [CODE] and it helped
0
0
262
2019-12-10T08:45:45.090
api_errors
serverfault.com
1,666
Can I call SMO from pure T-SQL?
I know how to script a stored procedure using PowerShell and SMO: [CODE] But since I want to use the procedure text within a query, I wonder whether I can call SMO in some way within pure T-SQL. Must only run in development environment. BTW: A function returning the definition of a stored procedure with a given name wo...
You'd use the sp_OA% stored procs for this. Or CLR since SQL Server 2005. It can't be done via T-SQL directly because T-SQL is for data manipulation. So you have to use one of the 2 methods above. Unless you want to use xp_cmdshell to run a powershell script. This also brings up one limitation of T-SQL: how to get an o...
6
8
2,213
2011-03-10T13:32:33.877
database_errors
dba.stackexchange.com
36,285
Update Table A row if Table B row is changed
Is is anyhow possible to tell the database to execute a little script, if a row is changed in a table? Scenario: The database constantly monitoring Table B to see if rows are inserted, updated or deleted. If a row is inserted, updated or deleted: Update the row in Table A with the referring identifier. Setup: [CODE] Th...
I don't think you need to use a trigger for this at all. With an index on [CODE] (or if there is already a clustered index leading with [CODE] ), this query will get what you need, pretty efficiently, without having unnecessary maintenance happening all the time (even when no queries are running to calculate sums): [CO...
0
4
1,447
2013-03-08T22:08:10.787
pipeline_ops
dba.stackexchange.com
75,525
Diagnosing the error in a Postgresql to Redshift migration through psycopg2
I am running a job class that contains the following: A Postgresql connection that can issue SQL statements A Redshift connection that can do the same an S3 connection to function as an intermediary between the two The current process I am taking is dealing with the columns with redshifts differences on a per-case basi...
This is because you are querying a postgresql replica that doesn't allow queries to run for very long. Your only solution is to ask the database administrator to increase the query limit on that replica, or hit production instead.
3
2
1,153
2014-09-02T21:04:28.993
data_quality
dba.stackexchange.com
953,561
IPTABLES how to port forwarding out from 21 to 2100
I have a script that publishes files via FTP on another server, but the script only allows you to use port 21. On the destination server the only FTP port is 2100. Is possible use IPTABLES on source server, to forward output connections on port 21 to 2100? With this the script running on source server will try FTP on p...
You must work with nat redirects Example: [CODE]
0
0
432
2019-02-12T15:43:51.750
infrastructure
serverfault.com
161,815
Failure during 2 backup jobs for one database
I have 2 jobs for one database. One does a full backup every hour. The other one is a transaction log backup every 15 minutes. I've checked the job history. It shows some failures at 16:00. The detail is as follows: Does that mean that 2 jobs can't run at the same time? The error detail is: Message Executed as user: NT...
There are two possibilities that come to mind: 1. The full backup and the transaction log backup are trying to use the same file. 'D:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Backup\AdventureWorksLT_from_Azure.bak' Something else is locking the file i.e. tape backup I have had tape backups cause thi...
3
3
719
2017-01-20T21:38:50.250
database_errors
dba.stackexchange.com
701,084
Multiple SSL on NGINX with shared settings?
I have an NGINX development server. I have a large number of configuration directives which drive various features of the server. I want to be able to access the server via SSL. The problem is that I may access the server from different domain names. For example, inside my LAN I might use 192.168.1.100, but on the Inte...
Because SSL directives are only available in [CODE] or [CODE] contexts, you cannot work around having to write one block per certificate. You can, however, move the contents, which are always the same(?), to a different file. This file would then be [CODE] d in every block. So that’s almost like your envisioned solutio...
2
3
4,618
2015-06-23T19:09:19.717
api_errors
serverfault.com
853,291
Server alias not working on apache, ubuntu 14.04 server, Amazon AWS
I have a remote ubuntu server on Amazon AWS, and I am enabling a site using [CODE] . I have a conf file in my [CODE] My servername and server alias is laid out like this [CODE] I don't know why I can't access www.4techgroups.com while 4techgroups.com works. Could it be because it is a amazon AWS server.
Your domain [CODE] hasn't got DNS record about host [CODE] . Simply add it to your domain with same ip address as [CODE] has. Read documentation at Updating DNS Support for Your VPC
0
1
1,663
2017-05-31T21:41:05.200
infrastructure
serverfault.com
49,680
Automated Acceptance tests under specific contraints
This question is a follow up to my previous question , which was a bit general, so I shall be more specific with this one. I want to automate acceptance testing on a web application. Briefly, this application allows the user to create contracts for subscribers with two constraints: You cannot create more than one contr...
How about creating a bunch of virtual machine's with snapshots of the desired states, then automating your testing in these? VMware offers an API ( VIX ) for automating virtual machine operations.
1
1
241
2011-02-19T16:00:34.423
data_quality
softwareengineering.stackexchange.com
783,737
Explorer crashed on Windows 8 Deep Freeze will erase all my data if restarted and Task Manager is not coming up
How do I force explorer to restart without the task manager or Ctrl Alt del? Neither are responding to any input and Windows is just completely unresponsive. Deep Freeze (configured by admins) will remove any data once the device restarts and I have critical data on here that I will lose if I do not back it up somehow ...
I don't think there is any way to restart the explorer without task manager but you can log-off your user and login again can start the explorer.exe (in deep freeze it will only reboot if it is restarted or shutdown) so this may not cause you to loose your data. But take yagmoth555's comment as priority and ask your ad...
0
0
34
2016-06-13T21:22:38.790
infrastructure
serverfault.com
56,694
How to use Graph Neural Network to predict relationships between nodes with pytorch_geometric?
Let's say I have a partly connected graph that represents members of many unrelated communities. I would like to predict the possible friendships between members of the same community: on an sliding scale between 0 to 10 how likey would they like each other? I have some characteristics of them whether they are christia...
Seems the easiest way to do this in pytorch geometric is to use an autoencoder model. In the examples folder there is an autoencoder.py which demonstrates its use. The gist of it is that it takes in a single graph and tries to predict the links between the nodes (see recon_loss) from an encoded latent space that it lea...
8
1
3,648
2019-07-31T16:38:18.353
data_quality
datascience.stackexchange.com
306,012
SQL Install Fail - 2012 on Win11
Cannot use file 'C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\Template Data\master.mdf' because it was originally formatted with sector size 4096 and is now on a volume with sector size 32768. Move the file to a volume with a sector size that is the same as or smaller than the original sector size. Th...
Might be on to something here...I had to do some registry changes and now I can see: [CODE] I'm removing SQL Server and reinstalling, because after this, SQL Server still wouldn't start, but with different errors and honestly, I don't think it installed properly/fully the first go around anyway. This page has some info...
0
1
2,397
2022-01-12T20:43:00.007
database_errors
dba.stackexchange.com
745,721
What do I need to do to enable sFlow on my Cisco Nexus 9372PX?
I have a pair of Cisco Nexus 9372PX switches running NXOS version 7.0(3)I1(3). According to the link at http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/system_management/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_System_Management_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS...
It turns out that NXOS version 7.0(3)I1(3) does not offer sFlow. We need to upgrade to 7.0(3)I2(1) for that functionality.
1
0
1,644
2015-12-29T10:07:29.193
infrastructure
serverfault.com
522,208
Trouble with Google Apps Custom Domain SSL
I'm currently inside the 30-day free trial for Google Apps for business (billing set up, so will start non-free trial soon). I'm attempting to set up SSL for a custom domain for a Google App Engine app, but am a bit of a noob at this stuff and the files I've accumulated aren't accepted by the Apps submission form. I we...
This was answered by a friendly member of the community and then immediately deleted (not sure why...) but not before I spotted his answer and used it, to great effect :) [CODE] The above two commands produce private.pem and public.pem, which are accepted fine by Google Apps dashboard. Thankyou!
5
3
720
2013-07-10T11:09:39.723
bi_errors
serverfault.com
760,498
Connecting two ESXi servers via LAN
i have an issue with configuring two ESXi servers to communicate with each other. My configuration looks like this: 2 ESXi servers with 4-4 Ethernet ports. ETH01 on each server is used for internet (external) connection, and ETH04 ports are used to connect the servers together. The IP configuration looks like this: ESX...
Please check if your ETH04 port link is up. If you are inter-connecting your servers directly(not via switch), you need to use cross cable.
-2
0
659
2016-02-29T14:16:34.540
infrastructure
serverfault.com
351,546
Odd rsync issue - duplicating and uncompressing files
I have two servers: our production web server(freebsd) and a backup server(centos). The production server does mysql database dumps every 3 hours and compresses the dump file using bzip2. So we have a folder at /backups/dumps/ and the files are like database_dump-20120119_152100.bz2. On our backup server, we have a /Ba...
Looks like you are using the [CODE] switch with rsync, which equates to [CODE] , which includes recursive, links, file times, etc. On top of that, from the command you posted, it looks like you are calling out a path on the source side. So when using a path, with the [CODE] or [CODE] switch, rsync will synchronize all ...
1
1
235
2012-01-19T16:02:52.217
api_errors
serverfault.com
544,886
How to restore Linode to Vagrant VM?
I'm trying to set up a Linux development environment so I can safely make changes to my website without breaking the live site. Linode hosts my live site. A simple solution would be to host my development server on Linode as well, but I want to avoid doubling my hosting costs. The cheapest way I see is to use Vagrant o...
The reason why you couldn't log in as vagrant any more is because you backed up /etc which contains shadow . Since the shadow file from linode doesn't contain an entry for the vagrant user, it won't allow you to login with that credentials. You could log in using your linode user because the credentials are in the /etc...
3
1
1,944
2013-10-09T14:44:43.770
pipeline_ops
serverfault.com