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 |
|---|---|---|---|---|---|---|---|---|---|---|
12,229 | latin characters getting displayed as junk characters from the webdriver getText() command | I have a requirement where I am trying to automate the registration form which is in French language, while automating I am trying to get the text of the error messages which are in French(localised) language. Example code snippet: [CODE] When I print the text some junk characters are getting printed. Actual output whi... | [CODE] files in Java use always ISO-8859-1. You are not able to save UTF-8 characters into [CODE] files. You must save the characters as unicode escape characters. In your example the value of the key must look like this: [CODE] Take a look here: http://www.fileformat.info/info/unicode/char/e9/index.htm With this solut... | 2 | 2 | 3,782 | 2015-02-23T06:11:49.920 | data_quality | sqa.stackexchange.com | |
98,516 | What MySQL activity eats CPU? | I have noticed weird CPU consumption peaks for MySQL process. When I monitor running queries, it's empty or some reasonable queries being executed. How do I better address the problem? Is there a tool, which can monitor MySQL getting into CPU peak and dump stats on running queries to some log? | There are so many 3rd party tools, most popular are MySQL Enterprise Monitor MONyog for DBAs Percona Toolkit Both MONyog and MySQL Enterprise Monitor shows CPU usage information in Linux systems However, if we tune certain parameters in my.cnf, high MySQL CPU usage may reduce [CODE] | -1 | 1 | 167 | 2015-04-22T08:55:52.723 | database_errors | dba.stackexchange.com | |
431,465 | Should "functional core, imperative shell" approach canonically break "don't test private methods" rule? | In short, "functional core, imperative shell" can be summarized as: functional core implements logic; you unit test it. Your tests call real functions just like in production real functions are called; ie compared to mocking / faking, you don't run a risk that mocks / fakes mildly mismatch behavior of the real dependen... | I don't see a compelling reason why the splitting between "functional core" and "imperative shell" must happen inside a single class. Since this is known to be an architectural pattern (and not a class design pattern), I would expect these two terms to refer to layers in a system, placed in separate packages, like this... | 1 | 6 | 974 | 2021-08-28T10:16:49.603 | api_errors | softwareengineering.stackexchange.com | |
320,177 | Organizing maven modules and spring profiles | I'm facing a design problem with Spring's profile and Maven multimodule project from which i'm building a product, as a web as application that can be customized for differents clients. For this i need quite some organization of my code, this is why i'm seaking advises on how to organises my profiles around my code. At... | I would not recommend to put multiple build targets in single Maven project and perform the app customization during build via Spring profiles. This solution is hard to support, because it has reduced visibility of the functionality belonging to specific application/execution context. Plugin architecture would be bette... | 5 | 2 | 1,964 | 2016-06-03T08:24:14.137 | api_errors | softwareengineering.stackexchange.com | |
81,742 | Named alternates between working for example.com & www.example.com | I have a domain registered with eNom . From time to time I will do an [CODE] and get the IP address. However, when I put [CODE] it responds can't find www.example.com: server failed After restarting Named, I get this error for [CODE] , while [CODE] is working as expected. What could be causing this issue? I am restarti... | declare your www subdomain as a CNAME to your A - example of bind9 configs below: --- named.conf [CODE] --- /etc/bind/domainname.com [CODE] Notes: xxx.xxx.xxx.xxx is your IP address (for the domain) there are some parts missing from configs (in the place of SNIP ); added only the interesting bits Kaplah. | -1 | 2 | 105 | 2009-11-05T14:38:05.867 | infrastructure | serverfault.com | |
308,341 | Apache cache serving partial content 206 responses to requests for the full content | We're running Plone 3.3.6 behind Apache 2.2.19 with mod_cache. We've recently noticed that Apache is caching the 206 response to a range request and then serving that partial response when a request for the full resource is made. What seems to happen: some client makes a range request for a resource that is not yet in ... | This is apache bug 49113 and has been fixed in the trunk but not in 2.2.19. | 7 | 4 | 4,509 | 2011-09-05T15:52:22.857 | api_errors | serverfault.com | |
444,715 | LDAP connecting to DC | Our network has suffered from years of neglect and improper configuration. I am finding that, using Wireshark, our LDAP operations are severely slowed and sometimes halted by it trying to connect to old DC's that have been relieved of DC duty a couple years ago but still exist keeping the same name and ip. Any ideas on... | There is a knowledge base article from Microsoft: http://support.microsoft.com/kb/555846/en-us If the LDAP Server doesn't read out the DCs from the AD itself, you will need to look into your LDAP Server configuration. (as you surely know) | -1 | 0 | 90 | 2012-11-01T12:59:04.863 | infrastructure | serverfault.com | |
655,305 | Data Transfer Speed Hardware Config | First off, I am sorry if this gets a little scattered, it encompasses a large problem for me I have been dealing with for some time. Here is a little background: I operate an educational website with video on demand for online classes. For 4 years we hosted all our own media using 6 dedicated Wowza servers around the w... | I don't think it's possible to say: Buy X, install Y, and your problem will be instantly solved. This is going to take several iterations to get through, and you'll need to put more work into identifying the bottlenecks when they inevitably appear. For the most part I'm going to avoid recommending specific hardware, as... | 2 | 4 | 288 | 2014-12-29T21:42:59.670 | api_errors | serverfault.com | |
679,057 | Cannot launch instance with startup script in GCE | I am trying to launch a CoreOS instance on GCE like this [CODE] And I keep getting back [CODE] I followed the example at https://cloud.google.com/compute/docs/startupscript What am I doing wrong? | It looks like you have your quoting wrong. Consider the example [CODE] and then look at your similar stanza [CODE] Note the different locations of the [CODE] . As you have used [CODE] in your startup script you may have additional issues with your quoting that you will need to fix up. | 1 | 2 | 768 | 2015-03-29T07:27:43.703 | infrastructure | serverfault.com | |
124,662 | Decrease Query Execution Time | I have been having issues with 2 queries with query execution times up to 250 seconds for each query. The tables joined have each less than 10,000 rows, with exception to 2 tables that have around 60k and 30k rows each. I am in learning stages of MySQL where I googled for writing each query. I googled about this and so... | In the first query, "pagination via OFFSET" is at least part of the performance problem. In your example, your query must scan 270+10 rows to find the 10 needed. If, instead, you "remembered where you left off", you might be able to look at only 10 rows. More discussion . (In the first query, you used [CODE] syntax - g... | 1 | 1 | 456 | 2015-12-27T23:02:23.820 | database_errors | dba.stackexchange.com | |
1,068,085 | Why does my container not contain DB data after I commit it? | I'm trying to create a PostgreSQL container that already contains development data. I can see the data I have created, but when I [CODE] , [CODE] , and [CODE] the image, the data is not there. Below is my Dockerfile: [CODE] I create the container using the script below, and data is successfully populated. [CODE] Howeve... | As per the comments under the main thread the solution was similar to the one suggested in this existing answer. It boils down to the data directory being a volume and hence living outside of the context of the container being modified/committed. | 0 | 1 | 1,328 | 2021-06-28T15:37:19.120 | database_errors | serverfault.com | |
445,594 | what are MVC benefits for my case? | I'm trying to design my new open source project I want to launch. I want to be very careful with design/projecting because I had trouble maintaining software in the past. I have code that works and now I want to rebuild it from scratch in a more organised way. The project it self is based around a physics simulation en... | The benefit of MVC is that it can allow you to separate concerns (3 of them anyway) and achieve the goal to isolate changes. Wouldn't it be nice if changing your mind about, lets say, how to display this didn't force you to update code in multiple places? MVC is our oldest pattern. It doesn't have much to say about how... | -2 | 0 | 83 | 2023-05-18T20:02:34.690 | api_errors | softwareengineering.stackexchange.com | |
883,474 | Unable to find reasonable kubernetes installation documentation | I have been trying to setup kubernetes for a week now as part of an evaluation, but I can only find extremely complex manual solutions that are already out of date or outright broken insanely simple solutions that break a mind numbing amount of best practices "get to know kubernetes cluster all on one box" My base requ... | Try out kops - it has support for Terraform output . It should be possible to meet your other requirements with it (although some, like no single point of failure, may require changing the default config). | 0 | 1 | 84 | 2017-11-15T00:18:27.803 | bi_errors | serverfault.com | |
29,283 | Better approach to a complex test and report file downloads using python | I've created a very complex script using Python3 and YAML (I keep all the configurations in YAML) that in effect tests all potential file downloads for my environment. Sort of end to end test. Due to specific patenting behind, I can't share too much of code, but I am having around 37 different property combinations tha... | Just the first thought without a deep dive into the problem: use [CODE] statements instead of [CODE] and then [CODE] , e.g.: [CODE] use [CODE] testing framework as it is the most popular, advanced and feature-rich at the moment, understands the "assert" statements and have a test discovery which may allow you to leave ... | 2 | 3 | 102 | 2017-08-30T13:18:59.630 | pipeline_ops | sqa.stackexchange.com | |
285,497 | Non-printable characters and editors | Today I was presented with a very nasty problem and I do not quite know where to ask this but hope here is ok. So I have the following string: [CODE] (at least that's how it looks in visual studio). If you open the same file in notepad++ it looks like this: [CODE] . so yes, I have reached a point where I need to check ... | You could do the comparison of the bytes by storing the strings as constants, with decent names. So case [CODE] would become [CODE] which helps remove the 'magic number' aspect of your switch statement. But the correct solution here is to add some comments. That's what comments were designed for, that's their intended ... | 1 | 3 | 1,978 | 2015-06-01T14:38:43.800 | api_errors | softwareengineering.stackexchange.com | |
331,472 | Where server power is lost? | I have server with 2x2 GHz core but php works very slow on it, I am write syntetic test [CODE] generate ~ 30 sec but on local machine with 2x2Ghz core its generate 2,8 sec also I try this script at shared hosting - 2,8 sec too Where power is lost? [CODE] UPDATE Problem was with Zend Optimizer + eaccelerator. I replace ... | Right. Now we've got lots more information. You're running 3 sites , on 2 cores at 1.7GHz each . You've got 4GB of RAM , and about 3GB free (that's good). MySQL and Apache on the same server. About 20 httpd processes. A bunch of other stuff like nginx and named running. Is this server deliberately the jack of all trade... | 0 | 4 | 169 | 2011-11-16T10:17:35.797 | infrastructure | serverfault.com | |
586,167 | Having difficulty connecting to port | I'm giving Linode a try, and I just launched my first instance running CentOS. I've been unable to connect to a port on the box even if I completely drop the firewall. (My script does successfully connect over localost, just not from an external machine) Here's some info: iptables: [CODE] nat / raw [CODE] netstat: I'm ... | Tips for testing connectivity to a port: Make sure there's a service listening on that port with [CODE] Check if you are filtering or diverting that port with iptables: [CODE] , [CODE] Check with tcpdump if traffic is arriving at the server and being replied back: [CODE] , also all traffic just in case: [CODE] If no tr... | 1 | 0 | 245 | 2014-04-02T13:37:43.367 | infrastructure | serverfault.com | |
118,032 | Very slow query in PostgreSQL on 10kk records table | I'm having very slow requests to my queries. I created an index on the filter columns and made partitioning but requests is still too slow. How can I make it faster? Here's query and explain: [CODE] [CODE] output: [CODE] Full structure [CODE] Table analyze. [CODE] | Index To get best performance for the demonstrated query, create this multicolumn index : [CODE] The order of columns is important. The rule of thumb: equality first, range later: Multicolumn index and performance Since I only know the one query I can't say if the the cost of the index outweighs the benefit. Generally,... | 2 | 2 | 1,986 | 2015-10-14T15:45:48.400 | database_errors | dba.stackexchange.com | |
268,637 | MYSQL Query Index Check | I have a table with the following structure; [CODE] I have nearly 200m records in this table. I am frequently performing the following queries on this table; 1 - Operations By Zone [CODE] 2 - Operations By Machine [CODE] 3 - Operations By Shift [CODE] I am currently looking at 30s for query #1. I have enabled caching, ... | I have an interesting idea for you. Create the following indexes [CODE] You could then evaluate your queries by running: [CODE] The output from each [CODE] will plainly tell you which index. It will also show the least number of steps the Query Optimizer will take. My guess is that the indexes with the [CODE] column la... | 2 | 0 | 392 | 2020-06-06T10:24:47.273 | database_errors | dba.stackexchange.com | |
3,886 | Why does SQL Server Management Studio sometimes lose my authentication information? | When I launch SQL Server Management Studio, most of the time it remembers the login & password, but from time to time, I have to retype the password. Is this something that happens periodically for security, or is it a bug, or is it something that I'm doing? | This is a bug with SQL Management Studio. Microsoft seem to be aware of it, but have not fixed it as yet, and many users are experiencing it. Some users have reported success with always running the app as an administrator on Vista or Windows 7. You can run Managment studio from the command line, and supply your passwo... | 1 | 3 | 386 | 2009-05-04T08:47:38.307 | database_errors | serverfault.com | |
14,097 | Enable ingress-nginx Prometheus monitoring without Helm | A few weeks ago, I installed [CODE] in my Kubernetes cluster. Now, I realize that was a mistake because that did not come with Prometheus monitoring enabled automatically, and even worse, it doesn't use Helm. So now my [CODE] is all set up and working, but I am unable to change settings using Helm to create the [CODE] ... | Your ServiceMonitor seems to be correct with the exception that you have defined no path under spec.endpoints. You also need to define the port named [CODE] under the ingress-nginx service or deployment. ServiceMonitors can be debugged this way:- Check if the ServiceMonitor created is being read by the Prometheus :- Lo... | 1 | 2 | 4,227 | 2021-06-04T21:47:44.880 | pipeline_ops | devops.stackexchange.com | |
871,036 | How to give Apache access to ip-tables on ubuntu | I've run the below script on a fresh [CODE] box. It works to the point where apache blocks my IP address for too many requests as expected. However, my IP address isn't added to [CODE] . I just get a standard 403 but I would like packets to be dropped with no error. I think the problem is a permissions one where [CODE]... | I never used mod-evasive, but after skimming your script, it looks like you forgot to make your [CODE] executable - if I understand your setup correctly. Additionally I don't see any reason for an extra sudo in your iptables command, because in evasive.conf the entire [CODE] script is configured to be started by sudo. ... | 0 | 1 | 578 | 2017-08-29T13:15:43.887 | api_errors | serverfault.com | |
1,064,204 | Apache alias - Ignore alias for specific files | I'm currently working on a new project related to another one, the old one. This old project let user uploads avatar, resulting on non-versionned files in [CODE] . But in the new project, I need these avatars files too. So I took the avatar directory and put it outside of projects and I use apache alias to serve files ... | And I finally found a solution. Instead of using "Alias" I should use "AliasMatch" like that : [CODE] This part [CODE] is doing the magic. That captures all except if that match [CODE] . | 0 | 0 | 392 | 2021-05-20T08:24:18.113 | infrastructure | serverfault.com | |
279,404 | What's the best way to store class/type info in a plugin system in your software? | There are lots of applications like 3ds Max, Maya, etc that allows you to use plugins, where even the default nodes are created as plugins. This is all good but if the developer changes the class/type name of any node, then all the files using the previous version breaks. It's like you commit to a name and that name ca... | While this is a bit subjective, there are good reasons for using a GUID or other value that is not coupled to the name of a plugin. You allude to the fact that there are several global properties to a plugin: A label, which is user presentation. This does not change the identity of the plugin and may change, for exampl... | 3 | 3 | 144 | 2015-04-17T13:10:38.897 | api_errors | softwareengineering.stackexchange.com | |
981,069 | Kong won't connect to PostgreSQL | I'm not using Docker. I've installed PostgreSQL 11 and created a user [CODE] that owns a database [CODE] . On the same linux box I've installed Kong, and am trying to get it to connect to the DB using these instructions . Here's a snippet from kong.conf: [CODE] Also, per this , I've modified pg_hba.conf to include: [CO... | Got it working. Two things: At the advice of @DanielVérité, I moved my trust methods to the top on pg_hba.conf. This is because he noted that the first match is what PostgreSQL goes with. In kong.conf, I thought I'd specified [CODE] , but I'd actually put the host name in there. Changed it back to [CODE] and it now wor... | 1 | 0 | 4,833 | 2019-08-28T17:54:24.220 | pipeline_ops | serverfault.com | |
175,809 | SQL to get performance metrics shown in EM Express 12C Resources | I would like to start recording some historical performance metrics on my Oracle database server. I can use these metrics to evaluate growth of database resource requirements over time. When it's time to upgrade or replace the server, I can use this data to choose the right sized server. The important metrics for me to... | STATSPACK comes out of the box with Oracle Database Standard Edition. It works by comparing two snapshots. https://docs.oracle.com/cd/E13160_01/wli/docs10gr3/dbtuning/statsApdx.html Install: [CODE] Take a snapshot: [CODE] Generate a report: [CODE] | 0 | 2 | 632 | 2017-06-08T19:45:33.743 | database_errors | dba.stackexchange.com | |
355,020 | EF6 - how to keep track of what's changed when objects are mapped? | In a DB-first EF6 application, we have a data access layer which handles all the interaction with EF. The objects pulled from the context are EF-generated C# classes, these are then mapped to equivalent POCOs in the business layer. This is a common suggested approach as it decouples the layers. So whilst the applicatio... | Entity Framework has its own change tracking mechanisms. Updating an EF entity could be as simple as this (if you're using AutoMapper ): [CODE] | 1 | 2 | 2,125 | 2017-08-03T12:03:45.100 | api_errors | softwareengineering.stackexchange.com | |
806,754 | KVM with public IPs using bridge - Guest has no connectivity | Preface Notes: The IP addresses shown are in RFC1918 space, but in reality are public IPs, I just altered the first octet Connectivity between the host and the internet is working fine The host is running Debian Jessie, uname -a below [CODE] I have a server which has several addresses allocated within a /27. These deta... | In my experience with creating guest interfaces with libvirt, all that is required is the source bridge, MAC address, and model type. Everything else is dynamically named / created on guest start. An example of this can be seen in the libvirt documentation: wiki.libvirt.org/page/Networking#Guest_configuration_2 See if ... | 0 | 0 | 1,415 | 2016-10-03T11:20:23.720 | infrastructure | serverfault.com | |
387,395 | Methods linking bad/good practices | I have multiple methods calling each other to simplify changing anything in the code and to avoid fixing errors and copy pasting. It looks like this: Is this a bad practice? Does it cause too much overhead from experience? (I don't have any performance problems but I try to do best in every case I can) Is this a good s... | Despite the nest chains of calls that provide default parameters, you actually only call the inlined method once. Unless you're planning on implementing the Strategy pattern, or having multile other sibling methods call it, wrapping the private method is probably not needed. Overhead in which sense? App Size? Your exec... | 0 | 2 | 506 | 2019-02-18T22:49:05.930 | api_errors | softwareengineering.stackexchange.com | |
1,120,511 | How do I override the Allow response from Apache 2.4.52 | My vhost config: [CODE] But when I try to make a PATCH request the response is 405 and I get the following headers: [CODE] My question is how can I override the Allow header? I did try to append, unset, set, add, merge this header using Header "method" Allow "PATCH" But nothing worked. | One thing is announce clients the methods you allow (through headers) and another how you actually allow them to be used in your config (actual functionality in the server, with a module) The way to allow methods is through mod_allowmethods module. You have to load it. And then use the AllowMethods directive. In your d... | 0 | 0 | 318 | 2023-01-18T10:36:33.527 | infrastructure | serverfault.com | |
845,492 | Install Docker on Windows Server 2016 virtual machine | I own a mac and I need to test a Windows Server 2016 environment with Docker on it. So I run Windows Server on a virtual machine. I can successfully install Docker ToolBox on the virtual machine, but when I run the Docker Quickstart Terminal it says: [CODE] From what I have read here and there this could be related to ... | You need to enable the features on the in the VM settings in your virtualization software. For Parallels, it looks like this would cover it. http://kb.parallels.com/en/116239 | 2 | 1 | 2,863 | 2017-04-20T11:11:34.523 | pipeline_ops | serverfault.com | |
162,837 | Database snapshot "The requested operation could not be completed due to a file system limitation" | Preface At the company I'm working for we use database snapshots in our ETL process to ensure the data is in a consistent state. The snapshot files are placed on a separate disk (in our case the X:). One of the source databases is a 3TB database with data updated frequently. When creating a database snapshot of this da... | The issue is around NTFS allocation maps and the amount of space they have for file allocations. In general, the more fragmented the file the more allocation mappings there needs to be. By default when a volume is formatted for NTFS, small allocation map size is chosen (1024 bytes) whereas with /L the large allocation ... | 1 | 2 | 2,352 | 2017-02-01T08:40:18.437 | database_errors | dba.stackexchange.com | |
104,948 | How to schedule a task for multiple days of a month using schtasks.exe? | Since task scheduler API has been changed after Vista & Server 2008, scheduling a task with schtasks is (as much as I know) the only way that works on both Windows 2003 Server and Windows 2008 Server. I need to create a task that will run every on 5th and 20th of each month. Is this possible with schtasks.exe? Creating... | Schedule two monthly tasks. One for the 5th and one for the 15th. | 4 | 3 | 9,180 | 2010-01-21T10:45:42.290 | infrastructure | serverfault.com | |
186,410 | Installing postfix on Ubuntu from a boot initialization script | I need to install Postfix on a fresh Ubuntu box on first boot, but the interactive configuration screen that the installer presents to you isn't scriptable. When my startup script attempts the following: [CODE] the init script hangs. If I run it by hand, I'm presented with a "dialog" screen from the whiptail command. I... | [CODE] should do the trick. You may want to lay down working config files on the system after you run that, though. | 3 | 6 | 1,804 | 2010-09-30T23:48:50.053 | infrastructure | serverfault.com | |
377,904 | How to redirect secure requests to another subdomain in nginx | I've been searching pretty long for this one, but nothing I seem to read works right -- maybe I'm not searching for the right things. Anyway, we have a www.example.com and a secure.example.com. I'm able to successfully redirect insecure requests to SSL on the secure subdomain, but I'm having trouble redirecting secure ... | Had the same problem - just make sure the 443 redirect server block has "ssl on". So in your example; [CODE] | 1 | 0 | 554 | 2012-04-09T18:49:34.370 | infrastructure | serverfault.com | |
907,406 | Why is my site so slow after installing SSL? | I have a Wordpress site that performs fairly well locally. Most pages load in at around 1s. Some are even less at around 800-900ms. When I upload my site to my production server, a 2G RAM VPS on Digital Ocean, the load time goes up to about 1.6s, which isn't too crazy, but after I installed an SSL certificate, the load... | Check out https://www.webpagetest.org/result/180412_67_0e179d6dfd05c65eafcd1bba968d5028/ It shows it's taking almost 4.6 seconds to do the initial page load. If you dig in; Time to First Byte is 4.3 seconds. That's wordpress generating the page. Wordpress is the problem there, not HTTPS. If you're not using a caching p... | 2 | 2 | 11,619 | 2018-04-12T19:42:08.303 | api_errors | serverfault.com | |
33,673 | How to recover data around corrupted data in table? | I have a SQL Server database with some corrupted data unrepairable via DBCC CHECKDB in a table. I can get many of the rows before the corruption out - but how do I get the rows after the corruption out? | In the end, I truncated the table as the data wasn't essential and this cleared out the corruption. I know this won't be a solution for most folks - usually you need the data. | 3 | 0 | 575 | 2013-01-28T15:30:29.257 | database_errors | dba.stackexchange.com | |
711,409 | CPIO ulimit reached error | I have been googling this without much luck. I hope someone can help here. We have a customer running SCO Unixware 7 machine. This machine does a daily backup to tape. These have stopped running. It goes through and gets into the /home directory and produces the following error [CODE] This runs out of the root crontab ... | The ulimits for a root login are not necessarily the same as the ulimits in the cron-spawned cpio. Run [CODE] and [CODE] from the root crontab to find out what the limits inherited by cron jobs are. Some Unixes have a convenient/exasperating feature where they will configurably apply limits to sessions on session creat... | 0 | 0 | 194 | 2015-08-06T19:17:30.850 | database_errors | serverfault.com | |
384,224 | How to change default gateway on XP VPN connection? | When I connect to an XP VPN the default gateway for the connection is the IP address of the VPN server machine. I think this is the reason I cannot connect to the internet via the VPN. How do I change the default gateway of the VPN connection to the IP address of the remote router? | Disable the option [CODE] You can find this bygoing to network connections and clicking the Advanced button in the properties page of Internet Protocol Version 4 (or 6) of your VPN connection. Why do I lose internet when making a VPN connection? | 1 | 3 | 3,641 | 2012-04-29T11:34:59.363 | infrastructure | serverfault.com | |
43,405 | Conjugated gradient method. What is an A-matrix in case of neural networks | I am reading about conjugated gradient methods to understand how they exactly work. I understand that a pair of vector $u$ and $v$ are conjugated with respect to $A$ if $u^TAv=0$ . I also read that $A$ is symmetric, positive definite matrix. I am trying to find out how is that related to training of neural network by m... | The traditional conjugate gradient descent is an increment on the gradient descent that just takes a direction that is fully orthogonal to the previous descent direction. There is no $A$ matrix in that case. There are different rules (you can check some in my old optimization toolbox at https://github.com/mbrucher/scik... | 1 | 2 | 237 | 2019-01-02T20:13:27.063 | data_quality | datascience.stackexchange.com | |
240,323 | How to structure an append-only database in PostgreSQL? | Preface We have been stuck for years using a monolithic program with terrible and inefficient database structure. Now we are finally moving away from it with our own program. The only area we are having difficulties with is the database. Our data is financial and our existing program causes loss of data mostly through ... | This sounds like a use-case for temporal tables. AFAIK PostgreSQL does not implement this natively. There are extensions for it. It can be written in user-code, usually with triggers. The basic idea is that the data table has two date/time columns. These define the interval during which the value in a row is applicable... | 6 | 7 | 13,861 | 2019-06-11T20:41:24.253 | warehouse_errors | dba.stackexchange.com | |
1,020,646 | How to change UID and Permissions on Red hat 7? | I have a redhat7 server with detail below User : sftp1 UID : 441 New UID : 560 I need to change UID from 441 to 560 and need to update existing permissions to new UID . Does anyone know the command to do this ? | To change the user id use this command: [CODE] -u, --uid UID The new numerical value of the user's ID. usermod man page you need to be logged in with a different user to execute that command. You can utilized [CODE] to identify and change the ownership of files belonging to that user like this: [CODE] You might want to... | 0 | 0 | 218 | 2020-06-09T09:25:27.477 | infrastructure | serverfault.com | |
998,205 | SSH keys no longer work? | The Problem Trying to connect to my QNAP server from two different computers, which previously could connect via [CODE] without a password -- but now a password is asked for each time . What went wrong, and how do I fix it? What I've tried I've rooted around for ideas and checked the following, all with no success: Add... | So getting more info from the server was definitely the ticket. Open a ssh daemon on the server with: [CODE] and try to log in from a client with : [CODE] Seeing the message: [CODE] Checking the directory with [CODE] , got this output: [CODE] Yikes. I must have somehow changed the ownership of the root home directory w... | 3 | 2 | 8,027 | 2020-01-09T00:13:51.597 | api_errors | serverfault.com | |
623,768 | CentOS 5 : error in installing php-imap | can someone please help me with this CentOS 5 question? I am trying to install php-imap, i tried [CODE] but I am getting the following output: [CODE] I already have php-common installed, I ran "yum install php-common" and got the following output [CODE] how can I fix this problem? | I suspect you have something corrupted somewhere in the RPM database or yum cache. I'd clear them all out and rebuild them. First the RPM db: [CODE] Then the yum cache: [CODE] Then bring everything back in sync with the latest on the remote repositories: [CODE] Finally, try installing the package again. | 1 | 0 | 1,183 | 2014-08-25T09:31:35.430 | infrastructure | serverfault.com | |
1,029,419 | Server is down after changing machine type in Google Cloud Platform | I changed my machine type(GCP) by stopping the instance, after increasing the machine type I restarted the instance and now server stopped working, the website is down now. Upgraded from 1 vCPU, 1.7 GB memory to 2 vCPU, 4GB memory . And if I select other than 1 vCPU, 1.7 GB memory , the webserver doesn't respond. Also,... | How to Handle the "Unable to connect on port 22" error message OR create a snapshot of the troubled instance and use that snapshot to create an instance . | 1 | 1 | 169 | 2020-08-09T14:11:15.467 | infrastructure | serverfault.com | |
1,082,140 | Nginx too many redirect when trying to redirect non www to www | I have this nginx configuration [CODE] I'm trying to redirect non www to www and to redirect the third party domain blog to a specific url but I think that adding [CODE] in that position it cause a redirect loop. Where do I have to place it? What is wrong in this config? I try also to separate blocks [CODE] | You need to have separate [CODE] blocks for your [CODE] and non- [CODE] domains. [CODE] | 1 | 1 | 104 | 2021-10-29T21:58:59.683 | infrastructure | serverfault.com | |
145,054 | Sendmail + m4 - problem converting mc files into cf | I'm currently trying to configure sendmail fo the first time and setup a mail server on a small embedded computer ( running a custom linux distribution ). I'm having an issue with the m4 macros: I'm trying to convert this: [CODE] to sendmail.cf, but all the output I get when running m4 is: [CODE] Am I doing something w... | You probably forgot to tell the macro processor about the cf.m4 file like this: [CODE] | 1 | 1 | 534 | 2010-05-25T11:39:29.380 | infrastructure | serverfault.com | |
442,821 | I can only see the first website alphabetically | I have 3 subdomains websites. Those are subdomain1.mydomain.com, subdomain2.mydomain.com, subdomain3.mydomain.com. I have point these to the external IP address. bind is ok, dig is onerror, Apache2 reload ok 1.) If I set the following, I can only see the first one alphabetically. [CODE] 2.) If I set the following, I ge... | you should have following: [CODE] * UPDATE * Name-based Virtual Host Support - Apache HTTP Server | 0 | 0 | 84 | 2012-10-26T20:10:35.310 | infrastructure | serverfault.com | |
675,721 | Understanding Postfix Mail Log (Part II) | There are several logs like below in my Postfix mail log: [CODE] What did mlxmail4.icicibank.com try to do? Did it want to send spam emails to my email account? | Based of your maillog and discussion in the comment above , looks like the SMTP client mlxmail4.icicibank.com was misbehaving . It doesn't respond after postfix EHLO reply [CODE] Should I pay attention with this strange behaviour? Unless another client have the same symptom, then you have nothing to worry about. It isn... | -1 | 3 | 570 | 2015-03-16T03:40:26.650 | infrastructure | serverfault.com | |
936,508 | Set password for local admin account on all computers in domain | Before you consider what I want to achieve as insane from a security standpoint, please continue reading: I'm setting the password for the local admin account on all computers in the domain with a startup script which contains the password in cleartext, of course. I have limited file permissions to the script and only ... | Your situation is the perfect use-case for LAPS (Local Administrator Password Solution) . It's a free tool from Microsoft to automatically manage the local admin passwords on domain joined Windows machines and keep them stored in AD that you can look up whenever you need them. There are a number of guides out there for... | 2 | 3 | 4,267 | 2018-10-21T14:49:24.613 | infrastructure | serverfault.com | |
292 | Which plugin should I use to get started with Jenkins to manage mainframe components in PDS format? | Assume somebody familiar with DevOps and mainframes, but new to Jenkins , wants to get started with Jenkins, e.g. to: investigate the feasibility of managing data stored in personal files (PDSes, i.e. partitioned data sets ) on the mainframe (so not, yet, managed by any of the typical SCM solutions exist for managing m... | I set up jenkins to manage mainframe tables. Essentially utilizing groovy script plugin. I wrote code that handles movement of files on the mainframe and call them though the plugin. Essentially leveraging the mainframes API to connect and the vsc's commands to move the files. | 13 | 2 | 3,260 | 2017-03-03T14:46:34.397 | pipeline_ops | devops.stackexchange.com | |
146,813 | How mysqlcluster can be durable and consistent? | I'm little noob and learning on how to use mysqlcluster,i have 1 management 2 datanode and 2 sqlnodes.According to a book "mysql cookbook" -alex davies and localcheckpoints and globalcheckpoints By default, a running MySQL Cluster will commit a Local Checkpoint (LCP)—a copyof all the local data held on disk—every time ... | Q1: Data is both sharded and duplicated. Probably each of your two datanodes has the entire dataset. If you had, say, 5 nodes, each one could have 2/5 of the data, thereby spreading across 5 machines, yet having 2 copies of everything. And loss of any one node can be recovered from. Consistency is handled by a "eventua... | 0 | 0 | 104 | 2016-08-15T11:41:51.243 | api_errors | dba.stackexchange.com | |
1,068,033 | Advice needed on migrating shares from a 2003 DC to a new 2012: how can I avoid breaking my software install GPOs? | I've finally virtualized our entire server infrastructure and I'm ready to start migrating to our bought Windows server 2019. Since our current setup is based on Windows Server 2003 we obviously have to do the migration step via an interim installation of say 2012 R2 (AFAIK 2016 would be ok too). My problem is the foll... | Since this upgrade involves an interim installation of Windows Server 2012R2 I've thought of a possible path. The caveat is that there are no margins of error whatsoever, since the entire procedure should be performed in one step. Therefore, planning should be taken to, for example, accomodate the change to DFS-R. And ... | 2 | 3 | 288 | 2021-06-28T07:16:13.250 | infrastructure | serverfault.com | |
606,267 | Executing WMI methods by proxy - how can I keep credentials out of the hands of users? | Management wants me to create a script/application/ancient magical artifact that allows field technicians to perform a task on our Configuration Manager server (updating collection memberships - very easily done via WMI calls) without actually giving the techs the permissions to conduct said task. The first solution th... | What you're talking about is security through obscurity. You want a group of techs to have permission to do something, but you don't want to give them access to a big, scary console with lots of buttons that could get them into trouble if used improperly. I get it. But it's fallacious thinking because it's just a warm ... | 2 | 2 | 106 | 2014-06-18T22:05:00.987 | data_quality | serverfault.com | |
1,066,409 | Filesystem to protect the storage medium | I'm working on an embedded system which will act as a server, the problem is the environment where it will run is so aggressive and it will suffer abrupt power interruptions. So I'm planning to mount the root filesystem as fake-writable using OverlayFS. The idea comes from RaspberryPi, where the devs have a mechanism t... | Writes still happen, overlayfs redirects them into the upper layer. And the lower layer will need to be updated eventually. So no, just having an overlay won't fix a challenge with durability. You should think about what data needs to be durable, and how to recover from failure. Power off during write risks data being ... | 0 | 2 | 90 | 2021-06-11T11:37:23.287 | data_quality | serverfault.com | |
102,229 | Full gaps in the curve | This is the data from Irelands vaccine program. There are these missing bits of data. Is there away to fill these gaps with proportional data to make a smooth curve? | [CODE] | 1 | 0 | 18 | 2021-09-19T18:14:08.113 | data_quality | datascience.stackexchange.com | |
255,839 | Could the creation of many methods in Java affect performance? | I was told by a colleague that in Java, the performance may be worse if we create more methods, stacking many methods calling over them in JVM, specially in a Java EE environment. This seems to somewhat defeat the concept of object oriented programming. Like if we write long methods - what isn't good for code readabili... | It's probabbly an wrong assumption, first as common sense nested calls shouldn't have any (measurable) performance hit at all. After doing some research you'll find that the JVM can do some optimizations in your code "automagically": Adaptive Optimization And more importantly: Inline Expansion As you can see: In comput... | 4 | 6 | 1,784 | 2014-09-09T18:12:36.177 | api_errors | softwareengineering.stackexchange.com | |
47,026 | Multiclass classification in a balanced dataset with one high-priority label | I have a balanced dataset for a multiclass classification problem with one high-priority label (this ought to be classified properly at all costs). How do I go about creating a workflow for this problem? What specific feature engineering/selection methods and classifiers should I be considering for this problem? To be ... | This can be tackled in two places: Data : as you mentioned, this is done by artificially increasing the number of samples from critical class $cc$ . This produces the same effect as data-sets that are naturally imbalanced, Model : this is generally done by over-penalizing the miss-classification of $cc$ compared to oth... | 1 | 2 | 1,076 | 2019-03-10T07:17:51.900 | data_quality | datascience.stackexchange.com | |
1,053,156 | Nginx Redirect Issue | I'm trying to make a Ngix Rewrite Rule without success. Basic file structure in the server is as follows: [CODE] [CODE] should redirect to [CODE] The above redirect should only work if [CODE] exists in the database, if it doesnt, give 404 error . navigating to example.com (base url) should show [CODE] [CODE] and [CODE]... | I think you would need a [CODE] block like this: [CODE] The [CODE] will capture the part of URI after [CODE] to variable. Then, the [CODE] first checks if files specified by [CODE] exist. If not, then request is passed to [CODE] where [CODE] argument is set to the captured contents from the [CODE] . This means, URL [CO... | 0 | 0 | 665 | 2021-02-10T18:21:49.697 | infrastructure | serverfault.com | |
168,595 | Where can I find the first standardization of SQL, SQL-86? | This question is different but similar to this request looking for SQL-89 . The first draft of SQL is labeled SQL-86. Numerous references are made to it. Is this available to download? Wikipedia doesn't even have a page for it. I'm interested in it for historical reasons. It seems to also be called ANSI X3.135-1986 CAN... | The Standard The standard is available as FIPS 127 and hosted on the Internet Archive (archive.org) This link was given to me by a member of the Houston Linux Users Group. | 30 | 17 | 3,264 | 2017-03-30T02:34:44.237 | warehouse_errors | dba.stackexchange.com | |
1,074,212 | Proxy www-out reached process FD limit (maxsock=4168). Please check 'ulimit-n' and restart | I've compiled haproxy to apply special LUA filters and now haproxy keeps running into the max file open limit. It runs happily along and then suddenly the logs show the following message: [CODE] I have tried increasing this limit by creating a service limits file for haproxy. [CODE] When starting haproxy the limits fil... | I usually handle this kind of limitations under /etc/security/limits/limits.d where one can tweak both per-user hard and soft limits. (Check the comments inside /etc/security/limits/limits.conf for config details). I have no idea how that interacts with directives set within systemd. | 1 | 1 | 1,059 | 2021-08-11T13:19:23.247 | infrastructure | serverfault.com | |
311,782 | How to create data driven views in AngularJS? | I am building a support web front-end for our team from where we can perform various support functions for a number of different sites at which our products run. This typically involves running some sort of data query and viewing results to solve specific process issues. Each user is given access to which sites he may ... | A bit of fiddling and I found a solution: partial views with ngInclude. The URI path part that I store in the database (equates to a function) can also double up as a name for a partial view. So for each function, I just need to create a matching [functionUri].html view. Then I invoke that via ng-include in my function... | 0 | 0 | 1,040 | 2016-03-04T13:05:56.387 | api_errors | softwareengineering.stackexchange.com | |
1,125,943 | MariaDb High Cpu %300 | Hi mariadb consumes a lot of cpu. The settings are here. Server features CPU 6 cores/ 12 threads @ 3.4 GHz (4.8 GHz) RAM 32GB DDR4 • ECC Server Grade Disk Drive 2 x 480GB SSD SATA Software RAID [CODE] | It could be normal that MySQL has 300% CPU usage. What is the real problem? If you are trying to troubleshoot a slow query, you should log them, then analyze them. Activate [CODE] , run [CODE] and [CODE] to have an overview of MySQL, analyze the slow log with [CODE] and [CODE] , use [CODE] and [CODE] to profile a query... | 0 | 3 | 3,616 | 2023-03-12T06:56:20.740 | database_errors | serverfault.com | |
547,262 | Use subpath internal proxy for subdomains, but redirect external clients if they ask for that subpath? | I have a VirtualHost that I'd like to have several subdomains on. (For the sake of clarity, let's say my domain is example.com and I'm just trying to get started by making foo.example.com work, and build from there.) The simplest way I found for a subdomain to work non-invasively with the framework I have was to proxy ... | Seems like you are almost there, no? Use a RewriteCond based on the REMOTE_ADDR, for example: [CODE] The example of using a match in REMOTE_ADDR against 10.2.x.x addresses is from http://httpd.apache.org/docs/2.2/rewrite/intro.html | 2 | 2 | 1,039 | 2013-10-19T20:12:23.373 | infrastructure | serverfault.com | |
57,875 | how to do topic modeling on very huge data? | When i come to know that gensim is useful library for topic modeling, I tried it on my huge amount of document. It works well only if the dictionary size is to be fix. In my case i have each and every token is important so i would have huge amount of token at that time gensim algo like(LDA,LSA,etc) fails and get out of... | Use filter_extremes to Filter out tokens that appear in less than no_below documents (absolute number) or more than no_above documents (fraction of total corpus size, not absolute number). keep only the first keep_n most frequent tokens (or keep all if None). After the pruning, shrink resulting gaps in word ids. | 1 | 1 | 116 | 2019-08-20T12:29:20.023 | data_quality | datascience.stackexchange.com | |
537,035 | SSH host key seems to be changing unexpectedly | I rolled out a new [CODE] with Puppet on an Ubuntu 12.04 test server. The config was exactly the same as the previous config, except it had removed the following line: [CODE] I noticed I was getting a lot of similar but varying errors trying to connect to the box starting then, such as: "The RSA host key for %hostname%... | There are three common reasons you would be getting that message. In rough order of probability they are: You have changed the host keys yourself, and didn't clear or update them on your client machines. This is the most common situation. Checksum the key files and be ABSOLUTELY CERTAIN they haven't changed. You have c... | 10 | 8 | 23,994 | 2013-09-06T19:14:19.377 | pipeline_ops | serverfault.com | |
1,005,070 | fail2ban fails to send banned IPs to Cloudflare | I am running a WordPress site on a CentOS 7 server. I have fail2ban installed and working, and have verified that it is adding IPs to iptables. I just added Cloudflare to the site, and now I'm trying to get fail2ban working with the Cloudflare v4 API. I followed this guide to get up the fail2ban jails and configs. Ever... | It turns out that SELinux was blocking fail2ban from using curl. I tracked it down and fixed it by adding a new policy package following this guide: Fiddling With SELinux Policies . Now fail2ban is properly updating Cloudflare. Note for anyone who find this on Google in the future: I had to name the new policy fail2ban... | 0 | 1 | 548 | 2020-02-29T02:11:32.320 | api_errors | serverfault.com | |
211,192 | Backup detects corruption, but CHECKDB does not | I have a database where when I run the backup command [CODE] I get the error message Msg 3043, Level 16, State 1, Line 8 BACKUP 'MyDatabase' detected an error on page (1:745345) in file 'F:\Data\MyDatabase_1.ndf'. Msg 3013, Level 16, State 1, Line 8 BACKUP DATABASE is terminating abnormally. I ran a full CHECKDB but it... | This answer is taken from an issue of the SQLskills.com newsletter written by Paul Randal, about "a database which would fail a backup with page checksum errors, but passed a [CODE] ". The only time this can happen is when an extent is a mixed extent (where the 8 pages in the extent can be allocated to potentially 8 di... | 12 | 9 | 2,461 | 2018-07-03T00:06:53.543 | database_errors | dba.stackexchange.com | |
66,410 | Creating Replicas Across Servers | I'm having some issues creating a replica set of my MongoDB. I have server A. Currently, it is setup as a local standalone replica. [CODE] On another server, server B, I would like to replicate my data. To do this, I run the following: [CODE] Then I add server A [CODE] Then the log file tells the following: [CODE] My p... | It seems that I missed the obvious part - adding the replica server should be done on Server A, not the other way around. What I did was: Start a clean MongoDB installation on server B with replSet option On Server A I did [CODE] On Server A I controlled the addition of the replica with [CODE] And it works. | 1 | 0 | 231 | 2014-06-02T19:10:58.887 | database_errors | dba.stackexchange.com | |
367,072 | How to format XFS parition if the stability is the most important thing | We want to use XFS to format some partitions in a server. High performance is of course our goal, but we prefer to stability firstly. For example, we want to recover the FS quickly if power failure happens. It's not acceptable if the partition is corrupt and can't be used any more under this case. Can we change the opt... | XFS is pretty stable on its own. It's a mature filesystem. Mount/formatting options will really only impact performance. I set the allocation group count and the log size. My usual mkfs.xfs command string is: [CODE] My mount options for a system with a battery-backed RAID controller are: [CODE] | 6 | 11 | 16,580 | 2012-03-07T02:36:31.350 | data_quality | serverfault.com | |
449,976 | Nagios reporting localhost statistics instead of remote machine | I'm a little baffled by this - I set up Nagios3's server process on one machine ( tala ) and NPRE on two others ( medea and iiyanara .), and thought it was set up correctly. For various frustrating reasons I had to rebuild medea from a disk image, and as a result NPRE isn't installed anymore. Imagine my surprise when N... | [CODE] probably uses [CODE] plugin which check amount of used space of locally mounted filesystems. You should use something like: [CODE] | 0 | 2 | 2,176 | 2012-11-19T05:12:48.783 | infrastructure | serverfault.com | |
76,775 | Performance/Health checking queries for a user with Read permissions | I am a software developer that only had read access to our prod database (of course). Occasionally we have what looks like performance issues on our server when my DBAs are not available. Is there any kind of query I can run (with Data Reader permissions only) that could tell me anything about the current health of my ... | Have your DBAs create Adam Machanic's - sp_whoisactive Brent's - sp_AskBrent and grant execute permission to you. That should be a good starting point to find out why your sql server is slow. Note: Brent has already mentioned on How to Grant Permissions to Non-DBAs. You can follow that method to ask your DBA to grant p... | 3 | 5 | 3,373 | 2014-09-16T21:37:02.047 | database_errors | dba.stackexchange.com | |
805,869 | How kerberos authentication works? | I've tried to figure out how kerberos authentication works, the information which I found was always missing something as if a part of it was taken for granted. I am aware of the process in general but missing some details. Getting TGT: First a user should get a TGT (Ticket Granting Tickets) from the KDC - the user sen... | 1) that seems pretty thorough, I'm not sure about all the details. 2) The user's password isn't enough because it would have to be shared between two parties, and the only two parties that share it are the KDC and the client. If you're going to send something over the wire, even encrypted, it's better if it doesn't hav... | -1 | 0 | 641 | 2016-09-28T13:57:14.030 | api_errors | serverfault.com | |
1,065,346 | How does OpenSSH / NSS determine the address to use for a hostname with multiple DNS entries? | Suppose I have some device with multiple addresses like so (due to some combination of AD and VMWare NAT name resolution, but that's not germane): [CODE] The address I have a route to is [CODE] , from a device on the same network segment as [CODE] . If I try to SSH directly to [CODE] , everything works fine, but SSH'in... | How does OpenSSH / NSS determine the address to use for a hostname with multiple DNS entries? getaddrinfo() the libc name resolver. Every address resolved is attempted, see sshconnect.c [CODE] is sometimes useful as a crude name resolver because [CODE] real name keywords can go under [CODE] or [CODE] blocks. Problem is... | 2 | 2 | 252 | 2021-06-01T17:47:10.610 | infrastructure | serverfault.com | |
584,336 | What is a secure set of permissions to give a set of files to be backed up? | On our server we have a number of users (i.e. clients) who need their code to be backed up. Their file permissions are usually [CODE] with user and group being [CODE] (where [CODE] is the actual user name). In crontab we have a user, [CODE] , that backups all the desired file paths via tarsnap. The problem is that beca... | I think you should really got with just running cronjob under [CODE] Reasons: You will avoid non-backed up files due to user setting permission to something like 700. For example ssh keys must have this permission or SSH refuses to use them if I remember correctly. When doing a backup under [CODE] you will always know ... | 2 | 4 | 142 | 2014-03-25T06:40:05.210 | database_errors | serverfault.com | |
744,643 | Configuring Docker SSH git access | I have the following setup An Ubuntu 14.04 Linode running a GitLab CE docker instance. I use NGinx as a reverse proxy for all web-traffic, the servername gitlab.xxx.be is used to access the web interface. As for web-related stuff, i have no problem in configuring ... but SSH is a problem. How can I get SSH git access u... | Basically I need to forward all SSH traffic for gitlab.xxx.be from my linode server to the docker instance. How can this be done easily? OpenSSH server daemon must be running on your docker container. If the used docker image does not provision OpenSSH, so you need to create a Dockerfile inheriting from that GitLab ima... | 1 | 1 | 1,007 | 2015-12-22T07:10:40.730 | pipeline_ops | serverfault.com | |
28,104 | Mysql innoDB write operations are extremely slow | I'm having serious performance problems with MySQL and the InnoDB engine. Even the simplest table makes writing operations (creating the table, inserting, updating and deleting) horribly slow, as you can see in the following snippet. [CODE] I have been looking at htop and the long waiting times are not because of abnor... | [CODE] for better speed ( [CODE] for better safety) [CODE] if you are not using the binlog. "Batch" [CODE] s — many rows in a single [CODE] statement. (If you have lots, do 100 at a time.) [CODE] is also excellent for loading. [CODE] 70% of available RAM. [CODE] , or use [CODE] [CODE] I'm surprised it did not crash wit... | 11 | 7 | 24,068 | 2012-11-02T13:41:13.227 | database_errors | dba.stackexchange.com | |
819,471 | How to setup DNS to connect 2 servers with 1 Domain? | I have 2 Servers: [CODE] Each server has different clients, therefore, Server 1 client has nothing to do with Server 2 clients. To my Server 1 clients I gave these Name Servers: [CODE] To my Server 2 clients I gave these Name Servers: [CODE] In my domain registrar, I have created 4 child Name Servers. [CODE] On my both... | I found the solution for this. Child Name Servers is the correct way to achieve this functionality. I was just missing one thing. Once child Name Servers are created on domain registrar. We have to add A records for NS3 and NS4 on Server 1 and similarly A records for NS1 and NS2 on Server 2. So these A records must exi... | -1 | 0 | 1,108 | 2016-12-08T09:44:58.163 | infrastructure | serverfault.com | |
1,151,550 | postfix issue with combined check of sender-domain, login and IP Whitelisting | I would like to have a postfix that allows mail relay to a relayhost when a) the sender-domain is allowed and one of: b) the sender has authenticated c) the client has a IP whitelist entry my current approach so far is: [CODE] with restricted_senders containing [CODE] and ip_whitelist containing [CODE] While sending ma... | Why this does not work? The [CODE] : The default is to permit everything. Specify a list of restrictions, separated by commas and/or whitespace. Continue long lines by starting the next line with whitespace. Restrictions are applied in the order as specified; the first restriction that matches wins. and [CODE] Search t... | 0 | 0 | 44 | 2024-01-15T22:07:56.420 | api_errors | serverfault.com | |
703,164 | How to work around a "logon workstations" restriction to the Domain Controller stopping authentication via LDAP | I am trying to allow users of an external linux based application server to authenticate with the service using their Active Directory credentials via LDAPS. It works well for admin accounts but fails for normal user accounts. The issue is that there is a "logon workstations" setting for users that restricts them from ... | I would suggest to deny interactive/RDP logon to the DCs with GPO: "Computer Settings/Security Settings/Local Policies/User Rights Assignments/Deny Logon Locally" I've seen such problems with custom/corporate software and some Linux boxes. In these cases "Logon Workstations" should include the DC(s) in the list of allo... | 4 | 2 | 6,357 | 2015-07-02T15:34:05.130 | api_errors | serverfault.com | |
438,848 | Clean Architecture: How to decouple the Repository from a CommandHandler? | We are just starting with event driven (and clean) architecture. So far we have two main entrypoints, a consumer (reader from a Redis Stream / Kafka Topic), and an API. As this is almost a modular monolith and not a proper isolated microservice, we added an extra layer that we called the [CODE] , it basically redirects... | If anyone is interested in the future, I came to the following design. I added [CODE] module to [CODE] , which is basically an object that maps the [CODE] to their [CODE] , something like: [CODE] So [CODE] will be something like: [CODE] And then, at the processor level, I inject the dependencies like: [CODE] I could al... | 0 | 0 | 688 | 2022-05-25T15:46:06.077 | database_errors | softwareengineering.stackexchange.com | |
412,572 | HAProxy failing over to a "busy" page | Possible Duplicate: Change backend when reaching maxconn HAProxy I want our HAProxy configuration to fail over to the backup server in the backend, or to another specified backend, in the event that maxconns is reached on all backend servers. This is to display a static over capacity message that I'll serve up from ano... | This worked, answer taken from another question . [CODE] | 0 | 0 | 457 | 2012-07-30T16:03:03.100 | data_quality | serverfault.com | |
1,119,270 | tcpdump shows these hostnames - should I be worried | I'm investigatinmg a strnage hang with our NextCLoud instance and think it might be todo with a misconfigured hostname somewhere. I thought of using [CODE] to look at what addresses/names are being referenced. I ran the command [CODE] for about 5 minutes. When I looked at the output, I found strange addresses. I do not... | If I understand your question correctly: That simply looks like a [CODE] format, where : the numerical IP-address gets translated to a hostname whenever the reverse DNS lookup for that IP-address succeeds the port number gets translated to a service name whenever it is a ”well known/reserved” port associated/registered... | 0 | 0 | 89 | 2023-01-02T12:14:31.787 | infrastructure | serverfault.com | |
658,606 | PHPIZE dont working on plesk whit 2 php version, imposible install extension | first sorry for my bad English, try to explain my problem as clearly as possible. I have a strange problem on one of my servers, I run a plesk 12 server, I have 2 php versions. The default php version 5.3 in /usr/bin This working fine, and I can install modules here, PHPIZE version is: [CODE] No problems there. I have ... | When you build an extension for each version of PHP, follow like as below For 5.3 [CODE] And for 5.5 /opt/php5.5/usr/bin/phpize ./configure --with-php-config=/opt/php5.5/usr/bin/php-config make make install Please edit to correct path. Above just example. | 0 | 2 | 1,136 | 2015-01-10T14:21:55.403 | infrastructure | serverfault.com | |
117,140 | Is it safe to make the wwwroot folder writeable? | I am trying to use IIS7 web server. I found out that I cannot edit (or create) files in this directory. The reason for that is that this directory has read-only permissions. I could change this permissions but I am afraid that it can make a hole in the security of my site. I mean, for example, if this directory has wri... | It really depends who you are giving permissions to. If you give everyone write permissions to that folder, then yes anyone will be able to write anything to that folder, which is not good. Similarly if you give write permissions to the account your site runs under you are opening your self up to trouble. If you just w... | 2 | 3 | 1,034 | 2010-02-26T12:34:15.537 | infrastructure | serverfault.com | |
411,583 | Duplicating API implementations for declaring intention | I'm developing an ETL process in Python and Pandas to pull data from a rest API, and then dump it into a relational database. A few of the fields that come back contain sensitive that I do not want to expose in the wider general purpose table. I can run a drop column command and then not worry about the data. But I wan... | Yes, and Yes. Yes you should absolutely take advantage of an abstracted interface to declare intentions, regardless of implementation. This makes it easier later down the track to swap in a different implementation when you for example realise that dropping columns doesn't work, and instead you need to generate pseudo ... | -1 | 1 | 33 | 2020-06-17T02:15:11.693 | data_quality | softwareengineering.stackexchange.com | |
456,969 | How to enable mod_info in Apache? | I gone through the apache guide to enable to mod_info. As per doc: To configure mod_info, add the following to your httpd.conf file. Location /server-info SetHandler server-info /Location You may wish to use mod_access inside the directive to limit access to your server configuration information: Location /server-info ... | I guess simply using [CODE] will work in your case. NOTE: [CODE] is only available on Debian variants (i.e. Ubuntu, etc.). You can read more about [CODE] here . [CODE] and it's sister command [CODE] can be used to enable or disable apache2 modules. examples [CODE] | 3 | 4 | 3,599 | 2012-12-11T08:47:52.043 | infrastructure | serverfault.com | |
876,607 | Running Kafka in Kubernetes on AWS | I've the following scenario: 3 nodes instances spread across 3 Availability Zones 6 Brokers running in StatefulSets with AWS external volume for Kafka data. Instance size: m4.2xlarge EBS Volume: st1 - 500 GiB No limit requests and memory set at Kubernetes resource level (not good for production - resource limits must b... | I manage 3 kubernetes clusters and 4 kafka clusters (3 kafka nodes each) at my job. I would NEVER put kafka inside of kubernetes. It makes no sense at all. Just use dedicated ec2 machines for kafka clusters, and connect k8s VPCs with kafka VPCs. Kafka is a database, it benefits hugely from direct access to operating sy... | 3 | 0 | 457 | 2017-10-03T10:45:13.947 | pipeline_ops | serverfault.com | |
362,082 | External address for a single server | In a few tutorials ive read on how to make a mail server say i need a FQDN for postfix and an exact external address to my mail server for DNS records. I am hosting 4 domain names and have one server behind a router with a static external ip. I usually just forwarded ports to my server but how can i get the server.doma... | Correct reverse DNS setup is only important for outgoing mail, not incoming mail. You can use as many hostnames pointing at your single static IP for users to use when submitting mail (e.g. [CODE] , [CODE] , [CODE] ). For sending outgoing mail you need to pick a single hostname as the canonical hostname for your mail s... | 0 | 1 | 97 | 2012-02-21T04:47:55.927 | infrastructure | serverfault.com | |
1,136,644 | Debian - How to prevent file corruption on power loss? | I have a Debian based OS, and I am creating a program that have support for upgrading itself. The program is ran on system-level as a systemd service. I have a problem when I update the software, which in practice means replacing some files on [CODE] folder (home of all my application code) and replacing systemd servic... | Consider .deb packaging your software. This way, dpkg will handle this issue as well as the entire update process including the application files & the SystemD service unit. If something goes wrong, e.g., a sudden power loss or other interruption, dpkg will be aware of the situation and suggest the necessary action, wh... | 0 | 3 | 154 | 2023-07-11T07:35:26.323 | data_quality | serverfault.com | |
695,441 | Dnsmasq's DNS response auto caching feature not working | Dnsmasq Cache and Internal Log on USR1 signal dump (when running with or without --no-daemon and --log-queries for analysis) it always shows: 0/0 cache, meaning caching feature of Dnsmasq not working. It is also observed that although repetitive DNS A?(host query) and A(response) records are populated successfully over... | I also faced this problem and found the root cause I think. Please capture a wireshark dump of your DNS reply and check if the "Recursion available” field is set to “Server can do recursive queries" if it is not set, then those responses will not be added to cache. | 1 | 1 | 3,143 | 2015-05-30T06:02:15.537 | infrastructure | serverfault.com | |
340,456 | setting up a local database to be updated from a master database | I'm looking for an efficient way to keep multiple databases (on different servers) sync with a [CODE] database (also on a different server). Mind you I only need a one way sync (from master to all others). As I was searching I came across multiple solutions. [CODE] : Which (from what I read) is unreliable, because if t... | You can use the following script to sync tables from a remote database server to a local database server. [CODE] | 0 | 0 | 676 | 2011-12-12T00:59:25.280 | infrastructure | serverfault.com | |
510,144 | A same file displays different time stamp and permissions between local file system and NFS | I created a nfs share entry [CODE] From the local file system, execute 'ls -al' in /share. The output is [CODE] Then I mount the nfs share to ~/test in the same machine . The mount output is (I only remove the IP info) [CODE] Frome the NFS, execute 'ls -al'. The output is: [CODE] Compare the 2 outputs, you will find, i... | Can you show us the output of [CODE] ? This is the expected behaviour if you have further filesystems at /share/build and /share/team -- the local [CODE] will see the mounted filesystem, the NFS client will see only the mountpoint directories. To get the same view, you need to also share the lower filesystems and mount... | 2 | 0 | 534 | 2013-05-23T07:53:53.433 | infrastructure | serverfault.com | |
177,407 | Trigger to get next prefixed ID: Is there a better way? | I have a [CODE] table: [CODE] As you can see, the [CODE] column has a text datatype ( [CODE] ) and it has a prefix ( [CODE] ). I'm guessing that creating an ID with a prefix might have been a been a poor design choice. But, right or wrong, this is how my organization has set up it's business. I've written a trigger tha... | I expect your trigger to throw runtime "Mutating table" error . Unless autonomous transaction is used because you cannot query the table that fires the row-level trigger inside its body. I'd rather keep it simple - create a sequence, for instance , [CODE] . Also, I'd fire trigger only if project_id is not set ( [CODE] ... | 2 | 6 | 1,936 | 2017-06-27T17:46:12.607 | database_errors | dba.stackexchange.com | |
381,013 | Shell command slow when using pipe, fast with intermediate file | Does anyone understand this huge difference in processing time, when using an intermediate file, or when using a pipe? I'm converting tiff to pdf using standard tools on a fresh debian squeeze server. A standard way of doing this is to convert to ps first. Without pipe: [CODE] With pipe: [CODE] During the last command,... | Edit: I ran this with your source file in my environment and have the following results: [CODE] I added the [CODE] command to see what was happening. Here is what happened: [CODE] 50 Megabytes of Postscript output being piped to the [CODE] command! @janneb was correct in that this is a buffering/pipe issue. I tried to ... | 20 | 17 | 5,085 | 2012-04-19T08:29:51.180 | infrastructure | serverfault.com | |
93,671 | MySQL UTF-8 Encoding Problem | I have two MySQL databases that are for Wordpress websites. One db is for a live version of a site, the second is a copy of the original that is used in conjunction with a copy of the original site. We use the copies for development. The original site is having character encoding issues, showing the black diamonds with... | Not an "answer", but steps for debugging... All of these need to agree: tag on HTML character_set_client , character_set_connection , and character_set_results the WP setting (I don't know what is, try this ?) the CHARACTER SET on the columns of the relevant tables, or if nothing mentioned, then on the table, from whic... | 0 | 1 | 588 | 2015-02-24T15:51:42.290 | database_errors | dba.stackexchange.com | |
690,175 | What's a good load balancer check for puppet master | We are running a couple of Puppet Master version 3.7 (Not PE) on AWS EC2 instances behind an Elastic Load Balancer (mainly for high availability). Currently the load balancer's check is just TCP connect on port 8140. But this didn't detect that one of the instances was hung (it was still accepting the initial TCP conne... | What you could use as a check if puppet master is working correctly is to set up some kind of API query, for example: [CODE] Offcourse, API access won't be available by default, meaning you will have to use the SSL certificates of a signed client to be able to access the REST API. Also, all certificates won't have all ... | 4 | 4 | 744 | 2015-05-07T01:21:37.523 | database_errors | serverfault.com | |
408,017 | Why does Heroku warn against "naked" domain names? | I ran across this page in the Heroku docs... Naked domains, also called bare or apex domains, are configured in DNS via A-records and have serious availability implications when used in highly available environments such as massive on-premise datacenters, cloud infrastructure services, and platforms like Heroku. For ma... | What they're talking about is that when you use a [CODE] to point to their services (which is only possible on subdomain, not the zone root - it can't coexist with the [CODE] and [CODE] records that are required on the root of your zone), they can make a change to their own DNS records to work around some kind of avail... | 67 | 58 | 24,205 | 2012-07-16T04:55:07.253 | infrastructure | serverfault.com | |
628,011 | Node.js SSL Certificate Error | I'm trying to use my purchased SSL certificate in Node.js - this certificate works perfectly in Nginx and Apache without any errors. However, when I try to use it in Node.js, I get this error : [CODE] Here is my server.js code : [CODE] I noticed some examples require converting the .crt and .key to .pem format. I am ab... | A private key is in RSA format, not X509. Use "rsa" instead of "x509" in your openssl conversion command. | 0 | 4 | 6,791 | 2014-09-12T05:46:55.137 | api_errors | serverfault.com | |
1,122,393 | Google Public DNS always returning NXDOMAIN for certain SLDs | Problem: Google's Public DNS returns NXDOMAIN for certain SLDs. Proof of problem: [CODE] [CODE] as you can see the query status is NXDOMAIN. Asking the authoritative DNS server listed in the AUTHORITY section, however, points to a correct answer: [CODE] [CODE] Other public DNS servers (opendns, cloudflare, etc) all res... | The authoritative DNS server (all 4 NS records) is consistent in the responses: No, it is not. The server [CODE] occasionally flips between returning the A record and returning NXDOMAIN for this name. (It seems that making a query via TCP, using [CODE] , is a reliable way to make it start responding with NXDOMAIN over ... | 0 | 2 | 382 | 2023-02-09T10:15:50.113 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.