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,115,213 | Change upstream response from 302 to 301 in nginx | I have a Django app as an upstream using Gunicorn in nginx, and that app sometimes sent me back a 302 with a Location. And that it's perfectly fine. We can't touch Django's code but colleagues need the 302 to be 301. So I would like to modify that 302 to 301, but I haven't found a way to do it without using LUA. I have... | You can change the 3xx status code by using [CODE] and [CODE] as you suggest. You will need to use the value from [CODE] to reconstruct the [CODE] header in the replacement response. In its simplest form, you could use: [CODE] In this case, [CODE] is the original value for the [CODE] header in the response from the ups... | 1 | 1 | 662 | 2022-11-09T09:43:32.290 | infrastructure | serverfault.com | |
253,872 | Is there a pattern or best practice for passing a reference type to multiple classes vs a static class? | My .NET application creates HTML files, and as such, the structure looks like [CODE] BuildGraphPage and BuildTablePage both require access data, the myData object. In the above example, I've passed the myData object to 2 constructors. This is what I'm doing now, in my current project. The myData object, and it's proper... | It's fine to put immutable data in a static class, especially if the values truly are constants (say, the speed of light, or pi) or you think you'll never need to change it (e.g. for testing different configurations). If the data is mutable, making it accessible from anywhere in the code is the worst thing you can do; ... | 4 | 1 | 171 | 2014-08-20T09:59:40.957 | api_errors | softwareengineering.stackexchange.com | |
53,063 | What's a classifier capable of predicting a variable number of classes | I want to solve what I understand as a classification problem regarding tagging. Let's say an Entity can have 0 or more tags and I want to be able to predict which tags (if any) an entity might get I would like the classifier to output 0 or more tags. I have never run into this kind of structure with variable length in... | This is an interesting problem. What is your xtrain? I guess it boils down to a multi label problem . In a simple setup, you would train on the presence of a certain label (present or not). So for n tags/labels, you would train n+1 (1 is no label) models. I‘m not really in to multilabel problems, but I guess this is th... | 2 | 1 | 354 | 2019-06-01T19:27:18.750 | data_quality | datascience.stackexchange.com | |
111,495 | How to make XGBOOST capture trend in time series forecasting? | I am trying to forecast some sales data with monthly values, I have been trying some classical models as well ML models like XGBOOST. My data with a feature set looks like this with a length of 110 months and I am trying to forecast for next 12 months, When it comes to XGBOOST, I've been spending time mostly on hyperpa... | Before fit XGBOOST you should make timeseries stationary, here you can find more info about that. Or you can try linear models, like Linear or Logistic Regression, they are find trends much better. | 0 | 1 | 2,769 | 2022-06-02T12:41:05.637 | data_quality | datascience.stackexchange.com | |
1,103,729 | Putting a caching nameserver in front of ad | I would like to set up a caching nameserver to meet some requirements in the datacenter. Some of these requirements make me to put this caching nameserver between my servers and AD (e.g. collecting some statistics, managing whole dns things at one spot etc) When I run some tests like joining a windows server to AD doma... | As you mentioned in your comment, the client is trying to send a dynamic dns update request but it's going to the caching NS. One thought that would really only work with DHCP clients is to have the DHCP server update DNS . If you set static reservations instead of static IPs on servers/etc. those would also get update... | 0 | 1 | 143 | 2022-06-20T21:04:20.087 | infrastructure | serverfault.com | |
549,886 | Monitor total service uptime using Icinga | I am using Icinga (Nagios fork) for monitoring ~10 webservers, each one providing different services. I would now like to provide an aggregated view on the server states on our companies intranet, providing information like: [CODE] Is there a possibility to get those values from icinga? | I would use the IDOUtils database backend including all relevant historical data (statehistory, downtimes, notifications) and then use the icinga reporting package within jasper reports. If the provided sample reports do not fit your needs, you can create your own reports with ireport and export them to pdf (and other ... | 2 | 1 | 2,539 | 2013-10-31T13:39:11.507 | pipeline_ops | serverfault.com | |
48,988 | Access denied when disabling agent job, despite SqlAgentOperator membership | I am attempting to disable a SQL agent job from an account which a member of the SqlAgentOperator role (but not sysadmin) The doco says this should be possible 3 SQLAgentOperatorRole members can enable or disable local jobs they do not own by using the stored procedure sp_update_job and specifying values for the @enabl... | RLF was right - the user in question was also in the msdb 'TargetServersRole', and that role is explicitly denied permissions on that stored proc. Doh! Unfortunately fn_my_permissions doesn't show DENYs (it shows the result - no permissions), and the SSMS properties menu (and permissions tab) won't show for system stor... | 1 | 1 | 1,458 | 2013-08-30T05:28:03.887 | database_errors | dba.stackexchange.com | |
175,433 | SQL Server AlwaysOn Table and Archiving | We have a number of tables that will process a large amount of inserts each day. For this reason, the tables are archived on a weekly basis using a labour intensive process of backing up the database and restoring to another server and then inserting the data from this backup into another archive database. My plan is t... | Suppose you set up AlwaysOn but something goes wrong with your partition switching process and you accidentally delete all of the data. With your current proposal you'll automatically delete all of the data from your archive database as well. So even with AlwaysOn you'll still need to take backups, right? Now consider ... | 1 | 1 | 387 | 2017-06-05T12:57:08.900 | database_errors | dba.stackexchange.com | |
38,087 | What does a standard code review contain? | In my company, it's an email discussion of what feature is implemented and what kind of bug is fixed sent by the one who write the code. And the reviewer, who receives the mail, will review the code and discuss the quality and how to edit the code in his opinion. What does a standard code review contain? | In my experience, most formal code reviews devolve into style checking because it's easy. Even when you supply a checklist of things to look at, it's pretty easy for eyes to start glazing over. I've found that unit test review provides more benefit. Most developers I've worked with don't really know how to unit test pr... | 19 | 12 | 1,389 | 2011-01-19T12:47:36.503 | api_errors | softwareengineering.stackexchange.com | |
830,308 | nginx incorrectly matches regex | I have the following block in nginx.conf: [CODE] But nginx incorrectly matches and allows these urls: [CODE] Any idea why? Thanks. | Nginx (as of version 1.11.9) doesn't match the urls you provided when the first [CODE] in the [CODE] block is set to: [CODE] Please adjust your config to match example above (i.e. place this right after [CODE] block starts and add [CODE] directive). | 0 | 0 | 220 | 2017-02-03T01:18:09.557 | infrastructure | serverfault.com | |
318,469 | booting a system with failed devices in a RAID1 array | I have a Linux system set up with 3 software RAID1 devices, each of which comprises two identical partitions on two identical disks. Recently, one of the non-root partitions on one disk began experiencing DMA errors; I therefore marked it as failed. When I rebooted the machine, it launched the kernel successfully but b... | It sounds like you are using Linux Software RAID , and you've got the RAID devices set up using partitions instead of whole disks. In this case simply failing the partition won't help you: The failing drive (hardware component) is what's throwing the errors. Any time the operating system tries to access that hardware c... | 2 | 4 | 345 | 2011-10-04T19:46:07.100 | infrastructure | serverfault.com | |
326,138 | SQL Server CEIP is causing high waits, are there any downsides to disabling it? | One of our production servers had high waits related to SQL Server CEIP. I read a blog post from Brent Ozar, (found here: https://www.brentozar.com/archive/2019/02/what-queries-does-microsofts-telemetry-service-run-on-your-sql-server/ ) about what it is and how to disable it, so I understand that, but he did not explai... | You can disable the service and it wont cause any issues. you can use this powershell script (test it first in a non prod environment). | 0 | 1 | 434 | 2023-04-18T15:37:07.680 | hadoop_errors | dba.stackexchange.com | |
36,434 | Good tool for searching E-Mail in Outlook? | As a System Administrator, I tend to accumulate a lot of E-Mail. And, unfortunately, my current employer requires Windows on the desktop and Outlook for e-mail. My question is, are there any good tools for indexing/searching Outlook E-Mail? Ideally, I'd like a lightweight Outlook specific tool. Google Desktop is bigger... | Lookout is freeware and lightweight. | 4 | 3 | 806 | 2009-07-06T15:40:03.127 | infrastructure | serverfault.com | |
101,391 | What to do with a not well organized application? | I'm a newly graduate programmer and just got hired before my graduation. In the office, I used to create and revise modules of some applications developed by other programmers in our company. The problems I encountered with their applications are: Unnormalized database at it's best, they've broken all the rules of data... | If you're a newly examined programmer - don't suggest The Grand Rewrite. Improve it little by little, step by step. You're begging for trouble rewriting the whole application. I find that the biggest hurdle to choosing incremental improvement is in one's head - "how can we possibly clean up this mess?" But more often t... | 12 | 27 | 1,327 | 2011-08-16T08:13:30.213 | data_quality | softwareengineering.stackexchange.com | |
1,065,321 | Kibana does not trust Let's Encrypt CA in Kubernetes Helm Setup | I have a k8s cluster configured with calico as networking system. I'm running slightly customized versions of helm elastic/elasticsearch and elastic/kibana with security enabled. For security, I use Let's Encrypt certificates. When starting kibana, the connection to the elasticsearch instance fails with this error [COD... | Through discussing the possible root cause of the problem (missing CA) in the comments, I found the solution myself. The issue is caused by adding a wrong CA with [CODE] Deleting those entries resolves the problem. | 1 | 2 | 833 | 2021-06-01T14:11:14.990 | database_errors | serverfault.com | |
26,650 | Setting up ASP.NET Membership provider for an application | I recently downloaded DotWiki which I plan on using for a support section for my companies website. The application itself has two different security modes "simple" and "full". Full uses an ASP.NET Membership provider for security. However when I run the following command (of course replacing [sql server] and such with... | First of, please install the latest servicepack as splattne suggested, as the @@version you've mentioned is NOT sp2. See http://www.krell-software.com/mssql-builds.asp Second, you can also install the required tables, sprocs and views directly. You can find scripts to run in SQL server here: %WINDOWS%\Microsoft.NET\Fra... | 3 | 1 | 1,813 | 2009-06-16T15:37:09.623 | database_errors | serverfault.com | |
965,492 | Routing via gateway to another subnet | Unfortunately I have very little practice with routing in linux and also I was not able to properly phrase my issue for a search. So I will explain the issue here. In the picture below you see the topolgy of my network. The goal is that the client device with the ip 10.0.0.50 can access the target device with the ip 19... | If you use the linux, stop use the ifconfig and the route. Use the ip ( [CODE] and read the iproute tutorials). Setup the route on the internet gateway: [CODE] Disable the redirects: [CODE] . Check the routing with command [CODE] . The output should be seem like [CODE] Optionally add the [CODE] rule to make the replies... | 1 | 1 | 10,173 | 2019-05-01T23:33:16.690 | infrastructure | serverfault.com | |
939,021 | Exchange 2016 Delay Time after Message rate limit is reached | I'm trying to find and change the duration of blocks after Message rate limit is reached in the exchange 2016. In the above link I couldn't find anything about how long exchange keeps blocking a connection when Message rate limit is reached https://docs.microsoft.com/en-us/exchange/mail-flow/message-rate-limits?view=ex... | Per my knowledge, there is no such a built-in feature can change the duration of blocks after Message rate limit is reached. You can increase value of the corresponding rate limit or restart the Microsoft Exchange Throttling service to reset the mail flow throttling budgets. | 0 | 0 | 674 | 2018-11-07T17:02:56.277 | api_errors | serverfault.com | |
381,241 | How should I back up multiple in-use MS Access databases? | Disclaimer: I'm a software engineer, not an IT professional, sorry if some of my suggestions are silly or otherwise ridiculous. A windows application, which will remaining running at all times, is connected to, and constantly interacting with, several MS Access databases. The application may be reading or writing to an... | Any time you have a file open you run the risk of having a corrupted copy when you just copy it to another location. As you alluded, Access isn't really meant as a multiuser database and I don't know of utilities that will safely dump the contents to another file the way you can with most SQL databases. You might have ... | 1 | 5 | 3,591 | 2012-04-19T17:59:56.017 | database_errors | serverfault.com | |
703,228 | Restore "snapshot" of OS partition on physical Linux server to spare partition then boot - caveats? | We're planning to bring a new physical server online in the near future and as part of the disaster recovery / change management plan, I want to be able to easily roll back the operating system and other software without affecting any data such as logs / user or website data / databases / etc. I was thinking something ... | I would recommend you do the follow: Create 1 partition for the primary system* Create 1 partition for the applications and home files (if necessary) Create 1 partition for a clean install of the primary system* Create 1 partition to use for a last known good* Ideally, you should use separate physical drives for these.... | 0 | 0 | 749 | 2015-07-02T19:14:17.337 | database_errors | serverfault.com | |
932,188 | Azure port forwarding not working properly | I'm new to Azure Cloud, and all screenshots regarding my question are taken with the Old Azure Portal UI. My Issue: I forwarded multiple ports 7707 UDP/IP (Game Port) 7708 UDP/IP (Query Port) 7717 UDP/IP (GameSpy Query Port) 28852 TCP/IP and UDP (Allows your Server to Connect to the Master Server Browser) 8075 TCP/IP (... | Where to go from here to properly open ports mentioned above ? I need them to be open on the VM itself, inside it. So i can ping the ports, or at least know if they are open/closed from within a browser inside the VM. To open the ports to the virtual machine in the Azure portal, you can create NSG rules to filter inbou... | 0 | 0 | 4,615 | 2018-09-22T17:17:01.507 | infrastructure | serverfault.com | |
50,408 | App Pool crashes before loading mscorsvr. How to troubleshoot? | I have an app pool that recycles every 29 hours, per default. It recycles smoothly 9 times out of 10, and I'm pretty sure the recycle itself is good for the app. Once every couple weeks the recycle does not work. The old worker process dies cleanly and the new worker process starts, but will not serve up content. Recyc... | Hmmm. A little over a year later, I believe this turned out to be an ISAPI filter load problem. If my memory's correct, one procedure is to fire up ProcMon before the App Pool recycle and see what caused the ISAPI load to fail. | 0 | 0 | 229 | 2009-08-05T15:13:09.993 | api_errors | serverfault.com | |
362,175 | creating nodejs apps in php/mysql framework with later on full step by step migration to nodejs in mind | I'm looking for the most efficient path to convert over time my own made php framework for nodejs and I believe that nodejs experts and specific developers who had their years working with apache/php/mysql will be able to give objective answers based on knowledge and experience that won't be just opinions but solution ... | You may want to consider adding a proxy layer while you are migrating. This provides one URL for your application while specific parts are on separate servers. This is the general approach used by people who use microservices. There are several instances of the services behind one URL space. Something like Zuul or ngin... | 2 | 2 | 511 | 2017-12-11T16:10:31.647 | data_quality | softwareengineering.stackexchange.com | |
529,043 | Best way to implement secondary DNS server with BIND | I have one DNS server that installed on centOS and based on BIND DNS server. What i want to do is to make a secondary DNS server that will replicate with the master server and will hold all my zones records and also i need that this server will act as failover when the master server will fall down for some reason the s... | From the world's perspective, there's no difference between a master and slave server. Just list them all and the resolving nameserver will retry on another server if it doesn't get a response from the first. Regarding what happens if the master goes down - that's controlled by the 'EXPIRE' time in the SOA. With expiry... | 4 | 4 | 1,470 | 2013-08-06T14:30:56.940 | database_errors | serverfault.com | |
343,493 | Dependecy Injection and Composition Root | Just recently started to grasp on MVC and design patterns. (back to school at 34 ;) ) I was asked by my teacher to design a two part application. It's a recipe website that as an admin WinForms app. I started to develop my core domain and then moved on to persistence and then moved to the MVC web app... and then I star... | So from my personal experience I've found DI to be a very specific case for each type of app you're developing. We've gone with the approach to define stuff like a per web request life cycle for some dependencies, but once you move to building some background job processor then there's suddenly no HttpContext to tie so... | 2 | 2 | 853 | 2017-03-05T02:24:48.797 | pipeline_ops | softwareengineering.stackexchange.com | |
27,827 | How can I grab a Memory Dump of my W3WP.exe process? | I'm tracking the CPU usage of a recent build I did to our Windows 2008 SP2 server. Here's the task manager screenie... See how it spikes? I wish to find out what are causing em. Before I do anything, I'm guessing I'll need a Memory Dump. Currently the process is around the 450MB mark. Anyone have any ideas how I can gr... | Setup a Performance Alert and on the action page, have it run a program or batch script to generate the dump. SysInternals VMMap has command line options for scripting, and may give you the information you need. [CODE] The GUI is quite helpful too. | 1 | 1 | 8,811 | 2009-06-18T06:33:48.820 | infrastructure | serverfault.com | |
445,822 | MySQL died during the night on a 12.04.1 Ubuntu | I can't explain why, but somehow during the night, one of my MySQL running on an Ubuntu 12.04.1 box broke. The service is running but I can't login anymore (to SQL), the previous password is not working anymore. It does not looks like the server has been compromised (nothing in [CODE] ) It looks like some automatic sec... | Try the steps in http://blog.mclaughlinsoftware.com/2010/10/21/reset-mysql-root-password/ The main step is add the following lines in your mysql config (properly /etc/mysql/my.cnf). That basically disable mysql security and network access. [CODE] Restart mysql and you can do following without a password. [CODE] Remembe... | 2 | 1 | 2,094 | 2012-11-06T08:52:36.860 | database_errors | serverfault.com | |
1,083,346 | Mass acknowledging alert in NAGIOS | Good evening to all! I was wondering around to find solution of mass acknowledging the alerts all at once for 500+ service notification in Nagios. After a long hardship, I came across building below script own. Please help in analyzing pros and cons or if another best alternative available to it. [CODE] Early reply wil... | Please provide the Nagios version you are using and as well is it opensource or Nagios X1. Regards, Kamal | 0 | 0 | 471 | 2021-11-12T07:55:31.893 | api_errors | serverfault.com | |
306,861 | Is it possible to use Read Uncommitted isolation level on read-only Availability Group secondary? | We are using availability groups in SQL 2019 Enterprise edition. We are using the enterprise feature to allow the AG secondary nodes to be in Read-only mode, and then running reporting queries against the secondary by connecting to the listener with [CODE] parameter. For locking and performance reasons, we have some qu... | bzzt Read Uncommitted/NOLOCK doesn't mean your queries don't take locks, it means your queries ignore locks taken by other queries. The hints really should have been called NORESPECT instead. The current naming is quite misleading. They leave you open to returning dirty reads. Queries under this isolation level will st... | 6 | 13 | 1,110 | 2022-02-01T10:55:50.103 | warehouse_errors | dba.stackexchange.com | |
54,539 | How to create an index on an integer json property in postgres | I can't figure out for the life of me how to create an index on a property of my json column which is an integer. I tried it this way (and also dozens of others) [CODE] It works just fine in a query (e.g. [CODE] ) What am I missing? UPDATE I'm getting a simple syntax error, however, I really have no clue why. [CODE] Th... | Try this instead: [CODE] The Postgres syntax shortcut [CODE] for casts is not allowed without additional parentheses in an index definition ( see @bma's comment ). It works with the standard SQL function, though: [CODE] This is not related to the [CODE] type per se. Either way, you can still use the syntax shortcut [CO... | 9 | 16 | 9,127 | 2013-12-05T19:34:23.987 | warehouse_errors | dba.stackexchange.com | |
59,376 | HierarchyID--multiple root values in one table | Currently I am trying to work my way around the HierarchyID concept in order to convert a few tables for our programmers. I have the gist of it understood, but one of the cases I'm working on has me stumped. One particular table deals with different kinds of equipment failure codes using a parent/child relationship mod... | The dummy root is probably the right track, except you don't actually have to create a dummy root to make multiple roots. Your table also appears to be simultaneously an adjacency pair as well, so you've got a couple of immediate options on how you want to go using the table. Both should probably be tested for suitabil... | 0 | 2 | 3,909 | 2014-02-21T19:13:31.627 | database_errors | dba.stackexchange.com | |
373,505 | Does using VLANs in your network infrastructure cause an appreciable decrease in performance? | This is something I've never considered before and wanted the opinions of the experts. We use VLANs day in and day out for various network tasks. My modus operandi is that in general, if something supports VLANs, that port is getting trunked because it just makes a ton of sense if there's even the slightest chance you ... | Packet switching in the network gear will always process vLAN information if it is supported. So having vLANs or not, makes no difference in switching speed. If the packet has to be routed by a L3 router, then there may be a penalty incurred. Similarly if the packet has to be forwarded to a router, you'll have even mor... | 5 | 11 | 2,672 | 2012-03-26T15:58:22.580 | infrastructure | serverfault.com | |
661,194 | sudo: unable to execute ... bad address - what is it and how to fix it? | I have a set of scripts which finishes up client machine deployment after executing a fairly generic NetRestore image. The main script runs under root privileges, and then calls another, "user" script with [CODE] The problem is, sudo fails on this step and doesn't actually execute the script. I get this error: [CODE] W... | Never mind about the networking. It was not even close. The [CODE] message comes from the kernel and indicates that a the process attempted to open a terminal (pty/tty) which does not exist. I'm not sure why adding [CODE] fixed the issue (unreliably), but going back to no-sleep version of my scripts and adding: [CODE] ... | 0 | 1 | 6,015 | 2015-01-21T11:49:54.543 | pipeline_ops | serverfault.com | |
993,553 | How to setup SASL Proxy Authorization with an OpenLDAP server on Debian | For Kerberos Authentication together with SASL/GSSAPI Authorization on client devices I need Proxy Authorization on an OpenLDAP server running on Raspberry Pi with Debian/Raspbian Buster. I tried to follow the description in the OpenLDAP Software 2.4 Administrator's Guide about SASL Proxy Authorization but could not ge... | I wasn't able to find an example on the web about this and it took me some days to pick up the widespread details. Here is how I fit it together so others can find an example now. For a proper Proxy Authorization with SASL/GSSAPI, that needs a Kerberos authentication, we have to specify a Kerberos principal that is use... | 0 | 0 | 1,581 | 2019-11-28T01:36:15.353 | api_errors | serverfault.com | |
678,495 | "Access is denied" trying to bring VM-attached USB hard disk back online in Disk Manager | Windows Server 2012 R2 Hyper-V with CentOS 6.5 and CentOS 7 VMs. In Disk Manager, I right-click my USB hard drive and pick Offline. In Hyper-V Manager, I right-click either CentOS VM, and I connect the physical disk to either of the VMs as a SCSI drive. The drive is listed and connects without complaining. In Disk Mana... | [CODE] Are you doing this on the host? If so, you're doing it wrong. It needs to remain offline on the host. Setting it Online would be done from the guest, if the guest were a Windows VM. For Linux/Unix you probably need to do some kind of mount from within the guest. | 0 | 1 | 5,855 | 2015-03-26T15:36:52.353 | infrastructure | serverfault.com | |
312,538 | Weird MySQL Errors After Distrib Upgrade (SQL 5.0 > 5.1) | Just updated Debian from Lenny to Squeeze on one of my servers. It hosts a MySQL server. Upgrade went fine, but afterwords, when MySQL starts up, it checks the databases to make sure they are okay. I am getting errors though for tables that are in the mysql database. I did an extensive Google search and attempted to do... | Confirmed as bug, patch and details here | 1 | 3 | 556 | 2011-09-17T17:16:45.193 | database_errors | serverfault.com | |
436,891 | IPTables drops packets | We're experiencing some issues connecting to a remote FTP site (we randomly get timeouts on connect), and while we tend to think that the issue is with the remote FTP server (one clue is that we're only having issues with this specific server, all others work fine), we're trying to make sure that the issue does not com... | Yes dropped packets could be the reason the connection sometimes fails. And since the problem is only with that server I am pretty sure the problem is not on your side. You can do simple tests to see if you have any packet loss, such as pinging for a few hours and see if it reports packet loss, also ping another server... | 1 | 1 | 1,243 | 2012-10-10T15:38:03.333 | infrastructure | serverfault.com | |
495,915 | selinux Missing type enforcement (TE) allow rule | When I run my FTP test to test for full functionality, I'm concerned on why am I getting an avc denial error on such a popular command, such as 'mkdir'? Here is the AVC denial message: [CODE] According to Fedora's web site, Missing Type Enforcement rules are usually caused by bugs in SELinux policy. So, is this a truly... | It appears that you are trying to have your web server write to a user's home directory. There are no SELinux reference policies to permit this behavior. You should think carefully about whether you should be serving content from users' home directories at all. If you really need this access, you can use the [CODE] uti... | 4 | 2 | 9,952 | 2013-04-03T21:22:21.347 | infrastructure | serverfault.com | |
1,006,756 | I cant create a VM on azure using spot instance | I am getting this error even using a template that was available in the region. I am using Standard_D4_v3. The template deployment failed with error: 'The resource with id: '/subscriptions/32cc2407-71f3-4d35-9c3b-d3a2573f18ec/resourceGroups/clt/providers/Microsoft.Compute/virtualMachines/vm' failed validation with mess... | If you follow the link in the error it tells you what this means if you are using spot VMS: If you are deploying an Azure Spot VM or Spot scale set instance, there isn't any capacity for Azure Spot in this location. For more information, see Spot error messages. So, looks like there is no spot capacity for this VM, in ... | -1 | 0 | 413 | 2020-03-13T01:28:04.407 | data_quality | serverfault.com | |
652,036 | SCVMM 2012 R2 - unable to connect to VM console | I've added a Server 2012 R2 host to VMM 2012 R2, and created a VM on it. When I right-click on the VM and try to connect to the console, I get: "This computer can't connect to the remote computer. Try connecting again. If the problem continues, contact the owner of the remote computer or your network administrator. (0x... | I ended up logging a call with Microsoft regarding this issue. They told me this behaviour is by design. When the VM is powered off, you can't connect to the console through VMM. Once you power on the VM, you can connect just fine, you'll just miss the first bits of the BIOS boot info. The "error" message is misleading... | 3 | 0 | 7,002 | 2014-12-12T02:47:27.833 | infrastructure | serverfault.com | |
107,908 | Mysql shutting down during a mysqldump of a specific database | I have a server which is running Centos 6.6 with Cpanel. I have been attempting to do mysqldump backups on individual databases. All of the databases are under 5MB except for one. The database that is around 250MB causes a mysql shutdown in the middle of running a mysqldump. The other databases work fine during a mysql... | You will have to mysqldump around [CODE] I have old posts to bypass databases and tables [CODE] : How do you mysqldump specific table(s)? [CODE] : Any option for mysqldump to ignore databases for backup? Using the same concepts, here is how to mysqldump all except [CODE] [CODE] After dumping all the other databases, my... | 2 | 3 | 2,753 | 2015-07-23T15:25:24.183 | database_errors | dba.stackexchange.com | |
404,583 | Splitting 1-1 relationships across lots of different tables? | I've come across a table that has about 200 columns. About 150 of these can be grouped into 5-10 tables that make real world "sense", and seeing as most of these entries are never used I figured it would save a lot of null pointers and reduce the size of the database drastically if I did this. e.g. lets say the current... | There's an app for that! https://stackoverflow.com/questions/6587007/what-is-meant-by-sparse-data-datastore-database The short version is, the cost of having a lot of null values varies by database product. Schemaless databases tend to be better at building or allowing custom indices that can speed up specific column c... | 0 | 2 | 112 | 2020-02-02T18:29:28.023 | api_errors | softwareengineering.stackexchange.com | |
360,470 | "The mailbox recipient does not have a mailbox database" but user does not have Exchange mailbox | TL;DR: I removed everyone's mailbox through EMC which deleted their AD accounts. After restoring AD accounts, people who do not have Exchange mailboxes cannot receive mail from those that are on Exchange. Email sits in Undeliverable Queue with the error "The mailbox recipient does not have a mailbox database" even thou... | The problem was leftover Exchange Attributes on the AD accounts. The only way I could fix this was by adding them back to Exchange 2010 and then disabling the mailbox after it was added. Powershell did not work to disable the attributes. | 2 | 1 | 5,322 | 2012-02-15T18:15:37.723 | database_errors | serverfault.com | |
750,466 | Copy EFI partition and BCD store to a second drive | I'm attempting to set up dynamic boot partition mirroring on GUID partition table (GPT) disks as part of making a bootable mirror of a Windows system drive. I am following Microsoft's KB951985 but I get stuck on the step which uses [CODE] to copy from the source drive to the target drive " Copy the EFI partition and th... | This link is a good starting point. To get around this error, I did the following: Boot from the Windows Installation CD. Obviously do not reinstall Windows, but run the setup until the screen that shows the disk partitions, run a command prompt to copy the EFI partitions, then exit everything and do not reinstall Wind... | 2 | 0 | 4,583 | 2016-01-20T12:35:53.700 | infrastructure | serverfault.com | |
171,418 | Why make the login page to a single page application a separate page? | I am wondering why it seems to be popular to have the login page of an SPA be a separate page that is not part of the SPA (as in loaded and send data through ajax requests)? The only thing I can think of is security, but I can't think a specific security reason. I mean the only thing that comes to mind is that if your ... | Presumably it's to save loading a bunch of client-side assets (like heavy JavaScript frameworks, images, etc ) that are only required by the application. There are more sophisticated means of achieving a similar performance goal (see " Malte Ubl & John Hjelmstad: A novel, efficient approach to JavaScript loading -- JSC... | 36 | 19 | 24,262 | 2012-10-25T19:34:08.913 | api_errors | softwareengineering.stackexchange.com | |
771,707 | Chaining custom systemd services | I have timer [CODE] that every few hours runs a script that runs service [CODE] (script with [CODE] in it). Then I would like to run service [CODE] after [CODE] is finished. Here is my service [CODE] : [CODE] [CODE] is also Type=oneshot. Problem: after I invoke [CODE] the [CODE] is not automatically launched. I doesn't... | Your got it backwards. [CODE] does not specify that service [CODE] needs to be started, see systemd.unit for more information. You want something like that as your configuration for service [CODE] : [CODE] | 7 | 3 | 2,062 | 2016-04-20T13:17:04.433 | infrastructure | serverfault.com | |
289,056 | SELECT JOIN same table prevent duplicates MySQL 8.x | I have a table called 'price' with the following rows [CODE] i need to make a SELECT QUERY WHERE idRequest and exchangePair match with the same table values but different idExchangePlatform For example for this set of values: [CODE] i need to get the following output: [CODE] i'm using this query but it duplicates the r... | You can use GROUP BY [CODE] The Result: | 0 | 0 | 179 | 2021-04-01T00:53:12.817 | database_errors | dba.stackexchange.com | |
257,974 | Database design for application with multiple useres | We have a task to design a software using entity frame core and a Central SQL DB. The software will have multiple users with RBAC(Role Based Access Control). DB design shall implement user group table and users with many to many relationship. I've read about RBAC and RLS (Row Level Security) in SQL but I can't link it ... | Just to give you some ideas here are some of the ways I have seen this implemented: all interactions with the database use stored procedures and views to limit access groups are implemented in Active Directory. Members are added to groups. When a user logs on and is authenticated to the domain by AD the application cal... | 1 | 0 | 69 | 2020-01-22T16:14:14.380 | database_errors | dba.stackexchange.com | |
282,703 | Stop MySQL generating repeated mysql-relay-bin-****.00000* files | MySQL is generating repeated 1KB files with names like: [CODE] I'm using XAMPP on Windows and the files are being generated in [CODE] where the database directories live. From what I've read [CODE] files are logs related to master slave or multi-master instances but I haven't knowingly set this up and I can't find any ... | I found the answer back on StackOverflow from which my question had been moved. If it had been left there someone might have pointed me to the answer hours ago. | 0 | 0 | 634 | 2021-01-06T21:28:21.633 | database_errors | dba.stackexchange.com | |
940,327 | How to deny all ports to localhost, from localhost, except one, using iptables? | I have an issue with iptables where I'm unable to connect to localhost from localhost. Basically, I want all incoming packets, except those with a destination for SSH and port 9000 to be dropped. Packets with a destination for localhost:9000 must have a source port equal to port 8000. Simple enough? Why doesn't this wo... | The answer can be found here: https://superuser.com/questions/808496/difference-between-iptables-default-policy-to-drop-and-inserting-a-seperate-po [CODE] | 0 | 0 | 469 | 2018-11-16T11:51:41.027 | infrastructure | serverfault.com | |
40,147 | Nameserver issue when hosting on a.n.other virtual server | Complex question - my sites seem to work, but I've been trying to force a redirect from the non www url to the www.url ( as seems preferred for search engines) . In doing so I'm stmbling on some basics. The site is hosted on a friends virtual server to which I have admin access. The PLESK control panel states "This ser... | The actual nameservers will be those that you configured with the registrar. Depending on how much you trust your friend's DNS servers, you could either update your registrar's info with those servers, leave them as is, or maybe use one of easyspace's and one of your friends. Just know that unless you do that none of t... | 0 | 2 | 365 | 2009-07-13T20:57:37.950 | infrastructure | serverfault.com | |
425,835 | What is the match --mark field in Iptables | In the below example [CODE] What is the significance of [CODE] field? When I am trying to add this rule I am getting following error. [CODE] Thanks. | I have upgraded my kernel from version 2.6.24 to version 2.6.32, but my iptables was not upgraded they stays at 1.3.6. If I wanted to use MARK the error message "iptables: Protocol wrong type for socket" appeared. After upgrading iptables to version 1.4.8 everything works. | 1 | 3 | 19,511 | 2012-07-18T15:57:23.463 | infrastructure | serverfault.com | |
528,502 | a2ensite error "Site not exist" when creating virtualhost apache2 on ubuntu | I have created files for my site in the /home/junda/www/ directory. I use symfony2, means the public files goes to /home/junda/www/symfony2-tries/web/ directory. I then type this following command to the terminal to change permission: [CODE] I also create /etc/apache2/sites-available/symfony2-tries.com file with follow... | I have found the solution! All files in [CODE] must have the [CODE] extension now. Example: [CODE] rename it in [CODE] Type [CODE] and restart apache. | 5 | 18 | 20,256 | 2013-08-04T02:09:01.377 | infrastructure | serverfault.com | |
283,742 | Is this a solid (and cheap) High Availability idea for my website and database if the zombi's attack? | I have an Idea for fail-over high availability for my website but i am not sure if this is good, bad or a disaster in itself. My main server hosts an ASP.net website that uses a SQL server database on another server. Both servers are running mirrored raid drives, two network cards, 2 switches etc. The provider is guara... | The options you describe are not bad ones -- in fact they're good ones, and the fact that you're considering this speaks well of you. You can certainly implement what you described above, or use a cloud provider as a (much less expensive) backup site like ksm suggests below, but I'd address some more fundamental items ... | 4 | 2 | 317 | 2011-06-24T09:53:00.923 | data_quality | serverfault.com | |
333,151 | How can I copy a database schema from my local Sql Server to Azure SQL Database | I figured the way to do this was to go to my existing database (Sql Server 16.0.1105.1 developer edition) in SSMS and run Tasks | Generate Scripts... This includes a FullTextTable. So I then got the following script (just showing the start): [CODE] And it seems to have created the database ok. But I got close to 200 er... | As mustaccio mentioned in the comments, it would be easier to just use the tools that Microsoft provides. The Azure Migrate tool , which can be added from the marketplace, has been getting better and better and makes copying your data to the cloud quite easy, this is quite a big tool and is perhaps a bit much for your ... | 0 | 1 | 124 | 2023-11-16T01:13:00.997 | database_errors | dba.stackexchange.com | |
889,430 | sftp connection closed after correct password | I'm running an sftp server on port 10022 using openssh-server on debian, hosted on EC2/AWS. I have configured password-based authentication for a single user, but the server connection is closed immediately after I submit the correct password. Here is the output from the sftp client: [CODE] I have the server running in... | I would set [CODE] in [CODE] then restart sshd and check [CODE] to get more details. | 6 | 4 | 22,431 | 2017-12-23T09:18:37.523 | api_errors | serverfault.com | |
103,198 | "No database selected" or "Table 'DB.table' doesn't exist" failures in pt-upgrade run where queries from multiple DBs were collected with tcpdump | I collected queries on our Master using the following tcpdump command: [CODE] The queries are executed amongst several databases. I then ran this file through pt-query-digest using the following command: [CODE] Then I ran pt-upgrade against two Slaves like this: [CODE] But I got a bunch of failures since it does not ap... | Does it still fail to work if you omit --sample? (from manual) Also note that pt-query-digest may fail to report the database for queries when parsing tcpdump output. The database is discovered only in the initial connect events for a new client or when is executed. If the tcpdump output contains neither of these, then... | 2 | 2 | 840 | 2015-06-03T21:18:29.697 | warehouse_errors | dba.stackexchange.com | |
139,379 | Monitoring streaming replication | We're setting up streaming replication with one master and one (read-only) slave. We're now looking for a way to monitor the replication; mostly to verify that the slave server is still up-to-date. Is it possible to do this — preferably from the slave? If so, how? The documentation on streaming replication mentions the... | We're now looking for a way to monitor the replication; mostly to verify that the slave server is still up-to-date. For monitoring replica lag, there are several ways that give slightly different answers, depending on which version of Postgres you are using. A simple query that can be done directly on the standby is: [... | 3 | 6 | 1,686 | 2016-05-24T15:03:39.800 | pipeline_ops | dba.stackexchange.com | |
80,009 | Windows 2003 network initialization | I have a vanilla Windows 2003 SP2 installation (using MS Media) installed on an HP DL380 G6 (using Broadcom nics). When I boot the machine unattached to a domain, there are no issues. As soon as I join the machine to another vanilla domain server and reboot, I begin getting event id 1053 ("Windows cannot determine the ... | A few things I would recommend: Make sure you have the latest drivers for the NIC. Enable portfast on your switch port. Set the "Always wait for the network at computer startup and logon" setting in the registry or alternately in the GPO that applies to the server. Optionally, disable TCP Chimney Offload and Receive Si... | 0 | 1 | 395 | 2009-10-30T20:31:21.170 | database_errors | serverfault.com | |
807,331 | Bounce mail blocked by Trend Micro Email Reputation Service | When I tryied to send an email, the following error appears: [CODE] I checked those IP en https://ers.trendmicro.com/reputations 200.123.99.139 is OK 67.222.38.55 is Bad in RBL Apparently the owner of this bad IP is my hosting service . ¿Must I check the first or the second IP? ¿What can I do with this problem? | Your interpretation tracks. The first IP is evidently the destination for your mail. The second one is who they see as a sender. Actually, the reverse could be true as well. Compare your external IP to the two and see if one of them is on the same IP network. If that doesn't work, compare registrar information using Re... | 1 | 1 | 1,423 | 2016-10-05T18:41:23.903 | infrastructure | serverfault.com | |
273,559 | How to extract fields of anonymous row type in PostgreSQL | In PostgreSQL I can create an anonymous row or composite type [CODE] But how can I get the fields out again? None of the following work [CODE] | New in v13 Allow [CODE] to have their members extracted with suffix notation (Tom Lane) For example, [CODE] now returns 4. [CODE] Note there are some gotchas. You may need to explicitly cast type [CODE] ERROR: failed to find conversion function from unknown to text [CODE] See db<>fiddle for more The relevant commit in ... | 5 | 10 | 3,270 | 2020-08-11T09:10:34.087 | database_errors | dba.stackexchange.com | |
486,798 | openssl invalid CA certificate | I'm setting up server-to-server OpenVPN with a PKI infrastructure, and cannot make it work. I suspect it's something in the certificate chain, but I'm at a loss to explain how. I have an offline Root CA, and a certificate hierarchy. The CA's are managed externally by a product called EJBCA. Pictorially the chain looks ... | This is a problem with the X509v3 extensions. Modern certificates are signed in a way that indicates the approved uses for that type of certificate. These can be displayed by piping the cert into [CODE] , or specifying the file path with [CODE] . In your case, these error messages are indicating that the cert you're sp... | 10 | 20 | 22,779 | 2013-03-11T21:17:54.543 | infrastructure | serverfault.com | |
592,111 | MSA2312i shows duplicate enclosures? | I just installed a redundant controller in my MSA70. This is in use with our old MSA2312i SAN. Now I'm seeing two entries for 'Enclosure 3' (the associated MSA70 disk shelf) in the UI. It appears that both the modules are reporting as controller A, versus the newly added controller showing as B as it usually would. Wha... | After upgrading the firmware to 2.18 I tried redetecting via the UI without impact. Unplugging and reseating the module did it though. It did take about an extra 15 minutes.. Apparently for syncing the configuration. | 2 | 1 | 100 | 2014-04-29T19:00:11.917 | data_quality | serverfault.com | |
32,651 | Share common web application code to many web servers | What is the best way to share common web application code to many web servers? For example, I have a directory containing web application written in PHP. Now, I have multiple machines that will serve same content, each runs a webserver, load balanced using TCP/IP balancer. I haven't tried NFS yet for this scenario. But... | I'll outline a couple of options, to show alternatives to the live code via NFS approach . The "best" strategy depends on your chosen code deployment strategy, possibly one of these: Editing on live system - developer changes/updates application in one central place, live machines then pick up the change (which sounds ... | 1 | 6 | 1,117 | 2009-06-27T13:30:34.443 | infrastructure | serverfault.com | |
715,096 | Squid running out of filedescriptors on CentOS 7 | I'm running Squid 3.3 (EPEL) on CentOS 7 and recently I have been getting the following error message in my [CODE] [CODE] I am slightly confused by this because I seem to have ample descriptors available: [CODE] Squid was also compiled with this flag: [CODE] Squid confirms that these are actually available on startup: ... | The number of file descriptors is set in the systemd unit file. By default this is 16384, as you can see in [CODE] . To override this, create a locally overriding [CODE] which changes the amount of file descriptors. It should look something like this: [CODE] Do not edit the default file [CODE] , as it will be restored ... | 5 | 2 | 5,794 | 2015-08-18T20:23:26.620 | api_errors | serverfault.com | |
303,434 | SQL query that is able to count days based on event queries | I have a table with the following data: [CODE] Fore example, item with id #2 went from green to yellow on 2020-08-06 14:59:21 and then on 2021-03-03 14:31:44 it went from yellow to read. I need to count how many items were in green, yellow, red state between two time ranges. I tried the following query by doing some re... | Your problem here is that your data model is flawed. You have 6 records: [CODE] You should have 9 records. So, your record structure should be this (example for [CODE] = 1 only): [CODE] You are trying to record two states in one record in two different fields. So, there are two possible refactoring solutions: revise yo... | 0 | 0 | 493 | 2021-12-03T00:56:26.197 | warehouse_errors | dba.stackexchange.com | |
524,498 | POSTFIX Won't Start says: bind 0.0.0.0 port 25: Address already in use, what should i do? | I followed the tutorial here: https://help.ubuntu.com/community/PostfixCompleteVirtualMailSystemHowto#Create_a_vmail_user to set up Postfix on a new ubuntu installation but it won't start, whenever i try to start it with postfix start say: fatal: mail system startup failed here is my error log: SYSERR(root): collect: C... | See what's got that port open. In Linux: [CODE] You will see something like: [CODE] In this case, 1624 is the process id (pid). So: [CODE] root 1624 0.0 0.0 25160 1636 ? Ss Jul17 0:00 /usr/lib/postfix/master You can kill or restart that process (or decide, heh, it's already running....). | 5 | 12 | 38,261 | 2013-07-18T18:42:52.823 | airflow_errors | serverfault.com | |
1,113,517 | nginx: [warn] server name has suspicious symbols with long domain redirect | What is the best way in Nginx to redirect two Long domains URLS, I would like to configure a redirect between two domains like this: I'm sure this has been asked before, but I can't find a solution that works. [CODE] I have tried this : [CODE] Still receive some errors [CODE] duplicate question as : https://stackoverfl... | nginx documentation states that [CODE] is the virtual server name (domain name) of the virtual host. The documentation also explains what kind of input is allowed there. You are trying to add a URL instead of domain, that is why the configuration is invalid. You need to add a [CODE] block for the URI part of the URL. | 0 | 0 | 340 | 2022-10-19T19:20:50.957 | data_quality | serverfault.com | |
908,141 | Docker pull: TLS handshake timeout | I get this consistenly (Ubuntu 16.04 LTS): [CODE] However curl TLS works fine (apart from the auth error): [CODE] And even a small golang program (to mimic docker) works fine: [CODE] The pcap for the docker TLS timeout request: [CODE] What could possibly be going wrong? | [CODE] means that you have slow internet connection. Default value of connection timeout is too small for your environment. Unfortunately docker don't have any settings that allows you change connection timeout. You may try to create your own registry cache somewhere else and pull images from it. | 50 | 38 | 214,769 | 2018-04-17T22:41:30.263 | pipeline_ops | serverfault.com | |
360,200 | IIS 7.5 logging: Can I insert a log entry when a request starts (is received), not just when it completes? | Currently, my IIS log entries are written when each request completes, eg: [CODE] Unfortunately, sometimes requests hang or don't result in a response, due to bugs in the ASP.NET code. These don't get included in that log. I know I can probably use Failed Request Tracing for some of these scenarios, but it would be goo... | The ones that don't end up in the W3SVC log should end up in the HTTPERR log (\Windows\System32\LogFiles) with the reason for failure. | 3 | 5 | 280 | 2012-02-15T01:43:01.100 | infrastructure | serverfault.com | |
1,057,070 | Load Balance (http) nodes slower when Redis is non-local | We run a load balance with 3 Windows 2019 servers. One of them is the "master" one, serving SMB share to the other nodes, and it's also the server that Redis runs on (Redis used for sessions and cache). But this master srever is also a HTTP node. Our problem is that on the master server, our website runs considerably f... | I actually got it all wrong, it's the SMB share the creates the problem. I verified this by copying files to the slave nodes, and the performance same as the master server, or even slighty better (due to faster CPU). So this is indeed an SMB issue. Probably SMB still sends data back and forth. The SMB share is on very ... | 0 | 0 | 186 | 2021-03-14T22:03:55.533 | data_quality | serverfault.com | |
333,964 | Permission mailbox subfolders | I have an Exchange (2010) mailbox that has 100+ folders. Each folder needs to be permissioned so that a certain AD security group has publishing editor rights. Is there a away to do mass permissioning or is it going to be a long day? | You should be able to use the Add-FolderPermissions Powershell cmdlet to set the permissions you need on each of your folders through Powershell. It offers no [CODE] option itself, but you could simply loop through Get-MailboxFolderStatistics' output to get all the folder names and feed them to Add-FolderPermissions as... | 3 | 1 | 3,744 | 2011-11-23T06:12:24.307 | infrastructure | serverfault.com | |
234,521 | How to index/optimize sum of two columns in PostgreSQL? | We have a database where one table contains serialized temporary data that needs to be kept for various times (usually between tens of minutes and two weeks). We also have a low priority background process that removes old rows from the table. The background process removes up to 1000 lines during one transaction: [COD... | I think refactoring the table to store the expiration would be a good idea. If you don't want to do that, then you can make an expression index [CODE] . It might take some encouragement to get it to use this index, however, as the statistics system might not provide good enough estimates for it naturally. Adding an ORD... | 0 | 1 | 1,691 | 2019-04-11T07:07:09.693 | database_errors | dba.stackexchange.com | |
31,951 | How to make a variable in `protractor.conf.js` available in spec file? | I have a variable in [CODE] which is exported within [CODE] function as: [CODE] , and in spec file I'am trying to use/call it, but it seems that it can't be accessible and isn't available for the spec file. Error: [CODE] It's being treated as it would be an npm module and can't be found in npm_modules which is correct.... | Issue fixed... solution is: [CODE] and this how you can reach in [CODE] files: [CODE] or [CODE] with this we can make a variable accessible from [CODE] to [CODE] test files. The following posting was helpful and also the protractor doc where it's explaining the property: [CODE] | 1 | 3 | 7,175 | 2018-02-07T11:13:30.767 | data_quality | sqa.stackexchange.com | |
289,211 | VirtualBox performance degradation when running multiple VMs in parallel | At Travis CI ( http://travis-ci.org ) we use VirtualBox VMs (through Vagrant) for running tests for the Ruby community. On our worker servers we have up to (up to) N parallel processes running N test suites in N VMs in parallel, i.e. one worker process runs one test suite in one VM at a time, but N of them are running ... | You don't mention what the underlying disk is like on these servers, but these type of performance issues are nearly always IO-related. What are the IO stats looking like when you're running multiple builds versus just one? Additionally, you'd get much better performance out of your hardware by using something like Xen... | 3 | 8 | 2,736 | 2011-07-11T21:41:18.260 | database_errors | serverfault.com | |
388,227 | Is 8.8.8.8 located on this device | Are servers 8.8.8.8 (or 8.8.4.4) located on location, or are they distributed throughout the world? What I am interested in is, if I issue DNS request from Austria, will I get reply from US or from datacenter in Europe? | 8.8.8.8 is a anycast address, so you will get the server "nearest" (in internet/metric terms (usually hops) - not neccessarily kilometers too) to you. You will probably reach the googles datacenter in Frankfurt (i'm not sure if google has anything nearer to Austria). | 7 | 18 | 18,913 | 2012-05-11T12:01:45.177 | infrastructure | serverfault.com | |
374,095 | HKEY_USERS entry for service account | I've created a service account for a scheduled task on our 2008R2 server. The task runs a PowerShell script, which will, among other things, download an archive from a Linux server every time it is run using PuTTY's PSCP. However, it does not work, since the service account has never connected to that server before, an... | Ideally, direct support in PuTTY for a command line option to "pre accept" a host key or turn off host key checking altogether would be the easiest solution. However, it doesn't look like that feature will be here anytime soon . However, you've already got a powershell script running that should be capable of writing t... | 2 | 0 | 2,318 | 2012-03-27T19:40:30.223 | hadoop_errors | serverfault.com | |
732,793 | Bad network performance to ESXi guests | I have an ESXi 6.0 host on which I experience very weird networking performance. When I download a 1000mb .bin file using wget, the speed is fine for the first ±4 seconds: 14MB/s. This is the maximum speed of my ISP. After those first seconds the speed drops to approximately 5MB/s, and sometimes even further. I have co... | The only way to get to the bottom of this is to get files from another local machine - ideally one with a consistent transfer capability such as a physical box using a RAM disk as it's data store. If you can transfer from that, rather than from the internet which is wildly inconsistent, and still see the problem then I... | -2 | 2 | 1,232 | 2015-10-30T14:48:17.277 | api_errors | serverfault.com | |
361,122 | Dependency problems with my custom build ffmpeg rpm | I'm having trouble installing custom build ffmpeg 0.9.1 rpm.When I try to install ,I get the following: error: Failed dependencies: libfaac.so.0 is needed by ffmpeg-0.9.1-1.i386 libmp3lame.so.0 is needed by ffmpeg-0.9.1-1.i386 libopencore-amrnb.so.0 is needed by ffmpeg-0.9.1-1.i386 libopencore-amrwb.so.0 is needed by f... | Although these dependencies look like file names, they are actually 'capabilities', so having the appropriate files (i.e. shared libs) on the system will not satisfy the dependencies. You will have to install rpms. In principle, you could also install your ffmpeg rpm with [CODE] , but that invites trouble later on. | 1 | 1 | 532 | 2012-02-17T09:03:57.513 | infrastructure | serverfault.com | |
256,056 | Why does the concatenation order change with a User-Defined Table Type? | I've encountered what seems to me to be a strange ordering issue when using [CODE] with a User Defined Table Type. I've put the SQL below that allows me to reproduce this: I have the following user type: [CODE] And the following query to set everything up: [CODE] And this is the query I'm running: [CODE] If the [CODE] ... | The order changes because the order of the tables involved in the cross join has changed. In one plan [CODE] is the outer (driving) table, in the other [CODE] is the outer table. [CODE] Order is never guaranteed unless specified in the query, so if consistent order is important you should add a stable order by clause d... | 3 | 9 | 833 | 2019-12-20T17:47:01.160 | warehouse_errors | dba.stackexchange.com | |
292,368 | How to give PHP permissions to write to files without globally opening up permissions to the directory | I'm running Centos 5.5. I need to create / write some files with a PHP script. The script only works if I have the permissions of the directory in which the files are to be created / written set to writable for everyone, ie: [CODE] The script is working fine, but having my directory writable like that is obviously BAD.... | Make the files/directories PHP needs to write to owned/writable by the user or group that PHP is running as (usually your web server's user/group). Note that while this configuration is more secure than world-writable files it is only as secure as your code and your webserver configuration. Plan accordingly. | 1 | 2 | 3,067 | 2011-07-20T17:31:47.983 | infrastructure | serverfault.com | |
294,386 | configure apache/webdav readonly for user x, read/write for user y | I'm using Apache 2.2 on RHEL 6.x. I can get webdav setup as readonly for user x or readwrite for user x but can't figure out how to make it read only for user x and read/write for user y. I just have a single folder /var/www/html/davtest owned by apache:apache and I want myUser to have readonly access and myAdmin to ha... | Figured it out the crucial component is PROPFIND The settings below require a valid user for read-only access, for writing/delete/modification requires myAdmin [CODE] | 4 | 5 | 19,813 | 2011-07-26T23:23:30.040 | infrastructure | serverfault.com | |
569,788 | SSH Password Failure | I'm having trouble logging into my server via a password, even when I explicitly set the user's password via [CODE] . I've set [CODE] in my [CODE] and restarted the ssh daemon. I've even set the user's password multiple times. However when I try to login to my server, sshd shows the following log output: [CODE] At this... | The first thing to do is to try setting the password for the user using the passwd command [CODE] If this works then all well and good but note that usermod takes a pre encrypted password string -p, --password PASSWORD The encrypted password, as returned by crypt(3). If you really do want to supply pre encrypted passwo... | 0 | 0 | 1,160 | 2014-01-25T02:26:49.923 | infrastructure | serverfault.com | |
374,016 | What would cause Memcached to Hang for 2+ seconds? | I'm going nuts trying to scale memcached. From their site: Memcached operations are almost all O(1). Connecting to it and issuing a get or stat command should never lag. If connecting lags, you may be hitting the max connections limit. See ServerMaint for details on stats to monitor. If issuing commands lags, you can h... | The problem ended up being that the calling machine was using up all its CPU which was causing its TCP connections to lag heavily. Scaling the web tier horizontally fixed the problem. This turned out not to be a memcached issue at all -- that's just where the symptoms of this other problem were cropping up. | 2 | 0 | 3,609 | 2012-03-26T21:16:20.200 | infrastructure | serverfault.com | |
819,059 | How can I tell when a virtual OS is being slowed down by the host, but not reflected in perfmon? | I have a windows host that is behaving very slowly. All the counters (CPU, Disk, etc) appear to be normal. The virtual host itself is ESX, and is on a VNX Cluster with 13GB free disk space on a 2 TB disk. I am assuming that ESX doesn't like the low disk space on that LUN and as a result is having issues with all VMs re... | ESXTOP is probably the best tool to get real-time performance statistics from the ESX host. I would start there and consult it when you're experiencing the slow down. You can also set up Perfmon on Windows and start collecting statistics on CPU, Memory and Disk I/O. I've attached two KB articles to help you configure a... | 0 | 1 | 44 | 2016-12-06T16:36:42.877 | infrastructure | serverfault.com | |
206,227 | MySQL binlog missing queries | In direct reference to the accepted answer in this question MySQL doesn't log to the binary log file when you use direct database.table syntax in your update queries (eg. UPDATE Foo.Bar SET ...). Is the above true? It doesn't say this explicitly in the link the answerer provides. And is the only way to mitigate this is... | That is true in the context of [CODE] (and equivalent) using [CODE] based replication. You should never use [CODE] unless you know what you are doing (or you will lose data because of replication filters). If you want to do replication filtering, you should use [CODE] (and other [CODE] options) on the replica. It is ea... | 3 | 1 | 570 | 2018-05-09T09:43:31.287 | database_errors | dba.stackexchange.com | |
270,140 | Optimizing MySQL Database for wordpress | I am maintaining a blog with self hosted wordpress. For the last 5 months, my blog isn't really active as I hit "Server Error 500". The error says "The FastCGI process exceeded configured activity timeout" I seriously doubt that this is a server fault as I am running a very small database. But the technical support alw... | An answer to "how do I make my website go faster" is well beyond the scope of an answer here - if I could be bothered writing down everything I know I'd probably publish it as a book. However with such a small database, its very unlikely to be the database which is the source of the slowness here. If it were, then the ... | 0 | 2 | 262 | 2011-05-16T12:19:56.450 | database_errors | serverfault.com | |
145,266 | Scrum for team split between two spoken languages | I have a team that without a single common language among all of the team members. The team is split across two locations (though the geography isn't the main issue). All team members in each location speak the same language and there are members in both locations that can speak both. I'd like to introduce scrum, but a... | Teams practicing agile are supposed to be open to experimenting don't they? You know, "people over processes" and such. Try splitting to two teams per their languages and see how it works. If it turns out problematic, you can try one-team approach. update, based on clarification provided in comments I think the answer ... | 11 | 2 | 1,299 | 2012-04-19T21:00:59.003 | api_errors | softwareengineering.stackexchange.com | |
344,731 | Rsync : copying over timestamps only | Currently I have two directories A/ and B/ which are identical in every respect, with the exception of the timestamps. Therefore if I run the command : [CODE] then all files are marked "uptodate", whereas the command : [CODE] shows that all files are to be copied over from A/ to B/. My question is this : given that I k... | Using [CODE] (preserve timestamps) and [CODE] will only compare files on size. If the size matches, rsync will not copy the file but since [CODE] is specified, it will update the timestamp on the destination file without recopying it. Make sure to not use [CODE] (update) as this will skip files that already exist and c... | 64 | 103 | 46,617 | 2011-12-28T16:35:50.463 | infrastructure | serverfault.com | |
603,959 | Windows Server 2012 Migration (DNS/AD DS Standard Eval to Essentials OEM) P2V -> Do I need a Secondary Domain Controller during migration? | This is my first post on this exchange (although not my first on stack exchange), so please have patience. I am a 3rd year student intern, and I have been tasked with virtualizing the server systems at the company I work for. I have come a long way, and I am almost ready to install the VM Server in migration mode. Here... | Eventually, I found out the Windows Server 2012 Essentials limits you to running a single DC, and it can be the only copy of Essentials running on a given network (domain) as well. You to get a 21 grace period for migration, however. A stupid restriction, if you ask me. For the record, however, I had another Essentials... | 3 | 0 | 1,100 | 2014-06-10T00:00:49.110 | pipeline_ops | serverfault.com | |
1,008,258 | How to create an SSL certificate for an AWS application load balancer without a domain | I am trying to create a Cloudformation stack that can be provisioned by anybody (basically I want to share it either in the marketplace, or make it public in GitHub), which includes a set of EC2 instances behind an ALB (no autoscaling, but rather a fixed number of instances). I want to create a single listener for the ... | Option 3 is the only valid one. Have the user to create a Route53 domain and ACM cert beforehand and provide the domain name and certificate ARN as parameters for the CloudFormation template . Provide a [CODE] your GitHub repo with instructions on how to do that. ACM certs are free, no reason why not to use them. Hope ... | 3 | 1 | 2,230 | 2020-03-25T00:35:29.910 | api_errors | serverfault.com | |
72,435 | Why is Google blocking users from accessing their local file system in Chromium? | The question is based on this issue in Chromium. It is marked as [CODE] . Do you see any reason to block a local html file from accessing another local html file located in the same folder? | I know this is an old question, but I didn't see this important fact mentioned anywhere: Chrome allows you to add a folder on your file system as a local Web application. Once you do that, files in that folder no longer need to be accessed through the [CODE] protocol -- they become accessible through the [CODE] protoco... | 8 | 4 | 10,492 | 2011-04-29T13:55:28.277 | api_errors | softwareengineering.stackexchange.com | |
44,944 | Adaboost - Show that adjusting weights brings error of current iteration to 0.5 | I'm trying to solve the following problem but I've gotten sort of stuck. So for adaboost, $err_t = \frac{\sum_{i=1}^{N}w_i \Pi (h_t(x^{(i)}) \neq t^{(i)})}{\sum_{i=1}^{N}w_i}$ and $\alpha_t = \frac{1}{2}ln(\frac{1-err_t}{err_t})$ Weights for the next iteration are $w_i' = w_i exp(-\alpha_t t^{(i)} h_t(x^{(i)}))$ and th... | You're nearly there. The quantity $err_t/(1-err_t)$ is exactly what you need it to be. It might be easier to see if you think about $$\sum_{i=1}^N w_i \Pi(h_t(x^{(i)})=t^{(i)})$$ as $$\sum_{i:\ x^{(i)}\text{ is correctly classified}} w_i$$ (just using the indicator function to reduce the summation range). | 1 | 0 | 539 | 2019-02-01T21:54:18.157 | data_quality | datascience.stackexchange.com | |
276,888 | Python, namespace vs module with underscores | I'm developing a project that uses several independent modules, but all related to the same project. However, I face this choice: module names with underscore vs. namespaces. For example there is this tree: [CODE] Let's say for example, that Foo3 depends on Bar2, but Foo2 and Bar2 are standalone. What are the best prac... | I'd not be concerned about performance here, but about usability . Modules are loaded just once in a Python program's lifetime. Referencing elements within modules and packages, including nested modules, is virtually free. Performance doesn't matter here . Use modules to group your project into logical units; it is mor... | 2 | 4 | 1,839 | 2015-03-20T15:19:54.297 | api_errors | softwareengineering.stackexchange.com | |
261,882 | When is it ok to use an Index Hint on a query in production code? | I've recently been working with decently sized tables (between 100s of million of rows to 10s of billions), and have ran into a few cases where I was forced into a corner to use query hints, which I used to think were bad practice but since learned they have their place (mostly the ForceSeek and ForceScan hints). I've ... | It's OK to do this only when a better solution doesn't exist. As David Browne - Microsoft commented: If you were writing in another language you wouldn't think twice about telling the computer not just what to do by how to do it. That's all an optimizer hint is. | 0 | 3 | 1,086 | 2020-03-13T14:01:48.253 | database_errors | dba.stackexchange.com | |
133,578 | not able to install g++ and gcc on debian | I want to use directadmin as my web control panel and it needs several packages like g++ , gcc and etc... as usuall I started to type apt-get install g++ and there problems start : dependecy error... then I tried to apt-get -f install and I got this error (Reading database ... 15140 files and directories currently inst... | [CODE] You have some partially installed packages and it is trying to remove libc6-xen. If this is a xen vps, that is probably a rather fatal issue. The above should get you back to a workable state. Once you get things back to a reasonable state with that, try: [CODE] Don't proceed. It will probably tell you that it n... | 1 | 2 | 3,875 | 2010-04-18T18:49:10.290 | infrastructure | serverfault.com | |
18,016 | In Istio, what controls throughput to a service? | I have a load testing application (jMeter) that is calling my service that is hosted in Kubernetes. Summary I have a service hosted in Kubernetes that seems to have limits placed on how many calls it can take. This service uses Istio (both with a Side Car and using the Istio Ingress Gateway). But I cannot seem to figur... | You can use Envoy Filter to apply limit rate. In the below example, you apply a limit rate to a workload based on workloadSelector labels. The main example values are that you have a bucket of 1000 tokens. Each connection takes "one token" and in the bucket we "return" 10 tokens per 5 second. The limit rate is enabled ... | 1 | 1 | 55 | 2023-06-26T18:47:06.900 | pipeline_ops | devops.stackexchange.com | |
15,231 | 100 TeraBytes Capacity Database - Resources and Time Estimates | I am working on a 'back of the envelope' calculation for a 100TB reporting database setup. I am seeking out thoughts from the experts here. Proposed environment: Storage Capacity ~ 100TB Tables ~ 200, sizes ranging from 1GB to 5TB. mean size could lie between 100GB-200GB ETL - jobs may require join between tables of 10... | First impressions Depending on your performance requirements, 100TB is a fairly aggressive data volume. If you want Oracle, you should check out their Exadata systems. Also, take a look at the offerings from Netezza or Teradata. With that volume of selects you might want to look at an OLAP based front end or at least f... | 10 | 21 | 3,376 | 2012-03-18T18:16:21.310 | data_quality | dba.stackexchange.com | |
303,051 | What is better to design or discover interface | Let's say you have some issue to develop. And as recommended practice it is good idea to use interfaces ( I don't mean GUI, I mean interface or abstract class ). And you can apply two ( I'm pretty sure, but for now I noticed I apply two ) ways: Design interfaces upfront and then implement them. Implement classes and th... | Your question is tantamount to saying "I know I need a plan, but I also know the plan will change, so it's better to not have a plan at all." There's no question that, during the software development process, you discover things that have to be changed to make them work. We all deal with that. But that's what refactori... | -2 | 2 | 89 | 2015-11-19T22:07:00.517 | api_errors | softwareengineering.stackexchange.com | |
8,873 | User-product positive (click data) available. How to generate negative (no-click data)? | Its very common in recommender that we have user product data which have label as an e.g. "click". In order to learn the model, I need click and no-click data. Simplest approach to generate is to take user-products pairs which are not found in click data. However, that may be misleading. Example: [CODE] I can take user... | So, there are two problems. Recording impressions (shows) How to deal with non-impressions For (1) you should be recording this information. If it is not currently being recorded you should start recording this information. Given that you do not have this information you want to provide recommendations. Fortunately, wi... | 10 | 6 | 273 | 2015-11-17T16:10:20.000 | data_quality | datascience.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.