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 |
|---|---|---|---|---|---|---|---|---|---|---|
1,050,225 | Script to find sequences of lowercase letters joined with underscore or dash | I am newbie in writing scripts in powershell, and even more in regular expressions, please help with the implementation. example: [CODE] or [CODE] of course I tried to find a solution for this problem, here is my solution: [CODE] =========================================== Update: Solution found | [CODE] | 0 | 0 | 572 | 2021-01-18T08:32:05.907 | infrastructure | serverfault.com | |
5,303 | powershell to get sql server memory counters and show value | I am writing a powershell script to capture the following SQL server counters: SQL Server: Memory Manager: Total Server Memory (KB) SQL Server: Memory Manager: Target Server Memory (KB) My machine has 3 instances of SQL servers, so I want this script to capture all counters dynamically and report the value for 1 sample... | Aaron Bertrand wrote a good post on it that is pretty detailed... How I use PowerShell to collect Performance Counter data . Then Laerte Junior has an excelent walk through on how he finds the counters he wants in a Simple-Talk article: Gathering Perfmon Data with Powershell . This might be where you want to start. It ... | 9 | 7 | 4,687 | 2011-08-17T22:57:31.023 | database_errors | dba.stackexchange.com | |
214,342 | Is QA or testing a lot of overhead or not utilized properly? | From my experiences in software development (Eg. Waterfall ) I see it that most of the times it is the development team that sweats it out with the BA folk to get requirement clarity. The development folks then slog it out to meet deliverable deadlines. Where is the QA - they might be free - but will only hitch onto th... | Yes, agile is in part "geared towards reducing this 'waste' - getting testing involved early in the development so that issues get eliminated at the start?" The role of QA should be one where they are equal collaborators with developers and the business side of software development. They are the advocate for the custom... | 3 | 4 | 610 | 2013-10-14T02:50:37.880 | api_errors | softwareengineering.stackexchange.com | |
560,873 | Is it possible to allow a machine on openvpn to connect to only one server on the network? | I have an OpenVPN server which is already functioning properly and allowing people to work on our servers. There's a new project which requires me to allow access to the network and into one specific server within the network for a group of out-sourced coders. I'd like to allow them to connect only to one development s... | As MealstroM says, this is possible. The full procedure is well-documented in the relevant section of the OpenVPN HOWTO , but the short summary of the procedure is: Configure the OpenVPN server to distinguish between the regular users and the "captive" users (those who are to be allowed access only to certain machines)... | 5 | 5 | 2,722 | 2013-12-12T10:07:14.400 | infrastructure | serverfault.com | |
255,311 | Relationship with optional in-between table | I am currently implementing a self-assessment tool. The requirements for its questionnaires are as follows: A questionnaire has one or more dimensions and every dimension has either one or more questions or one or more subdimensions (and every subdimension has one or more questions). Sub dimensions are irrelevant for t... | I think that the idea of a special “empty” subdimension that is used if there is no real subdimension is the best one. It makes the data model and the queries simple. | 1 | 1 | 76 | 2019-12-10T15:32:41.050 | data_quality | dba.stackexchange.com | |
115,444 | When is the _id index used? | When is the [CODE] index used by MongoDB? I could not find anything specific about it in Index Introduction , Analyze Query Performance , and Query Plans . When sorting by [CODE] at the end of the query via [CODE] , [CODE] explicitly shows the index use. It might be that it is implicitly used in every [CODE] operation,... | When sorting by _id at the end of the query via .sort({_id: -1}), .explain() explicitly shows the index use. It might be that it is implicitly used in every COLLSCAN operation, though. A COLLSCAN operation is a collection scan, which indicates that no index is being used and the collection is being iterated in natural ... | 4 | 3 | 6,732 | 2015-09-18T09:40:21.167 | database_errors | dba.stackexchange.com | |
1,144,679 | How can ldapsearch look for a specific user with a specific group? | I'm working on some ldap authentication, and one of the things I need to do is require users be part of a specific group. To best replicate the functionality I can use this query [CODE] I removed some of the identifying parts. What's throwing me off is, I'm new to using LDAP, but from searching around, the "memberof" p... | I'm new to using LDAP, but from searching around, the "memberof" portion sounds like it's supposed to work. Yes, but that does require that: the LDAP directory actually populates the [CODE] attribute. There is a certain additional overhead and complexity for the LDAP server to ensure that a change in the members of a g... | 0 | 1 | 3,101 | 2023-09-28T20:33:39.030 | api_errors | serverfault.com | |
270,845 | Auto increment field on update | I have a field called: update_count, which I need to reflect the number of times a row has been updated. I have been looking into the SERIAL type for the column which sounds promising, but it has one problem - it is not transaction safe , which means that it may get out of sync. This may not happen. My question is then... | Auto-increment (aka "identity") columns are something completely different than "a column indicating the number of updates to a row". Even if a sequence (the "magic" behind identity columns) did work without gaps, you still have a single sequence for the entire table, not for each row. If you want to track how often a ... | 0 | 1 | 1,272 | 2020-07-13T13:12:04.343 | spark_errors | dba.stackexchange.com | |
379,640 | Xen Issues - Total Memory + Grub Disappeared | I'm pretty much a newbie when it comes to the Xen Hypervisor, either way I installed it on a dedicated server, I just removed OpenVZ since it was annoying me. So, I followed http://www.crc.id.au/xen-on-rhel6-scientific-linux-6-centos-6-howto/ however I got kind of stuck in the grub part and it wouldn't properly boot in... | You have 1505MB allocated to this Linux instance now and 516MB free in the hypervisor. That totals to 2021MB. The hypervisor itself is using around 25MB. That's close enough to 2GB in my book. | 0 | 0 | 211 | 2012-04-15T12:42:12.290 | infrastructure | serverfault.com | |
19,019 | MySQL get next unique value without auto increment | I have an MySQL database (InnoDB) that I'm developing for tracking Work Orders at my organization. There are multiple 'sites', and each site has work order numbers starting at 100. [CODE] WorkorderID is the auto increment field. SiteID and SiteWorkorderNum are both set as a unique constraint. Whenever a new work order ... | What is interesting about this situation can be solved using the MyISAM storage. I answedred a question like this back in April 2012 : How can you have two auto-incremental columns in one table? You need to create one table whose sole purpose is the create sequences of work order for each site [CODE] Here is a sample l... | 8 | 4 | 23,462 | 2012-06-09T21:35:56.923 | data_quality | dba.stackexchange.com | |
165,354 | How to integrate technical line/functional manager into Scrum team? | We have recently had a new line manager start to manage our Scrum team. He is immensely experienced in our field but is relatively inexperienced at Agile/Scrum. He has extensive technical expertise in embedded software (the team's domain) that would go to waste if not utilised properly. However, the team is wary of mak... | In a lot of teams, including mine, the product owner is also a manager for some or all of the team members, so it's hardly uncharted territory. It does pose some difficulties, and for some teams is wholly unworkable, but this is what helped for us: The manager and the scrum master must have an open relationship. It won... | 7 | 6 | 2,398 | 2012-09-19T07:23:40.610 | api_errors | softwareengineering.stackexchange.com | |
63,184 | How would keras model learn at every epoch? | I know concept of Epochs, batch size and iteration. let's say, Total_data = 6400 Batch_size = 64 Iteration = 100 In this, basically we are taking in 64 data points to computer memory and calculate and at each iteration we get weight updated. so after 100 iterations, we will fulfill one epoch. My question is, after one ... | The data points are the same, but the model is different at each epoch. Weights are updated at each iteration so they will be different and in turn, the loss function will be different for the same data point at different epochs. What training process does is to change the weights slowly at each run to minimize the los... | 1 | 1 | 115 | 2019-11-15T06:08:38.200 | data_quality | datascience.stackexchange.com | |
434,082 | Excessively verbose and cryptic comparisons in Java | I don't know if this is the right place to ask more of a "philosophical" question. The more I code in Java, the more I have to bear with [CODE] . And the more I bear with this interface, the more my code gets verbose, maybe also cryptic. I'll take my last occurrence of the problem as an example: [CODE] The more i write... | The point of [CODE] was never to make individual comparisons easier. The point is to allow using standard algorithms , such as sorting or limiting, on user-defined types . If you find a line like your example too cryptic, you're free to define a utility [CODE] so you can say [CODE] In fact, that's what I would do. As f... | 0 | 5 | 232 | 2021-12-05T11:44:34.187 | api_errors | softwareengineering.stackexchange.com | |
811,285 | Compute Engine SSH unexpected end-of-file during FileZilla SFTP authentication | I cannot get Filezilla to connect to my SSH instances at Google Cloud Compute Engine. I followed the instructions for previous instances without issue, but in this case, I deleted two Ubuntu 16.04 server instances from my project so that I could recreate them with Cloud Storage Read/Write enabled. Even after manually c... | There is a nice step by step configuration guide to setup Filezilla and use it on GCE here . An easy and automated way to configure the keys is by using “ gcloud compute ssh ”. If the keys do not exists, the tool will generate them and configure them in the project’s metadata. The keys are placed in the local “ .ssh ” ... | 0 | 1 | 1,406 | 2016-10-25T23:24:26.397 | api_errors | serverfault.com | |
69,275 | Error when building documentation of Postgres | I am trying to build the documentation of Postgres on OSX After getting the source, installing node and jade, I do: [CODE] This results in the error: [CODE] The directory that the make script is expecting to find looks really odd. What am I doing wrong? My [CODE] is 1.3.1. | [CODE] I'd say you have some ancient version of one of the required tools, and it's seeing the [CODE] command-line switch as a regular path argument instead. | 0 | 1 | 136 | 2014-06-28T20:21:53.193 | warehouse_errors | dba.stackexchange.com | |
128,749 | Auto Increment Key Pair with Start Digit at 200000 SQL SERVER 2008 | I'm currently rewriting a front end for a program that handles interviews. I want to prevent an issue the older program had were during the tiny amount of time it was doing a lookup for the next control number, another client could get the same number and create a conflict. I think it's best to do this in the database ... | Here is one way, note that this effectively limits concurrency, so don't expect stellar performance at scale. [CODE] Of course if anyone ever deletes any rows from this table, you'll be missing values. And if an insert gets rolled back, that rolled back number will be reused, so be careful if you reveal that assigned v... | 2 | 1 | 36 | 2016-02-09T16:54:34.527 | database_errors | dba.stackexchange.com | |
561,581 | Drawbacks with smaller fdisk partitions, mdadm RAID10, LVM and KVM? | I am setting up a new virtualized server with KVM and LVM. The KVM host and all guests will be installed on a SSD drive. Each guest will have access to a RAID10 array made of 4x3TB sata drives, used for data and storage. My problem is that I have to much space (6TB useable), which I don't really need at the moment. One... | Every additional RAID you create would need to update its superblocks. It would drag performance down, not surprisingly. For RAID-10 there's no point with multiple RAIDs creation, use LVM-2 on top of it, that's all. | 2 | 2 | 238 | 2013-12-16T05:45:35.460 | infrastructure | serverfault.com | |
320,051 | Pre-computation strategies when solving multiple linear equations with the same matrix? | Often in modeling, data processing, and optimization; the intensive portions of the code can often reduce to solving a lot of linear equations. e.g. [CODE] [CODE] ... and so on Sometimes the matrix 'A' doesn't change between computations, and my question is how (and when) can I take advantage of this with some pre-comp... | Matrix decomposition is definitely the way to go here. Which decomposition you use will be determined by the structure of the systems you are are trying to solve: solving using Cholesky decomposition requires a square, symmetric, positive definite, matrix. You can solve a general square matrix using LU or QR. LU is typ... | 2 | 2 | 94 | 2016-06-01T23:26:01.047 | api_errors | softwareengineering.stackexchange.com | |
1,056,178 | Why cannot use buff/cache? | It seems mysqld allocates too much memory as buff/cache: [CODE] Now I cannot start httpd service because it "Failed to fork: Cannot allocate memory". I wonder why this happens? Why the 445M buff/cache cannot be reclaimed and used for httpd? | The column "buff/cache" reports the sum of memory in use for buffers and cache. Buffers cannot be reclaimed because they are needed by the kernel to operate. Cache could be reclaimed, as witnessed by the "available" column. This would however require writing the current content of the reclaimed memory to swap if the ca... | 0 | 1 | 463 | 2021-03-07T03:18:02.747 | database_errors | serverfault.com | |
1,089,748 | ModSecurity 403, COMODO WAF detects XSS while trying to access phpMyAdmin | I have a copy of phpMyAdmin in one of my server in a subdomain 'pma' and inside a directory in it named 'app' (manual installed from zip archive, not via yum), which I use for DB related management and it was working ok for couple of months. A couple of days ago my local IP got blocked while trying to login there and a... | I think I've found the solution for the issue. The 'log' file I was looking for where the details are is in following file: [CODE] | 0 | 0 | 473 | 2022-01-12T04:49:27.027 | hadoop_errors | serverfault.com | |
124,354 | How to correctly discard old backups? | I have an Execute SQL Task in my SSIS control flow that's backing up a number of databases before it proceeds to run the overnight ETL: [CODE] The intent is to only retain 3 days, and discard anything older. The problem is that the .bak files just keep growing and growing for a week or two, until the G drive fills up a... | You will want to switch to using a backup statement of: [CODE] Build your [CODE] using a variable that includes maybe the package runtime. Convert that timestamp to just something like [CODE] where you full backup file name comes out to something like: [CODE] You could then just add a process task in your package to ex... | 5 | 3 | 1,138 | 2015-12-22T16:20:03.720 | database_errors | dba.stackexchange.com | |
280,069 | Why MySQL pick a different index for the same query structure but different values? | Right now i have some issues understanding how MySQL picks the index to use on a query. I am executing a "COUNT QUERY", but everytime i use a different foreign key for the query, MySQL picks a different index to use. Let me elaborate and explain my situation. On our DB table we have around 40 millions rows. I am using ... | Per your testing based on my comments, it does seem like it's related to the cardinality of the data. I.e. MySQL's Engine thinks a larger date range predicate in your WHERE clause will result in enough data to be returned that the cliente_id is a better index to use when searching for that data. (It may even be doing a... | 2 | 1 | 572 | 2020-11-20T22:35:00.720 | database_errors | dba.stackexchange.com | |
29,845 | Binding errors with dependent stored procedures | We are getting strange errors on one of our stored procedures. This stored procedure calls other stored procedures & we are getting errors relating to columns that cannot be found in the sub procedures. For example: [CODE] When I execute StoredProc1 the first time I get errors relating to columns on StoredProc2. I then... | Thanks SQL Kiwi, you answered my question. The temp tables are all #temp tables. After reading your comments I thought why not try rename all the temp tables and make each a unique name. I went thought each procedure and gave each #temp table a unique name per stored procedure, then I ran the command [CODE] Then then t... | 1 | 2 | 487 | 2012-12-05T08:56:47.113 | database_errors | dba.stackexchange.com | |
128,037 | MySQL: Soft Delete post likes | I have implemented a like/unlike features for posts in one of my projects. The like table is normalized and has a column [CODE] . The schema is as follows: [CODE] What I'm doing currently is that when a user likes a post, I create a record and when he un-likes it, I just set the [CODE] column to false . The count is ca... | You should consider the balance between how often your data will be accessed vs how often your data will be updated . Adding another condition on your [CODE] just to display your content may well create more load than deleting rows in the infrequent occasion that a user un-likes. Note that you will need an index on [CO... | 3 | 2 | 403 | 2016-02-02T16:06:47.430 | database_errors | dba.stackexchange.com | |
75,151 | How to preprocess data for image classification from a .txt file? | Basically my issue is that im building an image classification model using AlexNet. I have this pre-split dataset thats already split into training, test, validation. However the issue is that these splits are in .txt files (e.g. trainingsplit.txt) and inside the .txt file is a list of image_001.png files etc. How do I... | I am assuming from the description inside main directory there are more directories of Apples, Bananas, Oranges, etc. and inside them you have .txt files containing information about the images. [CODE] Once images are moved into there respective folder you can use ImageDataGenerator approach to train model. | 0 | 0 | 396 | 2020-05-31T03:44:37.223 | data_quality | datascience.stackexchange.com | |
569,300 | "Connection" HTTP header in load balancers | Do load balancers remove the HTTP header indicated in the "Connection" header? As far as I know, headers indicated in the "Connection" header are not supposed to be populated further than the first hop. Thanks. | The Connection header, or almost any other header, is not modified when passing through the load balancer. It is necessary to pass that header to tell the backend server what to do not only between the client and load balancer, but also between the load balancer and the server. Also to note, some application-aware load... | 1 | 2 | 201 | 2014-01-23T11:06:12.127 | infrastructure | serverfault.com | |
1,151,836 | Microsoft Defender: extract Automatic log upload data | Is there a way to extract this automatic log upload table from defender: my goal is to use this information to aid in responding to the System alert: Cloud Discovery automatic log upload error alert in Defender: which is misfiring due to two log collectors being used for the same data source. which can be verified with... | You could see if you can query it with a kusto query in advanced hunting. And then you can export the results of that query to csv file. But I'm not sure if there is a table for this in advanced hunting (Defender XDR) , you could check this one https://learn.microsoft.com/en-us/microsoft-365/security/defender/advanced-... | 0 | 0 | 51 | 2024-01-19T05:25:22.013 | infrastructure | serverfault.com | |
211,789 | SQL Server on EC2: Where do you put the database? | If I run SQL Server 2008 on an EC2 instance.... what are my options for the location of the mdf ? If it is in the local instance storage, I can lose it when the instance reboots. (My understanding is that the instance can reboot once or twice a year.) What are my options? What am I missing? Thanks! | Amazon says to use EBS http://aws.amazon.com/running_databases/ 2013 Revision: If using a plain EC2 instance, the answer is still to use EBS as the storage for the db files. However, in my (relatively extensive) testing of this setup, write performance of SQL Server was much lower than desired when using "plain" EBS. T... | 3 | 4 | 1,861 | 2010-12-12T19:10:19.183 | database_errors | serverfault.com | |
146,377 | Why is my rsync so slow compared to pure cp or even scp? | I'm transfering the files from Linux to Windows 7 via a mounted share (the share is mounted from Windows on Linux).. I'm copying lots of data (i.e. nearly a TB) from the old to the new machine within my LAN. I'm unfortunate enough already that I only have 100MBit. Naturally I blindly used rsync but already wondered aft... | (the share is mounted from Windows on Linux) That is your problem. rsync is doing rolling checksums over the destination. The windows share. You are pulling all the data over the network to compute the checksums. (Possibly more than once). What you need to do is have rsync running on both machines. That way only the di... | 16 | 19 | 27,953 | 2010-05-28T19:38:30.680 | infrastructure | serverfault.com | |
16,267 | Integrating JIRA with Test Link using REST Interface | I am trying to integrate Test Link (version 1.9.14) with my JIRA cloud instance. I was earlier using the JIRA (interface- SOAP) to connect with JIRA, but wasn't successful, because JIRA, has deprecated SOAP interface after version 6. So, I tried to configure using JIRA (interface- REST) My configuration file is : [CODE... | We've succesfully integrated TestLink 1.9.10 with Jira in the Cloud. My configuration for the issue tracker record in TestLink is: [CODE] Where: USER is a valid Jira user that has permission to create bugs. PROJ is the Key of the Project in Jira where bugs are going to be created. Issue type is 1 because that's the iss... | 4 | 2 | 6,398 | 2015-12-24T15:23:04.603 | data_quality | sqa.stackexchange.com | |
167,304 | ASP.NET Webforms developers and web designers: how to interact? | I'm an ASP.NET Webforms developer, and I face some problems when I deal with designers. Designers always complain about the [CODE] . They'd rather just have an html file and create [CODE] files along with the required images to go with those. Sometimes, if the design phase is done in advance, I get html files with rela... | Former Designer here, turned Dev, and I used to piss and moan about Web Controls too. Honestly, its MUCH cheaper for a designer to adjust their practices than for a .NET Developer to delve into a custom impelmentation of a GridView because the designer INSISTED that each TD have a 'rel' tag (or whatever). As Arseni Mou... | 17 | 29 | 4,382 | 2012-10-03T19:52:23.267 | api_errors | softwareengineering.stackexchange.com | |
237,947 | Planning troubleshooting in a sprint | From time to time we face difficult problems which are hard to reproduce. Creating a planning for solving such an issue is (nearly) undoable. What we do at the moment is break these up in analyses/reproduction and solving the problem. As long as know nothing we plan a number of hours to investigate and book off these h... | I think ITIL has a nice take on the subject by distinguishing between problems and incidents. You can not fix an incident ... somebody has to investigate and figure out the problem behind that incident. That way to look at things has a certain overhead, but it can help in many different ways as the scope of a project i... | 1 | 1 | 111 | 2014-05-05T08:25:13.983 | api_errors | softwareengineering.stackexchange.com | |
145,258 | MySQL / MariaDB change feeds | Is there a way to get a notification when a row in a table is created or updated? Much like RethinkDB's change feeds. Anything would work really - a message on a WS channel, or a HTTP request with the data that was created/updated... Cannot use trigger to copy to temp table and poll, this is for a real time currency fx... | MySQL and MariaDB do not have any way for a [CODE] to invoke anything outside of the MySQL/MariaDB server. (To do so would be to create a security problem.) Well, you could write a [CODE] that could do anything, and compile a special version of the server, etc. You are probably better off polling, as you mentioned. If ... | 2 | 0 | 905 | 2016-07-28T17:32:52.173 | database_errors | dba.stackexchange.com | |
930,422 | HAProxy: Use saved state to restore backend IPs possible? | We are using HAProxy 1.8.13 on Centos 7 with dynamically assigned backends (backend IPs and ports assigned over stats socket). This works fine. We need a method to make the dynamically assigned stuff stick over restarts and wanted to use the " load-server-state-from-file " directive. Sadly we are running into an error ... | We found out it works when we replace '127.0.0.1' with 'localhost'. HAProxy seems to ignore backend IPs in the state file, at least with the versions we tested (1.8.7, 1.8.13, 1.9-dev). Backend servers that have DNS names as configured default do get the IPs from the state file applied. We took a deep dive in the code ... | 1 | 1 | 741 | 2018-09-11T13:35:08.390 | database_errors | serverfault.com | |
1,021,639 | How to use Google Cloud Run with my clients domain? | I'm Building a multisite enviromment to allow my clients to build their websites (like a wix builder). I already have it working on a single VM but I want to use cloud run to scale this better. The question is: How I can connect programmaticaly my clients domains to cloud run and generate a ssl certificate? There is an... | On cloud run's native way (mapping domains) it is not possible since you need to validate the ownership of your domain. In this document is mentioned: "You must verify domain ownership the first time you use that domain in the Google Cloud project" If some customer has this domain mapped to another GCP project this dom... | 3 | 2 | 338 | 2020-06-16T06:34:29.110 | api_errors | serverfault.com | |
520,530 | Grant relay to servers based on AD security group membership | We're moving our relay from an Exchange 2003 server to an Exchange 2010 server. I was hoping the "Grant or deny relay permissions to specific users or groups" option would still be available in some form, but I can't find out how to do it. I've read up on recieve connectors and so far I can't get it to work. I have edi... | Based on your comments on @Noor's answer I am suspecting that what you're looking for is: Make a given computer's AD account a member of some "Allowed to Relay" group Have programs running on that computer magically be able to relay SMTP through Exchange because of the group membership of the computer's AD account If t... | 1 | 2 | 2,526 | 2013-07-03T13:10:28.173 | infrastructure | serverfault.com | |
1,144,030 | Can I release stale allocated GRES on a Slurm node? | Is there any way to clear stale allocated GRES in Slurm? I have one node where 4 GPUs are allocated while no jobs are running on the node. Rebooting the node does not release the GPUs. [CODE] The problem reoccurred, this time the shutdown time did not remove the allocation. I removed the acceptance from my answer since... | I don't know why, but this morning the allocation was gone. The node was turned off over the night to conserve energy (clusterwide configuration), apart from that I didn't change anything in the configuration. [CODE] | 1 | 0 | 69 | 2023-09-19T13:30:39.963 | infrastructure | serverfault.com | |
869,017 | Process claims to use a lot of memory, but 'free' indicates that the memory is still free | I've seen the opposite of this, but this is puzzling. In short, I have a process where %MEM claims to use 74% of memory when using 'ps' and 'top'. However, 'free' shows that I'm only using 32% of the available memory. Here is this output of 'top': [CODE] You will notice that the 'asd' process claims to use 74% (139g) o... | I think there is simple explanation, difference between [CODE] and [CODE] with [CODE] . If you check [CODE] output, you'll see [CODE] memory, that memory [CODE] show as a available memory. How it count. You have [CODE] total memory, your process use [CODE] resident memory, so you should have [CODE] memory for buffers a... | 2 | 2 | 605 | 2017-08-16T18:56:59.500 | infrastructure | serverfault.com | |
128,716 | MySQL Stored Procedure | I must convert some stored procedures from MS Sql Server to MySQL and in Sql Server I have these two variables: [CODE] for a server error and [CODE] for the last insert id are there MySql similar global variables? | You may get last insert id by [CODE] | 2 | 2 | 141 | 2010-04-02T07:14:19.940 | database_errors | serverfault.com | |
256,277 | Login failed for newly created user | I just created my first database yesterday. It is now set up and I can write to it from my C# application using the admin user login. I would now like to use a limited write only user so my admin credentials are not stored in my application. I have created a second login on master using query1 [CODE] I created a user o... | My issue was that I misunderstood how logins work in SQL. I was using the USER name and the LOGIN password instead of the LOGIN name and the LOGIN password. It was a noob problem. Hopefully this saves someone else the time. | 0 | 0 | 162 | 2019-12-25T18:55:15.977 | warehouse_errors | dba.stackexchange.com | |
263,945 | Confusion about charset for connected tables from MS Access | I run 10.4.12-MariaDB on Windows10 and I use 64-bit ODBC driver to connect tables from MS Access to MariaDB database. I am simply glad that it works (!). But going deeper and working more with connected tables (yes, this way to link mdb and open source db world is too complicated, but no other way for me...), I found s... | I'm going to guess that the problem might be the difference between your table collation and the data_charset. Maybe try using a compatible collation, so how about this? Use [CODE] : [CODE] | 0 | 0 | 752 | 2020-03-30T19:03:38.823 | database_errors | dba.stackexchange.com | |
897,138 | redirect all incoming HTTPS traffic to another port | I have a Linux Router and two locally hosted pages (running on this server), and I want to redirect all incoming HTTPS traffic to an application running on port 14902, and all incoming HTTP traffic to an application running on port 14901. A rule like this one (nat table), works perfectly with the incoming traffic on po... | Why not use nginx instead? [CODE] But your cert probably isn't going to work without hostnames: [CODE] Use iptables to open ports 80 and 443 and let nginx do its thing. [CODE] If you need UDP, simply add [CODE] | 2 | 1 | 10,314 | 2018-02-14T00:19:20.087 | api_errors | serverfault.com | |
176,590 | nss_ldap: "getent passwd" works, "getent passwd <username>" fails? | I've installed nss_ldap, edited nsswitch.conf to use ldap; here is my [CODE] contents: [CODE] When I do [CODE] I get a correct view of all the usernames in the company. But if I do [CODE] with a known valid username, nothing is returned, as if the user didn't exist. (it works for local non-ldap users) If I compile nss_... | Do you use nscd, the naming caching daemon ? It could have a negative-cache of the user, in which case running [CODE] would invalidate the cache and cause a re-fetch. [CODE] works because it bypasses nscd. | 2 | 4 | 4,894 | 2010-08-31T16:35:10.530 | infrastructure | serverfault.com | |
905,930 | chmod o-x file system unable to boot | As per title, I changed system file permissions in root and I'm unable to boot. Stuck at loading login gui. Is there anyway to revert this? I am able to access grub command line. Thank you | If you used the [CODE] the -R option, you likely have broken the permissions of a number of essential programs and directories. Rebuilding a new operating system install and restoring data from backup is one way to recover. If you have a backup of the entire OS, you might use that and skip reinstall. Or, you can boot a... | 0 | 0 | 180 | 2018-04-04T10:31:03.553 | infrastructure | serverfault.com | |
191,519 | Consumer board for 4* commodity cluster in tetrahedral back-to-back GB-lan topology | I'm not very sure what consumer board to choose for such a configuration. Im planning to build one or more "Beowulf-like cluster" (starting with one for testing), one such cluster consists of four boxes (commodity Socket-1156 + i7/875K + 2x2GB 1333) in tetrahedral Gbit-Lan topology (direct back-to-back X-link connectio... | The quality of your NICs is likely to be the issue. Onboard networking for consumer boards is usually inexpensive Broadcom or Realtek chipsets, which are pretty horrible under real loads. Cheap consumer-grade NICs are going to have similar problems. Standalone NICs with the better Intel chipsets are pretty well regarde... | 2 | 2 | 256 | 2010-10-15T21:22:08.287 | infrastructure | serverfault.com | |
488,486 | Debian - Port 80 is blocked, but I don't know by what | I can't make lighttpd listen to port 80. [CODE] Actually I have apache2 installed on my server, too (listening to port 80) but it is not active. I used netstat / netstat -npl but it wasn't helpful How can I figure out what is using the port? | In depsite of people got used to [CODE] for such kind of operations, it's good to know, that Linux has another great (and, actually superior) networking tool — [CODE] . For e. g., to find out which process has opened port 80 you run it so: [CODE] so there's no need to pipe through external filters. Surely it has lots m... | 12 | 30 | 28,756 | 2013-03-16T19:27:26.513 | infrastructure | serverfault.com | |
805,224 | SQL Server uses CPU too much | I have a server 2012R2 with SQL Server 2014 Express SP2 installed. There are some applications and databases, but nothing too big. Databases are small, about 100MB size combined. At some moment (not from the beginning) the SQL Server process started to show constant high CPU usage. Usually the CPU load is about 15-20%.... | Issue is the following. Let a Hyper-V VM is configured with high startup memory (like 10240MB), and dynamic memory limits active and are like 512-10240 range. VM starts up with full amount of RAM available. Short after load the host reclaims excess memory from the VM. At the same moment SQL Server process starts to cre... | 1 | 0 | 163 | 2016-09-25T18:38:08.967 | database_errors | serverfault.com | |
1,086,297 | Wireguard Connection Dies on Ubuntu Peer | I live in a building where the network is behind a NAT. I have a Linux desktop PC and a laptop. In order to access my desktop via ssh, I have a Wireguard VPN running on my desktop, laptop and a VPS. The issue is that connection between my desktop and the VPS dies. Here is the VPS config: [CODE] Here is the Linux deskto... | Try moving the [CODE] settings from your VPS WireGuard config to your Desktop and Laptop WireGuard configs. Usually you want [CODE] on the side of the connection that's behind NAT, as it will automatically send keepalive packets to "open a hole" in the NAT, allowing the non-NAT side to initiate new connections (or re-e... | 0 | 1 | 2,365 | 2021-12-14T15:10:13.303 | infrastructure | serverfault.com | |
6,019 | How to get the Event Object of the Click event on Selenium IDE? | I am a newb at selenium thing. I have image map area and on click event of this area a function is firing where the click Event Object is being passed to do some calculation. I have recorded the scenario with Selenium IDE and it produced Click command for it. What I see is that it enters into the function but the event... | It seems that you need coordinates for the event, which are not filled by fireEvent. Maybe clickAt might work for you: [CODE] | 5 | 1 | 2,205 | 2013-05-03T07:37:40.670 | data_quality | sqa.stackexchange.com | |
259,329 | SQL Server - Defining and populating a new temp table column fails only once | How can I add a new column to a temp table dynamically in a stored procedure and populate it with some values, without resorting to dynamic SQL? I am getting an error only on the first time I run the code. It seems to be side-effecting in tempdb, and being inconsistent with Deferred Name Resolution . Consider this samp... | When a stored procedure is executed for the first time, the query processor reads the text of the stored procedure from the sys.sql_modules catalog view and checks that the names of the objects used by the procedure are present. Deferred Name Resolution and Compilation That explains the observed behavior. On the first ... | 0 | 4 | 488 | 2020-02-10T15:23:09.000 | database_errors | dba.stackexchange.com | |
473,677 | in puppet, what's the difference between "include 'module::config'" and "include '::module::config'"? | I have inherited a module that contains the include statement [CODE] but after editing a few things that seems to be unrelated, this doesn't work anymore and puppet complains that: [CODE] unless I change it to: [CODE] then it starts working again. | Using [CODE] at the start specifies top scope. If your classes are structured in a normal way, this should never matter. It can matter if you have classes with name collisions; for instance, if you have a class at [CODE] and a module named [CODE] , then an [CODE] from within [CODE] will include [CODE] instead of [CODE]... | 1 | 4 | 680 | 2013-01-30T00:19:22.430 | pipeline_ops | serverfault.com | |
805,227 | elastic's snapshot and restore module repository_exception | I'm using elk-docker and trying to follow Snapshot And Restore | Elasticsearch Reference [2.4] | Elastic and getting following error: [CODE] Please advice. | I added [CODE] into [CODE] : [CODE] followed by [CODE] & [CODE] , and [CODE] again: [CODE] | 1 | 0 | 2,300 | 2016-09-25T19:01:51.260 | pipeline_ops | serverfault.com | |
748,332 | Ran chkconfig but crond not starting on reboot on Amazon Linux | I am trying to get the cron daemon to start on reboot on an instance of Amazon Linux (Linux version 3.14.57-34.46.amzn1.x86_64). I have run: [CODE] If I run: [CODE] I get: [CODE] The system's default run level is 3. Starting/stopping crond manually works fine, and the commands in my crontab are executed. [CODE] After r... | In case anyone has a similar problem, here's what the issue was: nginx was also set to start on boot and had a password-protected SSL certificate key. After the passphrase was removed from the key, crond started on reboot. | 3 | 0 | 1,205 | 2016-01-11T23:41:55.303 | infrastructure | serverfault.com | |
872,698 | heroku redis error : NOAUTH Authentication required | I wanna deploy my django project to heroku. My project uses channels so I need to set up ASGI based environment. I have two installed add-ons in heroku app. One is Heroku-postgresql and the other is Heroku-redis . And I have two dynos please refer to below picture. addons, dyno: I succeeded push django project on herok... | Have you updated cache configuration in your Django settings like this? [CODE] | 0 | 0 | 2,657 | 2017-09-08T13:22:18.083 | api_errors | serverfault.com | |
107,823 | Merge two data sets by date, filling in missing dates in 1st table, power bi | I'd like to merge the two data sets by the date, keeping all the dates and filling in the totals col with NULL when the date doesn't match EDIT: I’m working in Power BI Data set 1 [CODE] Data set 2 [CODE] Desired Output [CODE] | As mentioned in my comment, this can simply be achieved by merging the two tables using the [CODE] column as a key and using an outer join to make sure all rows from both dataframes are kept. [CODE] This will return the following dataframe: [CODE] | 0 | 1 | 1,732 | 2022-02-04T00:02:07.527 | bi_errors | datascience.stackexchange.com | |
813,382 | Apache2: Is Proxy from https to http secure | Im pretty new at all this server stuff, and I have a question regarding the security of the apache proxy. What I am doing is: I have a websocket server running in non secure mode on port 11221 on the same system (localhost only, but with apache, it's a different application). In my apache, I created a configuration wit... | The SSL layer is only applied to the connection from client to apache, obviously; that's why you have configured apache after all, isn't it? (Also called "SSL offloading". I usually use pound or haproxy for that, much simpler / smaller than apache if this is all you're using apache for.) The communication between apach... | 0 | 1 | 925 | 2016-11-05T15:09:37.760 | api_errors | serverfault.com | |
263,677 | How to set up SSH passwordless key authentication for remote access only, allowing local users to use passwords | I am trying to get an SSH server running Ubuntu 10.04 to allow password logons only when coming from the local network. For all other users, especially those logging in from the internet via the firewall, I want to force Key based authentication. I googled around and found the following. Here's what I have changed in [... | This should do the trick: [CODE] The first two lines will enable pubkey authentication by default. The last line will override the other two lines for the matched network (192.168.5.0/24). | 6 | 9 | 775 | 2011-04-26T21:35:13.823 | api_errors | serverfault.com | |
369,949 | Server performance worsened after a hardware upgrade: how should I reconfigure the server? | I'm running a site on an Ubuntu/Apache/Django/PostgreSQL stack. We upgraded our server recently from 1 processor with 2 Gb total RAM (with 0.5 Gb of that RAM assigned to memcached) to a new server that has 2 processors with 4 Gb total RAM (with 2 Gb of that RAM assigned to memcached). However, when I looked at Google W... | Profile your setup. Check for bottlenecks. Maybe Postgres is out of IO, or you should give it more RAM instead of memcached. Use atop it collects "historical" stats and is pretty thorough. Then do client side benchmarking, because it might be that the site is taking 10+ seconds because of too many HTTP connections, too... | 0 | 0 | 117 | 2012-03-15T08:26:59.823 | database_errors | serverfault.com | |
538,417 | KVM + NFS poor disk performance | Situation: We have an Ubuntu server that hosts three VMs using KVM. All guests as well as the host need to access the same files in a certain subfolder of /var . Thus, the subfolder is exported via NFS. Our problem is that the guest can read from/write to the directory with only half the speed of the host. The export t... | As it turns out the problem was easier to resolve than expected. Tuning the rsize and wsize option in the VM's fstab did the trick. The respective line is now [CODE] For me this was not obvious since I had expected best performance if values for rsize and wsize meet the disk's block size (4096) and are not greater than... | 5 | 5 | 10,819 | 2013-09-12T14:53:16.920 | infrastructure | serverfault.com | |
229,204 | Postgres CTE optimization with nested json_build_object | I'm trying to write a query that returns data from multiple tables and aggregates it in one nested JSON field. I feel like this would perform great on SqlServer but, as Brent Ozar wrote in this post, the Postgres optimizer walls the CTE queries together. This forces me to use a [CODE] statement at the first CTE's level... | What @jjanes wrote about CTEs acting as optimization fence. Your particular query does not need CTEs to begin with - nor most of the other included noise. What I see can be reduced to a [CODE] with two levels of nested subqueries: [CODE] db<>fiddle here Was more than twice as fast in my quick test. While querying whole... | 4 | 1 | 3,456 | 2019-02-08T02:33:28.687 | warehouse_errors | dba.stackexchange.com | |
478,749 | No more diskspace on server | after some wrong php code was exceuted on one of our servers, which tried to open up a file which didn't exist, we ended up with huge apache log files which weren't configured yet to rotate. We just deleted those logfiles. After which we saw that our disk didn't really clean up. The output of a df -h shows the followin... | The file you deleted will still be open and Apache will be writing to it. You will need to restart Apache to allow it to create a new file. A graceful restart should do the trick [CODE] or [CODE] or whatever your distro uses. | 10 | 12 | 290 | 2013-02-14T09:50:27.907 | infrastructure | serverfault.com | |
776,406 | Windows 7 Setup hangs at "Starting Windows" using Proxmox 4.2 | I am trying to install Windows 7 on Proxmox Virtual Environment version 4.2-4/2660193c, running on Debian Jessie. I have followed the instructions on this site . I uploaded a known-good Win7 ISO (that works fine with VirtualBox and real hardware) to Proxmox, and configured VM following the recommended best practices . ... | It's a (known) bug. Workaround: Change the display from 'default' to 'cirrus'. You can find this setting under hardware > display. Or, if you are creating the VM on the command line using [CODE] , just add [CODE] . For example: [CODE] | 27 | 40 | 25,960 | 2016-05-12T15:18:23.313 | infrastructure | serverfault.com | |
119,414 | Unable to start Oracle database | We have an Oracle database, one data file (users tablespace) of the instance got corrupt and another data file (containing application data) was deleted due to some issue. The database is in [CODE] mode, but we neither have data file backup of both data files nor the pertaining archive logs. Hence, I guess we cannot go... | What you can try is the following while your database is in the MOUNTED estate [CODE] and the same for the application tablespace you lost. [CODE] NOTE: If there is no backup and no way to restoring the lost datafiles, what you can do is backup any other important datafile/tablespace and recreate the database. I think ... | 2 | 2 | 15,724 | 2015-10-28T10:27:00.320 | data_quality | dba.stackexchange.com | |
573,566 | Scanning tagged traffic over bridge through iptables | I am working on bridge on linux box using brctl. Now I have to scan and monitor bridge traffic through iptables. So for the same I changed : [CODE] to [CODE] in /etc/sysctl.conf And add below rules into iptables: [CODE] to acheive traffic coming in eth2 and port 80 should be redirect to 3127 on my linux box. And it is ... | if your traffic is tagged, then your network I faces will be called eth1.X and/or eth2.Y. did you set new iptable rules accordingly? | 1 | 2 | 2,148 | 2014-02-06T07:10:44.437 | infrastructure | serverfault.com | |
190,670 | How to best handle MAX within a query/view | I have two tables named "Visit" and "VisitMovement" and one Visit can contain many VisitMovements. Within my query I need to join to the latest record for the Visit in VisitMovement so I can get back the latest VisitMovement details. To do this I have a view like this that I join to: [CODE] and finish up with: [CODE] I... | I think (not very clear) that you want something either: For a [CODE] solution - use something like this [CODE] Personally, I might want to use a [CODE] (unless I had millions of visitors), as per here . The reason I mentioned that you might want to avoid this approach for large tables is best explained here . [CODE] I... | 0 | 2 | 64 | 2017-11-11T00:56:50.860 | warehouse_errors | dba.stackexchange.com | |
53,058 | Feature Selection with one-hot-encoded categorical data | I have a dataset with 400+ columns. Almost 90% of these are categorical data with One-Hot-Encoding (OHE). I'm using the dataset for a classification problem. My professors asked me to perform feature selection using sequential forward selection (mlxtend). Is there really a point of doing this since it is also very time... | Sequential forward selection appears to be a greedy search algorithm if I am not mistaken? It appears you initially fit all possible one variable models, and then choose the one variable model that is highest performing. You then attempt to add a second variable to the highest performing one variable model from the pri... | 5 | 2 | 5,289 | 2019-06-01T18:05:36.153 | data_quality | datascience.stackexchange.com | |
1,101,262 | Nginx signal process started | I cant reach the server from nginx. It keeps telling me this weird signal process started error. I feel like I have tried everything to fix this. Been giving permission to ubuntu where the file is stored. But it comes down to nginx not being able to reach the server on pm2 as pm2 status is fine and I have no clue why. ... | Check [CODE] for more information on why nginx may be restarting. | 3 | 0 | 1,873 | 2022-05-18T19:14:55.060 | infrastructure | serverfault.com | |
108,726 | Evaluate two Recommender models trained with different data | Suppose you are given two Recommender Systems to evaluate, [CODE] and [CODE] . Model [CODE] is trained with large data, and model [CODE] with small data (this implies that [CODE] would have a larger pool of items to pick for recommendations). How would you compare the two models? One strategy would be to calculate prec... | Something seems unclear or maybe I didn't get it. Please comment if my answer is not precise enough. A recommender engine is not limited to its training data when it comes to query. The unfairness shows up if the pool of available items to be recommended is different for those 2 engines. Example : I train language mode... | 2 | 1 | 80 | 2022-03-03T17:31:06.023 | data_quality | datascience.stackexchange.com | |
87,590 | Insert rows in a table, via a row-level trigger, activated after insertion in that same table | I have to design a schema and trigger system in SQL that will save words and their synonyms . I thought of this basic schema: [CODE] Another requirement is to make the synonyms relation symmetric (if a is a synonym of b, then b is a synonym of a and the table synonyms should be updated accordingly). I thought of using ... | To perform what you are looking for based on this example: [CODE] SUGGESTION #1 [CODE] Using [CODE] takes up just 2K (table definition plus trigger) Bottom Line : For a table's before and after trigger, you cannot perform additional DML to the same table. However, you can do DML from a trigger to another table. This is... | 1 | 1 | 2,218 | 2015-01-05T17:50:51.323 | warehouse_errors | dba.stackexchange.com | |
903,295 | Nginx Proxy/Upstream redirects use wrong port and protocol | I am using an NGINX server as an ssl proxy for some other NGINX servers. Unforntunately if a request is redirected by an upstream server, the location field contains the wrong destination port. [CODE] : [CODE] NGINX Proxy: [CODE] NGINX Upstream Server: [CODE] Both NGINX instances running as seperate master processes on... | [CODE] will not work the way you expect because you are using an [CODE] block and [CODE] cannot get the required string from the [CODE] statement. You can specify it explicitly with: [CODE] See this document for more. Alternatively, tell your upstream server to stop specifying a port in its redirection responses with: ... | 5 | 3 | 7,842 | 2018-03-18T20:19:58.117 | infrastructure | serverfault.com | |
275,691 | Is public final completely (not) ok in constant enum fields? | When I make enums that hold some fields, like my [CODE] enum, I like to make them public final to avoid lots of [CODE] and [CODE] keystrokes: [CODE] This enum is then applied to look up (or set the default) settings in some hashmap (encapsulated in more sophistiated class). This design allows to control the setting nam... | My personal opinion is that [CODE] is generally fine everywhere , not just on enums. In my book, there are only two reasons for not using [CODE] , and these are: Allowing for future changes which might require altering the nature of the fields while maintaining binary compatibility with external code. (A getter would a... | 9 | 6 | 6,428 | 2015-03-09T10:13:17.103 | api_errors | softwareengineering.stackexchange.com | |
241,051 | The Target Principal Name Is Incorrect. Cannot Generate SSPI Context (SQL or AD Issue)? | We had a power outage last night and when the server came back up our domain users could not access our SQL Server 2000 instance name: MASSQL. We can access using SQL Authentication. We tried making sure the user that runs the service has SSPI read and Write We tried creating a new user We tried running the service usi... | Use [CODE] to look for duplicate SPNs for the SQL Server in question. Remove any duplicate SPNs that don't line up the SQL Server Service account in question. Service Principal Names for SQL Server take the form of: MSSQLSvc/server.domain:port MSSQLSvc/server:port Assuming your SQL Server is using the default TCP port,... | 3 | 4 | 25,845 | 2019-06-20T17:13:39.863 | api_errors | dba.stackexchange.com | |
311,857 | Desired State Schema Best Practices for continous schema + data upgrades at different on prem locations | I am looking however to blogs/articles on people who did the same so that i can reference my work against other people who also went in this direction before / or even a github repo: I have a project with an application that is 20 years old and mainly for 90% deployed at customer sites. Each customer has different vers... | It sounds like you're re-inventing a state-based deployment tool. I would choose a tool (Microsoft SSDT, RedGate SQL Change Automation) and then get that to work for your project instead. Both offer ways to do a hybrid approach as you've described (integrating some "migrations" into the otherwise largely state-based ap... | -1 | 2 | 178 | 2022-05-08T05:17:00.590 | database_errors | dba.stackexchange.com | |
5,932 | getting error:-Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/io/Writable | I am trying to connect to hive from java but getting error. I searched in google but not got any helpfull solution. I have added all jars also. The code is:- [CODE] I am getting these errors:- run: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/hadoop/hive/lib/slf4j-log4j12-... | I got the answer. One jar file was missing now it is solved. This file was missing. hadoop-common-2.1.0-beta.jar | -2 | 1 | 4,022 | 2015-05-28T07:38:38.790 | hadoop_errors | datascience.stackexchange.com | |
1,064,597 | How to clone PMBR disk with bad sectors? | I'm trying to clone 1TB disk with PMBR partition and bad sectors. Which has working Windows partitions on it, and is bootable via MBR. [CODE] doesn't recognize partitions [CODE] [CODE] [CODE] I tried in [CODE] with ( [CODE] ) ( [CODE] ) ( [CODE] ) ( [CODE] ) but result didn't want to write [CODE] clonezilla doesn't rec... | Always begin with taking a sector-level backup of the disk. Do it with e.g. [CODE] or even something like [CODE] , or whatever you see as appropriate. The low-level tools are preferred, because they give you much more control on what's going. I suspect some of leading sectors of the disk is bad. That's why restoring of... | 0 | 0 | 816 | 2021-05-25T06:32:27.637 | infrastructure | serverfault.com | |
316,426 | postgresql error during pg_dump invalid value for parameter "default_tablespace": "tbs_db1_index" | Can someone help me please? :) Ive 2 servers, want to split databases in exclusive instances, so im migrating my databases 1 by 1 to second server Postgres version 11.16 both servers so here's my command on s1 [CODE] then i restore on my s2: [CODE] then i get this error [CODE] [CODE] Thing is, db1 location on s1 is not... | Tablespaces are not part of any database, so they are not included in [CODE] output. If you want to dump and restore the tablespaces as well, use [CODE] in addition of the [CODE] you are performing (and restore the tablespaces first). If you want to ignore the tablespaces in the dump, use [CODE] . | 0 | 0 | 865 | 2022-09-03T18:51:35.703 | database_errors | dba.stackexchange.com | |
988,944 | Virtualisation primary GPU | The Server is running on Proxmox VE. My goal is to use any GPU in a VM. So I blacklisted [CODE] to ensure all GPUs are correctly accessible to assign the VFIO driver. I've added all the ids from [CODE] to [CODE] . In [CODE] [CODE] In [CODE] [CODE] I've regenerated my initram and grub. The OS is installed as EFI boot. N... | ive noticed an grub statement while checking the hint of @NikitaKipriyanov load_video So i removed that and all echo statements and was abled to use all gpus for vms | 1 | 0 | 183 | 2019-10-22T09:21:02.777 | infrastructure | serverfault.com | |
855,241 | Can Veeam "Copy Job" handle alternating destinations? | We use Veeam 9.5 for backing up an ESX farm. For the Copy Job we plan to switch over from USB devices to NAS with network share, like: [CODE] The NAS will be changed periodically. At a time only one NAS will be connected to the network. We could configure three Copy Jobs but will get failed errors for the two missing N... | I can't test this constellation right now, but what should work: Configure a DNS entry that points to all three NAS: [CODE] (Alternatively: give all three NAS the same IP/DNS configuration and make sure you only have one connected at a time.) Configure [CODE] as a backup Repository. Under [CODE] -> [CODE] tick [CODE] .... | 4 | 4 | 452 | 2017-06-12T11:59:42.783 | infrastructure | serverfault.com | |
299,737 | Why is this SQL query with UNION significantly faster than the same query without? | I'm trying to optimize a query, which never completes on Postgres 12.7. It takes hours, even days, make the CPU goes 100%, and never returns: [CODE] I randomly tried to rewrite it using UNION instead, and I believe it's equivalent. Basically there's two parts in the query, one for type = 1 or 3, and one for type = 2. [... | The tolerable one with the OR got lucky, because it found 100 matching rows with types of 1 or 3, before it found any of type 2 which had to be checked against the other table. The intolerable one apparently did have to do the check against the other table, and it does it in a very slow way, by looping over all the row... | 3 | 4 | 3,840 | 2021-09-16T23:49:33.033 | database_errors | dba.stackexchange.com | |
178,032 | 403 with Apache and Symfony on Ubuntu 10.04 | I'm trying to run symfony on my apache installation (I'm using xampp for the whole package) and it keeps giving me a 403 error every time I try to access my website. I've got vhosts set up with the following: [CODE] I've also added "127.0.0.1 servername.localhost" in my hosts file. When I try to access "servername.loca... | 403 is usually Directory Browsing Forbidden (checking Apache's error log should confirm this). Is there a default document (index.php) in your [CODE] directory? You've aliased Symfony into [CODE] , so you'd have to hit [CODE] to access it, not the top level [CODE] . | 4 | 0 | 4,379 | 2010-09-04T09:03:20.000 | api_errors | serverfault.com | |
727,625 | Medium traffic causes wordpress server to require a hard reboot | We are having trouble with our rackspace wordpress server falling down with medium traffic after an email send. The server specs are: [CODE] Running: [CODE] The installation is all fairly standard as far as I can tell and the database is pretty standard, indexed and fairly small. We are also wordpress object caching. A... | Close monitoring during any sort of event is crucial. As we see, the truth came out: Using the rackspace monitoring agent on the most recent test it appears that the CPU is maxing at 100% just before death, the memory used is peaking at about 1.6GB with free dropping to about 100MB. It looks like about 2GB of Swap Memo... | 0 | 1 | 383 | 2015-10-08T14:39:13.897 | pipeline_ops | serverfault.com | |
930,034 | How can I automate letsencrypt certificates with apache and standalone authentication? | I have many letsencrypt certificates with apache authentification. They are very well updated automatically. I have one certificate (xmpp), that has standalone authentification. This one always fails because I have to stop apache in order to use it. Now, to solve my problem I could add a cronjob that stops apache, runs... | Configure a vhost in apache for [CODE] that is used by certbot for authentication. You don't have to place any actual content there. I use this to renew the certificate for dovecot. I then use the renew-hook of certbot to restart or reload the correct service, depending on the domain that has been renewed. You can see ... | 0 | 1 | 170 | 2018-09-08T12:28:16.590 | api_errors | serverfault.com | |
975,196 | Using blkid to check if an attached EBS volume is formatted | I have an issue with part of a script that is attempting to check if an attached volume is formatted before formatting. The grep used in this check returns zero when the volume isnt formatted when using nvme volumes. This because the output of file -s seems to be a long string of characters: [CODE] Due to this the grep... | You can check the details of a specific device and act based on that: [CODE] What this does is: [CODE] checks whether [CODE] is [CODE] formatted, and if not it returns non-zero return code. The double-pipe [CODE] runs the second command ( [CODE] ) only if the first one returned non-zero. If the first one returned [CODE... | 1 | 6 | 1,967 | 2019-07-14T08:24:39.057 | infrastructure | serverfault.com | |
971,385 | is it possible to change the location of "C:\Users" to somewhere else? | I'm new to Windows Server, I'm running Windows Server 2019 and I am wondering if it is possible to change the location of "C:\Users" to a location that is on another disk If not, what other options can I use, do I need to assign C:\Users\%username% individually or are there alternatives? I plan on using this installati... | A common practice is to use a different file server which stores the user profiles. You can configure this via Group Policies with the option Folder Redirections. Microsoft has a guide about this: https://docs.microsoft.com/en-us/windows-server/storage/folder-redirection/deploy-folder-redirection Another option might b... | 0 | 0 | 244 | 2019-06-14T06:11:32.707 | infrastructure | serverfault.com | |
121,046 | Active Directory group as a schema in SQL Server | In SQL Server 2008 R2 we have a database that is being maintained by a team of developers. Each of them should have permissions to perform DDL operations such as adding a column or creating a table. However, we do want to log all the DDL actions done by a developer. Using one user for everyone is not an option due to p... | No, an Active Directory group cannot be the schema, though I suppose you could name a schema with the same text as your AD group, but that does not get you more auditability. If individual logins are all members of the AD group, they still appear in the database by default as their login name, not the AD group name. (Y... | 1 | 2 | 1,013 | 2015-11-13T20:56:35.643 | database_errors | dba.stackexchange.com | |
509,840 | Creating a fallback error page for nginx when root directory does not exist | I have set up an any-domain config on my nginx server - to reduce the amount of work needed when I open a new site/domain. This config allows me to simply create a folder in [CODE] with the name of the domain/subdomain and then it just works.™ [CODE] However there is one issue that I'd like to resolve, and that is when... | Below piece of code should solve your issue [CODE] | 7 | 0 | 5,528 | 2013-05-22T11:17:52.380 | api_errors | serverfault.com | |
779,012 | Windows server Allow and deny | What is the deal with this. According to my count there are for possible permissions allow (checked) deny (checked) not allow (empty) deny (checked) allow (checked) deny( empty) allow (empty) deny (empty) So what is the default permission with both are empty? What is the permission when both are checked? | Have you tried it? :) I'm asking because if you click Deny in the GUI it erases the corresponding Allow permission, and vice versa. So what is the default permission with both are empty? Allow. What is the permission when both are checked? This isn't possible. (At this point you're probably wondering why deny even exis... | -2 | 2 | 82 | 2016-05-25T16:37:43.903 | infrastructure | serverfault.com | |
877,123 | cannot remove file, Device or resource busy | I tried removing a file. The most relevant answer can be found here , but I found no luck. Here is the original problem: [CODE] To locate the process I tried the following: [CODE] So I tried found in a comment in the above answer but found nothing, [CODE] Even [CODE] couldn't find the process [CODE] Any help on how to ... | Its still mounted. I bet you see it if you run [CODE] . If so run the following [CODE] | 10 | 9 | 35,283 | 2017-10-05T19:23:58.440 | infrastructure | serverfault.com | |
641,229 | NFS fails to mount through openvpn tunnel | I am trying to establish an nfs connection through an openvpn tunnel. It really anoying and i dont know what to try next. The connectein test has been made on several platforms now. used debian/centos/openwrt. Changed server<>client A "direct" nfs connection alway works instant by doing: (DEMO IP HERE) [CODE] but an: [... | Ok i got it. @Zoredache pointed me into the right direction. Thank you my friend :) !! Its indeed the case that mount.nfs is trying to point to localhost instead of the vpn ip. You can solve this by using the following mountopts. [CODE] Debug Output of mount.nfs [CODE] If You want to solve this inside initramfs, you ne... | 1 | 1 | 5,920 | 2014-10-31T20:21:12.727 | infrastructure | serverfault.com | |
540,040 | Hidden registry settings | Scenario: I'm performing a configuration audit on a server that's joined to the domain. For the mandatory security configuration settings, there are group policies defined and being pushed out to domain members, but not all of the settings. The remaining settings are supposed to be defined locally on the server through... | According to this TechNet article it appear that the key for the policy in question is [CODE] I can't think of any GPO settings that don't push down registry keys, so you can simply do something like: [CODE] There is no "hidden" branch or anything like that. I'm not sure what you're talking about there. If a key doesn'... | 3 | 5 | 5,433 | 2013-09-18T19:45:24.290 | hadoop_errors | serverfault.com | |
135,032 | 'Id' with the format: YYYYNNNNNN with the NNNNNN part restarting each year | I have a a business requirement that each record in the Invoice table has an id which looks like YYYYNNNNNN. The NNNNNN part needs to restart at the beginning of each year. So the first row entered in 2016 would look like 2016000001 and the second like 2016000002 etc. Lets say the last record for 2016 was 2016123456, T... | There are are 2 elements to your field Year An auto incrementing number They do not need to be stored as one field Example: A year column which has a default of [CODE] A number column based on a sequence. Then create a computed column concatenating them (with appropriate formatting). The sequence can be reset on change... | 11 | 17 | 5,297 | 2016-04-12T06:10:34.870 | warehouse_errors | dba.stackexchange.com | |
1,095,620 | Wildcard redirect https://www.*.abc.com to *.abc.com nginx | I would like to redirect all traffic from www.*.abc.com to * .abc.com without www prefix . i have 1000+ subdomains on the same application which use only one nginx virtual host file in sites enabled directory . | You will need to use a regular expression [CODE] to capture the part of the domain after the [CODE] . For example: [CODE] See this document for details. | 0 | 1 | 343 | 2022-03-08T07:53:31.527 | infrastructure | serverfault.com | |
58,560 | Designing database with Category and Tags for Posts - Seeking for guidance/advice | I'm not really a database novice but I'm not an expert either. Problem: I'm having this difficulty on designing my Post, Category and Tags relationship. I've read Normalization many times but could not fully digest them and use it as a guide to what I'm trying to achieve. I've also encountered EAV, read about it and li... | One way to understand what's going on with normalization is to find out what normalization buys you. In other words, what's going to happen if you depart from any given normal form? For normalization forms second through fifth normal forms, the answer is "update anomalies". That is, when you insert, update, or delete r... | 4 | 1 | 3,593 | 2014-02-10T05:49:07.947 | warehouse_errors | dba.stackexchange.com | |
244,190 | C#, WebClient and Windows Server 2008 | I have a big problem with WebClient class on Windows Server 2008. I have small code that downloads data from web using WebClient.DownloadFile/DownloadData method. Everything works ok on Windows 2003 and Windows 7, but not on Windows Server 2008. On 2008 I get a very low speed (about 5kb/s where normaly I have about 1mb... | I have a blog post on my blog that goes into performing multiple http requests using HttpWebRequest and asynchronous class (for performance). HttpWebRequest - Asynchronous Programming Model/Task.Factory.FromAsyc Noe you may not be keen to use async programming but nonetheless there are some settings you need to change ... | 0 | 0 | 1,116 | 2011-03-07T05:24:28.493 | infrastructure | serverfault.com | |
243,430 | What is the fastest way to (session) lock table? | I have some triggers to log changes on a table to [CODE] On insert and delete I add row to the [CODE] and for update I add two rows. The log table contain identity column, and I want the 2 update rows to be sequential ( by the the id = identity) for example: assuming the following table: [CODE] the log table is: [CODE]... | To further expand on my comment, here is some sample code for you to look at. I don't like the idea of introducing intentional locking on what appears to be a core table in your system. It will effectively slow everyone down to a single-threaded access. The ideal solution would remove the need to have the update from a... | 1 | 3 | 99 | 2019-07-22T08:41:44.307 | warehouse_errors | dba.stackexchange.com | |
303,432 | SQL 2005: Service don't start after master db restore | I need to restore master Db on my SQL 2005. But I get an error. From prompt I stop the sql instance, then restart it in single user mode with /m command. Then launching sqlcmd -s nameistance I've this error Msg 18461, Level 14, State 1, Server ServerName, Line 1. Login Failed for user 'ServerName/Administrator'. Reason... | So you did manage to restore the master database, but SQL Server wouldn't start after the restore. First step is to consider the boot process: SQL server opens the files for the master database, the path are in the registry. It does recovery of the model database, the path for model mdf file is in the master database. ... | 0 | 3 | 228 | 2021-12-03T00:00:41.307 | database_errors | dba.stackexchange.com | |
164,046 | SQL Server complete log file view | I made a backup maintenance plan in SQL server 2008. When I run the maintenance plan it fails with an error. When I go to the SQL protocol viewer I can look at the log which has been generated. But sometimes the log is shortened in form of unfinished sentences with "..." at the end. I can see the error message but as m... | Yes, you can. Go to the properties of the Job (for that Maintenance Plan) Steps --> Edit Click Advanced Give the path of the outputfile (can be anything) under "Output File" Click Ok to Save the job From the next run of the job, you will be able to get the complete job log. | 1 | 2 | 412 | 2010-07-26T08:57:06.307 | database_errors | serverfault.com | |
692,449 | SSH by key incredibly slow | SSH connecting with key, from my machine suddenly got incredibly slow (~10sec!). It is not a server or DNS problem as far as I can figure out. The problem suddenly appeared after a simple [CODE] and some minor KDE related mucking around, on my Ubuntu 15.04 x86_64 . Running [CODE] shows me that it waits for ages (most o... | For me the actual solution was adding [CODE] on my localhost to either [CODE] for the appropriate host or [CODE] for [CODE] . The cause of the problem was most likely the recent upgrade to Ubuntu 15.05 and ssh was now trying (but failing, with a huge delay...) to use IPv6. | 3 | 0 | 4,949 | 2015-05-16T09:11:35.860 | infrastructure | serverfault.com | |
461,934 | How do I get a SMTP session log in Exim? | Sometimes when debugging SMTP issues the standard maillog is not enough and I need to see the full SMTP session. In postfix I add the problematic IP to "debug_peer_list" which will enable the session log and other debug information for only that IP. Is there a similar thing in exim? I have only found references to "run... | You can easily look at the commands received from the remote system with a few ACL additions: [CODE] But if you want to see in the logs what your side is saying too, that's not possible inside exim. Your options are then constrained to any system provided network debugging tools, such as tcpdump, tshark, or (my favorit... | 5 | 7 | 8,588 | 2012-12-31T12:10:14.697 | database_errors | serverfault.com | |
299,610 | MySQL memory usage overflow cause VM to reboot | I have 5 mysql servers in master-master group replication setup. (MySQL version 8.0.26) 2 nodes are having 1vCore and 2GB RAM and 20GB HDD configurations, and rest 3 nodes are having about 32GB RAM and 6vCores. There are 5 InnoDB databases having 45 tables and mysqldump sql file is around 150MB, for all db combined. I ... | If you have only 2GB of RAM, [CODE] The 3 servers with 32GB can have higher settings. Using lots of threads may actually be slowing down things in your app. It is certainly helping lead to memory overflow. You say "5 mysql nodes master-master" -- Does that mean 5 pairs of servers (10 servers total)? Or 5 servers in cir... | 1 | 2 | 390 | 2021-09-15T08:37:02.330 | database_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.