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
13,701
Items in a transaction must be unique but got WrappedArray
I'm trying to do a algorithm in Spark Mllib. I'm trying to do a Market Basket Analysis. And I've as a data set this: [CODE] The code that I found is this: [CODE] However when I submit this line of code: [CODE] I get the fowllowing error: [CODE] I already try to use this: [CODE] But it still gives me an error. I also se...
[CODE] The error pretty much tells you the problem. A basket is a set of unique items, and 4 occurs twice here. That's not valid input. However you have a much bigger problem here. You are parsing a line of text that clearly is just a description of one item, and interpreting it as a bunch of item IDs. You have a date,...
0
0
2,093
2016-08-26T18:03:38.557
data_quality
datascience.stackexchange.com
398,630
Questions about storage performance
I would be glad guys, if you can answer me some of my questions about the performance of our storage. The setup HP P2000 SAS with 2GB cache 8x 1TB SATA 7200 RPM storage RAID6 3x hosts with SAS HBA adapter VMWare vSphere 4.1 Basically, the main reason why I had to look at our storage was the transfer of the monitoring V...
The setup described isn't as fast as it could potentially be. This is a supported arrangement, as you can have a maximum of four hosts attached to the setup (if you forego SAS multipathing). To your points: The performance is not good, but appropriate for what you have configured. I'll reference the Server Fault canoni...
3
3
775
2012-06-14T08:41:20.760
pipeline_ops
serverfault.com
948,547
Tons of OpenDKIM Issues
I for the life of me cannot get OpenDKIM to work correctly. I can send and receive messages just fine with postfix and roundcube. I have tried tons of things to get this working. At this point, I am not getting any errors, but OpenDKIM is not signing mail. I have tried everything I can find on this site already. Here i...
With the help of Sandor Marton crossing stuff off the potential issues list. I read somewhere that refile: was not required in here and fixed someone elses issue: [CODE] This however was not the case for me. I needed to put refile: back into the opendkim.conf for the line regarding signing table. Here is the new entry ...
1
2
2,317
2019-01-11T00:28:21.990
infrastructure
serverfault.com
184,127
ALLOW FILTERING vs NOT; Cassandra Data Model Question
I have a toy Cassandra cluster running on some RaspberryPis at home. I am currently logging CryptoCoin data to it in hopes of learning more about Cassandra and as well as some other things along the way. My question here today is to find out if I am structuring my schema correctly on this one table. The table doesn't h...
Right now the table only has about 320k records and I can use ALLOW FILTERING with no problem, but I realize this might not always be the case. So here's the thing: Cassandra is very good at querying data by a specific key. It is also good at retrieving a range of data within a partition. [CODE] But due to its distribu...
6
10
7,371
2017-08-23T01:20:00.323
database_errors
dba.stackexchange.com
32,239
Supporting multiple versions of test scripts
We're running our own CI/performance tests system for some other team's software library as they've yet to decide on something beyond nightly tarballs and our requirements are much more stringent. Due to a notoriously segregated company structure, we have zero influence over the situation. As part of our performance te...
If the statistics are formatted differently you only need to modify how your [CODE] methods parse their data sources. If the statistics are numerically different, requiring you to set different target values. It's probably a good idea start storing those statistics in a config file. Then you can isolate version specifi...
3
2
164
2018-02-22T17:50:42.213
pipeline_ops
sqa.stackexchange.com
25,822
MySQL performance slows down when accessed from different regions via the Internet
I have a MySQL database hosted in a server in Brazil. When I connect through an ODBC connection (FE is access) with a Brazilian IP everything runs fine. When I connect from the U.S. with the same connection performance slows down dramatically. Any suggestions?
If you have a lot of back-and-forth between your front-end and your database, network link latency could kill your application's performance. Measure ping times between your US front-end and your Brazilian database server. Your front-end needs to wait for that round-trip time for each and every database access (sometim...
1
4
241
2012-10-11T17:50:46.670
database_errors
dba.stackexchange.com
40,487
Is there a better way to code-review JMeter test-plans?
TLDR - What is the best way to review JMeter Test-Plans stored in a GitHub repo? Currently, the code-review process that my performance-test team uses is somewhat cumbersome and of questionable effectiveness. Our team uses GitHub for version-control, and we follow the branching paradigm for check-ins, where the work do...
Unfortunately JMeter .jmx files are basically XML and in case of large test plans it might be not very easy to view the diff . You can consider using i.e. Ruby-JMeter which is a Ruby DSL wrapper for JMeter tests, this way the code review will look like a code-review for "normal" Ruby project or Taurus tool which suppor...
1
1
924
2019-08-21T17:56:19.113
data_quality
sqa.stackexchange.com
829,319
ERR_CONNECTION_TIMED_OUT after dokku letsencrypt myapp.mysub.mydomain.net
Site was working fine, until I tried to activate letsencrypt. Seems like it installed without issue. [CODE] No errors in nginx or dokku app log files. I've googled [CODE] without luck. Any pointers to troubleshooting info? I can regain access to the site only after a revoke and cleanup.
I was using ufw to open the https port, but AWS was overriding. I had to use the UI to open the port. Ugh.
1
0
770
2017-01-29T22:00:18.097
infrastructure
serverfault.com
671,051
forwarding packet from one interface to another interface
I have an embeded system with 2 interfaces e0 and m0, whose ips are 10.0.0.20 and 192.168.0.20, respectively. Incoming packets into e0 have an ip of 10.0.0.10 and should be forwarded to m0 interface to external server whose ip is 10.0.0.30. Also, the returning traffic into m0 should be returned to e0. I tried to forwar...
Perhaps you need to turn on forwarding in the kernel with: [CODE]
1
0
2,177
2015-02-24T17:06:16.467
infrastructure
serverfault.com
459,905
For a Windows 2008 R2 as a Hyper-V client should I install SERVERSTANDARD OR SERVERSTANDARDV?
I'm setting up a test "server" on my laptop with Hyper-V. When I go to install from an MSDN ISO I have two choices for standard edition. SERVERSTANDARD or SERVERSTANDARDV. Googling gives me lists of cracked windows keys, but one site claims that SERVERSTANDARDV is the non Hyper-V flavor. I assume that doesn't contain t...
Generally speaking, you should install the same version of the OS in your test environment as you do or will in production. Seeing as how the ServerStandardV edition isn't widely used (or available anymore, for that matter), I'd hope you're not deploying it into production, and therefore recommend using the "normal" St...
1
1
857
2012-12-21T04:21:33.587
infrastructure
serverfault.com
91,621
Guidelines for HTML/CSS/JS optimization process
Currently we have a Development server on which we write the HTML/CSS/JS code. We do not optimize our code using compressors/minifiers. So our deployment process from Development to Production is simply to copy the files on the Development server to the Production server. But now we are planning to use compressors/mini...
I worked on a project which were very close to your situation. The requirements were the following: On development side, each page can have one or several JavaScript files and one or several CSS files. All those files are local. In production, there must be one and one only JavaScript file and one and one only CSS file...
2
2
1,741
2011-07-10T10:24:54.953
pipeline_ops
softwareengineering.stackexchange.com
238,104
Excel / MS SQL Server: Exception of type Microsoft.Office.PowerPivot.BackEnd.StorageException
We have an Excel table that gather data from our datawarehouse db on a SQL Server 2016. It queries a relative simple view to find the top customers of the last few days (including some aggregated columns) from a very large (some billion rows) ColumnStore table. The query usually needs about 1 minute to return about 200...
Using the profiler I found, that Excel sends an EXEC sys.sp_prepare to return the meta data and compiles the execution plan. When I executed the prepare statement in SSMS it hangs too, the same when I tried to display the estimated execution plan for the [CODE] on the view itself. I let it run for a while and after abo...
2
2
466
2019-05-14T10:10:11.700
database_errors
dba.stackexchange.com
380,464
ZyWall throughput - ZyWall USG 50 vs 100 vs 200
I currently have ZyWall USG 50 running and have disabled all services except the firewall. Although stated on the ZyXel web that the firewall's throughput is 100Mbit/sec I'm unable to get more than 70Mbit/sec. If I bypass the firewall I can get 100Mbit/sec so the firewall is definitely the problem. Is this normal for Z...
It has nothing to do with CAT6 cables. The problem is with the software update/configuration stability. I had the same issue, I could only get a bandwidth of 60Mbps out of a 120Mbps pipe. I tried the suggestions, and replaced the cables to CAT6, but actually it remained at the same speed. Then I saved the config, and d...
2
3
17,628
2012-04-17T22:55:03.407
infrastructure
serverfault.com
924,072
File uploads > 100KB hang with no apache errors
Originally posted on stackoverflow, but deleted and moved here. Apache 2.4.6 -- PHP 7.0 -- CentOS 7 VM Memory: 8GB -- CPUs: 2 -- Available HD: about 200GB Having a strange problem where file uploads over 100KB just sit there and hang, doing nothing. I have increased all the relevant config settings numerous times, as h...
Never really worked out exactly what the issue was, but switching from using an IP address to an internal domain seemed to fix it, so it was something on the network somewhere, though no idea what.
1
0
536
2018-07-30T10:19:12.187
api_errors
serverfault.com
269,984
/etc/rc.local not being run on Ubuntu Desktop Install
I have been trying to get sphinx to run at boot, so I added some lines to [CODE] but nothing happens when I start up. If i run it manually it works however. [CODE] works fine as does [CODE] It's listed in the default runlevel and is all executable but it does not work. I am considering writing a separate init.d script ...
One of the commands on your /etc/rc.local must be exiting with a non-zero status. Because of the [CODE] parameter to sh on the first line this is causing the script to exit immediatly. You can either remove the [CODE] or find the responsible command and fix its error.
3
3
7,032
2011-05-15T20:58:29.080
infrastructure
serverfault.com
269,503
Why is disk IO higher on Debian 10 (MariaDB 10.3) with MySQL replication?
I have a MySQL/MariaDB master-master replication setup that has been working well for several years, the db and tables are not very large (under 200MB for 18 tables). These were on 2 servers running Debian 9 and MariaDB 10.1.44. Now I've spun up 2 new servers running Debian 10 and I'm in the process of moving things ov...
This seems to be a performance regression (awaiting a fix), but may also be an issue if your [CODE] is too high. In my case, [CODE] is already [CODE] , and lowering it further does not change anything. So I'll continue to await a fix in 10.5 (though perhaps they'll back-port it).
1
1
387
2020-06-19T23:36:28.907
data_quality
dba.stackexchange.com
155,466
Create a simple and fixed dns server entry on Ubuntu 8.04 Hardy LTS
When this Ubuntu Hardy server comes up it is not always guaranteed that the dns settings are correctly, if the network cable was not connected during boot. I would prefer a simple fast and fixed dns setup. I do not have the knowledge of the packages, this is what somehow installed by itself (we always try to go simple ...
This line here would appear to be the culprit: [CODE] See http://packages.ubuntu.com/dapper/resolvconf : Resolvconf is a framework for keeping track of the system's information about currently available nameservers. It sets itself up as the intermediary between programs that supply nameserver information and programs t...
2
1
1,724
2010-06-28T09:38:57.970
infrastructure
serverfault.com
37,313
Primary Key efficiency
If I need a table to hold Point of Sales transactions, and am told I need to store: [CODE] Now, in this case, the uniqueness would be: Country ID, Store Number, POS Terminal Number, Transaction Date, Item Code I am always unsure if it's best to have a identity colmn as the primary key - in this case, maybe [CODE] , and...
I would say yes, create the surrogate key of TransactionID. It would create a narrow, unique identifier across the table. One of the reasons why a surrogate key would be best is because of relationships with other tables. If you need to relate the Transaction table with another table (Line_Item_Detail for instance) the...
6
5
612
2013-03-22T04:39:15.460
data_quality
dba.stackexchange.com
849,758
404 Not Found error while when i use ErrorDocument
I know this thread has been talked a lot on the web and here, and I tried almost all the methods, but still I'm having the same problem. My conf file: [CODE] In folder [CODE] i have this: [CODE] The custom error page is not working. So what should I do ?
Your [CODE] is in the wrong directory. It needs to be in [CODE] for that configuration. You can also leave it where it is, but then it is [CODE]
0
1
165
2017-05-12T14:44:33.610
infrastructure
serverfault.com
331,549
Azure Disk performance optimizaton in SQL VM
We are using Azure SQL VM and we have multiple data files of multiple databases stored on same drive (let's say Drive E: of size 3 TB) which is created from 4 * 512 GB disks + 4 * 256 GB disks. I was thinking to remove those smaller disks and add a bigger disk like 1 TB or 2 TB. What would you recommend based on the fo...
Luckily there's a doc on this: Storage: Performance best practices for SQL Server on Azure VMs For production workloads, use the P30 and/or P40 disks for SQL Server data files to ensure caching support and use the P30 up to P80 for SQL Server transaction log files. For the best total cost of ownership, start with P30s ...
0
1
68
2023-09-25T11:06:19.780
warehouse_errors
dba.stackexchange.com
145,872
Is it possible to determine the top users of SqlServer analysis services?
We're trying to figure out how many licenses we need of a desktop data analysis package which connects directly to our SSAS instance. I'd like know if it's possible to query the history of connection or queries by user so we can determine who is actively using the software. I've looked into $system.DISCOVER_SESSIONS, b...
I've never used it, but Microsoft has an activity monitoring tool for SSAS 2008 out on CodePlex.
1
0
2,630
2010-05-27T14:02:34.037
infrastructure
serverfault.com
660,131
Exchange 2013: Unable to install Exchange on domain for the 2nd time
I'm trying to set up Exchange 2013. There are two errors - not sure which one is fatal (perhaps both) Eror 1: Setup encountered a problem while validating the state of Active Directory: The Active Directory organization configuration version (15870) is higher than Setup's version(15844). Therefore, PrepareAD can't be e...
@Rogerl You need to open the Exchange error log located usually c:\Exhcangesetuplog (or similar directory), view the last section of the log, it should provide you with some information. Since you stated that you have ran the install already in the past, you either didn't remove/uninstall it properly or your AD DCs are...
-1
1
6,944
2015-01-16T18:13:22.727
pipeline_ops
serverfault.com
202,479
SQL Server 2008 setup issue
I am setting up SQL Server 2008 fail over cluster on Windows Server 2008 Enterprise. I met with the following issue during setup process. Here is detailed message, any ideas what is wrong? The resource "SQL Network Name (TestServer)" private property "RequireKerberos" set to the value "1" error. Error: The value is not...
Please refer to this forum post they mention at least 2 solution to solve it. http://www.sqlservercentral.com/Forums/Topic723728-391-1.aspx
0
1
223
2010-11-16T14:46:47.520
database_errors
serverfault.com
355,135
Coldfusion server debugging no longer working
My coldfusion server debugging is no longer working,... no changes to the system, just stopped. Now instead of a nice formatted output of variables and execution times I get this: [CODE] Any thoughts on how to fix this??
What version of CF is this, and is it on Windows or something else? My best initial guess is a bad .jar file... you might need to try a reinstall.
0
0
734
2012-01-30T19:09:12.040
infrastructure
serverfault.com
319,018
Where should you validate the state of "other" aggregates?
Scenario: A customer places an order, then, after receiving the product, provides feedback on the order process. Assume the following aggregate roots: Customer Order Feedback Here are the business rules: A customer can only provide feedback on their own order, not someone else's. A customer can only provide feedback if...
If transactional correctness requires one aggregate knowing about the current state of another aggregate, then your model is wrong. In most cases, transactional correctness is not required . Businesses tend to have tolerance around latency and stale data. This is especially true of inconsistencies that are easy to dete...
12
2
2,998
2016-05-20T05:33:21.047
api_errors
softwareengineering.stackexchange.com
805,488
phpMyAdmin authentication issues on upgrade to phpMyAdmin-4.0.10.17-2.el6
I've run into an issue where a routine upgrade of phpMyAdmin to phpMyAdmin-4.0.10.17-2.el6 from 0:4.0.10.16-1.el6 on CentOS 6 causes some strange behavior with logins to a mysql server. Basically, users are unable to consistently login. I've tried a login as myself and was able to get in, but my coworker can attempt it...
After much research, we found the problem on our end was the blowfish_secret value. I filed a bug with EPEL, which will likely be an upstream issue, but for now, just make sure your [CODE] ... 32 characters. (there is probably some upper limit, but we didn't try to determine that. EPEL6 BUG: https://bugzilla.redhat.com...
0
0
278
2016-09-26T23:12:56.130
api_errors
serverfault.com
318,560
Testing strategies when tuning a stored procedure
I'm tuning a stored procedure that is used by the first page that loads whenever a user logs into our website and it's very frequently used. When I run the procedure the first time it runs in about 10 to 12 seconds but when I run it the second time it executes in 1 second or less. I'm assuming it's because the optimize...
What kind of testing strategies do you use? I look at the actual execution plan . Most times, it'll indicate where most of the time was spent for your query in addition to warnings / problems and relevant metrics. If you upload your execution plan to Paste The Plan , you can link it in a DBA.StackExchange question to g...
0
1
114
2022-10-22T15:35:30.837
database_errors
dba.stackexchange.com
977,899
SSH issue with GCE VM Instance
I've been trying to solve this for a few days without luck and similar questions/answers on this site don't solve the problem. I have 3 different VM Instances on GCE and everything works fine on two of them. With the third I have lost all access to SSH in through both the terminal built into console and also directly v...
You need to specify the path of the private key when you run the SSH command: ssh -i [PATH_TO_PRIVATE_KEY] [USERNAME]@[EXTERNAL_IP_ADDRESS] Here is how to locate the key [1]. For more information on how to troubleshoot this kind of issues [2]. __ [1] https://cloud.google.com/compute/docs/instances/adding-removing-ssh-k...
0
0
127
2019-08-04T14:20:49.763
data_quality
serverfault.com
275,204
Multiple Indexes and Tuning
I'm utilising Azure SQL Database 2019. Let's say I have columns A-F and the following indexes. Primary Key (clustered): A Index 1: B (ASC),C (ASC) Index 2: B (ASC) If I wanted to run run the following query below, is Index 2 needed or could it use Index 1 and not impact on performance? [CODE]
The single best way to answer your question would be to run the query, measure the performance, and look at the execution plan (two steps, measure performance in one, get the execution plan in a second, capturing execution plans affects performance). See which index is used and how it's used. Then, disable that index t...
0
3
108
2020-09-09T08:47:12.630
warehouse_errors
dba.stackexchange.com
793,622
Change Instance UUID for VM in ESXi
Background I'm running ESXi 6.0.0 in free mode. I created one VM and then copied its files to another folder in the datastore to create the next machine (almost like a template). I wound up with two working VM's that have been doing just fine in production. Problem My backup drives finally came in, so now I'm trying to...
The most clean and troublefree solution would be to create a new machine and attach the disks. However, if you want to edit the configuration, there are three UUIDs in a machine's settings. You can delete [CODE] and [CODE] from [CODE] configuration file, for example with the following commands: [CODE] and restart the m...
4
5
17,083
2016-08-03T14:07:17.850
data_quality
serverfault.com
41,572
pg_dump from 9.2 to 8.4
I'm trying to restore a db dump from PostgreSQL 9.2 to PostgrSQL 8.4 (from separate machines, both are running Windows 7). I followed the instructions in this answer: Use pg_restore to restore from a newer version of PostgreSQL . However,the screen keeps writing [CODE] How can I resolve this issue?
First my recommendation is to start with text dumps and expect you may need to manually edit them. There are a large number of differences between 9.2 and 8.4 and these are especially important if you have used extensions in 9.2. There are however a few things you can do to make the import less troublesome but slower: ...
0
1
2,401
2013-05-06T03:26:14.647
database_errors
dba.stackexchange.com
813,740
Public Dns forwared
i wish every one was fine ,, i have issue , the issue is if i have DNS Server (Public ) let say the ip DNS 10.10.0.1(xx.com) and i have another Server it have Public Ip Let say 10.10.0.2 And i installation Nat Service all traffic forward (VM) to Zimbra exchange Email s, i create the mx record on dns public mail.xx.com ...
From what I gather, you have your server that hosts your domain on one server and your Zimbra Mail server on another. To work, Zimbra needs two DNS entries for this type of setup. Something like this: [CODE] If you've set these up and you can verify DNS elsewhere (through a dig or something), it's a configuration error...
-1
2
120
2016-11-08T08:59:35.923
infrastructure
serverfault.com
1,133,186
Crashing cluster after kubeadm init on VPS
Problem Whenever I create my cluster, and deploy Flannel, it works for maybe ~5 minutes. When I check the cluster info by [CODE] , it shows the correct information. After a while, it simply shows The connection to the server :6443 was refused - did you specify the right host or port? Cluster information: Kubernetes ver...
This error [CODE] it seems it cannot locate the API at port 6443, indicating that the API and the Docker container that is running it are the causes of this error. Therefore, this kind of error will be thrown if docker is down or if anything that is preventing access to docker is interrupted. As explained in this doc b...
0
1
501
2023-06-12T07:22:14.860
pipeline_ops
serverfault.com
900,052
Datalab crashing despite high memory and CPU
I am running a GCP Datalab VM with the following specs: [CODE] Despite having a significant amount of RAM, when I try to run my training script with a dataset that is 300mb the kernel is crashing. The code is training a NN and it is going through the training steps fine, but when evaluating on the test set it is crashi...
I add this as a comment: Have you already tried this solution [1] last comment? A good technique to try (I put this at the beginning of any script using tensorflow or keras). This prevents that resource exhausted error assuming you're batch size is within reason. import tensorflow as tf config = tf.ConfigProto() config...
1
2
686
2018-03-05T15:22:30.420
infrastructure
serverfault.com
43,632
Format function returning minutes instead of months?
While exploring the new function [CODE] I have come across the following issue, would like to know if any one else has faced a similar problem and found the fix for this, or if it is a bug? [CODE] Output: 02/02/2013 2013-06-02 12:02:54.067
The Format function argument is a .net format string, where [CODE] is minutes and [CODE] is months. You specified minutes, so minutes is what you got. There are example format strings at Standard Date and Time Format Strings . As an alternative to [CODE] you can also use just [CODE] which is the Short Date Format speci...
1
7
716
2013-06-02T09:16:50.920
warehouse_errors
dba.stackexchange.com
1,044,636
cron takes UTC time instead of local time
I've a script set in cronjob to run at 00 hours but it runs 5 hours earlier ie at 7PM local of earlier day. I mean it was supposed to run at local 00 hours of local time but it ran at 00 hours of UTC/GMT. [CODE] [CODE] [CODE] There is no any file called /etc/default/cron on my system. BUT CRON RUNS WITH LOCAL TIME AFTE...
If you haven't set the hardware time to match system time, then cron's going to work off hardware time Personally, I never run servers in anything but UTC - using local time of any form gets very complicated when managing more than a couple hobby boxes I've been in environments running as many as half a million server ...
1
1
3,201
2020-12-02T07:07:55.270
infrastructure
serverfault.com
124,004
Tomcat 6: Access Control Exception?
I'm trying to setup a tomcat6 server, and I'm trying to match another setup someone else established. However, my deployment (default Ubuntu install) uses a [CODE] directory structure, and the established server just uses a [CODE] file. I've tried setting every entry in policy.d to match the given catalina.policy, but ...
I have never liked how Ubuntu scatters the Tomcat files all over the place. Rather, I prefer to download the Tomcat binary distribution and set up a custom configuration, which I believe is simpler, more flexible and easier to maintain. I've explained how to do this in a couple of blog entries on my site at http://www....
3
2
10,024
2010-03-18T20:30:54.303
pipeline_ops
serverfault.com
97,916
SQL storage sizing - How to get statistics of what data is being accessed
How can I monitor which data is being accessed and which frequency? I'm in need to migrate several (very) small SQL Server instances, each which several small databases. Current configuration is based in a lot of also small servers with local storage. New configuration is based in a single server with a single NAS. So ...
If the crux of the question is, "How do I get correct data to size my storage subsystem?" and you want to it fairly repeatedly across many servers, use windows performance counters. Here is the list I would minimally have: [CODE] The [CODE] is going to give you the current milliseconds per operations (read/write). This...
1
2
268
2015-04-15T14:09:58.640
database_errors
dba.stackexchange.com
325,492
Threads_running is always one Mariadb 10.5
Maria DB which is installed on linux server, always shows the Threads_running one , while we have 4 core of cpu .We changed thread_handling to pool of threads , but still no result , while we have concurrent connection reaches to 500.
[CODE] is the number of connections currently running an SQL query. To read [CODE] , you must perform one query. That will be the "1" you are seeing. The number of CPU cores is not relevant; one query will either be using one core, or it will be waiting for a core to be available. In either case, it counts as one [CODE...
-1
0
155
2023-04-01T10:27:35.467
api_errors
dba.stackexchange.com
320,070
cannot connect to SQL Server using local 127.0.0.1 address unless the login user has sysadmin role
problem i am trying to connect to the server using [CODE] through [CODE] setting the [CODE] (server) option pointing at [CODE] . i have confirmed this is the correct port. i cannot use the traditional [CODE] , [CODE] , [CODE] options. it must address the server by its loopback interface IP [CODE] (see end of post for a...
TCP 1434 is usually the default port for Dedicated Admin Connections, requiring sysadmin. That explains why the connection succeeds with a sysadmin role member but fails with a minimally privileged login. If you haven't already done so, enable port 1433 on the 127.0.0.1 loopback IP using SQL Server Configuration Manage...
3
5
4,711
2022-11-22T15:10:43.393
pipeline_ops
dba.stackexchange.com
148,833
How does PolyBase collect statistics from external tables?
Books online has this to say about query optimisation in PolyBase: The query optimizer makes a cost-based decision to push computation to Hadoop when doing so will improve query performance. It uses statistics on external tables to make the cost-based decision. Pushing computation creates MapReduce jobs and leverages H...
Creation and maintenance of PolyBase statistics is in the hands of the DBA. The "getting started" guide provides several steps to establish PolyBase, the last of which is CREATE STATISTICS referencing the external table. The documentation on CREATE STATISTICS states: Statistics for external tables When creating externa...
3
3
1,928
2016-09-05T12:06:20.800
warehouse_errors
dba.stackexchange.com
7,335
How do you repair a damaged or corrupt partition?
I have a user with an external hard drive that is no longer recognised: the drive letter does not appear in My Computer. The drive is a Western Digital My Book Essential Edition (WD2500C032) With help from the troubleshooting guide on the WD website , we have deduced that the most likely cause is a damaged or corrupt p...
Do not attempt any recovery of a HDD while it's still in an enclosure. Cut that sucker out if you need to and plug it in directly via IDE or SATA. Best software for partition recovery http://www.cgsecurity.org/wiki/TestDisk Best software for file recovery http://www.cgsecurity.org/wiki/PhotoRec I've succesfully used bo...
5
12
33,872
2009-05-12T11:40:21.357
api_errors
serverfault.com
682,621
Nginx location match causes 404
I am trying to add behavior for certain file types, but because my content isn't in the same folder, I hit a problem where the location match causes Nginx to look for content in the wrong folder. With the following, a request for [CODE] makes nginx look for the file at [CODE] whereas if I comment the [CODE] ... part, N...
Doesn't adding [CODE] within the [CODE] [CODE] stanza do what you want? That's assuming that the filesystem path for your example is [CODE]
0
1
952
2015-04-14T15:50:16.557
infrastructure
serverfault.com
369
Please try using smaller versions of images
Recently I asked this question on global Meta . The problem is when users upload huge photos to illustrate something they usually don't need very high resolution - for example, it might be a photo of a sink and it doesn't need to be 2000K by 1500K and weigh 700 kilobytes - it can be much smaller and will still look goo...
Good find about the [CODE] . I wonder if something could be done to insert the [CODE] automatically? I've just worked out that [CODE] actually stands for "large thumbnail". You can get smaller images by appending [CODE] (for "medium") and [CODE] (for "small") as well.
discussion,images
12
5
973
2011-08-19T08:09:09.193
api_errors
diy.meta.stackexchange.com
165,091
P4000 and ESX storage design
I need help and advice how to design my volumes to fit the need - good performance for sql type application, no lack of performance for file servers, remote copy or replication to dr site for protection for 90% data. my situation - site A ( production ) 1. we have 5 esx, 2 P4000 lefthand in each site. 2. we have 2-3 sq...
Does lefthand offer any sort of block level replication software? Have you looked at the VMware Site Recovery Manager? What you are talking about it what it does.
0
0
232
2010-07-29T00:49:27.263
database_errors
serverfault.com
307,956
Why does OPTION RECOMPILE cause a predicate pushdown?
I have a SQL query that is made out of a nested mess of views and table-valued functions going on for at least 4 levels deep ( I didn't have the time or patience to go through it all, it's hundreds of lines of code at each level ). I've been trying to understand why is it that when I run the base query with OPTION (REC...
Now, my question is why would the OPTION RECOMPILE plan behave differently than when just generating a new plan for a new query, with the same parameters / values passed to it. What does the OPTION RECOMPILE do? The main thing [CODE] does is to compile a plan for the current values of any parameters, rather than reusin...
8
20
1,511
2022-02-25T01:14:35.217
database_errors
dba.stackexchange.com
970,899
How to deal with Microsoft and Google agressive spam policies?
Introduction: I have run my own mail server for more than 10 years , and I never had any problem with Gmail, so far. But I needed to complain regularly (like every year) to Hotmail, because they were sending me directly to their Junk folder. So I used to fill in an online form they provided, and they removed me from th...
I suspect @HBruijn is right and you have some unruly neighbours, which you can't fix. Here are some suggestions for moving forward. Sign up to the mailop mailing list (yes, I know the cert is expired; the mailing list still works). This is a list for mail server operators which includes representatives from the big ema...
8
4
659
2019-06-11T05:55:46.137
infrastructure
serverfault.com
837,813
Mail Infrastructure
I want to have an infrastructure for our mail service. We had recently a problem with an mail server, because he was flagged as Spammer. The problem was that many mails goes over this server, and 30% couldn't get delivered (because a bad reputation). The thing is, we want to avoid such a problem in the future. But I do...
As a general rule don't send bulk mail through your main server. If you really need to do any kind of bulk mailing use a third party service so that they can take the reputation hit. They also tend to be smarter about the delivery (spreading across multiple servers, spreading over time, etc) then your average person ru...
0
1
101
2017-03-12T15:05:56.277
infrastructure
serverfault.com
320,087
MongoDB data directory transfer and upgrade
I just transferred my data directory (of Mongo 1.6.5) to a new server and installed Mongo 2.0 on it. I set the data directory path and did [CODE] . It failed, and the log file output says this - [CODE] I have already run it with --upgrade once.
I had to change the owner of the file to [CODE] and it worked.
2
2
878
2011-10-09T07:59:24.267
database_errors
serverfault.com
17,747
TSQL performance - JOIN on value BETWEEN min and max
I have two tables in which I store: an IP range - country lookup table a list of requests coming from different IPs The IPs were stored as [CODE] s to improve lookup performance. This is the table structure: [CODE] I want to get the request breakdown per country, so I perform the following query: [CODE] I have a lot of...
You need an additional index. In your Fiddle example I added: [CODE] Which covers you for the request table and gets an index seek instead of a clustered index scan. See how that improves it and let me know. I'm guessing it'll help quite a bit since the scan on that index is I'm sure not cheap.
10
3
11,576
2012-05-11T15:09:27.677
database_errors
dba.stackexchange.com
69,053
Slow FTP Uploads
I have a Windows FTP Server running on a 15 Mb/s DS3. When I connect to the server from a faster connection (40 Mb/s) and download from the server with 1 conenction I get roughly 50% of the 15 MB/s connection Speed (8 Mb/s) and when I run 2 connections at the same time I can max the conenction speed out. When I run a s...
I'm not too certain about how you're interpreting some things, but first off, the max speed you'll ever get from the internet here is 15 mbps, as the chain is only ever going to be as strong as it's weakest link. There may be no proxy servers, but there will be routers between the 2 boxes, which will all give accumulat...
0
1
2,043
2009-09-27T04:14:57.033
infrastructure
serverfault.com
143,558
Manual memory allocation and purity
Language like Haskell have concept of purity . In pure function, I can't mutate any state globally. Anyway Haskell fully abstracts memory management, so memory allocation is not a problem here. But if languages can handle memory directly like C++, it's very ambiguous to me. In these languages, memory allocation makes v...
I have to disagree with the basic premise. C++ (to use your example, though the same would apply to C, Pascal, Ada, etc.) doesn't give any real visibility into the heap. You can attempt to allocate some memory, which might succeed or fail -- but you have no visibility into why an allocation succeeded or failed, nor wha...
6
1
1,430
2012-04-09T03:32:12.123
api_errors
softwareengineering.stackexchange.com
313,908
Upgrade ubuntu 9.10 to 10.04
I'm stuck with a predicament upgrading from Ubuntu Server 9.10 to 10.4 This is a command line only environment. I'm Re-asking as the post as Placed on ( Upgrade ubuntu 9.10 to 10.04 ) has been deleted. I'm trying to do a "do-release-upgrade" from 9.10 to 10.4 Ubuntu server, from the command line. I've been wrestling wi...
Ok. I MAY have solved this. For those who are interested, here's how I got round it. Firstly , after a bit of searching, I found ALL the packages (Identical versions and MD5's) here : http://es.archive.trisquel.info/trisquel/pool/main/ At first I tried to point sources.list at this repo, but got the "Where disabling 3r...
0
0
1,426
2011-09-21T13:32:41.297
pipeline_ops
serverfault.com
881,432
Why is my IOS EzVPN client not connecting to my ASA EzVPN server?
I have a Cisco 867VAE connecting as an EzVPN NEM client to an ASA 5505 server which will not connect. The server ASA has the repeated messages: [CODE] The IOS client is repeatedly logging: [CODE] I have verified that the client and server usernames, passwords, and groups precisely match. Server ASA config: [CODE] Clien...
The salient lines of debug output are [CODE] which indicate that the server ASA is trying to identify itself by [CODE] . You can either update the client config to also use the hostname, or you can update the server to identify itself by IP address. To update the ASA to identify itself by IP, use [CODE] . [CODE]
2
2
864
2017-11-01T23:41:41.257
infrastructure
serverfault.com
865,143
Compiled a PHP, how do I load it in Apache?
I compiled and install PHP7.1.7 from source on Ubuntu16. I followed this tutorial: http://www.shaunfreeman.name/installing-php-7-on-ubuntu-16-04/ I followed it upto the place he adds something to the modules.ini files. Now, Apache was not loading any php, so I installed [CODE] Now apache loaded PHP, but the versions we...
There are two ways to execute php files from apache: using a module (which is what installing the mod_php package gives you. If you want to do that, you need to edit your httpd.conf file and load the correct module. I would recommend uninstalling the packaged version if you want your compiled version to reduce confusio...
1
0
1,064
2017-07-25T22:31:12.013
infrastructure
serverfault.com
912,239
What is auditing info?
I trying to move files from Server A to server B using robocopy with their NTFS and share permissions. Robocopy has an [CODE] option which should be able to do so, but the account I am using does not seem to have to right to use this option, but it can do [CODE] . The [CODE] option, which include auditing info is not i...
Auditing information is what is written to audit log for a file or folder, when any NTFS permission is granted or denied (it is set up separately for permission and action taken (grant/deny)). There is no default settings there, so an administrator must explicitly configure them. Usually it is done over sensitive data....
3
1
4,045
2018-05-15T07:01:32.797
infrastructure
serverfault.com
1,078,170
Redirect to external asset nginx
My goal is to have one nginx that can proxy_pass to other server. [CODE] Here my location block [CODE] And the error I get: 2021/09/21 09:27:32 [error] 8475#8475: *16 invalid port in upstream "https:/assets1.com/image.jpg?utm=whatever", client: [IP], server: domain.com, request: "GET /https://assets1.com/image.jpg?utm=...
Your original request URL contains protocol prefix: [CODE] . Your [CODE] block captures the part after first [CODE] , so [CODE] becomes [CODE] . In your [CODE] statement you have [CODE] , which becomes [CODE] when variable is expanded. nginx tries to parse [CODE] as an domain:port pair, so the domain part of URL is [CO...
0
0
1,155
2021-09-21T09:36:32.670
infrastructure
serverfault.com
166,636
What does slow down an InnoDB database that is fixed by re-importing it?
I recently noted a performance degradation on a MySQL 5.6 (InnoDB) database with several million records. This particular query was taking around 20 seconds on the first run (apparently data was loaded from disk) and 4 seconds on subsequent runs (apparently data was loaded from memory): [CODE] Same query on the same da...
Performance degradation was most likely caused by your table getting more and more fragmented by inserting and deleting many rows every day. Dumping your table, dropping it, and reloading after many deletes will compact the space on disk and reduce the size of the .ibd file, assuming that it uses its own tablespace. Yo...
0
2
269
2017-03-09T05:39:27.467
database_errors
dba.stackexchange.com
102,357
sklearn models Parameter tuning GridSearchCV
Dataframe: [CODE] The aim is to classify the text; if the review is about the functionality of the product (e.g. turn the light on, music), [CODE] , otherwise [CODE] . I am running several sklearn models to see which one works bests: [CODE] Problem : How to tune models using GridSearchCV? What I have so far: [CODE] Thi...
The correct way of calling the parameters inside [CODE] is using double underscore like [CODE] .So the first thing I noticed is in this line: [CODE] You are calling [CODE] but this should be [CODE] Now this is no the error displayed, rather it seems as if you were somewhere mixed your code since [CODE] is a parameter f...
2
2
1,453
2021-09-22T21:49:26.223
data_quality
datascience.stackexchange.com
411,353
Where to validate user input - Constructor, Validation object, or Factory method?
Let's say your application takes in a user request and you don't trust the front-end validation (because you never trust the front-end validation). In your controller or other handler, you want to convert this input into a domain object, since you'll need to pass it around a bit. In this scenario, what's the best pract...
You hit on good points but you sometimes miss a second option. The gist of my response to your question is that it can be done, it just requires effort to implement exactly what you want . In your controller or other handler You didn't explicitly claim otherwise, but I do want to point out here that different kinds of ...
1
3
1,911
2020-06-12T04:13:15.520
data_quality
softwareengineering.stackexchange.com
311,454
Disable gigabit ethernet throttling?
I've got two windows PCs connected by gigabit ethernet. When I use iperf to measure throughput it maxes out at a good 100MBit/s. When I run iperf using two or three parallel connections, each will get the full 100MBit/s, too. If I add all the parallel connections there should be a maximum speed of nearly 400MBit/s poss...
By default, iperf uses a TCP connection. It may be backing down on rate due to TCP's congestion control or a window size issue; try a UDP test ( [CODE] ). Also, check on the CPU usage - its generation of data may be saturating a core when there's a single process, while 4 processes can utilize 4 cores.
1
1
1,178
2011-09-14T19:26:35.743
infrastructure
serverfault.com
245,217
Postgres table with 35m rows slow queries. how can i improve the performance?
[CODE] 3.5 seconds [CODE] 1.9 seconds [CODE] 2.9 seconds table [CODE] contains 35m rows and table [CODE] contains 56m rows. the server is linode 32gb 16 core ubuntu. What i have done regarding this ? it's been mysql for me but haven't dealt with this loads of data earlier. i have been researching to improve the perform...
Things that have helped so far (from ~10-15s to ~2-4s): Upgrading Postgres from [CODE] to [CODE] (allowed for paralelisation, possibly other benefits too) Removing unnecessary [CODE] A couple of further ideas: Work out how to allow Postgres to choose Index-only scans in place of the slowest of the Index scans taking th...
1
1
2,433
2019-08-13T12:58:52.710
database_errors
dba.stackexchange.com
204,861
Errorlog, accesslog, slow query log, execution time log, traffic and req per sec into one tool?
I'm searching for a tool designed for LAMP server that combines server Error log, Access log, slow query log, takes time of execution of PHP scripts,traffic and req per sec statistics (for example from RRDTool) and put it all into one chronological list. Do you know this kind of tool?
Splunk is a great tool for this, and free for limited processing. However, if you're looking for a homegrown solution, I would just standardize the date format, cat them all together, and then pipe them through sort. I.e., [CODE]
0
1
250
2010-11-22T20:03:41.537
infrastructure
serverfault.com
278,143
Query works manually, not from stored procedure - Safe update error
I have a relatively simple update query that works fine when I manually execute it from a Mysql Workbench query window, but will not work when I call it as a stored procedure. The stored procedure in question: [CODE] The call to the stored procedure I'm using: [CODE] which returns Error Code: 1175. You are using safe u...
Right From the MySQL 8.0 Docs It is possible for UPDATE and DELETE statements to produce an error in safe-updates mode even with a key specified in the WHERE clause, if the optimizer decides not to use the index on the key column: Range access on the index cannot be used if memory usage exceeds that permitted by the ra...
4
2
1,654
2020-10-15T16:05:09.783
database_errors
dba.stackexchange.com
178,158
Postgresql / split one record on two rows depending of two fields
Depending of this [CODE] table structure : [CODE] Is it possible to have this output with one query ? [CODE]
In addition to Mladen's answer you can also use [CODE] to transpose columns to rows: [CODE] [CODE] makes it possible to reference tables at the same level that are declared above, so we can create a virtual table with two rows in terms of users. [CODE] can be beneficial performancewise compared to [CODE]
1
2
6,769
2017-07-06T12:45:58.397
database_errors
dba.stackexchange.com
150,299
Proper use of array in table? Multiple elements of the same field and record
I have a set of processing priorities that change every day given some user inputs in another program. Each priority has an item and a set of names assigned to it. The names can duplicate across priorities and there usually is multiple names per priority. Is there a better way to organize my priorities table? Am I usin...
This is not following the First Normal Form (1NF) . Your [CODE] table should contain a row per [CODE] , [CODE] , and [CODE] : [CODE] This will make it easier to enter or remove a [CODE] from a [CODE] / [CODE] combination. All 3 fields should make up the primary key to prevent a double entry. If you need the [CODE] in a...
-1
4
49
2016-09-21T14:33:25.530
data_quality
dba.stackexchange.com
775,353
Drain connections on restart of NGINX process?
I'm using NGINX 1.8.1 on CentOS 6 and 7. During our deploys, it is required that NGINX is stopped, the deploy executes, and NGINX starts again. Unfortunately, NGINX during a stop seems to just 500 all connections. As I'm using Ansible to update 2/10 hosts at a time, it's likely therefore that many of our clients will g...
According to the comments, you could try to solve this using a firewall: Task: Block incoming new connections, but keep related and established ones Try: [CODE] (or 443, whatever applies to your setup) to set the rule, thus blocking new traffic Do your deployment... Try: [CODE] (or 443, whatever applies to your setup) ...
4
4
5,999
2016-05-06T23:56:32.903
pipeline_ops
serverfault.com
420,523
Nagios notification of host back up after being down
Is it possible to get Nagios to send out a single "Host/Service Back Up" notification after a host/service has been down? For certain notifications, my boss gets notified. Instead of waiting for another host down notification or parsing through the interval of host down emails we were wondering if once the host/service...
Converted to an answer: I'm not sure what you mean. Do you have "r" (notify on host/service recoveries (UP/OK states)) in your host/service_notification_options.
0
1
507
2012-08-23T18:21:21.123
infrastructure
serverfault.com
503,884
amazon instance runs fine but extremely slow when logging in via ssh, webmail authentication
I'm running a large EC2 instance with ubuntu that is basically used to provide email services (IMAP, webmail access, etc) to some people. This server was previously hosted somewhere else but was moved to AWS because we needed a better performance, the problem is that it nevers works ok. The usage of resources in the in...
I found the problem. It was a misconfigured NIS service that has been interfering with everything else; I've stopped and disabled the service (was not really needed) and everything works ok now.
2
2
3,644
2013-04-30T13:48:47.987
api_errors
serverfault.com
6,405
Quick MySQL Backup
I have a database which is grown to 3GB and it has 3 MyISAM tables. And I have 4GB RAM. What will be the best (quick) way to backup this database without any performance lack. Or mysqldump will work without any problem? Edit I am not looking for a very big file containing lot of SQL statements. Now, do I have more opti...
mysqldump should be just fine. Since you have only 3GB of data, I expect the mysqldump to be decently fast (1-2 min as a single output). However, since your database is comprised of 3 MyISAM tables expect all three to be locked during the backup. Please keep mind that since tables are locked one at a time, you will not...
3
2
2,095
2011-10-01T22:10:06.020
database_errors
dba.stackexchange.com
10,162
Knn distance plot for determining eps of DBSCAN
I would like to use the knn distance plot to be able to figure out which eps value should I choose for the DBSCAN algorithm. Based on this page: The idea is to calculate, the average of the distances of every point to its k nearest neighbors. The value of k will be specified by the user and corresponds to MinPts. Next,...
You take the last column of that matrix sort descending plot index, distance hope to see a knee (if the distance does not work well. there might be none)
11
9
20,762
2016-02-09T16:29:52.363
data_quality
datascience.stackexchange.com
287,065
Outlook 2010 and error 0x8004011d
My Exchange server is 2010 and all the clients that connect to it Windows 7 + Outlook 2010 Pro. One of those clients is failing to connect returning 0x8004011d. I tried Microsoft's suggestion with no result. Any ideas would be welcome. EDIT: The fact that one of the clients was experiencing the problem was due to the r...
Actually after a reboot a few of the Microsoft Exchange Services that were marked as "Automatic" in the Services tab, had not actually started, thus causing the trouble. Starting them manually fixed the problem
0
1
9,783
2011-07-05T10:32:31.350
api_errors
serverfault.com
1,105,326
redis sentinels with docker-compose
so I have this kind of docker-compose [CODE] and this is my sentinel.conf file [CODE] and there are different config files and [CODE] changes for each container. so when I shut the master node down manually I expect that sentinels choose one of the slave nodes to be new master node but i get this kind of logs this is o...
You can see my repo with sentinels fully working https://github.com/helderjnpinto/Redis-Sentinel-Docker-Compose just do docker-compose up
2
1
5,523
2022-07-11T19:32:58.383
pipeline_ops
serverfault.com
640,516
Apache + mod_ssl (on Vagrant) HTTP connection works fine, HTTPS connection times out
Introduction Hi guys, this is quite a strange one that I've been battling with for a few hours now. I have a CentOS Vagrant box with a network adapter attached to my NAT (as opposed to host only). I have the following ports forwarded, which I've checked using VirtualBox: [CODE] I am running Apache 2.2 and mod_ssl with ...
I'm terribly sorry but this is was a pretty trivial issue that I completely overlooked. On my router, I had to open up 8081 as me.dev.willmorgan.co.uk was referencing my IP address externally. Silly me!
0
0
952
2014-10-29T12:34:48.953
api_errors
serverfault.com
26,843
What loss function should I use if I have been working on a classification problem which involves both multi-label and multi-class labels?
For example I have apple and pear pictures. What I am trying to do is to predict if a picture is an apple or pear picture and AT THE SAME TIME predicting whether the fruit is big and/or yellow. Thus predicting the fruit type (apple/pear) is multi-class problem, one vs all. Predicting whether the fruit big and/or yellow...
The labels of data are not mutually exclusive so you can't say this is a one vs. all problem, because more than one entry may be one in the output vector. Moreover, if in the seen there should be an apple or pear this can be considered as an exhaustive problem which means one of them should happen for each input. My op...
1
1
1,182
2018-01-19T18:41:57.753
data_quality
datascience.stackexchange.com
446,833
Logging, with optional foreign key cross reference
I am wanting to enhance a system to execute various background tasks (primarily data importation). In order to provide data for support, analysis and job status generally, I had been thinking of implementing a related table to record task updates e.g. [CODE] ...etc. At some point I thought that this is similar to a reg...
Structured logging is a good idea, since you can query more easily for relevant events. For example, you could build a view that lists all log entries that relate to a particular object or transaction. However: Log events typically have wildly different shapes/fields/properties, depending on the type of the event. This...
0
2
90
2023-07-31T01:29:37.287
api_errors
softwareengineering.stackexchange.com
68,597
Master Database Custom Table - Performance Issue?
So, using this article ( http://www.sswug.org/articles/viewarticle.aspx?id=22848 ) [CODE] I have created the table and an account specifically for accessing the evalres table. It works as desired. I substitute numerals for text in stored formulas that vary with each record: [CODE] In our business model, we provide the ...
Unless I'm missing a key point here, I don't understand why you would go to so much trouble to evaluate an expression. Having said that, you certainly shouldn't do anything in [CODE] , and if you must, why not just do something like: [CODE] THIS IS HORRIBLE CODE AND I WOULDN'T RECOMMEND IT TO ANYONE This code represent...
-1
2
121
2014-06-19T16:54:02.823
warehouse_errors
dba.stackexchange.com
329,833
RESTful Api for Mobile Clients
I am mobile developer and always have one particular fight with my web-service/backend developer which believe in designing restful api. Issue: As per Restful design,every api should be atomic in nature,but this create alot of problems to clients especially mobile based. Since to perform any operation like opening of a...
Something to remind the backend developer of: REST doesn't say anything about the size/complexity of the objects in the payload, only about the atomicity and stateless nature of the transactions. It's entirely allowable to have a path of the form [CODE] which returns a payload rooted in the same object as [CODE] but wi...
1
1
178
2016-08-31T17:31:22.960
api_errors
softwareengineering.stackexchange.com
1,047,213
Server Time Keeps Changing to 2 Hours in the Future
We have a Windows server that is part of a domain. The server's time keeps changing to two hours in the future. We have a large domain with many other servers that are not having issues. I have unregistered w32time and re-registered it. Edit: This is a Virtual Machine (VMware) and Host Time Synchronization is not enabl...
Are you sure this machine is listed as belonging to the correct time zone, and not in a time zone 2 hours ahead?
0
1
636
2020-12-22T16:34:54.540
infrastructure
serverfault.com
348,628
How can i keep permissions for _www apache
I'm on Mac OS X lion, and I use apache for php and rails development. What groups or permissions should I set so that apache, through the _www user/group has full read/write access to my website directories (located in ~/Projects) but also keeping my own read/write access for changing files?
Set group to _www, user to your username and permissions to 770 i.e. [CODE]
1
2
1,103
2012-01-10T21:12:28.737
infrastructure
serverfault.com
543,289
Different stack size limit for different users, how can I make sure that all users have the same stack size set?
I have a CentOS 6.4 server, when i run [CODE] as root i get this: [CODE] When I run [CODE] from apache's user, i get this: [CODE] How can i make sure that all users have the same stack size set? Edit: [CODE] apache's stack size is still 32768 even though i've changed this setting in [CODE] and rebooted the server.
Okay, I found the solution. It seems like it is set by default in the [CODE] file . I manually changed it on each server, restarted [CODE] and now it's set correctly.
2
0
8,503
2013-10-02T14:12:54.050
infrastructure
serverfault.com
87,812
Problem reading python code
Can someone explain the following python code. [CODE] value_geojson is a geojson variable. I like to think that I'm not a total python newbie but these are too many [] for me. I am a GeoJSON newbie though. Would appreciate help on that one, eventhough I know it's probably to simple for SE
See sections 3.2 and 3.3 of the geojson standard . It looks like [CODE] is a [CODE] object, which have a single member [CODE] which is a list of [CODE] objects. So [CODE] is now just the first [CODE] object. Those have a few members, including [CODE] , which is an arbitrary JSON object. At that point we're outside of t...
2
3
45
2021-01-11T18:26:43.790
data_quality
datascience.stackexchange.com
342,153
.htaccess ErrorDocument woes
I currently have an ErrorDocument directive defined inside my .htaccess file: [CODE] Now if I go to a non-existent page like this on my site it works fine: [CODE] However if I try go to a non-existent directory, the directive doesn't work [CODE] tries to find the document: [CODE] which of course doesn't exist. I've sea...
.htaccess files are evaluated relative to the directory that was requested. This is also true of directives inside [CODE] blocks inside your main configuration. The simplest solution would be to move the [CODE] directive into your main Apache configuration instead of the .htaccess file.
2
2
333
2011-12-18T20:55:44.780
infrastructure
serverfault.com
2,425
SQL Server - RangeX-X and RangeI-N locks
I came to a dead point in a deadlock analyze. According to msdn : RangeX-X are Exclusive range, exclusive resource lock; used when updating a key in a range. RangeI-N are Insert range, null resource lock; used to test ranges before inserting a new key into an index. So I understand that if I have an Index on 2 key colu...
I have figured this on my own and I wrote on my blog. For those interested in the solution visit this posts: RangeS-S , RangeS-U , RangeX-X NB : The links above have been modified to point to archive.org because the site is no longer valid. It's unfortunate. Also, the content of the blogs is quite extensive or I would ...
9
4
4,322
2011-04-28T12:49:13.750
database_errors
dba.stackexchange.com
322,316
Best database for array like collections
I'm going to build a Go application that will check id(s) in a list of ids. Structure will be something like this for database: Company A List 1 -> 100.000 ids List 2 -> 250.000 ids Company B List 1 -> 100.000 ids List 2 -> 250.000 ids etc.. These ids will be strings and I need to efficently query multiple ids and get ...
Best database for array like collections No such thing, all modern databases are relatively equal in performance. What would be the best database solution for this The best database solution would be to normalize your data and store it as rows in a table that relates the [CODE] objects to your [CODE] objects. Then you ...
-3
1
99
2023-01-19T14:00:12.817
warehouse_errors
dba.stackexchange.com
777,455
Ethernet cord not detecting in centos 7
Please help me out, the ethernet modules all are loaded but i could not find remaining the two ethernet ... [CODE] [CODE]
Your computer has two very old Via Rhine Fast Ethernet NICs. The drivers for these very old NICs were removed from RHEL/CentOS 7. The driver is still present in RHEL/CentOS 6, which will be supported for another couple of years. So, you can use that operating system if you really need those NICs. Probably the best thin...
1
4
1,840
2016-05-18T07:32:05.783
infrastructure
serverfault.com
370,147
I can't access my public IP from local network
I use a linux machine with two different internet connections as the default gateway of local network. Each internet conncetion has its own public ip address. I've used source routing with "ip rule" command to balance outgoing traffic between these two internet connections. eth0 is the local network. eth1 and ppp0 are ...
You need to use hairpin NAT in this scenario. Please note that PCI-DSS disallows this type of NAT rule.
2
1
5,784
2012-03-15T16:52:42.320
infrastructure
serverfault.com
732,715
mysql GTID replication
i try to use GTID and backdump mysql -u root -h xx.xxx.xxx.xx -p and i check the slave server show global variables like 'gtid_executed'; [CODE] show global variables like 'gtid_purged'; [CODE] while the master is show global variables like 'gtid_executed'; [CODE] show global variables like 'gtid_purged' -> ; [CODE] i ...
Enable GTID then execute RESET MASTER on slave before loading the dump file.
0
0
635
2015-10-30T09:20:49.153
database_errors
serverfault.com
90,970
SQL Server stored procedures fast in SQL but slow when called by ASP.NET
I am using ASP.NET with MVC3 with a SQL server database. From time to time, one of our stored procedures become incredibly slow when called by the web platform, but stay as fast when called directly in SSMS. The solution to this problem is to write "SET ARITHABORT ON" at the beginning of the stored procedure, which mag...
Changing ARITHABORT inside the procedure causes it to recompile: http://support.microsoft.com/kb/243586 So most likely you're dealing with parameter sniffing. If you don't figure other ways to fix this, adding "... option (recompile)" into the end of the statement you're having trouble should solve the issue. That of c...
4
2
9,124
2015-02-03T18:41:17.477
database_errors
dba.stackexchange.com
83,476
Assigning a local id to a user
I am creating a soap service where users will be able to interact with each other. They will have a contact list where people can be added. One of the security measures(others are in place, too) is to have a local ID assigned to a contact. To make the process clear, imagine the following scenario: $UserA prompts $UserB...
Unless you have a feature that requires this right now, you are over-engineering this. Don't make your solution more complicated than it has to be. If you get to the point where this is required, refactor your application to make it work, but don't try to anticipate what you might need or not need in the future. BTW, i...
0
1
361
2011-06-13T08:01:33.307
api_errors
softwareengineering.stackexchange.com
362,520
Information sharing in event-based systems
I'm developing a software system, which provides HTTP REST API, and I want to achieve a very modular and flexible design. So, there is a core functionality and feature modules, which handle only the logic related to each specific feature. The goal is to be able to add/remove modules in a flexible manner without the nee...
What data should I pass with the event? Definitely only id. Event is a notification that something happened, it's not intended to be a data container. This approach results in a loose coupling, so when you find out that your database doesn't cope with the load, it won't take too much effort to move that functionality i...
7
2
883
2017-12-16T18:39:17.140
api_errors
softwareengineering.stackexchange.com
222,298
Unable to Uninstall Exchange 2010 ("Internet Newsgroups" public folder)
I am trying to uninstall Exchange 2010, before installing a new instance of Exchange 2010 SP1 on a different server. (Our production Exchange server is 2003) We have met all of the Mailbox uninstall prereqs except for the following: Error: Uninstall cannot continue. Database 'Public Folder Database 1579722947': The pub...
Use adsiedit.msc to manually remove the Public Folders: Open Adsiedit.msc from run command Connect to your server (right-click on ADSI Edit, then Connect). Select Configuration for the well known Naming Context Expand to CN=Services/CN=Microsoft Exchange/CN=your organization name/CN=Administrative Groups/CN=Exchange Ad...
1
1
10,631
2011-01-14T00:14:52.850
database_errors
serverfault.com
321,768
Update one table's row from the results of multiple rows of another table
I've seen posts on how to update multiple rows (specifically using case?), but my question is the inverse. I have a table of [CODE] Person_ID Phone_number 1 102-345-6789 1 102-445-6789 2 102-545-6789 And a table of [CODE] : peopleid Phone_number_1 Phone_number_2 Name 1 Joe 2 Bob I'd like to get the [CODE] into the one ...
I don't think this is an elegant solution, but I just split it up and added a WHERE clause on the second iteration. [CODE] I'm sure there's a better way of doing this, to be more inclusive, but this does appear to work.
1
0
521
2023-01-05T20:45:22.640
warehouse_errors
dba.stackexchange.com
30,473
ETL: extracting from 200 tables - SSIS data flow or custom T-SQL?
Based on my analysis, a complete dimensional model for our data warehouse will require extraction from over 200 source tables. Some of these tables will be extracted as part of an incremental load and others will be a full load. To note, we have about 225 source databases all the with the same schema. From what I've se...
I wouldn't want to have 200 data flows in a single package. The time it'd take just to open up and validate would make you old before your time. EzAPI is fun but if you're new to .NET and SSIS, oh hell no, you don't want that. I think you'll spend far more time learning about the SSIS object model and possibly dealing ...
14
14
12,493
2012-12-14T21:39:44.260
warehouse_errors
dba.stackexchange.com
514,880
apache module to perform search and replace operations on response bodies?
I am trying to do search and replace operation on response bodies using a transparent apache reverse proxy configuration, the below config using "mod_substitute" and "mod_proxy" works as expected : [CODE] Now the problem is I need to remove a lot of garbage from the upstream proxied server response body and mod_substit...
What I needed was easily implementable using nginx and this module - https://github.com/agentzh/replace-filter-nginx-module
0
0
1,861
2013-06-11T09:02:36.817
infrastructure
serverfault.com
424,184
lost session after putting DB in single user mode
I have same problem as here: SQL2005 Stuck in Single Mode User Only difference, I am using SQL Server 2008. Tried everything, nothing works. When I run my [CODE] or [CODE] after killing the connection I get the following message: Msg 1205, Level 13, State 68, Line 1 Transaction (Process ID 56) was deadlocked on lock re...
Got it to work again. In my case following helped: [CODE]
0
0
1,349
2012-09-04T14:31:47.467
database_errors
serverfault.com
392,920
Update Entity for Repository Pattern and UOW Pattern C#
In one mock solution, I have created 3 mock projects to implement layered architecture design mainly the - Presentation Layer (Web) - Domain Model Layer - Infrastructure Layer. I haven't yet to add Application Service Layer (Web API). For simplicity, I have only two domain model entities: Customer.cs and Category.cs. I...
Generic Repository interface [CODE] Repository generic class [CODE] Web Controller [CODE]
-1
0
2,915
2019-06-05T14:10:42.293
api_errors
softwareengineering.stackexchange.com
435,319
Server 2008 SP1 VSS Writers Not Responding
I've got a Windows Server 08 box on SP1 that is having some problems. We've experienced backup problems and I've traced it down to VSS Writers not responding. From the command line, if I type vssadmin list providers, I get Provider name: 'Microsoft Software Shadow Copy provider 1.0' Provider type: System Provider Id: {...
I figured out the answer is to re-register the vss writers using the following batch file on this particular server. net stop "System Event Notification Service" net stop "Background Intelligent Transfer Service" net stop "COM+ Event System" net stop "Microsoft Software Shadow Copy Provider" net stop "Volume Shadow Cop...
3
5
11,384
2012-10-05T18:07:07.550
database_errors
serverfault.com
683,911
Use of CPUQuota in systemd
I am trying to put a hard limit in CPU usage for a dd command . I have created the following unit file [CODE] which call the following simple script [CODE] As I have seen in this guide , the CPU usage for my [CODE] service should not exceed the 10%. But when I run the [CODE] command the usage is about 70-75% . Any idea...
The Good Your solution is the correct and should actually be quite future-proof; by using systemd to control the services cgroup settings, eg. CPUQota. [CODE] See the [CODE] for more useful cgroup settings in systemd. The Bad There are two caveats to this though, which I ( and possibly a few others ) stumpled upon. Tho...
17
24
23,193
2015-04-19T21:09:38.170
infrastructure
serverfault.com
533,082
Microsoft Exchange Management console, Initilization Failed
Upon starting Exchange Management Console I am presented with the error [CODE] After spending some time googling, most of the problems were resolved by correcting the bindings on port 80. I did this by following these instructions here (Microsoft Support) . I've run out of ideas of how to fix this problem and would app...
Are you opening an EMC in the same Exchange server? Or is it in another computer? If you are trying to run it from a different computer, try opening an admin Powershell session on your exchange CAS server(s) and type this command [CODE] / [CODE] . This will enable winRM on the server to allow it to receive remote power...
2
0
760
2013-08-22T21:09:35.837
infrastructure
serverfault.com