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
681,169
iptables KVM prerouting SMTP
I have a host machine that has to manage traffic on port 25 and route to port 25 on the KVM machine for postfix deamon like this scheme: [CODE] I've already opened port 25 (and others) and added this rule to iptables: [CODE] From my laptop now I'm able to connect to the postfix server and send emails but the KVM machin...
Your [CODE] rule will route all TCP traffic , received by your KVM host, on port 25, to KVM guest, no matter the interface or destination. You should add either interface or destination IP (or both) in that [CODE] : [CODE] or [CODE] or [CODE]
1
3
889
2015-04-08T08:15:28.913
infrastructure
serverfault.com
319,936
Check if running inside a PostgreSQL extension setup/upgrade script
Is there a way in PostgreSQL to check whether the current context is during [CODE] or [CODE] ? I'm switching over some of my schemas that I managed with my home-brewed PostgreSQL migration framework to be based on extensions instead. In my migration framework, I had various way to see if I was running within a migratio...
1. Finding out if and which extension is being installed All one has to do to find out if an extension is currently being installed is to create any type of object that would normally become tracked as part of the extension (i.e., any object type that can be appropriated or disowned via [CODE] .), and then check (via t...
0
0
120
2022-11-20T12:21:20.047
database_errors
dba.stackexchange.com
64,422
Error while using predict
After splitting into test and train the glm function is used on train set. For example [CODE] Then [CODE] Here I am getting warning message : newdata has 60000 rows but variables found have 100000 rows And the next step: [CODE] Here I am getting error: all arguments must have same length What is the solution for this?
Works find for me. Maybe you have some error in the definition of the train/test set? [CODE]
1
1
27
2019-12-08T14:55:50.643
data_quality
datascience.stackexchange.com
185,808
Oracle: How to get list of objects accessible to the user?
I want to get list of all objects which is accessible to the login user. The list should include Table, Sequence, Function, Procedure, View, Sequence, Index, Trigger etc. I am using Oracle 11g and Oracle 12c. My requirement is that the owner of the db objects grant privileges to other user, so that user can access thos...
Community wiki answer : [CODE] lists all the object types, at least those which you need, except triggers, for which you can query [CODE] .
0
1
4,824
2017-09-13T06:06:37.803
database_errors
dba.stackexchange.com
1,099,771
Redirect to other server and domain if file not found
I have migrated from Apache to Nginx so I want to set all rules in Nginx. Goal: Redirect a URL to another domain with the same filename if that file is not found on the requested server. Example If a user open https://www.example.com/data/1.jpg then my server will try to find "1.jpg" in "data" dir. If that file is not ...
I got the solution after modifying @Rob answer. [CODE]
3
2
5,433
2022-04-29T12:22:45.760
database_errors
serverfault.com
7,212
Pairwise-Testing: How do you identify equivalent software code?
As some of you might've already noticed I'm trying to find some shortcuts in software testing with pairwise method. Last friday I stumbled upon some modules under test, which all have some basic features in common. When I asked some colleagues (from QA) weather the code for a common feature is the same for all modules ...
I read once this paragraph in the Django (Python framework) tutorial about repeating testing and it definitely convinced me: When testing, more is better : It might seem that our tests are growing out of control. At this rate there will soon be more code in our tests than in our application, and the repetition is unaes...
2
2
145
2013-11-25T07:38:00.550
data_quality
sqa.stackexchange.com
632,049
Shellshock: How do I know if my server is compromised + suspicious files to look out for
Three questions which I hope someone can help answer: How do I know if my server is already compromised due to the Shellshock bug ? If it was compromised, is there a particular folder where I should look for malicious files? How does a malicious file look like? I'm running CentOS 6, LEMP stack
How do I know if my server is already compromised due to the Shellshock bug? You don't. That's the idea of a security vulnerability. If you had to click Let the crackers in? OK/Cancel it wouldn't be much of a vulnerability. You may have some luck checking the logs of your attack vectors, but given that so many services...
18
36
10,732
2014-09-29T11:34:05.143
infrastructure
serverfault.com
227,788
alternatives to passing temp table as a parameter to a stored procedure
some time ago I was developing a simple procedure to get the database sizes on a particular server. Here it is the procedure: [CODE] And here is how I used to call this procedure: [CODE] Question: Although it works is there a more [CODE] way to get this done by doing something else rather than passing a temp table name...
You can create the temp table inside sp_getDbSpace and then return a single resultset. Like this: [CODE]
1
0
2,964
2019-01-22T18:50:41.797
database_errors
dba.stackexchange.com
258,014
Is it generally faster to select into a temp table than selecting into an actual table?
I thought I once read somewhere that writing to tempdb is faster than an actual table not in tempdb. Is this true in any capacity? I thought I recall it saying something special about tempdb and storing the data in memory?
writing to tempdb is faster than an actual table not in tempdb It's true. There are two IO enhancements in TempDb. Writes to a table in a user database must have their log records flushed to disk on commit, or if a minimally-logged insert (like SELECT ... INTO), must have the database pages flushed to disk on commit. T...
37
58
7,682
2020-01-22T23:49:41.113
database_errors
dba.stackexchange.com
52,199
Security Risk? Microsoft-HTTPAPI/2.0
Whilst security vetting our machines, I found that one host was exposing a Microsoft-HTTPAPI/2.0 service over port 80 to the internet. I'm not familiar with this, but after googling around, I found that SQL Server 2008 publishes SQL Server Reporting Services on port 80 by default and identifies itself as HTTPAPI/2.0. T...
The most common cause for this Server response header is when IIS cannot determine which website to serve. IIS will respond with this Server header when the following are both true the request contains an unrecognised Host header no default website is configured Alternatively, if the configuration for the website that ...
17
3
84,879
2009-08-10T10:52:00.837
database_errors
serverfault.com
637,939
Can PoE kill unmanaged switches?
Two simple unmanaged switches have died in the same cabinet in two years, one at 18 months and one just today at six months. Both times we gradually experienced increasing intermittent verified connectivity failures for all equipment (two linux boxes and a Debit/credit terminal) except the uplink (port 1) and the fourt...
At this point, try to use slightly better switch equipment than what you've been using. Consider HP ProCurve web-managed or unmanaged swtiches, for instance... They're inexpensive and have lifetime warranties. That does make a difference and helps protect the investment. It's a visible piece of equipment and there isn'...
3
1
1,853
2014-10-18T03:59:55.050
infrastructure
serverfault.com
749,965
Supermicro X8DAH+-F will not power on
I have a Supermicro X8DAH+-F Rev 2.01 motherboard that will not power on. I have two Xeon E5645 installed and 6x 8GB 2Rx4 PC3-10600R DIMMs installed in the A and B slots for each channel of each CPU respectively. Ram Link The fans spin briefly then stop when turning on the PSU and the BMC light flashes, but I cannot po...
4 beeps with this AMIBIOS indicates a problem communicating with the RAM or a clock generation problem on the motherboard. In my case I identified a damaged pin on cpu socket one that maps to slot 1, bank 1 of the memory controller.
2
2
1,402
2016-01-18T16:28:04.420
infrastructure
serverfault.com
809,457
FreeBSD bandwidth throttling per IP
I have a public HTTP server running FreeBSD. Nginx allows me to limit throughput per connection, but I don't want to limit each IP to only 1 connection so I need a solution to limit per IP. Nginx cannot do that for me and the 3rd party modules to do it are no longer maintained. With nginx not being an option I figure s...
Actually there is. It's called dynamic queues if you need prioretization, or dynamic pipes is you need shaping, both implemented in DUMMYNET . It's possible to combine these two to make a real CBQ-coniguration. A brief example on dynamic pipes from man 8 ipfw : A more sophisticated example is limiting the outbound traf...
1
1
1,573
2016-10-17T06:45:47.933
database_errors
serverfault.com
317,226
What's the best way of going about storing information from different groups of users?
In my application, users (and all data) is grouped by company. So, for example, every customer in the database has a company assigned to it, as does every product etc. The user can log in with their company ID and they can only access the information from that company, however this feels like the wrong way to do things...
Best depends on what the important criteria are, but your options include: What you are currently doing. Row level access control and a different database username for each company, (if your server platform suppoets that) A diffreent set of data tables for each company (eg in a different database or schema) A different...
1
1
232
2022-09-22T08:18:04.837
warehouse_errors
dba.stackexchange.com
212,352
How to move a Daily Partition to a Monthly Partitioned Table
I would like to switch out a partition from a daily partitioned table and merge it into monthly partitioned table. I am unsure as to how to go about it. Here's what I have so far. I have two tables, Event_Daily and Event_Archive_Monthly . Both tables are partitioned on CreatedDate datetime with Event_Daily being partit...
Community wiki answer : Is there a way, using the Partitioned Table, to merge the SwitchOut table that is on the filegroup Daily_2018_06_18_FG into the partition on Archive_Monthly_2018_06_01_FG? No, you'll need to use [CODE] for row processing. [CODE] DDL are partition level.
1
1
915
2018-07-16T18:10:38.363
hadoop_errors
dba.stackexchange.com
353,135
Alternate way to create a clone of a UNIX System
THE STORY: (If you don't like to read much, down below is the question :) ) Where I work we have two HP RP2470 servers same hardware same number of hard drives same everything :). One of them is a production server and runs HP-UX 11.00. The poor ba***rd hasn't been turned off for years and now I have to make a clone of...
I assume the disks are SCSI ? If possible hook both disks up on a 3rd machine (Intel box) and use a Linux live-CD (PartedMagic is ideal for this) to boot that system. Then make a RAW disk 2 disk copy wit GPartEd (or even DD if the disk-format isn't recognized). That is the easy and probably most reliable way. Of course...
3
3
6,465
2012-01-24T16:02:40.990
database_errors
serverfault.com
1,027,060
How to assign array_name dynamically to with_items in Ansible
I have a json file (server.json) with the content like this: [CODE] I have to assign this servers to a group dynamically with the below code: [CODE] So value for server_vaar mentioned in vars will be passed to the script as extra variable from Splunk or by manually when the ansible script runs. This server_vaar value c...
Use lookup plugin vars . For example [CODE]
1
1
1,504
2020-07-28T14:26:16.240
pipeline_ops
serverfault.com
998,496
CentOS httpd 403 Forbidden
I recently setup my first CentOS7 (64-Bit) server. Previously I used Debian. I set up httpd with 2 simple vHosts but all I see in the browser is Error [CODE] . I made 2 folders in [CODE] which are named as the domains are. In those folders I put a simple .htm file which outputs only a few words. After that I gave [CODE...
The issue was, that the webserver wasn't able to handle [CODE] files. But the index files were [CODE] . I had to allow the usage of [CODE] files in a [CODE] . Unfortunately I don't remember where the file. D: I hope, that might help users with the same issue.
0
0
797
2020-01-10T18:20:15.223
api_errors
serverfault.com
39,192
Deployment Manager Vs DBA Cage Match On Pushing Releases To Prod
Our company has now hired a full time release engineer for the MS Windows side and we were thinking of a release management process for MS SQL Server. IF we have confidence in their abilities to deploy SQL Server scripts, is it common to just have the release manager do it or is it something that the DBAs typically do?...
Firstly, every environment is different. What works in my environment won't automatically work in yours. (We = DBA Team) In mine we have the following environments for this process Dev - Normally we restore a copy of live in preparation for a release and sanitise data as required. We then back that up and enable the de...
4
2
433
2013-04-03T21:30:03.647
database_errors
dba.stackexchange.com
233,719
Speed up UPDATE on large table
We are migrating our ids from [CODE] to [CODE] in some of our tables. The first step for us is to create a new temporary column [CODE] that has the correct type, and then we want to migrate the existing [CODE] into the new [CODE] column. We want to do this in batches and one of the easiest ways I found is to copy 10k i...
HOT update solution Since the "id2" column being updated is not itself indexed, your updates are eligible for HOT (heap-only-tuple) updates. This would spare you all of the work of maintaining the other indexes. However, in order for HOT updates to work, there needs to be room in the same data page for the new version ...
1
2
1,278
2019-04-02T07:32:31.970
database_errors
dba.stackexchange.com
617,582
Graylog2 server cannot connect to Elasticsearch
I try to follow Digital Ocean manual except using last versions of components. My [CODE] : [CODE] Elasticsearch says it is ok. Then I try three versions of [CODE] : [CODE] In second version I add line [CODE] and in third the same line with [CODE] port. With these configs I have 3 logs for [CODE] : first , second and th...
You must use version 0.90.10 of Elasticsearch with Graylog2 0.20. It is using the binary protocol and those are not generally compatible between versions, unfortunately. This line: [CODE] is what gives the problem away, the protocol is different, so the Elasticsearch client cannot connect to the server. If you use 0.90...
1
1
4,823
2014-08-03T15:23:02.280
database_errors
serverfault.com
328,448
How to tell if SQL Server user is contained?
Scenario and Initial Question Imagine you sit down at the keyboard of an arbitrary SQL Server host (traditional SQL Server, on a machine; not Azure) that you've never used before. You have administrative credentials, and need to assess the security configuration of one of its databases. What query can you run to determ...
What actually makes a user contained or login-based? A SQL user created in a contained database with the [CODE] option is always contained. The authentication_type_desc column of sys.database_principals will show [CODE] and the contained database authenticates the user based on credentials stored in the database. A ser...
3
4
726
2023-06-20T04:52:31.087
database_errors
dba.stackexchange.com
1,087,534
How to force Linux users to respect max login rate
How does one set a rate-based throttle and/or quota for SSH logins per user on a shared system? For example: limit an SSH login to one time per 10 seconds. Things I've looked at: pam throttle and throttle2, but those look for failed logins and then throttle. I instead want to look for successful logins and then throttl...
[CODE] allows custom filters and custom actions. You can create a custom filter to parse appropriate logs for successful ssh login with appropriate action. You can find many examples of different filters in [CODE] and many examples of different actions in [CODE] If you don't want to use IP blocking then you can lock a ...
1
2
659
2021-12-16T21:03:27.297
infrastructure
serverfault.com
260,871
Is it possible to force a query to ignore the server option "remote proc transaction promotion" so it doesn't promote remote proc transaction?
I have a specific query that executes a stored procedure on a remote linked server and inserts the results into a local temp table. I don't want it to promote a remote procedure transaction but I can't re-configure the server. Is there a query hint or some way to force it to not promote a remote procedure transactions?...
Is there a query hint or some way to force it to not promote a remote procedure transactions? No there isn't, but if you're currently doing something like this: [CODE] or [CODE] You could work around it using: [CODE] Assuming you're using a simple procedure that returns a single result set. You may also need to add [CO...
2
4
531
2020-02-28T21:08:23.897
database_errors
dba.stackexchange.com
56,483
How do I stop the clock running fast on a virtualbox client running ubuntu 8.04?
I'm having a problem with the clock running fast in Ubuntu 8.04 server (2.6.24-24-generic kernel) running in VirtualBox 3.04. It's drifting quickly, something like 5 minutes per hour. I think it was working fine until I upgraded to VirtualBox 3.04 (from 2.something). I had [CODE] running and the only thing I had to do ...
This was a know issue in VirtualBox, resolved by installing the Guest Additions on the Virtual Machine to manage the TimeSync. Their was a similiar problem with VMWare a while back as well. This is just one of the times it was reported for VirtualBox. Ensure you are running the latest guest additions and it is the late...
3
2
7,140
2009-08-20T05:57:50.960
infrastructure
serverfault.com
157,627
Why Does ad_zd_table.upgrade Convert Triggers To Point at the # View?
Why does the ad_zd_table.upgrade function (used to notify editioning of modifications in a table schema) automatically change the database triggers to point at the # view of that table? (In our case the result is that the triggers stop firing. I checked and they are editioning views that in theory support triggers, but...
I believe now this is by design. The solution is to point the source code for insert/update/delete statements at the editioned # view of the table. Then the triggers work. Alternately, you can create a synonym and point the insert/update/delete statements at the synonym. I'm not sure which is a better solution--althoug...
0
0
1,870
2016-12-08T22:09:35.203
warehouse_errors
dba.stackexchange.com
903,280
Should I create a separate partition for full server backups?
Before I start the question I will just state that I am no sysadmin, but a layman seeking help. I'm using Linux 3.10.0-514.26.2.el7.x86_64 and Amazon Web Services external backup service. In order for it to work I need a backup directory on my server, where all the files will be zipped, copied to and accessed from by t...
I would respectfully disagree with another answer and say that proper partitioning is essential to maintaining Linux servers in so many ways (cannot say much about Windows as that is not my experience). I do always use separate partition for backups and this has been incredibly helpful not only for planning the space p...
2
1
486
2018-03-18T17:49:16.630
database_errors
serverfault.com
152,380
How is an Index Seek satisfying this query?
I'm using the AdventureWorks database and running the following query: [CODE] The execution plan shows that it's using an [CODE] , however, there is only one index on the table; that being the primary key on [CODE] . The table is defined as follows: [CODE]
The AK_ContactType_Name index is a unique nonclustered index on the Name field: [CODE] There are two indexes on this table by default - the primary clustered key, plus the above one.
0
3
53
2016-10-15T19:45:53.430
database_errors
dba.stackexchange.com
15,406
Looking for a HEADLESS C# Selenium automatic nightly regression test solution
The WHY : I am looking for options and possible full solutions if someone has already done something similar. I am testing web-based applications using C# Selenium with VS2015 by writing tests that automate the browser and make sure its doing what its supposed to be doing. I have written a whole test suite to test ever...
I actually saw this being done by Microsoft during STAR West. They showed me that there is a Nuget package for Selenium web driver . IIRC, they were using PhantomJS for headless browsing. I had an idea that we could make a separate server for this nightly testing. But what else is required? That depends on your applica...
2
1
1,313
2015-10-29T15:35:49.867
data_quality
sqa.stackexchange.com
170,871
Unable to Restart the SQL server Agent from SSCM
In my machine SQL Server Agent is not expandable with a label (Agent XPs disabled). In this case I run this code to enable it. [CODE] Then Restart the Agent on SQL server Configuration Manager, it throws this error: The Request failed or the service did not respond in a timely fashion. Consult the event log or other ap...
Since we identified it was a permissions issue via the comments, I would suggest you adjust the account running the SQL Agent service to something different if this is a server. Microsoft does a great job to outline the permissions needed for the SQL Agent service account. That article also highlights a few pitfalls re...
1
3
658
2017-04-12T19:26:11.887
database_errors
dba.stackexchange.com
249,467
Use camera to analyze homogeneity
We are working with some screens whose in the production process change their state from a transparent state to a colored state. This colored state is achieved to block light transmittance. In this process where the screen gets tinted, this tint must be applied homogeneously. This is a very important point of the proce...
I'm not sure why you're being asked to develop this as an Android application. If this is a real production facility, you probably want to use some kind of industrial solution. I would suggest contacting someone from a machine vision company like Cognex and tell them about your application. They might have an off-the-s...
1
2
194
2014-07-10T08:09:21.067
api_errors
softwareengineering.stackexchange.com
304,622
Glassfish behind Apache reverse proxy: Mod-jk or HTTP?
I am planning a large deployment of a Glassfish-powered web application: A number of nodes running multiple Glassfish 3.1.1 instances are running the web application. The web application consists of a GoogleWebToolkit frontend and a REST gateway. The instances are combined behind an Apache 2.2 reverse proxy / loadbalan...
http proxy would open many connections between your balabcer and app server. mod_jk should be less resource hungry because AJP protocol handles many requests through a single connection. Also with mod_jk should be easier to serve static contents through the apache httpd. btw mod_cluster has advantages dealing with dyna...
2
2
1,815
2011-08-24T18:12:39.180
pipeline_ops
serverfault.com
962,628
Failure connecting to a CyberArk managed server using MacOS
My company has recently implemented CyberArk (10.6.0.23) to manage and control the remote access to the servers. I have no issues accessing the servers using a Windows 10 PC, however, when using MacOS (in my case Mojave) I'm getting issues after downloading the RDP file and trying to connect via Microsoft Remote Deskto...
I've found the solution for this problem. Basically, Microsoft RDP Client version 10 does not support connecting without NLA, since it ignores the value of the parameter EnableCredSspSupport. This means that PSM sessions with PVWA will not be successful with RDP Client version 10. Try the following steps to get it sort...
0
1
4,620
2019-04-11T15:08:08.403
infrastructure
serverfault.com
249,328
Amazon EC2 - Reserved Private Addresses
I've got a private DNS Server running on Amazon EC2. I don't need a public IP Address because its only used for private addressing web1.xxx.internal database1.xxx.internal Problem is I had to terminate the instance recently and start a new one. This meant that the private IP address of the DNS server changed and I had ...
Use puppet to keep the configuration in sync. Changing the configuration on your puppet server it will be replicated on all other servers. Also you can use bcfg2 or cfengine, is your choice. Just for a simple file synchronization you can use unison.
3
1
439
2011-03-19T16:37:33.937
infrastructure
serverfault.com
151,632
Postfix spool on ext3 optimiziations in >=linux-2.6.34 days
Given the very specific nature of the subject (we're not talking about mailboxes, just the spool; we're not talking about other filesystems, just ext3; and so on...) and the maturity of the softwares involved (linux kernel, ext3fs, postfix) I'd think there should be a more or less agreed on set of best practices to fil...
Given the specific nature, I tend to use default settings. In my case, postfix was never really the bottleneck and I and I spent most of my time tuning AntiSpam/AntiVirus/MDA. Rianto Wahyudi
5
2
950
2010-06-16T10:34:02.803
infrastructure
serverfault.com
251,400
Do I need to care about 'Thread safety' in java web applications
I have general understanding that what thread safety means , but I don't know much about threads in context of a java webapplication. I am just curious to know that do I need to concern about thread safety while working with web application. Can their be chances that my web application will cause some problems if I hav...
Yes you certainly do :) Most (all?) JEE web containers will run your classes with concurrent multiple threads. Also, frameworks like Spring MVC use singleton class instances to service all threads. But following a few simple guidelines will keep your code thread-safe. You cannot store data that belongs to the user in m...
4
8
6,778
2014-07-28T08:29:23.640
api_errors
softwareengineering.stackexchange.com
667,791
Multicast and duplicate IP addresses
I've developed a [CODE] client/server application, which allows a user to remotely change the network configuration of devices belonging to the same [CODE] . But what if a device was assigned the same [CODE] as another device within the same [CODE] ? Will both devices receive the [CODE] request? For instance, consider ...
No. Multicast packets are sent to a special address where only the devices in the group are listening at. This is independent of your main (unicast) IP address. The multicast IP address is tied to the devices' MAC address on the network fabric (AKA switch infrastructure) and not to their main IP address. So effectively...
-1
2
1,188
2015-02-14T17:39:04.010
data_quality
serverfault.com
447,360
How to build REST uri that fetches children by parent ID
I am building 2 REST microservices: ParentService and ChildService. I need to build endpoint to fetch all Child resources related to specific Parent, so I have these URI's as options: [CODE] [CODE] [CODE] But neither seems to be proper solution: [CODE] prefix is reserved for ParentService. Also, fetching child resource...
Is there any standard practice in REST to cover this case in Microservice architecture? No, because REST does not prescribe things such as reserving certain route parameters for certain microservices. REST does not contain any definition of microservices to begin with, let alone how multiple microservices should(n't) i...
1
5
688
2023-09-02T19:17:30.433
api_errors
softwareengineering.stackexchange.com
1,151,857
How to share docker metrics with Prometheus using Ubuntu server Snap Docker Service
I am using Ubuntu server with a Docker Service installed from the Server Setup (snap) and Prometheus running in a docker container. Server: [CODE] Docker [CODE] snap [CODE] Prometheus docker-compose.yml [CODE] Docker IP: [CODE] Issue So what I want to do is get metrics for my Prometheus Server running in a docker conta...
Docker Compose is creating a network called "prometheus_default" and it's attaching the Prometheus container to that network. You have Docker daemon set to advertise metrics on the [CODE] interface which is generally on the [CODE] default network Docker creates. On the host where Docker is running, you can verify Docke...
3
4
308
2024-01-19T12:35:58.913
pipeline_ops
serverfault.com
597,582
Bind: "unexpected end of input" due to NS
I have stumbled upon an odd error in a master-slave(s) configuration of Bind. The zone works fine on the master, but on the slaves I'm getting these kind of errors: [CODE] This is what my bind file looks like: [CODE] If I uncomment the two NS lines that are commented -- I'll get "End of Input" errors. If I keep them co...
I think you're running up against the maximum allowed UDP DNS packet size of 512 bytes. Prior to making the expected [CODE] request (which runs in TCP mode; no size constraint), a slave server will also make a [CODE] query in order to confirm that the master considers itself authoritative for the zone. The problem you ...
6
4
6,118
2014-05-21T17:14:49.817
infrastructure
serverfault.com
9,791
MySQL Sharding tables/servers or other methods to reduce table sizes?
I'm currently working with a table exceeding 12 million rows (at about 3 GB when exported with [CODE] ) and am curious how huge a table can realistically get without any serious performance impact. The table is growing about 100,000-200,000 rows a day or so. Should I be starting to think a little about sharding this da...
A good RDBMS can grow to accommodate extremely large data. 3Gb databases are very manageable, and very probably, as long as you can get a server with enough RAM, most queries will run pretty fast with little effort. Even when you exceed RAM, indexes, caching and partitioning let you still perform well. Very often, appl...
1
2
892
2011-12-27T23:43:27.297
database_errors
dba.stackexchange.com
419,053
sed replace text - escape characters
I have a mysqldump file in which I want to replace the following text [CODE] with [CODE] but can't find a way to correctly escape all special characters. I'm using the following command (+ a few other variants) [CODE] but it's not working. Can anybody help? Update 1: Turns out that the source string in the mysqldump is...
No need to pipe [CODE] to [CODE] : [CODE] Remove the percentage sign You only need to escape the slash Specify an in-place editing ( [CODE] ) if you want
0
4
14,787
2012-08-19T08:15:53.887
database_errors
serverfault.com
264,903
Option shared_buffers in PostgreSQL
I have a server with 4GB of RAM and PostgreSQL 9.0.3 on Centos 5. I'm using [CODE] and [CODE] to measure performance using two [CODE] queries: [CODE] and [CODE] . With default settings of [CODE] and using a select query, I get the following results: Scale: 1, 10, 100, 1000. Transactions per second: 10000, 8800, 7500, 1...
The only thing that consistently makes pgbench slower when you increase shared_buffers is a debugging option called assertion checking. If you do this in psql: [CODE] And it's on, your build has this problem, and the results you're seeing are expected. You need a new install that's not enabled for assertion debugging t...
4
1
851
2011-04-29T14:41:40.263
api_errors
serverfault.com
575,410
Is there any kind of log of configuration changes to a Windows Server? If so, where can I find it?
I'm in the middle of troubleshooting an error with one of my Windows Server 2008 R2 instances, but I'm pretty new to windows server management. As part of troubleshooting this problem, I'm trying to gather as much information as I can about what might have changed to help me figure out root cause. I know with many tool...
Not by default, not globally. You're basically left with sifting through the Event Logs, and hunting down any application or role-specific logs that don't go to the event log. All while hoping that whatever it is actually possesses the capability to log whatever configuration change happened, and is set to do so. It's ...
4
3
4,698
2014-02-13T17:56:36.530
infrastructure
serverfault.com
871,251
nginx rewrite not working, but not sure why
I must be missing something really stupid here, but I can't see it. I have the following URL format: [CODE] ...and this rule: [CODE] However, it gives a 404: [CODE] UPDATE: OK, well I have found the offending rule, but I'm trying to work out how to get around it. [CODE] My main config for the domain is: [CODE] As you c...
Chances are, nginx isn't seeing the rewrite. The regex looks correct to me, so I'd look to see if it's in the correct place in your nginx configuration and that your URI isn't being picked up by another location or something. EDIT: Judging by your use case of multiple includes for 301's, my suggestion would be to move ...
0
2
4,156
2017-08-30T12:56:12.310
infrastructure
serverfault.com
654,797
Cobbler with puppet - slow in installing packages
I have setup cobbler that runs puppet automatically after OS installation. It works fine, except that it takes a while for puppet to install all of the packages. This is still a testing phase, so it was just around 15 packages in total. My site.pp looks like this: [CODE] myrepo is just copying a repository file to the ...
Unless you set explicit dependencies, the ordering of resources may be a problem. The way you wrote it does not mean that the repo will be deployed before applying the other classes. For example this: [CODE] Would order it correctly. You could also add a [CODE] to the [CODE] and [CODE] class. There are many solutions t...
0
1
324
2014-12-26T05:12:11.777
pipeline_ops
serverfault.com
663,555
apache servers not sending data after glibc update
I have an apache download server that I recently performed a botched install of a new version of glibc on, and now I only get 'no data received' when attempting to retrieve files. Server version: Apache/2.4.6 (Unix) I'm running CentOS Linux 6.6, installed glibc-2.12-1.149.el6_6.5.x86_64 via rpm, as at the time a networ...
Have you looked into your Apache configuration files? If possible, compare your httpd.conf and related files to a recent backup just before your glibc fiasco. In particular, it seems odd that a request for a file download is being sent to your cgi-bin directory. Try looking at the "Directory", "Alias", and "ScriptAlias...
0
0
280
2015-01-29T21:15:21.223
infrastructure
serverfault.com
988,852
Windows Server 2012 applocker does not work on Windows 10
Configured applocker to prevent opening cmd , go to system services application identity=automatic,preferences services=application identity set to automatic, link the gpo(applocker) to the whole domain somehow, it only works on the domain computer itself ,and windows 8 clients, doesnt work on Windows 10 Am i missing s...
AppLocker Policies are strictly enforced for Enterprise OS (Education* for Windows 10 too). Make sure the correct OS is used and no WMI filter are used that would block the GPO from appling the settings.
-1
0
186
2019-10-21T13:50:22.787
infrastructure
serverfault.com
179,939
Select Case Query
[CODE] Please Help me out to find the syntax error in the above query. I am new to MySql so Please Help me out with this.
Maybe something like ... [CODE] The column with the [CODE] expression can be simplified to: [CODE]
-1
4
151
2017-07-16T04:39:40.037
database_errors
dba.stackexchange.com
398,166
sudo to the same ordinary user, without authentication
My script, when executed as root, uses the sudo without passwd, and that is fine. Sometimes however, I must execute that script as an ordinary user, which "switches" to itself by that sudo command. I must omit the passwd procedure in this case also. Currently I use the default (almost empty) sudoers file. I'd like to e...
Say that the user that must execute the script is [CODE] , the full path to the script is [CODE] . Using [CODE] , add the following line [CODE] To execute this (you can omit the full path if the script is in the [CODE] : [CODE] But... there's any reason why you can't execute the command without sudo? There shouldn't be...
-1
0
621
2012-06-11T16:42:13.083
api_errors
serverfault.com
370,405
SQL Server Agent job fails to backup to remote folder
I have created a SQL Server Agent job (in SQL 2008 R2) to back up some databases on a server. This task runs fine when the backup folder is set to a folder on that machine, but when I try to set it to a remote folder location, it does not work. I get the rather unhelpful error [CODE] I've looked at the windows event lo...
SQL server is referring to the SQL Server Log, not the Windows Event log. Your SQL Agent process has no permissions to write to the remote location; you will have to grant access to the user running the SQL Agent process.
0
3
1,435
2012-03-16T11:16:05.893
database_errors
serverfault.com
209,236
Is it safe to remove makewhatis from /etc/cron.weekly?
I have a micro instance on Amazon EC2 and because of the low resources allocated to micro instances, I have an issue with one of the weekly cron, [CODE] . It takes a while to complete and uses a lot of CPU and while it's running, the instance is barely (if not) responding. I tried to modify the cron to use [CODE] and i...
[CODE] is only used to create the index for [CODE] . If you never use that capability then you don't need it. If your set of man pages never changes then you only need run it once.
2
4
5,332
2010-12-05T05:17:19.733
infrastructure
serverfault.com
56,444
Delete data from huge InnoDB table from MySQL Master and Slaves
We have some huge tables in MySQL database, We have already archived/deleted data older than 2012 in 2013, Now we need to archive/delete data older than 2013 means we need to archive data for year 2012 without application downtime. [CODE] So I need to delete 611992998 records from biggets table. We have One MySQL Maste...
Here are some things you should consider: CONSIDERATION #1 Using [CODE] is not replication-safe because the 5000 rows being deleted may not be the same order or the same set of 5000 rows on a slave. See MySQL Documentation (Replication and LIMIT) . Should a DELETE on a Master get interrupted, it has to rollback. In tha...
3
4
6,859
2014-01-09T12:44:42.237
hadoop_errors
dba.stackexchange.com
979,448
Does Xeon Harpertown (E5400 series) support ECC DDR3?
Is it possible to use Xeon E5450 with 8GB (preferably 16GB) DIMMs of DDR3 Registered Buffered ECC RAM ? I checked Intel's Spec page for Xeon E5450 and Wikipedia Xeon#Harpertown Harpertown spec table Information paragraph None explicitly mention ECC (specifically DDR3 ECC) with regard to Harpertown Xeon. However the inf...
Desktop 775 boards that support DDR3 do not support ECC Intel generally does not allow ECC on their desktop (775) segmented chipsets. The Socket 775 Chipsets that I've looked at that support DDR3 are 82P43 and 82P45. P43 explicitly does not support ECC P45 explicitly does not support ECC Max RAM is severely limited on ...
0
0
980
2019-08-15T20:18:11.370
infrastructure
serverfault.com
910,983
Getting latency on VM when creating snapshot of Virtual machine
I have Vmware and we are taking backup of virtual machines using NetBackup software. When Backup starts it creates snapshot and then takes backup. During snapshot creation it freezes vmdk for certain time, due to this users are getting disconnection error on application running on VM. As the server uses time is 24x7 so...
You can minimize the stun by exluding the guest memory from the snapshot. Including the memory requires to halt the machine until RAM contents are written to disk.
3
1
204
2018-05-06T19:33:30.143
database_errors
serverfault.com
716,451
Issue with bind_ip on mongodb mon Virtualbox
I have been struggling with mongo bind IP for a while , I think this is the time to shout for help. I am using hostonly network [CODE] . I have 4 boxes. 3 boxes for mongo [CODE] . and one box for the app [CODE] . So for mongo bind param is : [CODE] [CODE] I really don't see what's wrong anything with any other IP. asid...
The [CODE] directive is meant to specify the IP addresses on that same system to which MongoDB listens for connections, not IP addresses from which it receives connections. Set this option to configure the mongod or mongos process to bind to and listen for connections from applications on this address. You may attach m...
1
1
1,994
2015-08-22T13:01:15.820
database_errors
serverfault.com
102,313
Creating & handling large matrices in python?
I need to create a large matrix of size 400,000*400,000 and do some transformation on it. I am not able to do it using python in my laptop due to memory constraints. What technologies I can use to achieve this?
I don't know if this is your job work or your personal project but cloud services can help you. Create a free account on Azure (you get 200$ worth free credit for 1 month) and the account is free for1 year. You can run your project there using Azure Machine Learning/AutoML/Python SDK whatever you choose. Use the free 2...
0
3
1,579
2021-09-22T07:28:58.867
data_quality
datascience.stackexchange.com
50,354
How to handle download pop-up in Firefox, while downloading XML using Selenium Webdriver?
I am trying to download an XML file from Firefox and Webdriver, but I can't handle the download pop-up. This issue comes only for downloading the XML files. When clicking the button, I need the file to download automatically, without a pop-up. Here is my code: Popup Window: Mime Type: Can anyone help me out with this i...
What version of Firefox running tests with? There was an issue around a year ago which affected a lot of us just for the download of the xml files, where the download save to disk box always appeared. This was resolved by Mozilla for browser version v.85.0.2 onward. See issue thread here: browser.helperApps.neverAsk.sa...
1
1
689
2022-07-12T12:09:04.500
data_quality
sqa.stackexchange.com
928,752
Routing WebApi through Point-to-Site and Site-to-site on Azure
i have a webAPI hosted on azure. It connects to 3rd party site using their dev env IPAddress and Port. This works fine. The requirement was to then create site-to-site VPN connection to connect to their live env. I created a VNet,vNetGateway and localGateway. the VnetGateway using a new public IP that connects successf...
From your comment, I see you stuck in how to debug the connection between my api and vnet In this case, many methods you can do to debug the connection between API and vnet. Create a virtual machine in the vnet and try to connect from or to the web app. Use the kudu console and try to ping your client or virtual machin...
0
0
94
2018-08-30T17:46:27.513
infrastructure
serverfault.com
745,833
Is it assumed that if you use Ansible, you'll use Vagrant too?
I'm building a multi-server e-commerce website using Django and PostgreSQL. I'll be utilizing multiple servers (app, database, static, etc.) from Linode. Currently I configure my servers using a collection of Bash scripts I wrote. Writing these scripts helped me understand how everything connects together but now my in...
While Vagrant and Ansible work very nicely together, as mentioned in comments to your question, the use of either of these tools does not require the use of the other. Ansible is perfectly usable without Vagrant and Vagrant, as documented here , can use over 10 other configuration methods, including other config manage...
1
1
406
2015-12-29T20:16:05.443
pipeline_ops
serverfault.com
283,353
Part of statement missing from sys.dm_exec_query_stats
I'm trying to debug the individual parts of a large query; I'm using the statement offsets in sys.dm_exec_query_stats to separate them. There is one particularly troublesome statement that for some reason is not present in sys.dm_exec_query_stats; it is, however, present in sys.dm_exec_requests. Is this expected behavi...
It's difficult to say what might be going wrong with your script, since you didn't show us what you're running. But no matter -- you're probably better off using sp_WhoIsActive , and doing something like this: [CODE]
0
0
40
2021-01-15T21:36:24.060
warehouse_errors
dba.stackexchange.com
298,884
100mb/s upgrade to 1gbps network - To Prevent DDOS
I have been under constant DDOS attack the last couple of weeks. Now it seems my servers network is being flooded till it just doesn't have space anymore to receive and send normal packages. I run CENTOS 5.6, and i have hardened SYSCTL and iptables to fight off SYN attacks as much as possible. I have a 100Mbit network ...
You should be working with your hosting company to mitigate the attack. They likely have other resources and means with which to deal with a DDOS attack. It is better handled at the network edge rather than the target.
5
14
1,048
2011-08-08T14:51:15.740
infrastructure
serverfault.com
690,201
Sharing in workgroup
I want to share one folder from the server which is at work-group (not a domain system) for 10 users. every user has a different name. And I want to assign permissions on a folder by user name. Is this scenario possible to work group?? Like we do same thing on domain.
You can do this with a server that is not in the domain, but each user that needs access to the server will have to have a local account on the server. If the usernames and passwords on the server are the same as the usernames and passwords on the domain, users will not get a login prompt when trying to access the serv...
0
0
103
2015-05-07T05:15:32.420
infrastructure
serverfault.com
131,533
How to get OOAD and Design Patterns hands-on experience in C#?
I have read the concepts and practiced some examples on OOAD and Design Patterns. But when I was asked to implement the singleton pattern in a little bit different manner, I was unable to do it and failed to reach my goal. I think I need some more in-depth understanding of the basics and some real experience with the c...
Head First into Design Patterns is a great book for beginners that discusses the patterns with practical (but very ficticious) examples. If you're more inclined into a reference book then the original GoF book might be right up your alley, but is rather lacking in examples other than for descriptive purposes. There is ...
3
1
2,507
2012-01-24T09:20:52.527
api_errors
softwareengineering.stackexchange.com
868,981
Software-defined Storage: does spindle count matter, generally-speaking?
I'm looking into HCI solutions, most of which appear to be built around RAIN (Redundant Array of Independent Nodes), caching or tiering of "hot" and "cold" data in the form of fast, expensive cache disks (SSD/NVMe) and cheaper, slower capacity disks (SATA/SAS). With Microsoft's Storage Spaces Direct, an example they gi...
More spindles will result in faster reads and writes as the load can be spread across more drives. Typically the recommendations you see are based on systems with limited drive bays. My home NAS can only hold 4 drives unless I find some 5.25-3.5 adapters to fit in a couple more. From your example I'd have no choice but...
1
2
354
2017-08-16T15:13:48.393
infrastructure
serverfault.com
1,102,675
CORS error - Website is not reachable (ERR_FAILED), then redirects and works by itself
Error: I get "This site can't be reached ..." and then it automatically redirects and then the page works. Please see the screengrab GIF below. This error happens in random unpredictable intervals. On average it occurs once in ten times. It happens even in a plain HTML page where there is no content. I tested with only...
I got a response from DreamHost support stating: There have been reports that there is a bug in the latest version of Chromium, which affects chromium based browsers (Chrome, Edge, etc), where users are randomly getting the "Err-Failed" error and a refresh will resolve it. They do not have the tracking number for the C...
3
2
1,409
2022-06-07T08:55:59.337
api_errors
serverfault.com
324,864
Is there a compiler switch changing the scope of variables in loops?
I'm using some code, which uses variables declared in a loop after the loop. For example [CODE] I get the "i" undefined error. Is there a compiler switch to change this (in VC++ 2015)?
Yes, apparently there is such an option. I strongly suggest you avoid using it. Fix the code instead. In early versions of C++, the scope of a variable defined in a [CODE] loop header extended to the end of the block containing the loop, making the code in your question valid. In modern versions of the language, the sc...
1
4
903
2016-07-14T15:48:42.247
api_errors
softwareengineering.stackexchange.com
720,688
No package mongodb-org available
I am attempting to install MongoDB on CentOS 6.5. I believe I am following the instructions precisely step-by-step, but continue to get the error No package mongodb-org available after issuing the command sudo yum install -y mongodb-org . Following the instructions here: http://docs.mongodb.org/master/tutorial/install-...
I think you try to add [CODE] directory from [CODE] to prevent future updates for example: [CODE] But above line need to be added after perform install mongodb-org: [CODE]
0
2
12,513
2015-09-07T19:23:23.867
database_errors
serverfault.com
699,053
FastCGI: "comm with server aborted: read failed" only for one specific file
Related question: FastCGI and Apache 500 error intermittently The solution does not work for me. The problem: I have a Laravel 5.1 application (was in production on other servers without any problems) running on a fresh Ubuntu 14.04 server with Apache 2.4.7 and PHP through PHP-FPM . Everything works fine as long as a c...
If PHP is failing only on specific source files, the most probable reason is that some PHP code accelerator (opcode cache) like Xcache, APC or eAccelerator has issues with the file. This can be due to bugs in the accelerator or in PHP itself. You can try to run your script via PHP command-line interface ( [CODE] comman...
1
2
6,202
2015-06-15T09:02:43.210
api_errors
serverfault.com
279,995
Analyze MySQL what needs to be archived
I'm not a DBA, I'm a DevOps guy trying to manage a MySQL database which is ever growing and desperately needs some archiving. My question is not how to archive. I think I have a pretty good idea and have SO for anything I might not know yet. I'm trying to figure out "what" to archive. I don't have a clue what our apps ...
Typically this kind of decisions are taken with product managers. They are the ones who can say things like "customers should be able to read 2 years old information, but not necessarily older than that". MySQL (or any other DBMS, as far as I know) doesn't provide a way to find out when a row was last read. But there a...
0
1
63
2020-11-19T23:31:49.643
hadoop_errors
dba.stackexchange.com
771,534
How to control which ethernet interface Windows selects when resolving fully-qualified domain machine names?
I have a VM in AWS. I has two ethernet interfaces, which have different security groups applied to them. One of those security groups white-lists all sorts of machine addresses in my domain. When resolving the machine's fully-qualified domain name, I want the interface with the domain-friendly security to be resolved, ...
To change the network connection access order [CODE] To change which adapters register with DNS [CODE]
1
1
224
2016-04-19T20:20:09.290
infrastructure
serverfault.com
332,548
AD MMC Tools disagree with 'net user' and 'net group'. Which is wrong?
Using the AD MMC snapin, I show that a particular user is a member of a set of groups, but when I use the [CODE] and [CODE] utilities, the group membership is different, and more importantly, contradictory. We're trying to track down a problem that seems to be related to a user not being in the right groups, but the MM...
Have you checked that on multiple domain controllers? Are you seeing any other inconsistencies with groups on other users? If AD is inconsistent, you've got real issues. Also, have you tried pulling her out of the groups in question, then forcing NTDS replication between the DCs (from Active Directory Sites & Services)...
0
1
265
2011-11-18T20:33:05.090
infrastructure
serverfault.com
364,016
Web-Application with file generation pattern
I work on a java web-application. In this application, users can generate some reporting (xls/pdf) and create some pack of multiple reporting. (using pdfbox, itext) More and more data are added in the application since few year. The generation of reporting is made on the same server as the application, which doing slow...
You have a couple of choices, depending on how much time and money you have. The cheapest solution is for your users to talk to each other and schedule when they will request the big reports so there is never more than one running at a time. I consider this choice unsatisfactory, but it is cheap. Have your networking/s...
-3
3
98
2018-01-15T15:09:33.303
api_errors
softwareengineering.stackexchange.com
738,568
Windows Server 2012 R2 and TCP slow start and Hyper-v hosts
I need to change default value of TCP InitialCongestionWindow I read this document: https://www.iispeed.com/blog/windows-server-2012-and-tcp-slow-start I tryed it on our hyper-v hosted virtual server 2012 R2. [CODE] I got error: [CODE] The question is how can I acomplish what that IISspeed document is telling about? If...
You need to create the transport filter first, which specifies the TCP settings as a [CODE] object, like in the example below. [CODE] The [CODE] commandlet is used when you want to modify a setting. Hence why you're receiving the error regarding the custom object not found. After creating the transport filter, your ori...
5
4
3,353
2015-11-24T08:57:28.763
infrastructure
serverfault.com
509,035
Send Connector on Port 465
I recently confront a problem that i think it will become a major situation on the near future. My ISP blocked the port 25 against spamming. Now I'm forced to fix this situation on another port, so I can be able to send mails. And I tried with port 465 and no success. Here it is how i did: I opened exchange management ...
You can't send mail on port 465 because nobody has their mail servers configured to listen on 465. Call your ISP and fix them blocking port 25, or get a new ISP. Being able to send mail on port 25 is critical.
-1
2
4,465
2013-05-19T11:01:54.533
api_errors
serverfault.com
53,456
Which user does Windows Authentication of a maintenance plan authenticate? before whom, why and for what?
I am having a maintenance plan configured with Windows Authentication being run by an SQL Server Agent job with owner [CODE] Whom does Windows Authentication of a maintenance plan authenticate, for whom and for what - why is it needed and/or how can it be used? To which user I should give permissions for accessing back...
The Manage Connections dialog is for a connection to the Database or Instance you are performing maintenance on. So if you type in a sql authenticated user called 'bob' there, the user bob will be the one that connects to the instance to do the maintenance tasks you are specifying. You can prove that out by running SQL...
4
5
8,032
2013-11-18T02:31:36.133
database_errors
dba.stackexchange.com
291,946
What is an effective way at handling the issue of Postgres allocating significant memory when it forks a new process?
I've seen many articles and videos that say things like the following about Postgres over MySQL. Postgres allocates a significant amount of memory (about 10MB) when it forks a new process for each connection. This causes bloated memory usage and effectively eats away at speed. Thus, it sacrifices speed for data integri...
Interesting to hear that 10MB is "a significant amount of memory". A database is not a web server, which is optimized for serving lots of short-lived connections. A PostgreSQL connection loads cached catalog data for efficiency. That is why you use a connection pool, so that all your short database requests are handled...
0
6
119
2021-05-20T17:08:43.363
database_errors
dba.stackexchange.com
223,855
How can I solve this potential security exploit (concerning the saving of REST resources)?
I have a File database table with the following columns: [CODE] And a Document database table with the following columns: [CODE] When a user wants to "save" a Document, my client-side JavaScript does it in two quick AJAX calls (in an attempt to be RESTful and save each resource individually): Uploads the file they have...
This is what server-side state is for. One correct way to approach this is to record, in a server-side session state collection, the recently-uploaded files' [CODE] values, and to restrict the [CODE] operation to using a [CODE] from that collection (and, of course, removing it from the collection upon success). As a si...
0
1
203
2014-01-11T13:41:41.943
api_errors
softwareengineering.stackexchange.com
219,099
Exchange 2003: recover mailbox when migrated to 2007
We have migrated almost all of our mailboxes from Exchange 2003 to 2007 so both are still up and co-existing in our domain. One mailbox is missing some mails, and I tried to recover from an Exchange 2003 backup using ExMerge as usual, but it throws an error: Error opening message store (MSEMS). Verify that the Microsof...
We decided to buy thirdparty software - we chose digiscope.
0
1
167
2011-01-05T18:41:47.673
database_errors
serverfault.com
261,866
How to make racoon generate security policies for all ports?
I am trying to establish an IPsec connection between two systems. I've got racoon setup on both sides. The client is going to have a dynamic IP address, so on the server, passive and generate_policy are on, and proposal_check is set to obey. With this setup, the server is generating policies, but they are only for port...
You need the corresponding policy on the server as well. Just replace the in and out on the client policy, put it on the server and it should work fine even with remote anonymous.
0
1
3,201
2011-04-20T18:01:23.087
api_errors
serverfault.com
954,093
Server ssh certificate chain against MITM attacks?
During first contact with a server via ssh, the server's public key of the chosen key algorithm is presented to the user to validate it. After validation, the result is usually saved into the [CODE] file to counter later MITM attacks (Trust-on-First-Use or TOFU principle). [CODE] This obviously won't help against a MIT...
This is possible. Quoting the docs : [CODE] Steps to achieve this: Generate a SSH Server CA Key: [CODE] Generate a SSH Server Host Key: [CODE] Sign the host key with your ca key: [CODE] Deploy the host key + certificate in your SSH Server (copy cert & key to [CODE] , edit [CODE] ): [CODE] Set up your clients to trust y...
3
4
1,144
2019-02-15T09:35:52.397
data_quality
serverfault.com
273,291
Schema to generalise potentially parametrised status
Let’s say I have some entity: [CODE] ...and I want to assign it some state, which has N possible values. Some of said states also come with a parameter. For example: foo bar quux, 10 quux, 20 quux, 100 I original set this up as a separate table, with the states and parameters populated by the application at runtime. Th...
Define a [CODE] that will migrate through to a [CODE] and provide a mechanism for a [CODE] constraint. DML (I'm doing this freehand, there may be syntax errors lurking): [CODE] From there you would migrate [CODE] directly to [CODE] or to an optional attribute [CODE] : Notes: There should be unique constraints on names/...
0
1
29
2020-08-05T21:48:27.330
database_errors
dba.stackexchange.com
525,560
reroute tcp connections to remote server so that they connect to localhost instead
I have a script that tries to connect to a remote mysql server and I want to modify the vm it runs in so that instead of the remote ip, the connection will be forwarded to localhost. Can anybody tell me if that's doable, and how? I do have an it background but networking is sort of a black box for me... I found some ex...
Never tested, but according to http://straylink.wordpress.com/2006/08/16/using-iptables-to-redirect-packets , you can use iptables like this : iptables -t nat -A PREROUTING -p tcp -d 111.222.333.444 --dport 3306 -j REDIRECT --to-ports 3306
1
1
288
2013-07-23T09:00:43.950
database_errors
serverfault.com
359,363
Caching mechanism for REST APIs
I have been given a project recently where REST API have been implemented in the most basic way possible i.e. request comes to app, app hits controller, queries db, returns response. So this mechanism, as its quite obvious, has started to create issues in terms of response times as data has grown a lot. Plus this appro...
For a REST service, you usually want to use the available caching mechanisms of the web and the HTTP protocol. That means using caching directives or entity tags in the responses. In this context, what you want to do is to completely eliminate some requests to certain resources or limit the work that the server needs t...
3
4
3,542
2017-10-18T17:54:15.433
api_errors
softwareengineering.stackexchange.com
290,601
SSH disconnection issue - TCP RST packets
I have a SSH disconnection problem, disconnection occurs randomly. Sometimes, it works fine and other times I am frequently disconnected. After the disconnection I can again re-connect and continue to work. Between the client to destination server ssh connectivity the flow is like this: [CODE] Routing from Client [CODE...
Without delving into your particular problem, I've found these configuration lines have solved similar issues for me: [CODE] It solves disconnects due to laggy or flapping links. I'm not saying these are perfect values, but they have worked for me so far.
2
1
6,948
2011-07-14T10:29:01.410
infrastructure
serverfault.com
636,953
ZFS RAIDZ2 read and write speeds really slow?
I'm running 3 Samsung HD103SJ 1TB and 1 Samsung HD103UJ 1TB under Lubuntu with zfs raidz2, using a HP ProLiant N54L (AMD N54L, 4GB RAM). Moving a 10 GB file between 2 folders on the pool takes 15 minutes! "Downloading" a 20 GB file from the pool to the local computer took 40 minutes. Reading and writing is very slow bu...
RAIDZ2 isn't going to be especially fast with 4 SATA disks... on a server with 4GB of RAM... with a weak processor... and without any level of ZFS tuning. ZFS mirrors would have been a better choice for a few reasons as well. However, have you measured actually filesystem performance? What are you expecting to see? Tha...
3
6
3,159
2014-10-14T16:01:55.043
infrastructure
serverfault.com
1,084,864
After migrating to Azure DC local IIS resource sometimes times out
So a few months back I hired our CSP to migrate our on-prem DC to Azure. Since the word go, it was a disaster so I've had to go through and fix everything piece by piece and now I'm at the last part and can't seem to get this right. The issue is, every few hours, our local IIS site becomes unavailable to users on prem....
How are your on-prem clients expected to locate the DC in Azure when their DNS is configured to not be able to find it? Your on-prem clients’ DNS server must be the DC in Azure for this to work. A more robust solution would be to have another DC on-prem and point your on-prem clients to that for DNS. (Just don’t forget...
0
0
36
2021-11-29T14:15:44.860
infrastructure
serverfault.com
28,314
Why does a MySQL MEMORY-backed table take so much more space than on disk?
I have a single InnoDB table on disk, with ~1,107,423 rows and taking up 45.6 MiB disk space. The structure is: [CODE] When I create a MEMORY-backed version of this table, it takes up 803.5 MiB of memory! It seems reasonable there'd be some expansion: a lot of extra pointers from the B-tree index or something, but incr...
VARCHARs are stored with a fixed length in memory, so your max length of 255 will be using a lot of space. Your InnoDB disk table will be storing the rows with a dynamic length. http://dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html says... MEMORY tables use a fixed-length row-storage format. Variable-length...
3
4
395
2012-11-06T14:12:15.163
database_errors
dba.stackexchange.com
980,852
Ansible, openjdk-8-jdk and Ubuntu 18..04 woes
So I am trying to setup an Ubuntu host using ansible and one of my requirements is to use java8 After researching a lot of discovering the various deprecation posts about the oracle PPA etc, I settled on installing openjdk-8-jdk So here's my scenario - I launched a fresh ubuntu image from AWS and the first thing I did ...
By default in cloud images there is no package list locally cached. Set [CODE] to have apt update it's cache before you install a package.
2
2
8,068
2019-08-27T10:52:39.320
pipeline_ops
serverfault.com
383,985
Modifying kernel shared memory settings on a lion install
What's the location of the [CODE] file on lion? In Snow Leopard it was in [CODE] but now that folder doesn't contain it anymore. Searching for the file in spotlight yields no results. Have the shared memory settings been moved to a different conf file? What is it's name? EDIT I am trying to modify the kernel shared mem...
I believe [CODE] is still the right place (and [CODE] agrees). Did you reboot? [CODE] are not a real-time thing: They are only read/applied when the system enters multi-user mode during startup.
8
4
8,031
2012-04-28T01:08:48.727
infrastructure
serverfault.com
586,101
How to make git push work with nginx (basic auth) behind nginx reverse proxy (HTTPS)?
I like to have a git server on a computer (backend) without direct internet access. There should be basic authentication. The access should be available by means of a reverse proxy (frontend) on another computer, that does SSL/HTTPS. Both are running Debian 7 stable (wheezy + wheezy-backports for nginx and git). So far...
The problem was in the frontend syntax. I had to change: [CODE] to the correct: [CODE] or alternatively: [CODE] Thanks, Will!
3
3
7,431
2014-04-02T08:33:09.070
api_errors
serverfault.com
1,118,248
USB wlan1 Hotspot stops working when eth0 cable is plugged in
I setup successfully an USB [CODE] as AP via [CODE] , and [CODE] (it listens only to [CODE] -interface) on a Raspberry 4 (using Raspbian). Regardless if [CODE] (the onboard WIFI) is connected to a WAN hotspot, [CODE] Clients can ping that [CODE] interface. IP Forwarding/masquerade works, and if [CODE] is connected to W...
Your IP addresses are: 10.8.0.2/8 for [CODE] 10.8.5.1/8 for [CODE] Those are in the same subnet. 10.0.0.0/8 covers everything from 10.0.0.0 to 10.255.255.255. Yet, on your DHCP scope, the netmask is suddenly /24. The general rule is that if you want to send traffic within a subnet, you need a switch (bridge), while you...
0
1
82
2022-12-16T22:02:17.723
infrastructure
serverfault.com
268,040
What permissions are required for complex cross-schema materialized view in Oracle?
I have a complex cross-schema query that I'd like to create as a materialized view in Oracle 19c (although the database has been ported forward from numerous historical versions of Oracle). This includes joining a subquery to 5 additional tables across three total schemas, and then unioning to another copy of the query...
The issue appears to be the "ON COMMIT" portion of your DDL. From the documentation : "To create a refresh-on-commit materialized view (REFRESH ON COMMIT clause), in addition to the preceding privileges, you must have the ON COMMIT REFRESH object privilege on any master tables that you do not own or you must have the O...
0
2
1,636
2020-05-28T13:59:08.543
database_errors
dba.stackexchange.com
20,829
Help identifying Adaptec SCSI controller
Through damn right stupidity I bent the pins on a CPU in a machine have rendering it pretty useless. In an attempt to reclaim any useful (re-sellable) parts I have removed the Adaptec SCSI controller, however I'm having trouble identifying it and I don't easily have to hand another box to pop it in. It is labelled as a...
Adaptec's KB answers this question: http://ask.adaptec.com/scripts/adaptec_tic.cfg/php.exe/enduser/std_adp.php?p_faqid=15256&p_created=1199921508&p_topview=1 Adaptec 3000S is just the label of the PCB. This PCB is used with two different controllers: Adaptec SCSI RAID 3200S (two Ultra160 SCSI channels, two internal and...
1
3
480
2009-06-05T20:36:07.230
infrastructure
serverfault.com
76,642
Postgresql warning: type reference X converted to Y (SQL State: 00000 - Error Code: 0)
When I execute: [CODE] under Postgresql 9.3 I get the following warning message: [CODE] What am I doing wrong and how can I correct it?
Answering my own question... It turns out this is harmless INFO-level logging: https://stackoverflow.com/a/3531274/14731
0
0
137
2014-09-16T03:46:35.653
database_errors
dba.stackexchange.com
294,844
Is it possible to get a module to support a device that (sometimes) reports a wrong PCI ID?
I’m trying to setup a wireless NIC (TP-Link TL-WN350GD) on a Linux server (Debian Squeeze). After a cold boot, lspci -nn shows that the PCI ID for the card is 168c:ffa1. The kernel (2.6.38 from backports) doesn’t have any module for that device ID, and so no module gets loaded. However, after a warm boot (i.e., executi...
You could probably shoehorn this in with udev, but I'm not drunk enough to try grappling with udev rules at the moment. The not-entirely-insane way would be to have the driver properly register that it can work with the alternate PCI ID -- but only if it actually can . My guess is that when it comes up with the alterna...
2
2
928
2011-07-28T01:17:08.680
infrastructure
serverfault.com
88,929
Monitor unusable indexes on oracle
I have a lot of database, a ton of partitioned tables and many processes running on them. In a couple of occasions I hade problems for unusable indexes or partitions of them. A bugged procedure, or a human error of the dba. I'd like to rise an alarm when an index became unusable. Oracle is version 11.2, new installatio...
You can use both, Nagios and Oracle Cloud Control 12c (also applies for Grid Control 10g and 11g). I used Nagios about 8 years ago to run custom SQLs but I guess there is much changed since then. Maybe someone else has recent experiences with that. In Oracle Cloud Control you have 2 options: Write your own Agent Plugin...
1
2
893
2015-01-09T13:23:02.830
database_errors
dba.stackexchange.com
639,964
Can't ping my static IP address from external network
I have an ubuntu server and a static IP address. When I try to ping my IP static ip from my internal network it work but, when I try from external link remote ping I haven't no response!! [CODE] 127.0.0.1 localhost 127.0.0.1 XUbuntu [CODE] tcp 0 0 127.0.0.1:3306 0.0.0.0:* Listen tcp 0 0 127.0.0.1:631 0.0.0.0:* Listen t...
Ping uses ICMP as a protocol. Your web site would be accessed via TCP , which is a different protocol and is most often handled differently by firewalls and routers. It is not uncommon for ICMP packets to be blocked at a router, particularly from an external source. You should test access to your web server via a brows...
-5
1
5,520
2014-10-27T14:02:59.723
infrastructure
serverfault.com
225,747
Best way to capture changes on OLTP for Data Warehouse: Create/Update column or CDC
What is a preferable way to move ETL data into Data Warehouse? Create/Update date on the OLTP application, or Change Data Capture (CDC)? Given the two are allowed on a system and resourcing is not an issue, I would think CDC is preferable. As sometimes, I have seen software application/developers make mistakes where th...
You've answered your own question! It's ALWAYS better to go with your vendor's solution rather than "rolling your own"... How many people will test your "home-cooked solution"? How many edge cases will they encounter? I'm willing to go out on a limb here and state that maybe, just maybe, it might conceivably be within ...
1
2
730
2018-12-25T05:24:09.060
data_quality
dba.stackexchange.com
14,542
What do skipped, rescued, and ignored results mean in ANSIBLE playbook execution?
What do skipped, rescued, and ignored results mean in an Ansible playbook execution? What would be a possible scenario where these results would be different from 0? [CODE]
For example, the play below [CODE] gives [CODE] For details see Error handling in playbooks Handling errors with blocks Briefly, an error is ignored when you set [CODE] . This can be set on multiple levels. See Playbook Keywords . If you use [CODE] you can actively handle the consequences of the error.
2
4
2,427
2021-08-18T02:57:59.137
pipeline_ops
devops.stackexchange.com