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
14,136
Different testing approaches for different teams?
I'm responsible for introducing QA to two teams in the same company (let's call them A and B). None of them had any systematic QA before. A and B develop two different products use different programming languages use different project frameworks (scrum vs waterfall) are on very different stages of the product developme...
As Bookeater says, you absolutely want to unify tools and processes between the teams. That said, I'm going to offer some extra advice because I've been in this situation (and to some extent I am still in this situation). Hasten slowly - Each team has built up a process and toolset that works for them. A newcomer telli...
9
10
428
2015-08-05T09:19:17.850
data_quality
sqa.stackexchange.com
121,149
Is using Javascript/JQuery for layout and style bad practice?
Many, but not all, HTML layout problems can be solved with CSS alone. For those that can't, JQuery (on document load) has become very popular.* As a result of its ease, many developers are quick to use JQuery or Javascript for layout and style — even without understanding whether or not the problem can be solved with C...
If the problem can be solved using CSS, it shouldn't be solved in Javascript, and it's a definitely bad practice to do so: I guess no one has JS disabled nowadays, but NoScript is probably not completely negligible Harder to debug and maintain Probably will introduce a noticeable and ugly effect when JS loads and "fixe...
6
4
3,468
2011-11-22T20:26:50.503
api_errors
softwareengineering.stackexchange.com
136,636
Postgresql BDR problem compiling pluging
I'm trying to build deb packages for postgresql BDR plugin, but I'm getting the following error: [CODE] To build this deb package I'm using the following commands: [CODE] About the dependencies, all the postgresql-BDR server are installed, and all postgresql looks ok: [CODE] Any idea why I'm getting this error? Regards
The cause of the issue is that Debian/Ubuntu upgraded [CODE] to require [CODE] which in turns requires [CODE] 9.5. There were changes in libpq 9.5 that broke the patched versions of [CODE] and [CODE] bundled in BDR. BDR 1.0 adds compatibility changes to address this, but there's no real way around the issue that when D...
1
1
139
2016-04-26T16:20:25.683
database_errors
dba.stackexchange.com
110,638
Optimal clusters for K-means not clear - any ideas?
I have a toy dataset of 10,000 strings of people's names, addresses and birthdays. As a quirk of the data collection process it is highly likely there are duplicate people caused by typos and I am trying to cluster them using K-means. I know there are easier ways of doing this, but the reason I am doing it like this is...
First, if you are interested in identifying duplicate records via clustering I would suggest you to use agglomerative hierarchical algorithm (e.g. single-linkage). It will result with a complete dendogramm and somewhere in the bottom of this dendogramm you will find your duplicated records. Second, regarding TF-IDF rep...
0
1
41
2022-05-04T11:04:45.070
data_quality
datascience.stackexchange.com
275,984
How would you design a user database with custom fields
This question is around how should I design a database, it can be relational / nosql databases, depending on what will be the better solution Given a requirement where you'll need to create a system that will involve a database to track "Company" and "User". A single user always only belong to one company A user can on...
Please consider this as an alternative. The previous two examples will both require that you make changes to the schema as the application's scope grows in addition the "custom_column" solution is difficult to extend and maintain. Eventually you'll end up with Custom_510 and then just imagine how awful this table will ...
23
17
25,848
2015-03-11T15:32:55.143
database_errors
softwareengineering.stackexchange.com
335,182
logical replication issue: increasing wal files and replication lag
I have 2 PostgreSQL 16 instances in different location and I am trying to apply logical replication between couple of tables even there are thousands of tables in publisher site. I mean there are about 5000 tables in publisher site but I am using logical replication for only 60 tables All the replicated tables are in s...
My guess: you have long running transactions on the publisher, and you didn't define the subscription with [CODE] . But wait a minute: you still have some workers running that copy original table contents. Replication won't start until they are done. Perhaps you should start replication with a few tables and then use [...
0
0
88
2024-01-25T06:24:18.837
api_errors
dba.stackexchange.com
472,943
Office 365 and Active Directory limitations
We are currently using Office 365 for education in one of our forest which contains a AD, master of the domain (example.com), a AD "sub-domain" (test.example.com), another AD (examplebis.com) and a DirSyn which works perfectly. My point here is about the limitation of 50.000 objects that can be supported by O365. I und...
I posted my question in http://community.office365.com . And here is the answer I had back from Jesper Stähle , thanks to him: "Hi, The limitation is about AD-objects. Short answer to the question you have been asked is: "No." The limitation is not regarding users in the tenant (enabled or disabled), it regards objects...
1
2
185
2013-01-28T07:41:47.883
infrastructure
serverfault.com
118,958
Log file shrink attempts are futile
I have got a question relating to SQL server log files in a production environment, however what I am trying to do is first run some testing on a smaller Test Database (E10Test) before I move on to the production database. However I am having some issues on shrinking the Log file. Here are the Database properties of E1...
The documentation to dbcc shrinkfile says: Because a log file can only be shrunk to a virtual log file boundary, shrinking a log file to a size smaller than the size of a virtual log file might not be possible, even if it is not being used. The size of the virtual log file is chosen dynamically by the Database Engine w...
0
1
516
2015-10-23T02:45:06.957
database_errors
dba.stackexchange.com
404,712
PPTP linux server - Linux clients ok - Windows client can't connect to some web servers
I have one mysterious problem with our VPN office server. I have installed PPTP server on Debin 6 Squeeze and enabled forwardind, because I need to connect to some servers with our office IP address. Everything works like a charm when I am connecting from Linux client (Ubuntu and Android). I can access office server an...
I will answer my question myself; this helped: [CODE] From the poptop mailing list and LARTC .
0
1
2,170
2012-07-04T12:16:05.713
infrastructure
serverfault.com
76,961
Are Extended Validation SSL certificates effective?
Every time an SSL cert comes up for renewal, my provider tries to sell me an Extended Validation certificate. The big difference is the green address bar in FireFox and Safari for quadruple or quintuple the cost. Supposedly, the benefit (and reason for the green bar not shown in IE8 or Chrome) is deeper authentication ...
Six years on, and it's time to rewrite this sucker from the perspective of 2015 (and a lot more personal experience in the world of commercial CAs). First off, as far as EV certificates inspiring trust, the answer is (still) "no, not really". Independent studies of EV certificates just don't show a meaningful impact am...
6
3
1,186
2009-10-21T21:25:41.220
api_errors
serverfault.com
106,059
MYSQL crashes on XAMPP while working with drupal
Good day, just today morning i was using drupal to add some content, it crashed and mysql shutdown unexpectedly at xampp!! last thing i was doing was inserting a data into a field with "auto complete entity reference"..but after inserting, it gave me an error in red: "no data exist in entity reference", next thing i di...
ok, i best solution which suited me well. for being cautious in choosing the above solutions provided in my question above.. (cuz the solutions didn't guarantee 100% that my data would be intact), i made a backup for my drupal database folder just in case. chose solution (2), which is adding the force_recovery..but no ...
1
0
1,909
2015-07-06T12:59:24.117
data_quality
dba.stackexchange.com
13,970
Why am I getting error trying to mount a directory onto a file?
I have this prometheus deployment manifest file: to create prometheus deployment [CODE] but this error that "trying to mount a directory onto a file " [CODE] I have prometheus-config configmap already setup. [CODE] what might have gone wrong ?
[CODE] based on [CODE] actually creates the files for the data keys. You don't need the filename in the [CODE] or the [CODE] [CODE] Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/
2
2
4,267
2021-05-23T10:41:14.590
pipeline_ops
devops.stackexchange.com
966,070
Apache Err 403 on static files from a docker volume
I am struggling with staticfiles and, since I'm new to docker and not quite fluent with Apache, I am not sure whether the problem comes from the former or the latter. [ the set up ] I have a dockerized app with a WSGI server and I am using a non dockerized Apache as a proxy pass. The proxy works but since the WSGI serv...
The easiest way I could find was to mount the volume in a place where all components of the PATH were allow for search (such as [CODE] ). Here is the [CODE] file [CODE]
0
0
1,236
2019-05-06T16:19:06.320
api_errors
serverfault.com
693,124
Samba vulnerability to rpcclient attack
There is what seems to be a known vulnerability in Samba exploitable via rpcclient . One can use rpcclient to access a Samba server, and then by using commands such as srvinfo , enumprivs , lookupnames and lookupsids , information valuable to a hacker (OS and platform information, usernames and id's, ...) can be retrie...
The normal function of the RPC just represent a risk when your servers allow to establish anonymous sessions (using username ''" and password ''") In this scenario anyone can retrieve the valuable information that you mentioned before using rpclient's commands. So, avoid that your servers permit null sessions and that'...
0
2
2,290
2015-05-19T19:53:03.147
infrastructure
serverfault.com
957,161
Error when trying to enable ufw logs on Ubuntu
I am trying to enable logs for ufw. When I do [CODE] I get [CODE] Which is ok Then I try to enable logs: [root@artik log]# ufw logging on ERROR: Could not update running firewall So I try to disable firewall, enable logging and restart ufw [CODE] Why is it happening ? What should I do to fix it?
Here is how I fixed it Disable IPV6 in [CODE] change [CODE] to [CODE] Logs was giving me errors, so I disabled it [CODE] Then I configured the firewall [CODE] Hope it helps others!
2
2
17,953
2019-03-07T10:05:51.953
infrastructure
serverfault.com
463,013
Rsyslog messages are truncated, not sent to the correct file
On Ubuntu 10.04 LTS, I'm using the stock rsyslog configuration and added a custom file in /etc/rsyslog.d with the following contents: [CODE] The two referenced files exist and the files and containing directory are readable and writable by the syslog user. Yet, the only place I find the messages is [CODE] . [CODE] is e...
Does your rsylog config have a statement to include/process this directory? [CODE] Or the specific file you wish; [CODE] Under Red Hat, Rsyslog defaults to including just files ending in .conf . You may need to edit this line under Ubuntu as well. If your line looks like this, it won't include a file named [CODE] . [CO...
3
2
1,294
2013-01-04T15:12:18.463
infrastructure
serverfault.com
352,112
What is the common procedure used when compilers statically type check "complex" expressions?
Note: When I used "complex" in the title, I mean that the expression has many operators and operands. Not that the expression itself is complex. I've recently been working on a simple compiler to x86-64 assembly. I've finished the compiler's main front end - the lexer and parser - and am now able to generate an Abstrac...
Recursion is the answer, but you descend into each subtree before handling the operation: [CODE] to tree form: [CODE] Inferring the type happens by first walking the left hand side, then the right hand side, and then handling the operator as soon as the operands' types are inferred: [CODE] -> descend into lhs [CODE] ->...
30
16
6,141
2017-07-04T05:21:33.650
api_errors
softwareengineering.stackexchange.com
28,725
Import Testresults to HP ALM with Excel AddIn
My question is, as mentioned in the headline, is it possible to import testresult from Excel into HP ALM? Explanation: My current task is to import all Testcases/results from Word/Excel to HP ALM. It is necessary for me to import Testresults too, because of an internal audit. After searching the HP Plattform I stumbled...
Based on your question, the answer is to inform your superiors that their choices are for you or someone else to spend some huge amount of time manually entering the results (assuming you have been able to import test cases), or they can have someone with the proper programming knowledge uses the HP API to generate the...
0
1
956
2017-07-24T16:54:46.230
data_quality
sqa.stackexchange.com
297,307
CScript.exe - Corrupt file
I'm getting the following error on a Windows Server 2003 machine: "CScript.exe - Corrupt file. The file or directory C:\WINDOWS\system32\shell32.dll is corrupt and unreadable. Please run the Chkdsk utility." I have a few questions: Will running Chkdsk cause problems, such as making the computer unbootable into the Oper...
Yes if it also detects hard disk errors. Or errors in other files that a responsible for a boot. I'm not aware that you can download a single file from Microsoft. So copy it from a machine with exact Service Pack and Patch level. But if your hard disk is broken that wouldn't help anyway. You have to have a (full) backu...
1
1
457
2011-08-03T21:04:09.977
data_quality
serverfault.com
677,991
Have Nginx hold requests while app is reloading
I have an nginx reverse proxy server set up to forward requests to an app running on port 5000 via [CODE] . This works, however when I restart the app, for about 10 sec any requests immediately return [CODE] , until the app reloads again. Is there any way to set up Nginx to hold those requests while the app is down, re...
You have some options : Search into your upstream doc to find a proper reload signal/api instead of a stop & start sequence. If your pages can be cached, define a proxy cache and serve stale pages until the app goes up again. Scale the backend to 2 instances and restart one at a time, then tune [CODE] if necessary.
5
1
755
2015-03-24T21:21:19.020
api_errors
serverfault.com
228,393
Does running apt-get update/upgrade require a nginx reboot?
Each time or often enough when I run apt-get update then upgrade, I get a nginx 502 error. Rebooting the server brings everything back up. I'm guessing I have to restart nginx each time? BTW, how can I figure out where my nginx is installed so I can call reboot on it? its been a while since I terminalled into this test...
I do not know what [CODE] in Ubuntu does, but I can explain what mechanisms Nginx has so that you can upgrade it without interrupting service. If you'd install/upgrade Nginx from the sources, you'd certainly build it at the first. Then you issue [CODE] to copy new binary. Then, you have to learn what is PID of Nginx "m...
1
2
543
2011-01-29T02:49:47.143
infrastructure
serverfault.com
13,931
Why can't relational databases meet the scales of Big Data?
It is often repeated that the Big Data problem is that relational databases can not scale to process the massive volumes of data that are now being created. But what are these scalability limitations that Big Data solutions like Hadoop are not bound to? Why can't Oracle RAC or MySQL sharding or MPP RDBMS like Teradata ...
MS just had a tech talk in the Netherlands where they discussed some of this stuff. It starts off slowly, but gets into the meat of Hadoop around the 20 minute mark. The gist of it is that "it depends". If you have a sensibly arranged, (at least somewhat) easy to partition set of data that (at least somewhat) is homoge...
17
15
20,297
2012-02-26T08:23:18.863
hadoop_errors
dba.stackexchange.com
85,372
Batch file to MASS ping group of computers on network by name, check reply, and resolve hostname
So, I have a list of 5000 computers on my Windows Active Directory network that may or may not still exist (I know, don't ask...I need to know for a project, and of course little help from the network people, and so many errors in the data they give me) The computer names fall within SAT1 to SAT5000. However, some of t...
Here's a batch file for you: [CODE] Pass it a text file with a list of computer names in it and it'll PING them (2 tries-- you can increase that by increasing the number after "-n" on the 1st PING command-line), and if it gets a response, perform a reverse-lookup of the name. It returns results as: [CODE] To run multip...
3
7
48,596
2009-11-17T01:11:36.467
api_errors
serverfault.com
365,482
What's wrong with this server? After I ssh into the unit and enter the password, the connection closes
This is what happens: [CODE] Any idea why this happens? Update: Here's what happens when I do ssh -vvv [CODE]
Run [CODE] during your connection for extended logging of what is going on. My instinct that you have something like /bin/true for a shell so it drops you out by default.
2
3
2,080
2012-03-01T23:54:26.490
infrastructure
serverfault.com
282,329
Controlling Terminal Services Session w/ elevated rights
I would imagine that this question is really quite stupid, but I have to ask. I need to reset a mail profile on my terminal server. The problem is that the admin who set up the terminal server restricted access to the control panel (and mail utility). This presents a bit of a problem as far as resetting this profile is...
I know the way I've always done this is by removing the lock down policy for the user. Choose the Policy > Go to the Delegation Tab > Advanced . Add the user and choose Deny for Apply Policy . Have the user log back in and they can change it. Then remove them from Advanced and log them out.
0
1
129
2011-06-20T19:17:15.213
infrastructure
serverfault.com
40,304
What are the techniques for anomaly detection of Unsupervised learning problem
I have sufficient and properly formatted data in millions without labels . I have to find out the anomalies. Heard Isolation forest, Mahalanobis distance about identifying anomalies in unsupervised learning. Are these ok to try? Are their any other techniques we can try? Thanks
You can try these techniques and many more.- All anomaly detection techniques As discussed in article, these are outlier detection techniques.Are you looking for outliers? better to get some known abnormalities and build a classification. If supervised not possible, try to fit one of these approaches- ABOD for identify...
1
1
1,807
2018-10-27T06:34:30.310
data_quality
datascience.stackexchange.com
941,697
Apache VirtualHost don't match
I have an instance of apache web server and I need to map URL in this way: Url from b2b.domain.eu have to be proxied to another server 10.1.0.100 [IT WORKS] Url from b2b.domain.eu/api have to be proxied to a tomcat api application [IT WORKS] Url from b2b.domain.eu/decoder have to be proxied to a tomcat decoder applicat...
Both you [CODE] instances have the same IP + port + ServerName combination. These three items together must uniquely define your virtual host. For name-based virtual hosting the IP address and port number will be the same so you differentiate using the [CODE] directive. Don't put an IP address as the [CODE] . [CODE] Al...
1
1
347
2018-11-26T17:58:01.407
infrastructure
serverfault.com
391,691
Users See All XenApp Autocreated Session Printers
Small farm running Windows Server 2008 x64 and XenApp 5 with the latest hotfix rollup. The users are standard users, but for whatever reason they see all of the auto-created session printers. Initially, everyone was a local admin, but this was taken away quite some time ago. Is it due to this or something else? Any ass...
Problem seems to be that the users were previously admins, even though they aren't now. When I completely delete and recreate their profile they can no longer see all of the autocreated printers. New users also don't have the problem since they were never admins.
0
0
1,488
2012-05-23T04:07:23.423
infrastructure
serverfault.com
1,135,713
Strongswan ike phase 1 failed: "IKE_SA being deleted"
I'm trying to build IPsec tunnel between my Strongswan cloud instance to the Cisco CSR 1000V which is from ISP. According to the form given to me, I have to configure with the following factors in mind Phase 1 Authentication Method: PSK Encryption Scheme: IKEv1 DH Group: Group 2 Encryption Algorithm: AES-256 Hashing Al...
The piece [CODE] clearly indicates that something has gone wrong. With 95% probability chance the PSK on bothe end is not the same ( decryption failed , could not decrypt payloads ).
0
0
632
2023-07-05T03:10:12.173
api_errors
serverfault.com
442,244
How do i deal with proftpd message "error setting IPV6_V6ONLY: Protocol not available" in auth.log?
I get lots of errormessages in my [CODE] in this form: [CODE] How should I deal with these? Should I enable IPV6 somewhere? or should I suppress these messages somehow? (I am using debian-squeeze)
You probably have IPv6 disabled completely in the OS. Unless you want to use IPv6 you don't need to worry about it. If you want to stop the error message from appearing you can disable IPv6 support with [CODE] in the configuration or the [CODE] command line option.
1
0
1,554
2012-10-25T12:36:22.763
infrastructure
serverfault.com
364,862
Unit Test to test the creation of a Domain Object
I have a Unit Test, which looks like this: [CODE] I am asserting that a Person object is created here i.e. that validation does not fail. For example, if the Guid is null or the date of birth is earlier than 01/01/1900, then the validation will fail and an exception will be thrown (meaning the test fails). The construc...
This is a valid test (although rather overzealous) and I sometimes do it to test constructor logic, however as Laiv mentioned in the comments you should ask yourself why. If your constructor looks like this: [CODE] Is there a lot of point in testing whether it throws? Whether the parameters are assigned correctly I can...
12
18
8,037
2018-01-29T10:39:59.073
data_quality
softwareengineering.stackexchange.com
711,263
Preventing a user from running a script that should only be run by a CRON job?
I have a contact form on my site which uses $HTTP requests instead of reloading on the form submit. It's a really awesome feature, but it also opens up some nasty doors. My contact form sends an HTML "Thank You" email to the people who contacted me. I was worried about that functionality being abused and used to send e...
In an shared hosting account or without access to the command line you can work with an secret parameter over http(s). I don't know if godaddy allow this, but you can try using wget or lynx in your cronjob call. Or use an independent cronjob service for that http-call. Create an longer string randomly, save it in your ...
-1
1
108
2015-08-06T10:09:51.290
database_errors
serverfault.com
237,328
Installed programs
Possible Duplicate: Tracking who installed Software on server. Hello, I'm trying to figure out a way, on how to find who (username) installed specific program, which appears in the "Add/Remove Programs" of the Windows 2003 server. Is there a way to do it? Edit: There is no event logs available to check through, what I'...
I don't believe that's built into Windows. You could try gleaning information from the logfiles, see if there's any installation logs, or search for the installer if it was a program downloaded and saved to a particular home directory or see whose account "owns" the file. Basically you will have to try piecing together...
0
1
92
2011-02-18T16:10:46.850
data_quality
serverfault.com
327,294
OpenVPN Segmentation Fault
I have a server running CentOS 5.7 and I'm trying to get OpenVPN 2.2.0 to work. To start off, I had this working for quite a while now, but decided to try and make it highly available by using heartbeat for failover to another server. Now I can't even get it to work at all for some reason. Whenever I try and start open...
Boban P. was absolutely correct in his comment about the openvpn-auth-ldap plugin being the cause of the segfault. I ruled it out initially since I commented the plugin line out and tried restarting openvpn and it gave the same error. However, openvpn apparently was still trying to use the plugin, so it was still throw...
1
1
3,295
2011-11-03T05:46:12.250
database_errors
serverfault.com
247,305
Equidistant polygons
Consider these polygons: For reasons of simplicity I only consider triangles or polygons with 4 vertices. These shapes are specified by the vertices, the output of the program should be modified vertices. I am trying to find an algorithm to create a space between the polygons, the colored area depicts the space: I have...
Basically you just have to think about sliding edges inward and imagine where they intersect to form an interior polygon. Picture that and you'll be set.
3
4
282
2014-07-08T22:37:29.993
api_errors
softwareengineering.stackexchange.com
1,013,129
mysqldump using a lot of space
I have a server and the [CODE] partition is 20GB in size. Databases are stored in [CODE] partition is 500GB in size. Now here's the problem. Whenever I run [CODE] it fills up [CODE] partition to 100%. I have already moved the [CODE] to [CODE] . My databases are around 40GB all in-all now I want to back them up in [CODE...
OK, I was able to solve this problem by moving the s3bucket cache dir from [CODE] to [CODE] . Little did I know that [CODE] was writing to [CODE] and there's no way to track which file is growing using [CODE] the code I was running was [CODE] where s3share is mounted using [CODE] and has a cache directory targetting [C...
1
1
1,371
2020-04-20T03:49:11.317
database_errors
serverfault.com
186,171
Does Windows Server 2008 Hyper-V Bare Metal support antivirus?
I am a developer, not a sysadmin, so I am seeking out some opinions and answers about virtualization. In order to solve some project deadline issues, the development team installed and setup a Windows Server 2008 Hyper-V "Bare Metal" edition (meaning there is very little of the Windows UI and functionality). The IT dep...
I'd say don't do it. Read this. With a stripped down bare-metal hypervisor server, you shouldn't need it. A virus needs an attack vector...how is it getting on that machine? Network shares? Email? Web browsing? If it's a type-one hypervisor machine, it shouldn't have network services or workstation-like uses open to it...
1
5
667
2010-09-30T12:02:23.167
infrastructure
serverfault.com
890,166
Configuring SSL in Apache2
I generated a new private key and a csr [CODE] And my working apache configuration has following lines [CODE] When revert the comented lines, what I get a single line in apache errorlog [CODE]
The CSR needs to be validated and turned into a certificate, which is usually what you pay an SSL company for. You would usually buy a certificate and upload your CSR, which would then be returned as a validated certificate.
0
1
158
2017-12-31T09:23:55.463
infrastructure
serverfault.com
945,918
How to enumerate permissions of users in active directory?
I am learning AD pentesting and I am looking for a way to enumerate the user's permissions. Note:- Here through permissions I am talking about those permissions which are found in the security tab. So, Is there any tool or any way to enumerate what permission do have the user? I didn't find a way to enumerate, maybe th...
To start out, the "security tab" of a user account enumerates the permissions on that account , not the permissions that the account has in the environment. Understanding this very basic principle is crucial for a person who will be charged with attempting to penetrate Active Directory and identify and understand vulne...
-1
2
813
2018-12-19T04:18:03.473
infrastructure
serverfault.com
18,760
tds: unable connect to SQL Server using servername specified in freetds.conf file
I am using freetds to connect to SQL Server from ubuntu. First, the SQL Server is running at port 1433 currently. I can telnet it. The following command also works. I can query table data using it, [CODE] however, this command does not work, and consequently making my ror app crash. [CODE] this is error inside freetds....
tds7_get_instance_port means freedts is using udp 1434 to query the port of the instance (source: net.c). But this should only be called if the instance is specified. Please doublecheck your freetds.conf
3
1
1,292
2012-06-04T04:26:07.203
database_errors
dba.stackexchange.com
846,335
Azure Load Balancing HTTP probe not working
I did the following : Made an Azure load balancer to an availability group of 2 VMs Created an HTTP health probe to monitor the site going to [CODE] Verified that the site would respond to [CODE] The site doesn't come up. The firewall is fine. If I switch to a TCP probe on port 80then the site comes up.
Somehow I ended up with a space in the path name shown here. Removing it (or creating a file called EXPLETIVE.HTM in the root of the website) solved the issue. This was verified in my IIS server logs [CODE] The plus symbol represents the space.
2
1
1,828
2017-04-25T02:15:02.783
infrastructure
serverfault.com
365,082
Add a new VM on separate subnet
I want to add a new 2008R2 VM to my network. This will be a separate domain controller for a separate VLAN'ed off office. This VLAN (20) is all squared away on the switches. I have an office with 3 PCs in it and a printer. The PCs are all getting their IPs from our main DHCP server atm for testing purposes (all VLAN20 ...
It sounds like you're almost to where you want to be. Your existing VMKernel port for management, and the default "VM Network" port group, are probably already configured on your first vSwitch. Both of these are currently operating untagged and your physical switch is correctly putting this traffic onto VLAN10 because ...
1
1
203
2012-03-01T00:05:21.573
infrastructure
serverfault.com
297,062
MySQL won't start in MAMP server
I had MAMP successfully running in one of the user, but since I have created a new user to separate things between two developers, its throwing tantrums. I am pretty new to Mac itself but managed to find users with similar problems. In my old user, Apache doesn't start and in the new user, MySql doesn't start. I have a...
This issue is related to the current user not having permissions to the file [CODE] ( [CODE] ) Presumably it is because it was installed by a different user, and all files are owned by that user and write permissions are only set up for the files' owner. In a typical MAMP installation the ownership is likely set to old...
3
4
8,073
2011-08-03T11:20:55.430
database_errors
serverfault.com
840,192
WSUS corrupted: Can't uninstall, repair, or remove (Error 0x800f0831)
Have a single server site, running Windows 2012 R2 They had a long power cut, and the server uncleanly shut down when the UPS gave out. We had a few other programs and database issues, but I've worked through them all, apart from Windows Server Update Service: The WSUS MMC would not open, and just give an error (This h...
I Had a colleague come and assist me with this one, and in the end, we did get it working. Rough steps below, in case anyone has the same issue. 1) Use SQL Express installer to remove the WSUS Database (We had a separate named instance instead of the Windows Internal Database) 2) Use This Article to manually remove WSU...
3
1
8,797
2017-03-23T15:01:05.207
data_quality
serverfault.com
393,414
Root only has read permission for /etc/ssh/sshd_config?
I'm trying to edit my /etc/ssh/sshd_config file as per these instructions to properly set up git on my Synology NAS: http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html (step 6) However, when I tried to save the modified sshd_config file while logged in as root, I got the following error: [CODE] When I typed in...
lsattr will give you something like this [CODE] from "man chattr" A file with the ‘a’ attribute set can only be open in append mode for writing. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute. A file with the ‘i’ attribute cannot be modified: it cannot be d...
2
3
46,014
2012-05-28T14:34:44.060
infrastructure
serverfault.com
778,299
DNS Propagation: A Record change was successfull but there is a strange behaviour
I've changed the A record of my domain name to the IP of my new server. At the time of doing it, nslookup mydomain.com showed the old IP addresses as expected. After a day nslookup mydomain.com now shows the new IP address. The services on the server seems to work OK. (I can sync to my owncloud via the desktop app and ...
The problem was completely unrelated to DNS, turns out. When using SSL with HTTP2, below nginx configuration is needed: [CODE] Why Firefox and Chrome not saying anything about encryption is a mistery though.
0
1
69
2016-05-22T09:17:53.590
infrastructure
serverfault.com
819,382
nginx doesn't seem to recognize "auth_pam" directive
I'm trying to set up a basic http auth using the linux system credentials using pam. I installed the nginx-extras package and i can see that the pam dynamic module is getting loaded into nginx. My "nginx -V" output contains this: [CODE] I created an nginx file in /etc/pam.d which simply contains: [CODE] My sites-enable...
The 1.10 version of nginx now supports loadable modules. If you install the libnginx-mod-http-auth-pam package you will get the auth_pam module. So, you need to do the following: [CODE] That will install the module and configure it to be loaded when nginx starts.
1
2
7,163
2016-12-07T20:39:37.140
api_errors
serverfault.com
1,054,922
Can't access static external IP for Google Cloud Run instance - followed guides (Router, Subnet, NAT, VPC, etc)
I'm trying to assign an external static IP address to our Cloud Run instance, so that I can use it with websockets (which I've read require a static IP in order to work, versus the self-appointed/load-balanced GCloud app domain name). The regular URL is accessible, but the static IP is just hanging. I tried following t...
Well, the main issue with your approach is that you actually missed the most important part of this doc , the title, which is: Static outbound IP address And the reason behind this title is that Cloud NAT does not allow inbound traffic , i.e., you cannot make requests to the Cloud Run Service using the static IP of the...
4
5
4,423
2021-02-24T18:00:13.087
api_errors
serverfault.com
981,898
Why Systemd path unit does not restart service
I use Ubuntu 18.04. I created service and path unit for my Sneakers workers process. sneakers.service: [CODE] And sneakers.path [CODE] Then I enabled them and started path unit: [CODE] It starts ok, service script works fine. But it does not restarts when file restart.txt is changed (I tried touching it and modifying)....
[CODE] units do not re start services, but only start them. Here is a method where you define new "watcher" service unit and path unit that will start and restart your service(s): https://superuser.com/questions/1171751/restart-systemd-service-automatically-whenever-a-directory-changes-any-file-ins
0
3
3,614
2019-09-04T17:23:20.703
infrastructure
serverfault.com
61,614
Reset Directory Permissions for File Migration
I just built a server 2003 based domain to replace an old, broken server 2000 domain that I "inherited". Now that I'm trying to migrate my users data from the old file server to the new one, I'm running into a severe problem. Let me preface this by saying the main reason we're replacing the old server is due to random ...
You can also copy the files with robocopy using the /B option. Make sure that the user running the copy is in the "backup operator" group. This option run the copy as backup so it can ignore permissions.
2
1
2,914
2009-09-02T17:21:17.803
infrastructure
serverfault.com
967,340
PowerShell SQLServer.Management.Smo.Server can't connect
I am trying to use Microsoft.SQLServer.Management.Smo.Server to connect to my MSSQL server but whatever I try it keeps erroring out with "Failed to connect to server .." [CODE] The SQL server is running on the same computer with default settings and I tried both "." (which means localhost from what I understand) and S6...
What is the output of [CODE] You may also check this out: SQL PS Module Import SQL PS Module
0
0
672
2019-05-15T10:26:00.317
database_errors
serverfault.com
330,325
How to optimize a PostgreSQL table for heavy writes, yet still maintaining atomicity?
There are plenty of guides online on how to speed up writes on a PostgreSQL table, from tweaking the WAL configuration, turning off synchronous_commit, to creating unlogged tables. I'm currently trying to design a table that will receive around 300 inserts per second, not much, but I'm worried about what would happen a...
Your schema design is already pretty minimal. Indeed, probably too minimal as it is generally not realistic to have no indexes. If you can't get adequate performance out of that (which apparently you have not tested yet?) then you need to look at your storage hardware, not your schema design. You could also address oth...
1
0
272
2023-08-15T13:34:50.723
database_errors
dba.stackexchange.com
562,942
1920x1200 or 1920x1080 full screen resolution when connecting to hyper-v virtual machine (WinXP) via teamviewer (not RDP)?
I have a WinXP hyper-v virtual machine running on a Windows Server 2008 R2 somewhere in a datacenter. I do some remote development on this machine and I would like to do so using the complete screen estate of my desktop monitor. I can do that using RDP. But, for a while now, some of my virtual machines have been gettin...
Hyper-V's display has a maximum limit of 1600x1200. There doesn't seem to be any way to overcome this limitation. The reason RDP can use higher resolutions is that RDP acts like a completely separate display. It doesn't rely on the video card or drivers of the hardware. This allows for multiple sessions on a terminal s...
3
7
41,129
2013-12-21T22:10:55.597
infrastructure
serverfault.com
283,426
What's the correct approach to DAO layer in presence of ORM framework
I'm using JPA/Hibernate but probably it doesn't limit question. Currently I'm writing my data access code in my web controller classes. Thanks to JPA, in most cases this code is very simple, basically simple query with trivial setup. I tried to move those methods into separate classes to improve code reuse. But I've en...
As you see, the solution might not be very satisfying. The problem of data access at all is, that we have to consider many different aspects which make code not 100% reusable. It's about transactions and locking, and the way e.g. ORM maps a relational database to objects and vice versa. Mostly if you try to write archi...
4
2
1,966
2015-05-10T09:50:19.600
api_errors
softwareengineering.stackexchange.com
527,278
What exactly does netsh int ip reset reset?
Having got this problem and found this solution I think I should perhaps try [CODE] command but I am afraid it can reset some important settings and disable me from reaching the server remotely. So what exactly does it reset?
This is the first hit in google for the command you're asking about. http://support.microsoft.com/kb/299357 When you run the reset command, it rewrites two registry keys that are used by TCP/IP. This has the same result as removing and reinstalling the protocol. The reset command rewrites the following two registry key...
16
9
137,800
2013-07-30T11:56:59.093
infrastructure
serverfault.com
1,077,055
znapzend not taking snapshots after the initial set up
I installed znapzend on unraid and did the initial configuration. My daemon is running but [CODE] shows [CODE] [CODE] I created the backup plan like this [CODE] debug shows the below [CODE] This is the first time I am using it and I am certain I am doing something wrong. Any help will be appreciated. Thanks
Spoke too soon guys. It is working. I had to wait till the new hour started
1
1
344
2021-09-09T06:03:44.033
database_errors
serverfault.com
202,576
Nameserver setup problem - cannot add hostname
Help on nameserver setup!!! The issue I currently have is that I have a domain registered at GoDaddy, but I host website at different hosting company - company H. I also purchased a dedicated static IP from H. H gave me two IPs for setting up the nameserver at GoDaddy. One of the IPs is my dedicated IP address for A re...
Names like [CODE] and [CODE] are usually used for DNS nameservers, not for websites. Are you certain the addresses are your dedicated web-server addresses? I would expect you to to set up at Godaddy a name like [CODE] with an address like [CODE] Either you typed something other than just [CODE] or Godaddy are not aware...
0
2
880
2010-11-16T17:54:53.483
infrastructure
serverfault.com
484,023
Using auditd to watch a directory non-recursively?
I'm working on a Cent 6 Cpanel machine, and some mystery script is changing the permissions of home directories (!) to 777. I've ruled out all the easy fixes, so I just need to set up a watch on the directory and wait until it happens again. The trouble is, my current rule: [CODE] is watching the entire home directory ...
It seems like this option is not implemented yet. Might be a technical limitation as system calls on inodes are watched. Just an idea: You could work around this limitation with a good grep, for example: [CODE] (Note the space after /etc/) It is dirty, but should help you, because it crops all subdirectories out of it.
3
2
1,465
2013-03-02T09:49:32.397
infrastructure
serverfault.com
484,929
Mitel 5224 will not boot Via VPN
We have recently set up a secure ipsec client to gateway connection from greenbow to a Linksys RV082 on a wireless network. We can ping and access the Mitel 3300 ICP system from the remote computers via the VPN connection. The problem is that we cannot configure the mitel 5224 ip phone correctly so that it boots up. Th...
With the Mitel phones I have used in the past, it get the provisioning information via DHCP and broadcast traffic. Since you are using an IPSec VPN you will not have that broadcast traffic to help provisioning. You may be able to manually enter the provisioning information. Also, for our outside sales staff we use the ...
0
0
248
2013-03-05T17:02:14.600
infrastructure
serverfault.com
193,447
Dying Dell PowerEdge 1800 graphics card - any solution?
I'm having a bit of problem... at the children's hospital where I work (Beit Cure Hospital in Blantyre, Malawi), we're using a 4 year old Dell PowerEdge 1800 tower server. About two years ago, we started getting scrambled lines down the screen. Tried new cables and monitor, but that didn't help at all. Apparently it's ...
I'm seeing PowerEdge 1800 motherboards on eBay for reasonable prices. You might want to find an eBay or other used seller who is willing to ship to your locality, or find someone who can broker the sale for you. A like-for-like motherboard swap would cause you the least headaches re: the operating system.
0
3
1,256
2010-10-21T15:26:04.903
infrastructure
serverfault.com
545,189
Email Delivery to Gmail Breaks After Implementing DomainKey
I have a personal VPS that I use as a personal email and web server. Today I was diagnosing email, and I created a test account at Gmail. At first I was not implemented DomainKey and only SPF was available. I sent an email from my server, and it landed in inbox folder. this is the message: [CODE] And then I realized th...
Looks like yours emails goes to "greylist", try to put NOTSPAM on first letter then everything should be ok. Yahoo also checks minimal message length. Try to put there more then 5 words.
1
0
290
2013-10-10T16:40:00.203
infrastructure
serverfault.com
99,089
Windows 7 / Samba "access denied" message from xcopy
I've got a Windows 7 Ultimate system which maps a Samba 3.0.33 share. I have no problems reading, writing, or replacing any files or directories from windows file explorer. I have attempted to set up a push/pull sync script on the windows client using xcopy. I am trying to replace any files newer than the corresponding...
I would suggest switching to robocopy since [CODE] says "NOTE: Xcopy is now deprecated, please use Robocopy."
3
1
4,713
2010-01-04T02:58:10.160
infrastructure
serverfault.com
104,995
Role to view SQL server job log
We have a monitoring tool that can check if Microsoft SQL Server jobs have run successfully. What I want to do is create a user that has as little permission as possible but it must be able to watch the history log to see if the job completed. What role should I assign the user? Edit: The servers are Microsoft SQL Serv...
To be able to check all jobs you would need go add the user to the SQLAgentReaderRole in the msdb database which also gives that user permission to create jobs. To minimize the access granted you can also grant the user select permission on the tables used by the sql server agent
1
0
2,773
2015-06-24T11:49:52.477
pipeline_ops
dba.stackexchange.com
37,307
Sending a mail using DB2's Proceude UTL_MAIL
I'm trying to send mail from DB2 using the procedure UTL_MAIL. I'm using the DB2 Express Edition 10.1. First I was getting the error of SMTP Server. After using the below command, update admin cfg using smtp_server LOCALHOST I am using the following command to send the mail: CALL UTL_MAIL.SEND('test@mycomp.com','myid@h...
Based on what you are trying to do you would want to set up the STMP server at the database level rather than the DAS level. You set it up at the DAS level if you want DB2 to email alerts to you. See the Information Center here . You set it up at the database level if you want to use the UTL_MAIL module as you are wish...
1
2
2,684
2013-03-22T07:17:31.870
warehouse_errors
dba.stackexchange.com
154,206
Moving from mock to real objects?
I'm like doing TDD so I started everything mocking objects, creating interface, stubbing, great. The design seems to work, now I'll implement the stuff, a lot of the code used in the stubs are going to be reused in my real implementation yay! Now should I duplicate the tests to use the real object implementation (but k...
Or if I should leave everything mocking and stubbing that tests the designs and create new ones that tests the implementation. A unit test never tests abstractions, or designs as you put it. It always tests one concrete implementation, that of the class under test. In other words, if you have a test fixture for class A...
0
10
4,142
2012-06-25T22:08:56.247
data_quality
softwareengineering.stackexchange.com
103,029
Access mysql database from another system using LAN (Wired or Wireless)
I am trying to access a MySQL database from another system using java wireless connection. While changing IP address of both system its not working and thus error occurred as shown below: "HTTP Status 500 - javax.servlet.ServletException: java.sql.SQLException: null, message from server: "Host 'SWAPNIL-PC' is not allow...
You just have to create a MySQL user username@'SWAPNIL-PC' with required privileges grant select, insert on database_name.table_name to username@'SWAPNIL-PC' indentified by 'secret'
-1
0
3,131
2015-06-02T09:11:54.330
api_errors
dba.stackexchange.com
392,097
How do mixed wireless clients (b/g/n) effect total throughput of an access point?
Say you are planning a network based around access points that support the full range of 802.11 protocols on 2.4Ghz(b/g/n). How will a mixed set of clients effect the total throughput possible through the access point? For example, say we have the following scenario: 1 Access Point 1 b client with an 11 Mbps connection...
It depends on the specifics of the situation and the capabilities of the access point. An 11Mbps client will tie up 100% of the spectrum space it is using when it transmits 11Mbps of data. It will tie up the channel 50% of the time to transmit 5.5Mbps. However, modern 802.11n access points are capable of sustaining mul...
3
3
2,518
2012-05-24T01:50:31.850
infrastructure
serverfault.com
194,131
Parent Child Relation in same Table
I have a table storing parent/child records as such: [CODE] Is it possible to return records where parent record is Enrolled and related Child record is Not Enrolled? This returns what I need for 1 specific customer: [CODE] How can I structure the query to return that type of result set for all parent child records in ...
If you have only one level of children, you could join the tables [CODE] Like this you don't lose the relation between the parent and the child record. Since you know that parents are enrolled and children not, returing the [CODE] column adds no new information. If you want to keep your original result table shape, use...
5
5
49,491
2017-12-28T20:42:29.830
warehouse_errors
dba.stackexchange.com
392,730
Cisco ASA 5505 Voice/Data VLANs not pinging/routing
Hi i am very new to Cisco ASA 5000 series and have two interfaces that i would like to route between, a data network 192.168.69.0/24 and voice 192.168.70.0/24, I have addded both and can ping the respective gateway when on the same subnet, but if i am connect to a data switchport i cannot ping the voice vlan and vice v...
you need the global command. with the nat (iface) command you specify which traffic is to PAT (NAT but all IPs are translated to one IP) this IP is configured with the global(iface) command for the matching nat ID: Example [CODE] any Source IP from the inside Interface will be PATed to the voice Interface IP for traffi...
0
2
4,611
2012-05-25T16:39:24.253
api_errors
serverfault.com
594,870
Hardware firewall for Linux web (and mail) server allows UDP connections to any local port from remote ports 53 and 123 -- is this safe?
I'm trying to tighten security on a linux web server. It has a hardware firewall with a default rule set and I noticed two rules that concern me: [CODE] These were part of the server provider's default rule set for a linux web & mail server but I'm questioning it because it appears that it allows connections to ALL por...
UDP 53 is used for DNS and UDP 123 is used for NTP. I would say it is save to remove these if you do not need access from outside to these services. I would even advice blocking port [CODE] as there are problems with older NTP servers which sometimes leads them to being used in DDoS attacks.
0
0
244
2014-05-13T19:06:14.213
infrastructure
serverfault.com
71,348
How to do unattended install of SQL Server 2012 Express from the Enterprise media?
I have a requirement to install SQL Server 2012 Express on some machines, and SQL Server Enterprise on some others, and I'm attempting to avoid using separate packages to do so. It's pretty simple to install SQL Server 2012 Express from the full Enterprise media when the installer is run interactively. However, when I ...
You were right about the pid. Adding /PID="11111-00000-00000-00000-00000" to command line helps. I had to search through the whole setup directory with RegEx -(.{5}|.{11})- and try everything I found. The right pid was in the file Microsoft.SqlServer.Configuration.SetupExtension.dll at address 000f68f4 (for SQL Server ...
2
3
8,018
2014-07-12T20:05:59.190
database_errors
dba.stackexchange.com
795,416
Bandwidth consideration of using AWS hardware VPN or Direct Connect?
I understand that aws hardware vpn has bandwidth limit of 4Gbps from https://aws.amazon.com/directconnect/ 'You can also use AWS Direct Connect instead of establishing a VPN connection over the Internet to your Amazon VPC, avoiding the need to utilize VPN hardware that frequently can’t support data transfer rates above...
Direct Connect should be first choice in case of high bandwidth requirement irrespective of the latency measurement because VPN setup indeed dependent on the public infrastructure used and may not be a best approach for a 4GB link connection. Whereas AWS Direct Connect will provide a seamless connectivity with guarante...
0
1
4,698
2016-08-08T05:53:26.140
infrastructure
serverfault.com
20,487
RHEL4U3 user modification question
I have a user with a username of jsmith who was recently married and wants her login to reflect her new married name: jdoe. I understand that usermod will make the changes but I am concerned about implications that I haven't thought of. I want to do the following: mkdir /home/jdoe chown jdoe:jdoe /home/jdoe usermod -l ...
Assuming that this is a locally authenticated user (as it sounds like it is), you should be able to only change /etc/passwd, /etc/shadow, and /etc/group, then mv her old home directory name to the new directory name. That would ensure that she has the same UID as before so no file permission errors will crop up. The on...
4
3
131
2009-06-05T13:28:23.600
infrastructure
serverfault.com
184,423
Software to Generate False ARP Requests?
A product I'm testing appears to freak out when it receives an ARP request with a Sender IP Address of 0.0.0.0. This is not an ARP probe, as the request is addressed to my module, and the customer's system sends the request just before it starts using its own valid IP address, which is different than my module's IP add...
I think arpspoof in the dsniff package will do what you need. http://monkey.org/~dugsong/dsniff/
2
4
1,719
2010-09-24T18:54:04.480
infrastructure
serverfault.com
6,280
Error in R - Unexpected '}' in " }"
I am getting the error: [CODE] I have put closing brackets for every open bracket, but am not sure why I am getting this error. The error arises when I run the following code: [CODE] Is the nested for -if - for - if as mentioned below allowed in R? That is the logic that I have to use. Is there any other way I can run ...
Error is due to missing [CODE] in the second [CODE] statement in your code. [CODE] change to [CODE]
-2
1
21,329
2015-06-30T14:40:03.720
data_quality
datascience.stackexchange.com
381,167
SAN booting Oracle VM from a UCS blade
We have an Oracle VM Cluster that we are provisioning on a Cisco UCS B series blade chassis. It has 2 fabric interconnects (FC0 and FC1) provisioned to the (3) Oracle VM service profiles and it is set to boot from san with no local storage configured at all. The issue is that each time we reboot the Oracle VM Server, t...
It looks like multi pathing boot from SAN is not supported in Oracle VM 3.0.3. It seems like there are ways to get booting form SAN without multipathing working using iSCSI and I believe FC should work as well. Here is a thread on Oracle's forumns that talks about this issue.
6
2
1,642
2012-04-19T15:20:10.280
database_errors
serverfault.com
27,492
Many to many unique combination
So I originally thought I was going to have a one to many relationship in a database with the following tables [CODE] Originally I was going to have an FK in ATTRIBUTE_JSON_MAP pointing to ENTITY_JSON_MAP. I was going to the Attribute table with [CODE] Now however I've realized that I need to make it a many to many rel...
If I understand you correctly, your original Unique (name, json_map_enum, entity_json_map_fk) Is made up of name: name of the attribute json_map_enum: the position of this attribute in the entity entity_json_map_fk: reference to entity You should be able to enforce this in the mapping table as well. [CODE]
3
0
375
2012-10-23T21:35:46.323
data_quality
dba.stackexchange.com
167,111
Database table as a queue, order by another table's column
I have two tables. One table serves as the queue from which multiple users simultaneously dequeue items one at a time, by flagging the item's row. The other table is joined and used for ordering . It is required that no two users will get the same item from the queue and the queue will not block users, so if [CODE] is ...
It seems that preventing the locking of candidate rows is impossible with an ordering on a column not part of the clustered index. I came up with a workaround, that seems to solve the problem on the minimal example i provided. I'll do some tests to make sure if it solves the actual production problem. The idea is to sp...
1
1
1,146
2017-03-14T11:03:46.477
warehouse_errors
dba.stackexchange.com
283,957
Firewall for private network
Here is my setup: All nodes are running Ubuntu 10.04 LTS I have a machine, node1 , that acts as a proxy server for a private network. It forwards all incoming connections on port 80 and 443 to my webserver, node2 , which has a private ip of [CODE] and no public IP. I have several other nodes: node3 is a database server...
A few months back, I was trying to establish a similar setup. I eventually abandoned the idea and went back the old, less flexible firewall I had before. I can give you a few pointers, but I can't answer such a broad question readily. Know the difference between masqurading, Source NAT, and Destination NAT. Know what e...
0
1
170
2011-06-24T20:52:08.760
infrastructure
serverfault.com
18,048
Are these extra Index fields needed?
I've designed a table as below for users who register a quiz: [CODE] And I have a query as below: [CODE] Do I need the part KEY [CODE] ( [CODE] ) ? I was wondering if UNIQUE KEY `user_id_2` (`user_id`,`iq_id`) would be enough! Do I have to index [CODE] and [CODE] to get faster select results just because they are in th...
First, your index on [CODE] is redundant, since you have the index on [CODE] and [CODE] is the left-most prefix. Second, you won't need to index [CODE] and [CODE] because the mysql optimizer would ignore the [CODE] portions, and scan the entire index based on [CODE] . It is worth pointing out (even if it wasn't part of...
2
2
83
2012-05-17T10:37:35.890
warehouse_errors
dba.stackexchange.com
27,964
How to download dynamic files created during work on Google Colab?
I have two different files and on the first, I tried to save data to file as: [CODE] On second file, i'm trying to load it the same way using: [CODE] I then get the error: [CODE] I searched my google drive but couldn't find this file. Platform: https://research.google.com Edit: I'm trying to run below Kaggle problem on...
Based on what I've seen and experienced, the best way is to store and retrieve your data from your drive account. Actually your question is a bit unclear but first I say, try to use the following command to see the current files in your directory, although I guess each 12 hours they all would be deleted automatically. ...
8
4
40,677
2018-02-18T19:31:35.513
data_quality
datascience.stackexchange.com
1,144,220
Apache mpm event not working as expected with SSL/HTTPS
I have a server with [CODE] + [CODE] (I know this is an old version of Apache but it cannot be upgraded right now). mpm event is used for multi processing. When serving [CODE] content, everything works as expected : The server can handle many requests concurrently without trouble (the test was made with approximately 1...
While looking at Apache source code for possible [CODE] fallback conditions, I found the following relevant comment : If we have an input filter which 'clogs' the input stream, like mod_ssl used to, lets just do the normal read from input filters, like the Worker MPM does. Since I am using an old version of Apache that...
1
0
135
2023-09-21T22:45:38.780
infrastructure
serverfault.com
315,883
IIS7.5 Password Protected Directory Exceptions
I am having issues accessing a Magento API, as the magento folder is password protected. Is there a way to add an exception to this, so that any request to the API is allowed, but all other requests are blocked? I am using IIS7.5 and Plesk 10.
I would first confirm that the issue is the password protection. If you turn off the password protection, does it work? In other words, is that the only cause of the failure. Do you know how Plesk sets the password protection? Does it use IIS's built in features? If so, you can manually grant access to the API page onl...
0
0
417
2011-09-27T09:57:57.767
infrastructure
serverfault.com
112,909
Why mongodb never end some connection
My mongod runs out of connections from time to time. But when I restart the instance, it becomes normal. I check the log and found some connections were created and never be ended. This cause the connection depleted quickly. My mongo cluster consists of of 3 shards, each with 3 replicasets. So there are 9 mongod instan...
Find out how many connections are there to the database vs how many available. This command in Mongo Shell will tell you exactly that: [CODE]
1
0
3,316
2015-09-02T07:13:52.303
database_errors
dba.stackexchange.com
219,964
Tar exclude not working?
[CODE] Do I have it wrong? Trying to tar entire directory but exclude all those directories and any files in those folders completely.
With GNU tar you can't include the trailing slash on all those excludes. It'd work with BSD tar, though.
3
8
2,066
2011-01-07T19:13:46.060
infrastructure
serverfault.com
73,625
Cross tab query with concat field
I want to create a cross tab query for my table. When I use [CODE] I am unable to get output successfully. Can anyone help me with my query? [CODE]
The default length of a GROUP_CONCAT is 1024 . Please run this [CODE] before the query. This will allow for a 1M string as the maximum GROUP_CONCAT . If you want every session going forwards to have this, add this to [CODE] [CODE] and run this [CODE] MySQL Restart not required As for the query itself, avoid using newli...
1
1
1,883
2014-08-11T07:30:23.447
warehouse_errors
dba.stackexchange.com
704,230
A large number of JetDirect firmware updates - what issues do they address?
HP recently released a large number of firmware updates for JetDirect devices . There is no changelog provided. Curiously, many obsolete (e.g., 802.11b) devices are in the list, and the last time a firmware update was provided for some of these was 2004. The devices range from 10/100 ethernet to 802.11b/g print servers...
I searched HP's website... http://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-bpj02930#N10473 That is all.
2
1
572
2015-07-08T02:41:54.780
api_errors
serverfault.com
559,757
Debian - Postfix + Dovecot, send but not receive mail
I have followed the instructions in this tutorial . I can successfully sent emails but i cannot receive. Here is exactly what happens: When i sent an email from my hotmail account if i do [CODE] i see the mail, but if i login to squirrelmail i don't. here is my /etc/postfix/main.cf [CODE] Here is the dig output: [CODE]...
The problem was with with mailbox_command. When i just commented out the line containing mailbox_command, it worked. So if anyone faces the same problem simply run: [CODE]
2
1
13,158
2013-12-06T18:32:20.693
infrastructure
serverfault.com
294,008
System Upgrade introduced an unusual mysql privilege error
After a box running mysql was upgraded a backup script is returning an error for databases with Innodb tables. A system running Debian 5 (Lenny) has been upgraded to Debian 6 (Squeeze), and the system was running the stock mysql-server package from the Debian repository. Debian 5 = Mysql 5.0.51a Debian 6 = Mysql 5.1.49...
After more investigation I found an issue with the definer on some of of the VIEWS in the problem database. [CODE] This account belonged to a developer that no longer was around, and had been removed. With the help of the guys over on dba.stackexchange I was able to build a script to replace my views with an account th...
6
3
1,113
2011-07-25T22:48:39.227
database_errors
serverfault.com
370,097
android.apis.google.com DNS issue at EC2
We have a really strange issue with DNS on our EC2 instances. An application we're running on some of our instances is Java-based service that provides a back-end for an Android application. As part of it's functionality, it sends push notifications to phones through a Google API. To do this, it has to make an SSL requ...
Strange. Everything started working again - like magic.
1
0
885
2012-03-15T15:01:23.237
infrastructure
serverfault.com
260,409
SSMTP: Specifying default "full name" argument
I have setup SSMTP on a few servers to all use the same email address to send mail from. Now, obviously, whenever I get a mail from one of these servers, the mails all originate from this same email address. I would like for the servers so send with a different "full name", e.g.: mail from ServerA: "Server A" mail from...
I don't know about SSMTP but most mail agents take their default full name values from the name field in [CODE] . You might try changing it for the originating user using [CODE] or manually editing the file to enter names. This is typically the 5th field in the file.
3
0
481
2011-04-16T11:48:32.660
infrastructure
serverfault.com
124,724
Apache and file permissions
I'm running LAMP on Ubuntu 8.04. Apache's username and group are www-data. I put my connection details and AES key in a file in a directory that's not web served. I chown-ed the files to www-data:www-data and set the permissions to 700. Still, the script that require()s these files will only run if I chmod the files to...
Apache on ubuntu runs as root, they only use www-data to read, for several reasons, Yes it should be 755 if the key-file were outside the apache docroot.(default /var/www)
2
1
255
2010-03-21T14:24:25.293
infrastructure
serverfault.com
101,971
IIS authenticationissue with clients on the LAN
On IIS The server xyzcompany.com at xyzcompany.com requires a username and password. Warning: This server is requesting that your username and password be sent in an insecure manner (basic authentication without a secure connection). I keep getting the above error (only on workstations on the internal network/accessing...
It's a side-effect of the increased security in IE7 - see this blog post . There isn't a lot you can do about this other than to make authentication happen in a secure manner, which would be a good thing to do anyway. You'll want to turn on ssl for the IIS server, Microsoft have documentation on doing that for Outlook ...
0
1
204
2010-01-12T17:03:19.227
api_errors
serverfault.com
666,565
Finding which printer or user is crashing spooler
I have a Windows Server 2012 print server that is having the Print Spooler [CODE] crash. The Application Log in Event Viewer shows me that the crashing .DLL is LMUD1PLANG.DLL which belongs to the Lexmark Universal Print Driver. I have more than dozen printers that use this driver. It would be useful to narrow this down...
Well, the easy way is not very exact, but if you enable general logging on print jobs, you can narrow it way down and usually figure out the culprit pretty quickly by correlating which jobs were being processed with the time the spooler crashed. On 2012, there are even specific diagnostic print logging options you can ...
3
2
21,790
2015-02-10T19:34:45.447
infrastructure
serverfault.com
103,149
DBCC CHECKDB Estimation Alternative
I am in the process of rolling out DBCC CHECKDB across our instances. Each database will eventually either have a DBCC CHECKDB or DBCC CHECKDB PHYSICAL_ONLY. The way I have been gauging whether a FULL CHECKDB should be done, or a PHYSICAL_ONLY is by examining the results from DBCC CHECKDB WITH ESTIMATEONLY. However I r...
What we do to estimate the usage of tempdb and its size is to track its growth via data tracked in tables for a period of time before reboot happens as a part of maintenance activity. P.S note: It may not be an alternative, but helps in tracking how tempdb grows over a period of time Step 1 Create table to store the da...
4
3
649
2015-06-03T12:42:10.450
api_errors
dba.stackexchange.com
204,515
Get-ClusterParameter Not Returning Expected Results
I have been trying to get the parameter value for RegisterAllProvidersIP in my AG environment. However, the command is not fetching me all results. The resultset has just 4 parameters, and I'm wondering how to get all. I want to check this to investigate the ongoing connectivity issue. This is a multi-subnet AlwaysOn c...
The command you are running is returning all of the parameters for an availability group resource. There are not many, as most of the config is stored in SQL Server and not as cluster resource parameters. The RegisterAllProvidersIP parameter is not a parameter of the availability group resource. RegisterAllProvidersIP ...
0
5
2,548
2018-04-20T11:27:55.733
warehouse_errors
dba.stackexchange.com
206,277
Is this common practice for disk quotas on virtual dedicated servers?
I was a bit surprised when I purchased a VPS with 15GB of storage to find that am left with very little space after Windows' 13GB footprint. I can't even install SQL Server. Tech support is saying this is normal. I know that if they felt like it they could remove Windows from the quota or adjust it accordingly. Is this...
This is indeed normal. You pay for a fixed amount of virtual disk space and what you use it for is not something the host will care about. You pay for the total space allocated to your VM, not the space free after the OS has been installed. If you installed a small Linux-based Apache+PHP+DB setup, for instance, you mig...
1
7
160
2010-11-26T12:49:37.817
database_errors
serverfault.com
216,133
With PostgreSQL getting ERROR: COPY format "CSV" not recognized
Whever I try to copy from [CODE] What's the reason for this? I know I've used this before.
If format is a string, the string is case sensitive, [CODE] But, the format doesn't have to be a string, [CODE] You're probably use to using the non-stringified version. The syntax for the [CODE] is pretty hectic, [CODE] A lot of them only accept strings, but some of them accept regular tokens which get lowercased. Thi...
1
2
1,930
2018-08-28T23:33:11.047
database_errors
dba.stackexchange.com
164,419
Is it possible to limit timeout on Postgres server?
I set connection and command timeout to 10 minutes in my application (client side). Than my application runs a simple query: [CODE] On some servers it works fine, but other servers close the connection after 60 seconds. Could this be some sort of PostgreSQL server configuration which limits timeouts and ignores my clie...
Yes, it's possible There are two settings mentioned in the docs ( [CODE] is new to version 9.6x) [CODE] (integer) Abort any statement that takes more than the specified number of milliseconds, starting from the time the command arrives at the server from the client. If log_min_error_statement is set to ERROR or lower, ...
45
71
173,929
2017-02-15T14:04:33.183
database_errors
dba.stackexchange.com
650,042
Kernel dependency error on Ubuntu 12 server
I was doing my quarterly updates of an Ubuntu 12 server. After an apt-get update succeeded I'm getting this error running apt-get anything. [CODE] I don't understand why this linux image isn't going to be installed. The package exists, is downloadable, etc.
Check your /boot partition to see if its full. A frequent problem with Debian/Ubuntu systems is a full boot partition preventing apt from installing kernels, causing cryptic failures like this. This is what debian admins call "job security." I believe that for your OS you should be running a 3.2.00* kernel. Do a uname ...
1
1
61
2014-12-08T17:15:11.530
infrastructure
serverfault.com