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
1,148,813
Trying to extract mailing lists from .pck file
in short, our admin left our organization without properly handing over his duties and we don't have a replacement specialist yet. For some reason, the mail server stopped working and we don't have access to our mailboxes, but this is not the main problem, the immediate problem is that we don't have access to our maili...
There are mailing list configuration parameters, including members (subscribers) in those config.pck files. There is no editor for those AFAIK. You are probably looking for messages - check them in archives/ folder rather than lists/ folder: e.g. if lists are in /var/lib/mailman/lists, check /var/lib/mailman/archives. ...
0
1
152
2023-11-29T13:17:13.113
database_errors
serverfault.com
293,932
Why do I get #2006 MySQL server has gone away and how can I fix this?
What I'm doing is I'm trying to restore MySQL tables from [CODE] and [CODE] files. Most of the tables have been restored successfully. I do it like this: [CODE] [CODE] [CODE] Then I copy the [CODE] file into the MySQL [CODE] folder and [CODE] When I go to [CODE] then and click on the imported table I get this error: #2...
Suggestions to consider for your instance my.ini [mysqld] section [CODE] other suggestions you will likely find reasonable for your 16G server [CODE] Many other tuning suggestions would improve performance when you have more significant number of concurrent connections.
0
1
1,130
2021-06-08T11:58:26.903
api_errors
dba.stackexchange.com
280,314
How to access an Oracle database from linux
We have a legacy Oracle database hosting all of the information for a now shutdown website, we need to keep the data on the DB available for a period of time due to GDPR etc. We have had some requests from previous users to have there information deleted. The problem... This database was last in use 5-6 years ago (for ...
Since you have root access to the server, you can [CODE] to the Oracle instance owner (typically [CODE] ), connect to the database locally using OS authentication (e.g. [CODE] ), and create new (or modify existing) Oracle users or roles as needed. In case you're not familiar how [CODE] and login shells work on Linux, y...
0
1
4,894
2020-11-25T12:28:40.090
database_errors
dba.stackexchange.com
392,303
Handling Different Parameters for Derived Classes
I'm designing an API and I ended up having a few pure abstract classes. Because of the nature of the problem that I'm solving, each derived class has to be initialized with different sets of parameters. My solution was to basically define their constructors and pass the appropriate parameters when I'm making each class...
Problem with [CODE] Using [CODE] to capture the data needed to construct derived classes is DOA in my book. As soon as you need [CODE] , you'll have to go back to the base class and update it to [CODE] That violates The Open-Closed Principle and should be avoided. Separation of concerns Make sure that [CODE] and its de...
0
2
3,100
2019-05-23T11:42:57.267
api_errors
softwareengineering.stackexchange.com
146,187
ON DELETE CASCADE has no effect
I've been searching SE forums in order to solve that, however I wasn't able to find out where I was wrong. In my DB I want to link in a strong way a parent table to a child table : to do so, I want all the child table rows that reference the parent to be deleted when the parent is deleted. My app is not in production, ...
What version of MySQL are you using? I tested the following with 10.1.16-MariaDB, and it appears to be working: [CODE]
2
1
4,938
2016-08-08T14:16:00.720
database_errors
dba.stackexchange.com
763,920
Rich-Rule Invalid_Rule: Destination action
I am trying to add a rich rule to isolate a dev environment for a contractor to develop on. I have placed the machine on a DMZ, but i would like to isolate it a little further, and from the OS level. Running CentOS 7.1.1503 firewalld 0.3.9-11 [CODE] I receive the error [CODE] Which appears to be a catch-all error.
A little late to the party but it's a bug within [CODE] https://bugzilla.redhat.com/show_bug.cgi?id=1326462 You will get this error when you use both source and destination address but no protocol/port. Fixed in firewalld-0.4.2-1.el7
3
1
1,690
2016-03-15T18:33:56.850
infrastructure
serverfault.com
138,393
Base classes as factories?
I was writing some code over the weekend and I found myself wanting to write a factory as a static method in a base class. My question is simply to know if this is a c# idomatic approach? My sense that it might not be comes from the fact that the base class has knowledge of the derived class. That said, I'm not sure of...
Well, the advantage of a separate factory class is that it can be mocked out in unit tests. But if you're not going to do that, or make it polymorphic in any other way, then a static Factory method on the class itself is OK.
17
14
5,554
2012-03-05T16:12:20.230
api_errors
softwareengineering.stackexchange.com
234,325
Cannot figure out how to remove this Using Temporary
I have what seems like a simple query, and my indexes seem to be sufficient without the INNER JOIN, but after I add the join, I end up seeing "Using Temporary". Would also appreciate any good resources for learning more about query optimization! Query: [CODE] The messages table has a covering index for (user_id, type, ...
Step 1. Get rid of the [CODE] . The main purpose of t2 (the way the query is written) is to see if there are amy [CODE] for the given [CODE] . Do you really need that test? If not, get rid of the [CODE] Step 2. Get rid of the [CODE] . The secondary purpose of the [CODE] (should you decide to keep it) is to create multi...
0
0
208
2019-04-09T15:22:11.360
warehouse_errors
dba.stackexchange.com
121,490
JAVA_OPTS -XX:+PrintGCDetails affect on performance?
Does anyone know if the PrintGCDetails affects java performance much? I've been monitoring our java garbage collecting on a staging server with the same setup as the production server. I assumed it was safe to say that I shouldn't have this enabled on production but I don't know if there's really any affect on performa...
You should definitely enable garbage collection logging in production servers. The benefits far outweigh the negligible performance impact. You could also monitor GC behaviour using other approaches (see answers).
5
4
6,867
2010-03-11T14:01:36.413
pipeline_ops
serverfault.com
984,917
Errors at named startup
I see this lines when i start [CODE] : [CODE] What does it means? Should i worry? If so, how to fix it? I don't know what is in [CODE] . I run [CODE] , [CODE] and [CODE] , and it did not find the file that is in the path [CODE] .
Check to see if TCP_FastOpen is enabled on your system. CentOS ships with it either disabled or only available for outgoing connection. You'll need to set it to 3 (enabled for both incoming and outgoing). You can set this for the current session (for testing) with [CODE] or [CODE] If that resolves your issue and you wa...
0
1
946
2019-09-19T19:10:12.190
infrastructure
serverfault.com
357,386
Advice for bugfixing object oriented code: why is data not set?
When debugging object oriented (Java) code, sometimes some field of some object is [CODE] while it should not be. I often spend what I feel is way too much time trying to figure out where it should have been set (at which point it's often quickly clear what went wrong). If it had been a function argument, I'd be easy t...
There are two ways to deal with object state: Have extremely sophisticated debugging skills so that you can find obscure bugs, or Manage your state in a better way so that obscure bugs do not happen in the first place. Ways to better manage object state: Use constructors to build objects whose state is already valid. M...
3
11
277
2017-09-14T15:33:39.897
api_errors
softwareengineering.stackexchange.com
775,855
How to configure Apache "workers" for maximum concurrency
Hoping this is a good question and can be useful for anyone in a similar situation. I recently took over from a very senior Linux administrator in my company, and for the first time I've had to set up a new server to serve our content to our customers. My predecessor left limited documentation on this matter as other t...
There seems to be a lot of possible questions here, a bit unstructured for a "response". Let me see if I can help answer some. Determine which Multi-Processing Modules (MPMs) is in use. The "easiest" way is to dump any currently running modules and select out the [CODE] ones to see what's running. Here are two methods:...
10
15
107,269
2016-05-10T11:47:01.943
database_errors
serverfault.com
652,196
Hyper-V offline migration between AMD and Intel Processors
I have an existing 3 server hyperv cluster using Dell R715 AMD machines. Now I'm planning out what to do if our server room is damaged in a disaster. The plan is to have a single, fairly powerful, server waiting at another location to restore to. The locations are connected by a 50mbit connection. If we have some warni...
You should not experience any problems moving between different processor types in a scenario where you stop and start the VM. (Such as an export and import.) If these are cluster nodes and the cluster nodes had different types of processors in them, and you wanted to move (but still not live migrate) the VM from one n...
6
6
7,258
2014-12-12T17:42:57.227
database_errors
serverfault.com
321,570
How to write SQL Stored Procedure to ouput a fixed Length/width File
I am using SQL server 2017, I want to write SQL stored procedure to generate a fixed length/width file without using SSIS or wizard TABLE: EmpID EmployeeName Department Birthdate Hiredate 001 John Doe Marketing 1986-08-31 2006-04-01 002 Jane Doe Sales 1975-01-17 2000-06-27 003 Mark Vaughn Production 1993-05-09 2017-03-...
A stored proc can't output to a file. A stored proc can be executed via the sqlcmd utility which can output to a flat file. This method is clunky on it's own, output to fixed width columns with no delimiter makes it a tad more fiddly, but it's do-able. The account that runs the sqlcmd needs to have the correct permissi...
0
4
851
2022-12-30T13:29:22.360
database_errors
dba.stackexchange.com
803,846
DNS inside PHP-FPM chroot jail on OpenBSD 6.0 running nginx 1.10.1, PHP 7.0.8, MariaDB 10.0.25 and MediaWiki 1.27.1
I'm running nginx 1.10.1 on OpenBSD 6.0 with the packages php-7.0.8p0, php-curl-7.0.8p0, php-fastcgi-7.0.8p0, php-gd-7.0.8p0, php-mcrypt-7.0.8p0, php-mysqli-7.0.8p0, mariadb-client-10.0.25v1 and mariadb-server-10.0.25p0v1. I have several MediaWiki 1.27.1 installations, one pool for images and several language wikis acc...
You seem to be missing required files / libraries for name resolution to work. The minimum you need is [CODE] . If adding this file does not help, you need to find out which libraries are missing from the chroot jail by using the [CODE] utility.
0
1
1,645
2016-09-18T16:50:13.713
database_errors
serverfault.com
145,437
Why use an interface when the class can directly implement the functions?
Possible Duplicate: Why are interfaces useful? Like most faculty, my java faculty introduced interface without explaining or even mentioning its practical use. Now I imagine interfaces have a very specific use, but can't seem to find the answer. My question is: a class can directly implement the functions in an interfa...
Remember, Java is finicky about type. Let's extend your example a bit and rename the class to [CODE] . [CODE] Note that here we have a variety of classes, organised in some hierarchy. Not all of them can jump, and jump-ability is not universally applicable to any category--each parent class ( [CODE] , [CODE] , [CODE] ,...
45
19
105,291
2012-04-21T10:17:34.667
data_quality
softwareengineering.stackexchange.com
849,714
IAM role switching on an EC2 host without using "source_profile"
I have an EC2 Ubuntu host, where I have a single user account responsible for running different tasks at different times. Each task requires particular permissions represented by a corresponding IAM role (I call them "profile roles"). The idea is to grant this user a permission to assume these roles, when needed. For n...
I have been trying to solve the same issue. The closest thing I've been able to find is this gist: https://gist.github.com/gene1wood/34b02fa3091e184e1997 It uses the [CODE] command to get a temporary set of credentials (expires in 60 minutes by default). I supposed you could use this script to get temporary credentials...
1
1
2,787
2017-05-12T11:22:49.853
pipeline_ops
serverfault.com
784,967
How to let chef listen on multiple IPs
I'm currently playing with chef to evaluate whether or not such a configuration tool might help us in our *nix-based environment. For the last few days I'm struggling with one problem I can't find a solution for. Basically, I have 2 private network ranges 192.168.1.0/24 and 192.168.2.0/24. There is a Server (Ubuntu 14....
No answers after 2 weeks so I expect, there is no "simple" way of achieving the goal. I want to share my ideas of how my "workaround" looks like. Maybe it'll help those facing a similar problem. Subnet A: 192.168.1.0/24 Subnet B: 192.168.2.0/24 Subnet C: 192.168.3.0/24 I added a new, separate subnet (C) which is kinda ...
4
0
152
2016-06-20T08:05:25.317
pipeline_ops
serverfault.com
25,739
Why does PostgreSQL aggregate result in the Index or Seq scan outputting all columns of the table?
Doing a query like this: [CODE] results in a query plan like this: [CODE] The result is correct, but ideally, for performance reasons I would like to have weight omitted in the output of index/seq scan - what am I doing wrong? This is the output of EXPLAIN ANALYZE VERBOSE: [CODE] 1. EDIT I run the following queries bas...
"Seq scans" means full table scan. It's always going to read all of the columns on your table. It's a full table scan. PostgreSQL uses row-based storage, so it can't just read one column at a time. The reason your query takes so long is that you're reading 7.2 million rows in the table and aggregating them. Apparently,...
3
3
627
2012-10-10T12:10:15.950
database_errors
dba.stackexchange.com
1,040,148
Process to migrate DNS and DHCP from on-premise, Windows domain controller
Our organization has an on-premise, Windows, domain controller that we'd like eliminate in favor of a local DHCP/DNS server on either our Unify switch (first choice) or FortiGate VPN appliance (second choice). As we've moved most of our infrastructure to Azure, there is little need for an on-premise, Windows domain con...
When migrating DHCP I like to gradually shorten the lease time until I get all devices renewing their lease daily. Then on Friday night I turn off the old DHCP server and turn on the new one. Monday morning they should all be using the new DHCP server so I gradually turn the lease time back up. Options in DHCP should b...
1
1
1,370
2020-10-26T21:22:16.553
infrastructure
serverfault.com
915,763
Reverse proxy to localhost:xxxx only work for http and not for https
I have the following configuration that works for http: [CODE] I I try to do it with https and access to https://subdomain.domain.tech I have infinite loading with not error on nginx. Https config: [CODE] I also tried to remove the http part and redirect to https if I enter an http url: [CODE] I've also verified that t...
Obviously was a stupid thing. As I was using Amazon AWS EC2 I forgot to open the port in the Amazon firewall. After allowing traffic on port 443 everything works fine ;)
1
0
3,575
2018-06-08T10:56:38.900
infrastructure
serverfault.com
721,700
MySQL proxy or Master-Master replication?
I currently have a MySQL database hosted on a remote server (Server A). This database have to stay there because this remote server is very secure. Our online website use this database to display information. The website can also insert news fields. Our local server (Server B) is connected by VPN to server A. And no mo...
If you only care about access and no redundancy and/or performance benefits of replication, go with proxy. It's simpler setup - easier to manage.
0
0
643
2015-09-11T07:40:10.793
database_errors
serverfault.com
670,446
VPS can ping host by IP but not by name
My Debian VPS [CODE] but there's one host I can't ping by name. Ping by name failed but successful with IP However on my home PC i can ping that host by name and IP. I flushed the DNS on my home PC to make sure I don't use cached record. What is the problem here? Thanks in advance. Update with [CODE] output:
Easy: Because you didn't define an [CODE] record for it. A [CODE] shows us your nameservers, the glue records, and the output from a nameserver responsible for [CODE] : [CODE] To reinforce the point: [CODE] As for why that works on your home PC after a cache purge, it suggests you've defined this record on your home ne...
0
3
1,222
2015-02-21T20:54:10.560
infrastructure
serverfault.com
357,361
Which object should have the responsibility of updating the state of another object?
Let's say I have an entity class [CODE] with many related entities [CODE] . These items are processed in a [CODE] class that encapsulates the behavior. This class has several control lists and variable, for example, a [CODE] list. Every time an item is done processing, it is added to that list: [CODE] But now let's say...
In the object oriented design an object should be responsible for and manage its own state. So the OO approach would be that each [CODE] has a [CODE] method that knows how to process that item. Your [CODE] could become an [CODE] the goal here is to hide managing the enumeration from calling code, and then [CODE] would ...
1
1
172
2017-09-14T10:05:23.217
api_errors
softwareengineering.stackexchange.com
109,362
Is it a Best Industry practice to restart web servers periodically?
We have a web application (developed by a third party) that runs on Tomcat. We have been getting very bad performance from the application. The application developer is claiming that it is an Industry Best Practice to restart web servers every night, to free up all memory usage and start over. From the customer perspec...
This is certainly not a best practice. While it is good to restart your servers periodically just to make sure that everything comes up correctly, needing to restart nightly points to a very serious memory leak in the application.
31
32
17,924
2010-02-03T23:26:36.517
infrastructure
serverfault.com
634,000
yum downloadonly does not get all rpms needed for network free upgrade
I need a method to install all the rpms and their dependencies that this client needs to get a php app running. The client does not want to connect their fedora server to the internet. I tried doing yum install --downloadonly and then installing these rpms. And thought it downloaded all the needed dependencies. However...
If your client doesn't want to give their Fedora server internet access to download updates, the server is most likely completely unpatched. Downloading RPM's using a server that is internet connected may result in downloading RPM packages have been updated since the original Fedora release and that are dependent on al...
0
0
381
2014-10-06T22:51:29.973
infrastructure
serverfault.com
717,247
Slow file io performance after large network copy on Win7
In a step of our build process we run a tool that generates about 125,000 files. When generation is complete we copy them up to a network share so other systems can copy them down to process further. We see a slow down (about -300%) in performance if we have to perform the full copy of files from the network. If we alr...
What is the other end running? (Windows, Linux, specific NAS OS, ...) Are both ends using SMBv2 for files transfer? What is the performance on the destination server? If nothing works, you can always try to zip the files into a single file in the origin system, transfer that file and uncompress on destination...
1
0
378
2015-08-27T13:58:18.950
api_errors
serverfault.com
172,552
How to use an integer pivot in SQL Server?
I want to get multiples rows using a pivot: [CODE] I did it: [CODE] And the output always is NULL: [CODE] What did I do wrong?
First I'd suggest to verify that you source query returns expected data: [CODE] I've set up a single test and it should works. (dbfiddle here ) Second, you can build @col variable dynamically by using [CODE] values returned by your main query, avoiding to build it using variables (@one, @two, ...) [CODE]
2
2
1,269
2017-05-02T20:11:27.250
database_errors
dba.stackexchange.com
263,104
Postfix configuration on an Ubuntu Server LAMP cluster
I currently have a Postfix/Dovecot installation on a web server running Ubuntu Server, and have virtual alias rules that push emails that would be delivered locally into Dovecot. I have a reverse DNS/PTR record that matches 'myhostname', and everything works as expected. I pick up emails generated by Logcheck and Tripw...
You need to configure postfix on each of additional servers as Null Client
0
0
690
2011-04-25T13:43:06.293
infrastructure
serverfault.com
337,782
Slow query when using OR clause
I have 4 tables and it takes quite a long time to query with OR clause (AND clause works fine). News articles Rows: ~7000 Schema: [CODE] Indexes: [CODE] M2M User to News Rows: ~200 Schema: [CODE] Indexes: [CODE] M2M News to Tags Rows: ~15000 Schema: [CODE] Indexes: [CODE] Tags Rows: ~800 Schema: [CODE] Indexes: [CODE] ...
Many issues. Hard to blame a single one. There is a trigram GIN index on [CODE] , but your query cannot use it, because [CODE] is hidden behind a non-sargable expression. The table has only 7000 rows, and though the table definition suggests wide rows, falling back to seq scan still doesn't cost much, as indicated by t...
0
1
70
2024-03-17T16:48:06.303
database_errors
dba.stackexchange.com
1,052,289
Cannot Connect to Surry to get Php8
My system is Debian Buster: [CODE] I have run the following commands attempting to install Php 8.0 [CODE] [CODE] then spits out the following error, which leads to php8.0 not being an existing package: [CODE] I know this is not a networking issue because I can ping 'google.com' and 8.8.8.8 along with downloading packag...
You have a typo in the first command and the last command (nothing will be installed): [CODE] and [CODE] The [CODE] should be after [CODE] . To install the required package, use: [CODE] next: [CODE]
3
1
1,416
2021-02-03T16:22:55.213
infrastructure
serverfault.com
457,145
Network errors. What is at fault here?
I'm going to start by admitting I don't really know much about networking beyond "Ethernet plug goes here, switch connects to other switch(es) here, switch connects to internet". Most of my experience with switches has been with their default configuration and we just leave each other alone. In our datacenter, we have ...
You can manually configure the speed / duplex on the server computers and the switch ports, but it's not the preferred solution. Auto-negotiation is part of the gigabit Ethernet standard and all gigabit Ethernet chipsets should support it. Assuming you're using servers that all have gigabit Ethernet interfaces it sound...
1
2
176
2012-12-11T18:30:24.600
infrastructure
serverfault.com
145,111
Configuring OS X L2TP VPN to use Certificate for IPSEC layer instead of Pre Shared Key
I'm trying to setup a L2TP VPN on an OS X Snow Leopard Server setup, and have had success using a pre-shared key, however I would rather not rely on a simple string, and use a certificate instead. Setting this up on the server side is seemingly easy, you simply select a certificate you have generated from the list, and...
"I have exported the certificate into a P12 file, and then transferred to the client, and imported into the login keychain " Try putting it in the System keychain. Let me know if that doesn't work.
4
1
3,336
2010-05-25T14:33:17.933
api_errors
serverfault.com
434,776
Hacked CentOS 5 server - possible rootkit installed?
Possible Duplicate: How do I know if my Linux server has been hacked? My server's been hacked EMERGENCY I am running CentOS 5.3 and here is the result of "chkrootkit": [CODE] I don't understand what the warnings mean. Is the server infected or in danger? Edit: Let me add that I first got strange message on the command ...
It's a CentOS system. I typically repair these rootkits, but the chances you'll detect/get everything, having not done this before, is slim... You could start with an RPM verification... Run [CODE] Then examine the output in [CODE] . That would allow you to check to see which binaries and config files to not match the ...
0
3
2,875
2012-10-04T11:09:49.717
data_quality
serverfault.com
355,753
What are the drawbacks of modeling (unit) test fixtures in JSON instead of using ObjectFactories?
When writing java tests for an application, be they unit tests or testing a broader scope, the java community tends to model fixtures in terms of object factories that produce fixtures of a defined state. eg: [CODE] Whereas, coming from a BDD or Agile methodologies perspective, it would seem more sensible to encode fix...
I've written tests that were JSON supported before. Here were the drawbacks: JSON is not compiler-checked. This means if you add a field to your models, you won't know your test JSON is broken until you try to run the tests and they all fail. JSON is more difficult to produce than code. In my case our models were quite...
1
5
1,488
2017-08-16T08:13:17.450
api_errors
softwareengineering.stackexchange.com
645,805
504 Gateway timeout / 502 Bad gateway after installing php curl - server nginx
I have (well had) a working server with nginx on board. A server (dedicated) was only used to host a drupal site. Recently we decided to host also a magento store on it and started preparation. Since magento and nginx did not work together out of the box we had to upgrade nginx to most recent version. Everything seemed...
You can try with these; but I'm not sure if those will help with bunch of [CODE] 's I've used following to help me with bunch of connections in [CODE] state [CODE] Check if there is any benefit when you switch [CODE] to use unix socket instead e.g. [CODE] For this you will need to update php config to listen on unix so...
1
0
23,578
2014-11-20T12:50:43.073
infrastructure
serverfault.com
54,159
Library to fake intermittent failures according to tester-defined policy?
I'm looking for a library that I can use to help mock a program component that works only intermittently - usually, it works fine, but sometimes it fails. For example, suppose I need to read data from a file, and my program has to avoid crashing or hanging when a read fails due to a disk head crash. I'd like to model t...
You're in danger of introducing test code into production code I don't know of any libraries that provide this exact facility, probably because it is something that operates at a higher level of abstraction than they provide. That is, you'd normally use, say, jMockit to provide these responses during the test phase. Yo...
2
2
155
2011-03-03T05:52:32.047
api_errors
softwareengineering.stackexchange.com
584,987
One IP for whole LAN, provide access to local server outside the LAN
I have a LAN with multiple PCs and some servers. I would like to provide access to one of the servers from outside the LAN. The problem for me is I have one IP address for the whole LAN. The server is running under Apache. I set a virtual host for my IP address with some port added. How allow to use the IP with this po...
You want network address translation (NAT) for your LAN: source NAT for your clients, destination NAT for your servers. Your LAN firewall probably provides this capability. Then, you need to configure your firewall to forward ports 80 and/or 443 from the external IP address to your server's LAN IP address.
2
5
286
2014-03-27T18:52:39.853
infrastructure
serverfault.com
89,574
Oracle 12c Express Enterprise Manager on Centos 6.5 is not reachable
I have Centos 6.5, and installed Oracle 12c. As dbca utility says after configuring new db, EM Express should be available on https://hostname:5500/em In fact, it is not. Neither on localhost nor by ip. I also did [CODE] because [CODE] showed "0", and set 5500 was impossible due to the error - 5500 seemed busy. After t...
0> "and set 5500 was impossible due to the error - 5500 seemed busy" This means that the port 5500 is already "in use". Well, I bet it is not in use but Oracle thinks that. There are a lot of ports reserved in [CODE] . Open the file and change the following lines: [CODE] Change them into: [CODE] Retry to set the port w...
1
2
9,188
2015-01-18T07:12:09.950
database_errors
dba.stackexchange.com
17,721
How do you overcome results oriented thinking from a client?
I am working with a client on a special project that I am going to obfuscate in this question. Basically, I'm trying to overcome some short-term, results-oriented thinking from my client. Let's say you have a model to forecast the performance of a racehorse. Your model tells your client to sell racehorse X because the ...
The scenario you described with one horse is basically anecdotal evidence. To objectively evaluate what you're doing, you need to agree with the client to make this an experiment. I understand you don't trust my horse predictions and that's totally understandable. It is human nature to worry about the ones that got awa...
3
4
99
2017-03-20T22:13:14.097
data_quality
datascience.stackexchange.com
263,045
Use SSH to execute remote export command and stay logged in
I have a simple problem of needing to execute an export command over ssh, and then stay logged in, but I'm having some trouble. Though I am interested in a solution to this problem for many reasons, the main one is so I can custom set my terminal tabs to a name of my choosing. Here's the command I have so far: [CODE] T...
Perhaps you should look at using [CODE] or the [CODE] option in [CODE] instead. See the [CODE] man page for details.
2
4
3,749
2011-04-25T06:10:24.863
infrastructure
serverfault.com
833,776
Access EC2 Instance Without Public IP
I have two EC2 instances, one with a public IPv4 Public IP and one without one. I have the passwords for both and can successfully log into one (with the IPv4 Public IP), but am unable to access the other. I am assuming that the one without the IPv4 Public IP needs a public IP, but it looks like I won't be able to crea...
This happens because it doesn't have an elastic IP associated so it can only be accessed from inside the VPC using the internal IP. I can think of three options to solve this. Option 1: Assign an Elastic IP to the instance. Go into the EC2 dashboard, then in the NETWORK & SECURITY menu go to Elastic IPs. Click on Alloc...
4
8
52,670
2017-02-20T20:16:13.913
infrastructure
serverfault.com
445,880
Which comes first: CD/Trunk-based development or microservices?
My company* wants to move from using long-running feature branching (~up to a few weeks) to continuous integration with trunk-based development, and to break up our monolith into microservices. We're unsure which to do first to best achieve both: 1) moving to trunk-based continuous delivery, albeit dealing with a sever...
Consensus is you want CI/CD first and anyway, independent of your application's language, design or architecture. Whether you deliver trunk-based or use feature branching is also independent of CI/CD. CI/CD is just automating your build steps, testing and packaging which is convenient to have for any software product u...
9
27
3,745
2023-06-04T03:46:57.607
pipeline_ops
softwareengineering.stackexchange.com
17,945
performance issues when concurrent requests
We are using SQL Server 2008 R2 on a Windows Server 2008 server. We have some main functions which uses some Stored Procedures which has a lot of sub-queries inside of it. I'll take one SP as an example; when running this SP sequentially it takes about 500ms, and we are ok with it (kinda), it has mainly select queries,...
Looking at the query plans, the query optimizer is pretty much begging you to add useful indexes to the tables. Until the query plans are robust, forget about looking at locks and I/O. To make solid suggestions for indexes, you pretty much need to give us a picture of the schema, all the queries, and all existing index...
2
1
4,312
2012-05-16T10:29:31.540
api_errors
dba.stackexchange.com
338,175
What is the root cause of 'out of shared memory ' issue?
I'm having 'out of shared memory' issue in PostgreSQL 13.3 on x86_64-pc-linux-gnu (The database has 41G data), first, it suggested me to increase max_locks_per_transaction. After increasing max_locks_per_transaction to 1024, I still get 'out of shared memory', but now it suggests: [CODE] It seems very confusing to me. ...
These error messages indicate that the hash table to store locks has been exhausted. This table is located in the shared memory segment and has a constant size, determined when the database starts as: [CODE] Not related to [CODE] at all. This and many other structures in shared memory structures are added in addition t...
0
1
81
2024-03-29T12:19:16.917
database_errors
dba.stackexchange.com
141,850
Compound shard key with _id field
I have documents like: [CODE] If we query documents by "foo" the most and "bar" the second, does it make sense to create a compound shard key like [CODE] because "foo" and "bar" might be missing too? When I tried to run this command [CODE] it gave me a syntax error.
You'll need to rethink your shard key approach. As at MongoDB 3.2: All fields in a compound shard key must be present in all documents and will be immutable (i.e. the shard key for an existing document cannot be changed). A hashed shard key is based on a single field, and does not support range queries. It generally ma...
1
2
4,849
2016-06-21T17:16:13.790
warehouse_errors
dba.stackexchange.com
681,555
How to retrieve list of unique file name parts?
A folder with migration scripts has a mix of SQL and PHP files named like these: [CODE] I would like to get a list of all unique date/times parts of the files. The example folder should result in: [CODE] Note: The up part might or might not be included. I have come up with this code: [CODE] Unfortunately, it includes t...
Does this meet your needs? [CODE]
0
2
2,466
2015-04-09T13:40:19.140
infrastructure
serverfault.com
7,580
MySQL "server has gone away" using SQLyog
I'm trying to copy a database from a server to my local machine, I've installed Wamp 2.2, mysql 5.5.16, but during copying db I m getting "mysql server has gone" 2006, I've tried to fix it by changing max_allowed_packet to 32M and 64M but still no luck, I've also changed the wait time. [CODE] my configuration in my.ini...
The following is a repost of an answer I posted with similar circumstances back on Sep 1, 2011 One of the silent killers of MySQL Connections is the MySQL Packet. In fact, even the I/O Thread of MySQL Replication can be victimized by this. According to the MySQL Documentation You can also get these errors if you send a...
3
1
10,225
2011-11-03T11:30:54.430
database_errors
dba.stackexchange.com
1,109,127
Is there a kind of a/b test for checking CPU Usage?
Our team try to find a way to compare CPU and Memory usage between the current version and the new version. I found some answers. (1) Using load balancer By using load balancer, we can divide our servers into two group. And by deploying different versions to them, we can test and measure them. ref. https://cloud.google...
A/B testing from that link mentions includes business decisions on a statistically significant number of user interactions. For example, for a news publication, when presented headline A vs B, which one gets more clicks. Unlikely you have a large number of backend instances where you can randomly sample their utilizati...
1
1
114
2022-08-26T01:56:48.343
pipeline_ops
serverfault.com
612,869
kinit: Cannot contact any KDC for realm 'UBUNTU' while getting initial credentials
I am installing Kerberos5-1.12.1 on ubuntu machine with these instructions . Whenever i am trying to do : [CODE] I am facing an error: [CODE] Below are my krb5.conf and kdc.conf files: /etc/krb5.conf: [CODE] /usr/local/var/krb5kdc/kdc.conf: [CODE] Is there anything wrong with my configuration files?? If not could anyon...
[CODE] keep a register
6
2
119,371
2014-07-16T05:29:59.270
infrastructure
serverfault.com
318,127
Cassandra-4-Update: Multiple Schema Versions
after upgrading our first node, it has a different schema version (according to node tool describe cluster). This caused Spark Jobs to hang, because of reoccurring "schema agreement not reached" by metadata.SchemaAgreementChecker. Is this different schema version by purpose? Will the problem being gone after updating a...
So issues like this during the upgrade are common. This is because nodes on different versions cannot stream data to each other, and that includes schema. Continue with the upgrade, and run a [CODE] to check the schema version once all of the nodes have been upgraded. If there is still a schema disagreement once you're...
1
1
640
2022-10-12T12:41:00.443
spark_errors
dba.stackexchange.com
808,977
MariaDB refuses remote connections
I've gone through a lot of tutorials and questions and I still can't get it to work. I've been to: MariaDB official docs for remote access MySQL: Allow both remote AND local connections Mysql through ssh often can't connect or timeout I installed MariaDB on Ubuntu 16.04. Then set up two users, one of which is intended ...
The solution to the error in my case was that there was no [CODE] section at all in the [CODE] config files. Adding this solved the issue: [CODE] Not sure why it was not added by default. Note that the reason to use [CODE] over [CODE] is that [CODE] works for IPv6 too ( mentioned in mySQL manual , but not mariaDB manua...
9
10
49,207
2016-10-14T04:37:38.347
database_errors
serverfault.com
937,228
How to get reverse tunnel IP
I created reverse tunnel from Server to Endpoint using command: [CODE] Tunnel was created on Endpoint side and it leads from Server port 4000 to Endpoint port 81. There is a service listening on this port but this is not important. I did it so because Endpoint is behind NAT and I needed to get access to it from outside...
Taking the process id of ssh from the netstat, [CODE] will show IP of other end of the connection. As ssh can be hopped, this might not be the final location.
1
0
387
2018-10-25T17:23:36.257
infrastructure
serverfault.com
780,227
AVR Boost Active (APCPBEAgen) Warnings Windows Server 2012 event log
I have a Windows Server 2012 running. In the event log I see constantly a warning from AVR Boost Active (APCPBEAgen). It appears approx. every 6 hours. Question Does anybody know what 'AVR Boost Active' is and how I can get rid of this warning by fixing a this potential issue?
It looks like your machine has APC drivers/software installed and is connected to an APC UPS. AVR stands for Automatic Voltage Regulation, where the UPS basically either reduces (AVR Trim) or increases (AVR Boost) the input voltage depending on the input coming from the power source (outlet). It looks like the UPS is n...
0
1
5,137
2016-06-01T09:43:01.377
infrastructure
serverfault.com
1,108,845
Windows-10 shared folder permission
We have a small office LAN with a few Windows 10 PCs (without server). One PC has a shared folder which various users create files for sharing. For various reasons some created files are sometimes deleted or moved unexpectedly. We want to limit the right to delete or move any file to the file creator only and not other...
I have got a close solution here : https://docs.microsoft.com/en-us/answers/questions/978262/windows-10-shared-folder-permission.html
1
0
491
2022-08-23T05:32:17.830
infrastructure
serverfault.com
801,292
How to automatically restart Opensolaris/OmniOS service/daemon that logs notices, but not critical errors to syslog?
The following problem can be viewed as a CIFS/AD related problem (specific view) or as a question about service restarts, error handling and log parsing (general view). I will present both areas here, but would be happy to receive answers on any of them (just skip the parts you are not interested in). Specific situatio...
Thanks for detailing this issue so well in the question. I've recently hit it too, with the caveat that the MS AD controller is a VM running on the (post-)OpenSolaris host, and as Win/AD support dwindles at that site, this is the only surviving replica. So when it is early in boot (and idmap is part of dependency tree ...
3
1
814
2016-09-06T09:17:39.400
infrastructure
serverfault.com
434,117
Websocket client reconnection best practices
I wasn't sure whether to post this on StackOverflow or here. Let me know if you think it belongs on StackOverflow. I have an application that will run semi-persistently, i.e. all the time. The application interacts with a financial service through a websocket connection (we are the client-side). We keep the connection ...
Network connections are not reliable, so it's important to consider how you will handle interruptions and gracefully recover. Backoff strategy For reconnecting, exponential backoff is typically an optimal strategy. This is because what happens when your servers are down for some reason and are bombarded with requests t...
2
2
5,897
2021-12-06T19:45:06.533
api_errors
softwareengineering.stackexchange.com
412,504
CentOS 6 vps configuration
I have a vps server with CentOS 6, I want to know how can I configure it and prepare it to add my domain and add my files. the problem is that I'm a beginner to Linux, and I want the right way to understand. Thanks in advance,
It's easy to setup using the following guide: LAMP Server on CentOS 6
0
0
433
2012-07-30T13:14:18.563
infrastructure
serverfault.com
1,143,357
Excepted behavior for overlapping dstdomains entries in Squid 4.1
Per documentation , if using dstdomain and having overlapping entries in the list, Squid should generate a warning message. For example I have this in my [CODE] : [CODE] And [CODE] contains an overlap, like this: [CODE] Will indeed result in a warning message in [CODE] : [CODE] But here's a similar overlap: [CODE] Whic...
Found my answer ; so yes this is expected (but undesirable) behavior:
0
0
72
2023-09-08T19:54:29.683
infrastructure
serverfault.com
245,451
Array containment queries in Postgres
Question on GIN index on array. I have 2 million rows in a work table.And I need to find work that a user can do, based on the skills he has and also the highest priority work. User always will have more skills. Started with RDMS standard way of doing this, but performance of the queries is bad, so in search for other ...
Indexing containment in this direction is inherently troublesome. If you do [CODE] , it can take the element of const_array which is rarest in "column", and check only the rows which have that rare value to make sure they also have all the rest. But to do [CODE] , it has to check all rows which contain any of the value...
0
2
526
2019-08-15T18:22:54.150
database_errors
dba.stackexchange.com
399,667
using gmail as email relay for sendmail
I used to be able to send emails using a gmail account & sendmail configured using one of the guides on the Internet, for example: http://appgirl.net/blog/configuring-sendmail-to-relay-through-gmail-smtp/ This is a small server and I've recently moved it to a different house. And sendmail has stop working. The only thi...
What are the contents of /etc/resolv.conf in ares ? Does the problem persist when you use 8.8.8.8 and 8.8.4.4 as your DNS servers? Can you [CODE] ? Usually such problems mean that your ISP does not allow you to connect to certain ports at the remote host.
1
3
1,313
2012-06-18T05:41:26.390
infrastructure
serverfault.com
236,196
Flexible authorization design in ASP.NET pages?
I'm developing an ASP.NET webforms application with pages which displays information based on the authorization level of the authenticated user (very typical). I will write a simple example of the issue I'm facing: Let's pose I want to have a page with 4 buttons: 1- "OnlyForAdmins" button. 2- "OnlyForManagersAndAdmins"...
I'd do it this way: A user can hold a number of Roles within your application (including none). These will be retrieved from an external data store. Any control within your application is available to any number of Roles. These might be statically defined or loaded from an external data store. A Control becomes "availa...
0
1
214
2014-04-17T10:10:28.820
api_errors
softwareengineering.stackexchange.com
307,801
Mysql Duplicate entry error during new column addition on production database
I have a MySQL table that has 95929357 records, below is the table schema for the same [CODE] I have two questions to ask Question 1# If it has only 95929357 records, how does the AUTO_INCREMENT increase to 1321597934(Note- entries are inserted by code with default value 0). I also noticed, there is a gap in id(exp- fr...
There are several causes of gaps in [CODE] : [CODE] , [CODE] , [CODE] , IODKU, and others. Please present some of your insert-like statements; I will provide further details. I assume you don't know what happened about 2021-09-19 03:33:07. [CODE] should not have happened. This is worrisome as if there was a crash that ...
0
1
1,320
2022-02-22T07:03:34.497
api_errors
dba.stackexchange.com
289,872
2008 only DCs: is File Replication still necessary/required?
We're attempting a swing migration in our lab that's setup with two DCs: OriginalDC: 2008 R2 DC (single forest, single domain) at 2008 functional level. TempDC: has been promoted to a global catalog DC; running 2008 R2 as well. The swing documentation explicitly states that event ID 13516 must exist for the dcpromo of ...
You need either one or the other, FRS or DRS - whichever one is actively replicating SYSVOL. Which one is in use is the important thing; if your domain was originally created on 2008 or higher (with a 2008 or higher functional level), then it's using DFS by default and FRS can be safely ignored. However, if it was crea...
1
3
187
2011-07-13T12:30:17.780
database_errors
serverfault.com
721,254
Can I add a certificate template type to the "Submit a Certificate Request" page in AD CS Web Enrollment?
In the CA Web Enrollment website, on the "Submit a Certificate Request or Renewal Request" page ( [CODE] ) there is a dropbox under the "Certificate Template:" section with values for various certificate template types. I have a custom template that I would like to issue a cert for; how can I get that particular templa...
Since no one answered and I needed an answer to this one, bucked up and opened a per-incident support ticket with MSFT Support. Per MSFT Support, the Web Enrollment "Certificate Template" dropbox is NOT extensible. It's designed to be a simple way to request/recieve User and Web Server certificates. I have to use [CODE...
1
0
1,856
2015-09-09T17:09:16.527
infrastructure
serverfault.com
313,649
How to interpret this smartctl (smartmon) data
We have a linux server that has been in heavy use for 3 years. We're running a number of virtualized servers on it, some that have not been well behaved, and for a significant time the server's io capacity was exceeded leading to bad iowait. It's got 4 500gb Barracuda sata drives connected to a 3com raid controller. 1 ...
In my experience, Seagates have weird numbers for those two SMART attributes. When diagnosing a Seagate I tend to ignore those and look more closely at other fields like Reallocated Sector Count. Of course, when in doubt replace the drive, but even brand new Seagates will have high numbers for those attributes.
34
14
51,329
2011-09-20T21:28:58.930
airflow_errors
serverfault.com
302,384
When to run Vacuum Full
Reading the PostgreSQL documentation there is an excerpt that mentions that you should run a [CODE] when there are many row lines. What percentage of bloat is considered necessary to perform [CODE] ? Source Still on this question. My rows change frequently, probably affecting my indexes. Because of this constant change...
Some cases where I would do VACUUM FULL: The system is about the run out of disk space and fall over. And that system is dominated by a very bloated table, but without bloated indexes. This should be followed up with some navel gazing about how we get into this mess in the first place. Or, I fixed what was causing the ...
4
2
1,317
2021-11-10T03:25:07.570
database_errors
dba.stackexchange.com
300,451
Database Sizes error; Arithmetic overflow error converting expression to data type int
I am using the below query to pull back database sizes for our SQL instances. This cannot pull data larger than 2TB back because of the maximum number the int data type can pull back. How do I go about altering the query to return the database size, no matter how large the dbs? [CODE]
[CODE] will return an int because the size column is int. Convert the column to a larger type, either with an explict [CODE] or an implicit conversion to avoid the overflow. Below is an example that multiplies size by numeric constant 1.0 so the expression returns a [CODE] , resulting in [CODE] after the [CODE] functio...
0
1
1,579
2021-10-01T12:53:53.860
warehouse_errors
dba.stackexchange.com
125,373
How should I write my if statements?
Possible Duplicate: Make a big deal out of == true? When I was a young padawan in the world of programming, a person I considered a mentor told me that if statements are more aesthetically pleasing if written in the following way: [CODE] or [CODE] I personally found that in the first case it's true, or at least it's ea...
Use whatever is more readable. In our company, it's customary to choose [CODE] but [CODE] In the first case, it's obvious that the method call [CODE] is used as a Boolean condition, so I'll use it as it is. It also reads fluently: if [the] report is open, [then] do something. In the second case, it's not at all obvious...
1
6
617
2011-12-15T13:57:52.860
data_quality
softwareengineering.stackexchange.com
388,320
Pandas based visual data cleaning tool
I am looking to build an web-application which would allow user to upload csv file - see preview of few rows in the file and then apply different cleansing and standardisation rules. For example the user can choose a telephone column and click a standardise button to format the phone numbers in a particular way. He can...
When an inverse command doesn't exist for every command there are two fundamental ways of implementing undo: Reload the previous state Replay all commands but the last over the initial state For the second option to work the commands all need to be side effect free. That is, they should only be changing the state, noth...
4
4
129
2019-03-09T11:16:25.690
api_errors
softwareengineering.stackexchange.com
292,833
Help with MPICH2 installation on Ubuntu Server
I'm trying to install MPICH2 on a ubuntu server installation (7.04 fiesty fawn). This is for a Beowulf cluster. I have so far been unable to install it for two reasons. 1) under the root account: [CODE] yields the following: [CODE] 2) When installing from a tar ball using the following instructions from cd /mirror [COD...
Re: (1) - Are you sure you have the appropriate apt repository configured? (I'm not sure where this lives, but here is a list of the repos for Natty ). Have you done [CODE] to make sure your package lists are up to date? Have you tried [CODE] in case the package was renamed? Re: (2) - See comment above.
0
0
2,011
2011-07-21T20:58:23.833
infrastructure
serverfault.com
1,073,690
Dell Compellent clock skew too great
I received this alert from our Dell Compellent SC200: " Alert created on controller '12345' for object [internal ref: 'Global '] - [ProgressionTime]: Some Data Progression features, such as RAID Rebalance, may not run properly because the controller's clock skew is too great. Configure time settings to resolve. " error...
Select Use NTP Server, and enter the DNS name of your NTP server. Every network should have several of these, use the same configuration as on servers. Read the documentation for whether this can be done online. I assume yes it can, block storage as a protocol does not really care about the time on the management hosts...
0
1
1,501
2021-08-05T22:36:05.427
infrastructure
serverfault.com
446,907
connecting to my dedicated server on the internet
I have a dedicated server with a public. I was having issues getting webdav working so I thought I would try to [CODE] the drive and see if that worked. It did work and I have a mapped drive to my public server's c drive. Should I not do this? Is it secure? I didn't want to be opening up my server inadvertently so I fi...
You didn't provide a lot of details on the configuration of the server or whether or not you're using the Windows Firewall or have another firewall in place but a cursory glance at your question tells me that you've got a serious security issue. If you're able to map a drive from an external computer to a share on the ...
-2
1
62
2012-11-08T22:08:36.077
infrastructure
serverfault.com
215,110
Debain Vs Ubuntu (32 Vs 64bit)
I need to install a new dedicated nginx server. The expected traffic hitting this would be around 400-500 req/second. We have varnish server and apache servers in the background to serve the request and would be using nginx as load balancer primarily (We dont want all traffic to hit varnish directly) One of the initial...
The answer depends on your processor - Is it a 64 bit capable processor? The advantages of 64 bit processor (and hence 64 bit OS) will allow you to access beyond 4 GB of memory. The possible disadvantage is looking at specific libraries 32 bit vs 64 bit for your app. Nginx - varnish - and apache are all mainstream prog...
0
1
400
2010-12-22T00:11:18.790
api_errors
serverfault.com
678,056
WWW subdomain redirects to default site instead of virtual host?
I am hosting multiple websites on an instance of OS X Server 4.0 with an issue. I have a default personal site that is available on the normal domain and the www subdomain. I tried to configure other sites to have that similar result also. However, I am running into a problem. My virtual hosts (other sites) have the ww...
Add [CODE] as a [CODE] to the VirtualHost you want it to use.
1
1
1,151
2015-03-25T04:49:09.333
infrastructure
serverfault.com
300,865
Where is the dynamic memory associated with std::bind?
The problem is that since you can use std:bind in a loop with an arbitrary number of iterations, the storage cannot be inline. It doesn't appear to be on the heap, since it doesn't appear to generate memory leaks. It seems, then, that it must be on the stack - SOME stack. I have an application which could easily do hun...
The return value of std::bind is entirely on the stack. If you just called std::bind and did nothing else with it it would be on the stack and then disappear when it went out of scope. In order to do anything useful with the result of std::bind you must have explicitly or implicitly made a copy of it, probably to some ...
1
5
4,267
2015-10-26T04:08:16.907
api_errors
softwareengineering.stackexchange.com
379,964
Postfix unknown command
I'm running two milters on my current postfix installation. I'm noticing that, from one particular client, they are sending an invalid command consisting of the first 3 letters of their domain name. When postfix sees this, it causes my milters to exit out. How can I proceed past this? I've seen this on the postfix docu...
You could use smtpd_command_filter to exclude these bogus commands: In /etc/postfix/main.cf: [CODE] And in /etc/postfix/bogus_commands: [CODE] You may have to test the regex to fit your needs. There are no SMTP commands that consist of 3 letters :)
1
2
960
2012-04-16T18:13:24.333
infrastructure
serverfault.com
518,329
XFS slow performance on LVM'ed RAID, faster when RAW or non-LVM
I have a weird issue with a server I am setting up. It's for a filesharing-type website, so fast IO and plenty of capacity are the requirements. OS is CentOS 6.4 64-bit The server in question is a HP DL360p, with 18x drive bays populated with 2TB SAS drives in RAID50 There's also a HP StorageWorks SAS expansion bay wit...
What are your application's read/write throughput and IOPS requirements? Storage performance is not always about the array throughput or raw bandwidth. Sequential reads/writes are only a faction of the I/O activity. A more accurate test would be a bonnie++ or iozone run against a mounted filesystem... Or even running y...
4
3
9,974
2013-06-25T11:25:06.740
database_errors
serverfault.com
69,738
sql server 2005 for windows 7
every time i try to install sql server 2005 on windows 7 it tells me error during installation error 1603 installing Microsoft sql server setup support file see log file file for more detailed information fatal error during the installation and setup terminates please advise me to fix this problem
There was an issue where, if you already had .NET 2.0 SP1 installed, the 2005 installer would break. Wow ... This is a dead question. Oh, well.
0
1
1,454
2009-09-28T20:45:09.353
database_errors
serverfault.com
325,849
Defining reusable components while having a specific application in mind
Over the past several months I have learned a lot in software design and practices across several languages and frameworks. To me, the most attractive and useful designs patterns are those that follow an object-oriented approach. Particularly I am drawn to an approach that promotes reusability, modulariy, understanding...
I might get down-voted for telling you not to use OOP, but: don't use OOP. I will try to explain why without running out of space :) Particularly I am drawn to an approach that promotes reusability, modularity, understanding (reusing understood code), and more. Of course you are! That's what all software engineers stri...
3
4
240
2016-07-26T20:08:07.773
api_errors
softwareengineering.stackexchange.com
1,033,632
Apache virtual hosts not working as expected - my website is redirected to the default virtual host
I'm configuring a new server (droplet) with Ubuntu 18.04.1 LTS. I installed apache and configured virtual hosts. The server name is www.speedysoftware.com and this is the value of [CODE] . The problem is, I'm trying to redirect http://www.speedysoftware.com/ to a specific virtual host, but it's redirected to the defaul...
I wrote to DigitalOcean Support (they have a great support, by the way) and they wrote me: The server is Apache, so you have access to the apachectl command which supports the -S flag to get the parsed settings dumped which includes the vhosts and configs where they are established. I ran [CODE] from the command line a...
0
0
4,440
2020-09-12T11:04:41.270
infrastructure
serverfault.com
733,116
BIND9 logging gets too verbose (too chatty) for my taste
I've configured logging in my BIND9 server and I have 2 log files: 1) debug.log; 2) query.log. The second one is Okay. No complaints so far. But the first one is too verbose (too chatty) for me. Like 90% of what it says there I don't even understand. You get like 100's of thousands of text lines within couple of hours ...
As a point of reference, if you do not specify any custom logging settings through [CODE] the defaults are: [CODE] And the predefined channels are: [CODE] Ie, if you do not touch logging settings whatsoever in your configuration file it will log at severity [CODE] to syslog. If you were to turn on debug logging ( [CODE...
0
2
3,487
2015-11-01T15:25:04.150
infrastructure
serverfault.com
866,900
Outlook 2013 autodiscover failing on windows 10
I have recently got a new computer with windows 10 and I having a problem with autodiscover with Windows 10, outlook 2013, and Exchange 2010. Basically, my scheduling assistant, out of office, and autodiscover are not working. Scheduling Assistant shows everyone greyed out, Out of office is unable to contact the server...
Removing MS UPDATE KB3161949 solved my issues
0
0
2,117
2017-08-04T14:35:20.920
api_errors
serverfault.com
306,415
Should I partition a database file for performance improvement if a file sits on RAID?
I read a lot about performance improvement if instead of a single large .mdf file you partition it by multiple (.ndf) files. But I also found from documentation that the same improvement can be accomplished if a file created on RAID. So would that make sense for me to partition .mdf file into multiple files or should I...
It is a good practice to have multiple files in each filegroup for a VLDB. Having more than one file can sometimes improve performance a little bit, but that's not the main reason. When you reconfigure your storage, or restore or move the database to a different server, you have more options if you have, say 6 1TB file...
1
4
275
2022-01-22T00:01:19.340
warehouse_errors
dba.stackexchange.com
789,825
Is someone is trying to access our IP-PBX
We run asterisk on a freePBX distro. The system is only up for one day. When I logged in to asterisk from the terminal the system was generating a lot of unexpected messages just like the following. [CODE] We have not set up any of these extensions so I do not understand how they are generating the request. At first I ...
Since I've been answering the question in the comments I figured it was more appropriate to put it here: It's not unusual for your PBX (or any service) to get probed by bots/hackers/whatever out there when you are internet facing... This happens with web servers, SSH, SMTP, etc... all the time. As long as you are open ...
2
5
941
2016-07-14T14:03:36.617
infrastructure
serverfault.com
705,499
7Zip extraction on linux is so slow
Extracting 7zip with many small files on linux xfs, extraction speed is so slow. My Test System Environment. System1 : 2vCore/4GB CentOS 6.5 64bit guest on XenServer. System2 : 2vCore/4GB Windows 2012 guest on XenServer. Large small files Creation Script [CODE] ok. I got 4KB files of 100,000 in dmp directory. and then ...
I had the same issue, and the fix was to upgrade 7z. On Ubuntu 20.04 LTS, the [CODE] you get from [CODE] is from 2016. Instead, go download the latest version from the official website . For the same archive with 60k small files on the same server, I went from 8 minutes to 6 seconds(!).
5
4
3,043
2015-07-14T01:17:05.927
infrastructure
serverfault.com
46,931
pgsql slow query on table of 500 million rows
I have a table that keeps measurements of latencies between nodes running MPI tasks in a large cluster. The table looks like this: [CODE] Now after a large experiment I collected over 500 million rows of data. I find querying these data painfully slow, below is an example of a SELECT COUNT(*) [CODE] I am running both t...
For postgres, unlike other RDBMS, [CODE] from an unindexed table means a full scan of the table. So the first run is purely IO bound. If you want this query - consider adding some indexes to the table. (Without knowing the query I can not tell, what indexes you may need). Another option - configure postgres to better u...
0
3
11,538
2013-07-23T20:31:12.843
database_errors
dba.stackexchange.com
26,327
Recompile package from source for an other server
I have a few servers (10) running Debian Lenny on x86. I need to compile some packages from source. I know it is not a good practise to have compilation tool on a production server (for security). I want to know, if I can compile those packages on a single computer (x86) and just install them on the servers ? Is there ...
You have ten Lenny servers all running the x86 arch. It's completely possible to build a single package that installs to any computer running a specific arch. It's good practice to build Debian packages with [CODE] , to avoid any "works on the dev box" problems. It's relatively simple to rebuild a package. [CODE] has a...
3
5
240
2009-06-16T04:28:58.107
infrastructure
serverfault.com
675,899
Is it possible to use parameters for nginx configuration files?
I am working on a web application that will be deployed in a few environments (production, staging, dev, demo). In all of these environments I want to use nginx as a proxy. This means that nginx should be configured in pretty much the same way everywhere but with some differences such as server name. I would like to be...
Don't try to solve this at nginx's level : go for some automation tool like puppet, chef, ansible etc.
0
0
423
2015-03-16T18:31:23.463
infrastructure
serverfault.com
319,352
The target principal name is incorrect. Cannot generate SSPI context. (Microsoft SQL Server)
we have an issue connecting remotely to SQL Server via SSMS with Azure AD users. Any attempt to log in to a SQL Server instance in AWS with Windows Authentication throws an SSPI error. We've tried the Kerberos Configuration Manager to diagnose the root cause but that throws an error every time. The only solutions we've...
For those of you that run across this issue, the fix is to download the Kerberos configuration manager and run the autofix. You can find that tool at the following. https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/using-kerberosmngr-sqlserver
2
1
11,861
2022-11-08T19:01:10.410
api_errors
dba.stackexchange.com
135,444
Best method of communication between your app and your website? PHP, Web service, etc
I am creating an application which I would like to have communicate with my website. The app will have to get data for a particular app user from the website's database. I am unclear as to the best way to do this. I have seen one way of doing this for example is creating a login page on the app which then hits a login....
I would recommend building a REST API for your application and your website. Building a web service is more work but I think it's a lot cleaner. If you do it this way, neither your website nor your application has to worry about how to connect to and query the database since all of those details will be abstracted by t...
8
6
25,174
2012-02-16T20:14:20.703
data_quality
softwareengineering.stackexchange.com
224,692
Help me to merge two queries
I have two queries in sql. First query is: [CODE] The result is: [CODE] Second query is: [CODE] The result is: [CODE] What I need looks something like this: [CODE] And relationship model looks like this: The task itself was to show for each hotel number of rooms in hotel and number of distinct clients that have been in...
By Joining the two: [CODE]
0
1
137
2018-12-11T21:29:41.910
warehouse_errors
dba.stackexchange.com
944,009
Website not working if www is in URL
I am forcing my webserver to rewrite a none www URL to www, e.g. [CODE] to [CODE] , via [CODE] . [CODE] But my site does not load with www and prints ERR_TOO_MANY_REDIRECTS . If I enter a URL like [CODE] then I get redirected to [CODE] DNS Zone Records What might be the cause?
I was able to solve the problem. It was a magento setting. There is a setting in [CODE] . Set that to ' No '.
1
3
563
2018-12-12T11:22:10.180
infrastructure
serverfault.com
313,054
Best performance to get distinct values for a given key from a big table
Given a table like so: [CODE] with indexes on [CODE] and [CODE] (but not a combined index) what are my options for getting a list of distinct values by key, without also destroying write performance? The obvious [CODE] is not cutting it performance-wise (currently the table is at ~20M rows, the actual table in producti...
Assuming many entries for the same [CODE] , an emulated index skip scan should be your best option. [CODE] See: SELECT DISTINCT is slower than expected on my table in PostgreSQL You need the multicolumn index on [CODE] for best performance. You might replace the one on just [CODE] with it. See: Is a composite index als...
2
4
1,797
2022-06-07T14:06:42.543
warehouse_errors
dba.stackexchange.com
145,947
Client/Server App – Best online data storage/administration/communication library?
I work on some iphone/android apps and the “data stored on a centralized server” pattern seem fairly common. So far, I have done one app like this, doing everything myself at a low level without using many libraries: MySQL database PHP/HTML web forms allowing the app manager to enter/update content with some validation...
Django's admin interface for the CRUD admin website, an RPC-like mechanism for communicating with a server-side API from the clients, probably there are decent libraries to export Django methods over XMLRPC (something like http://pypi.python.org/pypi/django-xmlrpc )
0
0
1,811
2012-04-25T12:56:32.643
database_errors
softwareengineering.stackexchange.com
338,925
SQL reverse filtering system
Sorry for the non-descriptive title, I don't know how to explain what I'm trying to achieve succinctly. In most SQL use-cases, we have records in the database that have properties, and we are trying to retrieve records which match some conditions. For example, we may have for instance a table of products, where each pr...
My suggestion, (if you have to do it in sql) would be to split the conditions table by field. Since the field is tightly coupled to the columns on the user table having it as a string is going to give you problems when you try and use it. Once in separate tables you can see that the problem becomes easier [CODE] repeat...
2
1
293
2016-12-27T15:27:58.440
api_errors
softwareengineering.stackexchange.com
666,553
OS X 10.10 Localhost Environment using nginx, mysql, and php via Homebrew
I am running Mac OSX 10.10 Yosemite with homebrew. I was using a localhost environment using MAMP and I wanted something that was less of a resource hog and without all the bloated extras. I have installed nginx, mysql and php56 with php-fpm and mcrypt via homebrew. I am using Laravel as my php framework. When I was us...
This is much too complicated, and parts of it appear to conflict with each other. [CODE] Simplify this to a single directive. [CODE]
-1
1
1,405
2015-02-10T18:42:07.327
api_errors
serverfault.com
511,053
Setting up virtual host with symlink in Ubuntu 12.04
I am newbie in virtual host. I have followed this tutorial to create a virtual host to run php projects. Also, I've used symlink method described here . Steps in first tutorial like installing apache, creating files, granting permissions, setting virtual host files seems ok. Symlink is set up, too. But when I go to lin...
If your Apache does not happen to run as ekrem or root then you have to make the subdirectories readable and executable for the Apache user. Check also the access rights of the parent directories: [CODE] You need a [CODE] definition for [CODE] so that access is allowed there. You also need a [CODE] definition for [CODE...
1
0
1,205
2013-05-26T23:05:48.677
infrastructure
serverfault.com
682,851
Puppet noob, stuck on the same error for hours
I'm trying to setup a puppet master with hiera. When I try "puppet agent --test" on the mongo node I get this error. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'mongo.example.com, mongo.example, mongo' on node mongo.example.com Warning: Not usi...
You have to define a node in [CODE] (or [CODE] , as this is usually imported from [CODE] and is meant to keep node defs).
-3
4
1,160
2015-04-15T12:48:22.177
database_errors
serverfault.com
542,850
Is This Normal LDAP Behaviour In CentOS Linux?
Hello fine people! As a novice in the Linux world, I have managed to learn enough to put into production a ClearOS 5.2 server running the CentOS Linux Distro. This box serves as my Primary Domain Controller, LDAP Server, and OpenVPN server as well as all the related services (file sharing, etc). All works well, except ...
That's not normal behavior. Also, your screenshot is too small to read. Try to telnet to port 389. If you can connect, it means it's probably not a port issue. If you can't connect, then it means something else is taking over that port or you have a firewall/selinux issue. If it's a firewall issue, either turn selinux ...
2
1
1,648
2013-10-01T04:30:40.587
api_errors
serverfault.com