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
117,976
Unable to apply patch in Oracle Grid Home
I need to set up a RAC environment using two nodes. Details of each server are: OS : Windows Server 2012 R2 64bit ( certified by Oracle ) RAC: Oracle Grid 11.2.0.4 While installing the Grid Software, I am getting following error: I came to know from Oracle Metalink, this is bug and had been solved in patch 20502905. I ...
Thanks all for your help. Here is the solution: Do standalone installation of Grid Software on each server one by one. (Don't configure Grid now.) Download the required patch. Unzip the patch in temp folder and then copy and paste it to Oracle GRID_HOME\OPatch directory. Don't delete any file, if asked click on Merge. ...
2
1
2,547
2015-10-14T07:19:51.297
database_errors
dba.stackexchange.com
645,793
Redirection of http to https not working
I want to redirect my subdomain to https. My .htaccess file contains the following: [CODE] It's redirecting to https but my chrome browser giving an error This webpage has a redirect loop The webpage at https: //sub.domain.com/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-pa...
I'm currently using following configuration for redirecting all requests for [CODE] to [CODE] : [CODE]
-1
0
2,595
2014-11-20T12:26:25.603
infrastructure
serverfault.com
383,475
302 Redirect on wordpress+nginx with blank page
My wordpress MU setup, with Nginx, is showing a blank page with following errors and access log entries. [CODE] And on the main page, after turning on Debug in wordpress I get following warning (not sure if they are creating the problem) [CODE] Here are my configurations for nginx: [CODE] : [CODE]
This looks like an improper handling of headers in wp-super-cache; I notice that this may have been updated in future updates ( patch ); have you tried updating wp-super-cache?
1
0
2,688
2012-04-26T16:03:23.380
infrastructure
serverfault.com
1,063,668
Port unavailable in Kubernetes pod
I have a three node Kubernetes cluster and a deployment with 5 replicas. Each pod of the deployment exposes port :3401 and :4000 (one for debugging, and one for the application). I have two services (one for each port the pods expose). I have an ingress controller, and a single ingress for the application that is expos...
I had the following lines in my pod spec for the deployment: [CODE] Must have copied and pasted it from somewhere without thinking. :(
0
1
452
2021-05-15T21:04:19.007
pipeline_ops
serverfault.com
828,472
OpenLDAP TLS config - cannot set TLS - invalid credential
Hi I was googling to find out why my attempt to change a config of open ldap for TLS failed on access right: [CODE] Failed because obviously I used admin to change config entry. I found an article about the same issue, and the solution there was to set a root password for the config database and then try to modify it. ...
You need to: [CODE] (note the [CODE] ). The access condition in your config db: [CODE] means access to config db is allowed to users authenticating with [CODE] method if uidNumber and gidNumber is zero (that is: it is root). [CODE] auth is this case means you access the directory throught a pipe on the filesystem (the ...
0
0
571
2017-01-25T08:25:23.540
infrastructure
serverfault.com
766,081
could not find recipe epel for cookbook yum
i am having trouble with nginx cookbook.. and it dependency on yum-epel. Getting error : " Chef::Exceptions::RecipeNotFound could not find recipe epel for cookbook yum" [CODE] Been looking around, Looks like : there was a major upstream release of the yum cookbook (3.X) that moved yum::epel recipe to a new yum-epel coo...
You need to run yum In metadata.rb parlance: depends 'yum', '
1
2
803
2016-03-25T11:52:55.267
pipeline_ops
serverfault.com
637,502
apache rewrite rules for multimple domains | https://www
I have two applications configured on one apache (eg. example.com and test.net). Rewrite rules for those apps are the same (so in config file for domain example.com I've got this rules, and the same rules in conf file for test.net domain) [CODE] And it almost works ok, except for one case - when I request in webwrowser...
I think you are missing [CODE] and [CODE] in your VirtualHost configs and that causes you these problems.
0
0
82
2014-10-16T12:52:05.710
api_errors
serverfault.com
410,898
Recover Linux server following accidental `rm` in /etc
I have a linux server (Debian squeeze) set up. It's primary focus is to run LAMP. I also use it for stuff like mumble (voice chat) and minecraft servers. In the beginning everything was running fine. Then things started to happen. Stuff like java failing to run without headerless mode, and completely losing the ability...
Most likely the cause of your problems is the [CODE] command that you ran in [CODE] . I would suggest reinstalling the OS.
-2
5
735
2012-07-25T01:39:00.010
database_errors
serverfault.com
241,350
missing initSID.ora
I learning to use Oracle database, and I just installed Oracle Database 12c Release 2 on my Ubuntu 18.04. I login as sysdba with this following command: [CODE] So far all thing working and I got this message: [CODE] Now, I want to start my server with this following command: [CODE] But, the thing that make me confuse a...
Finally I figure out this by creating a database following this tutorial .
0
0
1,049
2019-06-25T10:37:40.917
database_errors
dba.stackexchange.com
439,705
recursive grep started at / hangs
I have used following grep search pattern on multiple platforms: [CODE] For example on FreeBSD 8.0 , FreeBSD 6.4 and Debian 6.0 (squeeze). Command does a recursive search starting from root directory, assumes that binary files do not have the 'string_to_match' and skips devices, sockets and named pipes. FreeBSD 8.0 and...
On Linux, instead of [CODE] you can list the contents of [CODE] . You should see a symlink for each open file descriptor for that process and it will point to the file that it corresponds to. Here is a sample of what this did for me: [CODE]
1
1
1,328
2012-10-18T10:24:28.947
infrastructure
serverfault.com
31,489
Select columns from 4 tables
First thing, I am totally new to SQL. I saw some tutorials, videos, tried searching but didn't find what I needed. I know it has asked before, but I couldn't find it. What I need to find is basically like: [CODE] like select all of them who are from London. EDIT: Tried doing this with 2 tables only, code as below, but ...
If you are attempting you return all rows from the four tables where the [CODE] is the same, you should be able to use a [CODE] to get the results: [CODE] I included a field that identifies what table the record is coming from. This is not necessary for the query and can be removed. Just as a side note, the error you w...
4
4
189
2013-01-06T02:08:41.247
warehouse_errors
dba.stackexchange.com
888,702
Duplicated version of a local (WordPress) site isn't available online in an Nginx environment
In my Ubuntu 16.04 Nginx environment I tried to create an online test version of a local WordPress site. The original site works fine and is accessed in HTTPS (the lock favicon is green in all pages). My current state and problem When I browse into [CODE] I land on a 404 page in the original site (the local site I desi...
I really don't need anything beyond accessing it directly from the IP Options : Just save yourself a headache and a half and use a test.example.com domain name. You don't even have to publish valid DNS records just edit your local HOSTS file. And add a server name directive to the test.conf file. You need to ensure tha...
1
1
238
2017-12-18T16:01:08.687
data_quality
serverfault.com
901,725
OpenSCAP reporting false for RHSA patches on Redhat6 Server x86_64
did OpenSCAP scan initially and was inform of that the server had 16 hits on definitions that require patching. performed yum update and rebooted said server and its reflecting the newer version :2.6.32-696.20.1.el6.x86_64 after patching, re-did OpenSCAP scan and the 16 hits are still marked as true. checked CVEs detai...
the scan is reporting true because you have still installed the older kernel packages on your system. Please try removing the older kernel (2.6.32-696.18.7) from your system and scan again - it should no more report that your system is vulnerable.
0
0
158
2018-03-15T04:25:23.727
infrastructure
serverfault.com
476,612
Cross Forest Printers
I am trying to set up printers for users, and the print server is in a forest with a trust relationship. Users are all on Windows 7, and the print server is Server 2008 R2 Standard. DomainA contains the print server DomainB contains the users When users or admins in DomainB attempt to add printers from the DomainA prin...
It sounds like the Forest Trust is using Selective Authentication. If so, you need to grant DomainB users the "Allowed to Authenticate" permission on the print server computer object in ADUC in DomainA.
4
1
7,800
2013-02-07T21:01:44.160
infrastructure
serverfault.com
241,970
INSERT violating unique key constraint on primary key
on a table with primary key 'id' with default value nextval(), inserting a row throws the error [CODE] except this table has 200 rows. why isn't Postgres setting the new row id as 201?
You inserted rows manually into the table providing explicit values for the [CODE] column, which means the sequence was not advanced as no default value was used. Now your sequence is out of sync with the actual values in the table. You need to sync the sequence using [CODE] with your actual values if you do that: [COD...
3
7
2,449
2019-07-03T12:05:00.023
data_quality
dba.stackexchange.com
394,737
pfSense to ASA L2L VPN - infrequent, short-lasting, but consistent disconnections
Has anyone here been able to specify a stable configuration for the L2L VPN between an ASA device and pfSense 2.0.1? I am using the most accomodating settings on the ASA side ( [CODE] with many transform sets and using PSK so that the pfSense device does all of the specifying of networks) and the simplest settings on t...
I had a problem that exhibited behavior almost identical to yours. I was trying to run off-site backups with Veeam over the VPN. The job would run fine for somewhere between 2-6 hours usually, but at some point it would fail. Veeam support reviewed the logs and indicated it was related to a poor quality network connect...
0
1
1,934
2012-06-01T14:43:21.803
infrastructure
serverfault.com
197,308
Is the Execution Path for a Function invoked inside a Stored Procedure cached?
According to some of my research a benefit of using Stored Procedures over Functions is that they cache an execution path which provides performance benefit due to not having to recalculate it. So I was wondering if I invoke a Function from within a Stored Procedure is the entire Stored Procedure still cached? Here's a...
First of all, why do you use [CODE] table-valued functions instead of [CODE] function? [CODE] function calls are expensive and introduce significant CPU overhead. Second, the way you want to use it is very strange: The Stored Procedure in psuedo would be used IF @Condition Return SelectedTable ELSE Return fnExampleFunc...
0
1
49
2018-02-07T17:30:23.037
database_errors
dba.stackexchange.com
1,088,343
Managing AWS EC2 and RDS autoscalling configuraiton
A client of ours generally can get away with running just the one EC2 and also has an Aurora serverless MySQL 5.7 database running, however there are times when their load spikes up significantly. e.g. going from maybe 20 sessions to 200 sessions in a minute. This is because they sell tickets for events and tell people...
You can schedule autoscaling events using the EC2 Console , so if you know when these tickets go on sale, you can scale up 30 mins before and back down 30 mins after.
2
0
36
2021-12-28T02:38:32.493
database_errors
serverfault.com
37,058
Is it ever harmful to set a database owner in SQL Server?
There are a bunch of databases on one of our SQL servers that have no owner. Generally speaking, is it harmful to give them one? For example: [CODE] I know sa may not be the best choice, but it is just an example. My primary concern is whether or not creating an owner when there is none may cause issues with software t...
You should be using DDL instead of backward compatibility stored procedures: [CODE] And the owner of the database (never mind [CODE] ) should probably not be the account that your applications use, so this should not really have any effect on your applications. If it does then you should update the connection strings y...
8
12
10,045
2013-03-19T21:18:27.787
database_errors
dba.stackexchange.com
714,727
App_Data is not hidden in IIS 7.5
Got an interesting little issue. On one of our servers in particular, IIS 7.5 is not hiding the App_Data folder; it's serving it directly. Other servers don't have this problem, even if they're set up relatively similarly. That folder obviously needs to be hidden. In fact, it's supposed to be fairly tricky to unhide it...
In IIS Manager select your site and double-click [CODE] then select the [CODE] tab, you should see: Make sure [CODE] is there. The same setting exists on the server level. If it is missing add it using the [CODE] link in the actions panel on the right.
0
1
1,027
2015-08-17T15:50:03.497
infrastructure
serverfault.com
321,890
Make MongoDB work for production
I have made a simple test of MongoDB under windows environment. The single collection of objects with ID (int32) and Buffer (byte[4096]) was filling sequentially. After reaching of almost 15G (of 16G total) RAM, environment becames glitching. Some apps were killed, desktop changed its resolution, then it completely han...
Right. Let's take a look at how I'd run a production MongoDB cluster (yes, cluster.. You don't want just one server) 1) Use Linux. Seriously. It's a hell of a lot more predictable for memory management and so on than Windows is. You're also more likely to find people who can help you tune a Mongo server on Linux. 2) Gi...
3
6
1,373
2011-10-16T09:52:13.403
data_quality
serverfault.com
233,255
How to connect to sql server with dynamic IP Address
I have installed sql server express edition 2014 on my machine. And I am connecting to it with CRM using my local machine's IP address. The problem here is my IP address allocated to my machine is dynamic and changes every day when I log in, which makes it impossible for me to connect to CRM (as the IP address changes ...
Instead of connecting via IP address, connect to your machine's name. If you're connecting locally, you can use LOCALHOST as the name, or just a period ("."), which connects you to your local default instance.
0
7
1,936
2019-03-27T12:38:08.760
database_errors
dba.stackexchange.com
76,280
FreeBSD with nginx can't connect networks after running for a while
My server is a FreeBSD system, I run nginx on it to proxy user requests to another real server. My problem is I can't visit my freebsd server after a while. The server is in another place, so I have to go to fix it. When the problem happens, the server can't ping another address, it can't use networks, if I reboot it a...
I think it's problem with mbufs count. There is 2 possible solutions: Use my FreeBSD sysctl tuning guide Update to 7.2 amd64 that is pretty tuned by default You can easily check limits: Compare values LIMIT and USED in [CODE] [CODE]
1
1
416
2009-10-20T08:10:34.833
infrastructure
serverfault.com
1,105,557
Mikrotik configuration lost after electricity went off
Because of electric went off the miktrotik router lost operation system .. The operation System went down .. I did backup to the router "ccr1009" After that everything went well but I got this massage Pptp connections are considered, it is suggested to use a more modern VPN protocol instead.
Mikrotik is suffering from this issue, when you disk size is full. Make sure to remove your backups if you have limited disk space.
0
1
271
2022-07-14T08:15:57.270
database_errors
serverfault.com
842,940
Caching proxy with a cache I can prime
Say I have an origin site and structure of media like so: https://watch.example.com/2017-04-06/training.mp4 , which is a static 5GB that will never change. Now at a remote location with very poor internet , I want to provide a caching proxy which mounts a 4TB disk (that I've sent in advance) that has these files sittin...
Something like this should work: [CODE] As it is this config won't cache anything it doesn't already have, but you could add in the relevant [CODE] settings if you want.
0
0
89
2017-04-06T07:53:00.440
infrastructure
serverfault.com
93,942
Query results that not are in previous query result
I want to retrieve from my table the [CODE] of the products which haven't got some [CODE] and it's [CODE] is not the ones i want For example i want the id_product of the products in which [CODE] and [CODE] I have the following table: Atr_basic [CODE] The query: [CODE] The problem with this query it's only give me the [...
You are missing the single quote closure after motherboard in both of your queries AND value != 'Motherboard AND AND a.value != 'Motherboard The first query can be more organized as [CODE]
0
0
74
2015-02-26T21:46:01.753
warehouse_errors
dba.stackexchange.com
644,197
ec2 setting up MX record not working
I am trying to set up google business emails for my site and I am having trouble creating the MX records to work. I have added all 5 records and they have not registered. This was add a couple of days ago and from what I have read, amazon doesn't take more than 24 hours... so i am out of ideas. Any help or point in the...
I don't think you've set the [CODE] field correctly. Google's reference to a Name/Host/Alias of [CODE] is a BIND shorthand for " the zone itself ", and since you're not using BIND, that doesn't really apply. If you try setting the MX record for just [CODE] , rather than [CODE] , things should work somewhat better. Edit...
1
1
308
2014-11-13T21:24:49.953
infrastructure
serverfault.com
466,620
lighttpd: backend is overloaded
I have a high traffic site I'm trying to maintain, but from time to time at spikes get stuck with: [CODE] Current stats are: [CODE] The site itself is a very simply PHP site, no MySQL involved. I do have APC installed and configured. I have added suggested changes to /etc/sysctl.conf: [CODE] My lighttpd.conf looks like...
"backend is overloaded" - this means that one of the 14 [CODE] backends is overloaded (lighttpd creates different sockets for each [CODE] backend by append "-[number]" to the socket filenames). I'd go for a lower max-procs number, and instead increase PHP_FCGI_CHILDREN, for example [CODE] and [CODE] , or 4 and 100 (or ...
0
0
5,276
2013-01-13T14:06:28.223
api_errors
serverfault.com
746,669
IMAP authentication issue with roundcube + postfix + mysql + ubuntu mailserver
This problem is driving me insane and I'm now stumped. Need some help please ;) I'm setting up a mail server on an Ubuntu 14 AWS EC2 instance using mysql backend, postfix MTA and roundcube webmail client. Everything is working up to the point of logging in via roundcube. ie, I can send and receive mail from the shell w...
Copy and paste the SQL from these logs into your [CODE] client (CLI). I'm thinking that lone [CODE] is causing issues as the string is read from the config file. Perhaps a [CODE] But, shouldn't paths be using a [CODE] ?
0
0
1,312
2016-01-04T18:06:04.407
database_errors
serverfault.com
255,390
Identify changes across records for the field ID
Consider the following table [CODE] I am looking to identify individual IDs where there is inconsistency across the 'tabs'. For example, ID 'C1' is not the same in tabs 'Tab1' and 'Tab2', however, has a change in the Gender field in 'Tab3'. On the other hand, 'Mary' is consistent across all three tabs. A potential appr...
[CODE]
1
0
46
2019-12-11T10:09:45.223
data_quality
dba.stackexchange.com
66,463
Feature importance and deriving rules using tree based classification models
I have a dataset where I have categorical and continuous values with targets 0/1 (binary classification task). Since I need to find patterns and relationships in the occurrence of the event or target, I think I should use Decision trees. However the issue is that I have 2 categorical variables which have 700 & 150 cate...
You can use categorical features with decision trees in scikit-learn, but you'll need to encode them as numbers. If your categorical features are ordinal (such as ranking ‘bad’, ‘fair’, ‘good’), they are easy to encode in numbers that respect the underlying ordering (e.g. 0, 1, 2). For nominal features, given the high ...
0
1
67
2020-01-14T14:34:59.177
data_quality
datascience.stackexchange.com
905,917
Active Directory Recycle Bin and potential incompatibilities
Having a Windows 2016 based domain (with domain and forest functional level at Windows 2012R2) I would like to enable the recycle bin feature. However, I understand that this is an one-way change: once enabled, it can not be disabled. So, before doing that, I wonder if there are know incompatibilities and/or integratio...
I'm not aware of any incompatibilities or integration problems, as you say. I've got many clients with the AD Recycle Bin enabled who are using Azure AD Connect.
2
1
135
2018-04-04T09:29:50.563
infrastructure
serverfault.com
214,971
Requring static class setter to be called before constructor, bad design?
I have a class, say [CODE] and every instance of Foo will need and contain the same List object, [CODE] Since every class instance will share the same List Object, I thought it would be good to make [CODE] static and use a static function to set [CODE] before the constructor is called. I was wondering if this was bad, ...
Requiring a certain method to be called before another is called Sequential Coupling , and is often considered to be an antipattern. Take for example this code generator: [CODE] Here, [CODE] always has to be called after [CODE] , else incorrect code is emitted. This can be trivially refactored to use a [CODE] type: [CO...
5
6
1,212
2013-10-19T21:46:29.103
api_errors
softwareengineering.stackexchange.com
93,116
Handling "backup" files with Git
I have a project folder that has multiple duplicate files that are named slightly differently to create "backups". So I have "file1.txt" and "file1 backup.txt". Is there a preferred method to capture the old history when I make the folder into a git repository?
With out a lot of messing about, the simplest option is to just commit the full project folder as the first commit, then delete all of the backup files and finally commit your 'cleaned up' copy. That way you can access the copies of the old files any time you want, but they don't normally clutter up your working direct...
2
12
606
2011-07-15T13:48:49.963
database_errors
softwareengineering.stackexchange.com
630,641
Cannot view folders on client with VPN to 2008 server
Recently installed server 2008 as part of our upgrade from 2003 and managed to resolve most problems but left with the last one which is that I cannot view folders or files on 2008 server from client with VPN access. When VPN is established I can achieve the following:- Ping fine from client to servers broadband facing...
This issue might occurs in scenarios where the dependency services for Network Discovery are not running (or)The Windows firewall or other firewalls do not allow Network Discovery. To fix the above issue follow the steps given below. http://support.microsoft.com/kb/2722035 IF that was not working for you. try enabling ...
1
0
229
2014-09-23T17:42:18.457
infrastructure
serverfault.com
354,295
How do I change a user's base dir in OS X
I'm configuring a OS X Lion based ftp/sftp server, and I want the user for file transfers to land in a specific directory upon login. I'm not sure if it's a good idea to meddle with the home directory as I'm unsure if the absence of directories like [CODE] will cause problems. Unlike Linux, OS X doesn't store the base ...
First run [CODE] Find the entry for [CODE] , should read like [CODE] . To change the entry: [CODE] Works for shell logins, you may need to copy files from old home dir to the new home dir to allow GUI logins. Reference: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/dscl.1.html
1
1
4,002
2012-01-27T16:40:22.900
infrastructure
serverfault.com
974,900
Azure AD - Unable to Issue Tokens
Using a server back-end web application ("Authroization Code" flow) to allow users to authenticate to my app using Azure/MS logins, I ran into an odd (and google-unhelpful) issue - Following this guide (written only a few months ago) - https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-c...
The link in the unattended access tutorial should be replaced by your own. To see the consent dialog: Create your own app ID for your tenant in Azure. Create a local application using, for example Call https://login.microsoftonline.com/{tenant}/adminconsent?client_id={appID}&state=12345&redirect_uri={redirect-in-app} w...
1
1
1,466
2019-07-11T20:11:06.600
api_errors
serverfault.com
877,578
Nginx service is running successfully but returns apache default page?
i installed nginx on server(ubuntu 16.04) which already had apache2 and, done this following configuration, ->changed apache port 80 to 8888 so nginx would listen to 80 ->restarted apache and nginx in sequence. still getting apache default page when i type http://localhost i also stopped apache2 service and restarted n...
Its because nginx may have same DocumentRoot as apache and It's index.html is still in [CODE] . I had the same problem.
1
2
6,266
2017-10-09T10:55:37.267
infrastructure
serverfault.com
257,654
Best practices for keeping protobuf spec in sync with relational database (e.g. PostgreSQL)
1. We have a schema definition in Google's Protocol Buffers format that we use to generate code for different gRPC implementations (Python, PHP) 2. We have a database (PostreSQL) that is initialized from SQL files which map the Protocol Buffers structure. Problem: Frequently, the protobuf spec changes. This must be ref...
There might be another approach to this problem. The Ruby on Rails (RoR) folks approached the problem by creating migrations and defining the diffs there to ensure the SQL schema can be properly migrated without causing data corruption problems. I suspect DB schema has quite a few more constraints than the correspondin...
17
1
5,225
2020-01-17T13:26:18.017
database_errors
dba.stackexchange.com
387,226
Recovering from incorrect robocopy /MIR using NAS drives
Yes I know how stupid I've been and will severely chastise myself once this has been resolved. Just to be clear, I've done a robocopy using the /mir switch and files not present in the source have been deleted from the destination - this was not desired. I have an exact list of files that have gone, but I have no idea ...
Most of the NAS devices are based on Linux, and the Raid is normally created via MDADM. What you could try is to attach the disks to a Linux machine and see if you can assemble the raid and mount it (read only of course). Then you can apply standard recovery procedures. This works in many cases. You could also check if...
0
1
3,797
2012-05-08T19:26:12.020
database_errors
serverfault.com
807,789
Passive check is not updating the nagios site
The definition for the passive check seem to be corrected. I setup a cron job to run every 5 minutes and execute the script where the output is processed using: [CODE] These things are confirmed: [CODE] [CODE] [CODE] is set Check_dummy definition is defined like example [CODE] etc. After a full commit and updates, file...
I resolved this issue once I realized that the path within script that sends the output to the nagios.cmd file was not enclosed with "". Old: command_file=/var/spool/nagios/cmd/nagios.cmd new: command_file="/var/spool/nagios/cmd/nagios.cmd" That fixed the issue. Can't believe I missed that..
1
0
1,297
2016-10-07T19:27:51.270
infrastructure
serverfault.com
13,072
Access SQL Server from a different subnet
I'm creating a program which accesses MS SQL Server 2008, the problem is that I can run the program smoothly as an administrator account, even on different subnet computers and using terminal service (mstsc). But the program can not successfully access SQL Server if using another account, even though I've already inclu...
If this is installed on a windows 2008 server then you will need to check that the firewall is either disabled (not recommened) or that there is a firewall rule for the SQL port (1433 for default instance, 1434 and whatever is configured for a named instance).
2
1
3,601
2012-02-15T03:31:00.713
database_errors
dba.stackexchange.com
52,936
linux vnc : how to view the console?
I'm trying to figure how to view the console of a Fedora linux server by using vnc. In other words, I'm trying to see what a user normally sees as if they were physically sitting in front of the computer. As of now, I ssh in and run /usr/bin/vncserver, it seems to be starting ok. in the log file I have [CODE] When I us...
You need x11vnc to see the console session in VNC. Though it sounds like you're not actually trying to view the console session on the computer, which is the session the local user is seeing when they sit at the computer. It sounds like you need a desktop environment. To get this, look into your ~/.vnc/xstartup file an...
2
2
14,926
2009-08-11T20:47:09.007
infrastructure
serverfault.com
188,605
How to build a Software-Network-Tester?
The company where I work is building special twisted pair network cables. Those cables need to be tested for function and performance (100/1000 Base-T). Since we only produce small batches of those cables we do not own a hardware cable tester. The testing is currently done by using two PCs and transferring some data to...
Testing cables by transfering files is not ideal. You'll need to take the budget hit and get a hardware tester. Not only will it do a better job, you'll be able to test things like line noise, and get a pass/fail indication for ISO complient cabling. If you want to do software testing, you would need to look into the o...
0
4
601
2010-10-07T14:32:29.470
infrastructure
serverfault.com
111,803
Questions about releasing an application that has been built on an IDE on an educational license
If an application is made during education using an IDE that had an Educational License (provided by the institute), and later the developers decide to release it in the market as a product: Is it legal, and valid to do so? Is it valid to build that application through the free or commercial version of the same IDE, or...
1. Is it legal, and valid to do so? According to what you describe, assuming no code changes after the move from educational to commercial, I'd say, yes - might be worth asking in the IDE vendor forums though. 2. Is it valid to build that application through the free or commercial version of the same IDE, or the projec...
3
3
191
2011-10-01T04:55:20.460
api_errors
softwareengineering.stackexchange.com
1,053,143
I'm able to access router panel on 192.168.100.1, although I don't see such network in ipconfig
I am able to access the router's administration panel at [CODE] . [CODE] returns this: [CODE] How am I able to access [CODE] if there is no such network returned by [CODE] ? Why I don't see that network?
That's the WAN interface on your router. You can get to it because the traffic goes to your Default Gateway, which is the router.
-2
2
72
2021-02-10T16:54:28.123
infrastructure
serverfault.com
285,314
VMware View Connection Server - User not entitled to use system
I've been trying to setup a VMware View connection server. I feel like I am getting it close to having it working, but haven't had success yet. The current issue is that the connection server tells me I am "not entitled" to use the system after logging in with my domain credentials. I don't know why this is the case, b...
I guess I have this figured out now... Users come from Active Directory, as I thought. To add entitlements to a user, you must FIRST add a desktop source and then entitle a user (even a new user) to use the resource. It seems backwards to me, but that's the way it works.
2
2
9,045
2011-06-29T14:32:34.797
infrastructure
serverfault.com
816,081
Centos/Fedora cipher suites
I created a self signed certificate on my Fedora CLI server using the openssl command [CODE] From my understanding, this is how TLS works: Client sends cipher suite preferences to server Server chooses cipher suite, and also sends certificate and (rsa) public key to client client generates a Premaster key (mostly rando...
I think you are getting confused with X.509 certificates and TLS. TLS is just one (but the largest) application of certificates. The session key algorithm depends on the application. If, for example, you're using the certificate with the Apache webserver for TLS, then the list of possible algorithms is configured in Ap...
1
2
690
2016-11-21T11:43:58.773
infrastructure
serverfault.com
174,490
ODBC DSN Authentication Options
I was wondering if besides the standard username/password ODBC authentication, other options exist to authenticate an ODBC connection using an alternate method like PKI similar to SSH. Seems like a username / password not as secure if all I want is a server to server connection with no "real" user. It would seem more s...
Yes, there are other authentication methods. Most DBMS-supplied "native" data access drivers (ODBC, JDBC, ADO.NET, OLE DB, XMLA, and others) are limited to UID/PWD. MySQL (and possibly others) checks the client hostname and/or IP address as well as username and password. Some third-party data access drivers like the on...
1
0
412
2010-08-25T17:26:39.523
api_errors
serverfault.com
991,547
Try_files in 2 different locations
I have production (site.com) and development (dev.site.com) sites, located on the same server. I'm trying to configure Nginx for the following case: All images stored only on production. For example, [CODE] . I can create an alias for all images on development server link to production, and [CODE] will get image from [...
The [CODE] directive accepts file parameters which look like URIs. The pathname of the file is constructed by concatenating the value of the [CODE] directive with the value of the file parameter. With the two pathnames you are using ( [CODE] and [CODE] ), the common part is [CODE] . The variable [CODE] will be set to [...
2
3
1,205
2019-11-12T17:19:32.290
infrastructure
serverfault.com
160,672
MySQL query taking a long time
I have a performance issue with a MySQL query that takes a long time. I'm trying to figure out why. I'm using Django, a web framework that comes with ORM (Object relational Mappers) and basically generates my SQL statements. Of course I can also write custom SQL if needed. The query that works but takes a long time is:...
[CODE] Indexes: [CODE] Notes: [CODE] + [CODE] (or [CODE] ) leads to an explosion or rows, followed by an implosion. By moving the [CODE] to [CODE] , both can be eliminated (I think). [CODE] stops when it finds any record, and does not need to look at all matches. The subquery is 'covering' ("Using index"), hence very e...
0
1
1,204
2017-01-11T06:46:28.150
database_errors
dba.stackexchange.com
928,705
Centos: How to revert to a revert back to an earlier version of a package?
I have installed version 6.4 of filebeat and then I decided to revert back to 1.3. So I used the command 'yum remove filebeat-6.4.0-x86_64.rpm', to remove it, when I try to install filebeat 1.3 I get the error: [CODE] It looks like, the config files are not removed, so I tried to remove the path in the error message to...
I tried the following sequence and it worked: [CODE]
0
0
234
2018-08-30T13:06:39.983
infrastructure
serverfault.com
334,147
Can I use different endpoint URLs for the primary replica in a SQL Server Availability Group?
I am setting up a SQL Server Availability Group with three synchronous replicas within a cluster (one primary and two secondary) and an additional asynchronous replica from another cluster in another data center. I need to expose the primary replica using a public IP for the asynchronous replica in the remote cluster. ...
Is it possible to explicitly use different endpoint URLs for the primary replica for different replicas in an SQL Server Availability Group? No, it is not. There can only be one database mirroring endpoint (which is what AGs use) per instance. I want to ensure that only the remote asynchronous replica communicates with...
3
5
71
2023-12-17T18:08:08.850
database_errors
dba.stackexchange.com
58,029
missing folders from " inetpub/wwwroot "
I am testing a CFMX code by placing it on a remote desktop, and working on it form my local host. There is an existing folder "D:\inetpub\wwwroot\TEST.com" on the remote desktop. Then ,I placed my code in a folder "D:\inetpub\wwwroot\Aug24\TEST.com”. It was working well a few hours prior. But alas the folder "Aug24\TES...
No, things don't disappear from \InetPub without something having acted on them. I suspect that someone removed them or maybe something happened in your CF IDE that torched them. Check with your admin to see if they know of some action, be it manual removal or some automated process that they have monitoring the folder...
1
0
1,164
2009-08-24T16:32:36.083
infrastructure
serverfault.com
167,235
How can I estimate the entropy of a password?
Having read various resources about password strength I'm trying to create an algorithm that will provide a rough estimation of how much entropy a password has. I'm trying to create an algorithm that's as comprehensive as possible. At this point I only have pseudocode, but the algorithm covers the following: password l...
Appendix A on p46 of NIST SP 800-63 talks about the work of Claude Shannon , who estimates password entropy using a number of bits. Indeed, this is the document that the XKCD cartoon uses to calculate the entropy bits. Specifically: the entropy of the first character is taken to be 4 bits; the entropy of the next 7 cha...
14
9
5,989
2012-10-02T19:47:47.867
api_errors
softwareengineering.stackexchange.com
368,810
Depending on Dependencies
[CODE] In this code (redacted for brevity), the [CODE] class has two dependencies that it gets via constructor injection. It has a third dependency, on [CODE] , where property injection is available but a default is created via the line [CODE] in the constructor. I suppose the view was that [CODE] is a suitable 'local ...
Yes, it does look a bit odd for a number of reasons. Mix of property and constructor injection Is ISerializer a real requirement if its only used in ResponseFactory? Always create a ResponseFactory even if its never used? What happens if I switch the ResponseFactory around mid lifecycle of Connection? Standard 'Code Sm...
1
1
187
2018-04-04T10:43:36.383
api_errors
softwareengineering.stackexchange.com
1,011,317
Opening a folder with a certain files forces a return to the parent folder
I have this unbelievable behaving in this constellation: Windows Server 2019 Standard Desktop running in the trial version the 2nd day. A fresh copy, without additional software. Just added the server to the domain. The drive [CODE] is mapped to an existing SBS 2011 while the login process. I can reproduce it with any ...
The reason is the Windows "Real Time Protection". I disabled it in the "Local Group Policy Editor": [CODE] Please take into account that this may be a security risk! For the moment I don't have any other solution. Any suggestions/comments are welcome. Especially, I would like to know what is exactly the problem with th...
0
0
56
2020-04-07T16:54:48.920
infrastructure
serverfault.com
72,134
Fast hamming distance queries in postgres
I have a large database (16M rows) containing perceptual hashes of images. I'd like to be able to search for rows by hamming distance in a reasonable timeframe. Currently, as far as I properly understand the issue, I think the best option here would be a custom SP-GiST implementation that implements a BK-Tree , but tha...
MOAR ANSWERS! Ok, I've finally taken the time to write a custom PostgreSQL indexing extension. I used the SP-GiST interface . This was fairly challenging, mostly because Posgres is big . Anyways, as usual, it's up on github here . Performance-wise, it's currently ~2-3 times slower then the pure-in-memory implementation...
22
15
10,116
2014-07-23T08:55:02.803
warehouse_errors
dba.stackexchange.com
338,731
Is it a good programming practice to store java properties keys in ENUM for validation once application starts?
Sample Java properties file which is read by the properties class [CODE] Custom class which extends the java.util.Properties class adding behavior to throw an exception when a requested property is not available. [CODE] Load properties file and retrieve the key value pairs for initial validation. [CODE] Enum using keys...
The answer to your question would depend on a few things: The biggest being: Will you ever need to add/remove a key at run-time? If so, then an enum is unlikely to be the way to go - its values are supposed to stay constant, and this will lead to ugly code later on. Accessing the keys from the [CODE] object directly wo...
3
2
12,066
2016-12-22T21:59:55.027
data_quality
softwareengineering.stackexchange.com
305,107
How can I backup / restore my Sql Server 2008 Database?
I have a database that is around .. 20ish Gig. I need to (manually*) back up this database, 7zip the backup and then DOWNLOAD this backup from my server to my desktop. (Rinse, repeat sorta often). I knew that the size would be big, I split my tables into a number of [CODE] and [CODE] :- So the files [CODE] and [CODE] a...
Sure, you can backup specific filegroups/files. See http://technet.microsoft.com/en-us/library/ms186865.aspx for full details. Backing Up Specific Files or Filegroups [CODE] You can also add [CODE] to compress the backups prior to writing to disk.
4
4
384
2011-08-26T00:48:47.320
database_errors
serverfault.com
1,023,529
Add IP addresses to systemd-network besides netplan
On an Ubuntu 20.04 server, netplan is used to configure the network. It can configure ordinary static IP addresses but I need additional IPv6 addresses with preferred_lft=0. Netplan can't do that (there's an open bug for that). So I found out that it actually goes like this: Netplan reads its own limited config and tra...
Seems the old ifupdown functionality has been recreated for systemd-networkd. The package networkd-dispatcher , pre-installed on Ubuntu Server 20.04, lets me add a script to /etc/networkd-dispatcher/routable.d/ that is executed when a device comes up. In that script I can run [CODE] commands as I need. It is called on ...
0
1
1,648
2020-06-30T20:36:31.637
infrastructure
serverfault.com
508,479
Windows Event Viewer is slow on newer versions of Windows
The modern Event Viewer application that you get on all versions of Windows since Vista is so much slower the previous version that was on Server 2003 and XP. I know there is much more functionality in the newer version but most of the time I just want to quickly scan the various different event logs as quickly as poss...
Helge Klein has a great blog post showing how to do add the earliar version of the MMC snapin back - How to Get Back Windows XP’s Fast Event Viewer in Windows 7 . Basically you have to run the command regsvr32 els.dll from an elevated privilege command prompt and it will then show up as an MMC snapin called Classic Eve...
16
20
9,356
2013-05-17T00:35:44.950
infrastructure
serverfault.com
63,396
apache authentication using forms
I am having issues trying to get users to authenticate against apache using mod____auth____ldap. What I would like is for users to authenticate using a form rather than the default dialog box that apache normally displays. The server 'hosts' a number of applications. If a user tries to access these application without ...
Apache would not be able to display a login page by default. When you do a basic authentication, what it does is send a 401 status code back to the browser which pops up the username/password dialogue. Any sort of login page has to have the authentication processing done on the application side. As an alternative, you ...
0
2
2,089
2009-09-08T15:55:52.960
api_errors
serverfault.com
499,963
Where does postfix store messages awaiting relay?
If I specify a relayhost in main.cf, in what path (by default) does postfix store that message before and during the process of relaying it on to the next server? And is there a parameter that allows that path (or paths) to be customized?
Postfix will store mails waiting to be sent in the [CODE] . See [CODE] for the current value.
1
4
1,571
2013-04-16T20:14:23.840
infrastructure
serverfault.com
6,701
How to keep a subsetted value for calculating mean
I am currently learning R and I have to solve an Issue were I have to extract values from a data set which are from a specific month and from this values I should calculate the mean Temp. I did it like that: data[data$X..Month.. == 6,] mean(data$X..Temp.., na.rm=TRUE) It gave me the mean value but without taking my fir...
To just get the mean for month 6: [CODE] You were nearly there but didn't assign your subset to a value, if you had: [CODE] that should work.
0
0
55
2015-08-05T10:53:17.293
data_quality
datascience.stackexchange.com
54,998
Ways of filtering erronous email addresses using NLP?
Background: I have a database of user information, in which they registered through a website. Objective: I would like to filter out erroneous emails, not by if it is malformed (i.e. it's missing an @-sign), but rather by "weird strings" in the "local-part" of the address. So examples of erroneous email address are thi...
More important than the algorithm is having an existing corpus of labeled data. Most ML algorithms need to train on a huge amount of text before they start producing useful results (for example a NLP algorithm was trained to generate fiction by reading the entire Harry Potter series). Do you have a list of known good a...
0
1
182
2019-07-03T17:41:19.243
data_quality
datascience.stackexchange.com
46,881
Configuring NTFS file system for performance
We have an application that is planning to store around 1.1TB of XML files which average 8.5kb in size. These represent a rolling 18 months of data, with around 200,000 new files being created every day. Each file will be written only once, and then has a 3% chance of being read a small number ( What NTFS options are o...
I would also add: Turn off disk defragmentation. Change block size to 16kb so each file is written into a single block. Rational for this: You are wanting to write 1.7GB of data a day, in 200,000 files. Assuming that these files are writen over a 24 hour day, this means around 3 files a second. This does not seem to be...
10
7
14,821
2009-07-28T09:58:37.797
infrastructure
serverfault.com
37,098
SQL Server 2008 SP2 randomly slow down query
I am using SQL Server 2008 SP2 and I'm facing an issue with a particular query. It is taking 4 sec to 4 min in execution. Please suggest the possibilities. There is no scope of query optimization. Indexes are also proper. [CODE]
The query taking a lot longer to run some times could be due to I/O or memory issues. If it is table (or index) scanning over a large amount of data and that data is sometimes in memory and sometimes has been pushed out by other data, then that could explain the speed difference of seconds to minutes: when the data is ...
1
1
1,063
2013-03-20T10:28:16.063
database_errors
dba.stackexchange.com
281,422
After Windows 2008 updates server won't boot / RAM issue?
We have a Win2008 R2 server (64-bit) used for testing/development. This server gets shutdown at the end of most days and if there are any Windows updates then these are installed. Last night there were 18 updates applied when the server was shutdown, but this morning the server would not start. It gets past post, trys ...
I can't see that updates could possibly cause you RAM issues and cause your computer not to boot, RAM is handled by the memory controller on your i7 chip and by the bios on your motherboard, neither of which can be in any way touched by updates; the processor has no writeable memory and the bios is effectively a sepera...
0
1
854
2011-06-17T09:29:36.993
api_errors
serverfault.com
191,113
Excessive RAM consumption in MySQL Cluster
at this moment I have configured a cluster that has 5 nodes: 2 data nodes 2 SQL nodes 1 node manager My file.config.ini is the following: [CODE] IN THE NDB_MGM REPORT, IT SAYS THE FOLLOWING: [CODE] Each data node has 2gb of ram, it is assumed that with this configuration should not consume more than 500 mb of ram the n...
The 429496 transaction records consume around 400 MBytes (around 900 bytes per record). The operation records consume also around 400 MBytes, around 300 bytes in transaction coordinator and 500 bytes in ldm thread. In addition it uses memory for a lot of other buffers such as REDO buffers, SEND buffers, job buffers. Th...
1
0
739
2017-11-17T00:50:31.103
database_errors
dba.stackexchange.com
249,088
SQL Server edition update
We have a database in SQL Server 2012 with data of 1.3 TB in size. Our current edition is Standard and configured in a failover cluster mode. We are planning to upgrade our edition from Standard to Enterprise. So my questions are: Is it possible to upgrade without downtime? As I know maintenance plan need to execute in...
Is it possible to upgrade without downtime? As I know maintenance plan need to execute in one node. In my case can I execute it on the passive node without downtime? The services will need to be restarted to pick up the new settings. You will also likely be instructed to restart your server. However, upgrading the seco...
2
2
39
2019-09-18T18:24:28.737
data_quality
dba.stackexchange.com
389,950
IP Config resets to default settings in Linux every night
I have a linux server (centos 5) which for the past 2-3 weeks has been resetting it's ip config information to a local ip (192.168.x.x). In /etc/network/interfaces I have: [CODE] So, i would have thought this would sort the problem. I have also tried running a reset of the details at 7am each morning with a cron: [CODE...
The fact that dhclient-script is being called makes me think that NetworkManager service is running, /etc/network/interface's DHCP=no is keeping the iface scripts from being rewritten the way that resolv.conf is, but it isn't preventing dhclient-script from running ifconfig commands and getting at the actual interface ...
0
1
6,853
2012-05-17T09:21:07.940
infrastructure
serverfault.com
612,823
fsck.vfat auto repair on error
I use Ubuntu 10.04 on an embedded device. I have a CF card of 2GB formatted in FAT32. From time to time, the device is powered off while data is written to the FAT partition. As a result, the partition goes into read-only mode. I would like to know how the partition can be automatically repaired in such a situation, th...
Using a filesystem with journaling, e.g., ext3, xfs, etc. will check your CF card partition's filesystem journal entries for errors once you power it back on. Vfat doesn't have journaling capabilities. You should look into the write frequency of vfat vs ext3 vs ntfs (ntfs has journaling but limited linux support). If s...
1
1
2,410
2014-07-15T22:38:19.490
infrastructure
serverfault.com
723,185
Restoring iptables at boot (rc.local)
I have saved my iptables rules using the [CODE] command and i am trying to restore these rules when the machine boots up. I have added the command [CODE] in the [CODE] but it doesn't fire up the rules. I tried directly running the command in the terminal and it worked, so i know there is nothing wrong with the command....
I'm afraid time has moved on, and F22 is one of those cherishable distros using the adorable new [CODE] to start things up. One of the many happy enjoyable side effects is that [CODE] is no longer run (or to be more precise, I haven't been able to make it run reliably) so that won't be helping. Put your firewall rules ...
6
8
5,929
2015-09-18T06:06:06.577
database_errors
serverfault.com
519,988
how to apply RDP session timeouts to a local group in Windows Server 2008 R2
Windows 2008 R2 64-bit, not a member of Active Directory. Created local group named RDP_Session_Settings. The group has a number of local users in it, but not all local users that exist on that server. How can the User Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Sess...
MLGPO can be applied to Administrators, Non-Administrators or to individual users, but not to any other local group. If you want these settings to apply to individual users who are Non-Administrators but not to all of the users who are Non-Administrators then you're going to have to create a LGPO for each of those user...
0
1
1,114
2013-07-01T18:25:18.510
api_errors
serverfault.com
304,205
windows authentication issue with asp.net
i have an asp.net application that uses windows authentication. however i am having trouble with it: [CODE] when i run it, i am getting this error: [CODE] does anyone know what i am doing wrong?
That doesn't look like it's related to authentication - the yellow screen of death doesn't even mention authentication, and quite explicitly points to your code. It mentions SQL so have you got your connection strings set up right? Alternatively, [CODE] sounds like an event - are you handling it correctly or have you e...
0
1
466
2011-08-23T16:43:10.153
api_errors
serverfault.com
293,920
redirecting ports, and allowing full access to the internet for the local network?
This is all the rules I currently have on the server: [CODE] I need some help with some really basic needs, all I need to allow in this server is people to be able to connect to it on ports 1513 and 6112 in and out as well as being able to ping the server nothing else is need on the firewall for external access. eth0 i...
You're missing a second line for each of the PREROUTING commands. You've changed the destination IP, but there's nothing in the FORWARD table to actually allow the traffic. Try the following extra commands: [CODE] [CODE]
0
0
228
2011-07-25T17:36:57.913
infrastructure
serverfault.com
60,755
Verify mysqldump backup is corruption free
We've got a cron task backing up our Database using [CODE] - my main concern is corruption, short of manually importing and checking the backups each time whats the best way to check / verify a backup is corruption free ? Background: We are running mysql 5.5.* and InnoDB. We are running [CODE] straight from the server....
There are two things you want to consider BACKUP PROCESS There really is no substitute of doing a restore. This is just a replay of a mysqldump. If you need to do PITR , you may need to run mysqlbinlog against applicable binlogs and play the events up to the date and time needed. You should do this periodically in case...
11
6
27,246
2014-03-12T01:34:01.100
database_errors
dba.stackexchange.com
724,757
FreeBSD VMware and CAM status: SCSI Status Error
I'm running a FreeBSD 10.1-RELEASE-p19 on a VPS (VMware). My ISP is experience a rapid data growth, and these messages spontaneous started to show up in our logs a week ago. [CODE] Sometimes the server is totally losing contact with the storage, and then panic and restarts. This often occur every even hour, presumably ...
If you are using VMWare, thus mpt(4) is purely virtual, I would suggest changing it to something more simple, like ICH10. Otherwise I suggest you play with [CODE] , either increasing or decreasing queue length. If you'll chose to reprovision disks using another driver, notice that SAS -> SATA controller change may resu...
2
1
4,847
2015-09-25T08:12:41.373
database_errors
serverfault.com
88,705
Cant connect to PosgreSQL through PG Admin: "Peer authentication failed"
While I try to connect to Postgres through PGAdmin I get the following error: [CODE]
You're trying to use [CODE] authentication (the default for unix sockets) from a user other than the user identity you are connecting as. You could: Create a user with the same name as your unix user and connect as that; Change the authentication mode in [CODE] ; [CODE] then connect over TCP/IP with [CODE] password aut...
-2
3
1,734
2015-01-07T07:26:45.553
api_errors
dba.stackexchange.com
317,625
I deleted my database MySQL by mistake
I am trying to backup an old database, but by mistake I have deleted server database.. the one thing I have done is I have copied MySQL data folder. Is there a way to restore my old database with that? database - MySQL os - centos backup I have - ibdata1, log file 0 and 1,database folder. I tried changing the size of t...
if your database tables were created as MyISAM tables then copying the directory and changing permission the owner/group to mysql should work, for innodb type there should be other files in the mysql root directory should be copied, so check that you have copied all files and permission of the files.
4
2
1,192
2011-10-02T05:33:06.687
database_errors
serverfault.com
391,617
Manage table relationships in Java dynamic web application that accesses a database, without using any framework
I'm developing a web application for academic purposes. What i have to do is a simple website which keeps track of realties along with their respective owners and the tags they are bound to. The application takes data from a MySQL database and must include the following features: List all realties List all realties wit...
Answers to this are going to be necessarily opinionated. And in your case, since as you say you don't need to worry about scaling, anything works, really. My opinion on it: prefer to expose ids in your model instead of objects. Reasoning: any part of your code can call SomeEntity.getById() if you have more complex non-...
0
2
593
2019-05-08T16:53:20.410
database_errors
softwareengineering.stackexchange.com
915,395
How to connect to a Remote Windows Server via internet without using Static IP?
How to connect to a Remote Windows Server via internet without using Static IP? I have a Windows Server 2008 R2 and i want to make it accessible to my customers so they can [CODE] which they can access from anywhere in the entire world via internet. Common thought solution You might say that purchase a static IP for it...
You can try to use a dynamic DNS service and connect your server via different means to the internet and then register the current IP address with the DynDNS service. However, in many cases that might fail. As an example, using a internet dongle to connect to a mobile provider will almost certainly fail because they ar...
0
2
454
2018-06-06T07:19:28.807
infrastructure
serverfault.com
233,390
Execution plan for staging In-Memory tables estimate row count =1
We are using In-Memory tables (durability schema only) as temporary staging tables for part of the ETL process. the nature of these staging tables is empty most of the time. The ETL process executed per organization asynchronicity. Problem: The execution plan is generated with estimate row number = 1 (probably the tabl...
Are you using memory-optimized tables, or memory-optimized table variables ? Memory-optimized table variables suffer from the same issues as "regular" table variables: the cardinality is assumed to be very low. The other potential issue with using memory-optimized tables as a destination for staging ETL, is that all wr...
0
3
135
2019-03-28T13:35:35.173
data_quality
dba.stackexchange.com
12,580
Easily show rows that are different between two tables or queries
Imagine you have two different tables/queries that are supposed to have/return identical data. You want to verify this. What's an easy way to show any unmatched rows from each table just like the example below, comparing every column? Assume there are 30 columns in the tables, many of which are NULLable. When there is ...
You don't need 30 join conditions for a [CODE] here. You can just Full Outer Join on the PK, preserve rows with at least one difference with [CODE] and use [CODE] to unpivot out both sides of the [CODE] ed rows into individual rows. [CODE] Gives [CODE] Or a version dealing with the moved goalposts. [CODE] For tables wi...
20
17
117,841
2012-02-09T19:51:19.473
data_quality
dba.stackexchange.com
640,511
SSL/HTTPS issue (no padlock icon) on Safari when using ngixn+unicorn
I have an application that runs on nginx+unicorn. This is how my server block looks like [CODE] I'm running into a weird issue where Safari doesn't show the "Lock" symbol for the secure site. All other browsers show it (tested on Chrome and Firefox). Attaching screenshots for reference. Mozilla Firefox Google Chrome Sa...
I figured out the reason and it has got nothing to do with my server configuration. Apparently, an unsafe script was injected dynamically by one of the libraries I was using. The script was using http not https . Firefox and Chrome give an indication that the page contains unsafe scripts, Safari on the other hand, does...
0
1
3,097
2014-10-29T12:26:54.987
infrastructure
serverfault.com
155,229
Do I face corruption issues?
I have found out the [CODE] has 15 entries. 14 of those are last updated in 2014 and of type 7 ("Deallocated"). One entry is of type 1 (823 or 824 error) with a count of 1 and last udpated in June 2015. Last [CODE] was ran on Nov. 9th using a maintenance plan. The only output I have is the history of this job saying it...
If this returns nothing, then your database is fine. [CODE]
1
3
1,342
2016-11-14T18:25:18.730
data_quality
dba.stackexchange.com
148,315
Auto increment primary key inside a number range
I have following table in SQL Server 2012: [CODE] K1 and K2 are primary keys. I want to achieve that K2 is automatically incremented inside the number range of K1. An usual query should look like: [CODE] A trigger should now check the highest K2 inside the number range of K1 ( [CODE] ) , and add one to it. I tried foll...
This example should get you what you need, or at least it worked in my testing. Setup [CODE] Testing [CODE]
0
2
943
2016-08-30T12:43:20.917
database_errors
dba.stackexchange.com
371,025
Installing Yum in Fedora 12
For some reason I do not know, several default packages in my Fedora 12 installation have gone missing, removed or uninstalled. Now, reinstalling fedora 12 is not a good idea in my current situation. Can someone guide on how can I install yum package using rpm? I mean, I can't find the repository for yum. Thank you ver...
You might be in for a ride, especially if you're missing dependencies. Here is a page where you can view mirrors of the RPM and its dependencies, and search for the dependencies you don't have, in case the following doesn't work. [CODE]
0
1
2,235
2012-03-19T07:19:51.483
infrastructure
serverfault.com
580,062
Nginx reverse proxy server not serving cached homepage correctly
I've been configuring a new server for a web development client recently, and run into an interesting problem. The site is fairly high-traffic, but the CMS is fairly heavy and inefficient at generating pages in realtime. This slows page loads down fairly significantly when a page needs to be generated directly from the...
Your [CODE] is trying to load the file you specified, [CODE] , which doesn't exist. Remember that you need to specify the path relative to the document [CODE] . [CODE]
1
1
522
2014-03-05T18:12:45.590
api_errors
serverfault.com
150,662
Read data with group by 100000 distinct values on 36 million rows
I am looking for sub second solution for reading data from a billion row table with 8 different columns. I tried using mysql but it gives sub-par performance. My machine config is :12 core cpu 1.4 Ghz xeon 64GB RAM. I tried using vertica, citus with postgres, scyllaDB and spark but nothing worked. Query: [CODE] Table S...
Shrink datatypes -- [CODE] takes 4 bytes; probably overkill for your data. It is usually ill-advised to split a DATE into multiple columns. Normalize any repeated VARCHARs. You have nothing limiting the number of rows you need to look at, so the query must read the entire table. Unless you have magical disks, you must ...
0
1
351
2016-09-26T14:31:01.700
database_errors
dba.stackexchange.com
1,046,353
How does iptables filtering in the FORWARD or INPUT chain interact with NAT?
This page seems to suggest that, if there is a rule in the [CODE] chain of the [CODE] table that translates destination [CODE] to [CODE] , then the rules in the [CODE] and [CODE] chain should match on [CODE] , not [CODE] . What if one wants to implement an order of operation more like what's outlined here ? That is, ho...
You don't need any [CODE] rules. You can use the [CODE] match to filter the packets by original (before translation) destination/source address/port number. The [CODE] is a successor of the older [CODE] match. It can check various additional metadata, related with [CODE] (and NAT). Couple of examples: [CODE] For more d...
2
4
4,279
2020-12-16T01:58:34.423
infrastructure
serverfault.com
20,539
What's wrong with this MySQL query?
I am getting a syntax error for my MySQL (5.5.24) query. The error is: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''topics'( 'topicid' int unsigned not null auto_increment primary key, 'creator' at line 1 The query is: [C...
You are using the wrong quotes. Use ` instead of ' [CODE] I also would recommend specifying the engine.
4
4
2,844
2012-07-08T14:43:28.947
database_errors
dba.stackexchange.com
275,725
IPSec VPN between Amazon VPC and a Watchguard XTM?
I have a branch office behind a Watchguard XTM that needs VPN into an EC2 VPC. I am unfamiliar with Watchguard and am unable to find all of the knobs and dials in the flash admin interface to bring it in line with Amazon's expectations. After much ui frustration, I managed to create configurations for both expected tun...
Wondering if you had any luck? I found an Amazon support thread that basically says Watchguard can't support BGP over the VPN tunnels, but they are looking at adding the support in a future release of their firewall software (Watchguard feature #RFE41534). See https://forums.aws.amazon.com/message.jspa?messageID=198172...
2
3
3,261
2011-05-31T23:55:13.387
infrastructure
serverfault.com
499,262
How to configure Inn2 and nnrpd to authenticate using SSL?
I'm trying to set up a local usenet server, Inn2, with authentication over SSL, so that readers (clients) aren't required to send their passwords in cleartext. I generated a self-signed certificate using instructions similar to those from the [CODE] man page, http://linux.die.net/man/8/nnrpd , [CODE] I'm running CentOS...
When you change the port in [CODE] you tell [CODE] to listen on port 563 but it will not enable SSL automatically. INN2 has no support to listen for separate SSL connections on port 563. You have to get [CODE] to listen on that port manually. From the nnrpd manpage: [CODE] Btw. I often had problems with the SSL impleme...
0
2
1,321
2013-04-14T17:10:58.747
api_errors
serverfault.com
51,448
Unable to specify alterntive credentials using 802.1x wireless connections on Windows 7
Using Windows 7 I am unable to connect to the wireless network using 802.1x settings. I have configured it exactly as in Vista using certificates and checking the use alternative credentials check box - however it just prompts for domain username each time and won't let me specify an different username.
I had a similar issue for my school network connection and followed the steps that were given on the school's website. I would recommend you contact your network administrator to get the details of the wireless connection and follow the steps shown in the link below to change the alternative login credentials.. Hope it...
0
1
2,196
2009-08-07T13:32:49.387
infrastructure
serverfault.com
298,404
Too frequent checkpointer
I got a few questions about checkpoint process and parameters for checkpointer. My job is to optimize a large BI system. While testing and learning, I found articles about tuning base parameters. I learned that the cache is not emptied after each commit command. There are different jobs, for example a checkpointer. Whi...
If checkpoints occur too frequently, write performance will suffer, because the same blocks get written to disk again and again. Increase [CODE] like the hint to the message (that you didn't show us) tells you. For old database releases (v9.4 and older), the parameter is called [CODE] .
2
1
1,200
2021-08-22T21:11:22.703
pipeline_ops
dba.stackexchange.com
531,947
VPS going down every sunday
My website is running on vps and keeps going down every sunday for an hour or so. Hosting provider says there is nothing wrong at his end. Can anyone suggest what could be the possible problems and in which direction should i move further to find a fault.
Whether you trust the hosting provider or not, there are some fairly easy ways to determine what is up in most cases. First, look at the system log around the time it goes down and around the time it returns. If you see (for example) that it is booting right before it goes up, but don't see a log that it shut down, pow...
-5
6
84
2013-08-19T09:30:34.383
infrastructure
serverfault.com
431,381
Creating a contract for a UDP connection
I'm developing a system in [CODE] who consists in a desktop application running a UDP server and a [CODE] app and this app sends data (byte array) to be read by the desktop application with commands and parameters for these commands. The goal is to achieve the best possible performance. With that in mind, I thought abo...
Using the first byte (or bytes) of a raw data stream as an indicator for the type of the following data is pretty simple and straightforward, it is a standard approach which is used successfully since several decades in different situations. Note the performance of this system will mostly be affected by the number of b...
0
3
128
2021-08-26T00:09:53.570
api_errors
softwareengineering.stackexchange.com
402,083
Why powershell runs executables in separate window?
On one of my servers (2008 R2) powershell refuses to run executables without extension, so typing cmd (or &cmd) in command prompt results in folowing error message: The term 'cmd' is not recognized as the name of a cmdlet Invoking executable one of the following ways pops out separate window (which executes asynchronou...
From our comment exchange, it appears that the System Environment Variable [CODE] is not set. This is preventing the OS from determining which file extensions should be checked when searching for executables. This system variable is derived from the the following registry value: [CODE] If this value is missing, you may...
4
2
2,440
2012-06-25T16:15:04.097
infrastructure
serverfault.com