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 |
|---|---|---|---|---|---|---|---|---|---|---|
692,931 | Optionally pass parameter to puppet using hiera | We're using the roles/profiles pattern. In the example below I'd like to optionally pass a parameter from hiera so that if no value is provided then the ::apache class default is used (which it gets internally from its ::apache::params class). This would enable us to set the keepalive value on some servers but allow th... | You achieve this effect through automatic parameter lookup . Your Hiera data targets the actual apache module, not your apache profile. [CODE] This only works if [CODE] has a [CODE] parameter. And yes, the default for this should be taken from [CODE] . [CODE] | 1 | 1 | 3,092 | 2015-05-19T07:15:17.517 | pipeline_ops | serverfault.com | |
213,027 | Where's my memory?! Nginx + PHP-FPM front end webserver slows to a crawl | I'm not sure if I have a problem with a memory leak (as my hosting company suggests), or if we both need to read http://linuxatemyram.com . Maybe you clever people can help us out? This is a front-end webserver VM running essentially only nginx & php-fpm on RHEL 5.5. This server is powering Magento, a PHP eCommerce thi... | In case anyone else suffers this. We have just experienced the same issue. A memory leak in php5-fpm. The RAM is used up with every page request and eventually maxed out. Then the CPU goes into overdrive with the KSWAP process running the swap disk. the only thing that fixed, although not the ideal setup was to change ... | 8 | 7 | 17,513 | 2010-12-15T19:43:27.730 | pipeline_ops | serverfault.com | |
18,013 | What is a good client for handling large amounts of mail? | Although the title sums it up nice, I'll repeat and explain. What would be a good email client for handling large amounts of mail ? Large portion of mails I receive come with attachments (zip, rar, pdf, dwg, etc.) and within a month I usually have another 1,5-2Gb of new mail. I've noticed that 'standard' Outlook Expres... | Another option that might be of use is, of all things, the GroupWise Client. It's archive method involves a few files for small emails databases, and a bunch of files for larger emails and attachments, so should scale rather well for what you're looking at. Some people at my old job had archives north of 1.5GB and work... | 4 | 1 | 8,570 | 2009-06-02T18:25:00.200 | infrastructure | serverfault.com | |
267,748 | Proper way of handling EINTR in libraries | What is the recommended etiquette when it comes to [CODE] in libraries? I'm currently writing a function that does some file system tasks with the POSIX API, but a lot of the calls I use can potentially return [CODE] . Additionally, the function can block under some circumstances. (For those interested, it implements a... | Always leave the decision of how to handle [CODE] to the user, and make it easy to resume the operation as appropriate. Usually the best way to do that is to return from your library function to the caller upon [CODE] , but in some cases a callback or some other implemention might be better - which way is best depends ... | 13 | 5 | 9,402 | 2014-12-31T14:17:24.523 | api_errors | softwareengineering.stackexchange.com | |
442,480 | Server-side Long Running Tasks | I am trying to decide on which approach to follow for long running tasks. Web Client (user) story Web client connects to the server (REST API + WebSocket for real-time notifications) Web client POSTs a new resource intensive job request Server publishes the job on a queue Task worker consumes the job and processes it. ... | You already have one queue, just add another "job finished" queue and have your backend subscribe to it and forward the messages on the websocket connection. Fixed professional data flow diagram | 2 | 2 | 835 | 2022-11-27T14:39:00.707 | api_errors | softwareengineering.stackexchange.com | |
430,586 | Node.js, Nginx and Varnish with WebSockets | I'm in the process of architecting the backend of a new Node.js web app that i'd like to be pretty scalable, but not overkill. In all of my previous Node.js deployments, I have used Nginx to serve static assets such as JS/CSS and reverse proxy to Node (As i've heard Nginx does a much better job of this / express is not... | Is it still necessary to reverse proxy Node.js using Nginx when Varnish is also present? Varnish can cache your static files from node.js app. You need to provide correct http headers (cache-control) from your app (for default VCL). Or you can tune your VCL to cache static files based on URL or for example contenet-typ... | 0 | 0 | 1,042 | 2012-09-21T10:30:14.343 | pipeline_ops | serverfault.com | |
145,761 | gentoo zlib removed = portage corrupted | Hello I'm using gentoo not for a long time and have made such mistake: I've removed zlib package from system. Now i've got my portage system corrupted: [CODE] How can I reinstall zlib package and repair system? updated Problem solved. I've copied object file [CODE] from other machine and then I can run [CODE] and insta... | Theoretically you can download the stage3 file used for installation and restore the missing files. When [CODE] is working again reinstall [CODE] with [CODE] . | 0 | 3 | 1,462 | 2010-05-27T08:47:53.333 | data_quality | serverfault.com | |
49,807 | Training accuracy decreases | I have a program in which I use sequence to sequence approach as a prediction model with attention. The problem is, while training, the accuracy is always decreasing at each epoch, like shown in the figure attached. If anyone can tell me the reason, I will be soo thankful. | The screenshot looks like output of Keras, so I assume you're using a deep neural network. The training (epoch) is organized with batches of data, so that optimization function is calculated within subset of whole dataset. The console output shows the accuracy of the full dataset, so the optimization of a single batch ... | 0 | 1 | 4,634 | 2019-04-23T22:04:24.817 | data_quality | datascience.stackexchange.com | |
197,780 | Unknown connections to foreign hosts | When I run netstat -a, a lot of connections to foreign hosts show up. It's connected to a whole subnet, ie 123.123.123.x to the port 80. How can I see what is actually going on? My server doesn't look compromised. It's running ArchLinux. | [CODE] has a [CODE] option that shows you which program is making the connection [CODE] You can then use [CODE] to find out what user is running that process, what it's parent process is and other useful info. You could use [CODE] to see what data is being sent and received. | 1 | 1 | 4,226 | 2010-11-03T16:13:33.817 | infrastructure | serverfault.com | |
440,505 | Mocking / stubbing C# record types in a unit test | I have a series of [CODE] types in my C# project that I use with JSON.Net to deserialize json data. [CODE] I need to "mock" instances of [CODE] to feed it into another object as part of its unit test suite. My solution right now is to create [CODE] objects directly, like so: [CODE] However, I do not like manually const... | If the surface of this object and its properties changes later, this test will break even though those particular properties have nothing to do with what this test is trying to verify. If you add a property, that amounts to a change of the public API of your method, so needing to change the unit test seem quite reasona... | 0 | 2 | 1,341 | 2022-08-19T12:35:07.267 | api_errors | softwareengineering.stackexchange.com | |
250,987 | An algorithm for finding subset matching criteria? | I recently came up with a problem which I would like to share some thoughts about with someone on this forum. This relates to finding a subset. In reality it is more complicated, but I tried to present it here using some simpler concepts. To make things easier, I created this conceptual DB model: Let's assume this is a... | After your clarifications on the question, I would go by this logic to list recipeids excluding any recipe with a missing/insufficient ingredient. [CODE] | 3 | 2 | 1,172 | 2014-07-24T12:07:00.433 | api_errors | softwareengineering.stackexchange.com | |
153,505 | Looking for a bottleneck in MySQL server | I have two Ubuntu servers with very similar, if not identical, configuration: both have 16 cores (4 E5540 Xeons), 16GB RAM, HP Smart Array P212 controllers with 2 HDDs in RAID1. I/O scheduler used is deadline. Both run the same versions of MySQL (5.1.26, later upgraded to 5.1.47/Percona Server 10.2). The databases are ... | I'm not an Ubuntu guy, but a 10 second search shows 9 uses ext3 and 10 uses ext4 by default. Post the output of 'tune2fs -l' on your data partitions to contrast/compare. | 0 | 1 | 949 | 2010-06-22T09:03:34.743 | data_quality | serverfault.com | |
870,432 | ESXi 6: Grant SSH access to non-administrator user account | For technical reasons that I won't go into, I need to grant SSH access to an extremely restricted (maintenance-only), non-administrator user account in VMware ESXi 6. However, according to multiple sources, it seems that the only way to do this is to grant administrator permissions to the user account, either via the G... | If the connection only needs to run the same list of commands on the ESXi host, one option to consider is using SSH forced commands . This feature allows you to force certain SSH keys to only run a given command on login. This is handled through the authorized_keys file. On ESXi, it uses [CODE] for root logins and has ... | 1 | 1 | 4,891 | 2017-08-25T10:56:41.033 | infrastructure | serverfault.com | |
152,927 | How to merge these 3 queries into 1 | I am new to sql (using mysql) and I have the following problem. I need to create a table where first column is some months, and the next three are : first column: total amount of previous months (from the one stated in 1st column) second: total amount of current month third: total amount of the following months. Now I ... | One alternative is to trade the correlated subqueries and, potentially, joins for using variables as well as a lot of nesting and sorting. The starting point of the approach I am suggesting will be this query: [CODE] which is essentially your second query. According to your example, the output would be this: [CODE] The... | 1 | 3 | 78 | 2016-10-20T22:35:01.027 | database_errors | dba.stackexchange.com | |
237,521 | Trying to repair query store, but sp_query_store_consistency_check does not exist | The query store on our SQL Server 2016 Standard (SP2 CU6) database has gone into [CODE] state and we are now trying to get it back online. All of the articles I've seen regarding troubleshooting QS (e.g. this one , and even Microsoft's own docs ) suggest to do the following: [CODE] But the procedure [CODE] doesn't seem... | Like the other Query Store related DMVs, functions, etc, [CODE] is in the "sys" schema, not the dbo schema. I imagine this is just a typo on Tracy's blog. Still, the command should work even when referencing the dbo schema. You also need to call the procedure from the user database where you have query store enabled. T... | 3 | 4 | 735 | 2019-05-07T05:11:11.203 | database_errors | dba.stackexchange.com | |
376,740 | How do I automate build-publish tasks for my web server? | I'm developing a node.js web server which will have built source code of server and client part at once . I mean, my web server is on the isomorphic level. this means editing source code of client part eventually give some effects on server-side code. so when I've finished to develop (fixing bugs, etc.) my web server a... | A Bash script is exactly how it happens in many companies. Avoid steps that you have to perform manually. Automate them so that you only have to kick off the process and can then sit back. Being able to do a deployment with a single command enables “Continuous Deployment” workflows: if a deployment is super easy and re... | 4 | 5 | 129 | 2018-08-12T08:13:32.710 | pipeline_ops | softwareengineering.stackexchange.com | |
69,018 | How do you ascertain the quality of a potential employer's code before you take a position? | In my experience before you start working for a company you have no opportunity to look at the code-base (I've asked and for reasons of confidentiality everyone has always said no, I think that is fair), so during the interview process what do you think are the most important questions to ask to find out what kind of s... | Rather than ask to see their code, ask what they think of the codebase. And when you do, pay close attention to facial expressions and the time it takes for them to respond. Then apply your knowledge of your culture's non-verbal gestures to interpret what they're really saying. For a North American company, the followi... | 31 | 20 | 1,705 | 2011-04-17T10:36:45.707 | api_errors | softwareengineering.stackexchange.com | |
303,036 | sshfs fail when remote server relogins on login | I'm trying to mount a remote disk using sshfs. The code is: sshfs user@server:/ /home/user/folder The problem could be that the remote server relogins the connecting user under a different user upon login. And therefore when i try to use this code it doesn't mount and gives me no error. How can i deal with it? Ubuntu 1... | Your administrator seems to have done something usual. We don't have enough information to know what "relogging" means. It could be the sshd config, it could be some shell script, we just don't have enough information. The real answer here is, ask your IT folks to solve this problem for you . They've already given you ... | 0 | 1 | 611 | 2011-08-19T14:28:21.633 | infrastructure | serverfault.com | |
835,679 | GCE Instance containing multiple kernel builds occupying full space | I'm using a GCE instance (OS: ubuntu). I could see the disk space is full, Most of the space is occupied by kernel builds. Instance has different versions of kernel builds. I'm not sure how these were generated. Has anyone encountered this issue. Any help in identifying and fixing the issue? Here are the different vers... | You could try to drop obsolete dependencies using [CODE] | 1 | 0 | 39 | 2017-03-01T15:49:48.450 | infrastructure | serverfault.com | |
987,052 | When do I need an A-Record for an NS for a subdomain | I am trying to answer the following question: I have domain example.com with a subdomain: subdomain.example.com which is realized as an own zone. I also have NS1 for example.com and NS2 as authoritative for subdomain.example.com If I want to access an entry in subdomain.example.com from example.com. When do I need an A... | [CODE] and [CODE] records are completely different and achieve different goals. An [CODE] record associates a name to an IP address. An [CODE] record basically say: this zone is handled by this nameserver (name). Your question would be fare simpler, including for you, if you were using real names. If [CODE] and [CODE] ... | 0 | 1 | 326 | 2019-10-07T13:28:51.163 | infrastructure | serverfault.com | |
72,715 | InnoDB internals - checkpoint, LSN, dirty pages | I'm looking into InnoDB internals regarding buffer pool, checkpoint and dirtypage. However there isn't enough information to answer my question. When I run [CODE] , I can get [CODE] and [CODE] . I want to know where this information comes from. Does any memory (such as buffer pool or information schema) keep this infor... | Your answers are on the source code: innodb_buffer_pool_pages_dirty . Most of these variables are maintained on memory directly or through very simple calculations. There is no danger of durability loss, as the ones that are "essential" for innodb to work can be recalculated from the transaction log or are 0 on start. ... | 4 | 1 | 1,297 | 2014-07-30T08:29:39.443 | database_errors | dba.stackexchange.com | |
723,136 | C# App (mono) running inside docker gives huge CPU Spikes | I have been looking at this for quite a while. We run a server that has multiple Docker containers, one of them has a Mono server application written in c#. The base image is phusion base ( http://phusion.github.io/baseimage-docker/ ) This is working well up until now, this evening, we suddenly started seeying huge CPU... | Ok I found it! Appearantly the process was stuck in a while loop because it as listening for commands in stdin. The CPU spikes were always there, but we never noticed (up until we did a bigger test with more people on the site) so after searching, I found you can do this to 'close' the stdin to make sure it wont keep r... | 1 | 2 | 625 | 2015-09-17T21:08:06.690 | pipeline_ops | serverfault.com | |
240,672 | fastCGI in nginx and centOS | I was following this tutorial, I got it to a point where I was to test if I can run the /etc/init.d/phpfgci start command. However it gives me this error: [CODE] I installed nginx directly from the source code, not using yum (tutorial uses yum)... can this be the problem? Reason why I am not using yum to install is bec... | Create nginx user: [CODE] | 0 | 1 | 920 | 2011-02-26T20:46:25.413 | infrastructure | serverfault.com | |
130,114 | Identify When Dates Returned Are 1st, 2nd Or 3rd Date in Table | For the 1st 3 orders, a credit is given, so I am needing a way to flag the 1st 3 dates for a customer. My issue that I am having with my query is it flags the first 3 dates returned regardless of if they were the first 3 dates historically. In my sample data below, lets take custnum 123, the first 3 order dates are [CO... | First, let's address the way you populate the calendar table - I think you hit a majority of my bad habits/best practices posts : [CODE] For more information see this series and tip: Generate a set or sequence without loops - part 1 Generate a set or sequence without loops - part 2 Generate a set or sequence without lo... | 2 | 4 | 990 | 2016-02-22T21:20:20.677 | warehouse_errors | dba.stackexchange.com | |
276,505 | How to enforce a column value on duplicate values on postgresql using constraint? | I have the following table: [CODE] But due to my logic there cannot be duplicate values having the same values for [CODE] when active is true. Therefore, I place a unique constraint: [CODE] But that does not avoid me having the unique constraint only when active=true. Also, my table is pre-populated with duplicate valu... | A partial index like suggested by @ypercube is likely the best solution. If you for some reason would like to keep it at the logical level you can generate a column: If ACTIVE: concatenate the "partially unique" columns, I used a token separator to distinguish columns, result of 'a' || 'bc' should be different from 'ab... | 1 | 2 | 494 | 2020-10-04T21:42:26.977 | database_errors | dba.stackexchange.com | |
304,826 | pipeline step with two outputs which will be used by different later steps | I am creating a java package which offers an API based on a pipeline pattern. That is I have a series of steps which can be plugged together in any combination provided their inputs match the Output of the step before. Initial source and final sink are fixed. Unfortunately I have a step which feeds its output into two ... | I can think of two solutions, each of which has its drawbacks. Firstly, you can pass around a big Context object that stores all the required state (i.e. it contains the current [CODE] plus [CODE] ). This is the accepted solution for this related question . That answer suggests making each stage declare its input requi... | 1 | 2 | 766 | 2015-12-11T13:43:23.613 | pipeline_ops | softwareengineering.stackexchange.com | |
56,321 | Interpretability of RMSE and R squared scores on cross validation | I'm working on a regression problem with 30k rows in my dataset, decided to use XGBoost mainly to avoid processing data for a quick primitive model. And i noticed upon doing cross-validation that there's a noticeable difference between R² for train and R² for CV => clear signs of overfitting. Here's my code for CV : [C... | And one last thing, is my result on X_train indicative that my features are informative enough to learn the target? or is the R² train score somehow biased? High scoring fits on training data does not necessarily indicate that your features are informative enough to learn the target in a general fashion . Only your cro... | 4 | 6 | 3,741 | 2019-07-24T15:57:29.337 | pipeline_ops | datascience.stackexchange.com | |
1,058,315 | Setting up Multiple WAN Static IP | We purchased a 5 Static IP Address package from Rogers and we need to use two IPs. The Rogers modem has 4 ports in the back of it so I plugged in two routers (one on each modem port). I then configured each Router with the relevant Static IP and we were online. We've been having random disconnects where a 3-4 times eac... | Install a switch between the rogers modem and the routers, that case you will be capable of using the IP's by connecting the firewall/router on any port of that switch. | 0 | 0 | 379 | 2021-03-25T17:09:20.283 | infrastructure | serverfault.com | |
975,087 | RAID partition cannot be mounted, not assigned partition number, after reboot | Problem: I have a CentOS 7.5 server with an array of 4x 3TB WD Reds in hardware RAID 5. The RAID volume has a single EXT4 partition on it. After a recent reboot of the server, the server can no longer mount the partition. I am looking for advice to get the drive mounted and the data copied off of it. This server was sc... | The top answer on this question solved this problem. Thanks to @Micheal Hampton for pointing out the multipath problem! | 2 | 0 | 1,850 | 2019-07-13T01:03:03.397 | infrastructure | serverfault.com | |
215,569 | Large update and delete based on another table | I have a very active PostgreSQL 10.4 DB, dealt with through SQLAlchemy, so SQL is not my forte. Among its tables, there are [CODE] with a primary key [CODE] and some nonindexed string column [CODE] , and [CODE] with a foreign key [CODE] towards [CODE] . The table [CODE] is just a bit short of 100M rows and is very freq... | A delete with an IN condition might be faster than the JOIN: [CODE] Another option that might be faster is to delete both tables in a single statement. This can also be used to delete multiple slaves. [CODE] This works as the foreign key constraints are evaluated when the statement is finished, not when each individual... | 2 | 1 | 1,671 | 2018-08-22T10:12:54.073 | data_quality | dba.stackexchange.com | |
24,477 | InnoDB "corruption" | I use: 5.1.63-0ubuntu0.11.10.1 Apache/2.2.20 (Ubuntu) MySQL client version: 5.1.63 The system is continuously displaying the following error during reading data from a MySQL database: [CODE] After rebooting the system, I can regain access to the database and read the "problematic" data without any problem for a few min... | Rebooting temporarily clears the problem, and the error moves around... this strongly points to defective system RAM causing corruption of the OS cache. [CODE] You likely already know this part, but with Ubuntu, on startup, select "Memory test (memtest86+)" to verify. If you don't normally see the GRUB boot menu, you s... | 5 | 4 | 5,203 | 2012-09-18T10:35:38.427 | data_quality | dba.stackexchange.com | |
825,959 | TrimStart() improperly truncates string | I wrote a script to backup bitlocker keys to Active Directory. The works great unless the Password ID starts with 'D'. Here is script [CODE] See https://i.stack.imgur.com/kFPs4.png . Notice how $key is missing 'd' as first character. I've changed the script and it appears to work for all Password IDs but I would like t... | Looking at the documentation for TrimStart : "The TrimStart method removes from the current string all leading characters that are in the trimChars parameter. The trim operation stops when a character that is not in trimChars is encountered." "D" is a character in your array of characters to remove, so TrimStart does s... | 0 | 1 | 956 | 2017-01-12T19:53:44.560 | database_errors | serverfault.com | |
157,515 | Can a PRIMARY KEY constraint (with a NONCLUSTERED INDEX) check for only certain values? | Can I set a (logical) PRIMARY KEY constraint, served by a (physical) NONCLUSTERED INDEX, so that it only checks certain values of the constrained and indexed column or another column in the relevant table? And, if so, can that column be established as a FOREIGN KEY constraint referenced from other tables? I'm trying to... | There seems to be some confusion. The [CODE] is not a [CODE] constraint, it is a [CODE] constraint. You can have a partial (filtered * ) unique index, if that's what you are after: [CODE] (but this is not a primary key constraint or an index that can be used for the primary key constraint). Create it with: [CODE] which... | 3 | 6 | 979 | 2016-12-07T20:13:31.827 | data_quality | dba.stackexchange.com | |
46,556 | SSIS 2012 Create environment variable fails | I'm working a script to port an Environment from one server to another. I am running into an issue calling [CODE] wherein I get the error "The data type of the input value is not compatible with the data type of the 'String'." coming out of the proc "check_data_type_value." What's strange is that if I let the GUI scrip... | "The legwork I've done indicates this error message is usually resolved by using nvarchar data type instead of varchar. However, that's not the case for my stuff." Or is it the case? I made two changes to my cursor. The first is in my CATCH block. I re-read the article on the sql_variant data type and followed with the... | 13 | 11 | 6,905 | 2013-07-17T21:59:09.917 | warehouse_errors | dba.stackexchange.com | |
830,930 | DNS record contains 0.0.0.0 address | Long story short. [CODE] returns [CODE] i. e. address [CODE] . Questions: does it have any special meaning? is it legal (are there any limitations on what addresses dns record can contain)? | It is legal (see RFC1035 §3.4.1), but useless (as it would mean "any IP"). As for the meaning, please have a look at Zoneedit FAQ (which is wrong BTW, there is no mandatory requirement to have an A record on the domain name itself, quite the contrary, all MTAs can use MX records) : Why can't I delete the "A" record for... | 6 | 4 | 7,671 | 2017-02-06T20:22:27.053 | infrastructure | serverfault.com | |
326,291 | REST API authorization strategies | There are a lot of questions on here that deal with the mechanics of authentication and authorization of RESTful APIs but none of them appear to go in to details of how to implement secure services at the application level. For example let's say that my webapp (I've got Java in mind but this applies to any backend real... | Please for the love of God do not create a [CODE] class! Your class will become 10k lines of spaghetti code in a matter of months! You would need to have an [CODE] type (create, read, update, destroy, list, etc.) passed into your [CODE] method, which would quickly become a thousand-line-long [CODE] statement with incre... | 10 | 10 | 4,229 | 2016-08-01T12:39:05.830 | api_errors | softwareengineering.stackexchange.com | |
322,168 | Cannot remove or list directory (ls or rm) Linux - Debian | I have a log file directory at /var/log/apache2/vhosts on a Debian dedicated server. Every day I split the main access_log into respective vhostname.com_access_log files in /var/log/apache2/vhosts In the last week or so I have noticed the server has become unresponsive and every time this happens there seems to be mult... | It sounds to me like you may have had an enormous number of files in the directory. I've seen very similar symptoms to what you describe with very large directories. There may have been some sort of issue (possibly a configuration issue with logrotate) where you ended up with millions of files. Once you get into the mi... | 2 | 3 | 3,788 | 2011-10-17T08:10:53.273 | infrastructure | serverfault.com | |
155,202 | How can I automate the process of checking of column and executing SQL statement? | I am experiencing quite difficult problem and hope for your feedback. In my table I have a "Services"column in "MyData" table which contains names of my services. I have created SQL statement which should be executed via maintenance plan and get the minimum id value from one table and update "Value" column in "MyData" ... | Question is not clear to me but [CODE] | 0 | 0 | 74 | 2016-11-14T13:42:19.087 | warehouse_errors | dba.stackexchange.com | |
964,359 | ipmitool and freeipmi don't see the same sensors | i have many servers from different manufacturers and have a already working script for hardware health monitoring using freeipmi on Redhat 7.6. Now i have a new HP ProLiant DL560 Gen10 machine where the output of freeipmi looks like this: [CODE] Freeipmi cannot see the status of the power supplies, ipmitool can see it:... | I just found out that [CODE] helps ( [CODE] ). From the man pages: Some sensors may have a sensor reading or sensor event of "N/A" if the information is unavailable. This is typical of a sensor that is not enabled or not owned by a BMC. Please see --bridge-sensors option below to deal with sensors not owned by a BMC | 5 | 2 | 1,300 | 2019-04-24T07:57:37.130 | pipeline_ops | serverfault.com | |
528,811 | AWS Ubuntu 11.04 failing to apt-get update/upgrade | First, let it be known that it has been quite some time since I upgraded this particular server. When I execute [CODE] most of the endpoints seem to be reached fine. However there are a few rather disconcerting misses: [CODE] If I try to move ahead with the [CODE] I get tons of errors looking like the following and not... | According to the list of Ubuntu releases , Natty Narwhal hit end-of-life on Oct. 28, 2012 and is no longer supported. Here is the announcement. | 1 | 5 | 943 | 2013-08-05T18:12:47.630 | infrastructure | serverfault.com | |
430,374 | Storing Sort Order in Database: match the business logic or the application logic? | Take a profile page for a job applicant with a list of names in a form with typical CRUD: Resume Name: Altenrate Name 1: Alternate Name 2: Alternate Name 3: Assuming we have some sort of [CODE] table for this one-to-many relationship between an applicant and their names, we want to make sure to preserve the order of th... | A sort index should just be any integer that can be used for comparisons. Don't give it a dual purpose by attaching additional significance. Then it doesn't matter where you start. | 0 | 2 | 142 | 2021-07-19T00:04:50.750 | api_errors | softwareengineering.stackexchange.com | |
138,126 | MySQL stored procedure returns null | I wrote a simple procedure to modify the whole column to a set of meaningless values. However, when I tried [CODE] it returned 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1". The error may occur in the "set @... | Most likely the issue is with the first dynamic query, the one you are storing into [CODE] : [CODE] You are concatenating the value of [CODE] into the query, but [CODE] has not been defined yet at this point – so it is null. Concatenating a null with other string literals gives you a null as well. So [CODE] ends up to ... | 2 | 1 | 3,674 | 2016-05-10T15:28:58.837 | database_errors | dba.stackexchange.com | |
28,358 | Multiple PostgreSQL running as primary server on pgpool | I'm facing a problem with my pgpool setup. Currently, this is my requirement based on the pgpool documentation here : Server A : Install with PostgreSQL database. Run as primary server Server B : Install with PostgreSQL database. Run as secondary server Server C : Install with pgpool and pgpoolAdmin. Run as web server.... | Old post, but as I have just been through the pain of configuring pgpool, and have encountered similar problems, I'll answer here. I have exactly the same setup, but I made the choice to go through this excellent tutorial (in 6 parts ouch). It intends to build a full pgpool/pgsql HA infrastructure, where there is no si... | 0 | 1 | 1,939 | 2012-11-08T05:10:18.320 | database_errors | dba.stackexchange.com | |
93,876 | Windows 7 and My Documents | Coming from Windows XP to Windows 7 having ignored Vista. Active Directory running on Windows 2003. My Documents redirected by group policy to network share. Main problem - my documents disappeared when logging onto Windows 7. The policy is setting as SET shows: [CODE] I'm assuming this is something new in Windows 7 ar... | Take a look at the Windows Server 2008 Folder Redirection Overview on TechNet, which covers some of the differences with folder redirection between XP and later versions of Windows. | 1 | 2 | 295 | 2009-12-13T12:22:08.450 | infrastructure | serverfault.com | |
562,971 | Using dd on disks with different sector sizes | I would like to move a partition to a new drive. The old drive has a sector size of 512 bytes while the new one has a sector size of 4096 bytes. I tried doing a dd of the full disk, but that failed because the partition on the old drive was not aligned to 4K boundaries. So instead I created a partition from scratch on ... | You haven't told us what was the dd command that you tried initially which failed. However, I spent a bit of time checking the source code of dd command (from coreutils package) and looks like we had a problem here. [CODE] If you give the error message, I can do a further search. But to me, this is where we got hit. Th... | 6 | 3 | 6,305 | 2013-12-22T07:04:02.797 | infrastructure | serverfault.com | |
141,359 | MySQL database Int overflow and can’t login in | I have a MySQL database on my server and I"m pretty sure it's an int over flow on one table with an auto_increment field that's crashing it. I can delete the table, it's not very important, but I can't get into the server. Is there anyway to delete that database from the file system or without logging into MySQL? HELP!... | Yes, if your [CODE] is installed from a package, just go to [CODE] (or something like that, not sure what distro you are running). You will see a bunch of folders. Those folders have your table files in them. You can just more the one thats not working outside of [CODE] . Just stop [CODE] before you do that. | 0 | 0 | 64 | 2010-05-13T03:21:55.493 | database_errors | serverfault.com | |
775,374 | virsh console hangs whenever I connect to Virtual Machine | Whenever I try to connect to VM using [CODE] my screen hangs and displays: [CODE] I have found many solutions on the internet but nothing has worked for me and I am even not able to find the [CODE] directory as CentOS 7 has a different directory structure. I need [CODE] directory to create a script which I found on the... | Edit “/etc/sysconfig/grub” Add to end of GRUB_CMD_LINELINUX, “console=ttyS0” example: [CODE] Run the following commands as root: [CODE] [CODE] [CODE] Reboot the VM. Try to run [CODE] | 2 | 2 | 11,146 | 2016-05-07T06:10:46.913 | infrastructure | serverfault.com | |
64,653 | Mongo takes too much memory when insert data | I'm using mongo as a database log. I store on it all the logs of an application, so I have a high rate of inserts, for example 100 inserts per second. To accomplish that I developed a part of the application dedicated to store in mongo the data. this app only uses a mongo connector. But the memory consuption is incredi... | What WriteConcern do you use? If you use WriteConcern.UNACKNOWLEDGED (default) or ERRORS_IGNORED, your writes will not be blocked, and the server will buffer all data to try to keep up. If you send data faster that it can write to disk, it will need to buffer all in memory. Use WriteConcern.JOURNALED to avoid this. If ... | 1 | 2 | 3,200 | 2014-05-06T13:18:10.743 | database_errors | dba.stackexchange.com | |
308,520 | How to install pg_repack in postgresql | Use PGXN to install pg_repack on postgres 9.6 on top of Ubuntu 14.04 https://askubuntu.com/questions/617751/default-location-of-postgresql-when-installing-through-apt-get https://reorg.github.io/pg_repack/#installation I also want to install pg_repack. I finished the following two command. [CODE] [CODE] [CODE] successf... | I think compiler not found 2 libraries: /usr/bin/ld: cannot find -llz4 /usr/bin/ld: cannot find -lreadline you need to install them. I had similar problem with my alpine docker container. I fixed this by installing missing libraries lz4-dev, gawk: [CODE] after that extension pg_repack was built successfully. As example... | 0 | 1 | 3,967 | 2022-03-10T06:58:27.127 | database_errors | dba.stackexchange.com | |
601,199 | Configuring dhcp module in FreeRadius (3.0.2 - Centos 6.5) | I am using the REST module to authorise a DHCP request. I would like to send an explicit DHCP NAK if the authorisation fails, however the DHCP module seems to return immediately if there is a failure and just ignores the DHCP request without any response. Here is my DHCP module configuration - if rest.authorize is succ... | [CODE] OK. So you have four options: Return a 401 with a JSON content-type and just a set of empty braces {} (that may work) Use the v3.0.x HEAD commit where i've just altered the behaviour to allow empty bodies. It's odd it's actually calling the body data callback for an empty body. I didn't expect that, which is why... | 0 | 1 | 2,947 | 2014-06-02T12:38:34.403 | data_quality | serverfault.com | |
1,148,389 | servers unusable after boot...piix4_smbus SMBus Host Controller has stopped loading during boot, Debian Testing, various kernels | We have multiple old (14+ years) Tyan S3950 mobo servers running debian Unstable with various recent kernels like 6.1.0-3-amd64. Despite being on the bleeding edge with the unstable distro, this has been a very reliable setup. However, after a recent update, we had to reboot a couple of servers and both booted with NO ... | After several days more research and testing I found that the problem has nothing to do with the debian switch to a merged-/usr system. A few months ago we switched from initramfs-tools to tiny-initramfs because of a package conflict. However, we never actually tested tiny-imitramfs AND it was creating initfamfs.img fi... | 1 | 1 | 215 | 2023-11-22T16:45:59.777 | infrastructure | serverfault.com | |
241,034 | Why HTML select is not searchable by default? | I was wondering why the default select tag of HTML, for example: [CODE] is not searchable by default. Of course this is a browser feature, but it is just really weird that none browser (as far as I know) doesn't have it. Am I missing something here? Is there any browser that actually have as default a searchable select... | Dropdowns are semi-searchable in chrome and firefox. Just start typing and it will jump to option that matches typed text. You probably didn't notice it in your example since all options start with same text and pressing space finishes the searching. Example at http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_s... | 1 | 2 | 1,209 | 2014-05-24T18:23:27.597 | api_errors | softwareengineering.stackexchange.com | |
991,544 | SNMP: How to find a computers IP and MAC-address? (Debian) | I'm playing around with Net-SNMP and I'm trying to find my computers IP and MAC-address but it's not working. This is the command I'm running: [CODE] I'm getting this message: [CODE] I also tried this: [CODE] But all I get back is this: [CODE] What am I doing wrong? Thanks! | To get interface-related info, you need IF-MIB. Specifically, poll [CODE] OID to get MAC addresses, for example: [CODE] That should return one or a bunch of lines, depending on how many interfaces are present on the box. They may look something like this: [CODE] The [CODE] at the end of [CODE] indicates the object's in... | 2 | 1 | 5,373 | 2019-11-12T17:04:39.853 | infrastructure | serverfault.com | |
934,641 | My /etc/resolv.conf is getting reset every time i restart the network | This is my [CODE] on CentOS 7 : [CODE] This is my /etc/sysconfig/network-scripts/ifcfg-eth0 [CODE] Whenever i try to restart the network using [CODE] after adding [CODE] it gets reset to the one on above. What changes should I make to [CODE] so that i my new [CODE] doesn't get erased even on restart. | [CODE] that can prevent DHCP to overwrite /etc/resolv.conf You should disable the NetworkManager service if you like edit manualy the files in the /etc/sysconfig/network-scripts directory. [CODE] If commands returns "active", then you should disable it. [CODE] Then you can edit [CODE] | 2 | 0 | 9,132 | 2018-10-09T10:34:18.683 | infrastructure | serverfault.com | |
963,218 | nginx showing default page on wan but not lan | When I access my nginx webserver on lan, it shows me the correct webpage I have setup. For some reason when I try to connect to it through a different network, it returns the default nginx page. It is still able to connect, it just displays the wrong page. How would I fix this issue so it shows the webpage on both lan ... | You must have your CloudFlare SSL setting set to Full or Full (strict) (recommended). Flexible or Off will not work. | 1 | 2 | 354 | 2019-04-16T02:58:27.063 | infrastructure | serverfault.com | |
543,626 | Remove a duplicate lvm physical volume uuid? | After upgrading a rhel 5 server today I rebooted to the new kernel: curr=2.6.18-371.el5PAE prev=2.6.18-348.18.1.el5PAE. In the boot sequence I saw a message indicating Logical Volume Management was starting and then almost immediately I saw this and was offered a rescue shell: Found duplicate PV BPF...ayV: using /dev/s... | I'm not sure you asked the question you think you asked, but /dev/md3 is the same as /dev/sdb1 and /dev/sdc1 since it's a mirror set. No, it shouldn't. No, that will create data loss for you. N/A You can probably get rid of this error message by modifying your [CODE] file to change the filter to reject sdb* and scd* de... | 1 | 2 | 5,278 | 2013-10-03T17:20:41.587 | data_quality | serverfault.com | |
156,026 | In-memory DB to perform intersects on set slices | I have a specific programming need where I need to efficiently store large sorted sets in memory, query them for ranges, and intersect them against other sets that are also queried for ranged. I am looking at Redis, but I can't see a range slice command. MongoDB can only use 1 index, so it has to perform row-level scan... | Java provides Treemap . In that language, I'd put the cars in one Map keyed by price and one keyed by engine size. Pull the desired set from one of the "tables" and put it in an easily searchable collection. (A TreeMap, TreeSet, or HashSet might do.) Then scan the desired range of the other Treemap and see which of its... | 2 | 1 | 264 | 2012-07-08T13:49:53.870 | hadoop_errors | softwareengineering.stackexchange.com | |
313,922 | How to store and query strings matching prefix or suffix in PostgreSQL? | Say I have 1 million words each in 100 different languages (so 100 million words, each with alphabets ranging from 10 characters to 200 characters, although Chinese has 80k "characters" alone! And I would want to support it on Chinese too). These words are stored in the database for a variety of other reasons, so we sh... | Prefix search in most cases is as efficient as string search, but stops earlier. For suffix search you have to store your word reversed (desrever) and then search for reversed suffix (de% instead of %ed). For anagram/scramble search you have to store your word ordered alphabetically (anagram -> aaagmnr) | 4 | 4 | 2,190 | 2022-06-29T23:52:07.103 | database_errors | dba.stackexchange.com | |
226,533 | Securing access to a website on IIS | I've got a website running on IIS7.5. I want to ask for credentials (fixed user/password) on access to the website. I don't need to do anything with those credentials - just to make sure the user knows them. I'd like to make it transparent to the website (it shouldn't "concern" the website). Is there some elegant way o... | Well the easiest way is to create some local user accounts on your server and then enable Windows Authentication on your site in IIS. When users visit the site they will be asked for credentials, which will be validated against the Windows user database. | 1 | 0 | 60 | 2011-01-25T09:22:51.927 | infrastructure | serverfault.com | |
140,860 | Why do partially failed/failing switches fail to pass DHCP? | I've noticed this several times: a switch starts to behave oddly. Usually if the switch doesn't fail outright, what tends to get noticed is that DHCP doesn't work. We had a Linksys SRW-224P fail today. Systems which were still connected worked properly, until it came time to renew their DHCP lease. Once the lease expir... | Perhaps you are looking at this from the wrong direction instead of asking why does DHCP not work maybe you should be asking why does TCP-based communication working on a unreliable network where there is packet loss or corruption. TCP based communication is meant to be reliable and the protocol is designed to retry co... | 5 | 18 | 6,310 | 2010-05-11T21:53:46.090 | infrastructure | serverfault.com | |
659,816 | No-Listing policy with postfix (ubuntu) | I'm running an experiment on a virtual machine. In the virtual machine I've installed ubuntu and Postfix as a mail server. I followed the guide: https://help.ubuntu.com/community/Postfix , only the "configuration" part (the 11 points). Now I need to set-up 2 spam protections: grey-listing and no-listing. For the grey-l... | Nolisting is completely software independent, as it is enacted entirely in DNS records. Nolisting basically means you set an invalid Primary MX record, with your actual, functional mailserver on a lower priority MX record. This could cause some issues with programs that do not follow the SMTP RFCs, and I honestly don't... | 0 | 1 | 92 | 2015-01-15T16:26:45.193 | infrastructure | serverfault.com | |
254,764 | Repurpose MySQL as a mutex | My application needs to perform an operation once every 10 minutes, but that operation is triggered many times more frequently. Occasionally it is triggered three or four times a second in different processes, and that's the main thing I want to avoid. It's Django, and at first I used the [CODE] feature, but I am still... | So, my understanding is this operation is triggered by activity within the application the triggering activity may occur up to several times per second although the operation is triggered many times per second it should only execute once every ten minutes. A one-column table would suffice: [CODE] Initialise the column ... | 2 | 3 | 833 | 2014-08-29T01:56:20.743 | database_errors | softwareengineering.stackexchange.com | |
869,290 | LXC Container, no LAN - Internet access | I'm setting up an LXC container on an openSuSE 42.1 host. The host has full Internet access but the container hasn't. The container can ping the host, but nothing else on the LAN or Internet. I think the issue could be how the bridge is configured on the host, but I can't see how to resolve this. The host has eth0 and ... | You configured bridge, which means host and container are on the same subnet. Therefore the container should use the same gateway as the host, but you did set the host's IP as default gateway. Set it to 192.168.2.1 instead | 0 | 1 | 4,010 | 2017-08-18T07:52:48.863 | pipeline_ops | serverfault.com | |
546,346 | Apache redirect multiple domain names from https | My server distribute two main websites, says : www.google.com & www.facebook.com (yeah I know :p) I want them to be distributed via https. Using Apache, I defined a vhost file in sites-available/enabled containing this : [CODE] If I access to https://www.google.com , the httpS works correctly If I access to https://www... | That's because you didn't configure a virtualhost for facebook.com, so apache picks the first configured one (www.google.com). What you're looking for is the ServerAlias configuration directive. | 0 | 2 | 3,739 | 2013-10-16T08:46:08.747 | infrastructure | serverfault.com | |
371,682 | ssh + long ssh delay and resolv conf file | Linux system running Redhat 5.1. When I connect to the machines with SSH there is a long delay before the login completes and I get a shell. I did some research and found a solution to this problem that suggested that I could remove the [CODE] , and then logins would work quickly. I tried doing this and it actually wor... | As a security measure when you connect to ssh server, the server will perform several DNS lookups on the IP address you are connecting from. These DNS checks make take a while, particularly if the reverse zones are not setup properly for the IP addresses you are connecting from. In your [CODE] there is an option you ca... | 4 | 5 | 7,423 | 2012-03-20T18:56:13.370 | infrastructure | serverfault.com | |
230,062 | Good backup solution for Xen virtual machines? | we are looking for a backup solution for our xen servers that meets the following requirements: makes backups while machines are running has easy to use disaster recovery without depending on complex infrastructure in case of a disaster can backup all kinds of linux and windows machines sends some kind of message if so... | I personally like Commvault's stuff, but I use it on ESXi not Xen, thoughh Xen is supported. | 1 | 0 | 1,480 | 2011-02-02T10:05:22.567 | database_errors | serverfault.com | |
833,510 | Galera Node won't start after recovery | I have a Galera "Cluster" with one working node. I added a second node and start the synchronization via rsync. The State transfer succeeded but when starting the database it tells me that the innodb shall be currupt. But as far as I understand Galera this should be the exact same data then on node1. Here is the Log ou... | Sorry but I am confused. you have 3 nodes say node-1, node-2, node-3. As per your information node-1 is up and running and you are trying to add node-2. (Log that you have shared is for node-1 ? Is node-1 too facing issue ? ) Also, which SST method did you used for xfer. May be if possible you can also share complete l... | 1 | 1 | 1,482 | 2017-02-19T16:17:31.017 | infrastructure | serverfault.com | |
37,429 | Normalization/normal forms - May a field describe an other field? | Like this: [CODE] [CODE] describes the precision of [CODE] . I wonder if it violates this rule (because I don't fully understand the rule): Every non-prime attribute of R is non-transitively dependent (i.e. directly dependent) on every superkey of R. | I disagree with the other answers on this one and do not believe this violates 3NF. This is because date_of_birth_precision does not imply date_of_birth nor does date_of_birth imply date_of_birth_precision. It's important to note the definition of a functional dependency: Given a relation R, a set of attributes X in R ... | 4 | 2 | 133 | 2013-03-23T17:43:42.393 | warehouse_errors | dba.stackexchange.com | |
1,016 | google database api | I would like to use my google account to store so data (time series) Is there an easy way to do it? I use R and if possible would like to create/use and API to send and receive data from/to R and from/to my google account EDIT: I want to have an online database available from everywhere. I have thought of installing a ... | Both Microsoft and Amazon offer SQL databases in the cloud. GAE isn't an RDBMS, it's NoSQL in the cloud. If you just need an object data store, well someone has probably written a wrapper in the language you want, otherwise there's Python and Java . If you need an RDBMS, I suggest you check out either Microsoft's SQL A... | 4 | 2 | 544 | 2011-02-02T05:50:07.830 | database_errors | dba.stackexchange.com | |
197,588 | Send mail add command as attachment | I want to send myself a mail from the tree structure of the box. I did a [CODE] The error should be high file size [CODE] How can I send a mail with the command tree. Thanks Jean | If your mail is too large, you can try compressing it first: [CODE] | 0 | 1 | 1,059 | 2010-11-03T06:32:18.337 | infrastructure | serverfault.com | |
291,109 | Exclude URLs with certain extensions from being redirected to index page | I have a set of rewrite rules that redirect all pages that don't exist to the index of my site: [CODE] Basically, the current rule is redirecting every URL that is not a directory or file to index.php, so [CODE] , [CODE] and also [CODE] go to the index.php page. If the URL doesn't exist in the CMS, that will trigger a ... | The rule is simple: [CODE] Just place it in a right place (as order of rules matters): for example, before this line: [CODE] P.S. The [CODE] flag is unnecessary for your rules with such ( [CODE] ) pattern (it makes no difference at all). | 0 | 3 | 2,024 | 2011-07-17T03:48:42.063 | infrastructure | serverfault.com | |
371,524 | 403 forbidden error in artica-postfix | I have a CentOS 5.5 server. I have configured the latest version of artica-postfix on this server. All was going well but after logging with the URL https://108.163.173.178:9000 I got the error:- [CODE] . I know its an Apache error, so can anyone help me to resolve this? | 403 can have a couple of reasons: You are trying to access a directory which is simply "forbidden" for the webserver user. It is not enough to give adequate permissions to the directory itself, but also the leading path. You are missing the [CODE] directive and/or You haven't defined a [CODE] and the Apache is adviced ... | 0 | 0 | 198 | 2012-03-20T12:23:03.547 | api_errors | serverfault.com | |
4,680 | Instant File Initialization | Lock Pages in Memory Issues | I have a server that I'm coming onto performance tune and for the life of me I can'g get these rights enabled. So I ran [CODE] Then [CODE] No prob I go Local Security > Local Policies > User Rights Assignment grant the LockPages in Memory to Network Administrator and perfom volume maintenance tasks. No Good. I tried gi... | Try setting the services to run as domain/machine account, and give the permissions to that account | 3 | 1 | 1,641 | 2011-08-16T17:18:33.337 | database_errors | dba.stackexchange.com | |
197,982 | Why would you want to use an array, or hash as hash key in ruby? | i'm using Ruby 1.9.3 I figured out that you can use an [CODE] , or a [CODE] as hash key in ruby: [CODE] But an object works differently... [CODE] But this one works as expected: [CODE] Tried this: [CODE] Tried it in Python and PHP and it throws an error. I'm just curious about how it works, and why would you want to us... | Why wouldn't you? You can use any object as a [CODE] key in Ruby. (Well, any object that responds to [CODE] and [CODE] , but since there are definitions of those in [CODE] , that's pretty much all objects.) It would be strange and inconsistent if you would arbitrarily exclude two classes from that. | 5 | 9 | 7,972 | 2013-05-13T20:52:15.287 | api_errors | softwareengineering.stackexchange.com | |
958,171 | New Domian Server and New Exchange Server with Issue installing Exchange 2019 | I created a whole new Domain Server 2019 and have an Exchange Server 2019 and trying to install Exchange with the install Wizard and am stopped at 8 of 14. [CODE] | According to the error info below, I suspect that the installation package lost the file named 'Microsoft.Exchange.Transport.Extensibility'. Please have a try that redownloading the package and installing again. "System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Exchange.Transport.Extensibilit... | 1 | 1 | 467 | 2019-03-14T01:46:06.927 | infrastructure | serverfault.com | |
5,507 | What to do with those invalid JAVA CLASS object type objects in SYS prior to the upgrade the oracle db from 10g to 11g? | I am ready to upgrade the oracle 10g prod db to 11g, but we have 130 invalid objects in SYS (all are belong to JAVA CLASS object_type). And from the best practice of oracle upgrade from 10g to 11g, it said should not have any invalid objects in sys or system schema. But I already ran the utlrp.sql to recompile all inva... | From this blog you can try this on development first... SQL> spool resolve.sql; SQL> select ‘alter java class “‘||object_name||’” resolve;’ 2 from user_objects 3 where object_type like ‘%JAVA%’; SQL> spool off; SQL> @resolve The clean sweep approach would be to remove and reinstall the java JVM The Java VM is created a... | 2 | 5 | 31,795 | 2011-09-07T21:42:29.947 | database_errors | dba.stackexchange.com | |
335,949 | Indicating the end of a stream when null is a valid return | I have two kinds of data streams that both implement the same interface: [CODE] The [CODE] can return [CODE] , indicating that there is no new data available, or the device wasn't able to pick up any new data. The [CODE] returns [CODE] if all the data from the file has been returned. Both of them are supposed to be pol... | In-band error signalling where certain values have a special meaning is always problematic. It is easy to forget to check those special cases. You have found one solution to this problem: move the special meaning out of the return value. In this case, this is a separate function. This is a valid solution, but it introd... | 3 | 6 | 376 | 2016-11-13T16:08:56.123 | api_errors | softwareengineering.stackexchange.com | |
320,807 | Virtualbox - how to remote desktop from win 2007 to virtual box (with win2008)? | I have installed VirtualBox on Win7, and created a new VM with Win2008. This seems to be working OK. I'm now interested in remote desktop from my Win7 to the VM, but can't get that to work. Can anyone help me? I tried to use 127.0.0.2:3389, as mentioned in the virtualbox doc: http://www.virtualbox.org/manual/ch07.html#... | Have you installed the extension pack? With VirtualBox 4.0 and beyond you need to install a pack to get the functionality you are expecting. The VirtualBox 4.1.4 Oracle VM VirtualBox Extension Pack is what you need Support for USB 2.0 devices, VirtualBox RDP and PXE boot for Intel cards. Grab it here: https://www.virtu... | -1 | 1 | 1,588 | 2011-10-12T12:57:08.797 | infrastructure | serverfault.com | |
498,675 | How to get process not responding on remote server with Powershell | I don't understand, responding is empty on remote serveur. [CODE] but responding i real empty : [CODE] when i try with : -ComputerName localhost i have the same problem, but without -ComputerName i have value $True for each process ! | According to the help on MSDN i have get a [CODE] error indictaing that: You are attempting to access the Responding property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer. | 0 | 0 | 795 | 2013-04-12T07:16:39.510 | infrastructure | serverfault.com | |
156,227 | How to limit the number of SSH connection from the SSH Sever | Is it possible to limit the number of concurrent SSH connections to server ? Warm Regards Supratik | sleske is mostly right. You can set the maximum number of unauthenticated connections to [CODE] with [CODE] (see [CODE] ) but that won't affect the number of authenticated connections. You could, however, restrict the number of overall connections to [CODE] with a packet filter like Netfilter ( [CODE] ) using the [CODE... | 1 | 3 | 3,395 | 2010-06-30T10:00:29.903 | infrastructure | serverfault.com | |
1,012,020 | Can't retrieve instance metadata on AWS Fargate tasks | I have a docker compose configuration that I'm deploying in an ECS Fargate cluster. The tasks are configured with [CODE] , and they seem to be getting a public IP, but I'm struggling to figure out how to retrieve the IP. The service I'm running must know its public IP or hostname to work properly. There is an env var c... | It looks as if you're querying the V3 API, but /task is a V4 method. Try using this environment variable instead: ${ECS_CONTAINER_METADATA_URI_V4} If that isn't set, you're probably not launching tasks using the most recent version of the Fargate platform. You could either fix that, or use a V3-compatible method as des... | 0 | 1 | 2,810 | 2020-04-12T21:09:09.733 | pipeline_ops | serverfault.com | |
16,637 | SQL Server 2008 R2 - VLDB Backup Strategies | I have a 200GB database running on SQL Server 2008 R2 Enterprise Edition. I just recently partitioned it in order to archive 11 months of history, so it was pushing 400GB prior to archiving. Our company has 2 data centers in order to implment DR solutions. Most of the databases are at DC1 where there is tape backup inf... | Log shipping to the primary site then doing backups isn't going to work as you can't backup a database which is waiting for t-log backups. With SQL 2008 your only option would be to backup to local disk, have the storage array (I'm assuming that you have a storage array in both sites that can replicate data between the... | 1 | 2 | 1,164 | 2012-04-16T19:42:58.387 | hadoop_errors | dba.stackexchange.com | |
61,391 | Does the length of a table name affect performance? | PostgreSQL table names are limited to 63 chars. Is there a performance gain to be had if I limit my table names to something like 5 chars or can I use the full 63 chars without consequence? I understand it will be longer to type long names when creating queries, but that's what aliases are for. | Table names have to be stored just like any other data (in the system catalog [CODE] to be precise), and there are multiple objects that are typically named matching the table name (constraints, indexes, sequences, ...) so there is a marginal cost for longer strings. But you will not be able to notice any difference in... | 7 | 10 | 6,798 | 2014-03-20T20:41:50.023 | database_errors | dba.stackexchange.com | |
891,740 | linux + tput: No value for $TERM and no -T specified | I use in my bash script the tput command in order to colored the text as [CODE] when I run the script from putty or console every thing is ok but when I run some external WIN application engine that run the script via SSH the we get the following error on tput [CODE] please advice what need to set ( ENV or else ) in my... | call your shell with the following syntax: [CODE] or [CODE] Replace the following: user by your user name 127.0.0.1 by your remote IP script.sh by your script name | 0 | 0 | 2,880 | 2018-01-11T12:53:55.773 | infrastructure | serverfault.com | |
283,423 | New Xen host w/ 2 x 500G drives | First time using Xen, I come from a vmware world but would like to expose myself to some Xen technology. With that said, I have a spare server (Dual proc, 8G of RAM w/ 2 x 500G sata drives). Stupid thing doesn't have HW raid so I'm forced to use software based. With that said, is it worth using software? I've read that... | Sounds like your 'playing'/testing - software RAID will be fine for that, some here are more than happy to use in production too. Obviously if you're doing a lot of writes it'll be slower overall as it'll have to write everything twice but iirc reads are pretty comparable. Either way just get on with learning and when ... | 0 | 1 | 131 | 2011-06-23T13:54:07.627 | api_errors | serverfault.com | |
276,816 | Nginx+uWsgi+Flask cannot setup success | I want use nginx, uWsgi, Flask on centos 5, but always has some error. 3 app are all newest version, the uwgsi_params file copy from uwsgi/nginx. I use virtualenv to config python env. [CODE] First step: I use nginx and uWsgi, and browse show error page: [CODE] Nginx config: [CODE] Flask file is simple: [CODE] uWsgi co... | In your command-line version, you have: [CODE] But in your xml version, you are missing an equivalent [CODE] option: [CODE] so it's trying to load the Python [CODE] file. You could also add an empty file, but I'd go with the xml option. And [CODE] is also valid syntax, I tend to use the true flag, myself. | 2 | 3 | 3,793 | 2011-06-03T16:03:37.933 | infrastructure | serverfault.com | |
225,705 | What's the best way to show some of my code during an interview? | I realize that there are already a couple of questions about this, but they mostly are about if you should bring code to the interview, which is not the case here. I have a job interview (at a startup) coming up next week and they requested to bring some code to the interview. I have two smaller open-source projects an... | Why don't you do both? Bring paper print-outs and bring an electronic device to showcase the rest? If they have let you know how many people you are interviewing with, bring print-outs for each interviewer plus two or three spares. Extra interviewers get added on all the time and you want to be prepared for that. If yo... | 3 | 4 | 8,328 | 2014-01-27T20:23:06.787 | api_errors | softwareengineering.stackexchange.com | |
3,081 | How can a Windows server be a slave to Jenkins running on Linux when there in an error installing the slave-agent.jnlp file? | I want to have a Windows Server 2016 slave node with a master Jenkins (version 2.89.2) running on Red Hat Enterprise Linux 7.x. I am trying to install the slave-agent.jnlp file from the Jenkins web UI on the Windows server. I run this command for PowerShell opened as administrator: [CODE] I receive this error: [CODE] I... | You have two arguments that are empty: [CODE] Your error message has a comma in it: BadFieldException[ The field has an invalid value: ,] Other bad argument error messages on the internet have comma separated lists of bad arguments: BadFieldException[ The field codebase has an invalid value: $$codebase,$$codebase] So I... | 2 | 1 | 6,093 | 2018-01-15T03:50:57.830 | pipeline_ops | devops.stackexchange.com | |
258,524 | Storing a very large matrix on Postgresql | I have a list of 19100+ postal codes(with their associated centroid lat/long). Now I am planning to calculate the driving distances between each of them and store it in a database as a ready reckoner for use in another application. I am facing two problems: Is storing this as a 19100 columns X 19100 rows table feasible... | I would create a table with three columns: [CODE] If you want, you can prevent storing the reversed combination through a unique index. If your ZIP codes aren't numbers, then obviously you need to use [CODE] or [CODE] for those two columns. While the table is moderately large (9550 * 9550 rows), access through the prim... | 0 | 3 | 640 | 2020-01-30T12:07:59.923 | database_errors | dba.stackexchange.com | |
463,649 | What's the difference between managing certificates for a user account and for a computer account? | We have some domain-joined computers that were unable to import a third party root cert as a trusted cert provider. In trying to fix this, I noticed that when we go to use the certificate management snap-in, we get a prompt like in the screenclip below. My question is, what's the difference between the user account and... | The difference is exactly what it says. With Windows, certificates get assigned to accounts. So, if you want to apply a certificate to a specific computer, that's done by assigning the certificate to the computer account . This is a slight difference that's mainly just semantic when compared to *nix systems, where a us... | 2 | 5 | 6,634 | 2013-01-07T11:16:15.633 | infrastructure | serverfault.com | |
28,095 | Error - An unhandled exception of type 'OpenQA.Selenium.NoSuchElementException' occurred in WebDriver.dll: Unable to locate element | I am trying to click on a tab - a rather simple task.But, I get the error message above. I have added a thread.sleep command - in case it is due to synchronization issues. Your help is highly appreciated: [CODE] I have checked previous errors from: Selenium webdriver - Unable to locate element,xpath,error Selenium Webd... | There are no elements matching the XPath expression. There is actually a much simpler way to locate the "Search Jobs" link - by "id": [CODE] Note that, instead of [CODE] call, you should use an Explicit Wait : [CODE] | 1 | 1 | 6,432 | 2017-06-28T19:26:56.400 | data_quality | sqa.stackexchange.com | |
310,293 | ext2 dump/restore problem | I am running a mailserver with maildir storage. This means that quite a lot of files are created and I have just run out of inodes. AFAIK there is no magic command to increase number of inodes on ext# filesystem (or am I wrong?) so I have to backup and restore the whole filesystem. But how do I do that? I tried creatin... | My alternative suggestion for copying the filesystem follows. Keep in mind that the closest I've come to this problem is using find+xargs+rm to clear a maildir that had gone wild with useless junk, so you should see where this gets you after an hour or so. [CODE] The function of this construct is Retrieve the list of f... | 1 | 1 | 466 | 2011-09-11T21:27:42.440 | database_errors | serverfault.com | |
292,473 | Unable to create pluggable database on 19c using response file | I am trying to create a pluggable database using a response file, but it is giving me the error below, indicating that one of the mandatory parameters is missing. Although I have checked it multiple times, I don't see that any missing mandatory parameter. Below is my response file which I am using. [CODE] I am able to ... | You might be doubling up the createPluggableDatabase parameter - you've got it in the command line as well as in the .rsp file. Try: [CODE] HTH | 0 | 0 | 406 | 2021-05-29T19:24:33.200 | warehouse_errors | dba.stackexchange.com | |
261,556 | How to fill/insert fake data into a MS Sql Server | I'm trying to test out some configuration settings for an MS Sql Server [CODE] and to do this I wish to fill my [CODE] disk up so it will start populating the 2nd [CODE] . I've just created a dummy table that on the [CODE] and have the following simple sql to insert some data. It's just taking so long and filling it sl... | Do a CROSS JOIN between sys.columns, use that same 2, 3 , or 4 times. Have a TOP, with as many rows as you want. Use that as a base for INSERT ... SELECT. [CODE] The cross join is a classic trick. Do a cross join between two tables that has 1000 rows each and you have 1,000,000 rows in the result. With 3 tables, you ha... | 0 | 2 | 2,869 | 2020-03-10T02:05:57.347 | database_errors | dba.stackexchange.com | |
344,971 | Weird bug when copying from sql server management studio to excel in windows 7 | I run a query in SQL management studio (results to grid), then select all results and copy with headers. Then I paste into Excel. The result: two specific records are put together on one row in Excel. With two specific I mean that I first got 26000+ records, then after discovering this bug, changed the query to get jus... | I know this is a very old question but i happened to run into the same issue just now and it was because of the " character. I just removed that in my query with a replace syntax and it worked. PS i also removed all CR LR data as well. (REPLACE(REPLACE(REPLACE(REPLACE(, CHAR(9), ''), CHAR(10), ''), CHAR(13), ''), CHAR(... | 4 | 1 | 4,196 | 2011-12-29T09:54:27.960 | database_errors | serverfault.com | |
937,888 | Problematic apt-get update due to missing gpg keys | I accidentally deleted some Debian gpg keys when testing out apt-key del. (I don't remember which key) I have redownloaded the deb package and extracted the gpg keys. Then I used [CODE] to add those keys to the keyring. All 3 Debian Stretch keys have been added but I am still getting a missing public key warning from [... | Try to re-import missing keys with following commands. [CODE] | 1 | 3 | 4,091 | 2018-10-30T15:16:56.190 | infrastructure | serverfault.com | |
31,306 | Delete and archive old data from several related tables | Our schema looks like this: table [CODE] : stores start and end trip date and time table [CODE] : keeps all the trip data table [CODE] : stores events related to the particular trip. Then we have two more tables, [CODE] and [CODE] , which store the email and SMS that have been sent according to the events. We want to k... | Try pt-archiver from Percona Toolkit, it permits to transfer data on the fly between two MySQL instances. You can for instance use the [CODE] option to filter result set by date. It's particularly well designed for your needs, because you can transfer data and delete it from source in the same command. Official page is... | 1 | 3 | 4,822 | 2013-01-02T17:41:11.053 | hadoop_errors | dba.stackexchange.com | |
279,773 | VMWare Thick Provisioned and Thin Provisioned format | I am importing VMWare images to create new virtual machines. I always choose Thick Provisioned format because I doubt there could be performance hit if I use thick provisioned format. If I use thin provisioned format, could it affect the performance in a great margin? | Thick provisioned disks is the 'default' and gives best performance but is obviously less space efficient. Thin disks need to grow with the VM but reads and writes to already-allocated blocks within the disk work at the same speed as on thick disks; i.e. a thin disk that's not growing is the same speed as a thick disk.... | 3 | 7 | 1,207 | 2011-06-13T05:22:45.410 | infrastructure | serverfault.com | |
335,982 | IIS not allowing me to server files with .rdp extension | I am trying to host a .rdp file that will be publically available on the internet (without password, of course). IIS is not letting me use this file - I'm getting a 404 error saying it cannot find the file. It works fine if I change the file extension to .txt. Any idea what I'm doing wrong? | I recommend you try adding a .RDP MIME type to your website configuration in IIS File name Extension: .rdp MIME type: application/rdp | 5 | 10 | 11,261 | 2011-11-29T21:00:51.233 | infrastructure | serverfault.com | |
490,592 | Tomcat7 / Solr crashing under 'instant' load? | I'm new to solr and I'm load testing our setup to see what we can handle. I'm using solrmeter and my problem is a bit odd: When I set solrmeter to run 8000 queries/min, it will handle a few hundred queries and then tomcat will stop responding completely to requests (even though according to [CODE] it is still listening... | The solution to this ended up being maxThreads on the Connector. Upping that to a much higher number (10000) than the default (200) allowed Solr (and Tomcat) to handle the 'instant' load much better. | 1 | 0 | 361 | 2013-03-22T19:14:37.733 | hadoop_errors | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.