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
405,070
How can I check that DFS is replicating correctly?
Possible Duplicate: compare the contents of two folders that are replicating by dfs We use DFS to replicate files to a Disaster Recovery server. We have a task where we check the DR systems are working correctly. I have been asked to write a document to confirm DFS replication is working. Both servers are Windows 2008 ...
Here's a VBScript , and here's a PowerShell script. If they don't do what you need as-is, I'm sure they'd give you a head start at least.
2
0
6,322
2012-07-05T15:26:32.697
data_quality
serverfault.com
118,628
Eliminating Dependencies vs Eliminating Redundancy
Upon my assignment to a project, I discovered that many message classes were received and then kept intact and passed around inside the receiving application. When these messages changed, code throughout the entire application had to be changed. Since this problem, I have gotten into the habit of converting messages to...
I'm assuming that an "external message" is something that's coming over a network protocol, e.g. RPC, SOAP, Protocol Buffers, etc. In that case, it's absolutely a good thing to maintain two separate models. One for messaging, one for domain. It's not unusual to have yet another model for presentation and another model ...
6
7
608
2011-11-08T20:53:50.797
api_errors
softwareengineering.stackexchange.com
89,926
Material Science dataset with feature-dependent inputs
I'm dealing with a material science/chemistry dataset where I have a bunch of duplicates inputs formulas corresponding to different values of a specific features like temperature. It looks something like this: [CODE] of course, I want to perform a regression task here, my question is, how should I treat the inputs? I w...
You may want to take a look at what we did in the SIMDAVIS dataset (you are welcome to view/download the dataset in the "Data" tab of the dashboard). There we assigned a sampleID to each sample . Some judgment based on scientific insight was necessary to decide what it takes to consider that something is a different sa...
1
0
20
2021-02-25T16:18:02.907
data_quality
datascience.stackexchange.com
196,228
http://localhost not working
i am using xampp 1.7.1 PHP 5.2.9 pinged localhost on cmd and it showed [CODE] hosts file has [CODE] any other ideas? http://127.0.0.1 and http://ipaddress works
[CODE] is the IPv6 version of localhost , so it is working. Localhost always translates to the loopback IP address [CODE] in IPv4, or [CODE] in IPv6.
-2
1
12,085
2010-10-29T16:24:00.507
infrastructure
serverfault.com
986,128
htaccess How to RewriteRule with special characters?
I have a website for which I would like to redirect the following requests : [CODE] To : [CODE] Basically, the rule is whenever the requests starts with wwv , then add apex/app/ right before and keep everything the same. In my [CODE] file I tried : [CODE] But it's not working. First the condition doesn't work, and seco...
[CODE] This rule block will never match the stated URL for several reasons: The regex [CODE] (a dot inside a character class) matches a literal dot, not " any character ". The character class negates the dots special meaning. So, [CODE] matches 1 or more dots. You should remove the square brackets, ie. [CODE] in order ...
1
1
8,269
2019-09-30T01:31:55.520
infrastructure
serverfault.com
177,087
SSIS data flow task failed for no reason
An SSIS package keeps failing for no reason. There are only three lookup transform components in the package (besides the source and output component), two running in partial cache mode and the other in full cache mode. Each lookup will need to find records among tens of millions of entries. When the full-cached compon...
Think about how the reference and input data sets are configured. The reference data set (smallest set) should be the only cached data set, while the input rows(i.e. the 10M) pass through that execution tree's buffer. Also, running parallel lookups on different subsets of the data and aggregating all outputs with a UNI...
2
0
1,834
2017-06-23T05:44:45.673
database_errors
dba.stackexchange.com
142,313
Support multiple frameworks in a JavaScript library
I have a small JavaScript library that I've written that depends on prototype.js. I'm considering creating a new version that would use jQuery instead. The goal is to make it easier for users to install ( choose which framework you use! ) while not making it harder for me to maintain. The main issue I see is that I wou...
You don't. You do not build libraries on top of frameworks. You just support standards, like the DOM and ES5.1 Those standards work in modern browsers, if the users of libraries want to support legacy browsers tell them to use any of the standard polyfills.
3
3
529
2012-03-30T20:45:48.043
api_errors
softwareengineering.stackexchange.com
750,773
Windows Server vs Ubuntu base CPU usage for AWS EC2 burstable instances
I recently switched from a small VPS provider to AWS EC2. My traffic usually comes in bursts throughout the day and I therefore concluded that running multiple t2.micro instances would be by far the most economical solution. For those who don't know about it: micro instances are very cheap and you get 10% baseline usag...
I have an Amazon Linux server (no GUI), which is somewhat similar to Ubuntu, but not the same. The CPU utilization when the server isn't serving requests is around 0.03%, and I get to maximum CPU credit fairly quickly. Eight t2.micro instances comes to $86/month, one m4.2xl is $350 a month. If you go with the t2 instan...
-1
2
1,028
2016-01-21T14:04:37.363
infrastructure
serverfault.com
331,057
mysqldump > unknown table engine 'PERFORMANCE_SCHEMA'
I can not backup my databases by using myslqdump , here's the message: [CODE] This error-message doesn't disappear, also after we've restarted the service :-( Our dumped file seems to be corrupted in some way...
This error seems to be related to the MySQL-Bug #58406 (status: verified). For the moment, you can ignore that message. The process skips the table and continues as always. Whatever, if you want to make sure that your database has not been corrupted in consequence of this error, simply force [CODE] to ignore all perfor...
5
5
5,678
2011-11-15T11:23:03.840
data_quality
serverfault.com
215,617
How to link disaggregate data to aggregate data when aggregation adds 0/NULL values?
I have a table sensor_data in a PostgreSQL 9.6 database: [CODE] Indexes: "station_logs_pkey" PRIMARY KEY, btree (id), UNIQUE CONSTRAINT (station_id, datetime_bin, category_a, category_b), btree (datetime_bin) btree (sensor_id) If the value for a combination of [CODE] is 0, there is no row. We're aggregating this data t...
It sounds to me like you want the TimeScaleDB extension with a hypertable and 15 min time buckets. https://www.timescale.com/ It's a free and open source project, like Pg. And it's actively developed. https://github.com/timescale/timescaledb
1
0
171
2018-08-22T15:54:16.993
database_errors
dba.stackexchange.com
176,951
SQL server unable to create user with dash in domain name
I am in the process of creating a proxy user in SQL server. I run the below SQL but it failed with the error because my domain name has dashes in it. [CODE] Msg 15006, Level 16, State 1, Line 1 'ABC-SEN-DEA\proxyssisuser' is not a valid name because it contains invalid characters. Please help how to rectify this error.
You have a misconception in your thoughts. A Windows login which is used to create a SQL Server login does not require a password. Solution When you create a SQL Login using a Windows account you have to use a different syntax. [CODE] Reference: CREATE LOGIN (Transact-SQL) (Microsoft) Explanation When you link a Window...
2
5
4,070
2017-06-22T03:21:32.867
database_errors
dba.stackexchange.com
382,699
Processing data in a cluster with multiple tasks
The goal is to provide a scaleable system implementing multiple data processing tasks which can be seen as a graph. Data objects will travel that graph. Most object will visit the same nodes in the same order, but depending on the data object properties, the order as well as the included set of processing taks can vary...
I don't think you've correctly identified option 2's downside. Having each node be capable of doing everything doesn't mean you can't do resource sharing. It means every node has to be capable of every task. That right there can be a hindrance. You don't create specialty nodes that focus on one job. You create nodes th...
1
1
386
2018-12-08T19:10:34.947
pipeline_ops
softwareengineering.stackexchange.com
39,840
Hard drive fail - How to regain confidence on the drive or make some use of it
After a hard drive fail (lots of corrupted sectors) I reformat it, but the drive give me no confidence to use it in production. Is there a tool to stress test so I know I can use it? In which ways would you use the drive so if it fails again you don't end up with data loss?
The problem is that if a drive has failed you once, you can't trust it. In almost every case, the value of the data you are proposing to store, plus the potential costs of loss or recovery if that data gets lost, exceeds the cost of a new drive. If the data you are proposing to store has any value to you at all, don't ...
14
20
1,019
2009-07-13T13:12:46.590
data_quality
serverfault.com
177,675
Questioning pythonic type checking
I've seen countless times the following approach suggested for "taking in a collection of objects and doing X if X is a Y and ignoring the object otherwise" [CODE] The alternative implementation below always gets flak for the performance hit caused by type checking [CODE] However, it seems to me that in 99% of scenario...
The reason you should use the first version is performance. Raising an exception is most often cheaper than calling a method or a function. The first argument you present for using the second version is not quite valid, since using [CODE] also would silently prevent the call to [CODE] and no exception would be raised. ...
5
6
364
2012-11-29T14:23:45.967
api_errors
softwareengineering.stackexchange.com
246,265
Force Client to Validate SSL Certificate?
When SQL Server uses the Force Encryption with value "yes" then if in the client-side we use encrypt=true option in the connection string, then the client application tries to verify the server certificate. My question is this how we can force the client (by the server or any way) to verify the certificate regardless o...
My question is this how we can force the client (by the server or any way) to verify the certificate regardless of the connection string value? Connection string values override defaults set in the driver if the connection string has the item filled in. There is no overarching way of forcing this except to use [CODE] i...
0
1
270
2019-08-26T13:22:05.857
database_errors
dba.stackexchange.com
707,326
df shows bad information on partition usage
I've tried to deal with this for days now with no luck. In this forum and also in other ones I can see a lot of discussion about this but none of the solutions have worked for me. My current situation is that I've got some GBs "missing" that I can't free or find anywhere. I guess this is some kind of problem like memor...
99.9% of the time the reason this happens is because one or more files have been deleted, but there is a process which is still writing to the old file handle. When a program wants to perform I/O operations on a file, it asks the kernel "hey kernel, I would like to access the file /bla.txt and I want to be able to read...
3
1
520
2015-07-21T11:30:06.720
api_errors
serverfault.com
440,926
How to watch for count of new lines in tail
I want to do something like this: [CODE] It counts new lines of tail each second / Linux, CentOs To be more clear. I have got something like this: [CODE] I am reading some error messages. And now I want to count them. How many ~ errors I have got in a second. So one line in a log is one error in a proccess.
I've recently discovered pv, and it's really cool, you could do something like [CODE] -i2 = count every 2 seconds -l = count lines -t = print time -r = show rate
13
31
14,106
2012-10-22T12:27:10.510
infrastructure
serverfault.com
1,018,609
we are getting error during app deployment
Getting the following error while trying to deploy using the free tier : ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/daidish/regions/asia-south1/operations/5cb7dbc1-ce4d-4dd6-b136-141d1b82faff error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/insert_flex_d...
the issue you are facing is due to you have exceeded the limit [CODE] . In GCP there are limits that can be requested to be adjusted. Here is the documentation about Quotas in GAE Flex. For many billing accounts, you are limited to 8 Compute Engine instances (VMs) per project. You can request quota increases through th...
-1
1
554
2020-05-25T13:10:16.527
pipeline_ops
serverfault.com
49,601
TrixBox Samba share stopped working
I have a TrixBox VoIP server running TrixBox CE 2.6.2.3. Up until recently, I was able to access a Samba share on that box at \astersik\share from my Windows PCs. The share is suddenly no longer working, I get an error message "Windows cannot access \asterisk\share" and the error code is 0x80004005 "unspecified error"....
It is the new authentication in Windows Vista / 7 that stops older versions of Samba from communicating. I had the same problem on a NAS (as most off the shelf NASs are based on Samba) It is advised to leave it set, but if you want to turn it off, do the following. (Assuming there is no Domain Policy and this is a isol...
3
3
1,685
2009-07-28T00:37:17.257
infrastructure
serverfault.com
76,808
How can I give my printer a hostname other people on the network will see?
This is one of those questions I'm a bit embarrassed to ask, suspecting that there's a small (but very important) gap in what I've taught myself about networks over the last couple years. Basically, I've got a Xerox 1600n plugged into the network, and it has no problem getting an IP, but so far, I've only been able to ...
One way: add xerox_1600n to your network's DNS infrastructure (the internal/local DNS servers your client machines use) . It won't "magically pop-up," but it will resolve when entered.
1
2
24,781
2009-10-21T15:55:51.900
infrastructure
serverfault.com
27,445
How to wait between PostgreSQL DB restore and reindexing?
I've written a script to upgrade PostgreSQL from 8.2.1 to 9.2.1 on a Linux From Scratch distribution: Start the [CODE] service Vacuum all DBs (not sure if this is needed) Backup with [CODE] Stop the [CODE] service Move away the directory where the data is stored ( [CODE] ; it's a simple, single-server setup) Install Po...
Note that the [CODE] step only applies if you're updating an 8.3.x cluster in-place from x =5. It does not apply for dump and restore. You do not need to perform this step for what you are doing. You won't even be using 8.3, you'll be going straight from 8.2 to 9.2 (right?). Also, as per the upgrade documentation, you ...
3
3
1,907
2012-10-23T08:45:31.810
database_errors
dba.stackexchange.com
45,633
Path is wrong while running a job created for GitHub repository using webhook
I am facing an issue of incorrect path while running a Jenkins job created for Github repository. As Jenkins is on my machine I have configured the webhook. The error I am facing is mentioned below. [CODE]
The line "invalid path 'user/ Postman_Int_Github/postman_collection.json'" implies something is wrong with the path. Try removing the leading blank space (before "Postman_Int_Github").
1
1
324
2020-09-03T07:37:04.950
pipeline_ops
sqa.stackexchange.com
69,263
How to repair backup of .mdf file database?
One of our clients gets the following error when trying to backup a database: System.Data.SqlClient.SqlException: SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0x121db60d; actual: 0x521db60d). It occurred during a read of page (1:1632) in database ID 4 at offset 0x00000000cc00...
You're getting this while trying to backup any database? msdb is used for a bunch of things and you'll want to make sure it's okay. But critically, it sounds like your corruption is in a table which is used for backups, and this is a good thing, because you don't necessarily need that data. Start by scripting out all y...
1
2
822
2014-06-28T09:23:47.803
database_errors
dba.stackexchange.com
1,017,452
What am I doing wrong with private GKEs peering and Cloud NAT?
I am trying to mount the following platform on Google Cloud: 2 private (native) GKE clusters, in 2 different VPCs and to give them access to the internet, each vpc has a Cloud Nat configurated. What I need is that the 2 GKE clusters interact, but peering the VPCs, I only get communication between PODs, not between POD ...
I was able to connect pods to pods, pods to node-port and port to external loadbalancer with a similar environment, here's the caveat: Internal load balancer is only allowed on VPC Peering under these circunstances: Client virtual machine (VM) instances in the peer network are located in the same region as your interna...
1
0
1,065
2020-05-17T00:04:27.060
pipeline_ops
serverfault.com
701,905
Duplicate contacts after syncing iPhone with Exchange
We have an iPhone app that reads all the contacts of the native address book and may modify some off them. The iPhone address book usually synchronizes with some Google account or some Exchange server. We noticed that in a few cases (really few) the contacts in Exchange server are duplicated after syncing with the iPho...
I had a similar issue, the problem was when I imported the contact CSV file into Outlook. Correct steps: File -> Open -> import -> Import form Another program file -> Comma Separated Values (Windows) -> Do not import duplicated items . After that, just select next option. Finally in Iphone accounts settings turn off an...
3
0
2,092
2015-06-26T16:26:21.630
data_quality
serverfault.com
273,579
esx4 vmfs3 raid rebuild
I have a ESX 4.1 Server with a storage on RAID 60. After the rebuilding of the RAID the vmdk-files are not working in my VM. On starting VM I have this error: [CODE] [CODE] doesn't work. I can't chown, chmod, copy this files. How I can fix this error?
Take a look into the VMWare logs. It sounds like your datastore is damaged. If this is the case and you definitely can't access the files, there is not much hope "fixing" it. You can give the Java VMFS driver/toolkit or vmfs-tools a try - the latter would conveniently come with an Ubuntu LiveCD. If you are lucky, you w...
1
0
590
2011-05-25T12:23:40.617
infrastructure
serverfault.com
979,534
mod_fcgid: error reading data from FastCGI server / 500 Internal Server Error
I've trying to set up an IIPImage server but the Images won't display: https://oooledge.de/wisski_views/b719fd1ac3844863103c508912965b883443 First here are logs, configs, modules and permissions: suexec.log [CODE] apache2 error.log [CODE] this is my http.conf [CODE] and my iipsrv.conf (included together with httpd.conf...
The answer lies in the use of the Plesk enviroment. Plesk 17.8.11 have own configs for suexec and it is not possible to alter the settings - so the solution is to not use Plesk, if you want own suexec configs, docroot etc.
1
1
2,240
2019-08-16T13:33:25.113
api_errors
serverfault.com
1,117,407
I get directory listing instead of the website index.php
Ubuntu 20.04, Apache 2.4, PHP5.6 I have website with the following vhost config [CODE] [CODE] is disabled [CODE] has the following Directory module [CODE] This is the website directory: [CODE] When I try to browse the website at https://website.com , I get instead of the actual website Please advise
Is php installed? What does php.info give you? Also It seems all files have full 777 permission which a security risk.
0
0
1,141
2022-12-06T16:36:54.530
infrastructure
serverfault.com
942,655
Veeam | "Failed to check certificate expiration date" after certificate renewal
Since yesterday we receive the message "Failed to check certificate expiration date" on a Veeam server. The certificate is correct. (Was yesterday renewed!) (German: issued for, issued by, valid from, valid until) Does anyone know a solution?
This is a known bug (look: Certificate expiration date ). You have to manually renew the certificate, solution is here: Generating Self-Signed Certificates Before doing this, check first if any backup job is running. Doing this while a backup job is running may terminate the job. Use it only when you're working with se...
2
2
1,152
2018-12-03T13:21:22.867
infrastructure
serverfault.com
627,218
What to do when raid 0 errer: Following Arrays have missing required members and cannot be ... Array#0-RAID-0
here are the tried status: It is a raid 0 configuration and have 2 disks. When using IBM ServeRAID Configuration Utility, there are three options: 1. Array Configuration Utility : see below 2. SerialSelect Utility : not used 3. Disk Utilities : checked, one disk has a sector defect and reassigned block 1. Array Configu...
You appear to have had a drive failure. Is it possible to recovery data from this raid? No. At least not with the tools you have available. RAID 0 has ZERO redundancy and ZERO protection for your data in the event of a disk failure (or someone inadvertently pulling a drive out while the system is running). As others ha...
-1
1
2,555
2014-09-09T10:29:11.083
infrastructure
serverfault.com
732,438
ELB reports backend_status_code of "0" for some requests
I found some weird entries in my ELB logs that I can't really explain. They all look like this (parsed into JSON): [CODE] e.g. [CODE] or [CODE] seem really weird. Any idea what this could mean? I suspected that the backend servers were overloaded, but we didn't experience a higher load than usual when these errors happ...
When an ELB returns a 504 Gateway Timeout it indicates that the load balancer closed a connection because a request did not complete within the idle timeout period ( according to the docs ). So, the ELB did not receive a response within the idle timeout limit resulting in the connection being killed and a 504 response ...
2
2
1,811
2015-10-29T08:50:36.317
api_errors
serverfault.com
256,079
Apache & Subversion, "403: Forbidden" remote but local still works?
After a power failure my debian server rebooted all systems nominal with the exception of an SVN server using HTTP via apache2. I am hosting a few other services on this machine, the only other service interacting with apache is a trac project. All webpages hosted out of /var/www work just fine, and my trac project (no...
Well, silly answer. [CODE] did not have +x permissions for group www-data; somehow this did not effect any of the other hosted sites or even the dummy index.html page within that directory. And even though the SVN repositories are not hosted anywhere near that folder, because I had my [CODE] this likely caused the DAV ...
0
0
3,174
2011-04-05T21:17:55.523
database_errors
serverfault.com
122,593
Designing a dimensional DB off a normalized source that already implements SCD's
I have built an SSIS ETL to integrate various data sources (one from MySQL, two from SQL Server) into a single SQL Server relational and normalized database, which I've called [NDS]. The SSIS ETL handles type-2 updates, and so the [NDS] generates surrogate keys and SCD tables include an [_EffectiveFrom] timestamp and a...
As you are seeing, one of the benefits of Kimball Dimensional Modeling is that the data warehouse design is essentially your SSAS design. While there are always exceptions, you can typically select a table in the DSV and immediately move to hierarchy design, cube relationships etc. I'd recommend moving to the DDS with ...
6
3
378
2015-12-01T18:31:13.343
database_errors
dba.stackexchange.com
411,251
IPSec Cisco vs Windows Server 2K8 R2
I noticed by RVS4000 is losing performance while IPSec is enabled on the Cisco. Would it be wiser to use the Windows Server IPSec to handle the processing instead? What are the risks/rewards in this scenario? EDIT: In short is it better to use the Cisco for IPSec or use software on Windows Server 2008 R2?
I'm assuming you're using the IPSEC functionality of your RVS4000 router for terminating VPN connections (either user-to-site or site-to-site). I tend to feel more comfortable terminating VPN connections with a dedicated hardware device or dedicated server computer, when I can, versus using a general-purpose server com...
0
1
305
2012-07-25T21:25:27.577
infrastructure
serverfault.com
69,809
LSTM loss value not change, accuracy stucked at 50%
I'm using LSTM for time series prediction, my data is highly skewed, with class weight [CODE] With [CODE] and [CODE] my model is shown below [CODE] I have tried the following method to dealing with my unchanged accuracy and loss value. I tried to adjust class weight, but it seems not working, my predictions are all [CO...
The dataset contains ~25K class '0' samples and ~10M class '1' sample. This clearly tells us that the LSTM would be learning patterns more popular in class '1' instances. Here are some improvements you can try: Instead of undersampling the class '1' labels, oversample the number of instances of class '0'. Accuracy is n...
1
1
333
2020-03-17T04:06:08.020
data_quality
datascience.stackexchange.com
1,018,899
apt-get update: Temporary failure resolving '*.debian.org' In Docker Container
I am on CentOS 8. The second step in my Dockerfile tries to update the system, but for some reason, it keeps saying that it is having trouble resolving [CODE] and [CODE] , so the update fails. [CODE] I tried pinging the domains it failed to resolve and it worked, so I'm confused on why it fails in the container. I then...
Perhaps the network on the VM is not communicating with the default network created by docker during the build (bridge), so try "host" network : [CODE]
2
3
17,146
2020-05-27T11:04:16.617
pipeline_ops
serverfault.com
845,825
OTRS Installation on AWS Linux AMI results in 500 Internal Server Error page
I am creating a new instance of OTRS on Amazon Linux AMI 2017.03.0 (HVM) and cannot get the installer.pl to run. My installation steps are as follows (and I've done this about four times so far): Set the HOSTNAME Add the private IP address to the hosts file with the FQDN of the server (172.10.10.10 otrs.example.com) [C...
I didn't figure out what was wrong exactly but it concerned specifying [CODE] . This install works on Amazon Linux: [CODE] [CODE] I thought I had attempted an install like this in the beginning but must have misconfigured something then.
0
0
1,167
2017-04-21T18:09:01.607
api_errors
serverfault.com
319,556
Create a separate table or store the data in a string?
I'm building a simple job board (using MS SQL/ASP.NET core/C#) and have a question about the database design. I don't know how to decide whether I should create a separate table or not in certain situations. I have the following tables: Job Category Industry Region In the Job table, i store the salary in the 'Salary' f...
Since you have a definitive list of what salary frequencies are acceptable to your system they should be their own table, which is SalaryPeriod. This table will have a unique constraint on the frequency so there is only ever one row in it with the value 'daily' and one with 'hourly' etc. Job references this table as a ...
2
0
217
2022-11-12T06:01:48.897
warehouse_errors
dba.stackexchange.com
145,207
On Load sub which checks records causing problems
I have a checkbox called 'Added to Schedule' on a form (booking sheet) which is supposed to be ticked if the job appears on another table (schedule). It usually works but sometimes if the job is then unscheduled or moved around, this checkbox does not get unticked. It can also be vice versa, where the box is not ticked...
Don't worry, I've got it! I prefixed it with: [CODE] Then if the value was zero, it would skip the check code.
0
0
18
2016-07-28T10:40:13.263
data_quality
dba.stackexchange.com
237,188
Storing data as JSON vs meta table
I am using MySQL 5.7.26 and have a very large table with multiple foreign keys for a column. I can store it with JSON type in a single table - [CODE] (Case A) or by creating another table - like [CODE] (Case B) Case A countries and locations columns are JSON. [CODE] Case B Main table: [CODE] Meta table: like meta key 1...
If I were you, I would use a classic normalised database structure rather than using JSON. I think that this is what you are driving at with your Option 3 ( [CODE] )? I constructed a normalised version of your data. A sample is shown below - the full data is available at the sqlfiddle here . [CODE] -- Experiment with t...
1
2
747
2019-05-02T08:34:05.103
database_errors
dba.stackexchange.com
108,637
Recommended Database(s) for Selecting Random Rows
I'm familiar with selecting random rows from a table in PostgreSQL. It's really slow. I've looked into some other databases and they all seem to be bad at it. Mostly because it's not a normal use case for any of them. Is there any type of database that can select a random row quickly? The only hard requirement is that ...
I was using one of two ways to get a random row: [CODE] and [CODE] The offset method was faster for low offset numbers, otherwise super slow. An offset of 1 million took ~600 msec, while 100 million was 60 seconds (average query time for midpoint offset was 2.5 minutes). For order by random, all queries were ~5 minutes...
2
2
168
2015-07-31T07:52:40.913
database_errors
dba.stackexchange.com
222,785
Serial fields at 1 after logical replication
I'm migrating my database from one server to another. So far I've done [CODE] and I was able to successfully transfer the schema to my new server. As for the data I went with logical replication, all of the tuples are where they should be, but trying to insert another row leads to an error saying [CODE] already exists....
Solved this by dumping just the sequences with [CODE]
2
1
91
2018-11-17T14:38:30.287
database_errors
dba.stackexchange.com
314,375
iptables two eth passing internet, internal lan blocked to the world, how to solve this?
dsl modem, linux server, router, couple computers dsl modem connected > to eth0 at my server router for sharing internet connection connected to > eth1 at my server server got mascarade to pass internet connection to eth1 > router, lan computers now i have problem, because all my lan computers are blocked by linux serv...
Do [CODE] which will show you all the rules for OUTPUT and find the appropriate rules that block port 21,etc. Then do something like [CODE] otherwise do a [CODE] which will DELETE all rules from iptables and try set your own. Most definitely there is a script somewhere in /etc/init.d or /etc/rc.d that sets the rules on...
0
0
307
2011-09-22T14:00:39.990
infrastructure
serverfault.com
55,060
Keras - understanding target dimensions for custom-object YOLOv2
I'm trying to implement custom object detection by taking a trained YOLOv2 model in Keras, replacing the last layer and retraining just the last layer with new data (~transfer learning). I have annotated a bunch of pictures with bounding boxes using the YOLO annotation, and put them in two separate folders ("images" wh...
I made two mistakes. First of all, I was appending my data to a list, and ended up with a shape of [CODE] as lists within an array can have different lengths and even though they didn't in this case, I still ended up with a shape of [CODE] and that was not what the NN was expecting. Second of all, the input for the YOL...
1
0
96
2019-07-04T14:58:36.710
data_quality
datascience.stackexchange.com
65,648
Can a single ASPState database be used for multiple websites
Is it possible for two or more website to share a single ASPState database? If security or performance were big concerns then I'd probably use separate databases. But is there any reason why two websites couldn't share a database? http://msdn.microsoft.com/en-us/library/ms229862.aspx
Yes, but it's a huge security risk. Each application will have (read/write!) access to each other's state info. It's up to you whether or not you want to go there (obviously not recommended) but you're better off using different databases.
1
1
1,002
2009-09-15T19:10:19.943
infrastructure
serverfault.com
632,796
Is there an easy way to add yourself to an Active Directory group, with only Add/Remove Self permission?
At my work where there is an Active Directory / Exchange / Outlook setup (sorry I'm not a Microsoft pro), I'm trying to set up a distribution list to act like a mailing list. That means users should only be able to add/remove themselves, and additionally I want it so that only users in a certain security group can add ...
If you're not afraid of the command line, this works with the permissions you describe: [CODE] Its very basic. You could dress it up different ways in a script. I used the unique samAccountNames here... If your user base is not familiar with SAM names, you could add some search logic to obtain the full distinguished na...
3
1
2,698
2014-10-01T15:22:22.480
infrastructure
serverfault.com
630,774
Issues with file rights in CentOS
May someone explain me how to manage rights correctly pls? I have a file with these rights: [CODE] I am accessing this folder by user myuser and trying to modify it. Sure, I can't. Ok, I am adding group write rights and add myself to sntecard group (being a root): [CODE] Let's check rights: (ls -ls) [CODE] Now let's ch...
I have found an answer by myself. "+" means alternative ACL (access lists) set for this file. When we looking at them, we can see [CODE] Which means NO group write access. Change this by [CODE] solves an issue.
-1
0
735
2014-09-24T04:22:29.220
infrastructure
serverfault.com
4,879
Does document "depth" affect CouchDB performance?
I have a project where it is very tempting to use a deeply nested collection of data. But how does that affect performance? Are there any reasons why I should avoid doing this? I'm talking about lists in lists in lists, etc.
Per this StackOverflow thread, it sounds like lists are created by serializing and then deserializing the data. If you were deeply nesting your documents with list inside of list, that would be a serious performance hit purely from the serialization and deserialization. If you have a hierarchy like this, I would consid...
3
2
209
2011-08-21T07:39:20.020
warehouse_errors
dba.stackexchange.com
39,623
sql server 2005 deadlock error 3930
I am trying to simulate a solution for a deadlock issue happened on our production server. Run this to create a table to be used in 2 and 3. [CODE] create a proc. I set DEADLOCK_PRIORITY LOW to ensure the transaction will be rolled back in case of deadlock. [CODE] the other session. set deadlock priority to high to ens...
You must always check the [CODE] inside a catch block. If the value is -1 then you must issue a ROLLBACK.
1
2
1,555
2013-04-10T09:32:34.527
database_errors
dba.stackexchange.com
1,116,686
Apache httpd low performance
I have an website which is running using httpd on Centos 7. I have 8 cpus and 32 GB ram. When we have more than 500-600 users in the same time on the website, the server response is getting higher. Even that, cpu load is about 20-25% and RAM is also not used. What can we configure in order to increase the performance o...
Apache is pretty darn efficient. Although technically should qualify my answer, it's almost certainly something else that's bogging you rather than the server itself.. probably the CGI you're running or something completely different. You probably want to start by running [CODE] to see what programs are actually using ...
0
0
190
2022-11-26T19:22:20.750
api_errors
serverfault.com
190,491
Can we pull future user stories in current sprint?
Suppose we have estimated 5 user stories to complete in a sprint and completed all of them with testing, buffer time and for expected bugs. Still we have 2-3 days left for one of the developer. Can we pull a future user story in current sprint knowing that only development or part of development can be completed in cur...
Certainly, you should be able to pull in whatever is at the top of the product backlog. But be careful. Make sure that pulling in the new story will not interfere with the delivery of the stories you have actually committed to. You really should make sure they are wrapped up and ready to go (deployed even). At the very...
6
7
2,671
2013-03-14T04:33:45.677
api_errors
softwareengineering.stackexchange.com
307,928
Should I notify my colleagues when I find a bug in their code?
If I am assigned a bug, I sometimes check version control to see when it was introduced. Should I notify the developer that introduced the bug, even if I already fixed it? The advantage is that it could help learning but the disadvantage is it could seem like criticism
If it's part of your process, then yes. If it's specifically not part of your process, then no. If it's not specified, the best thing is to ask the developers if they would like you to notify them if you fix bugs in their code and to respect their individual wishes. If you don't want to do that or it's too complicated,...
7
18
517
2016-01-21T01:27:59.450
api_errors
softwareengineering.stackexchange.com
692,751
OpenVPN Server configuration to route internet trafic
I have a problem to configure OpenVPN. This happens when I am connected: I can ping the server 192.168.42.1 from the client 192.168.42.6 and vice versa. I can access to the listening daemons on the server on 192.168.42.1 (http and dns). I can access to the server with its internet IP but the connection is not routed in...
I assume from your question and configuration that you intend on allowing internet access to the client through the server. In that case, it seems to me that your openvpn configuration is correct. However, your filtering is not complete. As it is, you set it up to forward new packets from tun0 to em0 (which I assume to...
0
1
253
2015-05-18T13:47:29.693
infrastructure
serverfault.com
789,610
Can not select multiple LDAP servers with authconfig bug report
There is this bug report "Can not select multiple LDAP servers with authconfig" Red Hat Bugzilla – Bug 1142830; https://bugzilla.redhat.com/show_bug.cgi?id=1142830 which is suppose to be solved on version authconfig-6.2.8-9.el7. I am using authconfig version: 6.2.8-10.el7.x86_64 which is higher. This version should hav...
[CODE] is only a tool to change the configuration of other software, including LDAP integration tools such as [CODE] , [CODE] , etc. The bug you linked to is about being unable to specify multiple LDAP servers on the [CODE] command line, however it sounds like the problem you're experiencing is that the software config...
0
1
485
2016-07-13T15:33:01.083
infrastructure
serverfault.com
448,249
trap "" HUP v.s Nohup ? How can I run a portion of shell script in nohub mode?
I want to run a shell script over the weekend, but I wanna make sure if the terminal loses the connection, my script won't be terminated. I use nohup for the whole script invokation, but I also want to execute some portion of my shell script in a way that if someone closes my terminal, my script runs on the background ...
Have you considered using [CODE] instead of the [CODE] approach? Open a screen session and execute the script as normal. Detach from the session using [CODE] . When you return, you can reattach to the session using [CODE] or possibly, [CODE] and selecting the right session to restore. Also see: How to reconnect to a di...
3
3
4,878
2012-11-13T15:21:30.793
infrastructure
serverfault.com
303,405
DBMS in a container/cluster vs data corruption
I am fairly new to db administrations as well as containerization/kubernetes concepts. I see every here and then containerized/clustering solutions for i.e. running PostgreSQL (i.e. here . This conflicts with info I get during my training where it is said that " databases can not run into ephemeral enironments like con...
Your training was wrong. In my organisation we've been running containerised databases in production for few years now. Postgres, MySQL, Db2, Clickhouse. We are not alone: a survey conducted by the Data on Kubernetes community in September of 2021 found that, of the participating 500 users 90% believe [Kubernetes] is r...
1
4
216
2021-12-02T15:30:52.983
data_quality
dba.stackexchange.com
20,131
Deployed Web service
When I deploy my web service in AZURE Machine learning, is it possible to have NULL or empty in my test data set? Or I have to fill all the information to get the results of my prediction?
In training set: You would better use some methods to "presume" certain values...average / pro-rata......which you could find in various learning sources Leaving them as blank (not sure of Azure but in a low level programming platform) would cause either inaccuracy or problems. For testing set: You are not changing the...
1
1
68
2017-07-03T12:42:49.527
data_quality
datascience.stackexchange.com
139,411
How is Activity Monitor Pulling processes specific memory information?
How is SQL Server Management Studio's Activity Monitor pulling the following memory by processes information? The screen I am talking about is... Log into the database, right click on the server in the tree on the left and select activity monitor. Expand out processes. The Memory Use column - where is it coming? Is the...
The Memory Use column - where is it coming? It corresponds to [CODE] column in [CODE] . As a friendly note, I would suggest not to use Activity Monitor. Use Adam Machanic‘s free procedure, sp_WhoIsActive (uses DMVs). You can even log into a table for post analysis. Kendra Little talks about Activity monitor limitations...
2
2
81
2016-05-24T19:58:39.497
database_errors
dba.stackexchange.com
330,615
How to increase sequence by condition in Oracle Database 19.x?
We have the table as below. [CODE] If the value of STYLE_CODE PK is not duplicated in the table above, the SEQ value is always generated as 00 If the value of STYLE_CODE PK is duplicated, we want the SEQ value to be increased in the order of 01, 02. I want to find a solution. Thank you.
Sequence objects don't work that way: they are meant to produce unique values. Those values may have gaps or (in some cases, such as with Oracle RAC) even be out of order. You'd need a separate sequence for every possible STYLE_CODE, and/or complicated business logic with manual row locking that won't scale well - what...
0
0
72
2023-08-25T03:43:01.250
database_errors
dba.stackexchange.com
160,973
Query multiple tables with foreign key filled or is null
If I have two table like: table1 with id, field1 and id_table2 and table2 with id and field2; Can I retrieve all rows on table1 also if the foreign key is null without using union? If I write: [CODE] it will return only the rows that contains id_table2! if I write: [CODE] It should work correctly but It seems too much ...
This is what outer joins do. Use a [CODE] (outer) [CODE] : [CODE] If you want the empty string (and not [CODE] ) in the result when there is no match, replace [CODE] in the select list with [CODE] .
1
4
1,916
2017-01-13T09:24:38.537
database_errors
dba.stackexchange.com
716,370
Subversion mirror has issues. Possible to back out most recent revisions on the mirror and then resync?
It appears some fat-fingering of Subversion configuration may have lead to a Subversion mirror being corrupted. Details: We have a set of Subversion repositories hosted on a master server and then mirrored to two off-site servers using snvsync. All transactions are done using HTTPS, and so Apache is configured on all t...
I resorted to a full rebuild of the mirror. 16,000+ commits going halfway around the world is not a pleasant experience, but at least it's a working solution. Thanks to all who read!
2
1
369
2015-08-24T17:20:48.600
data_quality
serverfault.com
214,609
Unexpected results in query with rownum condition
I have found old query in application that behaves unexpectally after Oracle update. I have found out that problematic part of this query is condition: [CODE] When I apply this condition, resultset contains 0 rows, otherwise it returns 1 row (which is same in older version of Oracle). If I change condition to [CODE] it...
The pseudocolumn [CODE] is assigned AFTER all the result rows from the query are retrieved, and so the correct way using [CODE] to get say 10 rows, is to use [CODE] as pointed out in the comments. The rownum can never be greater than the number of rows returned. Example: [CODE] And better yet as Kevin pointed out, use ...
1
1
615
2018-08-10T13:51:54.943
database_errors
dba.stackexchange.com
254,559
How does Twitter's "dogfooding" work? If they are using different URL's, how are they using their own API?
I heard that twitter practices "dogfooding," meaning that they use their own API for the website. However, I don't really understand how that's true. When I use Firebug, I see that all the AJAX calls are made to some URL like: [CODE] Rather than: [CODE] If they are using different URL's, how are they using their own AP...
Twitter is definitely able to configure their web servers so that some HTTP requests are going (thru a "private route") to their "API".
2
3
459
2014-08-21T02:27:01.220
api_errors
softwareengineering.stackexchange.com
71,465
Analysing Group & Individual Member Performance -RUP
I am writing a report which requires the analysis of performance of each individual team member. This is for a software development project developed using the Unified Process (UP). I was just wondering if there are any existing group & individual appraisal metrics used so I don't have to reinvent the wheel... EDIT Thi...
As you say - using numbers to judge people almost always ends badly if not tempered with common sense and other factors. Personally I'm not a fan of efficiency metrics like what you describe. Does it really matter if one person spend 40 hours and fixed 20 bugs, and another spend 50 hours and fixed 20 bugs - if both fix...
1
1
222
2011-04-26T17:14:44.213
api_errors
softwareengineering.stackexchange.com
119,768
How do I get Subversion configuration changes to take effect?
I am trying to configure my svn repository to automatically set the svn:keywords property on every file. My understanding is that I just add these lines to the configuration file and every new .rb file that is added or imported to the svn will have the svn:keywords property. [CODE] At this point I am experiencing a cou...
My first problem is that I am unsure of which configuration file I need to change. These type of changes are usually made to each user's own ~/.subversion/config not on the server. how do I activate the changes? Changes are activated immediately. Most subversion clients re-read the configuration file between each opera...
1
2
5,651
2010-03-06T00:06:47.493
infrastructure
serverfault.com
137,867
What should Competent Java programmer Be Able To Do?
To call yourself a competent Java programmer, what should you expect of yourself and what should others expect from you? Does anyone have ideas for a project or problem that would help measure someones "java-smarts"?
Hi Jozefg some of my thoughts, I believe if one considers to be a compitent Java Developer then I believe one should, Be thoroughly familiar with the Java SE Libraries . E.g. the load factor in a HashMap and how knowing these can be important, good understanding of the Collections framework what to use and why (pros/co...
2
5
5,817
2012-03-01T23:35:17.717
api_errors
softwareengineering.stackexchange.com
276,628
apache & mod_pagespeed + varnish question
I have the following architecture on the web layer. [CODE] Where varnish and mod_pagespeed is installed with default config. Now when i access the url http://example.org:8080 then i can see in the source code that mod_pagespeed was invoked and has rewritten the page (on the second refresh mind you as it wasn't cached t...
There are a lot of configuration pitfalls you can fall into when using mod_pagespeed on a backend server which receives different URLs than the end-user will see. Your responses both have X-Mod-Pagespeed: headers, so mod_pagespeed is running on each of them, however, it is possible that it cannot load the sub-resources...
1
0
1,256
2011-06-01T12:22:03.907
infrastructure
serverfault.com
545,351
Gerrit LDAP Configuration
I am configuring gerrit over Windows server 2008 R2 along with mysql and tomcat. I have completed installation successfully. Authentication mode is LDAP. I am unable to login. The error is: [CODE] In my case user name contains digits, while I came to know that gerrit doesn't allow to login if all the letters are digit ...
Well, I got the solution. Gerrit doesn't allow user name to be all digits. So all you gotta do is some config changes in gerrit.config under ldap section. Under ldap section put: [CODE] Now you will be able to login using your mail id and user information stored will be firstname.lastname. Cheerss!!!
2
1
2,086
2013-10-11T10:48:28.820
api_errors
serverfault.com
45,999
IO_STALL question and understanding
I am collecting IO_STALLS from sys.dm_io_virtual_file_stats every 5minutes and then doing a delta to see which files are being affected most by IO. In one 5min period I get a delta of 5826331 ms which is 97minutes. I am a little confused by this, is this saying that an operation started 97mins ago only just finished at...
Question comment pasted below: [CODE] by itself doesn't mean too much. If in 10 seconds you had 1000 operations stalling for 1 second each, you'll have 1000 seconds of stalls. That would be 16+ minutes of stalls in 10 seconds. You need to correlate this with IO operations... The above is a pretty good example of how yo...
9
13
5,463
2013-07-09T13:21:43.697
warehouse_errors
dba.stackexchange.com
119,746
MySQL secure random string generator
I am looking to generate a cryptographically secure string for password reset in MySQL. I know I could do this at the application level in PHP; but that requires the OpenSSL extension which many of my customers might not have. If I can do it in MySQL 5 in a secure way that is widely available that would be ideal. Is th...
There are many encryption methods available in mySQL. If you need two way encryption you could use [CODE] which has the accompanying [CODE] If if you only need a secure hash then you could use [CODE] The following statement could get you a similar result to [CODE] [CODE] The statement above takes [CODE] and concatenate...
6
4
10,335
2015-11-01T00:36:34.747
database_errors
dba.stackexchange.com
792,180
Centos 7 freezing on large workload
I recently upgraded my server to Centos 7; I asked the users to backup there data for the upgrade. After the upgrade some user tried to untar a backup tar (~300Gb) and this caused the server to hang / freeze. (not responding to keyboard/ssh input) (reproducable) This happened as well with a other binary that was resour...
In the end it seemed some sort of new kernel "feature". With help of the community this seems to work : /etc/sysctl.d/01-tune.conf (new file) # /proc/sys/vm/swappiness # 60 # /proc/sys/vm/vfs_cache_pressure # 100 [CODE]
0
0
1,581
2016-07-27T08:06:09.687
data_quality
serverfault.com
240,532
IPtables: DNAT not working
In a CentOS server I have, I want to forward port 8080 to a third-party webserver. So I added this rule: [CODE] But it doesn't seem to work. In an effort to debug the process, I added these two LOG rules: [CODE] (the [CODE] part is there just to filter out the SSH traffic so that my log file doesn't get flooded) Accord...
You may need to turn on ip forwarding on the server. Try echo 1 > /proc/sys/net/ipv4/ip_forward
3
7
17,772
2011-02-26T06:16:51.727
infrastructure
serverfault.com
802,373
ACL mask not updated when cp a directory with g=r-x to directory with default:mask::rwx and default:group::rwx
I want to create a directory, in which all files are read/writeable by a specific set of users. This should work for new files/dirs in this directory, as well as for files/dirs copied to this directory. Now I am confused about the ACL mask. I tried the following: Create a Directory with the following ACL: [CODE] With t...
To copy ACLs from a directory to another, you had to instruct [CODE] to do that, using the [CODE] switch. In other words, use [CODE] EDIT The inherited ACLs will not grant permissions which the file does not originally have. In other words, if the source file does not have the group write permission, it will not inheri...
0
1
871
2016-09-11T06:45:05.587
infrastructure
serverfault.com
874,738
HTTPD + OpenSSL - Long time to connnect to port 443 then ssl_handshake_failure
I know that ssl_handshake_failure is a generic error, however this is my last resort, since I've been investigating this issue for three weeks. I'm deploying Apache HTTPD server on an AIX Server. AIX does not have standard repository so I've installed it from RPM packages from perzl.org/aix/ I had a hard-time solving a...
Use a real server name instead of " [CODE] ". https://httpd.apache.org/docs/current/en/mod/core.html#servername "If no ServerName is specified, the server attempts to deduce the client visible hostname by first asking the operating system for the system hostname, and if that fails, performing a reverse lookup on an IP ...
0
0
1,282
2017-09-20T23:18:06.223
infrastructure
serverfault.com
314,631
UPN Suffix Case Sensitivity
Is a UPN suffix case sensitive? Is it possible to have identically named UPN suffixes distinguished only by case?
Because of Active Directory's heavy integration and reliance upon DNS, it'd be impossible for UPNs to be case sensitive. In DNS case is ignored, so in Active Directory case is ignored. You can add another UPN with a different case, but you can't create 2 users with the same username but a different case sensitivity in ...
2
6
3,315
2011-09-22T23:09:31.027
infrastructure
serverfault.com
516,911
Heartbeat is not running on centos?
i'm install on centos [CODE] fix: remove alias [CODE] but i'm not find link [CODE] on centos ?
Network interfaces in CentOS are configured in [CODE] , in files named after the interface, e.g. [CODE] . See the doc .
0
2
261
2013-06-19T11:09:34.257
infrastructure
serverfault.com
118,605
Postgres 9.3 copy data from another table with relation
Hi I have two tables in my database which is related, which is [CODE] and [CODE] . [CODE] and then ` [CODE] So the [CODE] is just the replicate of [CODE] I already have data on both however I forgot to add [CODE] in my [CODE] . So what I did is i add new column on [CODE] which is [CODE] . As expected all the values wil...
I think something like this would work -- let me know if it doesn't [CODE] Edit (better version, suggested by dezso): [CODE]
1
2
129
2015-10-20T15:06:12.420
warehouse_errors
dba.stackexchange.com
178,206
How to migrate to git from two SVN repositories?
We use SVN as our VCS, but wish to migrate to git. All is good, but a few months ago our SVN server had a serious RAID problems (so much that it became unusable) plus at the same day no IT person was available to restore the repository from the backups. So, we have setup a temporary SVN server on a certain workstation ...
"merges are killing us." - merges are what git is good at :-) Rather than merge the two svn repositories try using git-svn to pull in the original and then the temporary. There's no actual need to touch the new server until you have a git repository you are happy with, on a linux workstation for example. Play with it u...
0
1
224
2010-09-05T07:37:35.987
database_errors
serverfault.com
270,944
Advice on design
I am new to databases and overall data designs. I am developing an English learning website that keeps progress of your studies. My problem: Every lesson has a checkbox which marks your progress. Should I make a column for every checkbox and lesson?, Or make a Json file and save it to the database? Could you please giv...
If you're using a database to track this information, you should use multiple tables to store the information and add rows to them as needed. A simple example: a USER table which has a unique User ID as the Public Key and then columns for standard user information like username, email, etc. a LESSON table which has a L...
-1
0
32
2020-07-14T20:26:36.720
warehouse_errors
dba.stackexchange.com
170,438
Redirecting traffic using iptables
I have a situation I need some assistance with. I have clients that need to have traffic rerouted to a specific port on a remote server, and I would like to use iptables to redirect it for me. Here is the config: Clients use smtpout.secureserver.net for SMTP traffic. The server will accept SMTP traffic on port 80 or po...
Presuming you don't want to configure the client to use 3535, which seems to be the most logical course of action for this rather odd setup.. Your iptables command is missing the table portion, so you need to add "-t nat" at the beginning. You're 'appending' ("-A") the rule to the existing prerouting chain; all prior e...
2
2
869
2010-08-14T04:52:58.980
infrastructure
serverfault.com
267,549
CHECKDB problem - SQL files (mdfs,ldfs etc.) in Azure Files
Anybody out there using Azure Files for SQL data and log file storage? I've got one SQL Server using an AF share in this manner and am having issues running [CODE] on its databases. Has anyone out there used Azure Files for SQL stuff and, if so, have you run into the following problem? When attempting to run [CODE] on ...
DBCC CHECKDB uses a Database Snapshot by default. Database Snapshots are an NTFS feature. When storing the database on an SMB share, they aren't available. Try specifying the TABLOCK option for DBCC CHECKDB. And Azure Premium Files are intended to support SQL Server database file storage. In addition to providing share...
0
0
271
2020-05-20T17:20:12.847
database_errors
dba.stackexchange.com
18,853
Get the id_user_app if not exists in id_user_rq
I'm building a application and have this table for users relationships. I need to build some queries like for example: Who invited me as a friend? Who I invited to be my friend? Who I accept as friend? And need some help because for me are complex queries :(. Also I don't know if open trhead for each of the question or...
[CODE] I changed A and B to be subqueries using 1 for [CODE] and [CODE] If you want the opposite, just reverse A and B subqueries to something like this: [CODE]
2
1
118
2012-06-05T16:28:14.077
warehouse_errors
dba.stackexchange.com
332,999
Transaction Replication error subscription marked inactive and DDL changes one new column is added into Publisher
I am getting in the Replication the subscription marked inactive and must be reinitialized. I tried to reinitialize not fixing the issue and found the following as well. I believe, I need to fix the DDL issue first then I need to reinitialize. Transaction Replication error because of DDL changes one new column is added...
Just run this query in a new query window in the distribution server [CODE]
0
0
75
2023-11-11T17:49:13.350
database_errors
dba.stackexchange.com
47,397
Script errors when run by launchd at startup, but not when run in Terminal
I'm attempting to create a RAM disk that loads the previous contents when the system starts up, and every six hours writes the contents to a disk image. Currently, when you run the script from the terminal ("sudo bash LogToRAM.sh") everything works fine. But when run from launchd during startup, it doesn't work. Here's...
You know - that is right. I've tried mounting a volume over afp - and it won't work until you log in. Though I bet you could easily verify this with "does vol exist?" (I forget what that is in shell).
-1
0
724
2009-07-29T03:54:27.643
infrastructure
serverfault.com
859,457
How to access an old system disk attached via USB which has the same volume group id
I've recently had to have the system disk in a remote server replaced, and the DC attached the old disk to a USB port. The problem is that CentOS was installed on both using all the defaults, and so now the output of [CODE] is: [CODE] [CODE] can tell the difference, but I can't figure out how to separate them in a way ...
OK - I was able to fix this using [CODE] . Firstly, running [CODE] : [CODE] So I guessed the UUID [CODE] was the old disk. So I ran [CODE] : [CODE] And then I was able to mount [CODE] . Phew.
1
2
573
2017-07-05T11:09:21.983
infrastructure
serverfault.com
31,744
Efficient SQL database design for recording examples of a word
I am designing a dictionary-like program which stores (and displays) a few example sentences of the given word. One way to design a SQL database for such problem is to create a table with two columns [CODE] and [CODE] and then for each example sentence add a new row with the repeated word in the column [CODE] . Is this...
You could go 1 step further from the other suggestions and take the example sentance into a new table as well. As a sentance is made up of many words the same sentance could be used for different words. [CODE] When selecting a word and all the sample sentances you just need to join the tables: [CODE]
1
2
274
2013-01-10T22:56:18.053
warehouse_errors
dba.stackexchange.com
376,546
Problems with evaluating results of search engine by comparison
We're building a search engine at a client's place. To evaluate the results, the client is comparing top N results of our search engine to top N results of a competitor. And they want me to get at least some "X" percent common results with competitor. And that's the only metric they're using to decide success of the pr...
Comparison with an oracle is always a good idea, when available. Comparison with a principle competitor is also a good idea. Your metric for comparison doesn't appear well thought out (what if the results come in a much different order? What if they come in a slightly different order?). If you are indexing one set of U...
0
1
100
2018-08-07T21:24:42.387
api_errors
softwareengineering.stackexchange.com
713,910
HTTP compression in Apache reverse proxy?
I have an App server where Apache httpd is installed which serves the requests. We have another Proxy machine which redirects the requests to this App Server httpd using proxy pass. When I apply gzip in App Server level its working fine. But, When I try to implement the same on the other Proxy machine httpd , at the sa...
It's a relatively basic configuration -- just load mod_deflate and configure it (SetOutputfilter, AddOutputFilterByType, etc) as the manual for mod_deflate describes.
1
0
3,951
2015-08-13T11:56:22.020
infrastructure
serverfault.com
240,950
Exposing server uptime a potential security vulnerability?
I run a browser-based game and as part of a page with a bunch of game statistics, I have the server uptime listed. It's currently at 177 days and so someone mentioned to me that I shouldn't do this because a long uptime indicates the kernel is old and therefore missing security updates. This certainly sounds logical, b...
This is nonsense, IMHO. When someone wants to attack you, he will try all possible attack vectors anyway, so if your system is vulnerable, not displaying your uptime won't help. Besides, things like ksplice and module updates exists, allowing patches without affecting your uptime.
3
2
666
2011-02-27T22:36:09.323
infrastructure
serverfault.com
268,099
SQL Server 2019 performance worse than 2012... am I missing something?
We have a SQL Server 2012 server which far outperforms a SQL Server 2019 database on (as far as I can see) the same infrastructure. We are hosting both databases on a cloud platform with the same SLAs. Both have 180GB RAM and 16 processors. However there are a few key differences. The 2012 database server is Enterprise...
I believe you have just discovered why the recommended upgrade process is to to upgrade your database, enable the Query Store, and test before increasing the database compatibility level. Change the Database Compatibility Level and use the Query Store If you have a lot of plan regressions you can keep using the older c...
11
12
15,980
2020-05-29T06:20:20.067
database_errors
dba.stackexchange.com
339,515
I Cannot create a .BAT file in the root of C "Access is Denied" Server 2k3
I have an oracle db server on a windows 2k3 box. I am currently unable to create or copy a batch file to the root of c. I can create batch files on different folders (i.e. in my user directory) or I can create .txt files in the root of C, but not batch files. I know someone might say, just put the batch file somewhere ...
I know this question is old, but there doesn't seem to be a resolution so on the HBSS possibility. You can navigate to the HBSS HIPS GUI: Click Start, Run, type explorer and click OK. Navigate to: C:\Program Files\McAfee\Host Intrusion Prevention. Double-click McAfeeFire.exe. You can click on the tabs on the top of the...
0
2
1,811
2011-12-09T18:39:19.620
database_errors
serverfault.com
283,570
Will SQL Server go offline if it loses network connectivity to SAN where master and msdb system databases reside?
I have a setup where 3 servers combined into Availability Group All 3 servers have local directly attached SSD drives, and user database files are hosted on these drives But the system databases (master and msdb) of each server in AG, are hosted on a SAN device that is accessed over the network Did not move those to lo...
From documentation The Caveats section of the Availability group database level health detection failover option doc has some info that might improve our guesses on the question: It is important to note that the Database Level Heath Detection option currently does not cause SQL Server to monitor disk uptime and SQL Ser...
2
4
905
2021-01-19T14:04:32.913
database_errors
dba.stackexchange.com
66,370
Syntax for DBCC CHECKTABLE on all indexes?
Just want to check the syntax to make sure this is for one table and all indexes (default?). --must be single user [CODE] Also, should I be in the database containing the table to repair or should I be in master?
The syntax is correct, and it will check all indexes unless a specific one is given. You should be in the database where the table resides. More info here: http://msdn.microsoft.com/en-us/library/ms174338.aspx .
1
1
7,975
2009-09-17T18:25:01.480
infrastructure
serverfault.com
45,272
How does a Reverse DNS lookup work with regards to spam filters?
I have heard that most spam filters use a reverse DNS lookup on the originating IP address of the sending SMTP server (or something like that) as part of the verification process. I want to make sure my emails will pass this check. How exactly can I verify that my emails are OK? In researching it, I've noticed that if ...
The test isn't normally comparing against the SMTP envelope (like you describe as your eyeball-based process), but finding the reverse DNS hostname of the connecting host (if any), running that through forward DNS and seeing if it resolved back to the original IP number. So what you need is 1) to have reverse DNS set u...
9
7
20,111
2009-07-24T16:46:43.247
infrastructure
serverfault.com
466,339
Write permissions of www-data user and public key issue
I am using Ubuntu and I am having the following problem. I am using a PHP function called exec to get the latest git changes from my remote repo. E.g.: [CODE] . The file is placed in /var/www. When accessing from shell (user 'myapp') works fine. When done from browser, doesn't seem to work correctly. However, this does...
I fixed this by installing SuPHP, so the php script runs under the user, and not under www-data.
0
0
490
2013-01-11T22:44:08.683
infrastructure
serverfault.com
156,653
How do I get url rewrites to work on Apache 2.2 on Debian Lenny
I am trying to get mod_rewrite rules to work under apache 2.2 on Debian Lenny. To try to get it to work first I put the rules in /etc/apache2/mods-enabled/rewrite.load: [CODE] However I get 404 error when I use a browser to go to http://localhost/http-poll after restarting apache. Error.log has: [CODE] "/tmp/rewrite.lo...
I notice that in your rewrite rule, the pattern to match ends with a slash, but the URL you accessed didn't. Try removing the slash from [CODE] in the [CODE] and see if that makes it work.
2
1
1,865
2010-06-30T05:34:20.570
infrastructure
serverfault.com
1,043,084
Posftix+Dovecot emails not delivered
I have Debian 9 + Postfix + Dovecot installed following the manual at https://postfix-configuration.readthedocs.io/en/latest/ I have added my domain (say, mydomain.com) + 1 mailbox (mb@mydomain.com) + 1 alias (test@mydomain.com). However, when trying to send an email from mb@mydomain.com to test@mydomain.com it doesn't...
I found out that the emails are saved in the /home/mb/Maildir instead so i just added a symbolic link /home/mb/Maildir to the /var/mail/vmail/mydomain.com/mb/Maildir
0
1
389
2020-11-18T17:30:15.457
infrastructure
serverfault.com
18,251
DNS server with easiest GUI
I want to setup a DNS server. Which one has the easiest to use GUI? I've been looking at djbdns and powerdns and I can't decide. I used bind before, but I hated the webmin GUI for it, and the security bugs scare me because I don't upgrade all the time.
You're more likely to find a decent Web UI for PowerDNS purely because it can use a database backend. As far as I'm aware, djbdns doesn't have support for any backend beyond its file based one. This forum lists a collection of PowerDNS front ends. No idea if they're any good or not.
4
3
38,638
2009-06-02T21:55:53.503
infrastructure
serverfault.com
872,929
Use basic auth conditionally in nginx
I have an NGINX server built into Docker image which I want to use in both production and staging environments. The problem is that staging environment requires a Basic Auth to be enabled in order to protect the server from prying eyes. Is there a way to apply basic auth to nginx server dynamically? I can pass environm...
Nginx doesn't support environment variables in server, location or http blocks, but you can replace the occurrence of a specific variable in your configuration file for the value of an environment value with [CODE] before nginx loads it. With a configuration file such us: [CODE] you can replace "${BASIC_AUTH_ENABLED}" ...
5
2
5,393
2017-09-10T17:08:01.977
pipeline_ops
serverfault.com
41,364
Having issues with jmeter sockets
I'm Getting this error while executing script [CODE]
Looking into ServiceSocket line 189 it appears that the [CODE] object is null, check jmeter.log file for any suspicious entries, it might be the case you plugin installation is corrupt (i.e. missing dependencies ) In general I would recommend switching to WebSocket Samplers by Peter Doornbosch which can be installed us...
0
0
490
2019-10-30T11:29:35.863
data_quality
sqa.stackexchange.com