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
796,684
Ubuntu 14.04 Openstack single, error: Top-level container OS did not initialize correctly
During installation of openstack on Ubuntu server 14.04 x64, after I issue the following commands: [CODE] I get error: [CODE] How can I solve it to install openstack correctly?
Your error seems system specific , but there are a number of projects through which you can easily setup an openstack environment on your laptop. DevStack here OSBash here Openstack Ansible here I have setup the latest openstack on my laptop using Devstack.
0
0
79
2016-08-13T20:53:22.480
pipeline_ops
serverfault.com
299,680
Kerberos - configure constrained delegation using SQL Server's virtual accounts
I'm trying to setup Kerberos constrained delegation to solve my double hop problem. I'm using standard SQL Server configuration with Virtual Account ( [CODE] ) as a service account for all my instances. When I'm trying to perform double hop query via Linked Server I get this typical error: [CODE] The setup looks like t...
I know I'm a little late to the party, but I have using Kerberos authentication in my web applications for nearly 16 years, and the agency with which I work is converting their web applications to use Kerberos authentication. A few things to mention: Depending on your user base, I would use either a traditional Kerbero...
0
0
2,072
2021-09-16T07:01:59.527
database_errors
dba.stackexchange.com
840,810
Debugging ETIMEDOUT errors
I'm trying to debug frequent ETIMEDOUT errors to api.facebook.com (31.13.95.8) when doing HTTP GET requests from our Linux Servers. To figure out whether it is an issue on our server or on Facebook side, I ran this command: [CODE] However when I run this command (note extra -T which sends TCP SYN instead of ICMP ECHO p...
Are you using connection pooling to the API? It is probable that SYN packets are throttled to prevent SYNflood-style attacks.
0
0
531
2017-03-27T12:09:22.843
infrastructure
serverfault.com
116,176
Excluding rows by lots of ids
I need to exclude some rows that the user has already seen. Currently I am doing this by simply comparing the ids that the user has seen to the row's ids by running this query (there are also other fields to filter by that I left out): [CODE] However, since I have about 150,000 rows in my table, and the amount of ids c...
[CODE] can have slower performance than a left join for some data sets. You can see an example here that compares different ways of excluding items from your selection. Ideally you could identify the IDs you want to include , and this would definitely gain better performance. So first you could try one of the two query...
2
0
1,386
2015-09-25T17:14:40.130
database_errors
dba.stackexchange.com
523,651
No "Trusted Execution" on Xeon E5540, what am I missing?
I seems the Xeon E5540 ticks all the "fun" boxes for Hyper-V (especially VT-d) on Windows Server 2012. The only one conspicuously missing is "Trusted Execution". I read the information on Wikipedia and Intel's page . If I understand it correctly it enables the OS to mark data as non-executable and prevent attacks in va...
Chips with the "Trusted Execution" basically allow EFI booting to work correctly and to make use of a TPM module. Since you're using Hyper-V, there's no purpose for this technology. Most Xeons that I've seen actually lack this feature in particular anyway.
0
3
315
2013-07-16T10:57:42.570
infrastructure
serverfault.com
359,798
C++ Dependency Injection vs Memory Usage
I have a hypothetical C++ code containing these two classes: Master: it's big, does a lot of things and is meant to have only one instance; Slave: quite the opposite. It can also do a lot of things, but it's small, and has many instances. Every slave needs access to the master, so it is injected through the constructor...
Well you're right about something being wrong. But I highly doubt worrying about memory usage is going to fix it. Unless you can point to some real world data that shows you have a memory problem at the scale of these references, I wouldn't worry about it. This smacks of premature optimization. Now that doesn't mean th...
7
12
2,008
2017-10-26T20:45:00.083
api_errors
softwareengineering.stackexchange.com
145,953
Identify columns that allow NULL but don't contain NULL
I'm working with a legacy database that never had any [CODE] s defined and not very many [CODE] constraints, even where they are obviously applicable. I've been manually adding these in where the migrations are cheap and the applicability is obvious. However, I'd really like a systematic way to identify some appropriat...
I adapted the query from the linked answer in my question and have something I think works, but I'd prefer if it returned a table instead of just raising notices. I may improve it later but if I don't and anybody else does later, I'll switch the accepted answer. Ditto for any obvious performance improvements (though I ...
4
4
295
2016-08-05T05:05:51.367
data_quality
dba.stackexchange.com
1,024,734
MYSQL - Use longblob with 4GB despite max_allowed_packet of 1GB
Recently I was given an old application using MySQL 5.6 which has a problem with big files. I found many threads stating that max_allowed_packet cannot be set to more than 1GB as this is the defined limit for MySQL. However there is this datatype LONGBLOB which is defined as supporting sizes up to 4GB. As I can't imagi...
The only way to do this is to split the blob being uploaded into chunks which are equal or smaller to the [CODE] size. They are uploaded via multiple calls to the MySQL C API function [CODE] (q.v.). The MySQL command line client should handle this for you. In your own code you may have to check whether your preferred l...
1
0
710
2020-07-10T09:37:51.637
database_errors
serverfault.com
889,403
Amazon EC2 port 80 not open despite being in security group
I am new to working with AWS so it's quite possible that I'm missing something simple, but here's the issue I'm having. I followed a tutorial to create an EC2 instance (t2.micro) and I have configured a security group to allow HTTP (port 80) from any source, but the port isn't open. I can ssh into my server with no pro...
Opening port 80 in your security group does not create a process in your EC2 instance listening on that port. You need to install an application, such as Apache, to listen on port 80. Assuming that you want a web server running in your instance, install Apache. Example commands: [CODE] This will give you a simple Apach...
4
4
12,513
2017-12-22T21:23:02.897
pipeline_ops
serverfault.com
112,857
Fine tuning Convolutional Neural Network with a learnable first layer
I have a classification task using grayscale images and I want to leverage from pretrained networks. There are a lot of resources out there presenting how to fine tune large neural nets like resnet , alexnet, etc for our custom task (usually with less data). However, I stumble on the problem that I want to use Resnet l...
It's impossible to fine-tune ResNet with grayscale images directly because it was trained with color images from ImageNet . There are 5 solutions: Convert grayscale images to RGB images staying gray, but the results would be poor because ImageNet is not based on grayscale images. import cv2 #OpenCV backtorgb = cv2.cvtC...
1
2
62
2022-07-21T13:47:00.853
data_quality
datascience.stackexchange.com
153,246
What could be causing my code to sporadically fail to get a connection to a SQL Server?
I've been writing some test code for a program I'm developing. Some of my code performs operations that modify data on a SQL Server. In order to avoid cluttering my database with test data, I use transactions. I run each test within a transaction and then roll back the transaction. However, when I run my test code, it ...
Are disposing of the connection object correctly after every call? It may be possible the connection pool is filling up and preventing further connections.
1
2
95
2010-06-21T15:23:39.023
database_errors
serverfault.com
73,515
htaccess mod rewrite problem
Let me start immediately with my problem: [CODE] There is folder [CODE] and when I try to access [CODE] I am redirected to http://localhost/sinj.com.hr/administracija?var1=administracija What I would like is when user enters [CODE] that he is redirected to [CODE] . I tried to do this with header("Location:... ") but it...
Testing on my own Apache configuration I created the directory [CODE] and placed the [CODE] file in there along with a simple [CODE] file that just dumped the $_REQUEST contents back to me. Here is the [CODE] I used: [CODE] The RewriteCond line catches the [CODE] to keep it from going into a recursive loop. I also gave...
1
1
304
2009-10-12T02:24:48.623
infrastructure
serverfault.com
217,471
What's the best way to telnet from a remote Windows PC without using RDP?
Three Networks: 10.1.1.0 - Mine 172.1.1.0 - My Branch Office 172.2.2.0 - My Branch Office's VOIP VLAN. My PC is on 10.1.1.0. I need to telnet into a Cisco router on 172.2.2.0. The 10.1.1.0 network has no routes to 172.2.2.0, but a VPN connects 10.1.1.0 to 172.1.1.0. Traffic on 172.1.1.0 can route to 172.2.2.0. All PCs ...
Use ncat , a revised version of netcat [CODE] This should do the trick, ( [CODE] to use "telnet mode"). If it doesn't work, you can use ncat for portforwarding with: [CODE] You can then telnet to your [CODE] and will be forwarded to the router. Be aware that this solution will make it possible for anyone that can conne...
1
1
7,864
2010-12-30T17:24:37.747
infrastructure
serverfault.com
619,221
Cleanup DHCPD leases as well as DDNS Entries
I have a fairly simple set up on a Debian server I'm running. I currently have isc-dhcp-server installed along with bind9. I set up my zone and my reverse lookup zones and set up dynamic updates, it's all working as expected. My problem is that dhcpd is holding onto leases for a long time. If I look at my dhcpd.leases ...
If you disable ddns update-optimization, it should remove the records when the lease ages out. [1] 1: https://kb.isc.org/article/AA-01091/0/ISC-DHCP-support-for-Standard-DDNS.html
3
1
3,001
2014-08-09T13:43:37.270
infrastructure
serverfault.com
851,080
Apache Installed in Non default location, how to restart?
Apache is currently running in /usr/local/apache2/ However when i type systemctl status httpd.service i get the error message below. [CODE] How would i successfully restart the current running Apache in /usr/local/apache2/
Resolved this by doing the following; /usr/local/apache2/bin/apachectl stop /usr/local/apache2/bin/apachectl start
0
0
217
2017-05-19T09:44:08.897
infrastructure
serverfault.com
1,023,083
Dealing with an ATA error
my Xubuntu 16.04. produces a non-stop ATA error message. Here is the output of [CODE] [CODE] This error runs continuously. Information about my system: I have two hard disks and a DVD [CODE] And the ata ports for the hard disks are following [CODE] A complete list of ata ports is [CODE] And the devices [CODE] Finally t...
How can I solve this error? Replace the harddrive, because it is obviously doing ATA resets. This is (in almost all cases) a sign of electronics at near death or a nagging loose contact. Maybe it's the SATA/SAS cable (or connector), so you can check/exchange that first. But in most cases I have seen the recent years it...
-1
2
1,553
2020-06-26T19:15:02.567
infrastructure
serverfault.com
390,895
Enable user registration - eJabberd
I am a complete n00b to configuring Jabber/XMPP servers and I am hoping to get some help getting set up. I have done all of this and installed pidgin . I seem to be able set up my "admin-user" in pidgin no problem but when I try to register a new user I get a 403 Fobidden message back from pidgin. Do I need to change t...
You have two options regarding user registration. You can either manually create user accounts on the server, or you can enable in-band registration, which allows anyone who can connect to the server to register an account. If you want to create accounts manually, run this on the server for each user: [CODE] If you wan...
8
7
16,985
2012-05-21T01:29:34.333
api_errors
serverfault.com
102,862
Supervised clustering use case?
I'm currently working in a problem, where I think a supervised clustering approach might be a good candidate, but I'm not sure and haven't really worked with such scenario before. Let me break it down: I'm working with a supervised scenario: I have some financial data and an associated probability of risk derived from ...
it sounds like you're doing two things, but really you're just doing one: you could think of the feature derived from this model as something which has to be compared to clustering results in some sort of ensemble fashion. I think a better approach would be to use the other models output as one of the inputs to the clu...
0
4
66
2021-10-06T14:01:45.353
data_quality
datascience.stackexchange.com
101,649
A modern review of Java
I've been programming for a few years and I began in Java, and in my time I've found many different sources claiming Java to be an inferior language in some way or another. I'm well aware that each language has it's strengths and weaknesses, but a lot of things I've read about Java seem to be dated. The most often cite...
a. How does Java's speed today compare to C++? Difficult to measure. It's worth noting that a major part of the speed of an implementation, it's memory allocator, are very different algorithms in Java and C++. The non-deterministic nature of the collector makes it extremely difficult to obtain meaningful performance da...
58
61
16,368
2011-08-17T00:10:34.450
api_errors
softwareengineering.stackexchange.com
21,165
Inserting into three different tables, using foreign keys -- 500000x each
We're working on refactoring many of our offline (python) scripts. I'm very new to any kind of SQL, but have been trying to learn as much as I can, especially in the performance field. We have a script that loads a CSV from a client, that has user-defined fields in it, that must be matched to unique names (and eventual...
Read the entire CSV into a new MyISAM table with no indexes. Write SQL statements to migrate that data en-masse to the other 4 tables. Drop that table. 100-150 IOPs -- not bad. That's about all you can get with a consumer-quality disk. So, the trick is to minimize the IOPs. What engine are you using? (InnoDB has some t...
2
1
1,706
2012-07-19T14:55:57.333
api_errors
dba.stackexchange.com
923,359
Reboot Removes any Local User and Domain Changes
Last Saturday I had one of the Citrix servers in my cluster start complaining about losing the trust relationship with the domain. While this is not really common, it's not unheard of. Usually, the process is reset AD computer account, remove from the domain, re-join to the domain. Easy peasy. With this server, however...
In this instance, the problem stemmed from a registry key somehow losing a critical portion which caused a part of the Citrix XenApp VDA to hold onto changes then discard them at reboot. This article on Reddit has provided the answer: https://www.reddit.com/r/sysadmin/comments/7dikt0/server_2012_r2_vm_keeps_reverting_b...
1
0
808
2018-07-24T22:18:26.570
database_errors
serverfault.com
59,918
Windows Server 2003 (with IIS6) + VPN Connection
I have configured Windows Server 2003 and it servers web-pages just fine. But as soon as I use my server to establish a VPN connection (using the new connection wizard) to another server I receive "connection has timed out" on my clients when I try to access the web-pages. I tried using both ip-numbers (ISP and VPN ip'...
Are you using the Windows pptp VPN client? By default, it routes all traffic through the tunnel to the remote gateway. However, you can make a quick adjustment to it to no longer use that remote gateway. Edit the VPN connection properties. Go to the Networking tab (odds are you can go ahead and disable IPv6 while there...
0
1
262
2009-08-28T11:13:55.827
infrastructure
serverfault.com
419,045
Why is hostapd not working?
I have been working on getting hosapd work for some time. The guides I have followed will be attached on the bottom. So first things first. As far as I can tell, my network card does support AP mode. Please correct me if it doesnt. [CODE] Also, [CODE] So, I followed this guide and the following happens. The network is ...
The issue is with rtl8192cu (the driver). It doesn't support AP mode properly at the moment. It may seem to work, showing the device in master mode, but you won't get any beacons or traffic moving through. Read through this thread - http://www.spinics.net/lists/linux-wireless/msg96070.html - hopefully one of the develo...
0
3
13,811
2012-08-19T07:22:36.210
infrastructure
serverfault.com
962,291
about networking and VPN connections between different sites
Hello everyone, i have a general networking question about an infrastructure described at the scheme above. We have multiple sites connected at the HQs via Site2Site VPN using zyxel zywall routers/fw . Each site has 1 lan like this: site 1: 192.168.1.X/24 site 2: 192.168.2.X/24 site 3: 192.168.3.X/24 HQ: 192.168.10.X/2...
The answer is Yes, assuming a couple of things. The routing at Site 1 allows traffic to enter from one VPN and leave from another (sometimes called hairpinning). You configure your routing at each site to reach traffic at all other sites (and the cloud). In other words, in your hub and spoke network, you need spoke to ...
-2
1
98
2019-04-09T19:00:32.030
infrastructure
serverfault.com
757,903
Solrcloud: Error 500 after restart
I have 3 vm windows, on all of them is installed solr 5.4.0 and 3.4.6 zookeeper; the two services start automatically when the vm start. After reboot vms the solr does not respond correctly, it gives me error500: HTTP ERROR 500 Problem accessing /solr/. Reason: Server Error ... SolrException: Error processing the reque...
I have solved the issue by setting the services startup in these mode zookeeper: Automatic solr: Automatic (Delayed start)
2
0
7,383
2016-02-17T17:59:12.407
api_errors
serverfault.com
377,202
Refactoring of a client calling a Rest Service
I have a class that is responsible for calling a service and returning a response. The contract is like this [CODE] [CODE] and [CODE] are simple POJOs that are part of the application calling the service (and not part of Service API). [CODE] has a bunch of data members that are needed to call an API of the service and ...
There are usually different ways to look at the responsibilities a class has, in the context of SRP. If you consider that its responsibility is "encapsulate REST service calls, so that clients of this class do not have to worry about HTTP & co.", which is OK in my book even if rather broad, then having a single class i...
2
2
195
2018-08-21T05:52:31.827
api_errors
softwareengineering.stackexchange.com
213,529
How to solve this problem- Neural Net? Fuzzy? Other?
Hi I have a programming problem that I would like to solve using some artificial intelligence technique. I really dont know where to start. I would like some guidance as to what methodology to pursue. Lets say I have 10,000 images of random people, and I need to detect elderly people in images. I might have algorithms ...
Have a Look in ada boost (adaptative booster). The idea is to use independent weak classifier (your detectors) and combine them in a clever way. It roughly goes like this: It first tries to evaluate the different detectors to detect and use an optimal linear combination of them to classify the data. It then tries to fi...
5
2
380
2013-10-06T01:05:32.770
api_errors
softwareengineering.stackexchange.com
286,701
Disabling the recycle timeout settings in SSRS
In order to prevent periodic recycling of the SSRS service it's been suggested to disable the [CODE] setting in the RS server's config file. I believe disabling would require setting this value to [CODE] (i.e., [CODE] ). Is this correct? Also, I've heard of alternate methods of scheduling an 'empty' report to run once ...
It's recommended to let SSRS recycle periodically so it doesn't hold onto memory it no longer needs, which may be useful to the rest of your server, for example if your SQL Server instance lives on the same server (you wouldn't want SSRS bottlenecking the rest of your SQL Server instance). If you are able to adjust it ...
1
1
605
2021-03-08T22:37:37.937
bi_errors
dba.stackexchange.com
453,116
socket.io session ends with HAproxy
I'm stuck with dealing with the configuration of HAproxy to make it work with socket.io. My last question was this: HAProxy is caching the forwarding? and I got it working, but for some reason, after the authentication is made and the some commands are sent, the connection is dropped and a new connection is made as you...
got an answer from the HAproxy mailling list, where an user called "Baptiste" give me this link: http://blog.exceliance.fr/2012/11/07/websockets-load-balancing-with-haproxy/ that configuration works perfectly with socket.io (tested with all the protocols except flashsockets). What make it works is the set of options in...
1
1
3,631
2012-11-28T17:31:59.607
api_errors
serverfault.com
661,263
strange strace output of httpd process of apache running django with mod_wsgi
I have about 12 httpd processes running for an RHEL aws box that no one is hitting in the browser (shared team dev box). These processes together are consuming over 1.8 GB on the dev box, and I have seen it up to 6 GB on production. Each one of those processes consumes about 800 MB as per ps aux. I did an strace on one...
While still not truly sure why so many ENOENT, there was a miss-understanding of the apache config. I made an assumption that mod_wsgi was running as a daemon, when it was running in embedded mode. The apache worker.c section set the number of processes to 8 with an expansion of 25 and that's why there were so many sta...
1
0
975
2015-01-21T15:22:14.200
infrastructure
serverfault.com
679,380
Protecting AD object from being accidentally disabled?
If I set a "Deny" type permission to the "Everyone" well-known principal, in the "Write userAccountControl" property of an AD Object, like a User, it works kind of the same as the "Protect the object from accidental deletion", but protecting from accidental disabling, right? Is it viable in case of some VIP accounts or...
You'd have to use a group other than "everyone" but presuming you have a working general "deny", if accounts are being "accidentally" disabled you should be able to track that person down who is disabling accounts to deliver re-reducation via the eventlog. Other than inconvenience there is no harm in disabling an accou...
0
0
118
2015-03-30T18:26:29.803
infrastructure
serverfault.com
208,758
DNS servers ignore my client's query
I have a problem with a ubuntu-10.4 VM. When I try to resolve a hostname (using for example nslookup or firefox), my DNS server receive an UDP packet with a DNS query (I saw it with tcpdump), but it drop the request. I tried with a Windows DNS server and a Red Hat DNS server: they receive the query but give no answer. ...
Try: Check that the DNS server is configured to listen on that IP network Turn on DNS query logging to see if the DNS server is getting the request Check the DNS server listening on UDP (OK, this is a long shot) I agree with James Lawrie that you double check your firewall rules
0
0
296
2010-12-03T13:33:40.750
infrastructure
serverfault.com
480,378
watchdog: behavior of file and sync options?
Here's my situation: I'm having a very occasional problem where a (very) remote embedded PC/104 system running Debian seems to lose the ability to use any communications interface. I can't get to it via ethernet or serial ports (the console). After cycling the power, the system logs show nothing amiss. They just end ab...
What do you mean by "if sync fails"? Man page for sync(2) says about return codes "sync() is always successful". So only way it can "fail" in your case is that it doesn't return control to watchdogd fast enough (becase of many blocks to write, slow writes, broken or corrupt disk or filesystem or kernel I/O layer, ...) ...
3
0
1,336
2013-02-19T17:41:21.017
infrastructure
serverfault.com
970,272
What is the best way to run / manage multiple rsyncs on the same host?
I am trying to move several TB from multiple hosts to other hosts. Each host will have 8 different rsync commands specifying different directory structures and I will be replicating this across nine different hosts. Below is an example of what I'll be running on each host (different destinations but identical structure...
Are you looking for a way to script this? Will something like this work (issued from the destination with [CODE] preceding the script - also remove the echo syntax around the rsync command in line 17)? [CODE]
0
0
148
2019-06-05T18:59:28.900
infrastructure
serverfault.com
639,905
nginx server, multiple users editing their own files via SFTP
I'd like to have a Debian server set up so that different users have their own domains that only they can edit, e.g.: [CODE] Bob should be able to SFTP in and edit his stuff, and likewise for Joe. The problem, of course, is that nginx and php-fpm run as [CODE] . With Apache, I was able to install the [CODE] package and...
One of the solutions is to use ProFTPd with mod_sftp like this: [CODE] And change joe's and bob's user group to [CODE] . So your web server will be able to access files because they are [CODE] group readable and writable. [CODE] will jail users inside their home directories, all newly created files and folders will hav...
0
1
1,437
2014-10-27T09:38:49.363
infrastructure
serverfault.com
139,272
Unable to communicate with EWS from Exchange Server
We are currently running a 2 server exchange environment with Edge services on their own. We are in the process of trying to deploy a piece of software that uses the EWS API which has brought me to this form, the software ties into the EWS service and uses it to forward messages (this is failing). Using the software er...
Silly as it sounds, are you sure you have "Outlook Anywhere" enabled on the server? I have a similar setup and the same issue - 401 responses - because the service is not enabled.
3
1
1,584
2010-05-06T16:19:54.423
api_errors
serverfault.com
570,472
How to speed up applying impersonation rights changes?
I often add impersonation rights on various Windows Servers running Exchange Servers (2010, 2013) using PowerShell ( [CODE] ). The problem is it takes forever for those permissions to actually apply and work. Is there any way I can speed this process up? As a workaround I simply restart the machine, however, while I ca...
Management Role assignments are stored as Universal Security Groups in Active Directory - specifically in [CODE] , given that your forest root FQDN is [CODE] If you have Exchange Servers in different AD sites and RBAC changes take forever to apply on servers in remote sites, you can force replication of the forest root...
1
0
449
2014-01-28T16:19:46.800
infrastructure
serverfault.com
526,869
rsync connection closing right around an hour
I am running some command in cron that does an rsync over two data centers. The connection rate between the data centers is around 1Mbps. I noticed that rsync keeps failing around 2.7GB to 2.9GB of transferred data, which could equal around an hour or more on said connection. I know in the past that our firewall is con...
Idle network connection during rsync transfert: Yes, [CODE] could stay quiet during disk read and while they have no packet to send... You said. our firewall is configured to close idle connections that have opened for more than an hour but nothing about the continuous idle duration . [CODE] process on both ends, readi...
4
4
4,688
2013-07-28T13:34:55.220
infrastructure
serverfault.com
195,272
cp from local to usb-drive affects desktop performance
Background While copying a vast number of multi-megabyte sound files, the Kubuntu desktop becomes intermittently unresponsive (the mouse pointer can move, but Firefox, Konsole, and KDE itself temporarily ignore keyboard presses, mouse clicks, and network I/O). [CODE] The PID is 11544, and I subsequently tried: [CODE] S...
I'm a bit confused as well. First you show commands suggesting the problem is copying stuff from your home directory to a USB drive, but then you start talking about your Windows laptop and scp. So what are you actually doing? Wrt. to poor Linux desktop interactivity when writing heaviliy to a slow device, the recent 2...
3
1
894
2010-10-27T10:52:51.887
pipeline_ops
serverfault.com
594,631
How can I resolve libmysql with Percona now that they've caused a yum conflict with their packages?
A script I wrote a few months ago has provisioned probably 100 or more virtual servers with a LAPP stack (Linux Apache Percona PHP). Recently, the following line is failing because yum has Percona-XtraDB-Cluster-devel marked as a conflict against Percona-Server-client-55, which means you can't yum install libmysqlclien...
Well shame on me, I was able to install Percona Shared Compat to get rid of this issue: Percona-Server-shared-compat.x86_64 I hope this helps others.
0
4
2,133
2014-05-12T20:34:06.417
database_errors
serverfault.com
466,280
Achieving Five Nines
I am building a web application where uptime is key. I understand that 100% uptime is not realistic but I would like to achieve five nines. I'm unsure as to the most prudent way to accomplish this. My preliminary plan was to have the web app running in two geographically separate data centres. The "main" data centre wo...
My rule-of-thumb for clients is: two nines you get for free (ie, without spending anything specifically on high availability). Every extra nine increases total cost by up to an order of magnitude. That is to say, you can have 99% uptime by just putting your application on a half-decent server on your corporate internet...
4
13
310
2013-01-11T19:31:08.273
database_errors
serverfault.com
179,478
problem while installing some python packages
There is an issue while installing some of the packages for python. They show 'No package available' message while trying to do yum install . They are these: python-psycopg, python-reportlab, graphviz, python-psycopg2, pychart, pydot, python-lxml. The OS is CentOS5.5, python2.4 and postgres8.x. Its for installing Opene...
CentOS doesn't have as many packages as other distributions and some of them are old, too. Add the EPEL repository and see if it has the necessarily packages. The python-reportlab and python-psycopg packages are available in the RPMforge repository . I would recommend installing packages from this repository only if th...
2
3
1,609
2010-09-09T11:11:41.460
infrastructure
serverfault.com
318,804
How to optimize index if expected result is limited to 50k?
I have a collection where we are checking the recently active 50k users. The collection has around 1m data. And the query that we are using is this: [CODE] We already have an index on Date:-1 for descending sort. However sometimes, the query is taking too long and incur a timeout. Is there any other way to optimize thi...
The main issue is, It will examine all 1m documents because you are not passing query to limit your result, the 50k limit is huge, try to reduce it to less, do partition by category, or any grouping properties. Check the exact index use and execution state using explain() .
0
0
57
2022-10-27T02:41:20.190
warehouse_errors
dba.stackexchange.com
217,775
SSTP BPDU with bad TLV and macflap -- info please
I'm slowly locking down the network I've inherited and mac-flapping has been a problem in the past with customers doing all kinds of crazy things. Thats changing but I am now encountering this error: [CODE] unfortunately, that mac address is the mac of our core router, the only link to the internet, on port gi0/48 On t...
For the MAC flapping, I'd wait until it re-occurs, then quickly gather the MAC forwarding table from all your managed routers (alternatively, gather them every 5-10 minutes and hope that the interesting bits are there, when you go check "after the fact"). It's either a duplicate MAC or a layer 2 forwarding loop. The TL...
1
1
4,862
2011-01-01T04:22:35.087
infrastructure
serverfault.com
178,200
making a TSQL statement that has variables to be dynamic
I am having a real hard time trying to convert a TSQL statement (which be a store procedure) into a Dynamic SQL. Basically I must be able to pass the schema name as a parameter. Here is my code: [CODE] The problem I have is defining the [CODE] variable. I keep getting the same error: Msg 402, Level 16, State 1, Line 9 ...
Your dates must be strings too, but in a format that is unambiguous (e.g. date format 112): [CODE] You will need to convert your [CODE] as well, where you have it in the string. Watch out for quotation marks, and casting back to [CODE] as well. Here's a proposed solution: [CODE] Read more about [CODE] and [CODE] with B...
0
1
375
2017-07-06T22:39:45.493
warehouse_errors
dba.stackexchange.com
376,437
How to run machine-specific tests during DevOps remote build
What are the generally accepted means of running tests that pass on the dev machine on the build server where they'll consistently fail due to missing dependencies? (In this case, a configuration file that is managed by another completely external application.) My app is reading an INI file containing various key/value...
Its best to design your program so that it is able to run after it's built. In this case you need a default path in app settings, pretty easy, and a default ini file to be copied to that path. Include these things in the project and if necessary add post build steps to move them to the right path or what have you. Alte...
0
3
163
2018-08-05T23:51:51.450
api_errors
softwareengineering.stackexchange.com
541,262
Checking the issued and expiry dates for the certificates involved a certificate chain
Is it possible to check the issued and expiry dates for the certificates involved in a certificate chain by just passing a domain? I tired various openssl s_client attributes, but I am not able to get the required information. Requirement: Pass a domain (along with port 443), and using a script or a command in linux ou...
The answer is yes, you can do it with [CODE] , you can easily wrap this up as a "check" script, but I'm not aware of a plugin that already does this. First, cache the server certificate and intermediate chain: [CODE] (this chain file contains the site certificate, and the intermediate chain, along with other junk) You ...
3
7
8,360
2013-09-24T11:26:08.337
infrastructure
serverfault.com
926,719
vm.max_map_count problems on GKE ElasticSearch StatefulSet
A problem appeared on working ElasticSearch cluster on GKE. Nodes with "data" roles began to crash unexpectedly with an error: [CODE] Of course, there is an init container in this StatefulSet controller which sets vm.max_map_count to 262144 Even more, this init container seem to complete successfully: [CODE] Logs: [COD...
The problem is that init-containers is executed only when pod is created to node, I Think you restarted kubernetes nodes behind this and you did get error: [CODE] Normally to fix this, you should run the command below for each node you have when you restarted kubernetes: [CODE] I suggest you to use DeamonSet to your cl...
3
6
6,778
2018-08-16T15:47:56.170
pipeline_ops
serverfault.com
227,413
Recovering a SQL Server database
In a series of unfortunate mistakes, I lost 4 months of data and all the rapid database modifications. I’m not a database administrator, I’m a programmer who also designs and happens to maintain a database. Initially I just wanted to only compare some database objects to another database. I did that using OpenDBDiff to...
The last successful restore was the RESTORE DATABASE. Since you specified NORECOVERY, the database is, as expected, in restoring state. If you don't have any more backups to restore and just want to get out of the restoring state, you just do: [CODE] That's it. You find the database as it were when that full backup you...
1
2
189
2019-01-17T19:40:39.463
database_errors
dba.stackexchange.com
812,224
What does this error mean with 5d?
I have a web server with HAproxy for load balancing and two nginx+php-fpm. When I opened my site I saw this error. I know what does 504 error mean, but why there are 5d?
Looks like something ignored or stripped out [CODE] from the response. That clearly looks like a chunked response, but delivered to the browser unchunked. Look for something between you and the web server that might be altering your connections in flight, such as another proxy server, firewall, state censorship regime,...
0
2
74
2016-10-31T04:21:03.720
infrastructure
serverfault.com
343,458
Shoud I throw exceptions to UI layer or handle them in my VM layer
Consider the following method: [CODE] Im having a hard time deciding should I throw my exceptions to the UI layer that calls this method or handle the errors here? It's a personal xamarin project so I could handle the error in the VM (using dialogs or something). Is it a good practice to "silently" handle errors in the...
A login error is not unexpected. It is probable that unauthorised users might try to access the system. It is also possible ( even quite common ) that regular users make typos or even pick the wrong password. The UI therefore should be designed to react appropriately for the expected situations, for example give a seco...
5
4
1,294
2017-03-04T09:48:54.090
api_errors
softwareengineering.stackexchange.com
160,405
for Insert multiple rows in one single insert MySQL
I have done bulk-insertion in MySQL using multiple row insertions method by using python script. My testing csv file consists of 100,000 lines only (real one consists of millions lines). so I perform bulk-insertion. and by using unix time command the results looks like [CODE] to make it more simple I add user + sys and...
The elapsed time, not the CPU time is more interesting. You are measuring the client time, not the server time. There are many factors on the server that get 'bad' for large chunks: buffers, undo log, replication delays, etc. The parse time is the main overhead (on the server) for short chunks. You have not specified t...
2
0
1,124
2017-01-09T13:47:57.160
api_errors
dba.stackexchange.com
280,199
Selecting rows ordered by foreign key count and filtering by date
I've got myself in a little pickle with an SQL query that is a bit out of my experience. Here's the two tables I'm using: [CODE] [CODE] Here's how my current query looks: [CODE] At the moment the above query does this: Selects all entries in "Server" Counts how many entries in "Vote" each "Server" has Orders the output...
So this is happening because even though you used a [CODE] , you're filtering on a field in the right-side table of that [CODE] in the part of your query that does [CODE] so this removes all the records in your left-side table "Server" where there are no rows it could join to in the "Vote" table (i.e. where createdAt i...
2
2
982
2020-11-23T21:53:18.823
warehouse_errors
dba.stackexchange.com
1,022,361
Coexistence and migration to Dovecot
We have an environment with >5,000 mailboxes and we need to coexist/migrate the emails from one dovecot to another dovecot environment. The migration data includes: email (sync using imapsync) contacts calendars tasks Mail filter (inbox rules) Autoresponders For email, we can develop a tool to sync/migrate the imapsync...
Instead of a proxy, consider doing presyncs and parallelism. After the first long presync, all others will be quicker and you will even know how long the last sync will take. Read https://imapsync.lamiral.info/FAQ.d/FAQ.Migration_Plan.txt https://imapsync.lamiral.info/FAQ.d/FAQ.Massive.txt
1
0
122
2020-06-21T13:02:29.460
infrastructure
serverfault.com
516,856
What happens to missed writes after a zpool clear?
I am trying to understand ZFS' behaviour under a specific condition, but the documentation is not very explicit about this so I'm left guessing. Suppose we have a zpool with redundancy. Take the following sequence of events: A problem arises in the connection between device D and the server. This causes a large number ...
"Theoretically, ZFS could circumvent this problem by keeping track of mutations that occur during a degraded state, and writing them back to D when it's cleared. For some reason I suspect that's not what happens, though." Actually, this is almost exactly what it can do in this situation. See, every time the disk in a Z...
6
4
3,969
2013-06-19T08:32:52.603
data_quality
serverfault.com
866,156
Folder ACLs and SSH client unable to access folder (Permission denied)
The directory [CODE] is a directory that is on a SSH server (Fedora 25). Its group is sftponly. I am trying to access to that directory through SSH using a user that is part of sftponly group. Unfortunately I cannot access (read) to such directory (Permission denied). The access control list looks good to me, but there...
You should check the parent directories to see if either the user or [CODE] group have the correct permissions to traverse the directory hierarchy. You can use [CODE] as a quick permissions overview. If that doesn't yield the info you need, you can use [CODE] on each parent directory to discover if there is a perms iss...
0
1
375
2017-07-31T20:47:59.350
infrastructure
serverfault.com
734,725
Tomcat accepting HTTP from Apache, while Apache accepting HTTPS from user, does tomcat need to be HTTPS enabled too?
My application serves html pages through Apache server to user and it ssl-https enabled. These pages makes ajax request to my backend application running on tomcat container. Tomcat is not ssl enabled yet, so ajax request is being sent over http. This is creating error in user's browser that mixed content is being requ...
I would do a reverse proxy in the same https vhost and rewrite the path, so /app/ goes to tomcat, then update your code.
1
0
121
2015-11-07T22:50:42.210
pipeline_ops
serverfault.com
65,181
optimizing a linear optimization function with linear constarints and binary variables
I am new to optimizations and trying to solve a problem, which I feel falls in the umbrella of optimization. I have an ojective function that needs to be maximized [CODE] constraints [CODE] [CODE] [CODE] Its completely a linear problem, and there is no requirement of non linear optimization techniques.Can some one help...
Use scipy.optimize.minimize of the negative objective function. Use the link to play and modify as you wish but here is application in the nutshell. Lets say you have your data [CODE] You should define your constraints dictionary in the following way (for example): [CODE] (accesing array/columns with indexing (x[0]) th...
2
1
103
2019-12-20T11:10:33.503
data_quality
datascience.stackexchange.com
692,030
Puppet Master: Multiple agents with same hostname
I'd like to use Puppet master to configure multiple development VMs with Vagrant: eg: vagrant creates a new box and provisions it using Puppet agent. However, some testing seems to show that Puppet master assigns certificates per hostname, therefore if two clients have the same hostname, Puppet refuses to download the ...
In your first run (when you send the request for a new certificate) you could use the parameter --certname to give a specific name to every machine (also if they have the same hostname) So on the shell you could use: [CODE] On the puppet server you'll see a new request with that name. Could this help in your environmen...
1
1
1,738
2015-05-14T13:44:46.457
pipeline_ops
serverfault.com
100,493
Disable CHKDSK without being able to bootup
The system I am working on started to randomly reboot, thinking it was a harddrive error (we've had two machines fail due to this already), I rebooted the computer to run chkdsk. Now the problem is that waiting the 1.5 hours for CHKDSK to complete, causes it to reboot without finishing, and hitting any key to skip CHKD...
I believe it is set in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\BootExecute Sounds like you have bad hardware on that box, motherboard or powersupply is likely. Excerpt from http://www2.isye.gatech.edu/~mgoetsch/cali/Windows%20Configuration/Windows%20Configuration%20Html/ModifyingDefaultBootu...
0
1
1,429
2010-01-07T16:02:49.110
hadoop_errors
serverfault.com
655,830
Understanding zpool status output
I'm having difficult understanding the output after running the zpool status command: [CODE] I see a 6 next to READ, which I assume are I/O errors trying to read from tank. What I don't understand is which drive is at fault here to replace. Is this something to be alarmed about? I ran a SMART test and none of the drive...
Please run: [CODE] And then look a little more into the properties and attitudes of ZFS and how it tries to protect data.
3
3
1,027
2015-01-02T05:08:42.353
infrastructure
serverfault.com
122,118
error when using KFold() and roc_auc metric
why [CODE] works just fine and when using KFold() like [CODE] error occurs saying Only one class present in y_true. ROC AUC score is not defined in that case .
The StratifiedKFold , as the name suggests, yields folds whose classes are inherently balanced. And so if your [CODE] contains at least two classes you won't get any error. Otherwise, KFold just splits the data as it is presented so you may get a fold in which only one class is present thus raising the error. Anyway, I...
0
1
30
2023-06-12T22:26:35.187
data_quality
datascience.stackexchange.com
246,502
Going through The C Programming Language K&R in Visual Studio
From what I have read, K&R seems to be a good place to start learning programming in general, and C programming specifically. However, I've just started the first chapter and I have a few questions. They may be extremely simple, and I apologize if that's the case (I am new, after all) -- but your helping me answer them...
I understand the book is written to describe C languages in general. The book is written to teach you [CODE] , not 'C languages in general' Does the book expect me to be able to translate the first program ... to a C# or C++ program? No, those are different languages, and the book does not expect you to do anything wit...
2
36
2,185
2014-06-30T22:26:06.060
api_errors
softwareengineering.stackexchange.com
105,496
How to remove a corrupted shard in MongoDB
I use MongoDB 3.0.3 with Wired Tiger engine on Cent OS 6.4. I have a sharded cluster of 4 shards each of which has about a quarter of total data. One of the shard called "shard2" corrupted and can't start. Without this shard, the cluster can't work. I can bear losing data on this shard, How can I remove this shard to m...
You can use below commands to remove the shards, though I havn't tried ever but looks straight forward. [CODE] link: http://docs.mongodb.org/manual/tutorial/remove-shards-from-cluster
3
1
565
2015-06-26T09:56:34.787
data_quality
dba.stackexchange.com
547,931
How to have SSL on Amazon Elastic Load Balancer with a Gunicorn EC2 server?
I'm a self taught back end engineer so I'm learning all of this stuff as I go along. For the longest time, I've been using basic authentication for my users. Many developers are advising against this approach since each request will contain the username & password in clear text. Anyone with the right skills can sniff o...
Your ELB can listen on any port you specify and target any port in your server. For backwards compatibility, I'd suggest using another port (e.g. 8001) as your secure port and communicate through a secure connection in a new version of your application. You add a listener to your load balancer, upload the certificate f...
0
0
774
2013-10-22T21:18:49.647
api_errors
serverfault.com
727,528
Automount a samba share using fstab cifs in a debian virtualbox
When i run: [CODE] as root user in my virtualbox machine i will get the samba share mounted, so my settings in my /etc/fstab are working: [CODE] But why is this share not automounted when my virtualbox machine is booting? I run virtualbox in headless mode using vagrant. At the moment i need to run this sequence: [CODE]...
The network might not yet be initialized at this point. You can add [CODE] to the mount options. This will delay the mount until the network is connected. [CODE]
1
3
1,690
2015-10-08T06:40:37.990
infrastructure
serverfault.com
734,884
Rails + MySQL: How to decrease sleep process's time out?
When I run 'show processlist;', then I get so many sleep processes. result of 'show processlists' I set wait_timeout and interactive_timeout to 60 in my.cnf. But, sleep process is not died when time 60 on processlist. I found that sleep process is died when time is 7900. What happend?? How can I decrease sleep process'...
If you added those values to your /etc/my.cnf you need to restart MySQL for them to take effect. You can change them interactively with these commands [CODE] Note that existing connections will not pick up the new values, they will timeout at a time based upon the settings when they were created.
0
0
1,187
2015-11-09T06:59:59.380
database_errors
serverfault.com
305,360
Table partitioning on an existing table and using different filegroups
I have an existing table on the primary filegroup, which I want to partition. The partition key is on year, which is a calculated column. I want to partition the table in such a way that in the end the data for each year will be on it's own filegroup. I first want to split of 2 years, so I can later test some more on h...
your create index statement needs the ON clause to use the partition scheme you've created: [CODE]
0
2
1,548
2021-12-24T06:29:14.817
database_errors
dba.stackexchange.com
60,545
How to tell client I no longer want to work on his project
This is probably going to sound messed up, but here it goes. I've been working on a project for a client for a while now. I wasn't given any details except for "It has to be an XYZ plugin and interface with ABC product". Which was fine, but now we're towards the end (I think) and it's just dragging out. I don't have an...
First, you need to get out of the mindset that you are now working for free, just because you've gotten what you believe is the final payment. You agreed to a price and were paid. If you had received all of the funds up front before even starting, would you have been doing the entire project for free? (BTW this is why ...
20
30
6,628
2011-03-21T22:45:23.667
api_errors
softwareengineering.stackexchange.com
105,714
Measure SQL Azure Transaction Rate
We are on SQL Azure v12 Standard/S2 Service Tier and are not satisfied with the performance so I am trying to measure where the bottleneck is. I realize that we could be hitting the limits of the S2 service tier. S2 has 50 DTU and 2,570 transactions per minute limitation. Memory Pressure: I looked at the [CODE] and the...
You can use this script written by Dimitri Furman from Microsoft. It will measure transactions/sec per database. You need to run this against the database where you want to measure transactions/sec. I tested this against V12 version and it works. https://blogs.msdn.microsoft.com/dfurman/2015/04/02/collecting-performanc...
7
2
1,028
2015-07-01T20:26:07.240
warehouse_errors
dba.stackexchange.com
586,810
Using Stranded vs. Solid CAT5 in a cable tray
I'm going to be installing a switch and 40 workstations/printers in a building. All the rooms have raised floors with cable trays running in various grids and there are cable trays going between the rooms accessible from the basement. Most of the runs will be between 200' and 300'. All the runs will be going from the s...
Use solid core wire for structured wiring (in-wall, above ceiling, etc), it's cheaper. Use stranded core wire for everything else (eg, wall to computer, in-rack, patch panel to switch, etc) To directly address the question as stated: I remember back in the day it was a big deal to use solid cable for horizontal runs Th...
3
8
1,129
2014-04-04T20:26:54.620
infrastructure
serverfault.com
1,005,236
Why can't copy to other server by scp with openvpn?
2 nodes: node1 node2 Node1 [CODE] Node2 [CODE] Can't copy server.key from node1 to node2.
[CODE] on node2 should be owned by root. You are trying to copy a file with [CODE] , which is not allowed to write in [CODE]
0
2
890
2020-03-02T05:32:25.737
infrastructure
serverfault.com
229,881
SQL to return preferred duplicate rows
Have a data set that some rows have a duplicate. Looking to return the row with IND = Y if it is present, otherwise to return the N. [CODE]
You can use a ROW_NUMBER ordering by a CASE on [CODE] WHEN 'Y' then 0: [CODE] rollup_mth | SLS_OUTLET_ID | vacant_ind | other | RN :------------------ | ------------: | :--------- | :------- | :- 01/08/2018 00:00:00 | 97985 | Y | VSP97985 | 1 01/10/2018 00:00:00 | 97985 | N | RSBRASIL | 1 01/11/2018 00:00:00 | 97985 | ...
-1
0
187
2019-02-15T18:02:27.277
data_quality
dba.stackexchange.com
88,514
What advantages does an airport extreme exactly bring?
I'm about to invest in an Airport Extreme for my company network, just as a little "boost". I have two internet lines, and I'd like to use one for all the wired network, servers and most of the workstations, and the other to plug the Airport Extreme and make some of the workstations use it also (with 128 WiFi PCI-cards...
An Airport Extreme operates over 802.11g (54mbps) and the newer 802.11n (108mbps) in dual-band mode (Allowing older g-clients and newer n-clients to operate simultaneously). 802.11n is faster, and operates over a greater distance. An Airport Extreme has one USB port, to which you can attach a USB hub, to which you can ...
0
3
3,073
2009-11-26T11:05:31.567
infrastructure
serverfault.com
236,701
CLI not working
I have installed Wamp on my PC (Windows 7), but whenever I want to start the server, it says that the CLI is not working. I also have Windows IIS server too, which I've installed from the Web Platform Installer but would that affect it? Many Thanks
At least you have to make sure that IIS is not running, which will probably be the case after installing it. Search for your Web Services and disable or better deinstall IIS, since on Windows you never know if a later installation or program reconfiguration will without notice reenable your IIS service.
0
1
273
2011-02-17T12:23:40.727
infrastructure
serverfault.com
1,033,918
How to choose best EC2 instance for the system
I have hosted an e-commerce site in AWS-EC2 in a t3a.medium instance type. Now that the traffic is increasing CPU utilization is very high and site stops working time and again. Looking into htop, mysql is utilizing maximum CPU. As in the current instance, vcpu is only 2 so I want to change the instance type. But the p...
It's easy to change the instance types up, down, or sideways. Don't try to guess which one will work the best for you - instead test it out . If you've got t3a.medium now try upgrading to t3a.large . Or to m5.large - it may be cheaper if you're maxing out the t3a.large and constantly running out of CPU credits (check t...
5
29
3,579
2020-09-15T04:23:55.430
database_errors
serverfault.com
335,375
"Path Not Found" when attempting to write to a sub folder within a mapped drive
We have an interesting issue with one of our server shares, or possibly, our Win 7 desktops. When our users try to save files in a sub folder, either via copy/paste or through an application, to a mapped drive on our DC they receive an error saying "Path not found". They can however browse this folder and open files fr...
Can your users you the UNC path to the sub-folder that they are having issues with? Are they then able to read and write data to these sub-folders? If so this indicates a permissions issue with a mapped drive itself. Since you say they are able to read and write data to the root of the mapped drive I would ensure that ...
1
0
1,598
2011-11-28T09:50:27.743
infrastructure
serverfault.com
77,854
Put caching web server in vmware?
We are having to make a design choice in our web environment. At this moment we are stuck at a discussion if we CAN put the varnish caching server into the vmware environment or on dedicated hardware. My envisioned setup: varnish/apache servers -> tomcat instances (in vmware) -> mysql cluster (apache needs to be there ...
If you already have the software installed and running, I suggest that you measure the CPU performance on that server. Even if you have other stuff running on the same server, it may not matter. If the CPU load is 33% or less of what that server is capable of, then it is realistic to put it in a virtual machine running...
2
4
1,232
2009-10-24T07:12:05.130
database_errors
serverfault.com
137,538
multi-tenant data related to multiple customer?
tenant type design on the database schema tables. We have about 20 customers data and single web application is serving it. Question, how do we improve query performance or what type of database architecture would you recommend in this situation? In ideal world it would be each customer sits on different database user ...
Customers come and go. Sometimes they have the right to take their data with them. To extract a subset of data from one schema where the data could be anywhere and the only marker might be a tenant number is a lot harder than putting each customer's data in one schema. One solution I have seen used is to have a master ...
1
3
43
2016-05-04T16:44:41.480
warehouse_errors
dba.stackexchange.com
278,100
My folder is disappearing, how can I find out where it is going?
I have a CentOS 5 server that is file hosting by samba on a small network of 25 or so desktop server 2003 environment. Every night, a folder on one of the samba shares of this server is mysteriously disappearing. Every day we restore from a backup, but every night it disappears. The samba config is thus: [CODE] The per...
You can increase the verbosity of samba server or use an [CODE] script to monitor the folder and run a [CODE] to find the workstation connected at the server at that moment.
0
0
121
2011-06-08T02:46:02.107
database_errors
serverfault.com
472,091
Exchange database corruptions - Regular occurance
Every 3 to 6 months we start losing connection to exchange from outlook (i.e Outlook has lost connection to exchange -> Outlook has restored connection to exchange). After this happens the mailbox database inevitably becomes dismounted and won't mount again without me doing something with eseutil to repair it, sort the...
In line with the comments: It turns out that write caching was enabled on the hard drives. Since turning this off the problems have gone away.
1
1
174
2013-01-24T16:10:05.000
database_errors
serverfault.com
323,185
Postgres trigger has no effect despite running
I have a trigger that updates a count in table [CODE] whenever an [CODE] occurs on table [CODE] . Here is what the function looks like: [CODE] The function takes an article id and looks for a corresponding feed inside the [CODE] table then takes that feed id and uses it to update [CODE] in the [CODE] table. Everythings...
I figured it out. The [CODE] is being used before the [CODE] table is updated so the trigger function can not find a corresponding feed for the article. I probably should move that logic that updates the [CODE] to a trigger too. Rookie mistake.
-1
0
52
2023-02-07T20:32:19.873
warehouse_errors
dba.stackexchange.com
522,787
CentOS 6.4 Network interfaces fail when rebooting and must be started manually
Hi Im having a strange issue that seems to be plaguing all 3 of my HP ProLiant DL360 servers that are all running an identical configuration of CentOS 6.4. It seems that when the network daemon is restarted (or just started when it was not) it fails when it attempts to bring up the interface, eth0 in this example. howe...
It sounds like your network switch has a delay in between the switchport coming up and registering link. Try adding something like [CODE] to your [CODE] file, then reboot. Increase or decrease the delay as required, try with a few values from 1 to 31.
1
1
4,229
2013-07-12T09:50:24.520
infrastructure
serverfault.com
606,613
phpmyadmin have unmet dependencies
I use debian 6.0.6, before I install phpmyadmin, I install this: [CODE] I try to install phpmyadmin, but I found this error: [CODE] And I tried this command: [CODE] What should I do?
Your 'php5-common' appears to be provided by "Dotdeb" which is a third party site that distributes packages. Either you were messing with your sources.list previously and reverted the change, or you didn't post the complete list here. Or, a possible third option, you may have manually downloaded the .deb file from Dotd...
0
1
1,402
2014-06-19T23:53:35.993
infrastructure
serverfault.com
768,331
Cannot copy a local file to live server over a port other than 22
I am trying to copy a file from my computer to my server through scp command. I have changed the default sshd port from 22 to 36871. Now, the problem is when I issue the scp command over port 36871, I get a "Connection refused" error, as it tries to connect through the default port 22. I issue the command as follow: [C...
Ok, I think I found the answer after some experimentation. I only needed to enter the remote port after scp. So here is the right command: [CODE]
-4
2
102
2016-04-05T16:39:39.420
api_errors
serverfault.com
690,933
Mongodb: handle offline queries without affecting regular queries
I have a MongoDB replica set with Three members: primary, secondary and hidden secondary, only for backups. Ideally, I want to add additional instance dedicated to running slow batch operations. The idea is to have this instance run map-reduce style operations which may take very long time to complete, without slowing ...
That's not a matter of configuration. Your normal queries are sent to the current primary. So all you need to do is to make sure that your batch operations (I assume aggregations and/or mapReduce jobs) are run against a secondary. You can do this by setting the readPreference to [CODE] or [CODE] . This comes with some ...
1
1
115
2015-05-10T11:03:44.213
database_errors
serverfault.com
393,652
Many-to-many assignments in user system
I have a few software architecture/design questions related to a technically quite simple problem. We already have all the functionality implemented properly, however from a design perspective it is super messy and unclear, which is why I'd like to refactor it using a nice structure - which is what this question is abo...
I am not the greatest master in these kinds of "problems". But the most flexible solution I can come up with is: 1 table to hold the data for the groups 1 table to hold data for the users 1 table to assign users to groups, also specifying access level (regular, admin) and any other roles / rights might be needed. In th...
2
1
144
2019-06-21T11:20:28.503
api_errors
softwareengineering.stackexchange.com
20,740
Selenium + FF : How to fix error, Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms?
My script is not running even by using selenium 2.53.1 and firefox 47.0.1. [CODE] is the error returned. The script that was tried is, [CODE] Question - How to fix error, Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms?
Solution 1 - I will suggest to downgrade (replace with older version) your ff browser version. You are unable to connect to 127.0.0.1 maybe because version do not support each other. Upgrade or downgrade version for Selenium or FF will resolve issue. Note - Prefer to downgrade FF version, I got success with such approa...
5
3
21,099
2016-07-27T07:47:20.247
api_errors
sqa.stackexchange.com
300,194
Apache User Directory URL
I have a SUSE server running and it is configured allow users to login with their windows credentials. I have apache with user directories turned on. So that users could upload their sites to the public_html directory. The problem is that the URL to access their sites is: 192.168.1.1/~DOMAIN\windowsusername/ The backsl...
I guess something like this should do it. Not 100% sure how the backslash will behave in the replacement, may require some tweaking (turning [CODE] into [CODE] ). [CODE]
0
0
46
2011-08-11T17:34:32.957
infrastructure
serverfault.com
798,817
Jenkins on Docker - Free Swap Space 0
I've noticed that my master node on Jenkins shows [CODE] So I added a swap file as described here . But this has no effect. What am I doing wrong?
Run the following command to see if your host has a swap file configured: [CODE] If you get "Swap: 0 0 0" like you see above your host has no swap configured. Configure a swap file on your host: [CODE] Verify your swap is configured: [CODE] Good, we have a swap on the host. Run your Jenkins docker by typing: [CODE] Not...
12
6
23,229
2016-08-24T12:32:20.763
pipeline_ops
serverfault.com
645,870
cisco ASA 5505 l2tp vpn
I have a problem with cisco asa 5505 vpn configuration. I set l2tp for windows clients. I can connect to vpn but: when i have "use default gateway on remote network" on NIC enabled i have access to all resources in network but i don't have internet access (can't open websites etc). when i have "use default gateway on r...
That's because you didn't configure the Split Tunnel . Basically, when you enable [CODE] as soon as you connect to the VPN, your default gateway becomes the VPN endpoint and all traffic transit towards that gateway. When it's not enabled you are simply missing the routes to reach whatever is beyond the VPN tunnel and s...
1
0
1,191
2014-11-20T16:01:31.057
infrastructure
serverfault.com
831,760
chroot from live cd gives : /bin/bash: error while loading shared libraries: __vdso__time: invalid mode for dlopen(): Invalid argument
Tried to fix boot problem [CODE] And trying to chroot from live cd and im getting this error: [CODE] Seems i messed up with some libraries. Anyone know how to fix this? thanks
It seems like you've messed something with 'glibc', it usually gives such error. The only solution that I can currently think of is to try rename your current 'lib' dirs (in environment you are trying to chroot to) and copy (i.e. from live cd) 'clean'. Make sure you keep old 'libs' so you can later reuse them. For futu...
1
2
3,068
2017-02-10T08:28:46.833
infrastructure
serverfault.com
214,704
how to shrink(and also reduce size on disk) a very big log file in SQL server 2016
I have a datawarehouse with database log of 800 GB.now I want to shrink it or reduce the disk space occupied by Log.ldf file. I tried to shrink file in several ways - took full backup , performned transaction log back up, modified recovery mode from Full to Simple, executed dbcc command however none of them seems to he...
I completely agree with Biju, I had similar case when log size was not reducing at all however this was in Sybase, nevertheless concept is same, you may refer the case here: Database Backup size not reducing You can also use sp_WhoIsActive to check what is currently running at your database and what is the underlying c...
0
0
427
2018-08-12T11:14:59.193
pipeline_ops
dba.stackexchange.com
131,505
Use array of composite type as function parameter and access it
I have created a type [CODE] in Postgres which has 2 [CODE] fields and 2 [CODE] fields. I want to send an array of [CODE] to a function to [CODE] those values in a matching table. This is my type: [CODE] This is my function: [CODE] How do I send data to the function or how should I call the function with data?
I answered a similar question on SO some time ago, to suggest the same solution with [CODE] like @a_horse did: Array of composite type as stored procedure input If [CODE] has the same row type as your composite type [CODE] , you do not need to create the additional type at all, just use the row type of the table: [CODE...
7
9
22,502
2016-03-07T15:00:01.303
warehouse_errors
dba.stackexchange.com
659,881
nginx logs to syslog - connection refused
I'm trying to setup nginx 1.7.3 to send logs to syslog, but when I this configuration: [CODE] this shows up in nginx's error log: [CODE] I've followed http://nginx.org/en/docs/syslog.html and tried different parameter specified in there, but no luck... The server runs rsyslogd daemon and other applications (cron, mysql...
nginx is trying to send your logs via a network port but your rsyslog configuration does not allow for syslog reception. You will need to configure rsyslog to accept syslog messages by uncommenting either the UDP or TCP syslog reception configuration. nginx likely defaults to UDP so I would suggest starting there. Don'...
5
7
15,439
2015-01-15T20:47:44.330
database_errors
serverfault.com
562,722
AWS: Forwarding HTTPS to HTTP via ELB
I'm having issues setting up HTTPS on AWS via a load balancer. I've managed to get as far as proxying my standard :80 server, via HTTPS on the load balancer, so requests to https://www.example.com are working. So if AWS can handle HTTPS traffic at the ELB level, do I actually need to start a separate web server to hand...
Even without ELB, you don't need two web servers - Apache, nginx, IIS and other popular webservers can all serve HTTP and HTTPS at the same time. That said, you can leave it the way you have it now, with one caveat - traffic between the ELB and your EC2 instance is unencrypted. As it's on Amazon's internal network, thi...
3
1
5,259
2013-12-20T12:34:54.610
infrastructure
serverfault.com
177,142
Postgresql cannot peer authenticate using usermap (provided user name (^dbuser^) and authenticated user name (^sysuser^) do not match)
I am trying to peer authenticate some users using usermap. What I am trying to do is to map user mailreader as you can see: [CODE] Into system's user root,dovecot,postfix. Therefore I edited my [CODE] and put the following content: [CODE] I also edited the [CODE] and appended with the following content: [CODE] When I t...
In the end I had to comment the line: [CODE] Or to put it below the following line: [CODE]
5
5
7,562
2017-06-23T19:02:16.393
database_errors
dba.stackexchange.com
12,781
wcf client test in vs 2010 tools
wcf client test I am using wcf test client in vs 2010 tools. First when i started tool, values came with null. I want to change value's dropdownlist with my default values. How can i do it?
According to this blog post (bullet 11. Testing WCF Service with WCFTestClient) you should double click the request in the left three where you can setup input and the expected response.
2
1
108
2015-04-22T11:44:38.567
data_quality
sqa.stackexchange.com
796,937
ApacheDS upgrade/backup/restore problems
Ubuntu 14.04 ApacheDS 2.0.0-M21 Apache Directory Studio 2.0 I was trying to upgrade to ApacheDS 2.0.0-M23 with no success. It requires some backup/restore procedures but I have not found anything in ApacheDS documentation on how to do it. All my attempts to work with LDIF export/import have failed. Even when I exported...
You should be able to do a full dump with the -LLL switch. Set the dump to only include the OU's that you want to restore - don't get the ou=system stuff for instance.
1
0
884
2016-08-15T18:19:43.830
database_errors
serverfault.com
392,118
Building Client Specific Application on Top of Standard Application
I have a standard application and in this case, it is an Accounting ASP Net MVC application. Now, I have a new client that has their own specific requirements like other fields and some custom behavior that doesn’t make sense to be included in the standard application. The most straightforward thing that I could do is ...
Your question is very broad, so expect only to get a broad answer. The general strategy for solving these kinds of problems is to make the requirements customizable. This can be done by introducing run time or compile time switches, configuration files, special code which is only used for a specific customer, "plugins"...
0
2
367
2019-05-20T02:56:43.890
api_errors
softwareengineering.stackexchange.com