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
230,195
executing a sh script from the cron
I have a test.sh script [CODE] when I execute the file as root from command line it works. [CODE] when I set it to crontab -e (is the root cron), is not working [CODE] What do I do wrong? Thanks
The enviroment for cron to run into is very very limited, try to always use full path for binaries. [CODE] This considers that your php binary is in /usr/bin/php, please change that appropiately if it's not the case Also try to add in top of your cron the MAILTO line in order to get a direct mail with any error that ca...
2
6
4,008
2011-02-02T15:11:14.697
infrastructure
serverfault.com
109,620
Do subjective features result to noise?
Suppose I have a dataset containing feature values I don't all agree with, as another person selected them. An example problem could be classifying 'good' or 'bad' music using subjective features, e.g., emotion. If an emotion feature of a particular sample has a value of 'sad,' whereas I think 'peaceful' is a much bett...
Welcome to datascience.stackexchange, One way to look at the subjectivity problem is a model per subjective scenario (in your case - per person). Then, each classification could use some kind of voting mechanism between all models' classifications. In that sense, using your friend's model on "yourself" would be more of...
1
0
58
2022-04-03T07:42:26.547
data_quality
datascience.stackexchange.com
446,607
Accessing apache Webserver Over local Network
I have installed Apache Web Server on an CentOS 6 machine and configured it to run listen on an IP X.X.X.X:8080 in httpd.conf file but it is not working when i tried to access the Web server from browser using http://x.x.x.x:8080
By default CentOS has most input ports closed in the firewall so you will almost certainly need to open port 8080 in your firewall [CODE] If this works then you need to save the state of the firewall [CODE]
-1
2
132
2012-11-08T06:48:48.553
infrastructure
serverfault.com
1,091,572
nginx reverse proxy with subpath
I built a web app that will listen on a port and handle HTTP requests. For example, if I run it locally at [CODE] . I can access it with [CODE] on my browser. I would like to deploy it on one of my servers, which is configured with [CODE] to handle all incoming requests (and TLS) and forward them to different applicati...
Try the following configuration [CODE]
4
1
14,215
2022-01-29T15:16:57.047
infrastructure
serverfault.com
819,845
OpenBSD 6.0 chrooted httpd with php 7.0 mail() works, but no mail goes out?
I started with a fresh install of OpenBSD 6.0 which has a chroot (/var/www) on their httpd server (not Apache). I installed PHP 7.0 and set up the php-fpm using the binary installs. In the web root there exists both sendmail and femail objects. I moved a website into place and php works very well and php queries the po...
I believe this to be solved in one of two ways: (1) You CAN solve this by installing an executable shell in the chroot so that the sendmail binary can run. If you do, even if you install it in a wrapper, you have increased the surface area for an attack and you may as well just drop the chroot. Wrappers can be re-wrapp...
0
0
1,646
2016-12-09T17:38:59.010
database_errors
serverfault.com
424,168
ELB Setup for SSL is not working for apache redirect
I have configured ELB with SSL certificate. Listener configuration for ELB is shown below -- 443 (HTTPS, Certificate: www.xyz.com) forwarding to 80 (HTTP), 80 (HTTP) forwarding to 80 (HTTP) Domain Registrar setup with Godaddy CNAME record entry www There is no entry for A-Name record with my domain xyz.com Apache .htac...
Try something like this better under the existing virtual host configuration directive: [CODE]
0
0
633
2012-09-04T13:47:06.543
api_errors
serverfault.com
1,053,778
Diagnosing a Linux routing issue: multiple external IPs and several internal subnets with multiple routing tables
This is my first post on stack exchange. First, I'd like to thank this community for over my computer engineering journey I have learned many things here. :) With this post I am mainly looking for direction of how to proceed in diagnosing and fixing my routing issue. This is by far the most complicated server setup I h...
Solved the issue a bit back. I was setting the MTU on the VPNs to 1492, when the tap interface was added to a network bridge that dropped the overall bridge MTU down to 1492 whilst the external internet interface was still at 1500. This would cause fragmentation which, some sites didn't like. But hey, I learned some tc...
0
0
336
2021-02-16T00:02:21.313
infrastructure
serverfault.com
478,254
ssh: connect to host 192.168.1.7 port 22: Connection refused
I get this error when ever I try to connect my desktop with another desktop using SSH, but I'm able to ping the other desktop successfully. [CODE] I can connect to remote server using SSH but I'm not able to connect within the local network. Please help me in this regards, Thanks in advance.
The Connection Refused message generally means there is nothing listening on the relevant port. Make sure that sshd is running.
-2
4
4,290
2013-02-13T06:24:05.353
api_errors
serverfault.com
776,819
upgrade Active directory 2003 to 2012R2 profile user
I have problem about profile user I have a Domain with 2 domain controller (both of them is 2003) and install new domain controller (windows 2012R2) some user in domain when login to domain all of data move to temporary folder then create new profile directory any body here which have similar problem and how can I solv...
You either have a corrupted profile, or the security settings on your profile are wrong. Before using any of the below fixes, I'd highly recommend you to take a backup of the machine in question to avoid losing data in case something went wrong. There is a lot of talk on the steps that you need to follow, to save time ...
1
0
43
2016-05-14T21:57:04.233
infrastructure
serverfault.com
772,808
Can't start docker on Ubuntu 14.04: Job failed to start
I'm trying to installed Docker on a Vagrantbox with Ubuntu 14.04 using the instructions on the official website ( Docker Docs ). The installation seemed to work, but afterwards I can't start the docker service using [CODE] it gives me the following error message: [CODE] If I try [CODE] then I get the following error me...
As mentioned by @brent the solution was looking into the logs at [CODE] , which showed that the --mtu parameter was empty. In my case it was dependent on a environment variable that wasn't set.
7
7
7,839
2016-04-25T17:45:50.813
pipeline_ops
serverfault.com
400,827
Netbeans mySQL Connection error
Hi everybody I'm new and I'm having some trouble with a connection with netbeans and mysql, I need a database online I created one at 000webhost.com but I think that something's wrong .... if any have some idea or other server I really need to connect a database from a server online with an app in netbeans... Please I'...
mySQL servers usually provide connection only for localhost or a local subnet for security reasons. Are you sure the server you are trying to connect is reachable from your IP address ?
0
2
837
2012-06-21T06:56:28.617
database_errors
serverfault.com
433,498
Windows Server: Do I really need servers in remote locations?
I have one main site with several servers an a 2008/2012 environment. I have 4 remote sites that are physically close (a few miles apart) and are all connected to the main site by 20meg fiber on a private network. At each of the remote locations I have a windows server that users log in to and where their files and app...
How much trust do you have in your WAN links? The answer to that question will determine whether or not you need to have servers in each location. If your business can survive with a WAN link down for a day or two, then you can probably get away with centralizing your servers and saving money. if your business will be ...
1
3
258
2012-09-30T23:00:15.787
infrastructure
serverfault.com
840,666
ZFS Creation Gives LVM Error
Attempting to create a ZFS Pool on an SDD But Keep running into various errors. lsblk Output for the drive is: [CODE] Command I use for ZFS creation: [CODE] Error I receive: [CODE] If I try [CODE] I get [CODE] I have also tried [CODE] With error [CODE] I am running Deiban 8.6 / Proxmox 4.4 I have also tried cfdisk /dev...
Try using [CODE] for the disk devices you'd rather surely want to have re-initialized; then reboot. BEWARE : incorrect use would severe reduce chances of data recovery. As a matter of finding out what is actual run-time use of [CODE] you can invoke [CODE] that would give out current mappings of the device-mapper.
1
2
1,500
2017-03-26T14:33:34.173
infrastructure
serverfault.com
650,224
How do I configure pfSense in a virtual machine as a firewall?
Here is my network: [CODE] OpenVPN server is configured as followed: IPv4 Tunnel Network : 192.168.10.0/24 IPv4 Local Network : 192.168.2.1/24 Client can connect to VPN with success And when I ping various machine, I saw this behavior: Client -> PING 192.168.2.1 OK Client -> PING 192.168.2.100 OK Client -> PING 192.168...
You need two network ports on VMware to use pfSense effectively as a virtual machine. vmnic0 - connect this to a separate vSwitch (named 'WAN'). vmnic1 - connect this to your existing vSwitch (rename it 'LAN'). This is the vSwitch serving the VMware management network. vSwitchA (named 'WAN') -- \pfSense (NIC vmnicX int...
0
0
1,296
2014-12-09T11:40:11.000
infrastructure
serverfault.com
320,207
optimization with subquery not working as expected
I have a MySQL InnoDB database. One table called [CODE] contains more than 300 million rows. Querying this table with [CODE] to other tables, with an [CODE] and offset/limit takes almost 4 minutes. I saw that creating a subquery could be more optimized. I tried to move from my initial query with [CODE] to an approach u...
Don't use [CODE] ; it often is poorly optimized. Switch to a [CODE] . [CODE] And have these indexes: [CODE] (I am hoping this will make the combined query as fast as the 2-query formulation, thereby making your question moot.) Part of the problem may be hauling around [CODE] for lots of rows, then sorting them, and fin...
0
0
100
2022-11-25T17:18:22.010
api_errors
dba.stackexchange.com
5,721
how to turn off delimiters in generated SQL scripts for data types in SQL Server Management Studio
We are a software engineering firm. We use SQL Server Management Studio (SSMS) to generate the few scripts we need to build and upgrade our databases. While it does an OK job, it bugs me that it insists on surrounding data types with []. So a column definition will be like: [CODE] while this just works, I don't like it...
I don't know of any setting which will do this in SSMS. Microsoft probably does it so that they don't need to check the data type name for special characters when generating the script (user defined data type names could have anything in them) so they just box everything. You could submit that as a feature request to t...
4
3
5,660
2011-09-13T20:44:43.563
database_errors
dba.stackexchange.com
444,965
HAProxy reqrep remove URI on backend request
real quick question regarding HAProxy reqrep. I am trying to rewrite/replace the request that gets sent to the backend. I have the following example domain and URIs, both sharing the same domain name, but different backend web server pools. [CODE] I want web1 to go to backend webfarm1, and web2 to go to webfarm2. Curre...
You have this: [CODE] I think you want this: [CODE] The difference being that the second one will work if the / after webN is omitted. In answer to your comment below, going in to detail about how the expressions above work is more effort than I can give. However, maybe this will help. Everything before /web1 is "captu...
31
30
54,482
2012-11-02T23:20:14.503
infrastructure
serverfault.com
299,134
Group by on three tables as one master table and two detail tables
I.tblOwnerDetails Ownerid ownername 1 Abc 2 Xyz 3 Pqr II.tblListMaster Listid Listname 1 List1 2 List2 III.tblListDetails Detailid Listid Ownerid 1 1 1 2 1 2 3 2 1 4 3 1 IV.tblTagMaster TagId Tagname 1 tag1 2 tag2 V.tblTagDetails Detailid Tagid Ownerid 1 1 1 2 1 2 3 2 1 4 3 1 Result i want as Ownerid Listcount Tagcount...
Based on the query you've tried so far, you're probably running into an issue with incorrect counts because you're joining two one-to-many tables on the many side of the relationship for both resulting in a many-to-many join. Instead, one way you can accomplish your goal is to roll up each table individually first as t...
-2
0
295
2021-09-06T14:47:00.437
warehouse_errors
dba.stackexchange.com
1,060,039
k8s nginx ingress returns randomly 502 error on load
we are using an nginx (1.15.8.1) as ingress controller on our k8s cluster (v.1.17), managed by rancher (2.5.7). This worked pretty fine so far, but now we set up a custom API pod that can be externally accessed via ingress. Now, doing some load testing of the API by firing request every second at the API randomly retur...
if you use the nginx ingress reverse proxy, it maybe the cause. Try to check in Configmap for [CODE] settings, and extend it to handle the [CODE] case. Also enable the [CODE] if the request that got 502 is POST, LOCK, PATCH, if it is safe for your app to do so. My guess: when the backend pod reach its load limit (or po...
5
4
11,445
2021-04-11T10:55:08.077
api_errors
serverfault.com
111,019
delete old 'Monitoring Agent' metrics and 'Automation Agent' Debug logs via scheduler
We use [CODE] [CODE] Our MMS DB use 15 GB of 150 GB available. We can't extend the volume. We don't use MMS for backup. We use mongodump on other node. Ops Manager Application Database This database contains application metadata used by the Ops Manager Application. The database stores: • Monitoring data collected from ...
[CODE] Looking in OpsManager Database , they use capped size collection to store the agent log , it seems we don't need to worry about the volume. If the collection confuse you is not capped size , you could try to schedule a job with crontab in Linux(just an example) to remove those records : [CODE] first 8 character ...
0
1
845
2015-08-14T08:19:33.900
database_errors
dba.stackexchange.com
788,672
Sending mail from inside docker container
I am completely new do Docker, and a total n00b to linux, so apologies if this sounds silly. I have gotten a docker system up and running on Digital Ocean, and its working nicely. I am using a pre-built Mirth Connect docker and this runs beautifully and I can do all sorts of cool things. One of the things I want my Mir...
You only need 25 outbound and you need to have a default mail software for the container. You do not need the port 25 mapped for outbound connections but you do need a default mail software installed in the container like postfix or sendmail .Just add it after you started the container, test if it works, then add it to...
7
5
40,979
2016-07-08T12:26:47.020
pipeline_ops
serverfault.com
1,117,302
How do I add a second virtual host to an Apache server config?
I have an Apache server running on an AWS EC2 instance. Currently, one virtual host is running successfully on the server, and I want to add a second virtual host / domain, but I can't figure out how to get it working. Anonymizing the data, here's the original information I added to [CODE] to get the first virtual host...
Honestly don't know what the deal is, but it just started working. Maybe it was a DNS propagation issue (not sure), but the config I listed in my original question started working.
0
0
275
2022-12-05T13:28:48.737
api_errors
serverfault.com
374,071
Do Microsoft Windows OS file versions contain ALL earlier hotfixes?
When viewing a Microsoft hotfix, the following wording is tripping me up. The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. Does this mean that for the appropriate operating system, ANY LATER version of the file in question will contain the fix...
I don't know if this answers your specific question...but I liked the question enough to research it out and found this: http://blogs.msdn.com/b/ntdebugging/archive/2008/10/21/windows-hotfixes-and-updates-how-do-they-work.aspx Specifically (in case the link goes dead): Installing a Hotfix By default, all components on ...
5
4
370
2012-03-27T18:23:56.897
infrastructure
serverfault.com
516,833
Filter incoming span feed to a single vlan
I have a span feed coming in on an un-addressed interface of a linux (centos) box. eth4. The span contains several vlans. I have an application which can grab packets from an interface promiscuously, but let's just say that the application isn't able to filter by vlan. What I'd like to figure out a way to do -- and how...
If I understand your goal correctly, you need to do two things: Create your VLAN interfaces for all the VLAN's coming in eth4 ( [CODE] adds a virtual interface eth4.345 which only would carry traffic from vlan 345) If you need to do this for more than one vlan but expose as a single interface, create a bridged interfac...
-1
2
115
2013-06-19T03:28:40.897
infrastructure
serverfault.com
336,918
Nginx forwarding requests to the wrong Apache/Plesk Virtual Host
[CODE] This is what I have in nginx/defaults.conf. The server is currently using Apache fine, and Plesk, which seems to manage vhosts on its own (somehow). Any requests to [CODE] work fine, but [CODE] uses an incorrect vhost. I'm not 100% sure how the vhost situation works with Plesk, but it was installed and the defau...
From the nginx docs on [CODE] : Note that the HTTP Host header is not forwarded, but is set based on the proxy_pass statement. This means your [CODE] line has no effect. The actual Host header passed to Apache will be [CODE] as per the [CODE] statement. I recommend this [CODE] section to proxy as you described: [CODE]
2
0
1,188
2011-12-02T05:50:53.113
infrastructure
serverfault.com
443,114
breach in my machine
Possible Duplicate: My server’s been hacked EMERGENCY Suddenly, ssh claims that the key on my server is changed. Even freenx doesn't accept my connections no more because of the changed key. Nothing important on it, anyway. But how do I verify if it was breached ? Thanks
It should be noted that there are other benign things that can cause this key change. For example, most SSH clients builds a cache over hostnames and fingerprints. I get this problem a lot in my job as it involves a lot of machines on the same IP (but on different networks), thus my ssh client only stores the IP and fi...
2
6
189
2012-10-28T10:12:41.420
data_quality
serverfault.com
446,691
Mapping a range of values to a single value
So I have this problem where a specific [CODE] enum value is to be mapped to a respective [CODE] enum value, The trick is there can be multiple [CODE] mapping to a single [CODE] enum. So for the following example: I have randomly chosen a max range of 3 [CODE] enum values mapping to a single [CODE] enum value. Each set...
By trying to encode mapping information into the representation of ValueA, you are just needlessly complicating stuff for yourself. Just write ValueA as you would if there was no mapping concern to ValueB and let the compiler optimize the mapping logic. For example: [CODE]
0
3
515
2023-07-21T18:19:21.980
api_errors
softwareengineering.stackexchange.com
22,571
Anti-spam measures for websites
What are anti-spam measure I should consider before launching my user content website? Some things I have considered: Silent JavaScript based CAPTCHA on the register page (I do not have an implementation) Validate emails by forcing a confirmation link/number Allow X amount of comments per 10 minutes and Y per 2 hours (...
Captchas, Stack Overflow/Server Fault combine these with rate-limiting well. Basically if you take too long to post a question, or edit to often, you have to enter a reCAPTCHA code. Askimet - basically a "global" Bayesian spam filter, you submit content (comments, usually) via their API, and it says if it considers the...
3
4
894
2009-06-09T13:26:07.313
data_quality
serverfault.com
405,465
Wrong version of PHP is used when called from a script
I apologize ahead of time if this question is really basic. My background is in Windows and I am being asked to maintain a RedHat Linux server that is in bad shape and is in production use. The issue is that the version of PHP is different when executed from a script in Apache vs. the command line. For example: From th...
Run [CODE] from CLI and add the path to the script so that you are running [CODE] . Should your user be so restricted to not be able to run which (that'd be seriously messed up): the user running the command line has a different environment and so a different [CODE] to what the user has. The [CODE] variable, if I remem...
1
0
2,590
2012-07-06T17:30:48.517
infrastructure
serverfault.com
836,017
How to export zpool from alternate disk slice?
I need some help in recovering ZFS pool. Here is scenerio. There are two disks - c0t0d0 - This is good disk. I cloned it from other server and boot server from this disk. c0t1d0 - This is original disk of this server, having errors. I am able to mount it on /mnt. So that I can copy required data from this to c0t0d0 Bel...
Not sure I completely follow what you're trying to accomplish, but the end goal seems to be to move a zpool from one system to another. The first warning is that you probably didn't issue a [CODE] on the drive from the other system. I'm perplexed that your pool is listing a mirror across c0t0d0s7 and itself (c0t0d0s7)....
-1
0
161
2017-03-03T06:26:39.210
infrastructure
serverfault.com
8,099
Classifying transactions as malicious
I have a big data set of fake transactions for a company. Each row contains the username, credit card number, time, device used, and amount of money in the transaction. I need to classify each transaction as either malicious or not malicious and I am lost for ideas on where to start. Doing it by hand would be silly. I ...
This problem is popularly called the " Credit Card Fraud Detection " There are several classification algorithms, which aim to tackle this problem. With the knowledge of the dataset you possess, the Decision Trees algorithm can be employed for detecting malicious transactions from the non-malicious ones. This paper is ...
6
10
1,208
2015-09-15T03:15:28.163
data_quality
datascience.stackexchange.com
615,470
Determining the cause of an unexpected server reboot
I've taken a look at this and it doesn't really help in my situation, although it does give some interesting background information. Basically, I logged into a Windows Server 2008R2 machine that I was using and left idle last night to find that the machine had unexpectedly rebooted (the reason I know this is because Wi...
I would first make sure that all logging is enabled. You should be able to find something in the event log referencing Kernel-Power. Under System, if the reboot was truly unexpected by the OS, event ID 41 should be logged. If this event is not present, try searching for ID 6006 (event logging service stopped). The item...
0
3
8,752
2014-07-25T12:46:22.733
database_errors
serverfault.com
762,694
Domain Administrator does not have permission to remove a folder
I am a Windows domain administrator, and on my Windows 7 machine I have a folder that is owned by another domain user. When I right click and attempt to delete, it tells me that I don't have permission. I logged out as myself and logged in as the domain administrator's account, attempted to delete, and again I am told ...
Why is this question downvoted? He asks why it works with Cygwin. I don't know exactly. My guess is, Cygwin has a clever trick to grant a group full control/modify by taking ownership to a specific file/folder prior to removing it. But, again, that's speculation from my point of view, studying source code is not one of...
0
1
1,853
2016-03-09T18:27:15.947
api_errors
serverfault.com
463,811
Git clone/pull across local network
I'm trying to clone/pull a repository in another PC using Ubuntu Quantal. I have done this on Windows before but I don't know what is the problem on ubuntu. I tried these: [CODE] Always I got: [CODE] or [CODE] More: The other PC has username and password Is not networking issue, I can access and ping it. I just install...
It depends on how you have your server configured to serve content. If over ssh: [CODE] or if a webserver is providing the content (http or https) [CODE] or if available via a file path: [CODE] or if the server is running the git daemon: [CODE]
20
28
61,505
2013-01-07T20:49:05.233
infrastructure
serverfault.com
941,886
Connect an AWS Lambda function triggered by API Gateway to Aurora Serverless MySQL database
I have an AWS Lambda function which is being successfully run via a HTTP request to an API Gateway. It returns a JSON response which I can see in my local web browser. Now I want it to gather data from an Aurora Serverless MySQL database which I have set up. I can access this database from a Cloud 9 environment. I can ...
The missing step is: In the VPC console / Security Groups, select the rds-launch-wizard group (the security group created when the Aurora Serverless cluster was created), choose the Inbound Rules tab and click edit. Add a rule. For type, choose MYSQL/Aurora (which selects TCP port 3306). For source, enter the CIDR for ...
2
1
1,817
2018-11-27T19:07:57.640
api_errors
serverfault.com
132,548
How to insert numerous data into temporary table?
I'm building a program which generates a T-SQL query in following form: [CODE] but the second [CODE] statement throws error: Msg 1087, Level 15, State 2, Line 1 Must declare the table variable "@In". What am I doing wrong?
You can use [CODE] : [CODE] With @In: [CODE] It will insert X rows all at once. GO is not needed. Variables declared before [CODE] don't exist anymore after [CODE] .
2
8
45,362
2016-03-17T15:46:41.303
warehouse_errors
dba.stackexchange.com
619,599
mysql dump file corrupted
I've been using the following command to dump my databases: [CODE] A full dump of the database is around 130 Gb , and takes about 10 hours to complete. After finishing a recent dump, I found that the gzip'ed file is corrupted: [CODE] AFAIK, the file has not been modified, nor has the [CODE] command been interrupted. Wh...
File corruption comes in many flavors or situations....I think you are right concerning possible disk corruption....if this is true, you should IMMEDIATELY restart your system, and force a full fsck so as to hopefully repair the damage to make a backup. Leaving things the way they are may cause other more serious damag...
0
1
1,398
2014-08-11T17:01:30.930
database_errors
serverfault.com
48,257
Which databases can have row and column level security based upon Active Directory?
I have various database types, Oracle 11g, MySQL 5, Sql Server 2012. I have direct access. I can have other databases if I need them such as PostgreSQL. What I'm doing is protecting data at the database and table level as opposed to the application level though I there will be some mixing. What I'm hoping to do is cont...
I can't speak for any of the others but as for as SQL Server goes there would be some setup involved but after that you can control security at some level from active directory. What you would do is create a series of roles (server and database level) and grant them the permissions needed. Then you would create AD grou...
0
2
1,155
2013-08-16T18:57:06.157
database_errors
dba.stackexchange.com
649,867
How can I use a rubygem in a puppet provider on debian stable?
I'm trying to use a puppet provider which requires a ruby gem . It's being run on Debian stable (wheezy), but I get the following error: [CODE] The problem seems to be that puppet is requiring ruby1.8 specifically. However, the version of rubygems installed is for ruby1.9.1. Therefore all the gems which get installed e...
A hacky solution to this is to hardcode the path of the required gem in ruby's load path. [CODE] This is bad for a number of reasons: Hardcodes version numbers Need to run puppet multiple times Need to log out and back in between puppet runs Solves the problem in the wrong layer of abstraction However, I've not found a...
0
0
209
2014-12-08T01:15:07.050
pipeline_ops
serverfault.com
279,215
Sync logins and Agent jobs across all replicas in Distributed Availability Group
I am using [CODE] stored proc to sync logins on replicas in Distributed Availability groups, but the database level permissions are not transferred due to database sync operation is going on.. Is there any way to sync all logins and permissions from global primary to forwarder and other replicas? Also, how to sync SQL ...
For Database level permissions: Maintain SID of the Login same across all replicas (SQL Instances). I think, you don't have to even maintain Login sync jo. Instead, create login using Registered Servers using following steps, as long as the SID remain same, the database permissions assigned in Primary replica would aut...
1
0
237
2020-11-05T01:41:04.553
warehouse_errors
dba.stackexchange.com
81,922
RandomizedSearchCV() not scoring all fits
I'm experiencing an issue with a RandomizedSearchCV grid that is not able to evaluate all of the fits. 50 of the 100 fits I'm calling do not get scored (score=nan), so I'm worried I'm wasting a bunch of time trying to run the gridsearch. I'm wondering how to troubleshoot this and haven't found anything in the past few ...
Some of your hyperparameter values aren't allowed ( [CODE] and [CODE] cannot be more than 1), so probably xgboost errors out and sklearn helpfully moves on to the next point, recording the score as NaN. Half of your values for [CODE] are disallowed, which supports seeing half of your scores as NaN; and that will happen...
0
2
794
2020-09-18T18:15:24.030
data_quality
datascience.stackexchange.com
232,113
How to determine the cost of index creation?
I have a table that I want to create an index on to improve the performance of a couple of [CODE] queries that use the table. How can I test whether the index has had any significant detrimental impact on DUI operations on the table? The table is a log table, so it is written to frequently. Is it a case of running a pa...
If you have a non-production environment, you could simulate your insert / update workload by running SQL Query Stress . Do that before adding the index to get a baseline, and then after to see how much slower it is, and whether that change is acceptable. In addition to additional overhead for your DUI operations, anot...
4
10
2,179
2019-03-14T10:37:36.767
warehouse_errors
dba.stackexchange.com
210,496
Is it common to run out of work towards the end of a sprint?
My current team operates under the Scrum approach to agile development. We do it properly, adhering to the guidelines and roles of a Scrum team, with a sprint length of 9 days and a team of 7. We go through the backlog in the grooming and planning meetings, estimating what we need to, negotiating with the product owner...
My team faces the same terrible problem: We always end up finishing our sprints ahead of schedule. All joking aside it can be an indicator that something is wrong with estimation or expectations: Are you consistently overestimating tasks and giving management a poor timeline of what to expect? Do you have more develope...
10
13
2,882
2013-09-04T20:39:47.967
api_errors
softwareengineering.stackexchange.com
1,043,115
how do i list all the perms of a pre defined role?
I see this crap in lots of google docs: They are doing a terrible job with documentation here. I want to create a custom role. custom roles dont support adding predefined roles and dont support wildcard permissions. I NEED to know ALL the perms of a predefined role is there a gcloud command for this? why is info so har...
Yes, there is an equivalent gcloud command and it is [CODE] . You can check its documentation here to find more options or parameters on the command. With regards to gcloud command for creating custom roles, you will need to use [CODE] . Here is a more detailed guide for this one.
0
0
242
2020-11-18T21:21:25.910
infrastructure
serverfault.com
24,504
Distributed VPN over Unreliable Networks
These two seem to be the closest to what I want: http://www.ntop.org/n2n/ OpenVPN with Quagga (OSPF) I will have servers behind routers/firewalls not in my control. Many may be ADSL or other budget connections. There may also be multi-layered NAT as there are nodes in China. I have control of the servers, and I can req...
I never used n2n so I can not comment on how well it would work. I have been part of a distributed VPN using OpenVPN and Quagga and I can tell you that it works extremely well and not very difficult to setup.
1
1
1,831
2009-06-12T04:08:07.020
infrastructure
serverfault.com
596,555
Timeout when connecting to Vagrant VM via hostname with port forwarding
I am trying to get a Vagrant VM setup that has been distributed to me (so I did not configure it myself). I have installed the VM using [CODE] successfully, but when I try to use a browser to hit the hostname I get a timeout. I have set the hostname in my hosts file too. Config in Vagrantfile: [CODE] Line in my hosts f...
First, you can't bind to ports below 1024 (on host) without root/sudo (and you shouldn't run Vagrant as root). I would assume you get some error/warning message from that, but maybe the [CODE] just binds to some non-privileged port. And as you already specify a [CODE] IP address for the machine, you don't even need any...
2
3
2,494
2014-05-16T16:25:59.053
infrastructure
serverfault.com
34,614
How should I model a binary-tree like data using Adjacency List?
I'm making a system where a user can recruit others, resulting in a binary tree model of users. I have decided to use Adjacency List to model the data but I have some doubts about the number of fields in a table. I made the users table, there are 24 fields including the node fields of a binary tree: [CODE] So my doubts...
If you set up an index over the binary-tree related fields, leaving the fields in the table should have more or less the same performance as if you had them into their own table with a full covering index (as PostgreSQL supports index-only scans as of v9.2). It probably isn't a bad idea to set up some tables with fille...
2
3
1,733
2013-02-12T18:03:44.980
warehouse_errors
dba.stackexchange.com
324,155
Complicated query that compares subselects
I have pretty hard query to write and I have no idea how to approach this. I also have no idea for my question title, so if someone has good idea how to describe my problem - please suggest it. I'm working on software for stock management and I need a query that will show all differences between "Expected groups" and "...
If you think of a Venn diagram, you are fetching the items that in one table and not the other? I see no advantage, and a significant performance disadvantage, in having that query the extra layer of [CODE] . [CODE] can be simplified to [CODE] I don't know if the [CODE] can be eliminated, but it can be sped up by chang...
1
1
33
2023-02-28T13:25:19.307
warehouse_errors
dba.stackexchange.com
290,017
VPN from ASA5505-Checkpoint failing after one hour
I have an IPsec site-site VPN set up and working, however I'm having problems once the connection has been established for over an hour. After an hour ASDM still thinks the VPN is connected and the connection duration continues to increment, however as soon as UI try to send data down it the tunnel gets torn down and r...
This is a common issue with Cisco + CP VPNs. Please check the SA Life Expiry settings for both sides, I believe it's 28800 seconds with Check Point and 86400 with Cisco (or the other way around)
0
2
13,903
2011-07-13T17:57:36.710
infrastructure
serverfault.com
1,088,121
systemctl restart httpd Failed to start The Apache HTTP Server httpd pid already running
Forgive the cross post from Stack Overflow but I realized this was probably the better location to ask. I recently rebuilt my server on AWS, upgrading from Amazon Linux to Amazon Linux 2, which like Linux 1 appears to be a fork of CentOS, now CentOS 7. My vhost config remains the same as the previous build while all th...
Although I searched alot I did not find answers that were given for other flavors of Linux. I came to the answer when I noticed that httpd was originally started with "apachectl" and I was trying to restart using "systemctl" and thought this might be the issue. When I searched for this I found many answers. This appear...
3
0
38,630
2021-12-23T20:59:51.077
infrastructure
serverfault.com
505,858
There is a point in using some virtualization technology just to one host?
Quick and dirty: there's a point to virtualise a server in a single host? Using an hypervisor. It would be better to just install the OS in bare metal or some features like the remote software KVM through a browser or software from the hypervisor, image management and some fancy extras will compensate the performance h...
Updates are faster (less downtime) and less dangerous if you can do them with a copy of the VM while the VM is running. You can have a very simple host configuration (fast updates here, too). All configuration complexity is in the VM. So if you have to change the bare metal this is easier. You can easily put a second V...
0
3
48
2013-05-08T02:39:09.247
infrastructure
serverfault.com
783,213
OpenVPN wont connect from android, TLS error
I have set up OpenVPN server and I am connecting it with no problem with my Fedora 23 computer using NetworkManager. Alas, when I try to connect from OpenVPN Connect application from Android, I get the server timeout. Loking at the server logs, this messge TLS Error: reading acknowledgement record from packet Is the on...
Ok, I managed to fix this. Problem is that server and client configuration files have to have same settings. I first had TLS on one side but not on other, then second problem is that I had comp-lzo on one side but not on other. Linux is working over network manager because there I also trifled with configuration files,...
0
1
3,808
2016-06-10T13:23:54.517
infrastructure
serverfault.com
1,074,290
Where is RabbitMQ config file, as its log shows "config file(s) : (none)"
I am new to RabbitMQ and have newly installed RabbitMQ 3.7.17 on a test virtual machine, it runs OK and I'm able to log in on its web interface. I'm looking at some unclear notes left by the previous engineer, mentioning some required configuration changes of [CODE] and [CODE] . Tentatively I think these items belong t...
Have a look in /etc/rabbitmq/ for a file similar to rabbitmq.conf. Could also be in /data/configuration/rabbitmq/rabbitmq.conf More info to be found i the docs https://www.rabbitmq.com/configure.html#config-file
1
0
2,687
2021-08-12T01:05:04.213
infrastructure
serverfault.com
599,113
Wireshark TCP Window Size Value
I am debugging an application with Wireshark and watching the TCP Window Size value shrink on one side of the communication. If the packet's TCP section shows a "Window size value: 1", does that mean the source's window size is 1 or the destination's window size is 1? I know one side is communicating faster than the ot...
The window size on packets from A to B indicate how much buffer space is available on A for receiving packets. So when B receives a packet with window size 1, it would tell B how many bytes it is allowed to send to A. A few details worth knowing about window size are: Window sizes can be scaled. The SYN packets at the ...
4
5
37,677
2014-05-28T14:07:50.153
infrastructure
serverfault.com
348,719
Modeling content management domain
The domain is more or less straightforward — I have an article (or rather several types of articles) that I want to edit and publish. Published article is exposed through an API to public. The thing I have a problem with is further editing of a published article. Versioning, revisions, etc. are irrelevant at the moment...
So the domain-driven-design answer is "go listen to your domain experts", and probe very carefully when they seem to be using the same word for two different ideas with different life cycles. No domain expert will say "We create a published article from this article" True, but you may hear them say we published this dr...
3
3
271
2017-05-10T19:48:29.527
api_errors
softwareengineering.stackexchange.com
408,298
networking and authentication
I installed a RADIUS server in my network (Windows 2008) and Active Directory which contains different users; I also have an access point (tp_Link) authenticated on RADIUS server. I am using Windows authentication. I cant authenticate laptops outside the domain to the wifi. How can i join this wifi from laptop outside ...
The error you're seeing is a result of the client you're trying to join not having the required certificates. Basically, before using certification-based authentication, your clients need a copy of the certificate(s) they'll use to authenticate. This is usually done by a GPO, and ideally a GPO that sets the wireless co...
-7
1
152
2012-07-16T21:48:38.817
api_errors
serverfault.com
262,572
Select into query, insert fails, but the table is created
I am using SQL Server 2016 and I tried to the following query. [CODE] This query is obviously in error. Because it does not convert. However, the temporary table (#tmp) is created even if the query fails. Why? I think this is by design, but I want to know why. PDW (parallel datawarehouse) does not create temporary tabl...
In autocommit mode, [CODE] executes 2 separate transactions. The first creates the table and the second loads the table. The table create will be committed even if the subsequent insert portion of the statement fails. In old versions of SQL Server, both operations were done in a single atomic transaction but this was n...
1
4
55
2020-03-24T05:27:51.383
database_errors
dba.stackexchange.com
500,381
Exchange: exporting and deleting items
How would I safely export data from Exchange 2010 mailboxes to PSTs using [CODE] and have the exported items deleted from the source mailbox? The Powershell cmdlet seems to be missing the [CODE] switch which has been part of the [CODE] cmdlet in Exchange 2007. Using [CODE] after the MailboxExportRequest has completed s...
Even so, Search-Mailbox is the way to go forward, please read the following two paraphrases from http://technet.microsoft.com/en-us/library/dd298173%28v=exchg.141%29.aspx : "The DeleteContent switch specifies that the messages returned by the search be permanently deleted from the source mailbox. When used with the Tar...
2
3
8,986
2013-04-17T22:26:54.760
infrastructure
serverfault.com
568,620
Configure Squid as an HTTPS forward proxy?
Here's some background about my problem: I have a web service running on Heroku, with a dynamic IP address. Static IPs on Heroku are not an option. I need to connect to an external web service which is behind a firewall. The people who operate the external web service will only open their firewall to a specific static ...
You can see how it's done in this small Docker image: yegor256/squid-proxy . The problem with your code is that the configuration goes after the [CODE] instruction. Just swap them and it all starts working.
11
2
58,933
2014-01-20T21:08:45.930
api_errors
serverfault.com
1,121,917
Active Directory with router as DHCP/DNS
I've got a small Windows server 2012 Essentials server at home. Apart from a device to study AD, it has been used as media server and as a backup server. I had it set up as recommended with DHCP and DNS on the domain controller. The server was running 24/7. Everything was fine. With energy prices sky high right now, an...
DNS and DHCP can be whereever you want. What's actually important is that your AD clients can resolve the domain DNS records properly, so your DNS server should forward AD related requests to your domain server. This may be done with for instance a forwarding configuration. I host AD environments where the DNS servers ...
-1
1
888
2023-02-03T23:06:35.140
api_errors
serverfault.com
15,504
Postgres synchronized backup - what's with the archive?
I am setting up a Postgres 9.1 master and a hot standby-server. I read the documentation but I'm not quite sure yet what I should do with my WAL files. Every commit is done on both servers before returning to the application, therefore archiving the WALs onto some third system seams useless. But image my hot backup ser...
Wal archive is useful for backup purposes. For example - you make full backup every day, and keep wal segments since last abckup, thanks to this you can always get database to any state that it was during the day (for example - just before someone did run: drop table users cascade;).
3
3
385
2012-03-24T12:09:40.677
database_errors
dba.stackexchange.com
331,803
Techniques for minimising number of function arguments
In Clean Code, it is written that "the ideal number of arguments for a function is zero". The reasons why are explained and make sense. What I'm after is techniques to refactor methods with 4 or more arguments to solve this issue. One way is to extract the arguments into a new class, but that would surely lead to an ex...
The most important thing to remember is that those are guidelines, not rules. There are cases where a method simply must take an argument. Think about the [CODE] method for numbers, for example. Or the [CODE] method for a collection. In fact, one might even argue that what it means to add two numbers is dependent on co...
17
19
14,917
2016-09-23T08:59:53.297
api_errors
softwareengineering.stackexchange.com
1,009,974
Apache2 authorization with database and authentication with certificate
My users have a certificate and can get access to my Apache 2.4 server, that's fine. They have access with their certificates to the whole site. But I want only certain users grant access to '/private'. How can I configure this. My first try: [CODE] The result is Internal Server error. In the apache error log: AH00632:...
I solved the problem myself, for anyone interested: [CODE] Apache replaces %s with SSL_CLIENT_S_DN_CN from the certificate.
0
0
578
2020-03-29T18:54:01.533
database_errors
serverfault.com
1,122,273
PS Stop-Process fails to stop a subprocess launched from cmd.exe
Preface: I've boiled down a problem I'm having to this simple reproduction, which admittedly looks pretty strange out of context. From powershell (PS), if I use [CODE] to start notepad and capture the process ID, I can kill it with [CODE] , no problem: [CODE] I can do the same with [CODE] , again without problem: [CODE...
First of all, thank you, your description above put me into the right direction for solving my problem. So I dug into your question: Why doesn't Stop-Process terminate the process in the same way as taskkill /PID ? I'm not sure, I can't find any documentation on it, but considering my testing it simply does not stop an...
2
2
629
2023-02-08T05:01:07.873
infrastructure
serverfault.com
930,401
Making an HTTP Request for an ADFS IP, Getting "There are no registered protocol handlers"
I am trying to use the passive requester protocol defined in http://docs.oasis-open.org/wsfed/federation/v1.2/ws-federation.html To do this, I am making the GET Request: curl -X GET -k -i ' https://DOMAIN_NAME/adfs/ls/?wa=wsignin1.0&wtsrealm=https://localhost:44366 ' However, this is giving a response with 200 rather t...
It appears you will get this error when the wtsrealm is setup up to a non-registered (in some way) website/resource.
0
0
2,229
2018-09-11T11:37:55.697
api_errors
serverfault.com
335,568
Full folder /wal
How can I efficiently delete thousands of WAL (Write-Ahead Logging) files in the /wal directory in a PostgreSQL database to free up disk space while ensuring the integrity of the database? -rw------- 1 postgres postgres 16777216 Feb 5 14:11 000000020000000B0000004D -rw------- 1 postgres postgres 16777216 Feb 6 03:13 00...
It looks like the archiver has a problem. Set [CODE] and restart PostgreSQL, then it will delete the WAL segments automatically after the next checkpoint. You can trigger a checkpoint with the [CODE] command if you don't want to wait. Never, ever, delete any files in [CODE] yourself.
0
2
89
2024-02-06T10:22:16.033
hadoop_errors
dba.stackexchange.com
759,793
Logstash output-http plugin error 500 when trying to send to slack webhook
I'm running a docker container with an ELK stack. Everythings working dandy and fine. I'd like to utilize the https://www.elastic.co/guide/en/logstash/current/plugins-outputs-http.html plugin. I install the plugin it: [CODE] [CODE] main logstash config file: [CODE] I've also tried changing the format in the http: [CODE...
Apparently logstash has issues with double quotes, I am surprised (and disappointed). Here is working code: [CODE]
3
3
3,681
2016-02-25T16:07:14.693
database_errors
serverfault.com
83,681
Setup error :Attempted to perform an unauthorized operation
Below is the detailed error message. I can't proceed with installation for the last one week. I've given full rights to registry keys that are associated to SQL Server but nothing has worked out. For the last one week no headway. ( Edit: Originally I posted that we were installing SQL Server version 2012 but that was a...
First you did a bit of mistake you are actually installing SQL Server 2008 R2 but in your question you have clearly in Bold written SQL Server 2012. Since you provided me 2008 r2 setup logs I would assume you did typo and you are installing SQL Server 2008 R2 so Please correct the question I found below in Systemconfig...
2
4
49,224
2014-11-26T09:56:47.733
api_errors
dba.stackexchange.com
189,534
SQL Server 2012 Transactional Replication Latency Warning Not Working
I have transactional replication setup on SQL Server 2012. I have the default alerts setup and they're working with the exception of the alert for latency. The alert for latency only fires when I have Replication Monitor open. Is this by design?
I discovered the job "Replication monitoring refresher for distribution" was disabled on the distributor. I enabled the job and started it. The alert appears to working correctly.
1
1
379
2017-10-27T21:19:02.323
database_errors
dba.stackexchange.com
19,459
Is there a way to setup a user to run SPs, but not access the underlying data tables?
We have two database instances on two separate server boxes that are linked. The website user needs to be able to run stored procedures on DatabaseA which query DatabaseB tables, however it should not be able to read directly from tables on DatabaseB. Is such a thing possible in Sql Server 2005? Simply creating a Store...
Couldn't you have procedure A run with [CODE] or [CODE] ? That way the rights of the caller don't have to transfer... Or, you can create a login on the remote server that only has the ability to execute the queries you want, and add an impersonation account to the existing linked server on Server A to have the local we...
6
4
1,377
2012-06-18T18:26:29.393
database_errors
dba.stackexchange.com
603,789
Outlook and exchange 2010 stalls email
User found an old pst file which is around 15GB and imported to his exchange mailbox. It imported fine. Outlook client starts syncing the emails to exchange. It stalls and then the user will need to reopen the client for it to sync again. The client doesn't crash and still continues to receive new emails but it just do...
Check for: Size limit on the user mailbox, either set at the database or mailbox level. Bandwidth limit between user and server. Consider: Disabling cached mode, to have just a "1 way" data stream at the moment, eg) user workstation > Exchange, rather than user workstation > Exchange > user .ost file Importing the pst ...
0
1
120
2014-06-09T09:07:44.430
infrastructure
serverfault.com
24,245
Failed Upgrade from SQL Server 2005 sp2 to SQL Server 2005 sp4
SQL Server Standard 2005 sp2 32bit running on Windows 2003 Standard 32bit service pack 2. I attempted a service pack upgrade from sp2 to sp4 using SQLServer2005SP4-KB2463332-x86-ENU.exe and received the following error: [CODE] The file d:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Install\DbEngine_hotfix_install....
Almost every time I've had an SP installation issue on a stand-alone server, it was because the resource database was moved or it was not in the same directory as the master database. Many articles I'm finding correlate your error to this exact conclusion including this one . I would start there and if you find it to b...
5
1
3,096
2012-09-13T10:05:36.440
database_errors
dba.stackexchange.com
1,037,187
iptables - "bad argument DROP" when run inside a FOR loop via ssh command
I am trying to add a list of ip addresses to an iptables chain on a remote server. If I ssh into the server and run the command it works as desired (I manually populate the array once I have ssh'd into the server for testing for this code, otherwise the array is populated on the local server): [CODE] But when I try run...
Escape the dollar sign ( [CODE] ) you wish to preserve using a backslash ( [CODE] ). If you use [CODE] This is what it looks on the remote server (on [CODE] ) - the [CODE] parameter is already evaluated (to nothing), hence the [CODE] compltaint from iptables: [CODE] But what you want it to look like is: [CODE] So you n...
0
0
1,129
2020-10-10T12:40:55.177
infrastructure
serverfault.com
612,021
LXC Container Networking
I just started to experiment with LXC containers. I was able to create a container and start it up but I cannot get dhcp to assign the container an IP address. If I assign a static address the container can ping the host IP but not outside the host IP. The host is CentOS 6.5 and the guest is Ubuntu 14.04LTS. I used the...
Try this: (source: http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge#No_traffic_gets_trough_.28except_ARP_and_STP.29 ) No traffic gets trough (except ARP and STP) Your kernel might have ethernet filtering (ebtables, bridge-nf, arptables) enabled, and traffic gets filtered. The easiest way to disab...
0
1
9,805
2014-07-11T20:29:41.110
pipeline_ops
serverfault.com
42,656
Queries regarding feature importance for categorical features
Queries regarding feature importance for categorical features: Context: I have almost 185 categorical features and these categorical features have either 2 or 3 or 8 or 1 or sometimes 4 categories, null's also. I need to select top 60 features for my model. I also understand that features needs to be selected based on ...
From what I understand, you have 185 features and out of them you want to choose the 80 most informative/ important? It really seems like the main focus of all algorithms for decision trees, which is how to decide which attribute is the best for a split? I suggest you do some reading in the context of decision trees. F...
1
1
114
2018-12-15T07:19:17.800
data_quality
datascience.stackexchange.com
115,059
MySQL Query causing high CPU and taking forever to execute
this below query takes a long time to execute in excess of 120 seconds, upon checking the explain plan it seems to be using using where, using temporary; using filesort . Since the application is a third party I do [CODE] I feel the query is poorly designed however as its a part of 3rd party software, dont have much co...
The two dependent subqueries seem to be identical?? Remove one. [CODE] Eh?? Remove one of them. [CODE] Ditto. Index on frk_itemStatus: [CODE] AND ((deadlineDate [CODE] can be deadly on performance. Consider using [CODE] : [CODE] together with [CODE] Ah. Perhaps the best idea came when I noticed [CODE] . Grouping by a u...
0
3
641
2015-09-15T11:21:46.100
database_errors
dba.stackexchange.com
105,076
Error trying to SET a field when two fields in different tables match
I am trying to set catid to 584 whenever the rows in the tables ykz2d_crmery_deals and ykz2d_maps_integration have the same company id using the following query: [CODE] I keep getting the following error: Failed to execute SQL : SQL UPDATE ykz2d_maps_integration SET catid = '584' WHERE ykz2d_crmery_deals.company_id = y...
UPDATE ykz2d_maps_integration , ykz2d_crmery_deals SET catid = '584' where ykz2d_crmery_deals.company_id = ykz2d_maps_integration.company_id ; The table must be listed in the update clause to avoi the error message
0
1
44
2015-06-24T21:27:40.277
warehouse_errors
dba.stackexchange.com
787,488
HAProxy: the ACL can't detect the client hostname
I configured an HAProxy server that should detect if the request comes from [CODE] and forward the request to the server on 10.0.x.x. If the request does not fulfill this condition, it will forward the request to a default web server on localhost. So, I'm using this configuration: [CODE] I tried to access to [CODE] , b...
Well, the solution was very simple: the HAProxy server was listening on the port 8080. So, the URL was [CODE] . Therefore, the host name was [CODE] , including the port number as part of the hostname. This fixed the problem: [CODE] Or, it could be solved with this: [CODE]
0
0
2,384
2016-07-01T22:24:40.650
infrastructure
serverfault.com
185,197
Is it possible to update all spatial index extents in one query?
I work for a county government and probably 95% of the data in the GIS database (running on Microsoft SQL Server 2014) is within the county area. I've noticed that in some of the data the extent of the spatial indices is too large and in a few cases too small, which is causing queries to run slower than they should. Qu...
This is generally the way that I tackle rebuilding spatial indexes in a consistent way. This assumes that your geometries are all in the same projection and have already been indexed. It will exclude the usual ESRI Geodatabase System tables. I avoid having ArcGIS create or maintain indexes. They never seem to get nice ...
0
1
347
2017-09-06T13:06:18.660
database_errors
dba.stackexchange.com
622,837
Blocking an SSDP Flood
I've been hosting game-servers since a long time and I keep updating my iptables firewall time and again to block most attacks. One of my game-server port is being flooded with "SSDP" requests and my game-server replies to that with a "disconnect" packet. Here is how the stream is established coming from Source Port 19...
I notice that what you are receiving looks like a reply package, not a request. So most likely this is an amplification type attack, where they send a small request to SSDP enabled devices on the net, but with your IP spoofed as originator. So when all these devices send their reply, you get 'em. As an added side effec...
0
2
5,045
2014-08-20T17:50:16.283
infrastructure
serverfault.com
290,562
How to encourage contributors to choose rebasing over merging?
Here's a chunk of commit messages from our repo. It's mercurial but I believe in this context git will be relevant as well: [CODE] See what's going on - each time user updates while goint to push and found that repo is outdated just merges. This creates informational noise and makes log reading less comfortable. Also, ...
Ask for meaningful commit messages The problem does not come from using merge commits instead of rebase in this particular case. It is the lack of meaningful commit messages. For example, without seeing your repository, this could very well be a merge commit: [CODE] But contrary to the other commits, this one has a cle...
3
4
276
2015-07-23T06:36:38.610
api_errors
softwareengineering.stackexchange.com
24,515
My master to slave replication stopped and is showing this error when I use SHOW SLAVE STATUS;
My master to slave replication stopped and is showing this error when I use SHOW SLAVE STATUS; | Waiting for master to send event | 172.16.10.37 | repl | 3306 | 60 | mysql-bin.000256 | 39420285 | mysqld-relay-bin.000091 | 527772829 | mysql-bin.000246 | Yes | No | asterisk | | | | | | 1032 | Could not execute Delete_row...
As the message states, the server attempted to delete a row from [CODE] . [CODE] because there's a replication event telling it that the row was deleted from the master and thus needs to be deleted from the slave... but the row in question does not exist on the slave. You could identify the data in the row using the my...
-2
1
6,263
2012-09-19T04:18:40.460
database_errors
dba.stackexchange.com
46,297
Create an API from EDA or ML outcome?
I have the following sample dataset (the actual dataset is over 10 million records) Passenger Trip 0 Mark London 1 Mike Girona 2 Michael Paris 3 Max Sydney 4 Martin Amsterdam 5 Martin Barcelona 6 Martin Barcelona 7 Mark London 8 Mark Paris 9 Martin New york 10 Max Sydney 11 Max Paris 12 Max Sydney ... ... ... And I wan...
What's the best way to expose the method (say in this case getNextPossibleDestByUser) as a API (pass customer name as input and get the destination as output) ? Use flask . Pretty easy to build an API . Whenever the API is being called , does that mean all the 10 million records gets processed each time ? Are there any...
0
2
115
2019-02-27T06:06:16.593
data_quality
datascience.stackexchange.com
81,696
Is .Net memory hungry?
A friend of mine told me that .NET Framework is memory hungry and he gave me an example that if I make an application (in .NET web forms) which will take 20 mb of your RAM, it will be actually wasting 1.5 MB This means that it will leak 15 mb for 200 MB application which is way too much. Is it true? Can anyone provide ...
.net utilizes a managed heap that exists in conjugation with the os memory functions built into windows. While the initial start up cost of the runtime can make the system look very memory intensive for large scale programs I have found it to not be that significant. You need to remember that the managed memory access ...
3
13
759
2011-06-05T15:14:59.887
api_errors
softwareengineering.stackexchange.com
233,033
How can I deal with a slow API in PHP?
I'm writing a public web app to get stock data from a magento store. I've accessed the data, but it turns out that i have to query each product individually for stock data. With thousands of items this is a resource hog and takes lots of time. This cannot be avoided. It's just how their API works and I have to do it th...
Taking Mike and Thorsten's comment - if this data is not time sensitive - you can create a cron job that will get these data and put it in your own SQL table and then have your App pull from it. Majority of good API calls typically have a pull all API request handler with a delimiter so that you can retrieve bulk data ...
1
1
1,897
2014-03-20T12:41:45.863
api_errors
softwareengineering.stackexchange.com
613,533
how to fix corrupt, not cleanly closed and upgrade needing tables in mysql
When I restart mysql server in Debian, I always have the below messages. How to make the messages disappear or fix the problem/corrupted tables? [CODE] The linux [CODE] shows [CODE]
do not follow the 1st answer it's a very bad issue. If you read the line correctly you will see there is NO problem cause not corrupt table or anything else can be found "Checking for corrupt, not cleanly closed and upgrade needing tables" so everything is ok.
7
12
60,399
2014-07-18T04:34:20.693
data_quality
serverfault.com
334,355
Reinstalling Default Website for Exchange 2010
The Default Website for Exchange 2010 on Windows SBS Server 2010 has been deleted (how and why is not important). Now, obviously, I cant access emails via OWA or via HTTP for people offsite. I can not figure out how to reinstall the default website to reinstall OWA and settings? I also can't log into Exchange Mangement...
Microsoft has an article summarizing the PowerShell cmdlets that can be used to recreate the client access virtual directories with links to the specific usage for each cmdlet. There's also a GUI option that they describe but since you're having trouble opening the Exchange Management Console that option probably won't...
2
3
9,287
2011-11-24T05:31:42.973
infrastructure
serverfault.com
223,556
InnoDB ibdata1 corrupted, innodb_force_recover not working
I think I have checked every post in the internet. Thing is my MySQL (MariaDB) won't come up and after much testing I have seen it is because of the InnoDB files. I have tried with different [CODE] and also with [CODE] , also with online tools and with every tut I have found. I'm pretty desperate at this point, so any ...
MDEV-13939 Page directory corruption: infimum not pointed appears to be a bug upstream that has some tips on recovery.
0
0
1,423
2018-11-27T15:07:09.997
database_errors
dba.stackexchange.com
44,360
predict future value in every one hour using (t+60 minutes) LSTM neural network in python
I have a data csv file including with three inputs and two output with time series. Here data took an every one hour one hour. So I need to predict my next future value at t+60 according to the previous input value and at that time period if having new input value using regression neural network. So I choose LSTM neura...
One option is to : Break data into constant-frequency observations (E.g.: Assume that g,p,c,out are same for all time periods between two observations). With this, you will get samples every N minutes. Training data will then be a set of [Last M observations till T, Observation for T + 60] This Train and test data can ...
2
0
1,368
2019-01-22T06:16:05.143
data_quality
datascience.stackexchange.com
951,332
Some Kubernetes traffic ignoring VLAN
I have a small Kubernetes cluster that I set up using [CODE] . My servers are connected via a VLAN, which my provider lets me add my servers into. The VLAN adds a network adapter ( [CODE] ), which I created a virtual adapter ( [CODE] ) on, that assigns each server an IP on my VLAN. The relevant [CODE] looks like this: ...
You can verify the incoming traffic to see if they have [CODE] tags by using [CODE] with the [CODE] option. This will show the details of the [CODE] header: [CODE] or [CODE]
0
0
326
2019-01-29T17:09:21.943
pipeline_ops
serverfault.com
884,231
WebDav: "The Parameter is Incorrect" will show on some folders that have "index.html"/"index.php"
I tried to set up a WebDAV connection for me to upload my works to the web server easily. This is the code that I have in [CODE] . [CODE] The whole connection works, including reading and writing. However when I try to go in some of the folders, that contains "index.php" / "index.html", Windows just show up an error me...
I recently had the same problem. For me, setting [CODE] in the WebDAV directory fixed that. Source: http://dimitar.me/upgrading-to-apache-2-4-will-prevent-webdav-listing-of-directories-containing-index-files/
0
0
676
2017-11-20T07:14:01.480
infrastructure
serverfault.com
398,905
How to achieve automatic roaming between two Cisco Aironet access points?
I have two Cisco Aironet 1141 access points covering an office; the access points are configured identically (each of them with two SIDs) and are fully working; they are standalone access points, not centrally managed ones. When a client devices moves between them, there is no automatic handover of the connection. It n...
Client roaming should work just fine... in theory. Just double-check and make sure the SSIDs, passwords, and authentication types are identical on each AP. Is the issue occuring on all clients, or have you only tested one so far? Perhaps that client needs updated network drivers.
7
2
11,645
2012-06-14T19:25:33.960
infrastructure
serverfault.com
564,914
Parenthesis around value with Augeas lens?
How can I create an Augeas lens that will allow me to extract a value field from within a parenthesis? Background: I'm starting an Augeas lens for managing NASL files for OpenVAS. I need to be able to make a few arbitrary changes to a large number of these scripts. NASLs contains a lot of key and value pairs which are ...
The first question you need to ask is which tree you want to produce from this string. How do you expect Augeas to parse [CODE] . Assuming you want to parse it as, e.g.: [CODE] you could parse this with the following code: [CODE] You can add a unit test to check that it works: [CODE] and launching [CODE] on the file: [...
0
2
109
2014-01-03T17:58:47.050
infrastructure
serverfault.com
6,301
Performance testing tool suggestion for Node.js and ASP.NET
I am to carry out performance tests on Node.js and .NET. This is an academic exercise. I have searched on Google for performance testing tools, and I came across such tools as HP LoadRunner , and Apache JMeter . What is the best tool I can use to perform these tests (that is, load testing, stress testing, CPU usage, et...
Welcome to SQA, ykel. If you are focused on testing an HTTP server, the language/framework used to build the server doesn't particularly matter, so the same tool should work with both. (Possible exception: some server frameworks make it easy to collect and server up performance metrics, e.g. queue lengths or some kind ...
3
1
1,039
2013-06-21T18:43:34.577
data_quality
sqa.stackexchange.com
13,767
How to deal with situation where LSTM fails to learn (constantly makes the same incorrect prediction)
I am trying to use LSTM neural networks in order to make a song composer. Basically this is based of a text generator (tries to predict the next character after looking at a sequence of characters) but instead of characters, it tried to predict notes. Structure of the midi file that serves as the input (Y-axis is the p...
Try using a recurrent neural network and use a RProp minus trainer without weight backtracking (aka RProp-, cf. [Igel&Huesken, Neurocomputing 50, 2003]) and without ponderation, ie. all training samples have the same weight.
1
0
4,146
2016-08-30T16:09:05.360
pipeline_ops
datascience.stackexchange.com
770,908
Bad search filter - postfix, OpenLDAP, Saslauthd
I am trying to setup a mail server on Debian Jessie and have come across a problem that's doing my head in. When trying to access OpenLDAP through saslauthd via the command [CODE] I get the following error in auth.log [CODE] But if i use the same search filter used in saslauthd.conf using the following ldapsearch it wo...
I was getting the same error today. By using wireshark to examine the conversation between saslauthd and the LDAP server I was able to determine two things that might help you... The default filter appears to be (uid=%u) The query from saslauthd restricts the size of the result to 1 record. In my case a search for uid=...
2
0
1,158
2016-04-17T00:42:57.717
infrastructure
serverfault.com
684,026
xen vm memory missing
I have an Ubuntu server with 320GB of memory. I installed xen 4.4.1 on this machine, and run 2 Debian VMs. One with +-100GB of memory and one with +-200GB. Everything worked fine, until at one point, the 200GB machine reports having only 128GB. The server had an uptime of 144 days and somewhere within the last month, m...
I had the same problem with debian wheezy 7.8 guests. Installing the wheezy backports kernel 3.16.0-0.bpo.4-amd64 solved it for me. This was on the guests, I didn't touch the host. Add the following line to /etc/apt/sources.list: [CODE] Then run [CODE]
2
2
1,067
2015-04-20T12:17:26.230
infrastructure
serverfault.com
335,242
Network GURUs - IP failover combined with load-balancing..... Is there such software? Is it possible?
I've been playing around with high-availability solutions for a few days and so far I find UCARP very useful for IP fail-overing. It's dead simple and does the job. I was thinking about taking it a step further: If the router which connects the two nodes sharing the same IP would send ALL packets to both nodes (at all ...
I do not think this is possible / feasible. It definitely does not exist because it is of very limited use compared starndard aproaches. The main issue i see is tracking every ip packet in and out and syncing the state of the IP stack on both computers in a way that is fully transparent for the application. How do you ...
0
1
291
2011-11-27T20:04:23.213
database_errors
serverfault.com
132,194
Virtualmin Configuration
I am trying to get Virtualmin setup and have reached a point where my noobish sysadmin skills aren't getting the job done. This is the message I get now when I try and refresh the configuration of Virtualmin. BIND DNS server is installed, and the system is configured to use it. However, the default master DNS server XX...
I've created a Virtualmin ServerTemplate on RightScale. You can use it to fire up a Virtualmin server on Amazon EC2. If you want to play around with Virtualmin first without having to wrestle with its configuration, it might be just what you need.
-1
1
2,226
2010-04-14T02:52:30.173
infrastructure
serverfault.com
422,824
Daemons refuse to start on Ubuntu 8.04 Server
We have a system that's already running on several instances of Ubuntu 8.04 Desktop. It has a bunch of daemons (one of them is PHP based) that need to be running and they work on our existing Ubuntu desktop instances. Now, I'm trying to set up the same system on an Ubuntu 8.04 Server box, but I get this: [CODE] The fil...
What's the first line of the file [CODE] ? Does the first line reference the php interpreter like this? [CODE] In that case, does [CODE] exist?
0
2
58
2012-08-30T10:46:05.087
infrastructure
serverfault.com