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
112,748
Query Relating Rows W/O A Corresponding Value
I have a table setup like this: [CODE] I want to pull results that do not possess a status code of "A" in any of the corresponding rows. For example, in the table above, I would want only the result set from 16, with a single result grouping all of the possible rows. [CODE] I only want those that have an I and do not h...
[CODE]
1
1
30
2015-08-31T16:57:23.017
api_errors
dba.stackexchange.com
252,888
Differences of latch and lock
Recently when i was trying to find information about latch_ex wait type, i come across one blog as below which stated about latch and lock. After reading this blog , i m just curious in one thing. When app submit a request, SQL server will look for the information in buffer cache first and if the page not in buffer cac...
I don't really understand what you don't understand in the quote you included (strangely, as a screenshot), as it explains the difference quite clearly, in my opinion. Locks and latches have different scopes and lifecycles. Locks apply to what you might call database physical model elements -- tables, rows, index entri...
2
7
1,208
2019-11-09T16:29:27.380
database_errors
dba.stackexchange.com
538,042
Reach server linux inside network
I have installed a new Ubuntu server inside my network with ip 192.168.1.253. I can reach by ssh to it but if I search it from a mac or pc I can't find the server. With mac I have tried: [CODE] The connection go in timeout. What should I do to reach my new server from my network? Thanks
Install and configure [CODE] ; Samba is not included in the default installation. Note that you should be able to [CODE] that machine, and as well [CODE] into it (if not, you must install [CODE] as well).
0
2
117
2013-09-11T10:50:44.980
infrastructure
serverfault.com
32,951
PyQt design issues
I've been working on a my first real project using PyQt lately. I've done just a little bit of work in Qt for C++ but nothing more than just messing around. I've found that the Qt python bindings are essentially just a straight port of C++ classes into python, which makes sense. The issue is that this creates a lot of ...
Take a look at PySide , Nokia's Python bindings for the QT framework. I can't give you a decent comparison (I only looked into it earlier this year, and opted for PyQt instead due to its maturity), but it looked promising.
2
3
861
2010-12-31T21:14:33.587
api_errors
softwareengineering.stackexchange.com
242,240
Port based bandwidth shaping
I have an interent connection with the speed of 4000k bits up and down. I want to do port based traffic shaping on a ubuntu machine, which acts as router. eth0 is the WAN interface. This is how I would like to allocate bandwidth: For ports 80 and 443 the bandwidth usage can go upto 90% For ports above 1024 upto 65535 t...
You should be able to accomplish this using tc and iptables. This article by Vivek Gite walks you through doing it for one port.
1
1
2,842
2011-03-02T14:45:11.803
infrastructure
serverfault.com
513,961
How to disable TLS 1.1 & 1.2 in Apache?
I have an Ubuntu 12.04.2 LTS server running Apache 2.2.22 with mod_ssl and OpenSSL v1.0.1. In my vhosts config (everything else within which behaves as I would expect), I have the [CODE] line with [CODE] . With that configuration, TLS 1.1 & 1.2 are enabled and work correctly - which is counter-intuitive to me, as I wou...
Intrigued by this bug (and yes, I've been able to reproduce it) I've taken a look at the source code for the latest stable version of [CODE] and found an explanation. Bear with me, this is gonna get amateur-stack-overflowish: When the [CODE] has been parsed, it results in a [CODE] looking something like this: [CODE] Up...
13
23
54,996
2013-06-07T00:01:30.733
infrastructure
serverfault.com
1,105,067
SSH agent: `sign_and_send_pubkey: signing failed for ECDSA-SK ... from agent: agent refused operation` except very first time
I have an ecdsa-sk keypair that I generated and added to my github account (tied to a yubikey). If I try any connection using that key, such as [CODE] , I get: [CODE] No combination of [CODE] commands I've tried works (deleting key, re-adding ,etc). [CODE] will show the key as present, but I still get the above error. ...
Use Homebrew's OpenSSH [CODE] Once installed, you have to override the one in your PATH by putting the OpenSSH folder at the beginning of your PATH in your RC file like this [CODE] Once you've done that and you've sourced your [CODE] file you should be able to generate your key Tested on macOS Monterey and [CODE]
4
1
2,318
2022-07-07T22:09:57.207
infrastructure
serverfault.com
388,289
What are the benefits of a high TTL for DNS?
I'm moving a domain's nameservers from the registrar to dnsmadeasy.com so that we can have automatic failover (among other benefits). When I've done this in the past I simply set the TTL value as low as it can go (1 minute) for the A record so that upon failure of the primary server the backup server is (nearly) immedi...
You're right, the main disadvantage of using a low TTL is that you'll end up dealing with a higher query load than with higher TTL. That said, as long as your DNS host doesn't have any problems with handling the additional load, then go ahead. Honestly, if they had concerns about their ability to handle the load, they ...
19
9
25,850
2012-05-11T15:49:55.003
database_errors
serverfault.com
932,205
Advanced routing with firewall marks and `rp_filter`
Today is routing day. You should now how to add an IP route, basic use of [CODE] , and good understanding of [CODE] to read this. This is cross posted (in French) on LinuxFr . Problem I have an ADSL modem (Freebox) in bridge mode, and an optic fibre (Livebox) in DMZ mode. All but selected traffic goes via ADSL, and the...
Why? Between the two snippets, I changed two things: I used the TOS IP header instead of firewall marked, managed internally by the kernel and its modules. I marked the returning packets. I lied (by omission): [CODE] I forgot to say that on all interfaces, the [CODE] is set to 1. According to the kernel documentation ,...
7
7
5,748
2018-09-22T21:16:06.727
infrastructure
serverfault.com
1,022,030
When to use routers and when to use layer 3 switches
If you were to connect two buildings on the same site via fiber, what is best to use - routers or layer 3 switches? The layer two switches in each building have VLAN's, so these will either connect to a router or layer 3 switch, and then the router or layer 3 switch will connect to the other buildings router or layer 3...
As you already know, a layer 3 switch includes a basic router. If the device has the functionality you need, then it should be fine to use. For instance, a layer 3 switch generally won't do NAT or have ports suitable for connection to a WAN. But it sounds like you will not need either of those.
6
7
1,803
2020-06-18T14:49:22.560
infrastructure
serverfault.com
41,654
How does KNN work if there are duplicates?
I am currently debating with my friend about how KNN handles duplicates. Suppose K = 2, and we have a 1-dimensional set of data points to illustrate my dilemma I = {1, 2, 2, 2, 2, 2, 6} Thus is it correct to say that the K=2 nearest neighbours of data point 1 is simply {2, 2}? Also, same reasoning if we did the 2 neare...
Your reasoning is correct - you should consider duplicate points as separate. You can see that this must be the case in several ways: Introduction of small random noise to the data should not affect the classifier on average. This would not be the case if you removed duplicates. Suppose that your input space only has t...
2
4
2,343
2018-11-24T22:42:24.733
data_quality
datascience.stackexchange.com
637,729
tomcat-webapp not accessible via port after windows-update
we are running 4 Virtual Machines on a MS HyperV Host. On one of the VMs (192.168.50.15) we have multiple Tomcat-Webapps on separate ports - 9010: Jenkins - 9020: Atlassian Jira - 9030: Wiki .. These Apps are all accessible locally from the VM directly in browser (localhost:9010/....) We did our monthly Windows Update ...
finally - after some further trial and error - we uninstalled Symantec Protection Tools from the physical host, and after that all services were accessible again. (deactivation was not enough) thanks for your efforts.
0
0
150
2014-10-17T07:53:18.143
pipeline_ops
serverfault.com
262,945
Problem receiving mail on new postfix/dovecot setup
I installed postfix and dovecot on my CentOS system. I'm able to send mail fine with my new email address, and the receiver is fine with replying to the message and/or sending mail to my new email address. But this work fine ONLY after I have sent mail first to the receiver. I attempted to send an email to the new emai...
This problem is related to postfix, and has nothing to do with dovecot. I think most probably it's a typo in the address field!? If you reply a mail you mail client takes care of the correct [CODE] -field. If this isn't the case you should take a look into you [CODE] (probably located in [CODE] ). What does postfix say...
-1
1
291
2011-04-24T16:56:44.997
infrastructure
serverfault.com
398,358
Upgrading Apache
I'm on a Windows Server 2008 r2 machine that functions as an internal web server using Apache, PHP and MySQL. Through some searching, I came across a post that claimed to be successful in "upgrading" Apache from a no_ssl version to the open_ssl version. However, when I attempted the install, it failed, saying another v...
OK, after some more searching and asking around in other forums, this turned out to be a lot more stress free than originally thought. Simply use Control Panel to uninstall Apache. You htdocs and conf folders WILL NOT be removed and you can then install the openssl version of Apache and everything will run without any ...
2
0
178
2012-06-13T16:15:23.280
database_errors
serverfault.com
412,874
Best approach to update the User Interface on consumed event(s)?
I am developing a microservice architecture where the API publishes a message through RabbitMQ. One or more consumers will read the message, preform its functions then if successful acknowledge the message. These functions can take many seconds and is not preformed by the API Gateway and is instead "ran in the backgrou...
Unless you need actual real-time feedback, polling the server using a normal REST endpoint is the simplest method. When the client starts an activity on the server, it should receive a link to a status URL where it can query the completion status of the activity. The polling schedule can depend on the characteristics o...
1
2
207
2020-07-18T20:43:30.447
api_errors
softwareengineering.stackexchange.com
243,234
Preventing DDOS/SYN attacks (as far as possible)
Recently my CENTOS machine has been under many attacks. I run MRTG and the TCP connections graph shoots up like crazy when an attack is going on. It results in the machine becoming inaccessible. My MRTG graph: mrtg graph This is my current /etc/sysctl.conf config [CODE] Futher more in my Iptables file (/etc/sysconfig/i...
Try using the recent match in iptables. Here's a short Debian howto which will give you some idea. Just make sure you set the limit somewhat resonable and consider NATed traffic. If the traffic is directed towards a webserver make sure you make correct use of "keep-alive" to be able to limit the amount of new connectio...
0
0
1,150
2011-03-04T15:09:17.823
infrastructure
serverfault.com
569,442
'The'account is not authorized to login from this station' error while trying to acccess network share
Clients are getting this error when trying to access network shares on one of our 2008 R2 servers: [CODE] The problem started a few weeks ago. It is intermittent on a per-client basis and may last for hours or days. The problem does not affect all clients at once. For example, this morning one client was working and is...
Bad DNS Records Here's our resolution for this particular situation: Our DNS server had two DNS A records for the problematic server. One record had the correct IP address and one had an a different address. Once I deleted the bad record, this issue went away. The bad record had a timestamp from around the time this is...
4
3
66,810
2014-01-23T19:17:24.277
infrastructure
serverfault.com
628,619
Sudo without password issue
Having a problem with sudo. As the user [CODE] I want to be able to run [CODE] without having to type a password. I've tried all of the variants below. [CODE] But it keeps prompting me for a password. Tried loggin in and out. [CODE] This is the whole file. [CODE] Using Ubuntu 14.04.1 LTS [CODE] The problem: [CODE] This...
Try following: [CODE] : [CODE] [CODE] : [CODE] test [CODE] Adjust CORRECT path to your [CODE] if needed, this may vary depends on your distribution, to find correct path run following: [CODE]
2
1
8,563
2014-09-15T15:20:00.793
infrastructure
serverfault.com
839,480
Request exceeded the limit of 10 internal redirects due to probable configuration error
While entering my website via the main page ( [CODE] ) everything works fine. But when entering in [CODE] I get a 500 Internal Error, and I see in the error_log it says the following: Request exceeded the limit of 10 internal redirects due to probable configuration error. Also, I know I can post the output of [CODE] , ...
One issue here is that your [CODE] matches every request, and rewrites it to [CODE] . So, a request to [CODE] gets rewritten also to [CODE] , ad infinitum. Except that Apache stops trying after detecting ten consecutive redirects. You need to find out what exactly you want to rewrite, and then make a rule for that whic...
1
0
2,258
2017-03-20T17:21:17.223
api_errors
serverfault.com
481,207
Manage Win7 Performance Options via GPO
Our company has many virtual Windows 7 instances. Based on recommendations from VMWare, we want to customize the visual effects to optimize performance. We have found that we can change the following options via GPO: Let Windows choose what's best for my computer Adjust for best appearance Adjust for best performance C...
First off, have a look at this page , which is a little blog post on performance tuning Windows 7 for virtualization. Seems like it might be helpful. Second, the only Microsoft-supported way to do what you want is via a user profile customization, process documented in a Microsoft KB here . Third, as suggested by @Zord...
4
1
17,896
2013-02-21T18:18:09.843
infrastructure
serverfault.com
1,103,606
Can't restore LVM Logical volume configuration - missing PV
I had a VG with 3 pvs. The VG had one LV using all three PVs. Then one PV (hdd) died. I wanted to try to recover whatever I could. So the first thing I needed to do was to remove the missing PV from the LV/VG. Following instructions I found via googling, I used vgreduce to remove that PV. But, as I learned, that remove...
Linux LVM does not remove PVs with LVs on them by default. It needs all the extents for the LVs to have good integrity. [CODE] might remove LVs though, it disables several safety checks. Be very specific and careful in what options you use. Log your terminal sessions. Plan your recovery. Find any backups that exist of ...
1
1
1,362
2022-06-19T00:20:32.137
database_errors
serverfault.com
682,053
OpenVPN not working well on specific ISPs
I have a well configured ClearOS server that provides OpenVPN connectivity and Samba shares. I am able to connect to the server via VPN and view the shares with no issues. However, when the client is connected via certain ISPs (Internet Service Provider), VPN behaves very differently and incorrectly. I am located in Ot...
Logs, configs? You may have problems with your ISP's firewalling when using VPN @ broken location. You should set up openvpn @ port 443/TCP. If it still won't work you can also give a try to push traffic via HTTP proxy to mask it.
0
0
822
2015-04-11T18:54:24.113
infrastructure
serverfault.com
571,495
Dovecot handshake failure, on Postfix success
I am trying to setup a Dovecot/Postfix structure, relying on a MySQL backend. I came across a problem with SSL configuration, and it's really tearing my hair out... Situation Dovecot listens on port 993 (IMAPs) and 995 (POP3s). I use the following command to test the connection : [CODE] The following error occurs : [CO...
You have actually disabled SSLv2, SSLv3, and TLSv1.0 in dovecot. [CODE] This is a problem because some clients don't yet speak TLSv1.1/TLSv1.2, your only remaining choices. Try not disabling TLSv1.0 and see if you get any farther.
1
3
6,649
2014-02-01T14:45:58.350
database_errors
serverfault.com
437,149
Are interfaces made useless by the template pattern?
Refer to the highest upvoted answer here for why you should make an [CODE] interface with a [CODE] method. This is highly upvoted, But I think the answer is flawed. Sure a pizza can be prepared, but so can literally anything. Interfaces are only a guarantee of behaviors, not a guarantee of type , proven here: [CODE] If...
I think there is a subtle distinction you're missing between guaranteeing consistency and guaranteeing truth . When you write [CODE] you are telling the compiler that a [CODE] is a type of [CODE] . The compiler can then prove the consistency of code that passes a concrete [CODE] to something that is designed to work wi...
-2
12
627
2022-03-04T19:35:40.027
api_errors
softwareengineering.stackexchange.com
734,798
adding application server does not improve preformance with haproxy
I am running a haproxy load balancer in front of two application servers that serves images. The problem is that if i use one server or two does not make a difference on performance (see added images). I am using Digital Ocean as provider of the Vps. The vps are running nginx and the Load with two servers: load with 1 ...
Adding more servers behind a load balancer will not help if your application are taking too much time to send the response. This is the law of response time . The load balancer will not improve your response time because he need to wait the response from the application server to serve the client, in that time the conn...
1
0
257
2015-11-08T16:52:50.553
infrastructure
serverfault.com
696,032
Can a DNS server (specified by its IP address) be spoofed?
When a DNS server is specified (in my case in OS X, in the Network Preferences), can it be spoofed (for instance by an organization with the power of a government)? I am asking the question because DNS poisoning is an important issue about which ample information can be found, but what about the spoofing of the DNS ser...
Of course. As long as the spoofer has access to the network hardware DNS requests are passing through, they can change the destination of your DNS queries to another - shady - server. There is not much you can do about it, besides using an encrypted VPN to someplace safe. Even running your own DNS server would lead to ...
-1
1
64
2015-06-02T08:31:17.030
infrastructure
serverfault.com
602,003
Sysprep Forever
I want to use Windows in Audit Mode without continuing the Windows installation. Because: It's clean and fast, no Metro and others packages. It's the built-in Administrator; full permission (elevated), no annoying UAC prompt and no fail of startup programs. Question: How to quit the Sysprep but keep in this mode?
Once in audit mode, your PC will remain there unless you run through the [CODE] procedure . However, it is a bad idea to use Audit Mode for anything but initial testing and configuration: it is unsupported it does break Windows Update it might break other things In the end it appears much easier to just customize your ...
-3
4
111
2014-06-05T10:23:09.540
infrastructure
serverfault.com
9,218
Running out of memory running fsck on large filesystems
I look after an old Debian linux box (running etch) with only 512 MB of RAM, but a lot of external storage attached. One ext3 filesystem is 2.7 TB in size, and fsck can't check it, because it runs out of memory, with an error such as this one: Error allocating directory block array: Memory allocation failed e2fsck: abo...
A 64 bit kernel and large quantities of RAM will allow the fsck to finish nice and fast. Alternately, there's now an option in e2fsck that'll tell it to store all of it's intermediate results in a directory instead of in RAM, which helps immensely. Create [CODE] with the following contents: [CODE] (And, obviously, make...
14
14
20,968
2009-05-17T22:10:37.203
infrastructure
serverfault.com
674,665
Sending email from PHP through exchange
I figured serverfault might be a better fit for this question. I'm trying to send emails with PHP mail() function. PHP returns no errors and says the email has been accepted whether it sends or not. Here's a link to my original question on stackexchange. My web server is connecting to our local exchange server via SMTP...
As far as I know (happy to be corrected) PHP's mail() function doesn't automatically generate a [CODE] header line. I wouldn't be surprised if that increased the chances of messages either getting tagged as spam (and so accepted but not delivered to mailbox) or seen as a duplicate (and accepted but suppressed). Sonethi...
-1
0
4,461
2015-03-11T17:22:14.363
infrastructure
serverfault.com
946,050
Why manifest file is not available in my puppet master
I'm very new with puppet. For initial setup, I have configured puppet master and agent in my Ubuntu 18.04. The configuration has been completed and I can see cert has been exchanged between master and slave. But, I didn't find the puppet manifest folders in the below location /etc/puppet/ expecting following folder /et...
The default location of the main/site manifest is [CODE] , according to the documentation .
0
3
355
2018-12-20T00:09:03.857
pipeline_ops
serverfault.com
110,266
Enforcing security restrictions on table rows via default schema and views on SQL Server
We have an application which database relies on SQL Server 2000. A specific area of this application let users access rows from a table that they shouldn't: they should only access rows from suppliers, but not rows from customers. Both suppliers and customers are stored on a single table. We can't change this particula...
As long as the application keeps working correctly this method appears to be a workable solution. It probably isn't the preferred solution as you'll need to be careful when doing any upgrades that they are run by a DBO, and if new columns are added to the dbo.FOOBAR table (It's actually FUBAR) that you rebuild the newu...
0
1
100
2010-02-06T18:24:43.033
database_errors
serverfault.com
143,454
Coding a web browser on Windows using a layout engine?
I've never attempted anything like this before but what I want to do is code a browser for Windows. I know that I can use the web-browser control that Microsoft has released, but I'm interested in seeing how the problem is solved from a lower level. So I want to know what layout engine I should be looking at? Or is a l...
I would begin by studying the Gecko layout engine (used by Firefox) and of WebKit (which might seem to be Mac-centric due to its Apple roots). Both are designed to be cross-platform. Trident (Microsoft's layout engine used by IE and, I assume, in the WebBrowser WinForms control) is closed-source. But if you are just wa...
1
1
414
2012-04-08T03:52:02.867
api_errors
softwareengineering.stackexchange.com
333,844
MySQL 8- Add a Default Partition to a Table Partitioned on a Field Value
I have a table partitioned by values of a KPI field. There are some kpi with a large amount of rows some with small numbers. Partitioning by KPI name (string) keeps query performance good. The data source occasionally will introduce a new KpI which breaks the loader. The file being uploaded that contains the new kpi va...
You must list explicit values when using LIST partitioning. You can't make a "default" or "catch-all" partition for values you didn't list. This is documented: https://dev.mysql.com/doc/refman/8.0/en/partitioning-list.html says: Unlike the case with [CODE] partitioning, there is no “catch-all” such as [CODE] ; all expe...
1
2
54
2023-12-07T17:59:41.520
database_errors
dba.stackexchange.com
906,944
Routing configuration - Ping only works one way
I have a small kubernetes cluster running, and to enable communication between devices on my main network range (192.168.1.0/24) and those of a kubernetes pod (192.168.251.185/32) I have configured a static route on my router to enable routing packets via the relevant kubernetes worker host (192.168.1.151), using the r...
I solved the problem. Windows firewall appears to block ICMP requests from OTHER networks, e.g in this case my requests were blocked, after disabling windows firewall the requests went through ok
2
2
14,628
2018-04-10T12:48:15.550
pipeline_ops
serverfault.com
370,736
What tasks does a memory barrier enforces other than preventing the re-ordering of instructions?
I know that a memory barrier prevents the re-ordering of instruction from before to after and from after to before the memory barrier, for example if I have the following instructions: [CODE] These instructions can be executed in the following order: [CODE] But they will never be executed in the following order: [CODE]...
The definitive source is the Intel Optimization Reference Manual . Look at the various fence instructions in Chapter 7, and the discussion on multithreading in Chapter 9. From Chapter 7: "The MFENCE (MEMORY FENCE) instruction makes it possible for every LOAD/STORE instruction preceding MFENCE in program order to be glo...
3
1
510
2018-05-10T20:52:21.660
api_errors
softwareengineering.stackexchange.com
335,509
Proof that the SQL Server is not at fault for the timeout
We have been experiencing (perceived) issues with the write performance of our MS SQL Server for some time. As I believe it might be on the client side, I am looking for evidence to refute the accusations against the SQL Server. Here is the situation: A NodeRed Flow collects data from a machine and writes it to an SQL ...
FWIW, SQL Server doesn't timeout, by design. Only the calling client can issue a timeout. SQL Server will happily chug away for years on the same query, if the calling client doesn't issue a cancellation. The only exception I'm aware of to this is when the SQL Server instance makes a remote query call to another databa...
1
3
120
2024-02-05T00:38:36.867
bi_errors
dba.stackexchange.com
23,672
Why vSGD-fd optimization algorithm isn't popular?
As the paper by Schaul & LeCun states The findings are clear: in contrast to the other algorithms tested, vSGD-fd does not require any hyper-parameter tuning to give reliably good performance on the broad range of tests: the learning rates adapt automatically to different curvatures and noise levels. Auto-adapting lear...
This is my answer at Cross Validated for the same question asked by the same person: It's already 2019, still nobody answered this question. I don't understand why vSGD isn't popular either. But I do have some reasons from my own: not real auto-adapting. Like v-SGD, ADAM is also a so-called auto-adapting algorithm, but...
2
1
136
2017-10-10T15:29:22.913
data_quality
datascience.stackexchange.com
1,660
large data movement
I would like to move billions of rows from schema1.table1 to new schema2.table2 where table2 is a refactored one from table1. Hence their table structure is different. both table1 and table2 are partitioned but table2 is empty. Both these schemas are in the same oracle DB. What is performance efficient way to perform t...
Parallel [CODE] with [CODE] would be the way to do this, then as with all NOLOGGING operations, take a backup immediately on completing. Mark indexes unusable first, disable constraints, alter table, perform the operation, then re-enable constraints etc. Append causes Oracle to always grab free space above the current ...
12
9
700
2011-03-10T06:31:41.077
database_errors
dba.stackexchange.com
891,821
How to write and read from the same file using two netcats?
I'd like to use a file as a temporary buffer to connect two netcat processes. I need to use a buffer because data is sent and requested on each end at different intervals. I want to use a file instead of an actual [CODE] buffer because the data will often exceed 64 kb. This is what I have, but it doesn't work. The file...
On some systems the "nc" command requires that you specify the "-p" option before the port number. Try to add a "-p" before 8000 and 9000 as follows: [CODE]
1
1
335
2018-01-11T20:24:00.980
infrastructure
serverfault.com
982,546
vnstat reporting different data usage than provider
I'm using vnstat 1.11 on an older Ubuntu 14.04 server. My hosting provider gives me a monthly metered bill for the combine up- and download data. I'm trying to get a better sense of what the balance is between up and downloaded data (over longer periods, [CODE] , [CODE] ) and what is happening at any moment ( [CODE] , ...
I figured out what was going wrong, and it was indeed my fault. The solution In the [CODE] , I changed this line [CODE] to [CODE] How I found out I thought I'd dive a bit deeper into the spaghetti of logs. I've inherited this poorly maintained legacy machine, so it took a bit of time to go through the immense amount of...
0
2
1,554
2019-09-09T15:20:22.907
database_errors
serverfault.com
200,009
Does the @raise_snmp_trap do anything in @sp_add_alert?
I have a request from a client to incorporate SNMP Traps as the method for alerting in SQL Server. The only way I have found to do this is by using [dbo].[sp_add_alert] found in the [msdb] database. [CODE] However, when I actually raise the error, I only receive the actual Message located in sysmessages. Now, I'm not t...
[CODE] calls [CODE] , which in turn writes values into the [CODE] table. The [CODE] table insert looks like this: [CODE] The [CODE] variable is populated and inserted into the table in the [CODE] column. The documentation for [CODE] , at Microsoft Docs , says the flags column is "Reserved." Since there appears to be no...
3
2
231
2018-03-12T17:45:03.240
pipeline_ops
dba.stackexchange.com
268,523
Large uploads failing from client with new firewall
One of my clients just installed a firewall and since installing it they've been having issues uploading largish files (tested with files over 2MB ~ 200MB) to our server. The server is running Ubuntu 10.04 and Apache 2.2.14 and another test server is running Ubuntu 10.04 with Apache 2.2.16. From the clients location la...
If it's happening when their firewall is in place, and not happening when they remove it, then the issue is almost certainly on their end. So don't make any changes to your configuration at this point. Suggest they look into: Any smart-defense/heuristic protection the firewall may have enabled Verify that the firewall ...
1
0
237
2011-05-11T11:47:30.100
infrastructure
serverfault.com
358,020
RESTful API represent the absence of a thing
Imagine an API to identify whether a person has selected their spirit animal. They can only have zero or one spirit animals. Currently: [CODE] when they have selected an animal returns http 200 and [CODE] but when they have no selection it returns http 404. This makes my spirit animal unhappy as we're representing a va...
HTTP 4xx codes are probably not the right choice for this scenario. You state that having zero spirit animals is a valid state, and the API route [CODE] will account for whether person [CODE] does or does not have one. HTTP 4xx responses are reserved for the situation when a client has done something incorrect in the r...
21
25
5,047
2017-09-25T16:01:26.507
api_errors
softwareengineering.stackexchange.com
48,611
How Do I Configure Exim4 on Ubuntu to Send Mail Using Google Apps?
I have an Ubuntu VPS that is using exim4 as a satellite email server set up to send mail through Google Apps. Mail meant to go to an address hosted by Google gets delivered. This means that things like a "contact us" webform is working because it delivers to the domain hosted on Google Apps. Incoming and outgoing email...
As to why your smarthost configuration didn't work - do you have the premium version of Google Apps? You can't use the free version as an outbound relay. Attempting to do so might appear as a "user not found" because the acceptable range of addresses is limited to the domains that Google Apps hosts. http://www.google.c...
1
1
3,012
2009-05-19T13:48:53.773
infrastructure
serverfault.com
1,054,886
Using GCP interconnect with Bucket (Cloud Storage API)
I am trying to implement a hybrid workflow using local compute resource + Google Cloud Platform. The system works like a charm however we were getting terrible upload speeds and so that was the main hindrance in our pipeline (approx 300GB data / run) and we get about ( 5 - 10 / week ) and the usual upload speed using [...
You can use Shared VPC for this purpose: Shared VPC allows an organization to connect resources from multiple projects to a common Virtual Private Cloud (VPC) network, so that they can communicate with each other securely and efficiently using internal IPs from that network. Another approach would be to use VPC Network...
1
1
1,476
2021-02-24T12:39:16.723
pipeline_ops
serverfault.com
152,331
Postgres Partitioning: Edge case issue on date column partitioning
I am using Postgres 9.5 I have tables with date column. All tables are partitioned based on the date column. Table setup: Example of current partitioned tables are like below [CODE] Tables are partitioned like below [CODE] Failing Edge Case Since partition for inserting data is decided based on submitteddate which is a...
The check constraints of your partitions are strange. They don't exclude the possibility of an order from DEC2015 being inserted into the JAN2016 table. This might not be an issue about inserting, but it makes constraint exclusion not working nicely. Fix this by specifying a beginning date, too. That aside, the problem...
1
1
562
2016-10-14T18:25:33.390
data_quality
dba.stackexchange.com
252,932
MYSQL Trigger: Update before insert
I want to increment the order of every video by one every time a video gets inserted so that the new video takes its place [CODE] This doesn't work, I get this error , is there an easy fix? I could fix it in PHP but I'll have to fix it in multiple places and find the buggy code, it's just one-liner code, so much easier...
You forget that trigger works with ONE record. You may, of course, do something like [CODE] But when 2 clients would insert a record with the same [CODE] you may obtain duplicated [CODE] value. And you can do close to nothing with that problem while using this method.
-1
0
634
2019-11-11T01:29:21.047
database_errors
dba.stackexchange.com
1,037,283
How do I change the time zone for mail.log files?
I'm using Debian buster. I changed the time zone with timedatectl and restarted postfix and dovecot but log records in mail.log are still showing UTC time. How do I fix this?
Restart the log server that actually writes the log entries (in your case, probably [CODE] ). It was not the daemons postfix and dovecot that generate the timestamp, they just put their messages into syslog and [CODE] proceded to format them with its configured time stamp format ( and currently selected timezone transl...
1
1
1,342
2020-10-11T18:44:07.003
infrastructure
serverfault.com
325,748
Ethernet link negotiates a connection only in half duplex mode
I have a NIC which is capable of [CODE] . But it negotiates a connection only on [CODE] mode. Here is the output of [CODE] : [CODE] The Ethernet cable from the NIC connects to my ISP's MUX installed in our office. So, does it mean that ISP's MUX switch/hub can support only [CODE] ? Or can it be a issue with my NIC. It ...
Did you try to set the NIC speed manually by executing: [CODE]
1
1
1,729
2011-10-28T15:24:47.407
infrastructure
serverfault.com
249,520
Help error message inside dynamic T-SQL
I have a requirement to come up with reporting for indexes for our whole production environment: I found the below script online and modified it according to my requirement and trying to execute it using cursor (I have also tried sp_MSForEachDb) to get result from all databases in the instance. The script should show a...
I agree with Erik , but answering your question the error was in the quotation marks in the STUFF and here AND ISNULL (DUPE1.include_column_list, '') = ISNULL (DUPE2.include_column_list, '') You did not have the quotation marks correctly, remember that when you intermix texts all the '' must be like '' '' [CODE]
0
4
185
2019-09-24T18:00:17.597
data_quality
dba.stackexchange.com
72,862
apt-get not working on my Ubuntu Desktop 9.04 jaunty since this morning
Since this morning I am not able to use apt-get command on my Ubuntu 9.04 It's throwing the following error : W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/binary-i386/Packages 404 Not Found I think Ubuntu changed its repository link and my [CODE] did not update accordingly. Is anybody ...
Maybe you could change your repository temporarily for an other? Try to replace the "in.", i suppose it will work fine. You'll put it again after.
1
4
1,661
2009-10-09T09:11:02.240
hadoop_errors
serverfault.com
812,352
Wildcard SSL negotiation across sub-domains
I'm wanting to make a site as fast as possible and as part of that will be using multiple sub-domains to essentially grow the number of concurrent connections in a browser. My question is this: how can I avoid having to do SSL negotiation for each sub-domain? If I use a wildcard certificate (or SAN) can/will the SSL se...
I don't think you can avoid taking the hit of SSL negotiation for each sub-domain. The HTTPS connection must be established individually for each sub-domain. For all the client knows, those different sub-domains could be hosted anywhere, on different servers, in different countries. While the client technically could d...
1
0
118
2016-10-31T18:11:48.623
infrastructure
serverfault.com
829,461
Give exclusive AD access to Mapped Drive via GPO
I want to know how to provide a user with exclusive access to a folder, but not other folders. The folder root is located here: [CODE] I use a GPO to map that user's folder. But the problem is that it only maps if the user has access to the root folder. The problem with that is, they can get nosy and navigate to other ...
There are two ways I can think of to tackle this: Granting the Authenticated Users group (or any other group of which all the users are members) the "Traverse Folder" NTFS permission on the parent folder only, making sure to disable permissions inheritance on the child folders and then enabling Access Based Enumeration...
1
3
593
2017-01-30T15:43:17.620
infrastructure
serverfault.com
6,934
Hide the http:// in web browsers
The [CODE] prefix to regular consumer websites is unnecessary and only complicates. Anyways 99% of the sites people visit use the HTTP protocol, so why do you have to tell the browser that? It should guess it! I want to hide the [CODE] prefix everywhere, in the address/location bar URL, on Hyperlink tips, in the status...
There is a great add-on for Firefox called Locationbar² that does just what you want (and some!). One of its main features is to break the URL into breadcrumbs. In the options dialog you can specify what protocols you'd like to hide: Here is what mine looks like:
0
21
1,727
2009-05-11T09:38:04.527
infrastructure
serverfault.com
670,919
Is it safe to use PoE injector for routers that do not support PoE
We bought an Asus router n66U to be installed in a tourist bus along with a server. The bus has a inverter to supply a 220V AC. However, there can be abrupt power fluctuations specially during ignition start. We need to ensure that our server and router run without disruption even during minor power outages. We were br...
I second MadHatter's suggestion of using a desktop UPS. In fact, that's exactly the solution I settled on a few years back when I got a contract to set up wireless coverage for a couple million square feet of warehouse. To avoid needing expensive new fiber runs, the routers and switches for each building were hung up i...
1
2
1,701
2015-02-24T07:29:20.663
infrastructure
serverfault.com
265,259
Query planner generates different plans in psql and application for the same query
I am optimising an application on a development server; the database is being dropped and restored from time to time (always the same database and data) and the caches flushed. I want to identify rows in a parent table which have rows in a child table. The parent table has about 5000 rows, the child table about 1.8 mil...
Eventually I found this Q&A on StackOverflow , asserting that adding [CODE] to a subquery prevents the query planner from inlining the subquery. Applying this change made the planner consistently * generate an efficient query in psql and in the application. [CODE] This is an effective workaround, but somewhat unsatisfa...
2
2
637
2020-04-17T13:00:17.983
api_errors
dba.stackexchange.com
1,073,431
Deleted Group in FreeIPA Still Comes Up
I'm having an issue deleting a group in FreeIPA. A group was previously created called "developer" for which I want to delete. I go into "User Groups" in FreeIPA GUI and delete the offending group name. All sounds good, but then if I go to my clients and do [CODE] I get [CODE] In other words, the still comes up. I go i...
Most likely the member server has cached the group. The caching is done by sssd, which also handles many other services related to the domain. You can use the [CODE] tool to manage the cache. For example, to clear all group entries from the cache: [CODE]
0
2
102
2021-08-03T16:47:38.457
infrastructure
serverfault.com
115,763
Replay trace file and filter on error>0?
I have captured a trace file using the replay template. It includes all columns available, of course including ERROR. When I replay this trace file, the "trace configuration" window pops up, I declare the target server, save the result to a new trace file and run the trace. When I then load the new trace file, most of ...
"I have captured a trace file using the replay template" I believe this is your problem. Create a server-side trace using the stored procs rather than the replay template. Then execute: SELECT * INTO mytracetable FROM ::fn_trace_gettable('c:\my_trace.trc', default) To see your columns. I used the same method as you and...
0
0
151
2015-09-22T13:26:41.357
data_quality
dba.stackexchange.com
92,963
Windows Server 2003 Trial Activation Issue
I have a Windows Server 2003 (R2 Enterprise with SP2) VM, originally installed with a trial license. We forgot about the server, and now more than 120 days has passed, and I can't do anything with the server. I seem to be at a dead end with the existing installation. When I log in, I get: The evaluation period for this...
Re-installing a Retail (or MSDN) copy of Windows over the existing copy turned out to be the correct thing. But it wasn't enough. The old copy of Windows had Internet Explorer 8 installed, whereas the reinstall had tried to put IE6 on. The solution was to log in under Safe Mode and uninstall IE8. Even in Safe Mode, Int...
0
0
7,405
2009-12-10T11:32:19.347
database_errors
serverfault.com
85,905
Firewall on top of 2 subnets - is that possible?
In short Is it possible to have two seperate networks (seperated by IP addresses and subnet) under one gateway + firewall that is within IP and subnet configuration is on network #1 and still filter inbounding/outbounding traffic to/from network #2? Details Gateway + Firewall (m0n0wall software) has internal address 19...
Internally, from computer with address 192.168.1.Y i can access device, ofcourse. You haven't given us enough detail: You have two separate logical networks 192.168.0.0/24 192.168.1.0/24 Your firewall lives in 192.168.0.100. This means that 192.168.1.0 cannot communicate with your firewall without some other part of th...
0
1
2,329
2009-11-18T14:32:48.100
infrastructure
serverfault.com
669,653
Problems with Windows Domain
I have a problem in a Windows Domain. About the creation of this domain i can not tell very much - i got this job last month, without propper handover due to illness of the main admin. What i know is the following: we have one domain contoso-5.contoso-hq.old (contoso-hq is not under our control - kind of a wide area ne...
After a long time and support requests to our official microsoft support station (where they had no explenation for the problem), i accidenttaly solved the problem: i replaced one of the DCs which did not make any problems, but the server was initialy build for other purposes, so it was placed in the wrong subnet. And ...
1
1
10,166
2015-02-17T06:43:53.060
database_errors
serverfault.com
27,912
How to come up with risks for the Risk Register
The IEEE standard 29119-3 defines the content one should include in a test plan. One such part of that content is the Risk Register . This standard specifically states of this register: Identifies the risks considered by the testing covered by this plan. This should include any relevant risks that may be specified in t...
I'd look more at things from a quality assurance point of view, not a quality control point of view. For example, how sure are you that the requirements you've been given are the right requirements? How sure are you that there aren't requirements that are missing? Then, for the requirements, I'd focus more on things yo...
3
2
80
2017-06-21T16:18:46.593
data_quality
sqa.stackexchange.com
233,977
Why is email so slow?
I setup a new vps.net server. I tried to send mail from PHP. It would not. I installed sendmail [CODE] . It now sends mail, but the server lags for about a minute before sending an email. Not sure why this could be?
Have a look at [CODE] and [CODE] for error output from sendmail, that might shed some light on the problem. From your description though I'd hazard a guess that the server is stalling trying to resolve DNS - have you got nameservers correctly configured in [CODE] ?
0
2
263
2011-02-10T17:42:27.747
infrastructure
serverfault.com
980,365
Error during installation MySQL 8.0 on Debian 10
I am trying to install MySQL on Debian 10, I'm doing everything according to instuction but I get error shown below. Can somebody help me solve this probem ? [CODE]
Check the attached repositories with the [CODE] command. Remove old repositories or actualize the release name. Clean the packages cache ( [CODE] ). Update the packages lists ( [CODE] ). Check the current state of packages with the [CODE] . Search the suitable packages ( [CODE] ). Check the policy for your packages ( [...
0
1
5,993
2019-08-22T18:13:33.907
database_errors
serverfault.com
221,558
How can you tell if you are on physical or virtual hardware?
Possible Duplicate: Find out if the OS is running in a virtual environment I don't trust my host as far as I can throw them. We are about to move, but I have got this nagging doubt that rather than being on the dedicated machine that we ordered I'm actually on a virtualised machine. How would I go about proving this on...
For VMWare at least, either have a look at the network adapter type (it should say VMWare) or get the MAC address of the NIC and go here to look up the vendor.
2
3
2,607
2011-01-12T13:25:31.410
data_quality
serverfault.com
333,375
Is it possible to turn off auto-start for some (but not all) app servers deployed on Tomcat?
I want to deploy multiple versions of an app server on my local machine for development purposes (testing for compatibility, etc). I've got about 5 that I'll want to have installed at any given time, but really only need 1 or 2 of them on a day to day basis. I'd rather turn on/off the others on demand. Originally I had...
You should be using the host-manager or the Tomcat manager for this. Also, in the [CODE] file, you can turn off the ones you don't wanted started up by using this: [CODE] Example: [CODE] Reference: https://stackoverflow.com/questions/5067062/how-to-disable-specific-apps-in-tomcat
3
2
6,205
2011-11-21T20:59:22.333
infrastructure
serverfault.com
1,112,320
GPO Update: Missing GP In sysvol
I'm having a bit of trouble. I'm created a group policy to create a short to the desktop with a url link. I've done this in the pass without any issues, but now, i'm getting an error that one of the gp is missing on our DC1 and DC 2. I determined that this isn't a replication issue as i was able to create files on both...
I determined that this isn't a replication issue as i was able to create files on both dc1 and dc2 respectively and both files were able to show up. Is it in the NETLOGON / SYSVOL's folder ? I would like to by pass the missing GP or removed it so its no longer an issue. Is there anyone that can steer me to the right di...
0
0
2,297
2022-10-05T16:42:31.593
database_errors
serverfault.com
403,985
Is it practical to pass function pointers to a separate class to avoid additional includes?
In my program I've included the header for an external library (GLFW) in my Main class. Everything I need to use that library for can be handled in my main class, with the exception of two sneaky little methods that I need in a separate class. [CODE] This is my [CODE] function. The two functions I need are [CODE] and [...
Preface . Much of this post is for "using C++ lambda as closures to reduce dependency and coupling" in general; therefore it contains advice for such code in general. The sample code here seems to satisfy all advice given here. Using a C++ lambda as a closure in this case is totally acceptable. It is recommended too, s...
6
5
257
2020-01-19T00:19:24.477
api_errors
softwareengineering.stackexchange.com
648,887
SQL Express Reporting Server 2014
I have a problem getting my SQL SSRS service working. Version: SQL Express 2014 When I try to start SQL SSRS in services, the service starts, but looking at the event viewer it fails to connect to report server. EVENT ID:107 Report Server Windows Service (SQLEXPRESS) cannot connect to the report server database. My und...
Found the problem in the end. The TCP/IP protocol in the SQL server configuration Manager did not have 1433 set as the port + none of the IP's were active and enabled. Once I enabled and changed port to 1433 and restarted all worked.
1
1
1,884
2014-12-03T15:30:04.363
bi_errors
serverfault.com
10,495
Using SSH to open interactive session in ansible
Is there a semi-easy way to use Ansible to open an interactive session? I've spent a good amount of time making use of keys and other credentials stores to make a stellar ansible inventory file. Problem is, when I want to get on the servers that I can easily manage, I've gotta go out and find those creds and take the t...
You could try [CODE] It mostly feels like you just have a shell open, unless you use and ansible task name as your command, in which case prefixing it with [CODE] should work.
7
4
2,994
2020-01-14T19:44:38.620
pipeline_ops
devops.stackexchange.com
606,394
centos + php leak memory, but where?
I have a big php cronjob that run every 20minutes. After each execution the RAM memory used by the virtual server increase and not properly free once the script is terminated! But why? The memory isn't cached [CODE] The script make some curl/multi_curl and update the Mysql DB. There is a way to debug the script seeing ...
The memory should be freed when a program exits (regardless if the program freed it or not). For example. [CODE] So assuming your script run the by the cron job exits, that would not be the issue. So you need to see which program is growing in memory. You can just watch this using [CODE] (You can sort by resident memor...
3
1
544
2014-06-19T11:17:35.680
database_errors
serverfault.com
447,433
Intranet corporate SSO for webapps against Active Directory
I am trying to plan and implement a SSO solution in a corporate environment that serves intranet web applications running on CentOS: Corporate portal (Drupal backend) Project management (Project.NET) Document collaboration system (Alfresco) Helpdesk (Redmine) Issue tracking (Atlassian Jira) The authentication is succes...
An Identity Provider (IdP) handles authentication against a database or LDAP server and passes user information to an application = Service Provider (SP). I assume you mean using the Service Provider implementation provided by Shibboleth's creators (dubbed shibboleth-sp) talking to a Shibboleth IdP. This works by speci...
4
0
804
2012-11-10T20:25:37.147
pipeline_ops
serverfault.com
448,598
Restarting or stopping apache results in waiting forever
I have two simple WSGI apps running on top of [CODE] and [CODE] (worker) on a test development server. There is no [CODE] on this machine. The WSGI configuration is as follows [CODE] If I make changes to the configuration (e.g. number of maximum requests, etc), I need to restart the web server, so I would expect that a...
In some cases a log entry will not be written to disk (if logs don't exist or its permissions are wrong). The best way to diagnose an error is to try to start Apache with the following command [CODE] .
2
0
2,055
2012-11-14T12:30:52.630
infrastructure
serverfault.com
407,280
Sniffing packets of specific binaries / apps / process id?
Is there a way to associate packets with executing binaries? I would be open to traditional sniffing methods or even [CODE] for that matter. I have a specific issue on a system with very high traffic. Sniffing "all" packets and filtering them is becoming a very burdensome problem and eliminating packet emission from al...
Recently I ran into a really nice solution for this problem and wanted to share. It is found in the DTrace Book: http://www.dtracebook.com You'll want to pull down the examples from here: http://www.dtracebook.com/images/dtbook_scripts.tar.gz I'm running no OS X. I extracted the scripts to [CODE] under my [CODE] and ex...
1
1
3,972
2012-07-12T21:31:40.603
infrastructure
serverfault.com
30,942
mysql_select_db() very slow on a busy server
I have a MySQL Server with about 30 Databases and 1500 Tables. Overall size of the data is 2 GB. The Server has 16 GB RAM and an AMD FX-6100 CPU. Most tables are [CODE] . On average the server answers 675 queries per second, but in the afternoon it gets easily into 20k queries per second. The load of the machine barely...
As you are saying that most of the tables are MyISAM, I would check IOs and locking. You can verify you disk throughput with a tool like iotop. http://www.manpagez.com/man/1/iotop/ MyISAM relies on the file system cache to store data blocks, so MySQL has to compete with all the other processes running on your OS for ac...
1
3
818
2012-12-22T05:27:12.720
database_errors
dba.stackexchange.com
1,129,611
Samba share, can't access
Ubuntu Linux 22.04.2 Samba version 4.15.13-Ubuntu I am using the default installation of Samba on Ubuntu. I added this to /etc/samba/smb.conf [www] browseable = yes printable = no comment = Web Root Dir create mode = 0644 directory mode = 0775 path = /var/www/html writeable = yes valid users = @www-data Also there is t...
Ok. I realized that I have to use smbpasswd to somehow add the user to samba's own database. [CODE] But why does it not sync with the linux credetials as indicated by unix password sync = Yes I don't get it.
0
0
2,515
2023-04-25T08:59:13.977
infrastructure
serverfault.com
37,748
unknown error: cannot create temp dir for unpacking extensions when trying to start Chrome from a LOCAL_SYSTEM service
We are trying to get our automated webtests working independently of what version of Chrome we're using. These automated tests work as follows: We have a Karaf container agent running as a service; Karaf starts an ant script, which in turn starts another ant script. The first ant script is part of the automation tool w...
Try to update vcqruntime 140 dll. I did that, and it works fine now.
1
0
3,656
2019-02-12T11:24:28.660
pipeline_ops
sqa.stackexchange.com
369,337
Cannot Log Into phpMyAdmin - Nothing Happens
I'm running a simple LAMP server at home from which I host a personal blog. The server is running Arch Linux, with the latest-and-greatest versions of Apache, MySQL, and PHP. In order to easily maintain the databases, I installed phpMyAdmin. However, I cannot login. If I were to SSH into the server and run [CODE] , no ...
Installing the mcrypt php module solved the issue for me (apt-get install php5-mcrypt). How I found the issue: Set $cfg['Error_Handler']['display'] = true; in config.inc.php Set authentication mode from cookie to http Log in and see the error message that mcrypt is missing.
2
2
4,503
2012-03-13T20:05:10.887
database_errors
serverfault.com
772,884
High CPU being caused by garbage collection in w3wp.exe
I am having a problem with High CPU happening on my my website in IIS8. This happens randomly and not very often but it does happen especially when the load is heavy on the site. The only way to stop it is to End Task on the w3wp.exe process and it's fine. I tried to to do a debug diagnosis below but I cant seem to fig...
Obviously you make too much garbage, so the GC takes too much time to collect it. Happens when you have bad programming. So, grab a memory profiler and analyze where the garbage comes from. Then fix the crapping code.
-1
1
2,909
2016-04-26T01:19:18.237
infrastructure
serverfault.com
218,976
SAN IOPS figure
Recently we've been having high disk latency issue and wanted to benchmark one of our mount points on a preprod server to get an idea of how much IOPS, Throughput and latency our SAN is capable of. Infra Hardware is maintained by another team and we do not have any visibility what they do. We used diskspd to run test w...
So you ran [CODE] tool with the following parameters: Discussing Parameters - b8K : 8 kB block size (default: 64K) - d60 : 60 seconds duration (default: 10s) - o32 : 32 outstanding I/O reqeusts per-target per-thread (default: 2 ) - t8 : 8 threads per target - h : disable software and hardware caching (deprecated: Use -...
1
3
1,503
2018-10-01T13:14:28.623
database_errors
dba.stackexchange.com
150,202
SSH running two commands at once?
So I want to run Apache benchmark but while it's running, I need to run htop to see the memory and CPU usage. How can I do that? Putty (My ssh client) won't let me type in a command until ab is done running. Ideas?
You can do this in the same way that you would with a local shell, using job control. For example: [CODE] Edit: Oh, you just want to do it on from a terminal session. You just use job control by putting [CODE] after the command, for example: [CODE] and then [CODE] . This makes the job run in the background. You can the...
0
1
544
2010-06-10T18:09:31.477
infrastructure
serverfault.com
752,486
Server Signature displaying even after config change
I am working on Apache 2.4, i want to make Server Signature off, so that when i get a error in the application it won't print all the information of the server. So, i added below lines of code [CODE] I added the above lines at the end of httpd.conf file. Even then when i get the error in the application i can see the s...
You mentioned you added it at httpd.conf. Try to see if its declared otherwise in some other configs, like conf-enabled/security.conf. Having these things declared multiple times on a global setting would confuse the server.
1
1
212
2016-01-28T20:08:43.213
infrastructure
serverfault.com
227,563
How a Transaction is atomic?
I am really confused as to how to digest the fact that a transaction is atomic. If a transaction is set of "queries" then how will it be atomic. I am relating the word "queries" to a general SQL query. Therefore a transaction then becomes nothing but a set of SQL queries executed at the same time. But the fact that eac...
A transaction is atomic when it's encapsulated like this: [CODE] In that case, both of the updates on the two separate tables will commit together, or they will roll back (fail) together. Atomicity means this is the smallest unit of a transaction that will commit. However, if later, you try to run a separate query outs...
5
4
7,316
2019-01-19T15:11:42.307
warehouse_errors
dba.stackexchange.com
40,162
MAC Address on Virtuozzo VPS
How do I apply a MAC Address (of my choice, not random) to a VE (Virtuozzo powered) I tried this: [root@node root]# vzctl set VEID# --mac "actual mac address here" --save Invalid usage. Option --ifname not specified In order to license software for use for my client's company, the vendor needs the MAC Addresses setup f...
You need the --netif parameter to assign the mac address to the container virtual network adapter
0
0
1,501
2009-07-13T21:45:46.950
pipeline_ops
serverfault.com
40,446
How to decrypt the username in Jmeter
I am having an issue with an application, when am recording the flow in jmeter, username and password is coming in HTTP header manager in encoded format ("TWFuYWdlcjE6cGFzczEyMw=="), I tried to decrypt and parameterize the value by adding Authorization Manger which didn't resolve my issue.
If you want to see username and password in plain text you can use __base64Decode() function available via Custom JMeter Functions bundle which can be installed using JMeter Plugins Manager : __base64Encode() function does the opposite thing: Check out How to Use the Custom JMeter Functions Plugin for more information ...
0
1
1,961
2019-08-19T06:02:35.640
data_quality
sqa.stackexchange.com
230,189
What would be the difference in choosing VMWare ESXi as Hypervisor as compared to ubuntu Linux and running VMWare workstation on top of base ubuntu
i just want to know the pros and cons, from performance and managability point of view. liek, e.g. ESXi only gives ssh access and you cannot install any software on the Hypervisor, it WILL install but on reboot will be wiped out. etc etc
VMWare Workstation is a desktop product for testing and developing and not meant to run servers for production use. Some issues Needs a complete X11 environment Needs a full operating system as basis If you happen to kill your X server for some reason, VMware dies as well Is more resource-intensive than ESXi All in all...
0
4
950
2011-02-02T15:05:18.183
infrastructure
serverfault.com
286,254
Maximum length or special character restrictions for PostgreSQL 13 user password?
I'm using a password generator to come up with a password that will be automatically pulled from Azure Key Vault and into the Postgres deployment. The passwords are manually added in Azure Key Vault with the UI and not CLI. I've tried 256-character length passwords with and without special characters. Each time I then ...
The problem isn't when you are generating a password natively in the PostgreSQL instance, but when you are using the password on the client side. A standard PostgreSQL ODBC connection string will look like this: [CODE] If you replace [CODE] with a value like this [CODE] then you will have the following ODBC connection ...
4
4
9,835
2021-03-01T21:04:02.340
api_errors
dba.stackexchange.com
16,644
can't run default/hello-minikube application in browser
I am new to devops stuff and just started learning Kubernetes. I installed minikube and kubernetes-cli with homebrew and then setup docker drivers [CODE] I created hello-minikube sample application [CODE] and then tried to start it [CODE] But in browser it just see The connection was reset error so it doesn't load the ...
On inspection [CODE] I found that I was running x86 container on ARM Macbook M1. Installed on x86 Linux and everything works as expected https://github.com/kubernetes/minikube/issues/13129
0
0
1,099
2022-09-25T19:18:35.507
pipeline_ops
devops.stackexchange.com
525,242
My domain doesn't resolve sometimes, pointing to my own dns server
I have a domain registered on 1and1.com, mydomain.com DNS settings are pointing to my own DNS server [CODE] For DNS server I use SimpleDNS software, because my server is windows based due is a gameserver This is my settings: [CODE] All my subdomains and main domain use the same TTL. I use no-ip.org in case my IP change...
You shouldn't be pointing mydomain.com directly at my.ip.number as that changes and every time it does, you have to change it manually, and it will take about 3 days for it to propagate across the internet. Instead just point it at mypc.no-ip.org. This might be one of the times when it's worth just using a CNAME on myd...
-2
2
1,429
2013-07-22T09:50:02.353
infrastructure
serverfault.com
259,772
At what level of abstraction are data structured created?
I am learning about Linked List and Arrays in my data structures class. We are make them in Java. Are actual data structures designed in Java/C? Or are they made in lower level languages like assembly? The linked list we made in class just seems to simple, it makes me wonder how real data structures differ from what I ...
The answer is both. Data Structures are implemented at all levels of abstraction as far as languages go. For a reasonably high level language like Java where memory allocation is automatically managed, you'd define the data structure in terms of Java classes and methods. In C, you'd define structures (or arrays) and th...
0
2
190
2014-10-11T23:48:22.507
api_errors
softwareengineering.stackexchange.com
335,035
pg_upgradecluster fails with 'tablespace directory "" does not exist' error
I'm trying to upgrade a Postgres cluster from PG 12 to PG 15 using this command : [CODE] My cluster uses some tablespaces: [CODE] When I run the pg_upgradecluster script, it fails immediately with this error : [CODE] All the tablespaces are located on different disks I've already upgraded another cluster which doesn't ...
as expected, the fact that the "pg_default" namespace has been renamed is the reason why the pg_upgradecluster script fails right away. to fix this issue, as I stayed before, a simple rename doesn't work. I've had to be a bit more sneaky : [CODE] et voilà ! :)
1
1
52
2024-01-20T09:48:27.753
warehouse_errors
dba.stackexchange.com
152,891
Non-English Naming Conventions
Possible Duplicate: Do people in non-English-speaking countries code in English? I know that there are non-English based languages out there, where keywords are in some other tongue, but popular languages are in English. However, if you're a non-native English speaker, developing for a non-English market, do you use yo...
I'm German but all my sourcecode files are strictly english-only ; this also includes comments and commit messages. The reasons for this are: Other people might work with the code. They are not necessarily German, too. English is usually shorter. Keywords, stdlib functions etc. are also english so it's consistent. When...
5
12
1,056
2012-06-14T12:34:13.920
data_quality
softwareengineering.stackexchange.com
27,353
Database design with different user roles connected by different relationships to one organizaiton table
An user is connected to an organization by some role. Lets say there are 2 roles freelancer and employee. One employee can only be a part of one organization and if he is an employee then he can't be a freelancer. Whereas a freelancer can be connected to multiple organization and he also can't be an employee. In short,...
What are the pros and cons of above schema? The major con that I see is that [CODE] and [CODE] have the same fields, but are different tables. The difference is what [CODE] is composed of, but I wonder if you could normalize this as [CODE] For [CODE] , you might need some application logic to create a string based on [...
2
2
2,091
2012-10-22T10:30:45.030
data_quality
dba.stackexchange.com
195,884
mget: filename.xlsx: file already exists and xfer:clobber is unset
I am getting this: [CODE] error when I try to download the contents of my FTP server. Basically it is set up using Cygwin. We recently upgraded the server where all of the data is downloaded to on a set schedule. The old server was Windows server 2003, and the new server is Windows Server 2008. I am having issues when ...
[CODE] is the setting in lftp that decides whether or not to allow mget to replace files. Add [CODE] to your lftp script so that it's set, then the mget command should replace the file.
8
16
20,056
2010-10-28T17:35:46.000
infrastructure
serverfault.com
96,355
Restore Database SET SINGLE_USER
I am in the process of writing a restore database script. I want to be able to connect as sa and run the restore script. When I run SET SINGLE_USER does this mean that my login is the only user access to the database? Or how is this determined? I want to use this as I get an error saying other connections are active. B...
SET SINGLE_USER means only one user can connect to the database at a time. If someone or some service (SSIS, SSRS, SQL Agent, etc) connects before you than you will have to wait for them to disconnect
1
2
598
2015-03-26T16:47:10.497
database_errors
dba.stackexchange.com
106,858
Not sure of settings of Exchange server
I need some help with Exchange server settings, I really do not have much time for studying right now, so please help. I have simple Windows Small Business server 2000 with Exchange and DNS installed. what DNS servers should I set in Properties of network connection? (local IP, or remote ISP DNS servers?) my exchange s...
I Realise this is a very old question but in case there are other out there wondering! DHCP should pass out your SBS server as the DNS server - Your SBS server's DNS forwarder should be set to forward out to your ISP or another public DNS server I.E Googles: 8.8.8.8 or 8.8.4.4 To stop spam attacks ensure your server is...
-1
2
71
2010-01-07T22:39:21.250
api_errors
serverfault.com
588,723
less IOPS number but better READ/ WRite performance
I tried measuring virtual disk performance using bonnie++. Case 1 result : [CODE] Case 2 Result : [CODE] In case 2 , I get better performance (correct me If I am wrong). So I interpret results in this way: Case 1 : [CODE] Case 2: [CODE] As you can see, write, Re-Write, Read performance is better in Case 2 except IOPS??...
IOPS are important for non-sequential IO. Throughout is important for sequential IO. It's possible (and likely) to see what you're seeing depending on the workloads.
-2
3
319
2014-04-13T15:03:59.557
infrastructure
serverfault.com
11,834
How do I list pod name/version across multiple clusters in Kubernetes
I have multiple clusters that I want to query and in each cluster I want to find and list the versions of the pods running in there. I've written a shell script that sets the namespace and then changes context to each cluster and then runs [CODE] in each cluster. This seems to be a very hacky and clumsy approach to thi...
The best I have found so far for part 2 is to use the JSON output of [CODE] : [CODE] produces [CODE]
1
2
5,006
2020-06-16T22:27:09.957
pipeline_ops
devops.stackexchange.com
1,153,397
Possible to use two tape drives alternately with tar?
I have a two drive, 24 slot LTO library. I am testing the use of a script on the tar command "--new-volume-script=COMMAND" that when called, contains the changer "mtx -f /dev/sg2 next" command to load the next tape. Ideally, I would like to have the next tape loaded in the 2nd drive so tar would switch to it immediatel...
Point tar at a symlink to the tape device and have the "COMMAND" swap the symlink point to the other device. (or you could go all out and call [CODE] from the script)
0
1
23
2024-02-12T06:09:10.647
infrastructure
serverfault.com
631,462
Port forwarding with iptables -> connection refused
I am trying to redirect requests to my local IP (10.42.42.152) on port 80 to a remote server, e.g. google.com (173.194.113.104:80). The remote server is up, ip_forward is enabled but I only get "connection refused". [CODE] Show that ip forwarding is enabled: [CODE] The following are my default iptables rules: [CODE] Lo...
The configuration works as is but not for local requests. So if some other host in the network (e.g. from 10.42.42.15) tries to connect, everything should work as expected. For connections from localhost I found https://unix.stackexchange.com/a/113651 Just add: [CODE]
7
6
12,372
2014-09-26T08:40:32.360
api_errors
serverfault.com