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 |
|---|---|---|---|---|---|---|---|---|---|---|
266,390 | Merge directed acyclic graphs minimizing number of nodes | I have some DAG s (directed acylic graphs) and I want to merge them in order to minimize the number of nodes (we could say that every node has a cost, while edges are free). These four different DAGs (directed from left to right)... [CODE] ...should become: [CODE] This is not a real DAWG (directed acyclic word graph): ... | I think your structure is the line graph of the minimal DAWG. I have generated these before, three years ago, by building the minimal DAWG, from that its line graph, then minimising the line graph. I searched the literature and Google extensively and never found this last step. I concluded that the DAWG was more useful... | 4 | 1 | 1,624 | 2014-12-14T00:11:14.033 | airflow_errors | softwareengineering.stackexchange.com | |
547,686 | IIS running but not serving content | I have an internal dev server running Windows 2k8 R2 with the Web and FTP Server roles set up which won't serve any content at all. Trying to connect from another host via telnet yields 'connection failed': [CODE] ect failed Using [CODE] on the dev server returns no connections on port 80 (a few on 1801, etc) tcpview c... | At this point given the additional information provided with your initial post it would be wiser just to flatten and rebuild the entire server from the ground up. It's a lot easier than going under the hood of the operating system to hack and slash your registry/files. Don't re-invent the wheel here. Just get rid of th... | 1 | 1 | 2,076 | 2013-10-22T02:01:55.533 | infrastructure | serverfault.com | |
169,173 | Cannot see SQL Agent Job history for more two days | I have a job which runs every night around 02:00 AM. But I cannot see the job history for more than two days.Can you kindly help me on this. The limit size is very high and we hardly have one job which runs each day. Still the issue. Please advice. | SQL Server Agent stores the history of job execution in system tables in msdb database. The following query gives us the details of last/latest execution of the SQL Server Agent Job and also the next time when the job is going to run (if it is scheduled). This information can also be found in the Job History/Job Activi... | 0 | 0 | 2,588 | 2017-04-05T09:33:58.323 | warehouse_errors | dba.stackexchange.com | |
579,544 | OpenGL 4+ will not work on RemoteFX with Windows Server 2012 Standard host and Windows 7 SP1 Enterprise/Windows 8.1 Enterprise VMs | I have installed Windows Server 2012 Standard on the following hardware: -Intel desktop motherboard with Virtualization hardware support. -16 GB of RAM -Intel i5-2500 (Supports SLAT) -nVidia Quadro 5000 -1TB HDD As per http://social.technet.microsoft.com/wiki/contents/articles/16652.remotefx-vgpu-setup-and-configuratio... | Further research shows that OpenGL higher than 1.1/1.2 is not supported. Microsoft chose to support primarily DirectX. Windows 8.1 will not work with RemoteFX at this time. Windows 8 will. The cap driver is not needed to get it to function. | 2 | 3 | 3,615 | 2014-03-03T17:39:52.167 | api_errors | serverfault.com | |
841,552 | linux sendmail doesn't work (stat=deferred) | I have set up an linux webserver on my raspberry pi and now want the server be able to send emails without configuring a complete mailserver. Thats why I have chosen the MTA 'sendmail', which I'm trying to configure correctly for days now. In my [CODE] I have added these lines: [CODE] In my hashed [CODE] I have [CODE] ... | I think I solved my problem by Using port 587 instead of 465, thanks to the hint of Andrzej Specifying the sender mail, because my hoster strato was denying mails that are not authenticated (in my case root@localhost.localdomain) So, sending a test mail with this command worked [CODE] Don't forget to send the final mai... | 0 | 1 | 10,717 | 2017-03-30T12:55:49.213 | infrastructure | serverfault.com | |
40,143 | postgres deadlock without explicit locking | I use PostgreSQL 9.2, and I do not use explicit locking anywhere, neither [CODE] statement nor [CODE] . However, recently I got [CODE] . The query where deadlock was detected is wrapped in transaction block though. Anyway, how comes it? | Suppose session 1 does: [CODE] and at the exact same time session 2 does the opposite: [CODE] Then session 1 will be waiting for session 2 to commit or rollback the update on the row where pk = 2 while at the same time session 2 will be waiting for session 1 to commit or rollback the update on the row where pk = 1. Dea... | 1 | 8 | 4,476 | 2013-04-16T16:56:11.130 | database_errors | dba.stackexchange.com | |
167,306 | How to save ESXI 4.0 configuration without reboot | HI,everyone Recently, I set the VM start with the ESXI at the "Virtual Machine Startup/Shutdown" , and move up the VM at the "Startup Order" until the VM startup changed to Enabled. Once ,the ESXI server was crashed with no power. Late, I Manual start the ESXI server . but when I login the ESXI with vsphere, I found th... | There is nothing to save, "Virtual Machine Startup/Shutdown" is immediately applied as soon as you configure it, and doesn't need a server reboot in order to work. The problem here is that your ESXi host didn't shut down properly, so it was unable to save its configuration; but, as long as the system is shut down or re... | 1 | 1 | 1,175 | 2010-08-05T10:13:28.650 | infrastructure | serverfault.com | |
23,541 | Reformatting master MySQL server and temporary solution | We have MySQL master and replication servers both running on different machines. We have noticed some system files showing integrity issues in the master machine. Temporarily we would like to make the slave as a master and reformat the original master and then bring back everything to the original architecture. What ar... | Globally speaking, I would essentially be performing the following steps in the same situation. Before starting, backup everything on both machines. Put the website or application into maintenance, preventing users from accessing the database. Also make sure there are no imports/updates/activity coming in from cron job... | 2 | 2 | 202 | 2012-09-01T05:42:11.973 | database_errors | dba.stackexchange.com | |
257,013 | I have to delete over 90 million records, do I remove or maintain the transaction's SQLWARNING? | SQL Server: mysql Ver 15.1 Distrib 5.5.65-MariaDB, for Linux (x86_64) using readline 5.1 OS: Slackware 14.1 That's 90 million old radius bank records I want to remove, leaving only those this month. The script would be this: [CODE] While checking the result file, I noticed that delete was terminated because of a SQLWar... | If you are deleting much of a table it is often better (faster, etc) to copy the table over without the 'old' rows: [CODE] Better yet, make that [CODE] table [CODE] by day so that you can daily do the very fast [CODE] to get rid of the month-old data and [CODE] to get a new partition for tomorrow. Details in http://mys... | 0 | 1 | 297 | 2020-01-09T12:20:57.237 | database_errors | dba.stackexchange.com | |
948,161 | Postfix - blocking by From rather than sender | I have a ton of incoming spam that masquerades as being sent by me, but has a sender at some arbitrary spammer domain. e.g. [CODE] The sender to postfix is admin@aiuw.com, but by the time it's handed off to Cyrus-IMAP, it appears to be sent by me, and that means it's deposited into my recognized sender inbox. I'd like ... | [CODE] While my previous answer does work, it will be better if you set up OpenDKIM and OpenDMARC, and give your domain a strict DMARC policy which instructs everyone (as well as yourself) to reject all "fraudulent" mail. That way, you will prevent other people from impersonating you and ensure the same protection from... | 7 | 6 | 1,918 | 2019-01-08T23:24:03.190 | data_quality | serverfault.com | |
934,954 | How to connect to second private network's computers from under OpenVPN? | I'm running OpenVPN on Ubuntu instance and I want to connect to my MySQL database located on the private network. It's AWS/EC2 and RDS. Database has a security group that allows all connections from the private network it's located at (and that's how it's supposed to be). Now after OpenVPN launch there are two private ... | The easiest is to put both the RDS and the VPN GW into the same VPC and permit access to RDS from the VPC CIDR . For example the default VPC usually has CIDR (=IP address range) 172.31.0.0/16 with subnets like 172.31.0.0/20, 172.31.32.0/20 and 172.31.64.0/20. Even if the RDS and the OpenVPN GW are in different subnets ... | 1 | 0 | 205 | 2018-10-11T02:01:09.147 | database_errors | serverfault.com | |
208,572 | Machine login for Microsoft SQL Server for Linux | -- old question -- I'm building a multi-tenant SQL Server for Linux solution for hosting companies. Basically end-users will get access to SQL server with their own user account. Now, I want to be able to backup their databases every day using the SQL Commandline tools. This is no issues, except for the fact that I don... | I checked in with the WHM+cPanel - the company behind the hosting control panel and they said they store their MySql root user password on a local file on disk as well for doing all the automated maintenance, creation etc. Excerpt from their docs: By default, cPanel & WHM's implementation of MySQL stores the MySQL root... | 1 | 0 | 462 | 2018-06-02T11:56:43.733 | database_errors | dba.stackexchange.com | |
331,430 | Half distance / double distance algorithm | I load data from a website's pages. The problem is that the ammount of pages is unkown. Since this process takes a long time, I want to display a progress dialog. For that I have to find the last page. My idea to find the last page is: Try to load page 1000 if page 1000 exists try to load page 2000 if page 2000 exists ... | The name of the algorithm you are describing is Exponential Search , also known as doubling search or galloping search. The Wikipedia article has a sample implementation that may be of interest. | 0 | 6 | 248 | 2016-09-19T16:21:09.700 | api_errors | softwareengineering.stackexchange.com | |
1,003,359 | Apache2, redirect to homepage when you visit folder with exact name | Issue In apache, how can I redirect to homepage in case if you will go to exact string, but everything behind this string should be displayed normally, no redirect. Example. [CODE] I tried [CODE] But in this case page is redirected to homepage too, for example in case of [CODE] . Thanks. | Instead of using [CODE] and its Redirect directive, you can use mod_rewrite using a [CODE] with a [CODE] : [CODE] This redirects all requests starting with [CODE] or [CODE] , but not starting with [CODE] . The match for a leading slash [CODE] is needed if the rule is defined in a [CODE] context and must be omitted in a... | 0 | 1 | 128 | 2020-02-17T10:01:17.597 | infrastructure | serverfault.com | |
927,953 | Mikrotik reverse NAT | Hi, I have attached my current network diagram. I have having problems on how to NAT my public IPs so that each client will use 2 different public IP. My ISP routes 3 public IP to my router over PPPOE. And my clients routers are connecting to my network through the PPPOE Server. How do I accomplish this? I am able to N... | It is possible to have your clients multiple IPs for their NAT connection. As the Router(Mikrotik) needs to decide which client IP(i.e. 10.0.0.x) should go through which Public IP, you should have your public IPs on you Mikrotik router. Just change your current router(192.168.1.1) config to bridge mode and set a PPPOE ... | 0 | 0 | 933 | 2018-08-25T08:18:57.813 | infrastructure | serverfault.com | |
957,928 | Intermittent vSAN issue | I have a test lab deployment and am facing some issue in the first vSAN (4 nodes) creation (it works some times, and other times it doesn't) I'm trying to troubleshooting the issue as to when it doesn't work what is going on. Once I have added the nodes to the cluster, I add to each node with a VMKernel Adapter and att... | This issue is resolved. Since I'm using Workstation and running clones the system UUID is not being generated as new and the same UUID is being used in all ESXi servers (which should not be the case when a clone is created). So I found the solution here : http://www.vmwarearena.com/vsan-cluster-partition/ I followed as... | 2 | 2 | 141 | 2019-03-12T15:31:16.123 | pipeline_ops | serverfault.com | |
919,326 | Apache won't start with systemd | I've run into an issue where enabling the PHP driver for MS SQL Server [1] causes Apache httpd to timeout after three minutes when started with systemd ( [CODE] ). Apache functions fine if started directly ( [CODE] ). The systemctl error is: Job for httpd.service failed because a fatal signal was delivered to the contr... | I believe the important message is this one: Jun 25 11:47:56 server-that-fails systemd[1]: httpd.service start operation timed out. Terminating. By default, systemd gives a service 90 seconds ( [CODE] in [CODE] ) to start up – if it takes longer than that, the service is killed (first with SIGTERM, then after another 9... | 0 | 2 | 6,016 | 2018-07-03T14:55:27.457 | hadoop_errors | serverfault.com | |
514,242 | Non-responsive apache + mod_wsgi after installing scipy | I am currently running a Centos 6.4 server, with Apache 2.2.15 and mod_wsgi 3.2. The server is hosting a django-based site (django 1.5.1, python 2.6.6). Everything was running fine until I installed scipy 0.12.0 via pip. Now, when I attempt to load the django app, the server does not respond, and it appears that child ... | Some third party packages for Python which use C extension modules, and this includes scipy and numpy, will only work in the Python main interpreter and cannot be used in sub interpreters as mod_wsgi by default uses. The result can be thread deadlock, incorrect behaviour or processes crashes. These is detailed in: http... | 17 | 37 | 14,847 | 2013-06-07T21:11:16.740 | infrastructure | serverfault.com | |
352,139 | Is it a good practice to make API response list of values as dictionary? | I have an API endpoint that returns some statistics. Currently the response looks like: Option 1: [CODE] But this looks a bit complex and I what to make it like: Option 2: [CODE] I understand that Option 1 is easier to be extended, but less comfortable for users. What other issues I can face using one of these options?... | I'd go for option 2. If the API consumer will convert [CODE] into something readable, that probably means he/she has a list of values he/she is interested in (say, [CODE] and [CODE] ), and will iterate over that list. By choosing a JSON object, it will be deserialized as a dictionary/map which provides a convenient loo... | 14 | 9 | 17,052 | 2017-07-04T11:51:18.633 | api_errors | softwareengineering.stackexchange.com | |
567,752 | What wmi counters can indicate port exhaustion | I'm currently investigating an issue in which we suspect port exhaustion from too many outgoing connections is a factor. I'd like be able to identify when the server is at or near to port exhaustion, and it seems that there should be some wmi counter which will indicate this, although I don't know which Thanks in advan... | To get the currently active connections count you could Powershell it: [CODE] Note that there is also a ConnectionsActive in the same class which displays cumulative rather than current connection count. Here is a class reference . As detailed in this MSDN blog post there are two system tweaks you can use to increase t... | 7 | 6 | 5,224 | 2014-01-16T16:23:08.980 | infrastructure | serverfault.com | |
224,098 | Avoid Initial AJAX Call for Loading Data | Here is the typical sequence of events when someone navigates to a page in my application: The user navigates to my application, including URL parameters and query strings. The server receives the request and generates the HTML On the client, AngularJS grabs any parameters and makes an AJAX call The resulting data is t... | I don't know the specifics of angular, but there is no reason to not insert any initial data into the page directly. In Fact backbone suggests doing exactly that. All you would have to do is put in your template something like this [CODE] Where you inject the json from whatever server side framework you are using. | 4 | 4 | 1,382 | 2014-01-14T01:11:36.520 | api_errors | softwareengineering.stackexchange.com | |
758,203 | Trouble bringing a cloned cluster shared volume disk online | I have a Hyper-V cluster (2008 R2) with a CSV that I want to clone. The CSV is on a fibre channel SAN (HP MSA M3 P2000 G3). I cloned a volume from the SAN side of things, and have mapped it to my cluster nodes. The cluster nodes can see the volume, but they are marked as offline, reserved. As far as I can tell, I am ha... | You can try to follow this guide: http://support.altaro.com/customer/portal/articles/1115503-how-can-i-change-the-disk-id-of-a-drive- To view the Disk ID: Open Command prompt Enter the command [CODE] and hit enter Enter the command [CODE] and hit enter to list all available disks Enter [CODE] (Substitute "X" for the nu... | 1 | 0 | 2,577 | 2016-02-18T19:16:53.080 | infrastructure | serverfault.com | |
729,661 | Adding a 2nd site to nginx | I've had a single domain on my server which was setup by someone else however i'm trying to add a 2nd domain, after following a couple of tutorials off google i'm running into some issues. Here is my default (i didn't create this one): [CODE] That config works absolutly fine, According to the tutorial i was reading i h... | You want to have two server blocks. Both listening to the same IP address (I presume) but with different server names. Yes, remove the default_server since you can't have two. [CODE] | 0 | 3 | 746 | 2015-10-17T12:43:11.693 | infrastructure | serverfault.com | |
84,233 | Monit doesn't pick up httpd process after reset | I've installed Munin and Monit on one of my servers running CentOS 5. Everything is working well, logging and reporting info, except for when the httpd process is restarted. I have Monit set to restart httpd if it hits 2.5gb of memory usage. If/when this happens, it'll restart just fine, but Monit won't pick up the new... | Perhaps have monit run a script that restarts httpd , waits a few seconds, and then restarts monit as well . It may be that monit is somehow locked on to the particular process ID's associated with the killed httpd processes - and this would allow it to detect the new processes correctly. I'm not sure how much free mem... | 1 | 1 | 1,312 | 2009-11-12T22:04:07.390 | infrastructure | serverfault.com | |
194,094 | how to stay efficient when a build is almost always broken | I work in a middle sized team which shares the same source code and while have a continues integration in place, but as all of us has to work in the same branch, the build is almost always broken. As we also have a rule, which has been introduced recently to alleviate the broken builds, which states that no one is allo... | To start with, this comment: ... having a branch implies an extra complexity and thus extra work ... is wholly false. I often hear it from people who aren't accustomed to branching, but it's still wrong. If you have many developers accumulating changes locally, their local changes constitute a de-facto branch of the ma... | 24 | 53 | 1,461 | 2013-04-06T07:17:59.747 | api_errors | softwareengineering.stackexchange.com | |
773,003 | Can't connect to PFSense webconfig (virtual machine) | I've setup a new PFSense VM (version 2.2.2) in virtualbox, it's connected to three network interfaces, vboxnet6 and vboxnet7 (both host-only adapters) and eth0 (bridged). In this case vboxnet6 is setup as the lan interface, vboxnet7 is opt1 and eth0 is the wan interface. Configuring the network interfaces and assiging ... | Have you tried the pfsense console in the virtualbox manager? Go to shell, and use tools like netstat -r, arp, ping, ifconfig to see what's going on from the pfsense end. Default for web configurator may be set to https:// (port 443) | 2 | 0 | 2,456 | 2016-04-26T13:32:45.930 | data_quality | serverfault.com | |
811,292 | azure deployment and on-premises authentication | I'm developing an app that will eventually be deployed to the cloud. Right now I'm trying to get deployment to work, because I need to test HTTP callbacks that an outside service makes on my application. Everything runs fine in my dev environment, but on deployment, it's redirecting to localhost for some reason. We're ... | Turned out we needed to add an endpoint to the adfs instance, as wReply gets ignored, unless it's added as a valid endpoint. | 0 | 0 | 65 | 2016-10-25T23:44:15.677 | pipeline_ops | serverfault.com | |
408,146 | Encryption using a nonstandard-IV | So i got a few xml files that need to be encrypted and it works, no problems here. Now since the latest update of the CodeAnalyzers i got a new warning ( CA5401 ) that tells me, that it is a bad idea to have a " nonstandard initializing vector ". A little research showed me, why it is indeed a good idea to have a new I... | The IV is not a secret key, but is analogous to the salt in a hash function. Every message must have a unique IV so that the same plaintext generates a different ciphertext. If we have two messages m1, m2 and reuse the IV, and the ciphertexts Encrypt(IV + m1, key) = Encrypt(IV + m2, key) are identical, we know just fro... | 1 | 4 | 107 | 2020-03-30T13:52:46.407 | api_errors | softwareengineering.stackexchange.com | |
216,327 | On Always On Availability Group | If a failover happened, how can I delete old backups from the Copy_only folder? Because the Copy only folder exists on the primary server, and backups are running without copy_only. Please resolve my issue and let me know the solution. | I believe you may be asking how to change the backups so that they occur in a directory other than the Copy_only directory. If so, here is some information to get started with which you can then search for. Hope this helps. Using SQL Server Management Studio To configure backup on secondary replicas In Object Explorer,... | -1 | 1 | 87 | 2018-08-30T16:10:29.220 | database_errors | dba.stackexchange.com | |
330,589 | Schedule a job in SQL Server between two days | How to schedule a job in SQL Server that starts on Wednesday afternoon and it should end on Thursday EOD and between this the SSIS package should execute for every one hour if any error occurs in first hour then it should automatically pick in next hour. I need to schedule a job accordingly. | When you need some scheduling logic that isn't available in a single SQL Agent schedule you can either Create multiple schedules for a SQL Agent job. That will work here, with one scheduling the job to run Wednesdays every hour in the afternoon, and one scheduling the job to run every hour on Thursdays. or Schedule the... | 0 | 4 | 70 | 2023-08-24T13:36:45.457 | database_errors | dba.stackexchange.com | |
251,507 | 401 - Unauthorized: Access is denied error from web app running in IIS 7.5 using App Pool Identity | I have an ASP.NET app on a Windows 2008 server, IIS 7.5. When I try to access web site, I get a login popup. If I click "cancel" I get a 401 - Unauthorized: Access is denied due to invalid credentials. The app is using Windows authentication (anonymous is disabled). The app has it's own app pool, running under the App ... | I also had this issue occur when I switched my IIS application pool account from NetworkService to a domain user account. I could not access the site externally (401 - Unauthorized), but on the server itself I could access the site. The issue seems to be linked with Kerberos authentication. IIS 7 attempts to use Kerber... | 1 | 1 | 7,473 | 2011-03-24T18:50:26.130 | api_errors | serverfault.com | |
401,406 | Does it make sense for a package to depend on, e.g. import, its nested packages? | I think depending on nested packages is wrong, because the nested packages are always going to depend on the parent —aren't they?– and this can lead to cyclic dependency issues. When I look at how UML alternatively represents package dependency, it shows the anchor icon in an unidirectional way, e.g. the nested package... | Yes, depending on nested packages is wrong. Conceptually packages should represent different levels of abstraction, starting from the root package (the most abstract) down to the leaf packages (most concrete). In this concept depending on nested packages means abstract things depend on more concrete things, which is ob... | 1 | 0 | 126 | 2019-11-21T13:00:35.493 | api_errors | softwareengineering.stackexchange.com | |
110,587 | Can Indexes mitigate untrusted Constraint | I using [CODE] and found two tables that have foreign keys that is untrusted. tried to enable the trust with: [CODE] But got this error message Msg 547, Level 16, State 0, Line 1 The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_importsessionrow_importsession". The conflict occurred in database "... | Just for a bit of background on pros/cons to not having FK's in your database feel free to review this post on StackOverflow . As you can see from that article there are some good reasons (performance penalty on insert/update more painful to the business than dirty data) to go without foreign keys and some bad reasons ... | 3 | 1 | 158 | 2015-08-10T16:30:50.687 | data_quality | dba.stackexchange.com | |
3,006 | Custom Layer 4 Load Balancer | What are my best options for deploying a load balancer on AWS with the following requirments: Add auto scaling that will start my own EC2 instances. Deploy 3rd party SW on the load balancer. Have a readable shared memory (can be S3). Found the tutorial " Create an External Load Balancer " about Kubernetes but not sure ... | Historically, F5's Application Delivery Controller has been the enterprise-grade industry solution for doing this. With this solution you can: Use iRules LX to communicate with other software to auto-scale on an as-needed basis Load balance at Layer 4 (to achieve better throughput/acceleration) or Layer 7 Share memory ... | 2 | 2 | 78 | 2017-12-31T14:48:02.930 | pipeline_ops | devops.stackexchange.com | |
197,898 | kerberos error when active-directory user connects to Solaris machine | I have configured two CentOS machines to authenticate via kerberos and LDAP to Windows Server 2008 R2 Active Directory. I am now trying to do the same to a Solaris 10u9 (without upgrades to Kerberos or ldap) machine but am running into a problem -- active directory users cannot log in to the Solaris machine using ssh. ... | Solaris doesn't use MIT-Kerberos Packges, but a Sun-specific package that sometimes behaves a little different. You might want to try installing MIT-Kerberos to reuse your existing CentOS Config. | 0 | 1 | 933 | 2010-11-03T20:55:38.693 | infrastructure | serverfault.com | |
171,110 | Using a random string to authenticate HMAC? | I am designing a simple webservice and want to use HMAC for authentication to the service. For the purpose of this question we have: a web service at example.com a secret key shared between a user and the server [K] a consumer ID which is known to the user and the server (but is not necessarily secret) [D] a message wh... | So you want to rate limit users. You really don't need to encrypt the message, then. You need a balancer. If this is due to concerns about high traffic, you better implement it outside your server and use sth like haproxy, lighttpd or nginx. Nginx by default limits requests to 50/minute per IP, and redirects to a custo... | 1 | 1 | 643 | 2012-10-24T00:40:11.623 | api_errors | softwareengineering.stackexchange.com | |
1,037,124 | Blocking image hotlinking on nginx running Ghost also breaks images on valid domain | I'm running Ghost on nginx 1.14.0 and Ubuntu 18.04. I am trying block image hotlinking by external sites. I've added the recommended code from this post (starts with location ~* .(gif|png|jpe?g)$) to prevent image hotlinking. Here is my site config file: [CODE] The issue is when I add this code block and restart nginx,... | By adding the [CODE] block, these URIs are no loger processed by the [CODE] block. See how Nginx processes a request . You will need to make the [CODE] statements available to the new block. The [CODE] statements can be inherited. For example: [CODE] | 2 | 3 | 472 | 2020-10-09T18:44:07.107 | api_errors | serverfault.com | |
177,011 | Permissions to create certificate | Is there a way to grant a user permissions to create certificate in SQL Server? | There is a [CODE] permission: [CODE] Here is a simple test: [CODE] Which returns (in the "Messages" tab): Before GRANT: Msg 15247, Level 16, State 1, Line 15 User does not have permission to perform this action. After GRANT: Msg 15581, Level 16, State 1, Line 26 Please create a master key in the database or open the ma... | 1 | 2 | 1,546 | 2017-06-22T14:39:45.737 | database_errors | dba.stackexchange.com | |
783,203 | MySQL performance problems after hardware upgrade and move to VM | Recently we've ran some (security) updates on our servers and rebooted the machines. Our development server did not came online anymore due to a problem with the GPU (integrated in CPU). We've replaced (and upgraded) the hardware on that machine and also converted the originally bare-metal machine to a VM (KVM) so we c... | You did not specified the vdisk cache type, so libvirt is assuming the most safest cache scheme: [CODE] , which imply that all writes are immediately synched to the physical disk. Such restrictive cache type is generally overkill for modern, cache-aware application, which uses write barriers by themselves to ensure imp... | 2 | 2 | 555 | 2016-06-10T12:35:18.323 | database_errors | serverfault.com | |
1,085,998 | Raid 10 Performance Issues | I am in the process of setting up a mirrored storage system for our Business. We don't have the budget for prebuilds so I am trying to do what I can to get the best bang for our buck. Here is our hardware breakdown: San1 and San2 Windows Server 2019 SUPERMICRO MBD-H11SSL-I Amd Epyc 7251 8 core CPU 64GB RAM 8GB x8 SSD f... | Here some thoughts, which may help to solve the issue: If you are using some kind of NIC-Teaming, it may affect performance of iSCSI and replication in unpredictable way. Most SAN’s/VSAN’s vendor don’t support Teaming and recommend MPIO instead. Disable NIC-Teaming. You mentioned Intel 25G NIC. XXV710 model may have is... | 3 | 5 | 320 | 2021-12-11T05:47:08.833 | api_errors | serverfault.com | |
780,717 | How do I cancel previous PPK file of amazon ec2? | I am in a big problem. actually I have given server details to third party extension support, in which I have provided them SFTP host xx.xx.xx.xx and username as ubuntu and PPK file. Now I want to cancel the previous PPK file or some alternate way using which no one can misuse my server using those credentials. My Netw... | Your problem seems to be that you have have given the third party a copy of the private key that is used to access the server. You could just disable access for that private key, but it would seem that other people are also using it, so your Network Administrator doesn't want to do that. You really should have asked th... | 0 | 3 | 311 | 2016-06-03T06:46:40.810 | infrastructure | serverfault.com | |
25,235 | How to view Description column in Gridview Microsoft test manager | I need to view the description column in greadview in MTM, the issue is that when I go to Column options I can not find the description column, is there is something I should do? or is it not possible? I need to copy paste test cases that have description from an excel sheet As you can see in the above image, Descripti... | I don't see the "Description" named column under Column Options via List View or Grid View. If the column is not listed under Column Options > Available Columns, then the column name does not exist as a default column name. Perhaps it is a custom column added by someone on your team. I would use Title & Step Actions co... | 2 | 2 | 592 | 2017-02-01T09:47:56.413 | data_quality | sqa.stackexchange.com | |
306,952 | How can MySQL be optimized for unattended operation on unreliable hardware? | I run some personal services on a not-entirely-reliable single-board computer. Sometimes it locks up and needs to be power cycled. One of these services is currently configured to use MySQL with InnoDB, keeping the database on an ext4 (IIRC) MicroSD card. My fundamental design concern here is that I need to give this s... | Consider a Galera Cluster spread across 3 such pieces of crappy hardware. It can keep running if any one node dies. If that node somehow spontaneously comes back to life, the other two will help it get caught up with recent changes. Ditto if the dead node is manually rebooted. If two nodes die, you are SOL. With 5 node... | 0 | 0 | 28 | 2022-02-03T04:43:53.727 | database_errors | dba.stackexchange.com | |
218,024 | Temporarily disable indexes before updating whole table | For testing purposes I periodically restore production backup into a new database (AWS RDS PostgreSQL instance) with [CODE] . In the new database I run SQL queries that anonymize sensitive data. However, a query like below updates over 20M records in a table that has ~10 indexes (created during [CODE] ). [CODE] This ta... | When you restore the data, use [CODE] . This will leave off the indexes. Then run the UPDATEs you want to, then run [CODE] | 4 | 7 | 3,987 | 2018-09-19T11:44:25.987 | database_errors | dba.stackexchange.com | |
584,646 | Generate CPU, memory, disk and network graphs from command-line | I would like to periodically (e.g. using cron) generate an image (e.g. png) containing graphs for CPU usage, memory usage, disk I/O load and network usage. I would like something not too ugly, so a [CODE] graph is a bit crude, but if that's the only option I'll take it nonetheless. After half an hour of googling, I jus... | Think about this... You need some way to track history in order to provide an input to the CLI-generated graphs. This is where something like RRDTool helps. There are tools like collectl that will collect data and organize it for another graphing utility . There are pretty solutions like NewRelic that aren't CLI-based,... | 4 | 6 | 3,294 | 2014-03-26T13:54:19.247 | infrastructure | serverfault.com | |
433,650 | Does splitting out Data, Logs, and TempDB matter using a SAN with SQL 2008 | I'm not a server admin. So be gentle. But I was just at a conference and in one of the training classes the Instructor explained some SQL DBA best practices. One of which was to separate out Mdf,Ldf, and TempDB onto different drives to increase performance. Now at our office we have a san. The Sys Admins created 3 san ... | Database files, transaction log files and temporary data files are usually placed on different volumes to reduce I/O contention between them, and this can also be extended further by creating multiple data files for each database, spreading them across even more volumes and telling SQL Server where specific tables and ... | 4 | 5 | 15,447 | 2012-10-01T13:25:27.717 | database_errors | serverfault.com | |
291,678 | FTP upload using filezilla on windows | I have a folder wherein, the contents of this folder is a "checkedout" from svn, now whenever i do changes, I commit back to the repository..this time, I want to upload all the contents of this folder to the production server, but the problem is, there are .svn stuffs inside..so how will i upload the files via filezill... | You should be able to use the 'Directory Listing Filter' options (View > Filename filters). One of the options is SVN and CVS filters, which excludes those files from the listing. A quick test on some of my files shows that if you drag a folder containing .svn folders to the remote host, the files are transferred, but ... | 1 | 2 | 2,019 | 2011-07-19T03:06:42.450 | infrastructure | serverfault.com | |
194,436 | Apache redirect old URls .htaccess issue | I'm having trouble redirecting old site URLs to their new places with a .htaccess file. The conditions don't seem to be matching. I'm sure I'm just doing something stupid, but I can't work out what it is. I've included the whole rewrite section here in case some other part of it is causing the problem, but it's the "re... | Turns out that %{REQUEST_URI} doesn't contain the query string as well. This meant that my check to match [CODE] was missing everything after (and including) the question mark. The correct rules are: [CODE] | 0 | 0 | 857 | 2010-10-25T09:56:22.987 | infrastructure | serverfault.com | |
581,552 | Opscenter 4.1 - ssl agent communication vs internal authentication | My question relates to Opscenter 4.0.2 and Cassandra 2.0.4 with SSL and Auth : agent can't connect . The provided answer does help, but creates another problem. To summarize, everything runs find until I enable ssl between opscenter and the datastax-agents. I am using DSE 4.0, my configuration is similar to the one in ... | The same bug that caused the first issue could also cause the authentication details to not get set correctly unfortunately. You can specify them in the address.yaml as well though. [CODE] | -1 | 1 | 741 | 2014-03-12T13:26:29.803 | database_errors | serverfault.com | |
170,684 | Best practice Azure Datawarehouse for less data-movements | I have a Table with a HASH on a Employee_Key, it also Hold a Date_From and Date_To. To build the facts I need to change it on a by_date column. But what is the best practice in Azure DataWarehousing with the less DataMoving as possible. I've tried with a INNER JOIN to a Dates table that was in ROUND_ROBIN, or tried to ... | For Azure SQL Data Warehouse, unless you have have millions of records, then it's unlikely you will really benefit from clustered columnstore indexes. In fact this could even be detrimental to performance. For smaller volume tables, you would probably be better off with either heap (for fast load) or clustered index. [... | 3 | 2 | 272 | 2017-04-11T07:06:25.030 | database_errors | dba.stackexchange.com | |
217,352 | Repair/Recover data from MySQL database | I have a big problem with a MySQL database stored on my raspberry (InnoDB engine). I'm not very expert in this field but I'll try to explain to you the problem. MySQL crash everytime that I try to start it and I need to recover the data stored inside the DB. The error is: [CODE] I just tried to start MySQL with the inn... | SOLUTION 1 (if *.ibd files are good): Backup /var/lib/MySQL folder with all data Remove /var/lib/MySQL and initialize the data folder with [CODE] command to not miss the *.cnf file OR Fresh install mysql Create new database as that one to restore Create all tables with the correct schemas (you can recover they with the... | 2 | 1 | 3,829 | 2018-09-12T08:04:23.437 | data_quality | dba.stackexchange.com | |
998,764 | Integrating nginx logs and elasticsearch app-search | I'm trying to setup a self-managed docker appsearch instance , together with kibana and elasticsearch, queried by a uvicorn python app, proxied by a nginx webserver My current issue is that the appsearch logs show the python default user-agent and IP in the appsearch logs (i.e. python-requests/2.22.0 and a LAN IP). I w... | Well, I've finally did it. It wasn't necessary neither sufficient to use yml or environment variables since the real client IP and user agent weren't static. I've changed first the nginx.conf proxy to this: [CODE] Then in each uvicorn FastAPI method I added a first [CODE] parameter: [CODE] The search_endpoint calls my ... | 0 | 0 | 252 | 2020-01-13T20:20:14.597 | bi_errors | serverfault.com | |
424,584 | pfSense router on a LAN with two gateways | I have a LAN with an ADSL modem/router on it. We have just gained an alternative high-speed internet connection at our location, and I want to connect the LAN to it, eventually dropping the ADSL. I've chosen to use a small PFSense box to connect the LAN to the new WAN connection. Two servers on the LAN run services acc... | If you setup your whole setup something like this: [CODE] so the pfSense gets 2 internet connections. The above setup should work without too many problems, as the servers will now only have one gateway to use. | 4 | 4 | 4,831 | 2012-09-05T15:18:58.383 | infrastructure | serverfault.com | |
37,761 | Appium 1.10.0 + iOS : Unable to accept permission alert | Team, I am facing issues to accept the permission on iOS using Appium. I have tried below options: capabilities.SetCapability("autoAcceptAlerts", true); driver.switch_to_alert() driver.findElement(By.id("Allow_buttonID")).click(); Still unable to accept the permission alerts i.e. Unable to tap on "Allow" My environment... | Working solution to accept alerts on ios: [CODE] | 0 | 0 | 221 | 2019-02-12T22:21:29.263 | data_quality | sqa.stackexchange.com | |
340,237 | Current time is off on a Windows 2003 Server DC | I have a single server that is also a domain controller in a cabinet, there are no other servers attached to its domain. I've reset the time in the BIOS (from what I recall) and in Windows to the current correct time, over a period of a few days the time will be off by about 20 minutes. Since it's a DC it shouldn't be ... | Since it's a DC it shouldn't be getting time over NTP, correct? No. Not unless you configured it that way. How would a domain controller automatically configure itself to use an external NTP source? That would be a really bad default behavior for many reasons. The DC holding the PDC emulator role is used as the time so... | 1 | 3 | 199 | 2011-12-12T20:51:04.880 | infrastructure | serverfault.com | |
108,019 | *Code owner* system: is it an efficient way? | There is a new developer in our team. An agile methodology is in use at our company. But the developer has another experience: he considers that particular parts of the code must be assigned to particular developers. So if one developer had created a program procedure or module it would be considered normal that all ch... | Like so many of these questions, I think the answer is: It Depends There is reason to believe that taking the position that every programmer should know every line of code is misguided. If we assume for a moment that someone with a deep understanding of a piece of code will make changes 5 times faster than someone who ... | 50 | 37 | 3,629 | 2011-09-13T20:36:31.640 | api_errors | softwareengineering.stackexchange.com | |
248,709 | Intel Team TCP Offloading not Working | I verified that TCP offloading is enabled in both the Intel properties for each of NIC that is the member of a two nic Adapter Fault Tolerance Team. Also, the output of [CODE] verified that offloading is enabled. However, when running [CODE] none of the connections are offloaded, they are all [CODE] . Has anyone seen t... | "TOE (TCP Offload Engine) enabled devices can not be added to an ANS team and will not appear in the list of available adapters. If a TOE enabled device is added to an ANS team, it will not be able to do connection offloading while it is a member of the team." Does this apply? http://public.support.unisys.com/pcproduct... | 2 | 2 | 922 | 2011-03-17T18:45:40.817 | infrastructure | serverfault.com | |
152,007 | Send Email To Multiple Recipients | Creating a group or mailing list is not an option, and this may not be possible, but I need a way of scanning [CODE] and pulling the email address(es) to email from there. If two email addresses have the same `vendorID ONE email should be sent not multiple. Below is DDL - and using this as an example purple and green s... | You can break down the vendors using a CTE, prior to using the COALESCE function to get a list of emails, with one per vendor. [CODE] Results are: [CODE] | 1 | 2 | 6,028 | 2016-10-11T18:42:26.040 | warehouse_errors | dba.stackexchange.com | |
330,477 | mysql table tables_priv index is corrupted and the best possible way to repair it | I am using MySQL with XAMPP. For sometime now I keep getting a server unavailable error and upon digging deeper I noticed that my [CODE] table index is corrupted (ARIA Database Type). I have tried running [CODE] and [CODE] to repair, but to no avail. I have also tried [CODE] but again this didn't help. The only thing I... | Here is [CODE] in MariaDB 10.3 [CODE] You could do the following [CODE] | 0 | 0 | 164 | 2023-08-20T23:38:24.740 | data_quality | dba.stackexchange.com | |
108,373 | Find rows where integer sequence contains a given subsequence | Problem Note: I refer to the mathematical sequences , not the sequences mechanism of PostgreSQL . I have a table representing sequences of integers. The definition is: [CODE] My goal is to find rows using a given subsequence. That is to say, the rows where the [CODE] field is a sequence that contains the given subseque... | If you are looking for significant performance improvements to dnoeth's answer , consider using a native C-function and creating the appropriate operator. Here is an example for int4 arrays. ( A generic array variant and the corresponding SQL script ). [CODE] [CODE] Now you can filter rows like this. [CODE] I have cond... | 10 | 4 | 1,826 | 2015-07-29T00:17:35.530 | database_errors | dba.stackexchange.com | |
16,729 | Why neural networks models do not allow for multiplication of inputs? | In a neural network, each neuron value is multiplied by the weight of the connection. Then, each neuron's input is the sum of all those values, on which we apply the activation function (sigmoid, relu, tanh, etc.). Why can't the input be a vector of all those values, so that I can decide to multiply them if I want, or ... | Using a low-level library, such as Theano or TensorFlow, it is likely that you can construct new schemes for reducing tensors (maybe via some learnable weight vector etc). In TensorFlow, you also get automated gradient calculations, so you should be able to still define a cost function and use existing optimisers, with... | 7 | 6 | 9,860 | 2017-02-04T03:46:45.427 | data_quality | datascience.stackexchange.com | |
124,149 | Installing Drupal: Database configuration problem | I am trying to install Drupal 6.16 on a clean website. I get through the "Verify Requirements" page easily. On the Database Configuration, I supply all the proper info, but "Save and Continue" returns me back to the same page, with no error message. I am unable to proceed past this point. I've verified my info with the... | Had the exact same problem...in my case, it was because Drupal expects you to copy the default.settings.php file to settings.php, not just rename it. Ensure you have both files and you should be good to go. | 0 | 1 | 325 | 2010-03-19T06:40:27.030 | infrastructure | serverfault.com | |
128,978 | How to use a CASE expression in the WHERE clause? | I am using a [CODE] expression in my [CODE] clause like this: [CODE] In the above query when I pass [CODE] in [CODE] input parameter then first condition should work, otherwise the second condition should work. As of now it's giving the syntax error, could anyone please tell me how to do this? | You cannot use the [CODE] expression in DB2 this way. The result of a [CODE] expression cannot be a boolean value. Your [CODE] clause might look something like this, if one were to blindly translate your code: [CODE] However, if you remove the redundant conditions it can be simplified like so (HT to ypercubeᵀᴹ, who wak... | 4 | 6 | 28,943 | 2016-02-11T12:05:08.197 | warehouse_errors | dba.stackexchange.com | |
711,115 | Allow internal DNS to be queried from the DMZ? | We have a mail gateway running in a DMZ, which is a relay for our internal mail server holding all the mail. We have come accross the need to use DNS from the DMZ to resolve names of internal services (such as the internal mail server, etc.). Should we allow DNS queries from the DMZ to LAN? This would result in a serio... | Complete the [CODE] file on the mail gateway server with the servers you would have wanted to resolve by DNS. | 3 | 2 | 3,662 | 2015-08-05T18:42:55.167 | infrastructure | serverfault.com | |
451,699 | How to point subdomain to a nameserver? | I've got an old crusty WHM/cPanel server which I'm trying to get rid of. I've got a new setup on shared hosting which is much cheaper in the long run. The problem is that there are a bunch of websites on the server whose domains I don't have access to. They're currently pointing to name servers of my domain ( [CODE] ),... | If I understand correctly you need the following setup? [CODE] where 123.123.123.123 is the IP of the new providers name server. As long as the provider has the DNS records for those domains then it should work fine. I don't see that they would block the requests for hosteddomain.com as long as the domain/dns is hosted... | 0 | 0 | 224 | 2012-11-24T04:35:10.080 | infrastructure | serverfault.com | |
154,406 | Is it a security flaw to log the class and method name when an exception occurs? | I have the following : [CODE] Is it safe to log the class and method name? | That depends on whether your code base is hidden or not. If you ship the product to the client then he can inspect the Java byte code trivially anyway, so logging class names doesn’t reveal any information the user cannot get anyway. For a server-side application, this is still true. However, it may be a security hole ... | 8 | 8 | 2,376 | 2012-06-26T09:24:31.443 | api_errors | softwareengineering.stackexchange.com | |
801,120 | Edge Transport Server missing from Hybrid Configuration Wizard | After initially running the Hybrid Configuration Wizard (but not migrating any mailboxes) we've since added an Edge Transport Server to our Exchange 2010 SP3 RU13 environment. The intention being to route O365 mail through the newly build Edge Transport Server I fired up the HCW to discover that the Edge server isn't a... | Just in case this helps someone else. It turns out that at the time of this post the Hybrid Configuration Wizard doesn't support configuration of Exchange 2010 Edge servers. As per https://portal.office.com/onboarding/finishhybridex2010#/ I've found some instructions to perform these steps manually under the heading Si... | 1 | 1 | 3,413 | 2016-09-05T11:46:54.280 | infrastructure | serverfault.com | |
347,492 | Is it bad practice to use a C++ compiler just for function overloading? | So I am working on a software design using C for a certain processor. The tool-kit includes the ability to compile C as well as C++. For what I am doing, there is no dynamic memory allocation available in this environment and the program is overall fairly simple. Not to mention that the device has almost no processor p... | I wouldn't go so far as to call it "bad practice" per se , but neither am I convinced it's really the right solution to your problem. If all you want is four separate functions to do your four data types, why do not what C programmers have done since time immemorial: [CODE] That's effectively what the C++ compiler is d... | 63 | 79 | 11,777 | 2017-04-20T18:45:27.213 | api_errors | softwareengineering.stackexchange.com | |
208,166 | GROUP BY needs ORDER BY NULL to avoid filesort | I've noticed again and again that when I [CODE] queries with a [CODE] clause, I get [CODE] as an extra condition. A long time ago I read a suggestion to use [CODE] in these cases to avoid the filesort, and it does indeed eliminate that unsavoury looking [CODE] condition. I would think that if no [CODE] clause is presen... | MySQL 5.7 Reference Manual / ... / SELECT Syntax If you use GROUP BY, output rows are sorted according to the GROUP BY columns as if you had an ORDER BY for the same columns. To avoid the overhead of sorting that GROUP BY produces, add ORDER BY NULL | 11 | 13 | 6,143 | 2018-05-29T18:50:04.070 | warehouse_errors | dba.stackexchange.com | |
84,620 | large SQL Performing quite slow (roughly 2 seconds for 290 rows) when having to deal with entries that can be NULL | [CODE] Maybe in prosa what I am trying to do: Entries in the [CODE] table represent changes. Each entry is a change. so a record with [CODE] can get changed, say [CODE] gets changed. That gives us a new entry with the same [CODE] but a new [CODE] and [CODE] the rest can be empty. To which project these entries (crucial... | Use DISTINCT everywhere you can and I don't understand why not to join instead of correlating [CODE] And the entire query will be [CODE] This must work twice farster I think, check the indexes also. | 0 | 1 | 52 | 2014-12-08T17:34:52.277 | warehouse_errors | dba.stackexchange.com | |
104,315 | Can't connect to remote SQL server from some machines | Our web server uses SQL Server 2008 R2. I have one development machine that connects to it with the IP address through SSMS and when testing my aspx website. I have several other machines though that can't connect to the IP through SSMS. I'm getting this error: A Network-related or instance-specific error occurred whil... | Here are some of the things from my connection issue checklist Check for an alias on the machine that can't connect Check for firewall rules Check and make sure the SQL Server drivers on the machines that don't work are up to date. Try connecting with servername:port rather than just servername Try pinging the SQL Serv... | 6 | 4 | 40,926 | 2015-06-17T14:06:20.103 | database_errors | dba.stackexchange.com | |
370,268 | Moving 10pm scheduled maintenance date, big deal or not? | The company I work for notifies its (90%+ non-profit) customers ahead of time that there may be a brief outage at 10pm and that their customer websites' ability to edit will be suspended for maybe an hour or longer at that time on a week night when it should not impact customers or their site visitors. There are usuall... | You have a couple of problems here but I believe the majority can be fixed with statistics and good communication. Why are you experiencing so many outages? This is probably PRs biggest worry. There have been two outages outside the windows and they've probably had a rough time because of this. The first thing I'd reco... | 0 | 5 | 181 | 2018-05-01T14:40:29.167 | api_errors | softwareengineering.stackexchange.com | |
655,736 | Apache keepalive timeout | I have a server with 2 cores and 2GB RAM which is struggling with memory utilisation. When I run free -m I regularly get under 50MB free - right now it shows 378MB free with only 1 user actually on the site: [CODE] When I run ps-aux I see lots of httpd requests which started yesterday and are still open. [CODE] Output ... | To confirm that Apache is taking all your memory, you can use this snipped: [CODE] Then type memperuser . Another useful way to see the shared and private memory break-down is to use ps_mem.py That will show you how much shared and private memory Apache is consuming. You should also take a look through all of the LoadM... | 0 | 1 | 13,848 | 2015-01-01T12:05:19.480 | infrastructure | serverfault.com | |
179,693 | How to restore with multicast 3 systems: Windows 7, Windows 2008 and Linux? | We have used an old version of Norton Ghost to do backups and restores of computers. There are few groups of computers with the same hardware and we have used multicast. We have had Windows XP, Windows 2003 and Fedora Linux on each computer. Unfortunately we have to install Windows 7 and Windows 2008 R2. Unfortunately,... | I have used Symantec Ghost Solution Suite 2.5 Multicasting to image Windows7 and Server2008 and it got the job done. I think that that will be your best bet in this instance. http://www.symantec.com/themes/ghost/index.jsp *I just burned multiple CDs to boot from, and rarely saw imaging issues with the software. | 0 | 1 | 469 | 2010-09-09T20:51:44.603 | database_errors | serverfault.com | |
855,552 | Keep the host name requested by the client to pass to remote backend when using Varnish cache and proxy pass | I am having some trouble configuring Varnish and the online documentation is not very clear (for me at least). I currently have Varnish cache setup on a Ubuntu server. I tested varnish with a local Nginx on the same server and it worked fine. What i want to do is use Varnish as a cache and reverse proxy for a remote we... | First of all, you typically should never specify a DNS hostname in Varnish backend definition. It is resolved only during startup and never updated. Specify IP of remove Nginx server instead. Second, what you're asking is already the default behaviour of Varnish. It is a transparent caching HTTP proxy, and as such - it... | 1 | 0 | 1,803 | 2017-06-13T15:28:26.117 | infrastructure | serverfault.com | |
416,576 | What http codes should i return when user request file which doesn't meet his requirements | i have a case where user can filter and download multiple pdf documents merged into single file. The client should display an error message when no document's meets the filter, and ask for confirmation when there are many documents because it might take a while to process them (let's say the confirmation should trigger... | The client should display an error message when no document meets the filter, and ask for confirmation when there are many documents because it might take a while to process them (let's say the confirmation should trigger at 10 documents). Both cases are [CODE] . [CODE] , [CODE] s resource exists, but I didn't find the... | 3 | 10 | 2,114 | 2020-10-05T09:18:08.570 | api_errors | softwareengineering.stackexchange.com | |
740,050 | If both forwarders have answer, why does DNS server still timeout on request? | In what circumstances would a DNS server request timeout when the forwarders already have the answer? For example, there appears to be a domain that I assume is having DNS issues at the moment us.army.mil. If I hit the forwarders directly with nslookup for type=mx then I get a response right away. If I hit our DNS serv... | When you cascade DNS recursing servers and introduce forwarders, that is the kind of problem you meet. One of your DNS servers is not answering correctly. All but authoritative servers can have a cache. Two possibilities: One of the authoritative server is not answering, but one of your cache has the good answer. One o... | 4 | 1 | 1,690 | 2015-12-01T17:13:56.800 | infrastructure | serverfault.com | |
223,111 | Restore master database | I want to restore my [CODE] database (.dba ). I am not able to restore from PowerShell because the backup of the database is taken from a different version of the SQL Server and the PowerShell or [CODE] method does not allow it. I moved to T-SQL, but now problem is T-SQL is not starting in single user mode. How to run ... | It isn't powershell itself that restricts you, it is SQL Server which doesn't allow restoring master from a different version. And the reason why you don't get in with SSMS is that SSMS opens several connections and only one connection is allowed with -m. So use SQLCMD.EXE to try the restore instead, but you will see t... | -1 | 1 | 623 | 2018-11-21T15:19:12.703 | database_errors | dba.stackexchange.com | |
1,114,355 | Configuring SSL with Nginx on Ubuntu Server | I have been following some tutorials online, and I have gotten my flask app up and running. I have added domain names, and they work correctly. However, now im trying to use Certbot to get a SSL certificate for nginx. This is the command since I already have created the certificate. [CODE] I keep getting the error: [CO... | Your [CODE] needs to contain the domain name of your service, not IP address. | 1 | 0 | 1,339 | 2022-10-30T05:12:48.580 | api_errors | serverfault.com | |
804,767 | DPM backup of VM breaks SQL backup chain/timeline | DPM 2012R2. Hyper-V failover cluster with CSV on Windows Server 2012R2. Guest is also Windows Server 2012R2 with SQL Server 2014. All latest updates, update rollups, cumulative updates and some recommended hotfixes. Story: Each installation of SQL in VM guests have its own maintenance plan with Full, Diff and Log datab... | Well. I finally did it. What really worked for me: On Host Server HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Agent\2.0 DWORD CopyBackupEnabled 1 That really made VSS backups copy-only, but they are still logged in backuphistory (somehow I didn't expect this and overlooked that it actually w... | 1 | 0 | 1,706 | 2016-09-22T17:34:10.457 | hadoop_errors | serverfault.com | |
673,473 | Zone delegation | I'm running a bind 9.8-server and want to delegate a sub-domain to a different dns-server (also administered by me), but I can't seem to get bind to accept my config and I can't figure out why. Below is my zone-file. I've anonymized it and deleted records of no interest for this topic. Basically I want 192.168.1.12 to ... | By defining the NS records below the delegation, you have inadvertently combined zone delegation and records within those zones in the same zone file. Try the following simplified config to prevent these warnings: [CODE] | 0 | 0 | 1,943 | 2015-03-06T11:44:33.710 | infrastructure | serverfault.com | |
972,367 | Should we upgrade MySQL, move to PostgreSQL, or go cloud? | We use an internal MySQL 5.5 server for our ERP system. Issue things are getting slow, and bosses are getting annoyed our SLA with our infrastructure service provider is ending soon. our small dev team will need to take over DB maintenance: DB Clustering DB Backups DB Crash Recovery Shortfalls: DB is not normalized DB ... | My first advice would be improving software but i guess you are already doing it or it's a no go. I would suggest scaling. Add 1 or 2 more servers, change a few lines of code and voila, you have 3 primary MySQL servers. | 1 | 0 | 61 | 2019-06-21T09:06:42.717 | database_errors | serverfault.com | |
498,875 | Cannot create a new computer account using the Windows active directory interface | When I attempt to create a new computer account using the Windows active directory interface by entering the new computer name and hitting next, I get a blank dialogue titled New-Object-Computer with no tabs and three nonfunctional buttons: back, finish, and cancel. It can only be closed with the task manager. The comm... | The Active Directory Users and Computers interface is highly extensible and can be customized. It sounds like somebody might've messed around with it. It sounds like the Object Creation Extension for computer objects isn't registered properly-- either in the registry on the DC or in your Directory's displaySpecifiers c... | 1 | 2 | 1,675 | 2013-04-12T18:51:38.753 | database_errors | serverfault.com | |
269,952 | What is causing BETWEEN to be replaced with <= and >=? | We have a Visual Studio solution for our SQL Server 2019 database, and it is stored in a git repo. One table has a couple of check constraints using the BETWEEN operator, like this. [CODE] When I used Redgate SQL Compare 14 to compare the repo to the database, it displayed the constraint reformatted with less than and ... | If you write a query and generate an execution plan, you will see that it, too, translates [CODE] to a pair of [CODE] and [CODE] predicates. These mean the same thing. Redgate is just showing you what SQL Server stored when you created the constraint, not what you typed. And it has nothing to do with SQL Server 2019. T... | 0 | 1 | 36 | 2020-06-26T14:16:37.247 | database_errors | dba.stackexchange.com | |
1,080,345 | DISM unable to repair Server 2016 | I've been fighting this for a few days now and could really use some help from the community. This started out as a failure to install windows updates on a Server 2016 Datacenter, which led to indications that there was an issue with CBS store corruption. SFC /ScanNow comes back clean, dism /Online /Cleanup-Image /Chec... | Ultimately the solution for the dism restorehealth failures was identifying the KB associated with the missing files in the winsxs folder. In my case these missing files were from KB4015217, which is no longer available on the windows update catalog. Fortunately I was able to find another server that was built around t... | 4 | 1 | 5,468 | 2021-10-12T18:35:08.137 | database_errors | serverfault.com | |
404,479 | How can I monitor memory usage for a windows-based JVM and trigger an alert if it gets too high? | I have an app that runs as a JVM in Windows 2008. I'd like to monitor it's memory usage and be sent an email if/when memory usage reaches a specific threshold. Is there a free utility or method for doing this? | The Win2008 OS can send alerts for performance counter threshold conditions. [CODE] | 5 | 4 | 31,135 | 2012-07-03T17:48:49.703 | infrastructure | serverfault.com | |
337,371 | Why would a development team insist that using a single solution for multiple projects in Visual Studio "increases interdependence complexity"? | I'm helping to manage an external team who are starting to develop new versions of some existing products. Historically, this team has always used a model of a single project in a single solution for about 30 modules in Visual Studio which go together to produce a deployable build. This is having a detrimental impact o... | You don't need to tell them how to structure their projects. Instead, make it a hard requirement that you can build the system from source by running one single script, without getting any errors. If that scripts runs Visual Studio or Msbuild or some other tools, and if those are called once, 50 or 100 times should not... | 28 | 58 | 16,387 | 2016-12-02T14:34:36.823 | api_errors | softwareengineering.stackexchange.com | |
110,907 | Passing current server name from SQL Server Agent job to PowerShell | I have a SQL Server Agent job that calls a PowerShell script in one step. And I want to pass the SQL server name and the current job-id to my script. With the job-id I have no problems. But with the server name... My PowerShell call looks like this: [CODE] The job-id works perfect, but the server name is empty. How can... | Replace [CODE] with [CODE] . [CODE] is for alerts. [CODE] will contain server name and instance name. Refer to document on MSDN . | 6 | 5 | 1,951 | 2015-08-13T12:54:11.963 | database_errors | dba.stackexchange.com | |
557,819 | Overriding Parameters in Previously Declared Puppet Resource | I'm attempting to rebuild nwaller's sssd puppet module to be entirely LDAP based and to be a little cleaner. In it we have a resource defined for each authentication domain of the form [CODE] This definition is then passed as a [CODE] which fills out a template for building the final [CODE] . This all works great if I ... | I would use Hiera . Hiera lets you decouple your variable data from your Puppet manifests. Hiera, as the name implies, is hierarchical, allowing for some interesting ways to override, as well as combine, variable data. First, modify your sssd:: domain declaration to perform Hiera lookups for the parameters: [CODE] In t... | 5 | 5 | 4,157 | 2013-11-27T15:17:07.987 | data_quality | serverfault.com | |
696,911 | Gmail bouncing postfix mail | I followed this tutorial to get email working on my VPS. I've been having problems sending email to Gmail. I can receive emails fine, but any mail that is sent to Gmail is bounced with the following message: Our system has detected that this message is 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sen... | The tutorial is great (I've followed it myself) but there are a few significant things missing, most of them DNS-related. Take a look here: http://blog.codinghorror.com/so-youd-like-to-send-some-email-through-code/ I can not stress this enough: you need a reverse DNS record (PTR). Most email providers will just drop me... | 3 | 1 | 4,812 | 2015-06-05T15:49:14.003 | infrastructure | serverfault.com | |
291,262 | InnoDB tables in an 8GB RAM server: Are these settings optimized? | I've been reading about how to optimize my database (MySQL 5.6.51) settings, and I've found an article suggesting to increase the key_buffer as much as possible. Here's my my.cnf file: [CODE] Should I keep these settings as they are? I'm administrating my own website database, but I'm not a proper Database Admin. Thank... | Take a look at the date on the article you linked to. It's from 2006, which is fifteen years ago as we write this. The latest version of MySQL at that time was 5.0.30. The [CODE] configuration option only applies to MyISAM tables. It's the size of RAM allocated for caching MyISAM indexes. InnoDB tables do not use the k... | 3 | 6 | 865 | 2021-05-09T14:08:12.393 | database_errors | dba.stackexchange.com | |
154,364 | MySQL Table Schema Design - Relationship with Junction or User Table | I am trying to determine the best approach to create a relationship between my notifications table and tables with user information within my current db architecture. The purpose of the notifications table is to allow users to send a notification (to request information) to other users within a specific organization an... | Query 1: [CODE] Query 2: [CODE] (I assume you have your id, his id, and other stuff to supply; do not supply [CODE] , it will be generated.) Query 3 is phrased imprecisely: [CODE] | 1 | 1 | 243 | 2016-11-05T16:55:08.377 | database_errors | dba.stackexchange.com | |
605,558 | Setting Postfix's sender_dependent_relayhost without a registered domain | I've been trying to link up SES with my EC2 instance (that has no DNS record) and am trying to figure out how to jerry-rig my [CODE] . Since I do NOT have a DNS record that associates to my ip, is it possible for me to use my servers ip instead of my DNS? I figure my sender_dependent_relayhost config would look like th... | The table used by [CODE] is same format with table in transport_maps. So, using IP address instead a FQDN was valid. The official documentation that you require to surround the IP address with [] . The interpretation of the nexthop field is transport dependent. In the case of SMTP, specify a service on a non-default po... | 0 | 1 | 493 | 2014-06-16T19:28:41.317 | infrastructure | serverfault.com | |
231,554 | How is the publish-subscribe pattern different from gotos? | My understanding is that Goto statements are generally frowned upon . But the publish-subscribe pattern seems to be conceptually similar in that when a piece of code publishes a message, it performs a one-way transfer of control. The programmer may have no idea what parts of the program are subscribing to this message.... | Yep, you are definitely missing something . Gotos would typically be used, like you said, to perform a one-way transfer of control. However, events do not do that. When the code fires the event, it knows full well that once event is published (or processed, queued, fired... etc) code execution will resume on the very n... | 11 | 19 | 1,753 | 2014-03-07T03:07:46.537 | api_errors | softwareengineering.stackexchange.com | |
449,325 | apt-get upgrade to exclude some updates | I want to exclude some package(s) when choosing to [CODE] . I'm thinking an edit to source.list probably? For example, maybe a package that updates often with minor point releases, or minor issues to attend to manually first. I'm thinking of percona specifically. [CODE] I still want to run [CODE] and have it update eve... | Pinning Packages or Holding. This should give a good overview of this. I have had to use it on a server to hold back updates and upgrades for MySQL until a content management system was ready. | 3 | 4 | 2,561 | 2012-11-16T08:43:05.157 | database_errors | serverfault.com | |
1,130,190 | Grant local impersonation user permission to share | We have a domain connected server (Windows Server 2016) named STORAGE. The server has a local "impersonation" user created by our Autodesk software called AutodeskVault. This user is only a member of the "Users" group on STORAGE and nothing more. I need to make a backup using the Autodesk software to a remotely mounted... | You can either: create a local account with the same username and password and assign that account permissions to [CODE] or create a domain account with the same username and password and assign that account permissions to [CODE] | 0 | 1 | 89 | 2023-05-02T17:00:29.520 | database_errors | serverfault.com | |
734,809 | Error while creating EC2 Dynamic Inventory in Ansible | I am new to Ansible. I had been using the following tutorial to set up dynamic inventory- https://aws.amazon.com/blogs/apn/getting-started-with-ansible-and-dynamic-amazon-ec2-inventory-management/ While running ec2.py, I am getting the following error- ERROR: Inventory script (ec2.py) had an execution error: Traceback ... | It looks like you need to install the boto module [CODE] should do that for you. | 2 | 2 | 4,326 | 2015-11-08T18:11:30.033 | database_errors | serverfault.com | |
274,793 | The best way to share a file uploads directory across horizontally scaling web servers | I'm currently trying to spec up a horizontally scalable cluster for a drupal based web app, that looks something like the colorful diagram below: The load balancer implements sticky sessions, so a user keeps state once they've been allocated a server to work with. Each app server has the following: varnish at the front... | The NFS server will have at least to have the same provision as the MySQL server, since they have basically the same function and limitations (both are places where you write data to). I don't like the idea of multiple writers to NFS, it makes it very complex to manage file locks and my experiences didn't go very well ... | 9 | 3 | 2,374 | 2011-05-28T10:07:50.050 | database_errors | serverfault.com | |
723,733 | CentOS + Virtualmin -> 403 Forbidden on every virtual server | I just installed centos & virtual min on a VPS (the VPS is mounted on Proxmox) I thought I configured it all right until i'm trying to access the first site I uploaded. It gives me a 403 Forbidden You don't have permission to access / on this server. the error_log is as follow: [CODE] I tried to chown the file to the r... | Check for SELinux denials in /var/log/audit.log, you might find that your newly uploaded website doesn't have the correctly labelled file contexts to allow the httpd process to read. If you're unsure, you could post the recent entries shown from the command: [CODE] You could run [CODE] , it might get re-labelled proper... | 0 | 0 | 967 | 2015-09-21T11:33:02.513 | api_errors | serverfault.com | |
1,020,581 | How can I fix the error Undefined variable: _ENV in /home/nginx/domains/mydomain.com/system/Config/BaseConfig.php? | I am trying to install a Codeigniter application in pure NGINX + PHP-FPM environment but it was previously developed in apache . After adding all the proper rules to Nginx in order to work with Codeigniter I am being faced with this error related to my $_ENV variable . [CODE] Here is the code calling the $_ENV variable... | Found the solution ! Changing the default of this variable in PHP.INI to off did the trick ! [CODE] | -1 | 0 | 598 | 2020-06-08T20:21:35.533 | spark_errors | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.