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 |
|---|---|---|---|---|---|---|---|---|---|---|
616,904 | SSHFS mounts use too much memory | I have 21 SSHFS mounts from a Debian server to another one. The servers are on a 1Gbps LAN. When I mount these 21 FS, 675 MB of real memory (not buffer nor cache) are allocated on the server mounting the resources (the one acting as a client). I also tried the option "-o cache=no", but it didn't change anything. Since ... | Yes, this is normal. Why don't you build a tunnel between the two machines, let's say with OpenVPN, and use normal networked file systems instead like NFS then? Or something else which might suit more your needs. | 1 | 2 | 1,601 | 2014-07-31T13:09:45.527 | infrastructure | serverfault.com | |
619,918 | Unable to setup a connection to Amazon EC2 and run pig | I have made an EC2 key pair and saved it to a location under my home directory on mac. Also I have changed permissions with 'chmod 600 /path/to/saved/keypair/file.pem'. Now I have followed the following instructions to run pig on EC2: To set up and connect to a pig cluster, perform the following steps: Go to http://con... | If you managed to ssh to the Cluster's master instance, typing in "pig" in the prompt should result in something (either a grunt prompt or an error message of some sort). Did you make sure that pig is installed on the EMR cluster? (I don't see it in your directions) | 0 | 0 | 102 | 2014-08-03T08:42:58.083 | database_errors | serverfault.com | |
380,933 | NXDOMAIN Issues With .AU.COM Domain | I have registered an .au.com domain name with a domain provider here in Australia and have created successfully a Google Apps email account using the domain (Google Apps have confirmed my MX records are correct and I have received test emails from .COM.AU addresses as well as from GMAIL.COM addresses). However, upon op... | The [CODE] domain has two nameservers that serve it. One ( [CODE] ) correctly handles your domain. The other ( [CODE] ) does not. I would talk to the folks at [CODE] if it's been more than a day or two. From [CODE] : [CODE] But from [CODE] : [CODE] The issue is the [CODE] , not the different authority. | 2 | 3 | 179 | 2012-04-19T00:29:49.140 | infrastructure | serverfault.com | |
912,503 | MariaDb Master-master replication | I tried master-slave replication of mutliple databases of mariadb-5.5.52-1 in RHEL environment, the mariadb came as a part of nagiosxi application. while replicating from master to slave i had many duplicate errors 1602, the master cannot overwrite with the values that were in the slave. please provide me some valuable... | Hey Mohan it is unclear if you want master to master or master to slave? To set up master to slave it is pretty simple. Especially if you have done it once or twice. In this scenario Machine A is the master. You need to edit the /etc/my.cnf file on machine A In the [mysqld] section enable binary logging and define a se... | 1 | 3 | 2,231 | 2018-05-16T13:40:39.193 | database_errors | serverfault.com | |
177,932 | Locks caused by async stats update | SQL Server has an option for statistics to autoupdate asynchronously ( [CODE] ). But, even if this option is ON, from time to time I see locks like this on pic below: say, spid 549 locks spid 42 and spid 42 locks 8 other sessions. As I can see, system spid tries to change old statistics to a newly computed one, so it w... | https://techcommunity.microsoft.com/t5/azure-sql-blog/improving-concurrency-of-asynchronous-statistics-update/ba-p/1441687 ASYNC_STATS_UPDATE_WAIT_AT_LOW_PRIORITY Now in SQL 2022. | 0 | 1 | 1,812 | 2017-07-04T07:58:20.250 | database_errors | dba.stackexchange.com | |
413,581 | nginx proxing not working properly | I have hosted different drupal sites in an Ubuntu server. Nginx is running as a webserver in this server.All sites are working fine. For security reasons i need to enable a Nginx proxy server ahead of the above server. Configured proxy. The following is the configuration file that i used for proxying . The result of th... | If 'nginx' is running on the same host as http://www.drupalsite.com , then you have conflict because they are both attempting to use port 80. If that's the issue, you need to move drupalsite.com to a new port or a new server. Also, try removing "proxy_set_header" and "proxy_redirect" directives. They are not essential.... | 0 | 0 | 98 | 2012-08-02T10:27:05.460 | infrastructure | serverfault.com | |
1,007,924 | ansible only run one of a with_item list limited by tags | Im importing a usercreate role into an application role for the purpose of installing the application user only from the usercreate role. I'm having problems limiting the usercreate role to only create the application user. when imported it runs all of common/vars/users.yml defined users. the tree: [CODE] the applicati... | You have defined your 'username', but you aren't actually doing anything with that variable. Perhaps you intended to add a 'when' or something? Something like this perhaps? [CODE] | 1 | 1 | 803 | 2020-03-22T22:22:37.287 | pipeline_ops | serverfault.com | |
99,698 | Restoring /etc/passwd from file | I know they say "given root access, everyone will screw up their machine eventually", and I'm discovering how true that is. In an incident of extreme fatfingering, I've managed to wipe out my /etc/passwd file. Now, I have a current backup of it, but I want to make absolutely sure how I should restore it before doing so... | This is totally off the top of my head, but as long as you don't have this line [CODE] in your [CODE] file, you can boot into single user mode without a password and re-set your root passwd. This also assumes that either you don't have a boot loader (grub) password or that if you do have one, you know it ;). -phez | 3 | 3 | 2,877 | 2010-01-05T18:13:51.700 | database_errors | serverfault.com | |
114,871 | Testing the impact of events on time series | Context I am working with product data for a retail company. I have the daily impressions (number of times it was viewed online) for all products over a 30 day period (can get more data). Here is the data for one product: [CODE] So this product was on sale from index 7 to index 13. We expect that when a product is on s... | The best way to do a comparison like this is multi-facetted. The first component is to create an appropriate experiment which means being as completely random as you possibly can and serving an equal number of enhanced and typical advertisement campaigns. Be super sure that you are being even and fair across times of d... | 0 | 0 | 38 | 2022-10-03T12:39:13.720 | data_quality | datascience.stackexchange.com | |
449,052 | using same table for multiple features a bad coupling? | We are migrating a template that was a mere questions array questions [CODE] to a library like SurveyJS (this Json is complex, can maintain pages of questions with images and nested questions) to create a surveyJSON for one of our features (say doctor notes). Initially, we added the surveyJson column next to the questi... | So this is how i interpret your question. Your SQL tables. Before : [CODE] After [CODE] Your object: [CODE] Seems to me that this object can be populated by a single select in both cases [CODE] Now you do have the issue that a reused surveyTemplate thats changed, will affect multiple noteTemplates, but this is desirabl... | 0 | 2 | 87 | 2023-12-10T08:17:20.043 | api_errors | softwareengineering.stackexchange.com | |
667,692 | reason: 403 4.7.0 TLS handshake failed | Sending email to one particular domain, I get the following error: [CODE] Wondering if this is an issue with my mail server, or the recipient... So this is happening on two domains now... both of whome are using outlook.com as mail providers: [CODE] | So it turns out that I had seen this with other servers with a common thread that all affected domains were using outlook. I looked into this more and found that my email cert had expired. I fixed that and all is well. | 2 | 1 | 30,521 | 2015-02-14T22:13:49.617 | api_errors | serverfault.com | |
106,987 | Why is hotswap so much more expensive? | I am currently looking a building a server, and am comparing hardware. In particular I have been looking at hard drives. It seems like hotswap hard drives are significantly more expensive than normal hard drives A 500GB HDD is around $50-60 ( here ) A comparable 500GB hotswap HDD is $250 ( here ). I know the advantage ... | They charge this b/c they can. People who are worried about hot swapping tend to have a business need/reason behind that. Either from a risk or cost point of view but in many cases it's both. Say it's 9am and a drive in a RAID 1 running the companies email server dies. Do you shut it down and replace the drive which no... | 2 | 5 | 3,447 | 2010-01-27T22:32:04.203 | api_errors | serverfault.com | |
992,898 | What could prevent me from renaming a file locked? | I've run into a very weird issue on a build server where it won't let me rename any file 'locked' on the entire D drive as it throws a permissions error. I have local admin rights which allow me to rename a file locked on the C drive and rename a file on the D drive to any other name. This affects all directories and e... | Turned out that IT had put in place restrictions on creating files called 'locked' via group policy to attempt to prevent the spread of crypto lockers. | 0 | 0 | 78 | 2019-11-22T13:22:16.420 | infrastructure | serverfault.com | |
545,307 | How do I redirect users from https://www.example.com to https://example.com? | I did not purchase a wildcard certificate, but I see a big problem with my setup. When I navigate to https://www.redmeetsblue.org I do not have a certificate, like the one I have for http://redmeetsblue.org How can I redirect the user, from https://www.redmeetsblue.org to http://redmeetsblue.org without the user notici... | Not possible. Since your certificate is not valid for www., browser will display a warning before following any redirect you set. Go on and purchase either a separate certificate for www., or one that includes both -www. and naked domain. Note that widcard alone may not be enough - *.example.com does not cover example.... | 1 | 4 | 388 | 2013-10-11T04:04:30.293 | infrastructure | serverfault.com | |
616,440 | Throw brute-forcers into a honeypot, but still allow real SSH logins? | So just for fun I opened up SSH to the world and a few bots have latched on to my server (unsuccessfully trying to log in by password). But of course this fills up the logs. I've attempted to use DenyHosts, but somehow it's not really working, so I thought, "Why not use a honeypot?" The problem is, I want to allow good... | If you want to allow legitimate SSH logins while disallowing (via honeypot) fake, I'd change tack. Put your SSHD on another port, like 2323 or some other oddball port, and forward connections to that. Ideally you have a separate machine for that, so you can tell your router to forward port 2323 to internal machine XYZ ... | 0 | 4 | 900 | 2014-07-29T21:46:00.797 | infrastructure | serverfault.com | |
1,108,275 | Enable mysqlx plugin on AWS RDS | Is there any way to enable the [CODE] plugin on an AWS RDS running MySQL 8? When I do a [CODE] , it shows that the [CODE] plugin is installed, but [CODE] . I have some C++ code that's using the MySQL C++ 8 connector and I want to avoid using the legacy JDBC connector; I already have the code running on a local VM and i... | Answering my own question since I can't delete it: it seems they don't allow it, though the documentation is not only abysmal, it's practically non existent. It seems as though if it's not explicitly documented to being disabled, it's implicit that it's just not allowed for "reasons". If you find this page in search of... | 0 | 1 | 252 | 2022-08-16T04:48:23.590 | database_errors | serverfault.com | |
323,858 | Broken Slave (MySQL replication) | Last night one of the developer ran a wrong mySQL statement (Query inserting a row with duplicate primary key) on master machine. Suddenly the replication to its slave stopped. Slave started writing it to mysql_relay_logs and before we could monitor and fix it, the disk ran out of space. Master is configured to save bi... | The straight-forward course of action is to wipe out the data on the slave and start fresh with a new copy of the master. The master can be copied by using mysqldump or through something like rsync. Depending on how large your database is, you may experience downtime. This will always work. There's a chance that if you... | 2 | 5 | 2,745 | 2011-10-22T07:19:38.407 | data_quality | serverfault.com | |
501,714 | nginx proxy_pass 404 error, don't understand why | trying to pass off all calls to /api to my webservice but I keep getting 404s with the following config. Calls to / return index.html as expected. Does anyone know why ? [CODE] More info here [CODE] | error 404 returns your backend, he does not know anything about the url /api, which is transferred to it by [CODE] directive. [CODE] passed backend as [CODE] instead of [CODE] If proxy_pass is specified without URI, a request URI is passed to the server in the same form as sent by a client when processing an original r... | 1 | 1 | 5,154 | 2013-04-22T23:03:37.263 | infrastructure | serverfault.com | |
90,236 | What is the / your most effective QA process? | I'm looking for some ideas on how to improve our current Quality Assurance process. There is no official QA method in place right now, but we basically just get some requirements using a ticket system and we go back and forth until all the requirements are covered. The problem right now is some requirements change and ... | Users change their minds constantly, which is natural and healthy. It means they have learned more about what they want. We know requirements today will be wrong tomorrow, so it makes no sense trying to get a definitive answer. It's all just speculations anyway. They wont be satisfied even if you deliver exactly accord... | 0 | 7 | 5,377 | 2011-07-06T20:38:23.973 | api_errors | softwareengineering.stackexchange.com | |
219,701 | Is Oracle Smartscan really effective? | Oracle is marketing Exadata to our company, and they're focusing on Smartscan, which is, advertised 10x more effective than traditional solution. I don't really understand (and somewhat don't really believe) this solution, because they assume that data is put on separated storage, and no indexes are used, so "1TB data ... | It's definitely more than a buzzword. Whether it's effective will depend on your database. It offloads part of the work to the storage server which reduces data volume over the storage server network and the CPU on database host to process it. If your database doesn't max out these resources then you won't see a benefi... | 0 | 0 | 104 | 2011-01-07T03:42:32.267 | database_errors | serverfault.com | |
84,689 | Can SQL Server use a spatial index and another index at the same time and be efficient? | Let's say we have a table that contains two terrain datasets defined by TerrainModelID like below: [CODE] I have a spatial index, Location_IX and also an index on the TerrainModelID column. In a query like the below is having the two datasets in the same table going to cause the spatial index issues/slowdowns? [CODE] I... | mickyt : With only 2 models in your dataset the spatial index will be more effective than an index on model id. It will still do an index seek on the model id if required. However if you start adding more and more models to the table, you may get to a tipping point. I tested on a table with 1,000,000 points and 99 mode... | 4 | 2 | 144 | 2014-12-09T11:10:48.547 | database_errors | dba.stackexchange.com | |
867,282 | proxy.conf file in freeradius | I am working on free radius management System which I developing it with PHP language. my system will be available on the cloud, suppose there are company1 and company2 which will use our system. company1 will have database1 which will contain company1's clients company2 has database2 which will contain company2's clie... | The [CODE] file defines realms which are destinations for RADIUS traffic. Each realm may contain one or more sets of servers. The servers are grouped by the ones used to process accounting traffic (Accounting-Requests), and the ones used to process authentication traffic (Access-Requests). One way of solving your probl... | 0 | 0 | 1,296 | 2017-08-07T13:36:02.590 | infrastructure | serverfault.com | |
374,840 | Postfix port 25 unavailable | Is there a condition or state that Postfix can enter that will prevent connectivity on port 25? Am using Javamail to send to postfix as the local MTA, which works about 99% of the time. However, I will occassionally see an exception like: [CODE] So, is it possible one of the queues is filling up and causing this? Is th... | Connection refused usually means that the service is not listening on that port. In your case postfix was not running when you have seen that exception. If postfix is to slow you will receive a timeout exception. When an application is slow and is listening, the TCP connection will be established by the TCP subsystem, ... | 0 | 1 | 888 | 2012-03-29T13:17:38.833 | infrastructure | serverfault.com | |
120,328 | how to deal with controller mutations | During development process, things are constantly changing (especially in early phases). Requirements change, UI changes, everything changes. Pages that clearly belonged to specific controller, mutated to something completely different in the future. For example. Lets say that we have website for managing Projects. One... | Applying composition over inheritance to controllers is one of those approaches with which you just can't go wrong. The idea is to have as thin of a controller as possible. The controller should just define the request/response processes, but anything substantial happening in between is going to be defined outside of t... | 5 | 1 | 394 | 2011-11-17T07:53:40.227 | api_errors | softwareengineering.stackexchange.com | |
913,055 | Removing nginx compilation | I have compiled nginx(1.13.6) on my ubuntu server by cloning and installing nginx from git. I want to recompile it with additional modules. When I try to remove nginx using: [CODE] I get the following output when [CODE] is entered which shows that nginx has not been fully removed. [CODE] How can I remove nginx complete... | You have removed nginx. You have not removed the systemd unit file nor deactivated it. To deactivate the service, run [CODE] . To remove the unit file, delete the file [CODE] . | 0 | 0 | 3,542 | 2018-05-21T07:24:26.850 | infrastructure | serverfault.com | |
568,309 | Subversion commits not appearing in repo | Good morning to all. I am just starting with subversion and need some help. I have setup a repo on my server for my web directory. Steps followed are: [CODE] Then I import the project with: [CODE] and start the server with [CODE] Everything works fine and I can download the repo from my client with: [CODE] Now on my cl... | The copy at [CODE] is the repository itself, the structure of which only makes sense to subversion and will not directly contain the file you commit. To have the server get copy of the contents of the repo, you will want to do a checkout on the server as well: [CODE] Then once changes are made by a client to the repo, ... | 0 | 0 | 1,044 | 2014-01-19T08:27:06.343 | infrastructure | serverfault.com | |
933,299 | Heroku Django App Very Slow | I have a Django app deployed on Heroku and it is VERY slow! I'm making small queries and I'm waiting a long time (10-15+ seconds to load 12 items (a 41KB request). I'm using the Insomnia tool to test queries. When I make a 3.3KB request to my local server, it takes 400ms, whereas the same request to my Heroku deployed ... | The issue ended up being some middleware I had installed in my Django app called Silk, which ironically I had installed to help me diagnose my app speed. This is pretty specific, but I hope it helps someone! | 0 | 0 | 714 | 2018-09-30T07:48:10.037 | infrastructure | serverfault.com | |
30,610 | UltraVNC, DynDNS, Multiple Computers in LAN? | I have a LAN with several computers behind a router on a dynamic IP address (Win and FreeBSD). I want to be able to reach several of them via VNC from outside the LAN. I am thinking to get the CustomDNS service from DynDNS.com, and set one of my domain names to forward to my dynamic ip, using their update software to k... | DynDNS will provide a name to IP resolution (something.homeip.net to 123.123.123.123). You don't need Custom DNS to do this unless you require your own domain. Your port forwarding will work regardless of which option you choose. Your router will provide the port forwarding. You can configure your router to forward lik... | 2 | 4 | 4,266 | 2009-06-23T21:16:39.103 | infrastructure | serverfault.com | |
278,446 | SQL Server BULK IMPORT Truncation error | I am trying to import a simple [CODE] file into a table on SQL Server 2017. The CSV file and table match each other in number of columns and data types. This is an extract of the [CODE] file: [CODE] This is my table: [CODE] This is my import statement: [CODE] I keep getting an error saying the last column (the client I... | The import worked for me with your sample data. But if the real data has commas in that "jsonT" column, it's going to get the data in the wrong columns. BULK INSERT interprets that comma as part of the CSV format, and then starts putting everything after it in the last column ( [CODE] ): If you have control over the cr... | 1 | 2 | 4,314 | 2020-10-21T16:30:59.283 | database_errors | dba.stackexchange.com | |
71,754 | How to change routing for skype packets? | I can't seem to find a way to somehow change routing for Skype packets. I have following situation: host ha, in lan, runs skype. host ha has gateway "gw1" gw1 has 2 separate network connections - one of them is default, and I'd like to dedicate the other for skype connections. All machines involved use Linux, so I can ... | You might be able to use Snort IDS and fwsnort (to generate rules) in order to do what you need. With a little looking around, I also found Application Layer Packet Classifier for Linux which might do what you need. | 2 | 1 | 2,069 | 2009-10-06T14:03:47.710 | infrastructure | serverfault.com | |
114,712 | How to do an incremental update for the mean and standard deviation of tensor data? | I have a big dataset (some 400Gb) consisting of tensor data (shape is $(600, 600, 10)$ ) and I want to normalize this dataset before feeding it to a neural network but this dataset can't fit in my memory so I was wondering about incremental updates of the mean and standard deviation. The formulas are here but I don't s... | Normalization is needed to make each input feature vary within the same scale around the same mean. If one feature varies within a much larger scale, it will have a larger influence on the error that your network minimizes during training. For example, this explanation: link . Your input is a collection of data in the ... | 1 | 0 | 64 | 2022-09-27T06:24:00.090 | data_quality | datascience.stackexchange.com | |
159,934 | How to store additional information about each point of a SQL Server geography line string? | I am using SQL Server 2016 and I have a Trajectory table and a TrajectoryPoint table. A trajectory consists of many trajectory points, and a trajectory point is related to only one trajectory. Each trajectory point has many values such as location, timestamp, speed, SSR code and more. This is the current trajectory tab... | All the points in your Geography have one common [CODE] , but each one of them has a relative position ( first point, second point, ..., nth point). I would consider that the natural key for this table is just a composite-key [CODE] , where [CODE] is just 1 for the first point of the trajectory ( [CODE] ) 2 for the sec... | 4 | 5 | 538 | 2017-01-04T08:58:09.827 | database_errors | dba.stackexchange.com | |
768,279 | Nginx: Googlebot Gets Temporarily Unreachable For Some Images | I use nginx as a reverse proxy. When I try to fetch my site using "Fetch as Google" I receive what looks like a 404 for some CDN-hosted images entirely randomly. Most load and render fine, but some not. So it appears some resources on a CDN are not getting fetched properly and I believe nginx is to blame because I have... | It was most likely nothing, however I wanted to be sure so here's what I did: 1. As pointed out in the comments, I should take better care of logging. While digging through nginx file I noticed it wasn't properly logging the real IPs. Then I made sure Google was crawling the site just fine. See question: How to properl... | 0 | 0 | 278 | 2016-04-05T12:42:40.983 | infrastructure | serverfault.com | |
378,139 | Is there any diagram for unit-tests? | I'm writing a software library for some numerical computations. I'd like to use Boost Unit Test framework to write a hierarchical unit-test covering not only basic input/output behavior of functions but also the higher functionality, e.g. correct results to some test problems etc. However, I'm afraid, that I'll get los... | I don't think there is a "standard diagram", but there are naming conventions for unit tests around, like this one or this one . I would recommend first and foremost to have a good structure and documentation for the library. Then, one should establish a rigid naming convention for the tests so it stays easy to see whi... | 2 | 2 | 1,066 | 2018-09-08T10:59:43.220 | api_errors | softwareengineering.stackexchange.com | |
164,329 | Insert up to 10 missing products into a related product discounts table | I have two tables: [CODE] and [CODE] . If a product is designated as a "Top 10" product, and it is missing a defined discount in [CODE] , I want to insert a record into [CODE] for each missing record. The inserted values would consist of the [CODE] and two other hard-coded values in the INSERT INTO. Products id, produc... | I'm having a hard time understanding why you can't just do this: [CODE] Actually, more intuitively, IMHO: [CODE] Is it because the discount amount ( [CODE] ) changes depending on the product? Share with us what rules you use to determine if the discount should be something other than [CODE] . If you can't define those,... | 3 | 6 | 1,056 | 2017-02-14T19:27:40.910 | warehouse_errors | dba.stackexchange.com | |
713,135 | Potential traffic issues on one big(ger) subnet | Posts like this : Most traffic in a corporate LAN is client to server nowadays, and a router not very well setup rather becomes a bottleneck AND a SPOF. and 200+ clients on a subnet wasn't a real issue 10 years ago and it won't be now, you can still read all the broadcasts with a (non-promisc) tcpdump without it becomi... | It has been a while since I worked in the network administration side of things but here is what I think about this: 200+ clients on a subnet wasn't a real issue 10 years ago and it won't be now, you can still read all the broadcasts This is more or less true. Back before switching technology subnetting to account for ... | 3 | 4 | 684 | 2015-08-10T17:03:17.767 | infrastructure | serverfault.com | |
3,905 | Who writes stories and tests in Agile? BA or tester? | I am currently a business analyst, but increasingly as I am working on agile projects. I am including test cases as acceptance criteria for my user stories. I am also interested in becoming more directly involved in the testing side of things as an analyst, but I have some questions. Background In a more traditional so... | Welcome to SQA, FJFG. As Bruce McLeod once wrote , "There are no 'best practices', there are only good practices in context." A good practice for you will depend upon your context. I will suggest some contextual considerations. You may be aware of others. Your primary job, or at least your initial job, is to own and co... | 6 | 11 | 7,969 | 2012-09-29T13:38:14.207 | data_quality | sqa.stackexchange.com | |
327,860 | PSEXEC from powershell | I have been struggling getting powershell to run Psexec. It works fine for single line commands. but i need to call SCOM to put the server in maintenance mode through Psexec... [CODE] I have tried to put quotes after every sentence but it doenst help.. I get this error PsExec v1.98 - Execute processes remotely Copyrigh... | I wrote the following function to start a process on a remote server: [CODE] It requires the computername and your commandline as a string, be sure to escape additional quotes, and returns a custom object with info about your process: [CODE] Perhaps you can modify it to allow alternative credentials. Hope this is helpf... | 2 | 2 | 4,519 | 2011-11-04T16:15:20.080 | infrastructure | serverfault.com | |
523,625 | Error on nagios starting | I had nagios running on centOS. when i restart the nagios with /etc/init.d/nagios restart it not showing any error. But when i check the status with /etc/init.d/nagios status it showing nagios not running . I run nagios with the help of /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg i getting following e... | You don't have any more room on your disc (see the 100% on that [CODE] output for [CODE] ), so all sorts of things will start to break, including this. Free up some space. Specifically in this case, [CODE] tries to write to some (temp?) file, but can't Error: my_fcopy() failed to write to '/usr/local/nagios/var/spool/c... | 1 | 4 | 5,893 | 2013-07-16T09:13:50.223 | infrastructure | serverfault.com | |
310,735 | Upgrading CentOS Server Hardware? | My (postfix) mail server currently runs on an old PowerEdge 2650 and it badly needs a hardware upgrade. I would like to put it on an 8 core (3rd Gen) 2950, but have no idea how to go about changing hardware. Do I have to install CentOS on the new machine and then figure out how to get postfix/mailman/ldap all working o... | How about this for a "not-what-you-were-expecting answer". :) Virtualize the sucker. Download the free version of VMware's ESXi and install it on the 2950. Then use the (also free) VMware Converter product to do a P2V migration of the mailserver from its current hardware into the new virtualized server. Doing this will... | 3 | 4 | 386 | 2011-09-13T03:40:17.207 | database_errors | serverfault.com | |
842,607 | Linux repositories. Ubuntu apt-get and centOS yum | I am new to VPS and when I want to install something in Ubuntu16.04 or CentOS7 I need to google it and hope it's written somewhere how to install it through apt-get or yum and then hope it is a good repository. Then even the same project has differences between those 2. For example you have httpd in yum and apache2 in ... | The built-in repositories will always be trusted/trustworthy. Debian based (Ubuntu) and RedHat (CentOS) based are indeed different. Even professionals still have to web-search. You can try finding packages available with commands like [CODE] and [CODE] . basic examples: [CODE] better examples: [CODE] You may prefer [CO... | 0 | 1 | 5,319 | 2017-04-04T21:21:52.320 | infrastructure | serverfault.com | |
613,549 | Disconnecting connections to TCP server by external means | I have a TCP server listening on some port on my box (Windows XP). There are many users connected to it. Now without bringing down server application or box, or without unplugging network cables how can I disconnect those connections? I am not very well versed with network related commands (e.g. net, netsh, netstat etc... | TCPView from Sysinternals (now part of Microsoft) will let you c lose established connections . This is a free download and the whole toolkit should honestly be part of the default install. | 0 | 1 | 139 | 2014-07-18T06:45:29.597 | infrastructure | serverfault.com | |
984,345 | trying get a working version of ELK (elastic search + kabana) with docker-compose | So I've spent the last 6 hrs doing this and successfully got it to work with 2 separate docker containers (I just do a docker pull kibana:7.3.2 and docker pull elasticsearch:7.3.2). The tag seems to be important for some reason as latest gives me an error ... anyway I follow this up with 2 separate docker run commands ... | Try using docker-compose up (no -d). Then you can see the what causes the problem. If the problem is that you get the following error -which I had- try adding a configuration to your elasticsearch service: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery... | 1 | 0 | 335 | 2019-09-16T05:06:43.300 | pipeline_ops | serverfault.com | |
874,771 | Running an application in background | I have a web app on a freebsd server. An app is a single executable file, with a built-in webserver. My default shell is zsh. When I'm running it as "./my_website &" and close a connection, it terminates. However, when I switch to bash by "/usr/local/bin/bash" and run my website the same way "./my_website &", then exit... | Or you may run it in screen: [CODE] | 2 | 1 | 878 | 2017-09-21T07:30:15.533 | infrastructure | serverfault.com | |
382,623 | params T[] vs IEnumerable<T> as parameter type | I know there's a proposal for [CODE] . When designing an API, when should we choose [CODE] (params array) over [CODE] . Or should both be implemented for better end-user experience? Example: [CODE] [CODE] When using [CODE] invocation is greatly simplified, but then if you want to pass some [CODE] then you have to call ... | The [CODE] keyword is only useful, when you as the coder will pass a number of strings that can vary between calls and you don't want to put them into an array manually for every call. The [CODE] data type is useful, when you as a coder have a collection of any type and want to pass it. So tailor your method to your au... | 7 | 6 | 3,328 | 2018-12-07T08:54:51.603 | api_errors | softwareengineering.stackexchange.com | |
282,285 | Why do I get "Operation not permitted" when trying to mount a volume using sshfs and MacFUSE? | I installed MacFUSE (from http://code.google.com/p/macfuse/downloads/list ), restarted, and then downloaded sshfs-static-leopard.gz, and moved sshfs-static-leopard to /usr/sbin/sshfs (and did a chmod 755 on it). I've configured an Ubuntu machine at work (with the hostname "daryls") so I can ssh into it without a passwo... | It's possible that your user account is not able to mount volumes into the [CODE] directory directly. Have you tried mounting [CODE] into a directory within your own home directory? Failing that, you might need to have administrative ( [CODE] ) permissions to run [CODE] . Try prefacing that command with [CODE] like so:... | 6 | 7 | 42,862 | 2011-06-20T17:20:40.643 | infrastructure | serverfault.com | |
604,709 | ways to automatically fix line endings in shell scripts or files who break with ^M | Problem We regularly break our files lines endings and things stop working without us noticing. Bash complains about "invalid option" or ": command not found" as described here: http://thinkinginsoftware.blogspot.ca/2012/11/linux-server-cries-for-linux-desktop.html I'm concerned this could break other text files as wel... | I have to deal with this on occasion with some legacy systems. Sometimes the files retained in the organization's source control ( Borland Starteam ) were set to the wrong linefeed configuration. But working in a number of cross-platform environments, copy/paste should not cause this issue alone. Try to identify the tr... | 2 | 4 | 6,503 | 2014-06-12T17:23:16.837 | pipeline_ops | serverfault.com | |
646,213 | 3ware 97504i - Disk mappings/UUIDs change on reboot | I have a 3ware 9750-4i with 36 drives running (4 in RAID 10, rest individual drives, i.e JBOD). When I reboot, all the drives except for the RAID 10 array, have their UUIDs changed on reboot (it seems random, as I've rebooted a few times and each time it was a completely different UUID). This causes me to manually go t... | As a workaround to the problem you can use LVM/labels to mount the drives with, instead their names. This isn't the solution to the original issue, but I hope this can eliminate the consequences. | 2 | 1 | 460 | 2014-11-21T23:25:25.313 | infrastructure | serverfault.com | |
140,959 | What is Best storage servers infrastructure ? DAS/NAS/SAN or installing GlusterFS/LUSTER/HDFS/RBDB | I am trying to design an infrastucture for the project I am working on. It would be somehow a file-sharing/downloading project (like rapidshare) and I would need high storage sizes and good scability, and I would add new storage nodes after my project grows up. I have come up with 3 solutions for my project which are u... | Your questions are non trivial and there is not enough info to give a good answer. I can give an answer (clustered filesystem over fibre channel SAN) - but it may well turn out to be more expensive and complex than it needs to be. So I'll just throw out some comments/thoughts. Really stuff for you to consider. Perhaps ... | 2 | 3 | 5,812 | 2010-05-12T05:10:25.353 | database_errors | serverfault.com | |
403,913 | Apache serving empty gzip with assets produced by Rails Asset Pipeline | I followed the steps described in the blogpost The Asset Pipeline, from development to production and tweaked them to my environment. The two important files are: /etc/apache/site-available/example.com [CODE] /var/www/sites/example.com/shared/assets/.htaccess [CODE] But apache seems to send empty gzip files because the... | Change the encoding: [CODE] Please do check this blog entry for a more detailed explanation. | 2 | 1 | 883 | 2012-07-01T19:40:20.787 | pipeline_ops | serverfault.com | |
522,531 | HTTP attack - Too many connections & TIME_WAIT | I am running CentOS 6 with http -2.2.15 Going under HTTP attack, i can see many http process running. [CODE] Count of all connections: [CODE] Count all unique IP address: [CODE] Please, advice what we could do to find out who is making the most connects? PS: server load has not been affected by this attack though. Than... | These are blank lines being counted, adding [CODE] before the uniq in the pipeline will resolve it. It is very possible this is not an attack, but perhaps a software problem. What are your normal numbers? I have seen articles about MySQL 4/5 causing a high number of TIME WAIT state connections. Have you had any new ins... | 2 | 1 | 2,978 | 2013-07-11T13:17:16.070 | infrastructure | serverfault.com | |
143,569 | Windows 2003 Server - File Permissions | I have a Windows 2003 web server with a tree of folders that contains around 100GB of small images. I need to update the permissions on this folder to add a new user with access. I tried to do this by right clicking on the folder and adding the new user but the process never completed. I left it running for around an h... | You can try to use inheriting instead of explicitly specifying security settings for each file. Right Click on the folder -> Properties -> Security -> Advanced. Make sure that "Allow inheritable permissions...." is checked. Add User and specify her permissions. Other way is to set permissions programmatically. Here is ... | 1 | 1 | 348 | 2009-05-08T08:57:12.290 | infrastructure | serverfault.com | |
378,574 | Suggestions for splitting server roles amongst Hyper-V virtual servers / RAID6 or RAID10? / AppAssure | We have 2 Hyper-V hosts at present running 1 virtual server that was converted from a physical box running all roles. My plan is to split the roles over various virtual machines, upgrading to the latest software versions as I go, and use the backup server as a standby in case the main server fails. AppAssure backup sof... | One big R10, no hot-swap but have at least one spare disk to hand - simple as that. | 0 | 4 | 356 | 2012-04-11T17:04:27.887 | database_errors | serverfault.com | |
592,262 | Debugging slow transfer rate from server | I'm trying to explain this as simple but documented as possible. This is not exclusive to this server or my current ISP . I've seen the same exact issue over the years while being with different ISPs and having my servers with different providers (GoDaddy in USA, iWeb and GloboTech on Canada). The only thing it's been ... | There is downloading of your bigfile( only 1mbit/s), i have 30mbit/s uplink and speedtest from your serv: can you try to run iperf in multiple streams mode? [CODE] | 0 | 1 | 1,824 | 2014-04-30T05:52:35.190 | infrastructure | serverfault.com | |
85,510 | Automatic rollout of VLAN (and other) configs to Procurve switches | I've got a pile of switches connecting everything together at our DC, 50 racks or so worth of kit. It's starting to be a problem to login to every single one of them to make configuration changes -- mostly adding/removing VLANs to all the trunk ports, but every once in a while there's some other config change we need t... | Last time I was working with a lot of distributed non-cisco switches and had to do tasks like this budgeting was an issue so I couldn't use any of the paid solutions for it. I went back to the basics and used expect . It worked well in my situation, however if you don't have your trunk ports all on the same port of a s... | 9 | 3 | 2,758 | 2009-11-17T14:04:11.387 | infrastructure | serverfault.com | |
795,295 | Postfix is not responding on port 465 (SMTPS) | I have Postfix and I've configured it to listen on port [CODE] for [CODE] . When I telnet to port 465, it does not respond but it does respond on port 25. I've googled for days and nothing has worked for me so far; so now I am coming for some help. Below are my main.cf and master.cf files for Postfix. main.cf [CODE] ma... | I'll do my best to give you some ideas, things to try... Perhaps referring to the port numerically rather than by service name will help From http://www.postfix.org/master.5.html [CODE] So create a section like this [CODE] I added this line to my Postfix server to see what would happen and it worked. Have you tried wit... | 2 | 3 | 13,501 | 2016-08-07T00:44:52.957 | infrastructure | serverfault.com | |
418,303 | After enabling ReWriteLog in .htacess, I failed to open my web site. | .htaccess worked well at first, then I added two lines to my .htacess to enable RewriteLog. The result is that I failed to open my web site. The two lines I added to my .htaccess are as follows: [CODE] .htaccess with rewritelog enabled is as follows: [CODE] The error message I get when I try to open my web site: [CODE]... | You cannot add RewriteLog to .htaccess as you can see below. If you want to set RewriteLog you must add this to server config or virtual host config. [CODE] http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog | 0 | 5 | 1,860 | 2012-08-16T16:20:27.633 | infrastructure | serverfault.com | |
406,523 | Who should own /var/www? | Possible Duplicate: How should I structure my users/groups/permissions for a web server? I've seen a few answers to this on the internet, but I'm looking for a definitive answer. I have a new Ubuntu 12.04 LTS server with LAMP. Apache is set to run as "www-data" and /var/www is set as having "root" as the owner and "roo... | We really can't answer this question - it depends on your environment. The major concern here is someone uploading, for example, a PHP script that does malicious things to a directory they can browse to, and getting your web server to run that code by browsing to the script they just uploaded. The best answer you can g... | 1 | 1 | 1,264 | 2012-07-10T19:34:25.093 | data_quality | serverfault.com | |
313,011 | How to handle large numbers of connections from an IP address? | Every couple of weeks we have an issue whereby a single IP address opens a huge number of of Apache processes at the same time. It seems to connect to similar pages each time, but our Apache processes goes from the normal ~20-25 busy slots to our max (256). This IP address then refreshes all the requests relentlessly, ... | maybe something like this will help. it will block any hosts, that open more than 150 connections within 2 minutes (180 seconds): [CODE] you have to tune the script, so that normal users will never get blocked | 7 | 9 | 852 | 2011-09-19T13:51:02.587 | api_errors | serverfault.com | |
876,781 | How to display filebeat logs as a single file in kibana? | I have used ELK for displaying my middleware logs in kibana. for that I am using multiline patterns which mentioned below, after those logs displaying seperatly like separate expandable. How to display those logs as a single file ? as a single expandable ? Because last couple of weeks I stucked in the same problem. Pat... | [CODE] The above pattern will sync all the logs as single expandable. Suppose If anything added newly then It creates as separate expandable. That is expected behaviour from Kibana. | -1 | 0 | 634 | 2017-10-04T08:50:30.550 | bi_errors | serverfault.com | |
609,449 | Is it possible to run apache as root, to execute scripts | I am unable to execute commands (shell_exec) with php, and read on stackoverflow / here that the solution was to run apache as root. Is this possible / is this a totally wrong solution? When I try to execute commands with php it does nothing. I am trying to run a python script with variables from a PHP script and it is... | Standard builds of Apache don't tend to support running the httpd deamon as root. Typically (for RHEL and CentOS anyway) it runs under the apache account. What you could do, if you're wanting to run your scripts from PHP as a root user, it add apache to the sudoers file. This will allow the apache account to impersonat... | 0 | 1 | 895 | 2014-07-02T03:30:23.940 | infrastructure | serverfault.com | |
836,125 | What does a failed SPF record tell me from a DMARC Aggregate report? | I have been trying to find a straightforward answer to this, but I have been having no luck. I also tried asking on the security focused Stackexchange site, but had no luck there is well. I am hoping someone here might have some insight. I am trying to understand what it means for a Source IP to fail SPF. Does this mea... | Does this mean that the domain that failed the SPF tried to send an email on behalf of my domain? (essentially spoof my domain?) No. What this means is that (i.e) somehow a valid client of your domain went through a mailing list out of your domain control, or a mailbox redirect of your former employee, and this was cau... | 1 | 0 | 356 | 2017-03-03T15:24:24.297 | infrastructure | serverfault.com | |
515,114 | ksappend does not work in RHEL/CO 6 any more? | I am currently in the progress of migrating our kickstart-files from CentOS 5 to CentOS 6. In CentOS 5 there was a nice anaconda/kickstart-statement that allowed the inclusion of other kickstart-statements via http. Example: [CODE] When I try the same statement in CentOS 6.4 I get an error during installation: The foll... | For what it's worth, I don't see mention of [CODE] in the official RHEL5 docs , either. There is mention of [CODE] , though. And this looks very similar in function. Will it work for you? The %ksappend url directive is very similar to %include in that it is used to include the contents of additional files as though the... | 2 | 2 | 777 | 2013-06-04T12:55:41.653 | infrastructure | serverfault.com | |
1,037,106 | Connect Oracle Autonomous Database in Microsoft Azure Data Factory | Anyone in here have already connected Oracle Autonomous DB in Azure Data Factory? We are trying to implement some data copies from SQL Server to Oracle, but I am not able to reach Oracle Autonomous Database, using standard host, port, service name and credentials. Maybe any security layer related to the Wallet is missi... | have you tried to perform a network trage on Oracle DB ? Connection Dead looks to be that for some reasons a established connection lost contact. This happens when you use a Oracle Listener which redirects the a different Port and you use a firewall - for example default port 1521 is redirected to a free port - like 34... | 0 | 0 | 1,038 | 2020-10-09T16:05:03.280 | database_errors | serverfault.com | |
400,737 | Headless CMS and business logic | The company I work for wants to move from their current CMS (very expensive and developed and maintained by an external company) to a new one, possibly open source or for a lower price. My colleagues and I are looking at headless CMS and the options on the table, for now, push us to 2 possible solutions: strapi and gra... | You're not over-complicating it, this is how headless CMS work once you go from sales pitch to use. Their APIs are not aware of your user model, their rate limits (in case of SaaS) are too low, and the data model that is convenient for content editing is usually not convenient for data retrieval. Bite the bullet and cr... | 4 | 2 | 793 | 2019-11-07T17:20:53.723 | data_quality | softwareengineering.stackexchange.com | |
20,455 | Write to Error Log | Using SQL Server 2008 R2: How can I write to the SQL Server Error Log? I have a ROLLBACK statement that I'd like to couple with a statement written to the error log for external monitoring. Example: [CODE] EDIT: I'd like to clarify - I want to write to the "SQL Server Logs", "Current" log, under the "Management" folder... | AFAIK, the only way to do this is to use the [CODE] option of the [CODE] function. Note from that MSDN page that there are certain security requirements that must be met for you to do this. That said, the SQL Server error log really isn't meant for application-based logging. If you need to add monitoring/logging to you... | 10 | 10 | 20,453 | 2012-07-05T19:08:47.377 | pipeline_ops | dba.stackexchange.com | |
322,662 | joining domain - store password and avoid prompting password | While joining a domain from a linux machine , I give this command: net rpc join member -U Administrator. Now, the above command prompts for (Administrator) password. Now, I wish to store the password somewhere(smb.conf OR krb5.conf) so that it does not prompts for password. Is it possible? Note:Necessary changes to joi... | You should only need to join the domain once per machine, once your machine has been joined the machine account secret will be stored in a database file on your system. | 1 | 2 | 283 | 2011-10-18T18:35:33.293 | infrastructure | serverfault.com | |
356,375 | Spring Exception Handling. Custom exception per Http status? | I'm just designing the exception handling for the REST interface on our Spring server. As we will have multiple REST controllers, a central exception handling is desired. Spring offers the solution via [CODE] . This works well, except that I need to add a dependency to the MVC part of Spring, which I don't use elsewher... | I would generally avoid this approach. I tend to feel that the type of an exception should provide semantic information about the cause of the exception which should usually be in terms of your problem domain . By restricting exception types to the HTTP response codes that will be generated, you restrict the informatio... | -1 | 2 | 3,257 | 2017-08-28T08:12:29.423 | api_errors | softwareengineering.stackexchange.com | |
73,079 | Modifying Windows cable-unplugged behavior? | Is there a way to make windows stop dropping the interface every time a cable comes unplugged? I don't care about those little balloons that pop up when the cable state changes, as annoying as those are. The specific problem is that when a cable is out, while you can still see the network adapter name/properties in the... | You want to disable "Media Sensing" on the interface in question. http://support.microsoft.com/kb/239924/ The summary: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters Add: Name: DisableDHCPMediaSense Data type: REG_DWORD (Boolean) Value: 1 | 1 | 2 | 2,216 | 2009-10-09T19:47:59.393 | infrastructure | serverfault.com | |
642,256 | Scale HAProxy for more than 64k websockets | We are trying to design an architecture that will be able to handle more than 64k websockets. We first tried with Amazon ELB, but its design doesn't allow unexpected spike of traffic nor websocket. (TCP mode timeout the websockets unexpectedly) With HAProxy, those limits do not apply, but we'll be limited to ~64k webso... | If your 64k limit is due to source ports, you can do something like the following (a little hacky, but it was we currently do at SE for websockets (we have something like .5 million concurrent usually with HAProxy): [CODE] Also multiple instances is doable with keepalived. Just do something like round robin DNS over mu... | 9 | 7 | 2,104 | 2014-11-05T16:21:24.193 | api_errors | serverfault.com | |
423,124 | need help from some professional how to redirect old or invalid url | I recently upgraded a site and almost all URLs have changed. I have redirected all of them (or so I hope) but it may be possible that some of them have slipped by me. Is there a way to somehow catch all invalid URLs and send the user to a certain page and somehow know what URL the person came from so I could log this, ... | You can create a custom 404 file. Assuming you are using Apache you would add the following line to your .htaccess [CODE] This code basically tells the server that if a user encounters a 404(Page not Found) Error to display errorfilename.php. In this PHP file you can add either code to email you when a user gets to the... | 0 | 2 | 1,361 | 2012-08-31T01:35:41.170 | infrastructure | serverfault.com | |
922,578 | Define "unauthorized connection" vs "authorized connection" (newbie) | Reading the man page for sshd_config, I see the term "unauthorized connections" in MaxStartups. What is an "unauthorized connection," a connection that was allowed without any authorization? If some sort of authentication is required, does that not make unauthorized connection impossible? Would anyone require use of ss... | Yes, [CODE] has to allow clients to connect without being authorized. A client needs a connection before it can initiate the authorization. So at the time where clients connect they are all unauthorized. There are obviously strict limitations on what a client is allowed to do on an unauthorized connection. Essentially ... | 1 | 0 | 220 | 2018-07-18T23:27:32.233 | api_errors | serverfault.com | |
1,066,416 | Mysterious disconnects every 4 hours at specific times (e.g. 08:02, 12:02, 16:02 etc) | we have a real odd issue. Multiple users have noticed that their computers are unable to access various web and file based services at specific times 4 hours apart. I've noticed the "disconnection" at 12.02pm myself and trying to access internal web based systems gives me a 404 page not found error. Others have noticed... | Right so turns out that the switch was recording a Syn Attack and shutting down the port for 60 seconds. The switches time was out so of course the attack didn't coincide. The issue was / is caused by the spiceworks discovery scan. Since the syn attack settings are effectively causing a DOS I've switched them to report... | 0 | 1 | 136 | 2021-06-11T12:54:25.593 | infrastructure | serverfault.com | |
856,456 | Centos PHP upgrade failure | I needed to upgrade from PHP 5.x to 7 removed old components using yum - remove php* Installed remi repo, updated all Install seemed to work however Its faulting with an m-crypt problem and Im not sure how to repair it? Output below [CODE] Can anyone point me in the right direction? How would I go about "nuking" it and... | You have parts of PHP7 from IUS repo in your installation. Remove everything with the name [CODE] before trying to install PHP from Remi's repo. Additional, you appear to have some conflicts in the IPA client libraries. | 0 | 0 | 522 | 2017-06-18T09:32:38.840 | infrastructure | serverfault.com | |
914,860 | Does the DNS response order matter in nslookup? | I've implemented a DNS relay program on Windows. I got 3 DNS query every [CODE] command, PTR, A and AAAA. I reply the type=A query first, and reply PTR/AAAA query few microseconds later. But I got timeout in [CODE] and found that every A and AAAA response are received by localhost but PTR response got ICMP [CODE] error... | The requests for addresses (A and AAAA) are separate from the request for the PTR record. Until you have an address your cannot request the PTR record. For a typical SMTP reverse DNS validation lookup for IP [CODE] the process is as follows: Translate IP address into lookup format. Lookup PTR for [CODE] . Receive PTR w... | 0 | 1 | 599 | 2018-06-02T04:33:25.253 | infrastructure | serverfault.com | |
3,049 | Chef (well, Test Kitchen) hanging when using local cookbook | I am new to Chef, trying to put together a POC for my company. So I've got a project that has two cookbooks under the cookbook folder. One cookbook is a "base" cookbook called 'hydra-base', the other (called 'automator') is supposed to extend it. Right now all I have is a test in the extending cookbook, and a recipe in... | It turns out that AWS was just excruciatingly slow and apt-get (applied in the base) was timing out. I would have known this had I gone back earlier and tried testing the base cookbook. | 1 | 1 | 224 | 2018-01-09T17:43:10.580 | pipeline_ops | devops.stackexchange.com | |
400,550 | Is a generic data structure customary for use in a self contained program, or can I duplicate source files? | I have a project that does some Dijkstra searches on a graph, I implemented a red-black tree and priority queue that I use for the nodes, however I also need the same data structures for other things such as edges. I think there will only be 2, maybe 3 types of struct I would use it with. In such a scenario where the s... | If the types that will be stored in your container are known and few in number, you can actually have both type safety and no duplication. You start by writing a generic container, using [CODE] to point at storage and callback functions to do stuff like comparisons. And then you write type-specific wrappers around your... | 4 | 5 | 107 | 2019-11-04T14:07:28.937 | data_quality | softwareengineering.stackexchange.com | |
327,085 | Setup Windows DNS Server to redirect all requests on a specific machine in local LAN | I have a problem about prevent user to access internet (like watching www.yahoo.com) on local LAN Currently I have a Windows Server 2008 R2 installed, and I already make a change to not allow user access to internet via the default gateway on router, however, I want to setting up the DNS server to redirect all requests... | Open the DNS managment. Set up a new Forward Lookup Zone for google.com and set a Host A record to 192.168.1.1. Also ensure all clients use the server as the DNS. | 2 | 1 | 14,937 | 2011-11-02T15:39:08.660 | infrastructure | serverfault.com | |
17,889 | ansible_become has no effect despite the ability to execute sudo on GCP hosts | Say I want to execute the following command on target hosts (deployed on GCP): [CODE] . The command demands the root access. With the default Ansible configuration, I get the following error: [CODE] Hence, I extended my [CODE] to include the following: [CODE] Despite these changes, I can't run the command mentioned abo... | Running ansible with -vvv will tell you which ansible config you're using For instance [CODE] shows that I'm not using any config file chances are pretty OK that is what is happening to you too. ansible.cfg should be in the current directory or ~/.ansible (maybe some other places depending on how you installed ansible)... | 1 | 0 | 53 | 2023-05-28T11:38:47.900 | pipeline_ops | devops.stackexchange.com | |
601,231 | Stop Zabbix notification for nodes under zabbix-proxy when proxy service is down | I have a zabbix-proxy and 12 nodes in that proxy. Right now whenever proxy service goes down. It send out of reach mail for all the 12 nodes. I want to send mail only for the zabbix proxy not for the nodes under that proxy Updated: Now I am trying to have a single trigger in which I want to check both the conditions li... | One way to accomplish that would be to monitor whether Zabbix proxy is reachable. This is done using [CODE] internal item. In the documentation on internal items , it then suggests to use [CODE] trigger function to check availability of your proxy: [CODE] After that you can make your "host unreachable" triggers depend ... | 0 | 2 | 5,607 | 2014-06-02T15:05:56.500 | infrastructure | serverfault.com | |
258,184 | Oracle DB | Issue with agent and OMS connection | We performed a "P2V" migration to a local VMware host last night to get an old physical Oracle server over to a new virtual home (we covered all the licensing aspects, we're OK there). Prior to starting the virtualization process we brought all services and instances offline. Coming up on the virtual side went very smo... | As they say, time heals all wounds. After investigating for around two hours, the issue cleared on its own. | 0 | 0 | 2,034 | 2020-01-25T17:01:53.130 | database_errors | dba.stackexchange.com | |
372,145 | Building a MySQL server which processor to choose | I am building a new MySQL server and I have choice between these two processors: Intel Xeon 5675 AMD Opteron 4284 I don't know which one should I choose? The load on the server will be an average of 80 millions insert/month. There is a huge difference between the price of each processor, but everything else will be the... | Depending on your disk setup, it is likely the bottleneck will fall under the disks before the CPU. At least in my experience, I could never utilize an 8-core processor on my MySQL server as the disk I/O filled up before even 20% CPU usage. Unless you have a really fast disk array I would go with the cheaper one. | 4 | 2 | 952 | 2012-03-21T20:03:34.130 | database_errors | serverfault.com | |
618,879 | Windows Server 2008r2 - cannot edit/delete/copy some files which I own and have full access | There's a few folders I need to run a script on. I have full access to the entire directory and all subdirectories, and when I run the script I get a lot of UnauthorizedAccessException. Most files I can access as necessary. When I go to any of the specified files, "effective permissions" shows that I should have full a... | Turns out people higher in the domain had it blocked by McAfee. Would have expected a different response than "you need permission from Everyone," but McAfee logs show it blocking file access. | 2 | 0 | 3,527 | 2014-08-08T02:23:55.160 | infrastructure | serverfault.com | |
166,664 | Can Active Directory do Weird Things to Printers? | Here's kind of a parallel question to this one about my printer server saga... Is it possible that AD can be corrupted or have something odd going on that affects printer configurations on these systems? The initial reason we needed to look at rebuilding the print server was because during they year we'd have scattered... | There's too little specific information to go on. Do you have a problem that can be consistently reproduced? At the risk of being needlessly pedantic, I'd caution you not to talk about it like "AD", because Active Directory, by itself, is just a multimaster loose-convergence database engine that doesn't have anything t... | 3 | 1 | 726 | 2010-08-03T14:15:30.620 | data_quality | serverfault.com | |
1,038,895 | How do you properly test an imap:993 connection to determine whether implicit or explicit STARTTLS is set? | I've been reading many different blog posts and articles over the past hour but none have helped me understand why this command without [CODE] : [CODE] results in: [CODE] But this command with [CODE] : [CODE] results in just: [CODE] And then just kind of hangs and there doesn't seem to be a wy to interact with imap. Ho... | Port 993 is defined as IMAP over TLS, i.e. implicit TLS. This port must always answer with a TLS handshake. STARTTLS may be used on the unencrypted port 143, but it's best practice to not serve this port at all . See RFC 8314 for further information on this. | 0 | 0 | 5,138 | 2020-10-15T22:09:17.530 | infrastructure | serverfault.com | |
162,651 | How should I model a database structure to store word information on flashcards? | Words, base words, and flashcards I recently posted this question , where I asked about modeling words and base_words in a database - now that I've landed upon having separate tables, a second issue has arisen: a user adds flashcards containing words, which link to a base word, and contains a full sentence from one of ... | Generally speaking, databases don't store arrays. It sounds like you need several tables to track different things. A [CODE] table which will store the [CODE] (primary key), user's name, and so on. A [CODE] table to store the base word, a [CODE] (primary key) and such. A [CODE] linking table. This table would have it's... | 0 | 2 | 264 | 2017-01-30T15:44:55.987 | data_quality | dba.stackexchange.com | |
406,163 | Database server size | I received a recommendation from my hosting provider noting that a general rule in production server management is to ensure that the memory on your database server is larger than the size of your total database. Our database is 1800mb (and growing) and we're being told to purchase a 2GB server. This didn't sit right w... | Since you are using MySQL, you need to measure off memory of two storage engines InnoDB MyISAM Each Storage Engine has different caching characteristics. I wrote about this in the DBA StackExchange back on April 14, 2011 . InnoDB InnoDB will cache data and index pages into its Buffer Pool This query will tell you the i... | 0 | 3 | 197 | 2012-07-09T19:37:01.490 | database_errors | serverfault.com | |
18,149 | terraform remote state bucket on s3 | I want to use a remote state bucket on s3 for my terraform tfstate files (described here: https://developer.hashicorp.com/terraform/language/settings/backends/s3 ). It looks pretty basic, but in practice not so straightforward. I tried just defining the bucket like any other s3 resource but terraform won't init/plan an... | [CODE] This is from the official documentation Terraform Backend. If you want to use variables in your backend block, you may want to consider using Terragrunt. We personally don't use it but we are considering adding it as there are multiple backends that we need to handle. My advice is don't use variables in the back... | 0 | 0 | 340 | 2023-08-02T11:31:09.820 | database_errors | devops.stackexchange.com | |
55,262 | Linux Apache mod_rewrite | ok, here it goes! im running linux (cent os), my httpd.conf file has the line "LoadModule rewrite_module modules/mod_rewrite.so" enabled! the "mod_rewrite.so" is in the modules folder. here is some code HTTPD.CONF: [CODE] VHost File: [CODE] VHost include File: [CODE] .htaccess: [CODE] what i get no mater what i try: [C... | To enable usage of mod_rewrite in a .htaccess file you need to allow override of FileInfo in the directory where the .htaccess file is located. If you just have "RewriteEngine on" in .htaccess just remove it, it's totally useless as it's already in the vhost configuration. If you need to add others RewriteCond/RewriteR... | 0 | 3 | 836 | 2009-08-17T22:13:45.227 | infrastructure | serverfault.com | |
396,064 | How process dynamic rules for product configuration? | I need to find a software architecture to support object configuration and validation in a dynamic environment. Lets say I want to configure a bike where I have many physical components available to be used. Componentes like, tires, frame, gears, brakes, etc. And each of this components have their own attributes, for e... | This depends a bit on the semantics of your rule engine and on what you mean with "guarantee the previous rule execution". For example, the initial table did not consider gears material at all. This would imply that it's irrelevant, and a carbon gears bike would have the same 23" frame size as a non-carbon gears bike. ... | -1 | 0 | 101 | 2019-08-15T19:57:49.677 | data_quality | softwareengineering.stackexchange.com | |
271,548 | How does one keep argument counts low and still keep third party dependencies separate? | I use a third party library. They pass me a POJO that, for our intents and purposes, is probably implemented like this: [CODE] For many reasons, including but not limited to encapsulating their API and facilitating unit testing, I want to wrap their data. But I don't want my core classes to be dependent on their data (... | The strategy I've used when there are several initialization parameters is to create a type which just contains the parameters for initialization [CODE] Then the constructor for DataTypeTwo takes a DataTypeTwoParameters object, and DataTypeTwo is constructed via: [CODE] This gives a lot of opportunity to make it clear ... | 13 | 10 | 3,478 | 2015-01-29T17:26:08.347 | data_quality | softwareengineering.stackexchange.com | |
757,626 | cannot boot because of networking service | I have a fresh install of debian 8.3 jessie on a new server with all upgrades However each time I try to reboot the machine, debian enter in emergency mode The screen got stucked at "A start job is running for LSB: Raise network interfaces" With the original /etc/network/interfaces (containing 1 IPv4 & IPv6) the boot t... | This bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754218 seems pretty relevant. The user describes a similar issue where his system hangs displaying "A start job is running for LSB: Raise network interfaces" message. They use the following steps to identify the cause of the issue: Enable the debug shel... | 2 | 3 | 5,889 | 2016-02-16T20:04:40.950 | infrastructure | serverfault.com | |
665,667 | Ubuntu mount-point map Windows Share gets permissions denied error | We have an EMC storage appliance that serves Windows Shares via CIFS protocol. On Ubuntu I need to create a mount-point that maps the Windows Share. When I run this shell script : [CODE] I receive this error : [CODE] The domain/user and password are known to be correct. What are potential causes of the permission denie... | This might be due to not escaping the slashes. Below command has worked for me: [CODE] I'm also doing this on ubuntu For troubleshooting, try mounting the same share from a windows machine, see if that works. | 0 | 0 | 225 | 2015-02-06T19:34:12.013 | infrastructure | serverfault.com | |
121,502 | Application service down due to SQL Server error | I'm using SQL Server 2012 where in I found an error in my SQL Server error logs which says: Logon,Unknown,The login packet used to open the connection is structurally invalid; the connection has been closed. Please contact the vendor of the client library. Because of this, on my application services went down. What is ... | Before generating this message, the server would have previously received other structurally incorrect packets that corrupted components within the application stack. This is typically how denial of service or penetration attacks are formed. If you have this system on the Internet, I'd get it off the Internet, or use f... | 0 | 1 | 633 | 2015-11-18T17:10:59.380 | database_errors | dba.stackexchange.com | |
284,604 | Postgres strategy for UPDATE SET x = NULL | It is not clear the strategy Postgres takes when columns are set to [CODE] : [CODE] Documentation https://www.postgresql.org/docs/current/mvcc.html is a bit lengthy and techy so I cannot reliably deduce: if setting to NULL is performed in place or affected rows/pages are copied ? Looks like any UPDATE should create new... | PostgreSQL never performs an [CODE] by modifying the existing data in place. If you set columns to [CODE] , a new row version will be created just as with any other [CODE] , and the previous row versions will remain until [CODE] reclaims them. But be warned that [CODE] will only delete the old row version if there is n... | 6 | 10 | 25,469 | 2021-02-03T12:43:32.653 | database_errors | dba.stackexchange.com | |
1,029,125 | Can't RDP Into EC2 After Running Systems Manger Command | I ran a very simple powershell script (setting up odbc) on a bunch of EC2 instances using AWS Systems Manager. The script worked but now I am unable to RDP into any of the instances. I have tried start/stop/reboot, as well as running the troubelshoot rdp automation in systems manager, but no luck. The servers are still... | Can you post the script so that we can examine it? or atleast snippets of the code? also i found this which might help with a stopgap to help you rdp back in: Windows 10 Pro, RDP Server, "An internal error has occurred" if not you can always ask the AWS support, i had a similar situation to you and they responded very ... | 0 | 0 | 183 | 2020-08-06T15:24:41.823 | infrastructure | serverfault.com | |
542,456 | nginx only downloads a file on a virtual host | I am trying to port my local environment on a mac to use nginx from the logs I first got [CODE] but running [CODE] solved this now if I input the address [CODE] , it just downloads a file? in the conf I have set a virtual host and I have put the name in the hosts file [CODE] thanks | Only root is allowed to bind ports UPDATE: Of course giving root/admin privilages is only one method. You can use [CODE] or [CODE] linux capability to give access only to binding port below 1024 and nothing else. | 0 | 1 | 202 | 2013-09-29T12:16:31.137 | infrastructure | serverfault.com | |
507,596 | Dynamic throttling of bandwidth | I am planning on setting up streaming server. Streaming is done kind of like YT does it; there will be a large number of audio content and each user can listen to it right on the website. In order to accommodate a large number of users concurrently, I will be using a small cluster of servers. Since I will be using NGIN... | The solution is to use Traffic shaping (specifically minimum bandwidth guarantee) and effective load balancing - hwever this is beyond rocket science - I know a lot of people who get paid a lot of money as network experts who don't understand traffic shaping properly. You're not going to learn how to do it from reading... | 0 | 3 | 3,299 | 2013-05-14T10:03:51.877 | infrastructure | serverfault.com | |
336,869 | Tool/utility to extract a server's basic hardware innards | I have a pile of approx 20 rack servers to move out of the office and onto ebay or somewhere. Can anyone recommend a good tool that will display some basic info like CPU type/speed/count/cores, memory, disks, controller card? | A usb bootable linux distro and lshw . | 0 | 4 | 223 | 2011-12-02T02:25:43.303 | infrastructure | serverfault.com | |
360,470 | Null Object and Exceptions | Do Special Case or Null Object design patterns still provide value when application behavior, not just object behavior has to change? I was tasked with revisiting an old application and refactoring its code to better log/handle errors. This application is a .NET MVC API written in C# that handles readonly data. Since i... | If you are using a RESTful approach, your messaging should conform to the Uniform Interface . This means that if a client attempts to GET a resource that is not present, the proper response would be HTTP 404 NOT FOUND. If a client makes a request that makes the server fall over, the proper response would probably be HT... | -1 | 1 | 306 | 2017-11-08T19:59:31.570 | api_errors | softwareengineering.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.