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
926,230
How can I get Microsoft Command Line Utilities 14 for SQL Server to install?
In order to run a third-party WSUS script (against the Windows Internal Database) I downloaded the x64 version of the Microsoft Command Line Utilities 14 for SQL Server , but when I attempt the installation I get the following error message: Setup is missing an installation prerequisite: Microsoft ODBC Driver 11 for SQ...
The error message is correctly indicating that a prerequisite is missing, but does not correctly show which prerequisite is actually needed. What you actually need is the Microsoft ODBC Driver 13.1 for SQL Server . As for the version number discrepancy, according to Programs and Features, the "version 14" download is f...
5
8
8,162
2018-08-13T23:04:49.933
database_errors
serverfault.com
320,612
MYSQL query slow on sorting
I came across an issue, i have the following query: [CODE] It works but according 800.000 records on each table (posts and search) query time it's way big (results ex: 20 total, Query took 2.1060 seconds ). If i remove [CODE] the query time it's way less and the query it is executed faster. (20 total, Query took 0.0016...
Let's start by moving [CODE] into the inner query. That may drastically decrease the number of rows in [CODE] , leading to all sorts of speedups. Can there be multiple rows, hence your use of [CODE] ? Perhaps that can be eliminated or moved into the inner query? To explain why [CODE] makes such a difference... fetch ro...
2
0
142
2022-12-06T13:32:12.137
database_errors
dba.stackexchange.com
323,738
How can I effectively use one file per class in C++?
Even though I have a decent bit of professional experience with object oriented programming in Java and a basic familiarity with C, I've run into a bit of a mental block with C++ that I was hoping other developers could help me shine a light on. In Java, almost every time I define a class I naturally create a new .java...
In C++ you have full flexibility how you want to organize your files. But you have to get accustomed to this freedom to make the good choices: A first practice is to have include guards in headers, in order to avoid that due to shared dependencies, the same header gets included multiple times. A second is discipline: m...
11
10
9,973
2016-07-01T02:25:59.430
api_errors
softwareengineering.stackexchange.com
128,914
Data warehouse server. How do you calculate RAM/CPU specifications?
I am trying to write a spec for a data warehouse server for our planned data warehouse upgrade. As we run virtual servers on VMWare hosts we have the ability to add or remove resources as necessary. In the past we've incrementally added RAM and CPU as required. As our demands have increased we've lobbied for more resou...
Great question, and I did a session about this at TechEd a few years ago called Building the Fastest SQL Servers: https://channel9.msdn.com/Events/TechEd/NorthAmerica/2012/DBI328 In it, I explain that for data warehouses, you need storage that can provide data fast enough for SQL Server to consume it. Microsoft built a...
8
9
26,372
2016-02-11T01:28:01.870
data_quality
dba.stackexchange.com
162,491
Convert character varying(255)[] to JSONB
I currently have array of strings [CODE] and want to convert it to a [CODE] object. When I try to cast it directly, it results in an error, despite it being a valid JSON, is there a nice way to convert it?: [CODE]
You can not convert the array of strings to the single JSON object (directly at least). If you need to convert it to the array of JSONs use [CODE] If you need to convert it to the JSON array use [CODE] or [CODE] where [CODE] ensures that all values in the array is really valid JSON and [CODE] converts it to the JSONB a...
3
3
16,847
2017-01-27T23:30:11.560
warehouse_errors
dba.stackexchange.com
946,290
UnAuthorized use of tc command
I work in a small product company. I am part of team of size 4 that is building a deployment pipeline for our product My company has also hired a freelance devops consultant who helps us in managing our CI/CD platform. This guy has around 15 years of experience and is a hothead and i don't trust him. We use jenkins CI\...
Its not possible to tell the state of the system prior to these commands having been run and thus not possible to tell if he was removing a change he made or if the work he did was actually going to cause no changes. Purely from the basis of what was executed it suggests that there was a traffic control in place. Note ...
0
1
118
2018-12-21T16:04:16.050
pipeline_ops
serverfault.com
230,628
Linux + get the all information about the hardware from machine by tool or script
My Linux version Linux version 2.6.18-164.2.1.el5PAE Maybe some one have script (ksh,perl or bash etc) that can get all info from Linux system and display it. For example [CODE]
Use: [CODE] (list all PCI devices) [CODE] (list USB devices) [CODE] (list hardware) [CODE] (Hardware identification system) [CODE] (tool for dumping a computer's DMI (some say SMBIOS)) [CODE] (read temperature/voltage/fan sensors) [CODE] (show S.M.A.R.T.)
4
13
2,273
2011-02-03T13:59:22.857
infrastructure
serverfault.com
210,377
SQL Server 2012 not loading its self-generated SSL certificate
I have a requirement to remove the SSL certificate that is being used by a SQL Server 2012 SP4 database instance for data in transit encryption. The client wants the SQL Server to load its self-generated certificate instead of the SSL certificate that is currently loaded. After following the correct steps for removing ...
Discovered that a service broker endpoint was created using the same cert that we were trying to remove. After querying DMVs for sessions and connections we discovered that no connections were using the service broker endpoint so we deleted the server broker, dropped the certificate, then followed all of the steps for ...
2
1
1,197
2018-06-22T15:25:32.160
api_errors
dba.stackexchange.com
938,506
Increase disk detection timeout at boot with Linux/Systemd
I have a machine with a lot of disks, and an extra SAS controller in HBA mode. This seems to cause Linux to think for at least 8-10 seconds once in initramfs before the disks actually appear. The timeout for disk detection is 10 seconds. This causes BTRFS/MDADM/etc fail to mount a RAID1 that I have in my system, droppi...
I've finally found it! It's of course but a simple kernel parameter, found here https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html The parameter I was specifically looking for is [CODE] , I had already tried [CODE] but apparently that wasn't enough, as it still aborted the wait after 10 seconds. ...
11
3
3,147
2018-11-03T16:49:22.470
infrastructure
serverfault.com
291,585
Trouble with Microsoft Word 2008 and AFP Sharing
Currently, I have a central server that is accessed by many users through AFP sharing. Sometimes, multiple users may have the same Word document open, while other times it may just be one user and one document at a time. No matter what the case may be, an underlying problem persists when Microsoft Word attempts to inte...
are the affected users with network homes? MS Office apps try to create a temporary directory in the root of volumes which is very often prohibited by network policies. As far as I know similar issues are same for Office 2011 as Microsoft (similar to Adobe) doesn't support direct editing of files on shared volumes.
0
0
240
2011-07-18T20:42:15.507
infrastructure
serverfault.com
139,175
Seem to have banned my IP from my server
I can't seem to figure out the problem. I've checked the deny list in CSF , and even stopped it completely, as well IPTables. Somehow I'm still blocked from accessing my server. Currently I can access it from other IPs, so I'm pretty sure that's the problem (though I could be wrong, of course. I'm no expert) So any sug...
Well I went ahead and nullrouted the IP I couldn't connect to, and set the nameservers to a different IP. This solved it.
2
0
302
2010-05-06T11:36:37.147
infrastructure
serverfault.com
261,895
MySQL hosting: What are the recommended specs and w
I have two specific cases of MySQL hosting. 1) I have a case where I have 2000 plus concurrent users to a single MySQL Database. They are not simple web users, but actual business users who need to connect write and read constantly through about 8-9 business hours. What should be the specs of the MySQL server, ie proce...
Question 1 - it depends what they are writing and reading throughout the day, the volume of data, the nature of the application(s) served by the database etc. If by 'business user' you mean this would be a database server supporting an internal business app used by 2000 users (e.g. a call centre CRM application support...
0
2
1,649
2011-04-20T19:13:10.650
api_errors
serverfault.com
204,395
When to bail on a proposed solution?
Here's a *hypothetical* issue. There is a performance issue in the current release. Its difficult to find the cause of this issue because the performance tests haven't been run in roughly 10+ releases (with anywhere from 10 - 100 changes per release). My idea is to automate the process of running the performance tests ...
I wonder about the relative terms you use in your question. In particular, you said "rapidly diminishing ROI", which I'm not seeing within your question. Difficult to find bugs can greatly tarnish a company's reputation. So I wonder if you're looking at the full scope of this benefit equation. You have two principle dr...
1
4
130
2013-07-10T21:00:12.357
api_errors
softwareengineering.stackexchange.com
562,242
Getting AD groups recgnized in sudoers file
I am using winbind and samba to authenticate Ubuntu 12.04+ machines against Active Directory. I followed this guide: https://help.ubuntu.com/community/ADAuthentication Everything worked just as expected. I am able to register the machines on AD, I can ssh into them using my Windows credentials, I can add user to the su...
The issue was a typo in nsswitch.conf that prevented groups from being read.
2
1
386
2013-12-18T17:03:32.910
api_errors
serverfault.com
610,944
Nginx throws 404 only on php scripts using php-fpm
I've installed a testing server using [CODE] + [CODE] . I've tried all of the following: Nginx + Php5-fpm not rendering php files nginx + php fpm -> 404 php pages - file not found When accessing PHP files, nginx throws an 404 error Summarizing what I've tried: Reinstalling. Changing the script privileges (changed them ...
Solved it. It turns out that the problem was the permissions set on the socket where php was listening. I just had to change a directive called [CODE] on [CODE] [CODE] And set the user to [CODE] : [CODE] So the file looks like this: [CODE] Because I was using a unix socket instead of a tcp port: [CODE] Also, I was gett...
16
14
58,814
2014-07-08T13:36:41.637
infrastructure
serverfault.com
405,948
Bash script exit on error (set -e) closes putty SSH session
I'm using set -e to force my script to exit whenever an error occurs running a command. However this has the side effect of closing my putty terminal window that I am using to connect via SSH to the host. How do I stop the terminal from closing?
How are you running the script? The circumstances of a subprocess's exit shouldn't affect the shell that ran it... unless you're sourcing the script into your running shell. For example... [CODE] A 'nix shell is a running process of some shell interpreter (e.g., [CODE] , [CODE] , [CODE] ). "source"ing a script (which y...
4
15
7,275
2012-07-09T06:26:40.343
infrastructure
serverfault.com
414,009
Cannot administer services on remote Windows machine due to security issue
I have a Windows 2008 machine A with Administrator account X. I have another Windows 2008 machine B with Administrator account Y. Both machines have an account Z, with same username and password on both. Account Z is in the local Administrators group on both machines. They're not on a domain. From machine A, as user Z ...
Very grateful to everyone's comments, but here is the answer: http://blogs.msdn.com/b/vistacompatteam/archive/2006/09/22/766945.aspx There is a registry setting [CODE] Which impacts this. If I set that registry entry to 1, everything works as expected - users in Admin group can access remotely properly. It's not clear ...
7
6
1,445
2012-08-03T14:11:51.650
infrastructure
serverfault.com
833,310
Fix ZFS DEGRADED pool that had hot spare
I have a pool of 8-mirrored drives and one hot spare. One of the drives in a mirrored set failed, but I can't tell if the hot-spare was automatically added or not. The status of the spare is "IN USE", and the scan says it resilvered 1.7T. The mirror-0 still shows DEGRADED however. Is the mirror-0 100% up and I just nee...
I've got similar issue here . Try this: [CODE] It will kick out the faulted disk, then your pool will be ONLINE again.
6
4
3,722
2017-02-17T22:47:48.003
infrastructure
serverfault.com
210,065
Python dynamic attributes creation, a blessing or a curse?
Consider this code: [CODE] One can just override [CODE] to make attributes read only and prevent their creation at runtime, however: Why is this the default Python behavior (any good reasons)? Is there any practice to prevent this without altering each class? Would you worry about this behavior in serious projects? don...
As others already mentioned, preventing this would require a special case for [CODE] , and one of the design principles of Python is to avoid special cases, see the Zen of Python : Special cases aren't special enough to break the rules. This design is also in line with other design decisions, e.g, the lack of static ty...
6
7
3,705
2013-08-31T12:35:45.907
api_errors
softwareengineering.stackexchange.com
153,685
DB2: Database alias already exists when cataloging
SQL1005N The database alias "XYZ" already exists in either the local database directory or system database directory I am an accidental DB2 LUW on linux administrator; primary background in MSSQL and Oracle. We have an application that has an integrated DB2 Enterprise server as part of the stack. Within that, the appli...
Update: This was a classic case of looking at the obvious source of the problem instead of the actual source. The SQL1005N message was actually being generated by the client. By running [CODE] on the client, the entire list of previous database names were still in place. I wrote a quick sh script to run [CODE] for each...
2
1
5,878
2016-10-29T15:04:44.693
database_errors
dba.stackexchange.com
77,487
SSIS Performance tuning
Suppose my system has 8GB RAM and I have installed SQL Server 2012 on it along with the DataTools. Sql server engine uses 6GB memory. Will the SSIS uses remaning memory apart from 6GB or it uses 6GB? Also is there a way to count the number of buffers used and the records accomodated in each buffer and the size of the b...
SSIS will use as much memory as it needs. If there is not enough physical DRAM on the box, it will take it from the page file (which generally results in a big slowdown) The memory for running SSIS does not come out of the SQL Server memory space, it comes out of the memory that is left on the box after SQL Server has ...
2
4
179
2014-09-24T11:22:10.787
database_errors
dba.stackexchange.com
57,402
Is ASYNC_NETWORK_IO wait type anything to worry about?
In looking at the list of stored procedures that take long time to execute, one stands out as causing the most wait. However, most of that wait (81%) is ASYNC_NETWORK_IO and I know why: the stored procedure transfers roughly 400 MB of information. In the documentation, it states that the cause of ASYNC_NETWORK_IO is th...
As you said, this wait type indicates that the application is not keeping up with SQL Server. Now what that really means is, that SQL Server can't send the data over the network as fast as it would like. There can be two underlying causes: The app is written inefficiently and does not process the rows fast enough. The ...
16
14
22,650
2014-01-23T18:30:36.470
database_errors
dba.stackexchange.com
86,508
Computed column 'IsWeekend' in table <table_name> cannot be persisted because the column is non-deterministic
I'm in the process of tuning a query in SQL Server 2012 that is spilling to tempdb due to an incorrect cardinality estimation when using the [CODE] function on a column to check if the data is weekend or weekday. Due to the the use of the function, the query is non-sargable and mis-estimates the number of rows (est 170...
You can do a [CODE] between [CODE] , that just happens to be a monday, and check if modulo [CODE] is a [CODE] or a [CODE] . [CODE] BTW, you don't need to persist the computed column in order to use it in an index.
3
5
2,564
2014-12-18T12:06:12.047
database_errors
dba.stackexchange.com
73,075
throttle connections to apache load balancer
I have a load balancer using apache: http://httpd.apache.org/docs/2.2/mod/mod%5Fproxy%5Fbalancer.html The problem is our bandwidth. We're trying to get more, but the ISP has to run new lines and keeps putting us off, so I'd like to throttle down the spiders to conserve bandwidth until we can get more. I tried mod cband...
Not an apache module, but you can try using the "Crawl delay" directive in robots.txt to slow down well behaved spiders. http://en.wikipedia.org/wiki/Robots_exclusion_standard#Crawl-delay_directive
2
3
1,392
2009-10-09T19:41:24.603
infrastructure
serverfault.com
390,988
Multiple Linux sysadmins working as root
In our team we have three seasoned Linux sysadmins having to administer a few dozen Debian servers. Previously we have all worked as root using SSH public key authentication. But we had a discussion on what is the best practice for that scenario and couldn't agree on anything. Everybody's SSH public key is put into ~ro...
The second option is the best one IMHO. Personal accounts, sudo access. Disable root access via SSH completely. We have a few hundred servers and half a dozen system admins, this is how we do it. How does agent forwarding break exactly? Also, if it's such a hassle using [CODE] in front of every task you can invoke a su...
41
64
15,927
2012-05-21T09:58:33.077
api_errors
serverfault.com
208,859
Why can't this website send emails through Exchange 2010?
There are 2 websites running on 2 different servers. Both websites send emails out to internal and external addresses. When the websites were using Exchange 2003, they both worked fine. The client then migrated from Exchange 2003 to Exchange 2010. Now only one of the websites is still able to send out emails. The other...
(I'm basing this on Exchange 2007, so apologies if it has changed significantly, I haven't looked at 2010). In Exchange System Manager, pull up Server Configuration -> Hub Transport -> Receive Connectors Tab. Check the Authentication tab. There's a few settings there that deal with the types of auth the server requires...
0
1
2,013
2010-12-03T17:23:08.970
infrastructure
serverfault.com
284,635
How do I search by attribute in DynamoDB?
I inherited a site that uses DynamoDB for its database, which I know nothing about unfortunately, and I'm trying to change a user's email for them. There appears to be a users table in DynamoDB, but I don't know the user's id, only their username and current email, so at this point, I am just trying to find the record ...
I contacted AWS support, and they said two things: The read/write capacity of the table needed to be changed from "provisioned" to "on-demand". Scan is definitely the command to use here, not query; query requires the id, scan does not. [CODE]
0
1
3,960
2021-02-03T17:33:47.473
database_errors
dba.stackexchange.com
283,242
Why are all the tabs except MBeans disabled in JConsole? (when using "Remote Process" connection)
I'm trying to connect to JConsole on a server running: java version "1.6.0_0" OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu12) OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode) When I connect using the "Local Process" method, all the tabs are enabled -- when I connect via the "Remote Process" met...
Normally, the local process method will connect you to the JVM's platform MBeanServer , which is where all the management MXBeans are registered that supply all the data for those other tabs. However, when you connect remotely (and this varies by application/application server), may applications tend to spin up one or ...
0
1
1,059
2011-06-23T00:20:02.920
infrastructure
serverfault.com
610,430
Unmounted ZFS filesystem
I inherited a FreeNAS setup with ZFS mounts. I ran through this crash course on ZFS (no previous experience), but it doesn't answer my question. I have this list when I run [CODE] : [CODE] As you can see, [CODE] isn't mounted. In fact, it is exported as iSCSI to the VMWare host that uses it as a datastore. How is this ...
You can't mount it. [CODE] is a ZFS zvol . That means it's a block device formatted with another filesystem. In this case, it's likely exported via iSCSI and formatted with VMware VMFS.
2
1
1,546
2014-07-06T11:24:45.900
database_errors
serverfault.com
477,074
Simulate a SMART error on a drive for test purposes?
We are monitoring the disks on our servers using Smartmontools and Nagios with the check_smartmon or another Nagios plugin. It appears to work, as there are no errors. But how do I know if it is truly working? It would be great to simulate an error on the disk and observe the error through the entire Nagios pipeline. F...
If the drive firmware supports it, [CODE] can be used to manually corrupt some sectors via its [CODE] option. Note that this will really corrupt a sector, which means that: on subsequent read, the sector will be "discovered" as unreadable with a corresponding increase in SMART attribute 197 - [CODE] on subsequent write...
2
3
2,718
2013-02-08T23:39:29.137
pipeline_ops
serverfault.com
39,467
Logistic Regression Cost Function: Gives mathematical error since its attempting to calculate log(0)
I am learning machine learning and after reading through materials on logistic regression i attempted to implement logistic regression with gradient descent in python from scratch. It works well for some cases but for some cases it results in mathematical error, which is understandable if we see the case below. the cos...
While in theory you would never get values exactly equal to one or zero, in practice that's something that can indeed happen due to floating point arithmetic (if your values become too close to zero or one). You can prevent it by setting a minimum and maximum value for your 'guess' variable, and you are less likely to ...
1
2
1,220
2018-10-10T12:48:11.677
data_quality
datascience.stackexchange.com
707,151
IIS Host different urls on another server
I have a Asp.net MVC web app, and it has a bunch of controllers with a bunch of urls. I would like to redirect certain urls, for example, http://example.com/classes/students where any url that has /classes/ would redirect to another server. That other server would simple take the load for those requests. Everything els...
I don't have a full picture of what you're trying to do, so it would be hard to say whether this is a good idea or not. That said, you could easily pull this off by using the HTTP Redirect module in IIS on the 'classes' Virtual Directory.
0
0
33
2015-07-20T18:03:43.713
infrastructure
serverfault.com
343,789
Modifying an Apache 2 licensed file and add MIT license to it
TLDR; I'd like to add a (modification) copyright and a MIT License to an Apache 2 licensed file, which I modified. Description I modified a file that was licensed Apache 2. According to what I understand I had to do the following: include the license include the copyright stated the changes that I made I did not includ...
Perhaps this question might be worth a read. This might get tricky, especially if you are not the original author, or if you are indeed the original author but other people contributed non-trivial patches. I remember when the Mercurial project changed license: since I had contributed a couple of trivial patches a coupl...
0
1
1,774
2017-03-09T09:53:38.060
api_errors
softwareengineering.stackexchange.com
677,371
jenkins fails to connect to git repository
I can't configure the git repository url in a way, that Jenkins could access it. under "Project > Configure > Source Code Management" I set the Repository URL to "git@store:repositories/testproject.git" I get this error: [CODE] the access with that URL works on a shell: [CODE] I am asked for a password and it works. I ...
authentication works via ssh. have you added the public ssh-key of the jenkins user to the git-user on your git-server? let me know if you need instructions on how to set up ssh-authentication and i'll edit this post here. /EDIT: glad you got it running. i looked on the official jenkins website for a detailed manual on...
11
5
60,348
2015-03-22T13:58:25.200
pipeline_ops
serverfault.com
28,628
tempdb usage in SQL Server
I have a [CODE] statement writing to a database which is in SIMPLE recovery mode, and is not tempdb. Will this use tempdb at all? The SQL is something like [CODE] Will this use tempdb at all? We are running into contention issues.
First, run your query and make a note of your SESSION_ID. Then, run these two queries to see how much TempDB space your original query is using. Be sure to update them with your SESSION_ID. [CODE] Also, run this query to show us the layout of your TempDB. Please post the results. [CODE]
1
2
741
2012-11-13T19:33:20.243
database_errors
dba.stackexchange.com
734,527
Does rsyslogd send new information or the entire log file upon restart
I'm trying to use rsyslog on a Debian machine to send log data to an external server. The log files that I'm interested in have around 10GB of historical data. When I started on configuring rsyslog I was under the impression that it's going to start sending all the new log entries to the server but I was told by the ma...
Yes, by default it will start getting logs from the beginning, though it will write a state file to remember where it left off. I assume you can remove the state file, rotate the file in question and start fresh if you only want the new logs. Also, I would suggest to upgrade rsyslog to the latest stable (now 8.14.0) as...
2
1
1,048
2015-11-06T19:24:29.317
infrastructure
serverfault.com
83,260
Reviewing Stored Procedure template for handling transaction?
I've prepare a template for SQL Server stored procedures which will have Insert, delete, Update transaction. I have a stored procedure to log error in catch block in a table. How can I improve my stored procedure to handle transactional error or any kind of error where stored procedure should not give error on screen. ...
It might be worth looking at [CODE] instead of [CODE] . From BOL : Both the XACT_STATE and @@TRANCOUNT functions can be used to detect whether the current request has an active user transaction. @@TRANCOUNT cannot be used to determine whether that transaction has been classified as an uncommittable transaction. So ther...
1
2
2,072
2014-11-20T03:09:13.213
database_errors
dba.stackexchange.com
401,628
How to give/get the necessary implementation details in agile user stories?
I have a question regarding user stories and with agile in general. I read a few articles about user stories and there is a thing, that is not clear to me. For example in this article there is the following sentence: User stories are a few sentences in simple language that outline the desired outcome. They don't go int...
I want a glass of milk. What kind of milk? Don't care. Just milk. Warm or cold? Whatever give me milk. 2% or ... Milk! OK fine here's your milk. Eew, give me some milk that isn't past it's sell by date. User stories are a few sentences in simple language that outline the desired outcome. They deliberately do not go int...
4
8
1,660
2019-11-25T20:56:34.747
api_errors
softwareengineering.stackexchange.com
158,171
Why FORCING INDEX making this Query much slower on smaller datasets?
I am using MySQL 5.6 on Ubuntu Server. The SQL involves 2 tables, [CODE] and [CODE] . [CODE] is a relationship table to connect many-to-many relation between [CODE] and [CODE] The structures're like: [CODE] [CODE] has more columns. Indexes from [CODE] : [CODE] Indexes from [CODE] : [CODE] [CODE] table has ~6 million ro...
In Your case, index index_notes_on_comment_updated_at, include single column - comment_updated_at which is used nowhere in Your query in JOIN and/or WHERE part: [CODE] so, force MySQL to use this index - same as FORCE it to use FULL SCAN 'shared' and 'locked' - have very low cardinality, so not reduce number of rows in...
1
2
571
2016-12-14T18:05:59.487
database_errors
dba.stackexchange.com
6,627
SQL Server 2008 collation arabic
We are currently having a problem loading arabic into a SQL Server 2008 database. We want to load بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ but in the database it changes to بِسْمِ اللَّهِ الرَّحْمَ?نِ الرَّحِيمِ with a ? added, We have set the collation [CODE] and [CODE] and neither of these work..... any suggestions?
From a quick test this end none of the built in collations can represent all characters in that string in a single byte code page so you would need to use a unicode datatype. [CODE]
2
3
8,992
2011-10-08T20:38:53.573
database_errors
dba.stackexchange.com
1,019,156
Ansible error with auto provision Mikrotik router
I have a problem that I cannot understand how to solve ... From my ansible central machine I have written a routine for Mikrotik, to execute a series of configuration commands and thus auto provision my RBs, but it returns the following error, and I just don't know how to pass the OS detection configuration to me asks,...
The inventory variable [CODE] should be set to [CODE] according to the Ansible network platform documentation .
0
0
768
2020-05-29T11:05:54.410
pipeline_ops
serverfault.com
3,380
Dockerized Flask: Connection reset by peer
Trying to connect to a dockerized Flask app fails with error 104, 'Connection reset by peer' using this minimal example: app.py: [CODE] Dockerfile: [CODE] docker-compose.yml: [CODE] Flask app seems to be running as expected: [CODE] Trying to connect from outside fails: [CODE] Any ideas, why I can't get to see "Hello Wo...
Trying to connect from outside fails Are you actually connecting from outside ? Flask is binding to localhost (127.0.0.1) and that will only be reachable from within the container. If you're on your local machine, you'll need flask to bind to all IP's: [CODE] That works for me successfully.
16
27
14,991
2018-02-20T11:50:28.000
pipeline_ops
devops.stackexchange.com
18,342
some InnoDB settings in My.cnf are messing up everything, why?
When I edit my.cnf in MySQL 5.0 in filemanager and add the following settings, I get logged out automatically from Kloxo and when I remove these line and restart server everything is ok then: [CODE] but when I add the following line and restart I have no problem and this setting has been set: [CODE] Why is this happeni...
The next time you start mysql successfully, please run these [CODE] This will show you the size of the InnoDB Log Files. The names of those files are (by default) /var/lib/mysql/ib_logfile0 /var/lib/mysql/ib_logfile1 In order to change the size of the InnoDB Log Files, you must Add [CODE] to my.cnf [CODE] [CODE] [CODE]...
1
1
301
2012-05-24T04:05:30.033
database_errors
dba.stackexchange.com
562,931
How to issue a cert for web hosting using ad cert authority
I need to issue a certificate for SSL binding in IIS using Active Directory Certificate Authority. As far as I understand it should have Purpose=Auth Server and contain private key/be exportable. But Template=Web Server at https://dc.domain.local/certsrv/certrqma.asp has checkbox 'Mark keys as exportable' unselected an...
You have to duplicate the server authentication certificate template, and make the keys exportable, and enroll in your new cert template instead.
2
2
1,258
2013-12-21T20:19:34.863
infrastructure
serverfault.com
426,732
Shouldn't the scope of an injected dependency be dictated by the underlying implementation?
So, I'm binding an [CODE] to an [CODE] , and obviously I should bind it as a singleton, because otherwise it wouldn't work (as intended). So this got me thinking: Shouldn't the implementation dictate the scope of the binding? (It doesn't seem like major DI frameworks support this, and I'm wondering if there's a valid r...
The singleton design pattern limits a class to one and only one instance. The compiler and language constructs like access modifiers enforce this restriction. That shouldn't be confused with a singleton registered in a dependency injection container, which means for a given scope the container should return the same ob...
3
4
245
2021-05-26T13:06:11.760
api_errors
softwareengineering.stackexchange.com
465,867
large iSCSI disk a good idea on an entry-level "unified" NAS?
I am working on implementing a D2D backup solution for ~150 computers based on Crashplan ProE (no cloud storage). For the storage backend, I picked up an Overland Snapserver DX2 head unit and one expansion, with 12x2TB per cabinet and I'm planning on using RAID6 on a per-cabinet level. While the foundation of the syste...
First, iSCSI isn't a file system, it's a protocol for sending/accessing/receiving data by using SCSI commands over a network (interface). (yeah I know that's basic, you can google iscsi if you want wikipedia or other research) That said, the reliability is really based around the back end storage's reliability and the ...
-2
2
439
2013-01-10T16:45:28.293
hadoop_errors
serverfault.com
441,146
Why do HTML and JS feel slow on smartphones? What could be changed to make them faster?
HTML rendering and javascript engines are very optimized, so why do they feel slow on smartphones? It seems that HTML's low performance justified the creation of mobiles "apps" which are more responsive, but also did not allow developers to just do things in HTML. It seems that websites are generally too heavy/cluttere...
It's not really to do with HTML itself, and especially not XHTML, but four things: the document layout is dynamically computed at runtime based on the size of the device viewport. the attributes (including ones which affect the layout!) have to be computed at runtime from the CSS quite a lot of modern webpages isn't in...
-1
1
118
2022-09-20T13:13:59.207
api_errors
softwareengineering.stackexchange.com
181,521
Representing a rule in a ruleset
How to represent rules for a rule engine as objects? A rule would be if ( booleanExpression(input) ) then a chain of generic actions " else next rule ...where the generic actions might be e.g. passing the input to a different chain of rules, returning a conclusion (terminating analysis with result), or gathering additi...
Given that you have already defined what a rule is, the corresponding data structure would be straightforward (pseudo-code): [CODE] However, as you indicated by your reference to a ruleset , the interesting part of rule engines is the process of rule selection and their execution strategy. I'm afraid that there are as ...
6
3
2,604
2013-01-04T14:31:50.530
api_errors
softwareengineering.stackexchange.com
71,522
Percona MySQL 5.5 Unique key is duplicated
I'm totally out from ideas, so maybe somebody else could answer my question. We have a MySQL 5.5 server from Percona with high traffic. The application is in PHP and writes always to master. We have at the same time 4 slaves from which we only read. Basically it is a standard master-slave configuration. Last week happe...
This looks like you might have hit a bug logged against Percona Server 5.5: Concurrent duplicate inserts can violate a unique key constraint in InnoDB tables . There is no fix and no reproducible test case for this bug yet. It has only been observed in a production environment. The pattern described is: INSERT a value ...
5
7
1,009
2014-07-15T07:33:00.993
data_quality
dba.stackexchange.com
121,431
Is there a way to set up an SMTP relay that allows users of a web app to have the web app send emails with their own email address as senders?
the web service sends out emails on behalf of the users to their customers. So john@domainA.com uses webservice and webservice sends emails . The emails should be appearing as coming from john@domainA.com. Currently what we are trying to do is to configure webservice to act as an email client for each user, each user b...
No, not if the domain holder follows good security rules. Problem: Well maintained Domains have an SPF record stating exactly which servers are allowed to send email on behalf of the domain. Any other server (like yours) sending the email is automatically getting the email marked as spam. Some idiot broker tried that w...
0
3
727
2010-03-11T10:04:35.710
infrastructure
serverfault.com
463,345
What's the IPTABLES query to allow 9987 UDP in?
I'm trying to configure my VPS so it'll host a teamspeak server, but I've hit a snag with correctly configuring iptables to allow connections in. I attempted to do it myself, but I ended up allowing TCP in instead of UDP. How do I go about deleting this and/or inputting in an allow UDP on 9987 rule? 'ACCEPT tcp -- anyw...
iptables -A INPUT -p udp --dport 9987 -j ACCEPT [CODE] means "Append to the end of the named chain" [CODE] means "what protocol?" [CODE] lets you specify port and [CODE] means "jump to this chain."
3
8
1,101
2013-01-06T00:27:12.933
infrastructure
serverfault.com
238,308
How do we isolate dependencies for a .Net app deploy in a way which is safe for a strongly-named assemblies?
To design in such that it is easy to deploy dependencies with your app, and so that development environments are easy to set up, it is advantageous to isolate an app's dependencies from it's environment. That means the app can get its dependencies from a package manager, and it will not be affected by it's deployment e...
Using Nuget for library dependencies goes a long way toward dependency declaration and isolation. The packages.config associated to each project can be read as a dependency declaration. If those package references are marked 'private', they are bundled into the bin folder of your build outputs, and are presumably bundl...
7
1
2,689
2014-05-07T22:07:45.790
pipeline_ops
softwareengineering.stackexchange.com
116,714
Windows Server 2008 R2 Virtual Network Setup
Some background: I'm very much new to networking in general, and virtualization in particular. I'm trying to set up a series of VMs as we are transitioning to a thin client setup. I have been supplied a limited number of static ip addresses. The server is located in an offsite building which houses the network we use t...
I've never used RRAS, so my answer will be a bit generic, sorry. I'm a bit unclear as to whether "no rest of the network either" meant [CODE] or [CODE] . Obviously if the machines in the [CODE] network can't communicate with each other, that's the first thing you'll want to tackle, since then they can't access the RRAS...
2
1
1,229
2010-02-25T12:59:39.100
infrastructure
serverfault.com
9,485
Sikuli wrapper for .NET..Unable to connect to the remote server
I am using a Sikuli wrapper for .NET (Sikuli4Net). Using an embedded jetty server, it exposes the core functionality of Sikuli for use within .NET projects. However, in Visual Studio, when I try to run a WebDriver test script in which I included Sikuli4Net commands, as soon as the first Sikuli4Net command executes, the...
Try following code to start server: [CODE]
1
1
2,725
2014-08-18T22:00:23.297
data_quality
sqa.stackexchange.com
192,358
Creating Linked Server - Impersonation of Windows Authentication
I am trying to set up a linked server on Server A to Server B using windows authentication. Using SSMS, I can connect to both Server A (from ServerB) and Server B (From Server A) using Windows Authentication and the username [CODE] . Additionally, when I log into Server A from Server B or vice versa and run the followi...
Check to see if service account on source server is trusted for delegation. If it is not, enable it. You can identify which account needs this setting with the following query [CODE] you can do so via powershell [CODE] or with AD users and computers: on the properties of service account, delegation tab. A restart of SQ...
3
4
9,986
2017-12-04T16:48:09.643
database_errors
dba.stackexchange.com
660,248
Nodejs: server doesn't close TCP connections
Facing a problem in the production server running debian (7.0) with nodejs (v0.10.x) cluster where it doesn't close some TCP connections to the clients. This leads to connection drops when connection limit is reached. Using [CODE] tool I can monitor that some connections are closed after a while but some are not. Here ...
The problem was that [CODE] server doesn't inherit sockets timeout logic from [CODE] server. There is a patch merged since Apr 2013, but it still doesn't merged to stable [CODE] branch. The solutions: avoid [CODE] usage, use some proxy server (nginx); custom timeout handle; use node version higher than [CODE] .
0
1
1,979
2015-01-17T08:50:54.057
infrastructure
serverfault.com
334,659
ADMIN_REVALIDATE_DB_OBJECTS over a cursor?
Before I realized that there existed a procedure for revalidating objects (SYSPROC.ADMIN_REVALIDATE_DB_OBJECTS), I wrote my own. Now, I try to replace that with the standard one, but it appears as if the call to SYSPROC.ADMIN_REVALIDATE_DB_OBJECTS destroys the cursor I'm looping over. Example of old procedure: [CODE] E...
To ensure consistency of catalogs data, the [CODE] routine is designed to run explicit [CODE] statements. Therefore, the cursor must be declared [CODE] for it to remain valid across commits.
0
1
43
2024-01-08T11:37:01.900
database_errors
dba.stackexchange.com
138,557
Mac internet problems
Our office is set up with mostly macs (7 of them) but we do have a windows laptop and a windows desktop on the network as well. The network is configured with a modem going into a switch/router throughout the office to the computers, along with a wireless router. Everything runs fine most of the time, but periodically ...
If you are using residential routers such as Linksys, I've encountered issues due to TCP connection limits being low. If you cannot increase the connections with the default firmware, DD-WRT allows the connections to be modified. If your troubleshooting eliminates all equipment within your office, it may very well be y...
0
2
38
2010-05-04T20:29:26.147
infrastructure
serverfault.com
230,873
How does persistence fit into a purely functional language?
How does the pattern of using command handlers to deal with persistence fit into a purely functional language, where we want to make IO-related code as thin as possible? When implementing Domain-Driven Design in an object-oriented language, it's common to use the Command/Handler pattern to execute state changes. In thi...
The general way to separate components in Haskell is through monad transformer stacks. I explain this in more detail below. Imagine we're building a system that has several large-scale components: a component that talks with the disk or database (submodel) a component that does transformations on our domain (model) a c...
23
8
4,230
2014-03-01T11:32:06.520
database_errors
softwareengineering.stackexchange.com
937,931
Open Port 25 for Message Receipt Only in Postfix
I have configured Postfix as an SMTP server, running on a non-standard port, using TLS, with relay. However, I want to add the ability to receive mail directly to the user accounts on the system, and for that I have to open Port 25. But, I don't want to allow for relay to other mail servers through Port 25. Can I confi...
I believe I have configured my system to allow SMTP Relay through the non-standard port, but only allow SMTP delivery on Port 25. Remember that the [CODE] configuration file contains the global configuration options, which the values in the [CODE] configuration file can override. First, I have to ensure that I've added...
0
0
640
2018-10-30T18:45:30.097
infrastructure
serverfault.com
496,566
Slow internet connection - what to do?
These are the network specifications : 6 desktops, all with Windows XP Professional SP2 3 of these desktops have wireless cards 3 of them are connected through Ethernet cable to router Router: LinkSys WRT54G Bill says "3 Megas Broadband service" Recent Speedtest.net test: 10 ms ping, 2.9 Mbps download speed, 1.5 Mbps u...
Based on the fact that you're on the right site (you're working on a network in a professional environment, even if the equipment isn't really "professional-grade"), I'd suggest you do the Right Thing -- Replace that Linksys. I can't tell you if your router is "saturated" or not based on what you've told us, but it's d...
0
3
180
2013-04-05T17:07:28.553
infrastructure
serverfault.com
302,238
Am I missing an index for these slow queries?
I've tried analyzing the [CODE] but unsure if I'm missing some helpful index. Queries take 20-30 seconds across 14 million rows. [CODE] my query: [CODE] explain: [CODE] [CODE]
The Optimizer is between a rock and a hard place. Using [CODE] avoids the need for a sort, but might have to scan the entire table without finding even 1 row. If most of the rows have very few "failures", using [CODE] might lead to scanning most of the table, do a big sort, and finally delivering one row. Since you see...
0
1
58
2021-11-06T18:53:17.417
database_errors
dba.stackexchange.com
638,575
Connecting an EC2 VPC with OpenVPN all routed traffic being lost
I'm trying to use OpenVPN on Amazon Linux to connect the local LAN to a VPC on EC2. I have traffic flowing from the OpenVPN instance to any machine on the LAN, but other machines on the VPC are not seeing traffic from the LAN. Here's a trimmed version of the network: [CODE] From the EC2 OpenVPN server: [CODE] From the ...
Turns out EC2 was blocking the forwarded packets from the OpenVPN server. There is a setting on the EC2 Dashboard under Network & Security -> Network Interfaces -> Actions -> Change Source/Dest. Check. When I disabled this on all my instances traffic through the VPN is flowing as intended. Hopefully this will help some...
8
11
11,756
2014-10-21T13:57:14.860
infrastructure
serverfault.com
843,939
Strange ModSecurity entries in Apache error log
I recently migrated my VPS to Plesk Onyx v17 (running on Ubuntu 14.04) and, when checked the error logs this morning, I noticed multiple records like this one: [CODE] Here XXX.XXX.XXX.XXX is the IP address of my VPS. I decided to investigate this error but, when I opened Comodo WAF rules file 12_HTTP_Protocol.conf, I n...
The problem has been resolved with the new Comodo rules update on April 10. This update removed problematic rules ##217220, 217250, and 217270. That is the reason I didn't see the rule with ID 217270 in the file (it was an updated one). Apparently, ModSecurity was still running the old rule set, I restarted the server ...
-1
0
414
2017-04-11T16:10:27.380
infrastructure
serverfault.com
223,743
Apache Tomcat Windows service ignoring JAVA_HOME environment variable
I'm trying to get Apache Tomcat set up on a Windows Server 2003 machine. If I use the command line version ( [CODE] ) it all works fine, but if I try and use it as a Windows Service it seems to pick up the wrong value for [CODE] - it ignores the environment variable I have set, and it's using the runtime path rather th...
I fixed it in the end by firing up a command window, setting [CODE] appropriately, then running the following scripts from Tomcat's [CODE] directory: [CODE] I don't know how it did it, but that reconfigured the service to use the new value of [CODE] .
9
7
18,636
2011-01-18T12:42:22.563
infrastructure
serverfault.com
60,795
How to approach data prediction problem
I'm new to ML and data science. I would really like high level advice how to approach the following problem. I need to predict if an engine will fail, what I've is a sensor that give a certain value between 1 to 4 so a record might look like: [CODE] Each record is 150 readings in length. I've a few millions of this rec...
Are you familiar with deep learning? If yes, I would advise you to one-hot encode these records and use a 2D convolutional neural network for prediction. Since these are mere numbers and there is no way to engineer new features, I'm afraid conventional ML methods won't work. And the records have only 4 unique values, s...
1
0
100
2019-09-26T07:48:38.970
airflow_errors
datascience.stackexchange.com
549,153
Distributed storage and computing
Dear Serverfault community, After researching a number of distributed file systems for deployment in a production environment with the main purpose of performing both batch and real-time distributed computing I've identified the following list as potential candidates, mainly on maturity, license and support: Ceph Lustr...
It sounds like you've already done a lot of the groundwork here. With respect to your key requirements, all of the filesystems you identified meet them to some extent. These are things distributed filesystems do by virtue of being distributed filesystems. The only requirement that merits further discussion is licensing...
1
1
260
2013-10-28T14:22:10.357
database_errors
serverfault.com
1,013,174
Windows 10 SSTP with self-signed certificates
I can't seem to get the Windows 10 sstp client to connect to the (router) sstp server I have tried numerous combinations when creating my self signed certificates (ca & server) but I have to admit that I'm a little stumped CA : https://prnt.sc/rqtkhv + https://prnt.sc/rqtks0 Server : https://prnt.sc/rqtls4 + https://pr...
The mistake I made was to set the "Type of sign-in info" to [certificate]; this needs to remain [user name and password] The sstp server's ca certificate will is still checked by Windows 10 because that is an SSTP requirement
0
0
1,546
2020-04-01T12:59:36.090
data_quality
serverfault.com
208,713
Is it poor practice to call methods through multiple objects?
I have code that looks like this: [CODE] "tr" and "t" are objects. Is it bad practice to reach all the way down the object hierarchy to call methods? The only reason I can think of is that is breaks encapsulation, and if that's the case, can anybody tell me why that poses a problem? Also, does this code structure inhib...
The Law of Demeter suggests that you shouldn't call methods on objects two layers down like that. The idea is that, in your case, you should have a method findIndexSmoothed on tr which in turn calls findIndexSmoothed on t. What this does is makes your code adaptable. It means that the nature of tr.findIndexSmoothed can...
10
12
2,837
2013-08-18T18:34:35.100
api_errors
softwareengineering.stackexchange.com
563,792
Memcache_connect and security
[CODE] Using this php code, could anyone can connect to my Memcached server and put something using memcached_get()? Is it a security problem? How can I block access to it?
Until recently (1.4.3) memcached had no support for authentication, so anyone who could connect to memcached could do whatever they wanted. You can set up authentication if you wish, and your version of memcached is recent enough. You also should firewall the port, allowing only specific IP addresses in your network to...
2
3
139
2013-12-27T17:09:49.730
infrastructure
serverfault.com
94,446
MSSQL:Ultimate configuration for rebuilding indexes+statistics
My database is growing slower even though I have a bunch of indexes setup. Yesterday I figured out that I need to setup a maintenance plan to build the indexes etc. So my question is what's the ultimate configuration for this? Do I need All: "Rebuild idex task", "Reorganize index task" and "update statistics task". Any...
You do NOT need to run Update Statistics if you rebuild indexes. This happens by default with an index rebuild. It matters a great deal. You will waste a lot of time if you update stats after an index rebuild, because it's completely redundant. Rebuild indexes on tables with high clustered index fragmentation only. Def...
0
2
351
2009-12-15T07:15:07.327
database_errors
serverfault.com
313,543
Scaling Python CGI scripts
I have Apache running on a quad-core Ubuntu server on a 384kbps ADSL. Files are uploaded by users via a web-form and processed by various Python programs running as CGI scripts. Some scripts are CPU intensive and run at 100% (on one core) for a few minutes; these email the results to the user so the HTTP session is not...
If your python has been well written, and is decently modularised, then it shouldn't be too bad. What you need to do is look into Celery , and use it as a job queue. When a user submits a file for processing, it gets queued by Celery, and then will be processed either on the same server, or by a worker node, when the r...
1
1
338
2011-09-20T17:49:49.990
infrastructure
serverfault.com
46,430
80-20 better than full dataset for LightGBM
Recently I have been using LightGBM as regressor in order to predict, on a dataset of 20 thousand observations and 40 variables. I have two modes, 1) Production and 2) Testing. The first one just trains a model with the whole dataset. The second does the same with an 80% of the dataset and tests over the remaining 20% ...
I cannot think about any theoretical reason. However: It may be the case that the neg_mean_squared_error is not correctly implemented. Try another metric, like Median or Mean Percentage Error and see if that continues to happen. It may be related to how the data is distributed, but still that's not common. Lastly, I wo...
1
1
106
2019-02-28T22:32:38.460
data_quality
datascience.stackexchange.com
437,660
Coreinfo reports i7-3770 CPU doesn't support EPT (aka SLAT) and VMX
Here is the output I get when I run coreinfo: [CODE] According to Intel the CPU does have VMX and EPT support. Why is it not showing up in coreinfo?
You are looking at a virtual CPU since you are running the program from inside a VM. The virtualization itself is not virtualizable, so while the physical CPU has these features, the virtual CPU presented to the VM does not.
1
1
2,446
2012-10-12T08:59:44.400
infrastructure
serverfault.com
6,587
Eliminating the Page File
I've seen discussions go back and forth on this on several sites, so maybe we can come up with something definitive here. I have 8 GB memory on my Vista x64 workstation. Do I need a page file (that is, System Properties > Advanced > Performance Settings > Advanced Virtual Memory) and is it beneficial to have one or not...
The pagefile is used for a few other things that may be handy. For example, it is used for crash dumps if Windows crashes. So troubleshooting errors may become a lot harder. Also, some applications depend on the existence of a pagefile. The real question is why wouldn't you have a pagefile? Can't you afford the few GB ...
9
6
3,411
2009-05-09T08:16:21.913
infrastructure
serverfault.com
266,326
Make /usr/lib/sendmail deliver local mail locally (submit.cf vs sendmail.cf)
After changing my sendmail setup, I've got most things working, but sendmail incorrectly sends email to "foo@localhost" to port 25, instead of delivering it locally. How to fix?: Everything worked fine before the change, but I suspect sendmail.cf was doing the work that submit.cf does no. When I email "foo@localhost", ...
You can start sendmail with the -Am switch and not use submit.cf at all. Or you can have a sendmail daemon listen in some other port and then tweak submit.cf to deliver there instead of port 25.
0
0
702
2011-05-04T18:00:17.397
data_quality
serverfault.com
407,534
To root or not to root?
Please see the (somewhat) related topic here . My day-to-day tasks on a linux machine require superuser access since I would be (re)starting services, monitoring the system, (un)installing stuff etc. Some time ago, I was insulted/ridiculed in an IRC session (as to be expected), because I was logged in as root to instal...
In addition to the reasons already mentioned; In an environment large enough to have multiple system administrators for a single host or group of hosts, sudo allows for accountability that sharing the root account does not.
3
5
1,002
2012-07-13T14:48:36.380
pipeline_ops
serverfault.com
496,092
Changing physical path on IIS through appcmd isn't activated
We have come across an issue on IIS 7.5 where we have a simple deploy system which consists of the following: Create a zip-file of new webroot, consisting of three folders: [CODE] This is unzipped into a new folder (let's say we call it "SITE_REV1"), and contains a script which invokes the following (one for each webro...
Does changing the physical path from IIS Manager work correctly and immediately? You might want to try the following command. Differently syntax, should have the same result but maybe it works slightly different internally causing IIS to pick up the changes (better): [CODE]
11
0
6,901
2013-04-04T12:55:47.463
infrastructure
serverfault.com
98,304
View more than last 300 errors in error log?
cPanel only shows the last 300 errors in the error log, how can I view the entire log, or at least more than that? This is on a dedicated server with root access, so I assume there is a file somewhere with the entire thing if it can't just be viewed from cPanel. This is a linux machine. Edit: I am looking for the error...
Without knowing what type of logs you are looking for (apache/other_web_server/sytem/etc) or your distro the best place to start is in: [CODE] some common logs you may find useful (some may not exists depending on your distro) messages dmesg http/apache* (possibly also located at [CODE] secure syslog mail or mail.log
0
0
845
2009-12-30T17:58:11.810
infrastructure
serverfault.com
142,330
Why does this query work?
I have two tables, table_a (id, name) and table_b (id), let's say on Oracle 12c. Why does this query not return an exception? [CODE] From what I understand, Oracle sees this as [CODE] But what I don't get is why?
The query is syntactically correct SQL even if [CODE] does not have a [CODE] column. The reason is scope resolution. When the query is parsed, it is first checked whether [CODE] has a [CODE] column. Since it doesn't, then [CODE] is checked. It would throw an error only if neither of the tables had a [CODE] column. Fina...
35
58
5,497
2016-06-27T08:27:51.640
database_errors
dba.stackexchange.com
447,554
SqlCmd : Login timeout expired from localhost
I've setup the instance SQLEXPRESS via SQL Server 2008 R2 installation, added a security login with all server roles, one called 'sqluser'. The server authentication is SQL Server and Windows Authentication mode. However, when i specify the -S property, login fails. There is no firewall enabled and SQL server even acce...
You need to specify the -S switch to provide the instance name for sqlcmd to connect to, and it should be in the format "localhost\sqlexpress" instead of "localhost/sqlexpress".
2
4
17,888
2012-11-11T12:53:38.390
database_errors
serverfault.com
386,548
Why use apache spark instead of just a normal worker?
Why should someone use a stream processing engine like Apache Spark, Flink, Hadoop instead of just a normal backend worker which works on something and returns the results as soon as it's done? Credit card fraud checking example is given when we talk about these solution so what is the problem by just write a program a...
Spark and similar engines are built with processing massive amounts of data in mind. They enable you to run your calculation on dozens or hundreds of machines in parallell. This is not so easily implemented from scratch. So, for data which can be processed on a single machine, you are probably better off by writing a p...
1
3
105
2019-02-03T10:57:58.697
hadoop_errors
softwareengineering.stackexchange.com
190,994
Windows 7 client, 2003 Server, user account locked out repeatedly and repeatably
I have a Windows 7 laptop (domain member), and when I connect a VPN to the office, within 5-10 minutes the main file server/domain controller reports a failed logon for the user account, then 3, then 5, then the user account locks. It happens with no extra software running, so it's not an Outlook problem, for instance....
As my last update - I think I have it - the VPN username is the same as the Windows account username, but the passwords are different (because the VPN connects to a firewall, not a Windows server), however when accessing network resources Windows seems to be trying the VPN credentials first - because the account name i...
3
1
9,904
2010-10-14T16:27:47.343
api_errors
serverfault.com
78,054
Positive/negative training sample imbalance in multi-label image classifiers
I'm trying to train VGG-16 on the Pascal VOC 2012 dataset, which has images with 20 labels (and a given image can have multiple classes present). The examples are highly imbalanced, so I've "balanced" them such that each label is represented roughly equal in the training set. But this means that for each label, 5% of t...
There are other loss functions that are more useful for imbalanced multi-label datasets. One example is from FAIR’s Focal Loss for Dense Object Detection paper. Focal loss function is dynamic based on the predicted probability of each object. The goal is to decreases the dominance of over-represented classes in the tot...
1
1
184
2020-07-20T22:19:42.333
data_quality
datascience.stackexchange.com
273,349
What's the best way to handle Windows API errors in response to system messages or when I have nowhere to return them to?
This is going to be a really stupid question and I hope it's fine for Stack Exchange at all, let alone just this part of it... Right now, my custom Table control uses [CODE] functions that print an error on screen and [CODE] when a Windows API error occurs. This is obviously an issue, but I'm not completely sure how to...
Whenever an error happens one of the following scenarios must be true: You have checked for that error You have not checked for that error In case of #2 your application will crash and it's your job to make sure it crashes gracefully (nice message to user, logs and so on). In order to do that you need to check for erro...
8
1
842
2015-02-15T23:03:32.527
api_errors
softwareengineering.stackexchange.com
148,628
Only allow ssh connections to a specific domain
I have a server setup with several domains and subdomains. I'd like to limit ssh and sftp access so a user can only connect to xxx.domain1.com but I'm not sure where this is configured. Connecting via ay other domain/subdomain on the server should be refused. Thanks, J
Since SSH doesn't know something like the [CODE] header in HTTP/1.1, you cannot deny a specific user to login to your server. The SSH daemon can't know which domain originally resolved to the IP address it is listening on. You could only get another IP address, set it as A resource record for [CODE] and allow the user ...
2
9
7,847
2010-06-06T06:36:31.370
infrastructure
serverfault.com
898,190
aws s3api listing not working
I am trying to list content by using [CODE] for listing bucket content. I [CODE] When I run it it gets stuck, does not return anything neither return prompt but when I do [CODE] it returns the content. The reason I want to use [CODE] to paginate my query and get Next Token which I don't find in [CODE]
A Couple things that can help. [CODE] Turn on debug logging. will add some debug output to let you know what is going on, Also If you see issues when running list commands on a large number of resources, the default page size may be too high, causing calls to AWS services to time out. [CODE] https://docs.aws.amazon.com...
1
2
2,792
2018-02-21T11:47:01.393
infrastructure
serverfault.com
324,310
Using pgagent with docker?
I wanted to dive into the world of postgresql so I installed both postgresql and pgadmin using docker (with the portainer web ui) and I found out that for automatic jobs you gotta install pgagent too but I haven't been able to find any information on running it with docker. I found this image https://hub.docker.com/r/c...
I would suggest creating one from scratch. Install pgagent inside the postgres container: [CODE] Install the pgAgent extension: [CODE] create_ext_pgagent.sql: [CODE] Start pgagent: [CODE] Confirm that pgagent is connected to the database: [CODE] Setup pgpass: Note: your postgresql can differ depending on the distributi...
0
0
2,910
2023-03-02T20:17:02.283
pipeline_ops
dba.stackexchange.com
41,405
Varchar index - will hashing value make it faster?
I have a [CODE] column in a table. It will contain strings that will not be guaranteed to be unique. I have a query that searches this column as part of a [CODE] clause, the list of values in the [CODE] list is going to be approx 100. The table will likely have millions of rows after the first few months. I understand ...
What you are asking is a little daunting. Here is why: Would it be faster to store a hash of the value as well and instead index and search on that? Creating a hash column and indexing sounds like a great idea. I have suggested that back on [CODE] : Possible INDEX on a VARCHAR field in MySql (See Suggestion #3) Does th...
5
2
6,356
2013-05-02T12:37:07.297
database_errors
dba.stackexchange.com
149,131
Automatic recovery of the failed postgresql master node is not working with pgpool II
I am new to Postgresql and Pgpool II setup. I have configured the Postgresql HA/Load balancing using Pgpool II and Repmgr. I have followed the link to do the setup. The setup consist of 3 nodes and verison of Application and OS is as mentioned below: OS version => CentOS 6.8 (On all the 3 nodes) Pgpool node => 192.168....
It is as designed: when pgpool does the failover, the failed master is ejected from the pool so that there is a protection against a split-brain. If the failed master comes back again (degenrated master), pgpool will not automatically perform the recovery operation. You have to manually execute the command pcp_recovery...
2
0
3,245
2016-09-08T16:51:20.640
database_errors
dba.stackexchange.com
424,266
Server 2008 R2 not visible in DPM 2007
I have a Dell PowerVault DP600 running Data Protection Manager 2007 on a Windows Storage Server 2003 R2 OS. The unit was delivered by Dell in this configuration. It has worked wonderfully for years, backing up XP, Win 2003, and Win 2008 servers. I have recently added a Dell PowerEdge T710 server running Win2008 R2 func...
Applying the hotfix from here fixed the problem. I'm not sure excactly what the problem was to cause this, as the description of the issues in didn't describe what was happening.
0
0
262
2012-09-04T18:29:54.477
infrastructure
serverfault.com
459,369
Disabling URL decoding in nginx proxy
When I browse to this URL: [CODE] server ( [CODE] ) receives it as-is: [CODE] However when I proxy this application via nginx (1.1.19): [CODE] The same request routed through nginx port is forwarded with path decoded: [CODE] Decoded square brackets in the GET path are causing the errors in the target server ( HTTP Stat...
Quoting Valentin V. Bartenev (who should get the full credit for this answer): A quote from documentation : If proxy_pass is specified with URI , when passing a request to the server, part of a normalized request URI matching the location is replaced by a URI specified in the directive If [CODE] is specified without UR...
35
30
56,086
2012-12-19T15:56:22.753
infrastructure
serverfault.com
230,098
Missing data in SQL Server
I need to find the data that is present in Oracle, but missing from SQL Server. I have tried the below query, but am getting the following error: The multi-part identifier "PS.TXN_ID" could not be bound. [CODE] Can someone help out please?
You have not aliased the OPENQUERY result set as "PS" in your supplied query. Without the alias "PS", SQL Server does not know to what this refers, so PS.TXN_ID is meaningless. Try this: [CODE] Alternatively, try using the EXCEPT operator: [CODE] EXCEPT Operator
0
1
172
2019-02-19T04:57:02.770
data_quality
dba.stackexchange.com
429,190
EC2 after restart can not access via ssh
I was connecting my ec2 instance via ssh well,after adding new EBS volume restarted the machine by 'sudo shutdown -r now' And after that I tried to access by using follwing command: [CODE] which is retuning like below: [CODE] What is wrong?Any point that I am missing?
The line [CODE] Indicates that you disabled password authentication. You can only authenticate using a public key (while having the corresponding private key). The two consecutive lines [CODE] indicates that you are using an RSA private key that could be read fine, but that its public counterpart could not be authentic...
3
3
1,260
2012-09-17T18:47:25.640
infrastructure
serverfault.com
833,194
ssh key passphrase wrong but it's right
I can't use my ssh id_rsa/id_rsa.pub keys because looks like ssh thinks that entered passphrase is wrong. But I'm sure that it's right. Here is how it looks: [CODE] So as far I understand it thinks that the passphrase is wrong. Before this issue I've got another one (I'm not sure but maybe they are related?): [CODE] An...
Public keys don't get passphrases. Private keys do. You are incorrectly trying to use your public key as your identity, which will never work. Use your private key.
2
6
17,264
2017-02-17T13:39:19.140
infrastructure
serverfault.com
909,071
MongoDB secondary replica permanently in not reachable/healthy state
I have a standard 3 node MongoDB replica set: [CODE] - Primary [CODE] - Secondary [CODE] - Secondary I'm currently not able to connect to them as a replica set, I can only connect through the primary. If I run [CODE] on the primary, I repeatedly get: [CODE] When I ssh into the primary, I see the following error in [COD...
It seems that your settings is still [CODE] disabled in ReplicaSet. To enable it, simply add a [CODE] in settings or use [CODE] in command line option. Here is an example showing how to generate such file: [CODE] then add to [CODE] the path of the genreated keyfile: [CODE] restart the mongod service, right now your mon...
1
1
11,544
2018-04-23T19:48:46.103
database_errors
serverfault.com
394,462
Powershell or WMI to pull Printer Properties and Additional Drivers?
What I am trying to accomplish: Use a powershell script (WMI or cmdlets directly, or a combination) to query a 2003 or 2008 server with the PrintServer role, enumerate the printers shared, then list the drivers in use for that printer and specifically if an x86 or x64 driver is being used (or both). I've looked at Win3...
Your script looks good. Might I suggest using [CODE] as opposed [CODE] . The output then looks like: Xerox WorkCentre Pro C3545 PS,3,Windows x64 C:\Windows\system32\spool\DRIVERS\x64\3... Xerox WorkCentre Pro C3545,3,Windows NT x86 C:\Windows\system32\spool\DRIVERS\W32X8... Granted, still probably not as clean as you w...
2
1
8,709
2012-05-31T18:33:14.417
infrastructure
serverfault.com
240,532
When should you use Local Classes in Java?
I learned about local classes on the Oracle Java Tutorial page . Not nested classes. I don't see myself using local classes. It makes the code look messy and you can easily do what local classes do with having a class declared separately. But maybe I'm missing some use cases for it. Are there situations where you would...
Local classes are just a way to encapsulate some state and behavior locally. But I think you're right; if it's worth doing, it's worth doing in a way that is reusable, and that means public classes, not local ones. Local classes seem to me to be a bit of a code smell because they are indicative of an outer class defini...
7
2
1,737
2014-05-19T19:58:11.603
database_errors
softwareengineering.stackexchange.com
482,625
VPN Connection don't have access to remote access to VM's
The problem is: Within the LAN have remote access virtual machines, including the VM's (xx1.11 and xx1.26). Working through vpn in remote location, have access to the entire LAN, have remote access to all machines in the domain, not only have access to the virtual machine (xx1.11 and xx1.26). You can see the network sc...
I'm rather new at Hyper-V but on my server I don't have a default gateway on my virtual NIC. Instead I have the default gateway set on my second NIC. This way I can RDP to the VM host via the secondary NIC while all my VM traffic uses the Virtual NIC. On my individual VMs I set the network as needed, including the defa...
0
0
860
2013-02-26T14:36:10.780
infrastructure
serverfault.com
394,886
IIS 7.5 returning 404 for unknown host names
This just doesn't seem correct to me, so I'm looking for someone to tell me how I've misconfigured IIS... Configuration is IIS7.5 (2008R2), without SP1. I have IIS 7.5 configured w/several sites. ALL sites have hostnames defined in the bindings, there is NO site w/out a hostname. However, if I request an unknown hostna...
This is by design. A URL Reservation is not the same as a URL Registration, which happens dynamically when an application registers with HTTP.SYS to being listening. In the case of a URL Reservation, HTTP.SYS does not know whether the URL in a given Reservation is simply unavailable temporarily or does not exist at all...
5
2
4,381
2012-06-01T23:51:43.163
api_errors
serverfault.com