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
469,409
VPN Certificate Validation Failed (OpenVPN)? CentOS & Ubuntu
Ok, I'll explain what I did... and at the end is the queston. THank you! To set up my VPN I installed OpenVPN in server and client machines. On server I configured the cert Authority in the file /etc/openvpn/easy-rsa/vars editing this lines: [CODE] then i generated the cert: cd /etc/openvpn/easy-rsa/ ln -s openssl-1.0....
Your error message indicates that the client doesn't like the certificate presented by the server for whatever reason. Send a copy of server.crt to the client, then run: [CODE] If it's OK, you should get something that looks like [CODE] Basically, you want to check that the server.crt is properly signed by the ca.crt f...
1
5
13,005
2013-01-15T19:57:14.670
data_quality
serverfault.com
115,172
Encoding for Linear Regression
I have a [CODE] file with salary information and other columns. I am trying to transform some of these columns into proper values, for a [CODE] and a [CODE] , or some other. Because, I don't think that the [CODE] in [CODE] can handle the data bits as is . Data: 607 records Numerical columns: year , salary , salary in U...
Comments: You should not group any data even if there are duplicates, because this would distort the distribution of the values (features and target). [CODE] should be used on the categorical features only. Even with those, mind that values which are too rare should usually be removed or replaced in order to avoid over...
1
2
388
2022-10-12T18:20:20.070
data_quality
datascience.stackexchange.com
259,805
purging files using forfiles in a batch and running that batch from a task
I have the following in a batch file that works perfectly fine if I execute it manually but fails when I tell the task scheduler to run it. forfiles -s -m *.bak -d -4 -c "cmd /c del @path" This batch file deletes any BAK files in the same directory as the batch that are older than 4 days. I couldn't get the forfiles to...
Did you try using [CODE] to search a different path? [CODE] Also, compare the user account that the task runs as with security settings on the SQL backups folder.
0
1
3,605
2011-04-14T19:29:45.217
database_errors
serverfault.com
1,010,780
Citrix Netscaler Gateway does not work in macOS Catalina 10.15.4
Under macOS version 10.15.3, the extensions used by Citrix Netscaler Gateway could be allowed in the Security settings under System Preferences, as suggested in this serverfault answer . However, macOS 10.15.4 does not offer such a possibility , making the latest version of Netscaler Gateway not work. This can be seen ...
I had the same issue and contacted Citrix support, and they advised to use the Citrix SSO app for MacOS instead. It must be downloaded from the MacOS app store. So far it seems to be working OK for me. Hope that helps! David
1
3
2,653
2020-04-03T17:25:15.560
infrastructure
serverfault.com
934,337
Sudo: cannot setup user to avoid being asked for password
I run: [CODE] and set this line for my user [CODE] however, I am still asked a password when I run a [CODE] command how can I setup the user so that the password is not asked? This is the full /etc/sudoers file: [CODE]
Probably after your line there's something like: [CODE] or similar (i.e. [CODE] , [CODE] , etc.). Because: When multiple entries match for a user, they are applied in order. Where there are multiple matches, the last match is used (which is not necessarily the most specific match). you should put [CODE] after any group...
1
4
1,704
2018-10-07T09:57:24.097
infrastructure
serverfault.com
532,969
Two NIC card with same mac address
Yes its very strange but I have got two server having same H/W MAC address. The issue which I am facing is again very strange. 1st Server is normal windows server. 2nd Server is running KVM on Cenots. Have provisioned 4 Virtual Machine on this physical host. Issue: Windows server is accessible without any issue. Centos...
If your NICs have the same MAC addresses, you should stop fiddling around with workarounds and return them to the manufacturer as defective. Get proper replacements and continue on as normal. Incur the downtime once instead of the recurring issues that will pop up from continuing to hack together a "solution."
2
12
3,546
2013-08-22T14:32:30.073
infrastructure
serverfault.com
498,915
Best way to recover mysql from a "chmod -R 777 /" with databases intact
Question: What is the best way to recover mysql (or worst case: migrate away) from a "chmod -R 777 /" with databases intact? System: Ubuntu 12.04 LTS MySQL 5.5.24 64 bit Amazon EC2 cloud server. Background: Attempting to recover (or at least recover data from) a system which had this done to it: [CODE] No point in worr...
Create new VM instance with the same OS version and MySQL version. Start MySQL on new VM - it should create MySQL data directory with no databases but with correct permissions - in [CODE] . Stop MySQL on new VM. Copy [CODE] on new VM to [CODE] . Copy [CODE] from old VM to [CODE] on new VM. Manually set permission on al...
2
3
10,865
2013-04-12T21:13:32.283
database_errors
serverfault.com
1,119,443
Is there a remote filesystem for Linux that's encrypted and resilient against unreliable servers?
I've tried many combinations of sshfs and SMB, with autofs and/or manual mounts in a Cron job, and I've always had freezing / long timeout issues when servers become unavailable or weren't available to begin with. My requirements are as follows: Have an actual, proper mount point in the local filesystem (i.e., not some...
Remote connection encryption and shared filesystem are two different things and there is no point to make mix them. Set up a Wireguard tunnel between your client and server, and run any remote filesystem on top of that. Look closely into the mount options of your operating system on the client side so that you can tune...
1
1
123
2023-01-04T16:01:39.093
infrastructure
serverfault.com
480,119
Perfmon counters for monitoring general IIS/MSSQL server activity
I have a virtual server with a hosting company so CPU and RAM are limited. I need to watch load/performance over time to know when to upgrade the server. The site runs multiple ASP.NET apps as well as PHP apps, all with MSSQL backend. What are some vital perfmon counters to use to monitor a standard IIS/MSSQL web serve...
You should start with the basics; Processor Information\% Processor Time Memory\Pages/Sec Memory: Available Bytes Logical Disk*\Average Disk Queue Length SQL Server:Buffer Manager\Buffer cache hit ratio If you went with the default install of non-express SQL then it will take all the memory it can and starve IIS/Window...
0
3
2,828
2013-02-19T01:57:59.570
pipeline_ops
serverfault.com
583,320
benefits of iptables on VPS?
Say I have a well updated Linux VPS serving HTTP content on port 80 using apache. What would I gain by enabling IPtables? I can see no obscurity gains since the machine has a port open. Also, since the machine is constantly updated I trust the kernel to securely handle incoming requests on closed ports, which is reason...
You are correct in the sense that enabling incoming traffic filtering when you only have a well-known port/service open and the rest closed doesn't buy you much in principle. That said, there are reasons to set up a firewall: Consistency/policy; now if you/somebody is testing or by mistake open a service, you'll have t...
0
1
306
2014-03-20T06:49:07.670
infrastructure
serverfault.com
299,577
What is a readable algorithm for selecting a random buyer based on what they purchased?
I am working on a giveaway algorithm to select a customer based on what they purchased: If they purchase item 1, they gain 1 point. If they purchase item 2, they gain 2 points. If they purchase item 3, they gain 3 points. Each purchase in the database has an [CODE] , which I can use to figure out which item they have p...
You need to use the running total to perform the same summation you described, but in SQL. Assuming you have tables like this: [CODE] The query you're looking for is something like this: [CODE] I create the running total by joining the table on itself, using ID for ordering. [CODE] makes sure that running total only ta...
0
2
474
2015-10-11T07:34:44.613
database_errors
softwareengineering.stackexchange.com
1,023,036
Can't work with VMSS because of nonexistent apllication gateway
Can't do anything with VMSS because it has pointer to nonexistent application gateway (in VMSS/Networking/NetworkInterface/LocadBalancing ): When I try to restart/upgrade VVMS I get an error. Error example: Failed to restart virtual machine scale set 'aks-agentpool-xxxxx-vmss'. Error: Resource DEV-GATEWAY referenced by...
Problems is solved, steps: Create new AG in same dev group and region and name as AG in VMSS (in my case DevGroup, West europe, "dev-gateway") Add backend pool to this AG (name should be same as name in VMSS/Networking/NetworkInterface/LocadBalancing, in my case name is "aks") Add empty backend pool with one rule (it c...
0
0
419
2020-06-26T13:40:10.203
infrastructure
serverfault.com
442,910
What is the difference between trunk based development and gitflow?
I've been searching the internet and I can't find a good question to this so I believe I have a fundamental misunderstanding on what they are. Is the only difference that in gitflow there is a release branch for your "not released yet" changes and in trunk based there isn't one? Because for either method, you are going...
On a "mechanical" level, you seem to understand both version control strategies and their branching models. I believe there is a philosophical component that you are missing. The main philosophy with trunk-based development is to always have your main branch in a releasable state. This implies several things, some of w...
5
8
7,063
2022-12-19T12:19:59.853
api_errors
softwareengineering.stackexchange.com
236,261
Which one of these answers regarding functions is incorrect?
So while I've been doing some lengthy compiles I decided to take the C++ general test on ODesk and came across this question. If I'm not mistaken, given the wording (or lack thereof) all of these could be true. a. [CODE] b. Well, [CODE] would be incorrect semantically but functions can obviously have [CODE] return type...
This whole question is dodgy. The question statement implies the possibility of multiple choices, while the radio buttons indicates a single choice. Furthermore, b is pretty suspect, as void functions don't return anything. D is also questionable, for as far as I know, you cannot have an array of functions. Sure, you c...
18
22
2,674
2014-04-17T23:51:33.197
api_errors
softwareengineering.stackexchange.com
674,974
How to mount a VirtualBox shared folder?
What is the procedure for mounting a VirtualBox shared folder in Linux? I tried variations of the following mount command but I keep getting [CODE] or other mount errors. [CODE]
For VirtualBox with a Linux guest, these are the steps to mount a shared folder: Use the VirtualBox host's application, VirtualBox Manager, to specify host folders to share. Make sure VirtualBox Guest Additions are installed in the VirtualBox guest. In the Linux guest, the mount command should show a line that the shar...
58
28
953,188
2014-03-12T04:25:58.183
infrastructure
serverfault.com
240,725
Percona Server 5.6.40 restarting with singal 11
We recently migrated our mysql to new hardware and it was running in slave mode for 15 days. We made it the master 11th June. On 13th June it restarted for the first time with signal 11. Stacktrace from 1st segfault - 04:32:32 UTC - mysqld got signal 11 ; This could be because you hit a bug. It is also possible that th...
Because each event had a problem with /usr/sbin/mysqld(pfs_spawn_thread, consider for your my.cnf [mysqld] section [CODE] Disclaimer: I am the content author of website mentioned in view profile, Network profile and you will find free Utility Scripts available and contact information.
2
0
289
2019-06-17T14:36:01.960
data_quality
dba.stackexchange.com
1,110,265
AD Connect Synchronisation Update existing users instead of creating new ones
I'm currently setting up AD Connect to sync my users from AD to AzureAD and vice versa. Maybe I did not understand the whole thing correctly. In my mind, what AD Conncet Synchronisation does is the following (very basic explanation, I know it does a lot more, but in essence): If I add or change something on a User in l...
Let's start with the basics: If I add or change something on a Azure AD User, it updates the corresponding local AD user. This is completely wrong. Synchronization is one-way, from AD to AAD. There are some exceptions (notably password writeback), but in the vast majority of cases you'll find that you just cannot make ...
0
0
1,597
2022-09-08T14:56:59.653
data_quality
serverfault.com
170,837
Unable to run job - Subquery returned more than 1 value
I'm trying to run the following job: [CODE] But end up getting the error: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, , >= or when the subquery is used as an expression. [SQLSTATE 21000] (Error 512). The step failed. I have this working on another sql server but on this s...
You must have more than one availability group in the instance as mentioned in the comment. I suggest you use this function. Details here . [CODE] You can run this query to check how many Availability group you have. [CODE]
2
3
1,191
2017-04-12T14:50:32.370
database_errors
dba.stackexchange.com
278,591
What is happening under the hood in MySQL 8 when I apply an auto-increment primary key to a raw table of data?
I'm responsible for a production database using MySQL 8.0 (InnoDb engine). It has become necessary for me to archive data from a sizeable table (the data file takes up approximately 50% of the hard drive). I've learnt that using [CODE] is a horrible idea and doesn't necessarily reduce disk space usage. My new strategy ...
Do you care whether you keep the old auto_increment values ? Your process seems to loose them. Did you have [CODE] turned on when the original table was created? If yes, there are easier ways; if no, you need to dump all tables and rebuild. Be sure to have [CODE] What percentage of the table is to be kept? If it is a s...
0
1
347
2020-10-23T21:01:52.547
database_errors
dba.stackexchange.com
127,160
Slow query performance on large table with no unique keys
I have a table that has approximately 20 million records and I'm having a very hard time improving the performance of the following query. It's taking well over a minute to run. [CODE] Here is the table structure: [CODE] The server has 3.5 GB RAM and is running MariaDB 10.1. One issue with this table is that it does no...
[CODE] is unnecessary when you also have [CODE] . So get rid of these: [CODE] [CODE] is a good index, but [CODE] is better; removing [CODE] will encourage the optimizer to use [CODE] . How many rows are in the result set? Was the [CODE] slow during one of those big [CODE] + [CODE] times? If so, please provide those que...
1
1
1,067
2016-01-24T19:58:50.817
database_errors
dba.stackexchange.com
187,984
Strange UPDATE results in presence of merge replication
I have an MS Access front-end database that accesses an SQL Server backend. This (as far as we can tell) works flawlessly when the SQL Server database is not replicated. Once we introduce replication (from SQL Server Standard on a proper server as the publisher to SQL Server Express on a laptop as a subscriber using Me...
So, it turns out (after hours upon hours of trying to diagnose this) that I did have an issue caused by merge replication being enabled, just not the one I thought I did. For future reference, here's what was happening... I had a DAO query written in VBA that looked like this: [CODE] The issue was the [CODE] line, whic...
3
0
347
2017-10-08T23:50:18.760
database_errors
dba.stackexchange.com
469,826
event 36887 schannel The following fatal alert was received: 10
I get this error (event 36887 schannel The following fatal alert was received: 10.) on my Exchange Server 2010, running on Windows Server 2008 x64 Enterprise. Here are the details of the error: [CODE] I can't find much related to that specific error. Help, please! Thank you!
Do you receive these errors often (on a schedule?) and are you aware of any actual problems that coincide with their appearance? I ask because it's likely that you can safely ignore them or suppress them. The error itself is quite vague. According to the TLS Protocol RFC, this indicates an unexpected message . Alert me...
5
5
52,254
2013-01-16T23:26:26.930
infrastructure
serverfault.com
96,302
LEFT JOIN DEFAULT NULL VALUE
My query can be simplified as this: [CODE] Which [CODE] is from [CODE] . Sometimes there are 3 columns in [CODE] , sometimes 10 columns depend on filtering. What I want is something like this: [CODE] I already looked here and here and the answer is always repeating per column. But I can't apply [CODE] per column becaus...
If I understand correctly, you could have any number of columns from table [CODE] ? If so, then you will need to dynamically create the SQL statement (by querying the [CODE] table) and just wrap each column from [CODE] in your [CODE] .
1
1
5,589
2015-03-26T09:20:53.140
data_quality
dba.stackexchange.com
474,913
What is the best storage for active-active linux cluster?
We have a cluster with multiple ubuntu machines which are connected to a shared SAN storage. Initially we were using OCFS2 as file system but we were hit with so many issues and we couldn't find proper documentation or support therefore we have decided to move to another cluster system. So can you suggest the best syst...
We're using gfs2 these days and are pretty happy with it.
0
1
1,141
2013-02-03T08:34:13.963
infrastructure
serverfault.com
20,872
why SELECT is still using CPU & DiskIO?
I have a large database, about 30GB. In order to delete some data from a table (most data is in this table, simply because the # of rows), I have to do delete in batch. However, if I delete in too many batches, the system becomes very slow. So, what we do is: query the # of data that will be deleted, then use 1/10 of t...
If there's a where clause in the DELETE statement, then the server still needs to perform a SELECT internally to the DELETE statement in order to delete only the specified records. You may be only issuing one DELETE statement, but that's a convenience of SQL. The Database software has to process that statement and perf...
4
3
247
2012-07-13T16:54:29.450
warehouse_errors
dba.stackexchange.com
128,764
Can SQL Server 2016 validate JSON on insert?
Currently SQL Server 2016 CTP 3 and later releases support NVARCHAR(max) fields with JSON content. However since the type NVARCHAR(max) is totally free-form, there is no constraint on these fields. Can I declare a constraint that prevents insertion of a non-null value that is not valid JSON?
Add this constraint: [CODE]
4
4
748
2016-02-09T19:09:00.783
database_errors
dba.stackexchange.com
482,673
Two application pools or root virtual directories under one site
This might sound like a very dumb question, so let me first say what I want to achieve and then proceed to my question on how I'd envision something like this working. I am trying to achieve completely seamless deploys of our web application to IIS (without interrupting users or active connections). The way I envision ...
What you are proposing sounds like an A/B swap. ( Similar question ) There is an IIS addin tool from Microsoft called Web Deploy . It will automate most of the physical motions of deploying updated code into IIS but your requirement of seamless migration is the sticky point because you have long-running file-transactio...
4
1
2,636
2013-02-19T21:37:08.753
pipeline_ops
serverfault.com
1,135,448
How to install Crypt::SSLeay from cpan?
I'm trying to install perl module [CODE] from cpan running in Debian-based environment (in order to rule out dependency issues, I'm running this in official perl Docker container), but I getting error while cpan installer doing tests: [CODE] I've tried this with different perl versions (docker run perl:5.36, perl:5.30,...
Instead of installing via CPAN, you could use apt-get. Like this.. [CODE]
1
1
826
2023-07-02T10:40:59.207
pipeline_ops
serverfault.com
123,527
"Permission denied" & 500 Internal Server error serving PHP in Mac OS X
I just set up Web Sharing in Mac OS X 10.6.2 Snow Leopard. My httpd.conf allows for ExecCGI and all the folders and files are readable by everybody and even writable by me. I put a simple Hello World in index.php in my base site and yet my apache error log shows this: [Thu Mar 18 00:17:18 2010] [error] [client 192.168....
It looks like you may have attempted to configure php to be executed as CGI. This would not be the ideal implementation for PHP. Do you have handlers specified? Is the module loaded? If you provide your full configuration file, we should be able to help you.
1
1
2,285
2010-03-17T19:00:16.473
api_errors
serverfault.com
363,446
Checking for duplicate with encrypted values
I was hoping to get some advice on a particular task I'm trying to implement. I have a table that stores secure data and returns an ID as a representation of that data. No problems there. So, for example, if a social security number is stored, the code generates a representational ID and stores the social security numb...
Since a single hash of a value can be vulnerable to brute force, rainbow tables, or even a simple Google search for the hashed value and using a unique salt per row does not allow you to perform keyed lookups you should consider if a keyed hash (HMAC) would meet your needs. With an HMAC you need to generate a cryptogra...
4
1
781
2018-01-04T18:35:49.947
data_quality
softwareengineering.stackexchange.com
760,127
Safe guarding against a duplicated test AD environment if it connects back to production
This article explains what a simple process it is to duplicate your AD setup to a test machine in an isolated network. The obvious issue is that if the isolated forest gets physically connected to production your screwed. How can I safe guard against this? Is it possible to change the forest root domain name? Would tha...
[CODE] Not simply because you connected it to your production network, but because it would have the same ip address as your production DC and the production domain clients would find it via DNS and attempt to communicate with it. All DC communication starts with DNS. A domain client finds a DC by querying DNS for the ...
0
2
203
2016-02-26T20:04:23.170
data_quality
serverfault.com
203,808
Join a domain without adopting group policy... through registry permissions?
As a local machine admin, is it possible to join a domain but still block group policy from being applied? I'm thinking it should be possible to remove all write access to the registry under, for example, [CODE] but in practice not sure how well this would work, or if there is already a better way to do so. Let it be v...
If you don't want certain policies applied to a machine then you should use the existing filtering options for GPOs. Trying to hack your way around the way the system works is not the correct way to achieve what you want.
-4
8
2,467
2010-11-19T06:41:37.320
infrastructure
serverfault.com
176,841
Rollback any duplicate occured using EXIT HANDLER
I have two INT integer types in my table that set as UNIQUE KEY to avoid duplication. I wanted to rollback any duplicate occur in my stored procedure using EXIT HANDLER. [CODE] I inserted manually in my curriculum table for the test. [CODE] FIRST TRY: Calling my first stored procedure that has duplicate it automaticall...
Your question is very unclear, but maybe I can still answer it. Why is it unclear? What do you mean with duplicates exactly? In your examples there are none. A duplicate relates to rows. You would have a duplicate in your table, if you tried to insert (1, 1) two times. If you meant with duplicates, that it shouldn't be...
-1
0
286
2017-06-21T04:25:39.810
data_quality
dba.stackexchange.com
160,808
What is the best approach to managing daily excel flat file imports into SQL Server with varying column counts per file?
I need to load excel spreadsheets into SQL Server on a daily basis. It's simple enough to build an SSIS package but, the problem that I am facing is that the client is allowed to name the column headers as they like, the columns can be in whatever order, and the column count can vary. This is the best I can get the own...
You're dealing with unstructured data here I'm afraid and honestly, I feel your pain. I don't think you can really do what you want in SSIS - partially because it will expect your Excel format to be fixed. Even if you get it fixed, with SSIS and Excel - you'll have problems with how it guesses the metadata types for co...
4
4
556
2017-01-12T02:08:51.690
database_errors
dba.stackexchange.com
296,207
How do you make structural changes to Azure SQL Server DBs when you don't have access via SSMS?
We're no longer allowed to have access to UAT/PROD environments via SSMS at my organization. The way our deployment process works is tied to git pushes. So when you push to the DEV branch, the DEV web code and DB is updated, likewise when pushing to the QA branch and the UAT branch. The problem is when there is a struc...
It's really depending on the nature of changes you are facing but an example could be a schema change on a table. You can do this: Rename the existing table in a pre-deployment script. With the existing table missing the table in focus will be created as per the new schema definition. In a post-deployment script copy f...
0
0
127
2021-07-26T23:50:18.597
pipeline_ops
dba.stackexchange.com
258,201
Question marks instead Hebrew characters after mysql dump and import
I tried to migrate my AWS RDS instance from Aurora to MySQL. I created a dump file from the Aurora and imported it into the MySQL instance. Both instances have the same characters set. [CODE] In the original DB the Hebrew letters appears as black diamonds (Converted to Hebrew in app side). After the migration to the ne...
I think your problem is that you have exported your dump file with ANSI character set, to take a dump file using UTF8, issue your [CODE] command with option [CODE] and check the results. (AFAIK the same options for mysqldump work for Aurora as well) PS : After your comments, I dug the problem a bit more. The problem co...
0
1
1,425
2020-01-26T10:04:13.117
database_errors
dba.stackexchange.com
385,553
Software solution for duplicating files to multiple USB flash drives simultaneously
We are distributing data to hundreds of customers using USB flash drives. There are expensive hardware solutions to duplicate USB flash drives. Is there any cheap software alternative using a regular PC connecting many USB drives using USB hubs. We would like to write at least 10 USB drives at a time.
Something like ImageUSB looks like it does what you're looking for... and it's free. :)
1
1
1,450
2012-05-03T06:08:48.893
data_quality
serverfault.com
258,328
Custom error code class and numbers for Postgres stored functions
I'm writing a collection of stored functions in Postgres 11.5, and want to [CODE] when various pre-conditions are not met. For example, a [CODE] or empty string with a string is required, or an integer parameter that is out of range, etc. I can [CODE] and provide details, hints, and a message...but what range should I ...
The SQL standard gives you a guideline: The character string value returned in an [CODE] parameter comprises a 2-character class value followed by a 3-character subclass value, each with an implementation-defined character set that has a one-octet character encoding form and is restricted to s and s. Table 33, “ [CODE]...
6
6
1,788
2020-01-28T10:58:09.997
database_errors
dba.stackexchange.com
199,803
Is the development of CLI apps considered "backward"?
I am a DBA fledgling with a lot of experience in programming. I have developed several CLI, non interactive apps that solve some daily repetitive tasks or eliminate the human error from more complex albeit not so daily tasks. These tools are now part of our tool box. I find CLI apps are great because you can include th...
Having the ability to work with a CLI is hardly what I would consider backwards. It looks great on a resume, especially if you can spin it on your resume with a phrase like "Used (Powershell/Bash) to build a suite of automation tools to send SMS messages when the Database was down". When I am responsible for hiring peo...
38
22
4,550
2013-05-29T14:55:32.420
api_errors
softwareengineering.stackexchange.com
589,065
TLS from Radius for Wifi is rejected by Win7
We do have the following Setup at our company Synology RS812+ hosting LDAP, RADIUS, DNS (Version DSM 5.0-4458 Update 2) 2*Cisco Wifi APs WAP561 (Firmware 1.0.3.4) Cisco Router ISA500 (Firmware 1.2.19) What we want to have is basically authenticate and authorization to the WiFi based on LDAP via RADIUS We installed a ce...
It's not that clear from your query but your problem can be because not both of your certificates are correctly tagged: According the URL you pointed: * The client certificate needs to have the 1.3.6.1.5.5.7.3.2 extension * The server certificate needs to have the 1.3.6.1.5.5.7.3.1 extension I also believe that it's th...
3
0
5,736
2014-04-15T08:27:59.340
api_errors
serverfault.com
244,382
What metadada to save and whether to include it inside the binary file?
I'm wondering if there are any general guidelines or best practices regarding when to split data into a metadata format, as oppose to directly embedding it within the data. (Specific example below). My understanding of metadata is that it describes data (without the need to actually look at the data), allowing for data...
I think saving the metadata inside the binary file and providing a specification so anyone can program an API has its advantages. Many binary types include the metadata inside the file itself, providing a public specification or API of how to access it. Examples could be the ID tags of the mp3 formats, the metadata of ...
2
1
1,031
2014-06-09T05:53:06.177
data_quality
softwareengineering.stackexchange.com
227,515
Get value increment during an hour of a day
I query YouTube Data Api for a list of most popular videos on a channel and then get their statistics, 4 times per hour (each 15 minutes, by cron). The data is stored in Postgres, but dumping it and loading into another SQL DB wouldn't be a trouble. Now I have following table of data: [CODE] UPD: Here's the schema (pas...
One possibility is to first [CODE] the records to get the first and last value per video, day and hour. Then join the two sets of first and last values to get the respective differences. Group the result on video and hour and get the sum or the average per video per day. [CODE]
0
2
555
2019-01-18T20:16:34.230
warehouse_errors
dba.stackexchange.com
66,077
Making sense of a accuracy plot for a 5 fold training using random forest
I'm using [CODE] for 5 fold training of data. The code is as given below. [CODE] Also, I'm using the random forest classifier model for a multiclass classification problem. When I plot the accuracy graph, it appears like the below. How's it possible that the mean training accuracy for all training sizes is 100%? Any he...
Using all default values for the [CODE] class leads to overfitting. As stated in [CODE] documentation , The default values for the parameters controlling the size of the trees (e.g. [CODE] , [CODE] , etc.) lead to fully grown and unpruned trees which can potentially be very large on some data sets. To reduce memory con...
1
1
1,030
2020-01-08T04:45:57.463
data_quality
datascience.stackexchange.com
117,414
A question about overfitting and SMOTE
So I understand that overfitting is when you have for example a good accuracy for the training dataset and bad one for the testing dataset, but why would I even check the accuracy for the training dataset? If I have a good accuracy on the testing dataset that means I'm most likely not overfitting, right? (Assuming that...
First point: in general it's risky to use accuracy in order to measure performance, especially if there is class imbalance. F1-score would be a better option in general. Significantly lower performance on the test set compared to the training set is indeed the main indication of overfitting. It's worth keeping in mind ...
0
2
65
2022-12-30T13:06:26.773
data_quality
datascience.stackexchange.com
369,906
How to correctly split a monolith and rely on the same domain
Context I'm developing a Spring Boot java application. Currently it is a monolith with the rest API and the front end (vaadin driven) in the same big project. Although this is very easy to develop and deploy, it is getting harder and harder to add features. There are too many concerns in the same application. Also, I d...
Before I get into splitting up your project, I'd like to make an observation on your load testing: Tomcat's limit is roughly 1,000-4,000 concurrent users per minute, for a single instance Tomcat is the default web server for Spring Boot apps unless you specifically change that in your POM. Simply adding another instanc...
2
1
1,413
2018-04-24T22:04:24.377
api_errors
softwareengineering.stackexchange.com
102,085
Aggregate objects into a json array (subquery issues)
I'm sorry for the vague title, but I simply don't know the right words to describe this. I have this query that transforms a bunch of columns into an object that works just fine: [CODE] However, I want to group the objects that fall within a certain category into an array. This category is defined by a fourth column in...
If you are on 9.4 something like this might be what you are after: [CODE]
8
12
32,531
2015-05-20T20:10:29.033
warehouse_errors
dba.stackexchange.com
184,990
Finding "words" separated by commas in a single column with the CONCAT_WS() function
I have a problem when using commas separating distinct values contained in a column. I call a query as follows: [CODE] So, I would like to search for words separated by commas with the following value [CODE] in a table that contains the following data: [CODE] But no results "found". I would like to "find" the IDs [CODE...
[CODE] It does require the use of "comma" as the separator, and you cannot have commas in the strings. https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_find-in-set Or... FULLTEXT [CODE] Yes, your app will need to construct this syntax.
0
1
1,353
2017-09-03T21:59:04.230
database_errors
dba.stackexchange.com
1,421
Script to Monitor MySQL Replication
G'Day, I am looking for a bash script (using Perl - As that is already installed on the machine and I don't want to have to install Ruby, Python etc. just for this requirement) that will perform some simple mySQL replication monitoring of a remote Master & Slave. The script will be able to: Connect to a remote mySQL ma...
The nagios monitoring scripts for mysql should be a good start. If you want to monitor your database with this kind of email alerts, you should really try to setup nagios or some similar software as this is exactly the purpose of a monitoring software.
3
4
5,588
2011-02-17T21:19:29.750
database_errors
dba.stackexchange.com
188,911
is it possible to force SMART to re-check Offline sectors?
I have got a HDD drive which has gone into pre-failure state with big count of relocated sectors. However I figured out that the problem is possibly with a HDD slot (cable) but not with a disk — when I plugged other HDDs to this slot they started working slowly and showing some seek errors and pending sectors. But thes...
I agree with TomTom here and don't believe that a cable is going to affect bad relocated sectors. However it is possible that a sector is marked as bad and relocated in error but I don't think the cable has anything to do with this. SpinRite on level 5 will check every sector and will unmark those which are marked as b...
0
2
2,558
2010-10-08T07:06:45.243
infrastructure
serverfault.com
542,356
Apache - SSL Requests Stop working after a while
I have Apache 2.4.2, OpenSSL/1.0.1c, on Windows Web Server 2008 R2 (64 bits) After 12 hours of heavier load, the SSL requests stopped working/being answered. However if you requested the same page via http instead of https, it worked fine. Restarting the Apache server fixes this, for a while. Again after a few hours of...
Solution upgrade Apache to 2.4.3+ configurations added: [CODE]
1
2
1,899
2013-09-28T10:41:29.327
infrastructure
serverfault.com
466,700
Outbound traffic from domU shows dom0 IP address
I am having a problem with Xen where all outbound traffic from domU's are showing up as if it was coming from the dom0. Traffic passes both ways without a problem. I do not have NAT enabled. I am using bridging network mode. Any ideas on how to troubleshoot this issue, or what the problem might be?
I figured it out! Turns out there was, in fact, POSTROUTING options in place through iptables. Deleting them quickly settled the issue, and all source addresses appear as they should. I thought I cleared out everything by using [CODE] and then [CODE] (to save my configuration changes). However the rules did not show up...
0
0
174
2013-01-13T21:48:35.337
infrastructure
serverfault.com
45,265
Polycom Not Registering against Asterisk
We have several Polycom 301s in the office along with 501s, 601s and SoundStation 4001s. Recently several of the 301s and a 4001 have stopped being able to register against Trixbox/Asterisk server and additional phones are starting to exhibit this behavior. They are able to contact the server to obtain an IP address, c...
After several weeks of having phones slowly dying off one we hired a consulting firm who determined that the firewall configuration was not allowing port 5060 UDP on the LAN. Port 5060 is default port used by the VoIP’s SIP protocol and therefore it was preventing some phones from connecting to the server. For some rea...
1
1
4,776
2009-07-24T16:29:38.337
infrastructure
serverfault.com
306,712
Recover corrupted database
The MySQL database running in an old Ubuntu 14.04 seems corrupted as successive sequence numbers don't match. [CODE] Already looked up to the provided link but it's not very useful to solve the problem. Any hints ?
Yeah, your DB got corrupted. A couple of things might have caused this, 1 is if you moved the tables from one place to another without the innodb log files, as stated in the output, the other reason is a plain corruption due to hardware error = disk. Now, the first thing to do here is: Restore from backup? but I assume...
1
0
2,029
2022-01-27T15:34:08.913
data_quality
dba.stackexchange.com
21,126
GIt Daemon and Access Control for Multiple Repos
Here is the situation, I have a folder named git which contains various --bare git repositories. This is on my server which is CentOS 5. My personal computer at home is a Windows XP. I want to push my local repositories to my server using an account on a per-repository bases. I've been searching for hours with no luck....
Check out gitosis which is a git repository hosting application. Quoting the description from the Debian package of gitosis: [CODE] You can find the gitosis source at http://eagain.net/gitweb/?p=gitosis.git Documentation on how to set it up: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way...
3
7
6,598
2009-06-06T13:31:37.310
infrastructure
serverfault.com
487,833
Capturing packets via l7filter
As a part of my Ph. D study, I compile linux-2.6.28 kernel to support in-kernel l7filtering capabilities. I'm adding a single rule to iptables with the following: [CODE] I wrote a standard capture program using libipq to read packets from queue. For testing, I m sending a single http session composed of 18 packets whic...
If all you're trying to do is filter your packet capture to see only HTTP traffic to a certain host, you can probably just do it by looking at the port and host. Use tcpdump or tshark with filters. Something like: tcpdump -i eth0 tcp port 80 or 443 Should give you just the HTTP traffic (on the standard ports). If you w...
1
0
277
2013-03-14T15:40:16.090
infrastructure
serverfault.com
460,141
Drive mappings via group policy preferences are causing VERY slow logins for clients that are away from the domain
We've recently moved away from using a login script to map network shares and are now mapping via group policy preferences. This has been working great except I recently discovered that when our laptops are away from the domain the drive mappings are causing slow logins. It looks like every drive that is mapped adds ab...
I have seen the problem that you are experiencing - this occurs if you use the "Always wait for the network at startup". I always disable "Always wait for the network at startup" for laptops for this reason (it makes the startup experience on domain joined laptops much more bearable). Some options to consider if you wo...
1
1
8,807
2012-12-21T20:47:03.340
infrastructure
serverfault.com
420,336
How do you prevent a VPN from exposing your IP when it disconnects?
I want every connection in a Virtual Machine (windows XP) to ONLY use my OpenVPN server, as soon as the connection is lost to OpenVPN, I want to lose all internet connectivity in the VM. Naturally the Host of the VM (Windows 7) will never connect to the VPN nor disconnect from my real internet. I am pretty sure I can d...
After some trial and error I found a solution to my problem: In order to prevent all accidental or random disconnections from a VPN exposing your real IP, you must route all destinations to go through a fake gateway with the exception of your VPN IP. To the network/computer experts: Assuming the following: Normal Defau...
2
1
4,798
2012-08-23T08:14:08.977
infrastructure
serverfault.com
696,586
Strange SSL certificate and https website
Checking this https://racq.travelinsurancepartners.com.au/ , you will find the browser is displaying things OK. However, browsing https://www.travelinsurancepartners.com.au/ , you will see the browser reports the SSL certificate is for covermore.com, and warn about security problem. Yes, the certificate is for covermor...
When I look at this SSL certificate : the Object is "covermore.com", which "identifies the entity associated with the public key stored in the subject public key field" (see RFC 5280, section 4.1.2.6 ) ; the Subject Alternative Name has a list of valid domain names (see RFC 5280, section 4.2.1.6 ) which contains racq.t...
1
3
201
2015-06-04T11:23:57.983
api_errors
serverfault.com
62,138
How to read cell data in excel and output to command prompt
I'm a sys admin and I am trying to learn how to use powershell... I have never done any type of scripting or coding before and I have been teaching myself online by learning from the technet script centre and online forums. What I am trying to accomplish is to open an excel spreadsheet get information from it (username...
Just for fun, try modifying your code to run against an [CODE] file that doesn't have a space in its name. If that works, then you need to escape the space in the file's name in this line: [CODE] or perhaps quote the parameter in this one: [CODE]
1
1
31,680
2009-09-03T19:15:20.100
data_quality
serverfault.com
311,924
How to execute SSIS packages on another SQL server's hardware?
I have 20 ssis packages deployed on SQLSvr1 in the SSIS catalog. They are invoked via the SQL agent jobs on this server. Suppose I re-create these agent jobs on another SQL Server (SQLSvr2), then will they on the hardware resources of SQLSvr2 (CPU, memory)?
The packages are going to execute and consume resources on whichever server they live on, which in this case would be [CODE] . Also, SQL Agent Jobs just execute the steps inside them local to the server they're on (unless the step references a Linked Server, etc). So the Agent Jobs probably would fail on [CODE] if you ...
0
0
681
2022-05-10T03:15:51.310
database_errors
dba.stackexchange.com
67,474
Modeling events at irregular intervals
I've got data representing a sequence of events at irregular intervals and an outcome. There are a fixed number of event types, about 10 of them. The outcome being modeled is binary. Arguably the following are important to incorporate into the model: 1) Which events occur 2) The order in which the events occur 3) The t...
There are multiple ways to tackle this. I'll suggest two here. [1] The one that probably requires the least amount of preprocessing work is to throw the event data into a recurrent neural net that can handle variable sequence lengths. Map the event categories to a small embedding space and run it through the RNN. You c...
2
1
150
2020-02-03T18:12:30.503
data_quality
datascience.stackexchange.com
688,758
Reject incoming emails that use your own domain as sender
It would be nice to reject incoming emails which use one of my virtual domains as sender address while not being a legitimate user of mine. I know that I can reject incoming emails which use an existing alias/account name using [CODE] , this does however still allow attackers to use a non-existant emailaddress with one...
I found two possible methods, but maybe there is a better way. 1st method: [CODE] Now I modified my [CODE] to return an entry of [CODE] if the domain exists in the domains table. This way a record is returned, even when the emailadress doesn't exist as maibox/alias, but not when a foreign domain is the from address. [C...
8
10
18,895
2015-05-05T14:14:26.673
infrastructure
serverfault.com
1,034,488
Azure Migrate doesnt dectect data disk on VMWare Ubuntu Guest VM
I'm trying to migrate an Ubuntu VM to Azure using Azure Migrate. I have already downloaded and install the AzureMigrate Appliance and connected to my VMware Vcenter and all the VM's have been detected and reported to the Azure Portal. My problem is that the Ubuntu VM (Ubuntu server 18.04) that I want to migrate has 2 d...
Please refer to disk documentation . Resolve common issues Each disk should be smaller than 4 TB. The operating system disk should be a basic disk, not a dynamic disk. For generation 2 UEFI-enabled virtual machines, the operating system family should be Windows, and the boot disk should be smaller than 300 GB.
0
2
187
2020-09-18T23:52:04.130
infrastructure
serverfault.com
220,901
Backbone.js app pulling large data sets with fetch()
I'm currently making some improvements for a client on a backbone.js app. The app is a web store and inventory management system. One thing that bothers me about this app (and other backbone.js apps I've encountered) is that it loads the entire collection of inventory items into memory from the server on every initial ...
Is loading an entire collection really the best-practice way of developing backbone.js apps? Not necessarily, having worked in a backbone app with similarly large collections we wrote a base collection class that helped us paginate smaller sets of the data. I'm trying to figure it out because the books and tutorials I'...
0
2
2,916
2013-12-10T14:35:51.833
api_errors
softwareengineering.stackexchange.com
172,652
How to update pg_opclass as non-postgres superuser
I'm using poorly documented third-party software that does esoteric things with PostgreSQL 9.3. At some point during its setup, it attempts the following: [CODE] The statement is running as a database superuser (though not [CODE] ), and fails with this error: [CODE] What permissions do I need to grant to allow this sta...
It turns out there's a (somewhat hidden) permission for users, namely whether they have permission to "update system catalogs directly," which is specified by the [CODE] column in the [CODE] system table: https://www.postgresql.org/docs/9.3/static/catalog-pg-authid.html This other answer talks about how to set it: http...
3
0
538
2017-05-03T16:31:40.547
database_errors
dba.stackexchange.com
950,981
Aws s3 object acl everyone read access denied
I have upload one image but its not publicly accessible. I have granted full AWS s3 permission for the user. My canonical user id 9ebb86750cf9111e69a4c95e1c3c53062209080c56399ddc7919be48897cf25f. Same as attached screenshot. Screenshot link: While I am pressing make public button or give public permission in ACL by che...
If "Block new public ACLs and uploading public objects (Recommended)" under public access settings of bucket is set to true, you will not be able to add any new ACL's granting public access. Hope this helps. screenshot of the settings from bucket page
-1
0
1,078
2019-01-27T11:55:07.477
api_errors
serverfault.com
311,053
How to transpose values from one column into columns with a value from a different column?
I have a database with the following structure: Date role type duration 2022-04-16 Nurse Food preparation 45 2022-04-17 Nurse Cleaning 30 2022-04-17 Volunteer Cleaning 20 2022-04-17 Nurse Food preparation 60 Note: I don't know the values in the "type" column in advance, since they are defined by the user. Also, There c...
First of all you will need to install the tablefunc extension using the [CODE] command, otherwise the pivot function [CODE] will not work. Even after reading this answer, it is recommended that you read the official documentation of PostgreSQL on crosstab here As for how to do this: [CODE] Pay attention to the explicit...
5
4
23,811
2022-04-17T16:03:43.173
warehouse_errors
dba.stackexchange.com
208,737
How to export base and discover its structure
We are with a small problem at work. Our DBA decided to go around the world on a journey of self-discovery. I really love the idea and wish the best for him. The only detail is that he left without leaving anything on the database that he created. I already searched the site but couldn't find a concrete answer for my t...
You can generate an SQL file (of metadata) with built-in commandline tools (available on all database installations). Just log in to the database server, create a [CODE] , [CODE] export: [CODE] Then use [CODE] to generate an SQL file: [CODE] Without specifying a location, Data Pump places its files by default in the di...
2
4
66
2018-06-04T20:09:45.333
database_errors
dba.stackexchange.com
988,732
AWS describe-network-interfaces behavior when filtered by list of security groups & list of interface Ids
I am slightly confused with the way the following would function: [CODE] Given that the [CODE] is 145 and that the [CODE] is 40 & that [CODE] is the EC2 when I run the above, I get the following as the value of [CODE] [CODE] Is my understanding correct that [CODE] , with those filters, would check for every single netw...
Actually, I did figure out the answer. All the 4 code snippets gave the exact same response. Below is the time taken for each to get completed: Snippet 1 took: --- 3.737805128097534 seconds --- Snippet 2: took (given that the matching interface id was last on the list of interface ids: --- 134.37576508522034 seconds --...
0
0
773
2019-10-20T11:41:23.740
infrastructure
serverfault.com
43,938
Are RNN or LSTM appropriate Neural Networks approaches for multivariate time-series regression?
Dear Data Science community, For a small project, I've started working on Neural networks as a regression tool, but I am still confused about possibilities of some variants. Here's what I am aiming to do: I have multiple input data time series $X(t)=[X_1(t), X_2(t), X_3(t),X_4(t)]$ , and multiple target data time serie...
Here is a really good source to begin multivariate time-series forecasting in Keras using LSTMs. I aim to train my model/regression on an interval $[t_0,t_n]$ and then be able to apply it on a larger different interval. There's no harm in this as long as you perform the right kind of multi-step forecasting . If your pr...
3
1
1,613
2019-01-13T21:24:07.733
data_quality
datascience.stackexchange.com
763,057
802.1Q and Network Security
I've recently purchased some TP-Link managed switches (two TL-SG1016DE and one TL-SG105E). I purchased the two first and set it up using 802.1Q VLANs to segregate my DMZ and my LAN, using tagged/trunked ports to connect the switches. I then had a need to add a couple more ports at a location with only one wire, so I pu...
There are two different uses of the word 'trunk' on Ethernet switches, varying between vendors. Most devices use Trunk to mean a port carrying 802.1q tagged frames, but some other devices -- notably HP switches, and it looks like these TP-links -- use Trunk to refer to bundles of multiple physical ports into a single l...
0
1
144
2016-03-11T02:13:10.737
infrastructure
serverfault.com
992,082
Allow traffic from 192.168.0.0/24 to 192.168.1.0/24
First off, its been years since I've really dove into anything network related so I'll try to explain the best I can and accept I probably messed up somewhere along the way. My primary network (ISP modem/router) uses 192.168.0.1. On this network, I have a server using 192.168.0.2 hosting Hyper-V. Hyper-V has two switch...
So I don't know that this is an answer because Im still not clear how I got it working. I didnt use NAT though on the pfsense. On my ISP modem/router, I set a static route as follows: [CODE] On my pfSense, I set a Static Route as well: [CODE] If you recall, 192.168.0.1 is my gateway to the ISP modem/router. I know I tr...
0
0
2,201
2019-11-16T07:06:23.890
infrastructure
serverfault.com
310,402
NTP with US Chicago time - issue
We are trying to configure NTP with Chicago time but it is showing the st 16u. Also cant see any reference (*) to amy remote server. [CODE] Configuration deatails ate as follows: [cat /etc/ntp.conf] [CODE]
Looks like you cannot reach any NTP server: The "reach" field is actually a register (shown in octal number format) that gets shifted one bit to the left before every poll. In case the polling is successful, the register ir OR'ed with 001 (octal). A "healthy" ntp should have a "reach"ability of 377 like the one below: ...
0
2
2,236
2011-09-12T09:28:41.867
infrastructure
serverfault.com
14,162
How can conclusions be drawn from recommendation systems evaluation?
From my research, a recommendation system are a subclass of information filtering system that seek to predict the "rating" or "preference" that a user would give to an item. And basically exists many type of recommendation systems, such as collaborative filtering and content-based. One important aspect, is that evaluat...
"Good", I think, is based on the state of the art at the moment. So I would look at respected models from industry leaders and use their reported accuracies as a base line for what is "good": since it comes down to what is possible.
4
4
1,019
2016-09-22T15:33:14.370
data_quality
datascience.stackexchange.com
151,771
PostgreSQL "at time zone" construct does not use index
I have a simple table and am unable to understand why a certain query does not use an obvious index, and runs so slow. This is the table: [CODE] The slow query is here: [CODE] Explain analyse returns this: [CODE]
I found a way to "cheat" which uses the index, and also has the comfort of timezone conversion. I basically extend the date range of selection to be sure to include enough values whatever timezone the user has, and then use a wrapper select which filters the result a second time and performs the timezone conversion: [C...
3
2
1,471
2016-10-08T09:38:37.407
database_errors
dba.stackexchange.com
566,304
DNS event ID 4000 on SBS 2011
We're getting the following event ID 4000 (Source: DNS) on a Windows SBS 2011 SP1 server: The DNS server was unable to open Active Directory. This DNS server is configured to obtain and use information from the directory for this zone and is unable to load the zone without it. Check that the Active Directory is functio...
We solved this issue by running the following command on our domain server: [CODE] Afterwards we had to restart the server.
1
0
2,167
2014-01-10T07:04:20.543
infrastructure
serverfault.com
555,225
SFTP logging in Solaris Server using 'internal-sftp'
I'm trying to enable logging for SFTP file transfer (without help of any opentools) on solaris 10 using "internal-sftp" but couldn't see any info about file transfers. Please help. [CODE] All I can see in /var/log/sftplogging is as below [CODE] What I Need: I need to have loggers in below format [CODE] Link for Old Que...
SOLVED 1) Created a parent directory (virtual) and created log, conslog, null and zero files using mknod as per my system configuration (check ls -ltr /dev/log .. for all above files to get major and minor numbers). 2) Once it's done create "dev" folder for every jailed user "/chroot/dev/" and create hardlink for all f...
0
1
7,487
2013-11-15T10:51:44.620
infrastructure
serverfault.com
587,289
Windows 2008 R2 - No internet access with static IP
We had an internet outage and when the ISP resolved the problem, we ended up with a server that no longer has internet access unless we use DHCP. I replaced the network card, thinking it might resolve the problem, but still no internet access. We have a domain, but I don't think that matters. I can see the machine on t...
(posting as an answer because comment is too large, but I'm a pretty good guesser :)) What exactly did your ISP do to "resolve" the problem? EDUCATED GUESS TIME: If they replaced or had you reset the router (assuming small shop here) then it if I guess further, DHCP is controlled by that router and not your server, rig...
-1
1
5,578
2014-04-07T19:51:07.670
infrastructure
serverfault.com
238,305
SQL: How to ask for multiple counts from the same table within a join
Trying to find 3 separate counts within one column of a table, each with separate WHERE clauses. I've got 2 tables in the query, so one join. Thought this looked correct but it will not run: [CODE]
MySQL does not have [CODE] join implemented. You are likely to need only a [CODE] join (from [CODE] to [CODE] ): [CODE] You can't have [CODE] or [CODE] in a [CODE] expression like you try. There is a [CODE] feature in standard SQL but that has not been implemented either in MySQL. There are however [CODE] expressions y...
0
1
4,756
2019-05-16T11:03:27.690
warehouse_errors
dba.stackexchange.com
336,017
Server 2003 R2 doesn't allow logon after a few days of uptime
We have a server 2003 R2 standard (which I'll refer to as SRV01) that's knocking on a bit now, but it still acts as a file, print and SQL server on our company's network. SRV01 hosts user profiles, home directories and pretty much all our business data. Note our AD is currently at 2008 R2 level. This server is due to b...
I'm guessing this is x86 (32-bit). I would be inclined to run the Windows Debugger on the next occurrence, and display the amount of memory used. In particular, the system kernel memory (paged pool and non-paged pool). If you have the Windows Debugger copied to a folder, run windbg.exe, and the command to enter is: [CO...
4
2
895
2011-11-29T22:55:26.010
database_errors
serverfault.com
999,211
How to split dns configuration within 2 servers
I have both aws route53 and a dedicated server dns conf I tried setting [CODE] records [CODE] Basically what I want to achieve is to have multiple unrelated DNS records on both servers as managed by 2 different persons. NS record domain registrar ns1.xxx.ovh.com dns records [CODE] Well is this configuration ok and is i...
I think, this will not work as the public will not the reach it (not even search it). Ok, let assume you have domain example.com which is registered and on registrar level and it has has NS records pointing to ns1.xxx.ovh.com - this information is propagated to DNS zone for .com domain to establish delegation for the d...
0
1
341
2020-01-16T11:16:41.557
infrastructure
serverfault.com
162,830
Using CNAME in DNS to Allow Easier MSSQL Database Access
My company has asked me to develop a server migration plan to reorganize their network and make it easier to perform IT tasks. They currently have three MSSQL servers. The current plan is to migrate all of the databases over to a single MSSQL server and then setup redundancy. I am still working out this part of the pla...
This is a Good Idea TM . You can also use CNAMES along with a DNS Search Suffix to relocate all of the old hardcoded server names to the new MSSQL servers as well.
3
4
4,339
2010-07-22T00:25:24.780
database_errors
serverfault.com
356,502
Adding a self-signed cert into trusted certificates list with powershell on Windows 7
I created a self-signed certificate on Windows 7 and deployed a web site with this certificate just to try it out. When I configured the HTTPS endpoint and visit the site with HTTPS protocol, I get the "not a trusted cert" error as expected. Then I try to make this cert a trusted one on my machine with following PowerS...
Your code looks fine and I'm assuming you're not getting any errors either. A bunch of things to check: Open the certificates MMC and make sure your cert is being added. Check the common name and subject alternative names of the cert. The domain of the URL you put in the browser has to match one. Make sure the certific...
5
2
4,265
2012-02-03T11:26:59.340
infrastructure
serverfault.com
761,128
monit can not resolve hostname: getaddrinfo does not find host
I use monit v5.16 running on Debian Wheezy to check if a server is up or down using the ping instruction. Here is my configuration: [CODE] I always get the following error: [CODE] If I ping from the command line, everything works fine: [CODE] I do not want to put anything into my /etc/hosts or anything hardcoded on the...
The problem here came from the fact that I added a [CODE] instruction. [CODE] (or [CODE] ) alone will work. Adding [CODE] makes this check fail (and leads to the [CODE] error).
0
0
625
2016-03-02T21:55:58.850
infrastructure
serverfault.com
227,468
Why is this faster and is it safe to use? (WHERE first letter is in the alphabet)
Long story short, we're updating small tables of people with values from a very large table of people. In a recent test, this update takes ca 5 minutes to run. We stumbled upon what seems like the silliest optimization possible, that seemingly works perfectly! The same query now runs in less than 2 minutes and produces...
It depends on the data in your tables, your indexes, .... Hard to say without being able to compare the execution plans / the io + time statistics. The difference I would expect is the extra filtering happening before the JOIN between the two tables. In my example, I changed the updates to selects to reuse my tables. T...
10
9
1,438
2019-01-18T09:54:55.387
database_errors
dba.stackexchange.com
499,901
Postfix SMTP-relay server against Gmail on CentOS 6.4
I'm currently trying to setup an SMTP-relay server to Gmail with Postfix on a CentOS 6.4 machine, so I can send e-mails from my PHP scripts. I followed this tutorial but I get this error output when trying to do a sendmail alex.extranomical@gmail.com Output: tail -f /var/log/maillog [CODE] Here is my main.cf configurat...
[CODE] there is no auth available. You must use STARTTLS on port 25/587 or use SSL/TLS on port 465 [CODE] /etc/postfix/tls_policy [CODE] /etc/postfix/sasl_passwd [CODE] In the maillog would be something like the following [CODE]
0
2
3,837
2013-04-16T17:06:11.783
infrastructure
serverfault.com
623,723
Child process runs in normal priority only. Why?
I run a scheduled task in Windows Server 2008 R2. I used the technique described here to set its priority to high priority (level 1 of 7). My task runs a process (an EXE file) that creates child process during run-time (another EXE file). My problem is that the child process gets normal priority only. I'd expect the ch...
The reason why your child process launched as normal priority was answered in this post Process Priority Inheritance
-1
1
240
2014-08-25T04:47:06.547
infrastructure
serverfault.com
1,147,070
Proxmox: Good Idea to use LVM thin together with LVM-Caching
I want to migrate my bare metal Debian server into Proxmox. My existing server uses a 120GB SSD and a 8 TB HDD. The HDD is cached on SSD (20G), which improves (read) performance a lot. Here are all my logical volumes: [CODE] Proxmox uses TVM-Thin for data storage (disks, snapshots, ISOs). The advantage of LVM-Thin is, ...
I just tried it out and it seems to work. Hence, the Cache is added to data_tdata, not to data itself. [CODE] Cache is working [CODE]
3
1
316
2023-11-02T10:59:12.857
api_errors
serverfault.com
179,355
Remote Assistance for mobile users
One of our clients has about 100 users in the field with Windows Mobile 6.5 devices, with another 600 coming online soon that will be running a mix of Windows Mobile 6.5 and Android phones (I'm not sure which version of android, they're rolling them out at the end of the month). We're having a lot of trouble with suppo...
For android you'll probably need the phones to be rooted. I don't know of a complete solution, but i have tested vnc server (currently needs to be launched from a console).
1
1
505
2010-09-09T00:25:38.417
infrastructure
serverfault.com
1,144,946
NetBSD 9.3 - NFS Permissions
I have installed NFS on a server in my lab, the server exports two disks, /disk1 and /disk2, i can successfully see the exported drives using: [CODE] I can also mount the drives: [CODE] This gives me a mounted drive on my local machine (also NetBSD 9.3) /disk1 However, I am not able to add, delete or modify files, i ge...
In theory this should have worked I think, but unfortunately there are so many potential causes for [CODE] that identifying the particular cause in this case is difficult given just the information you have supplied so far. You could try taking out the [CODE] option. I've never used it in any configurations I've create...
0
0
47
2023-10-02T14:18:21.253
infrastructure
serverfault.com
151,076
innodb table does not exist
I have four databases each holding several hundred tables. Every table in one database suddenly returns error code 1146 Table xxx does not exist. The other databases are fine. I can see all the .ibd and .frm files ok and their various file sizes suggests they are not empty. There is an ibdata1 as well. From workbench I...
Looking through the logs there was a mismatch between the ids and the ibdata1 in that the first letter of the database name was different case. I have the vaguest memory of late night fiddling. My bad! After a reboot due to OSX update the server could no longer find the tables in the cache (d'oh!) and spat. Fixed the n...
1
0
7,500
2016-09-30T04:36:53.070
warehouse_errors
dba.stackexchange.com
231,784
What could prevent one Amazon EC2 instance from pinging another instance's Private IP?
I have multiple Amazon EC2 instances which need to communicate using private IPs. However, so far I've been unable to ping one instance's private IP from another instance. I can ping external addresses, such as their Elastic IPs and other sites (yahoo, google, etc), so it seems there's nothing wrong with the instances'...
It turns out the problem was the Security Group settings after all. I had been IP-restricting traffic, so only my external IP could communicate with the instances. I assumed the Security Groups didn't apply to communication between instances, but they do. The solution was to also allow traffic from 10.0.0.0/8, which co...
5
7
11,085
2011-02-06T07:15:19.693
database_errors
serverfault.com
93,894
How to pass the input parameters to dynamic Pivot stored procedure
This is my query: [CODE] But it is showing error: FUNCTION leavemanagement.1max does not exist I don't know how to pass parameters in Pivot Query.
I'm passing input parameter in_branchId into pivot Mysql Query [CODE]
0
0
1,737
2015-02-26T12:23:53.207
database_errors
dba.stackexchange.com
142,775
Write permissions on uploaded files - Linux, Apache, PHP
I am working on a PHP script that transfers files using FTP functions. It has always worked on my production server (which is a hosting service). The development server I have just setup (I am a novice to servers) is Debian Lenny with Apache2, PHP5, and MySQL5. The file transfer works correctly, but once the file has b...
this is more related to your ftp server configuration, and not so much to apache. which server are you using for ftp? i believe vsftpd is the default ftp server for Debian Lenny, the options you might need to look at in your [CODE] file are: [CODE] and [CODE] the default for [CODE] is [CODE] which makes me think that m...
1
1
8,071
2010-05-17T22:23:01.610
database_errors
serverfault.com
330,733
How to set up postgresql in vpn network
I installed postgresql on a server which I connect to via VPN. When I try to connect to the database server(from my local pgAdmin III), I get the message, that I am missing the right to access postgresql. What settings do I have to change in order to be able to connect?
It depends on your vpn-setup. If you're using routing rather than bridging, you need to allow access for your IP or for your net to access the DB. See http://www.grc.com/vpn/routing.htm for an explanation.
-1
0
3,915
2011-11-14T12:21:15.413
database_errors
serverfault.com
764,072
Iptables DNS Input on localhost
Currently my IPtables Input chain settings on the server are: [CODE] If i try to ping for example Port 8123 on this server with [CODE] it is working, but not with a fqdn, for exmaple [CODE] A ping from my laptop to the server with the fqdn is also working. The Output chain is completely open, and if i change the policy...
This [CODE] solves my problem. Now the udp port 53 is working and the ping to [CODE] Is correctly working :-)
-1
0
536
2016-03-16T11:42:40.473
infrastructure
serverfault.com
353,855
As a domain/enterprise admin, how can I change permissions on another user's Outlook calendar?
When I try to go to the properties of another user's calendar it says that I do not have the proper permissions. I'm trying to configure permissions for a remote user's calendar so that their manager can view it. Thanks in advance.
You can use the powershell script Add-MailboxFolderPermissions e.g. [CODE] From the help contents, The AccessRights parameter specifies the rights needed to perform the operation. Valid values include: FullAccess SendAs ExternalAccount DeleteItem ReadPermission ChangePermission ChangeOwner
0
0
1,846
2012-01-26T13:35:44.700
infrastructure
serverfault.com
654,213
SSH over VPN connection
We have an AWS EC2 server that we've configured to be only accessible (via SSH) from within our office network. Obviously this isn't ideal for remote arrangements where someone has to connect to the EC2 instance and is working remotely outside the office such as during a business trip. I've managed to set-up a VPN thro...
Let's suppose your AWS is reachable via SSH at IP "your.ec2.ip.address". Let's suppose your office network has Internet access via a router that apply some NAT translations and, as such, your office PCs are seen, on the Internet, with IP "your.office.external.ip". Let's also suppose that you are located OUTSIDE of your...
14
18
73,392
2014-12-22T15:37:49.827
infrastructure
serverfault.com
1,992
Re-using Python virtual environments on a build server
Currently, every time we run a build through Jenkins+Ansible, we are re-creating a virtual environment and re-installing all the dependencies listed inside the [CODE] file. This is very slow and does not scale well. How can we improve and speed up the process? Can we re-use virtual environments? Our latest idea which w...
It's generally a best practice to make your builds idempotent. Leaving artifacts behind only opens up opportunities for dependency management issues- and resolving those in a resilient way is exactly why you're using a build server. I suggest you take a look at WHY your Python builds are running so slow- if you discove...
7
5
2,491
2017-09-12T14:23:26.593
pipeline_ops
devops.stackexchange.com
68,277
How to do backward features elimination when considering interactions between them
I have a multi linear regression problem, $Y$ is my target and $X_1, X_2, X_3$ are my features. In my regression, I consider the interaction between $X_1, X_2, X_3$ and I add a bias. So my problem is given by : $Y \sim X_1 + X_2 + X_3 + X_1X_2 + X_1X_3+ X_2X_3+ bias$ Now, I fit my model with [CODE] and I want to elimin...
My first question is : for example, if the highest p value is for the X1X2 feature, is it okay to eliminate this feature even when X1 and X2 can be statistically significant ? Of course, the interaction can have no information about the target. Per example if the problem is perfectly defined by X1 and X2. The interacti...
1
0
32
2020-02-18T09:08:05.297
data_quality
datascience.stackexchange.com