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 |
|---|---|---|---|---|---|---|---|---|---|---|
44,310 | After 5 years of working, SQL Server 2k5 Table now locking without any changes made to DB | I have a table: [CODE] . For 5 years, only the odd Deadlock has occured. If it happened, it happened on indexes which was on [CODE] table Now all of a sudden, deadlocks are everywhere - happens very minute. We have not made any changes to the application or database - the indexes rebuild every week. The problem is that... | Use SQL Profiler to trace your deadlocks and find a few example queries that are the root cause. Then copy that SQL to SSMS and view the execution plan for it. Look to see what kind of locks are being held when the query runs. It's almost certain that you are experiencing table locks - actually, as you state, someone r... | 5 | 1 | 987 | 2013-06-11T14:09:05.837 | database_errors | dba.stackexchange.com | |
697,951 | Windows welcome screen delay | I'm having an issue with 50+ laptop/desktop machines. When the user logs into the machine with a wired/wireless connection it usually takes up to 5 minutes to get past the "Welcome screen" on Windows 7. However, I have noticed that when the user logs in whilst completely disconnected from the network it loads instantly... | It sounds like some name resolution issue which results in timeout. You should run packet sniffer between Domain Controller and end station and see what's missing/broken. | 0 | 1 | 696 | 2015-06-10T12:52:50.927 | infrastructure | serverfault.com | |
201,249 | Does Microsoft have a non-hack method for turning off the 'X' to disconnect terminal RDP? | Hoping this goes here... We have issues when users disconnect from terminal services instead of logging off. Does Microsoft have a non-hack method for disabling the Close caption on the taskbar as well as disabling the 'X' in the control options? Our clients run on Windows 7 and Windows XP. No matter how many times you... | The right solution is probably to log out idle sessions (see Group Policy) after some timeout period rather than trying to influence client-side behavior. There's a ton of RDP clients out there, and they don't all run on Windows. | 2 | 9 | 980 | 2010-11-12T17:44:15.800 | infrastructure | serverfault.com | |
333,774 | How to allow predicate pushing on a view that uses group by | We have a table Ecom.McProductToVendorProductCodeMap that has a multi-field PK as shown: Then a view wraps that table to compute a metric and is grouped by the first two fields of that PK: [CODE] Now if we select against the view using those 2 fields as predicates directly, then an index seek occurs using those 2 field... | SQL Server is very keen to rewrite apply as a join before optimization begins. It is quite good at it too. It is less good at transforming a join to an apply, which is what you want here. As a result, when you write a join, it stays as a join. When you write an apply, it gets transformed to a join. There is no hint to ... | 1 | 3 | 99 | 2023-12-06T01:58:11.467 | warehouse_errors | dba.stackexchange.com | |
283,998 | How to monitor performance in application insights of an on prem SQL Server database? | Application Insights has great ways to monitor databases. After some online investigation, I saw an explanation of how to monitor actual queries . Monitoring SQL performance is possible too but what I found is an explanation for Azure SQL databases . I use on prem SQL Server.... What I want is doing such monitoring for... | I don't know about application Insight but many things already exists inside of an SQL prem server to allow you to monitor your server. I'll put here what I use in case it can help you. For the number of queries per hour/day I monitor perfmon counter "Requests batch per second". https://www.brentozar.com/archive/2017/0... | 0 | 1 | 857 | 2021-01-26T11:09:50.983 | pipeline_ops | dba.stackexchange.com | |
560,703 | What else does "netsh int ip reset" do? | According to this KB article when you run the "netsh int ip reset" command, all it does is to reset the content of two registry keys: [CODE] but on my test system it appears to do more than that. On a Windows Server 2012 R2 x64 machine, after my application does something wrong, if I try to set up a static IP to a netw... | That same KB article mentions that running the command will save a resetlog.txt log file. What does that log say? You can also run Process Monitor from SysInternals and have it monitor your netsh command. I did this on my Windows 8.1 workstation, filtering ProcMon's output by "process name > contains > netsh" and pulle... | 3 | 1 | 21,461 | 2013-12-11T16:03:56.350 | database_errors | serverfault.com | |
389,696 | Centos /etc/hosts doesnt resolve my hostname | [CODE] How do I fix this? This is on a fresh Centos6 build...does this not come configured by default? | edit [CODE] and change the [CODE] setting to say [CODE] instead of [CODE] . Edit /etc/hosts and make sure you have a line [CODE] . If you already have such a line, make sure that [CODE] is the first thing after the ip address. Doing this with [CODE] instead of [CODE] is also common, valid, and acceptable. Don't remove ... | 2 | 7 | 13,916 | 2012-05-16T15:32:26.053 | infrastructure | serverfault.com | |
546,472 | Inspect IPSec payload prior to encryption | I have a Windows 7 IPSec VPN setup. When inspecting the IPSec packets generated by Windows in Wireshark the corresponding payloads are, as expected, encrypted. Is there a way to inspect the non-encrypted payloads for debug? | Due to the way that Wireshark works on Windows it can't inspect any packets except those that physically leave the NIC. See loopback in the Wireshark Wiki. Since the packets are already encrypted by the time they leave the NIC there is no way to readily use Wireshark to analyze IPSEC encrypted packets. It is theoretica... | 1 | 0 | 176 | 2013-10-16T16:06:53.100 | infrastructure | serverfault.com | |
832,274 | Containers for HPC batch processing | We are facing the problem that a lot of people want to run different scientific software on our high performance computing cluster. Every user requires a different set of libraries and library versions and we do not want the administrator to deal with the installation of a new library every time. So we are thinking abo... | We use docker containers extensively for ephemeral batch type jobs. In our case, it's intensive 3D imaging processing, but each container processes a "batch" of thousands of related images. We've found this use case to work very well, there's no reason to not use docker for it. Here are a few things to think about when... | 1 | 3 | 346 | 2017-02-13T14:30:37.060 | pipeline_ops | serverfault.com | |
301,141 | Which dmv can help identify the cost of index maintenance for exisitng and missing indexes? | I want to identity: Indexes that are costly to maintain. Missing indexes along with their maintenance cost. By maintenance I mean - the index maintenance during insert/update/delete. Which dmv can help me get this info? There are a couple columns in sys.dm_db_missing_index_group_stats like: avg_total_user_cost, avg_use... | The answer to this question could be very broad as it depends upon the workload of Sql server where you want to do index tuning. A good starting point would be SP_BlitzIndex ( link https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit#sp_blitzindex-tune-your-indexes ) . It has various modes which you can use ... | -1 | 1 | 51 | 2021-10-14T18:26:34.240 | warehouse_errors | dba.stackexchange.com | |
323,554 | Are all boolean arguments flag arguments, and thus a code smell? | Martin Fowler describes the Flag Argument code smell as a "kind of function argument that tells the function to carry out a different operation depending on its value". Answers to Is it wrong to use a boolean argument to determine behavior? seem to conflate all boolean arguments with flag arguments. I think that questi... | No rule is absolute in software development and everything depends on context. That being said, I would not consider your example to be necessarily a good case for boolean arguments. An API like [CODE] does not tell me what is going to happen without me reading documentation or code, whereas functionality of [CODE] wou... | 12 | 11 | 13,114 | 2016-06-29T13:09:59.500 | api_errors | softwareengineering.stackexchange.com | |
524,932 | Is it possible to serve Apache's default internal pages with charset utf-8? | This question is specifically about the charset Apache (2.2 in my case) uses when serving it's default internal pages. For example, mod_autoindex directory listings, not-found ErrorDocument pages, 500-Internal Error pages, etc. The charset Apache is currently using for these built-in pages is iso-8859-1 (see screenshot... | Yes it is possible. You can do this with a combination of [CODE] , [CODE] and [CODE] , as follows: [CODE] | 3 | 1 | 606 | 2013-07-20T11:03:53.997 | api_errors | serverfault.com | |
403,133 | Postfix not working | A while ago I installed the postfix mail server on my ubuntu 10.04 VPS. At the time it was working good but now it's just stopped working. I was trying to enable SASL authentification and somewhere it must have went really wrong. I've studied the postfix main.cf and done everything in an orderly fashion to ensure that ... | I think you either need to disable sasl: [CODE] or, you need to enable (start) saslauthd. Once you have done either of those, you should resolve: [CODE] | 1 | 2 | 2,024 | 2012-06-28T14:07:30.830 | infrastructure | serverfault.com | |
949,663 | Can upgrading the BIOS bork the filesystem? | After upgrading the BIOS, I was no longer able to SSH into the box. I consoled in via IPMI and saw "Checking the filesystem" messages. I had the data center team take a look; they told me the filesystem is corrupt. Can someone help me understand how BIOS changes can affect the disk/filesystem? | A bad BIOS update can in principle break your system in just about any way. But a broken file system is a highly unlikely outcome of that. The most likely outcome of a bad BIOS upgrade is that the system either doesn't boot or it boots but doesn't detect all hardware. Neither would manifest itself as an error during fi... | 0 | 5 | 108 | 2019-01-18T07:21:40.463 | data_quality | serverfault.com | |
440,225 | Multiple SSL certs with Stunnel | I have purchased two PositiveSSL certs (seperately), one for manager.domain.com and another for domain.com. Originally I only needed manager.domain.com using SSL, but than I needed to use SSL on domain.com. Everything works fine with the one SSL cert for domain.manager.com, but when I add in the 2nd certificate data to... | You need to use TLS SNI to be able to present two different certificates on the same listening port. Be aware that some clients, notably most browsers running under Windows XP, do not support SNI. See the [CODE] option in the documentation. Split your certificates into different files (the same private key is used for ... | 5 | 5 | 7,940 | 2012-10-19T14:05:14.160 | api_errors | serverfault.com | |
83,550 | VMware guest still swapped after reserving RAM | The guest was swapping, after adding 100% memory reservation it continued to do so. After a restart - after some time not much changed. How can a VM who's memory is 'reserved' be swapping? | A reservation only ensures a given VM CAN have the memory resource it has been allocated IF it requests/uses it, it doesn't mean it won't be swapped out if it's not being used. | 0 | 3 | 1,455 | 2009-11-11T09:26:23.277 | infrastructure | serverfault.com | |
667,527 | why won't mysql accept connections from local programs? | I am getting a [CODE] error whenever a program on my CentOS 7 server tries to access the MySQL/MariaDB database located on the same machine. When I type [CODE] into the terminal, it replies with [CODE] . The complete stack trace is: [CODE] This server has been running applications with local database connections for so... | It clearly tells you: [CODE] So what you need to do is add mydomain.com as a permited host in the users table, mysql database. For example: [CODE] You can also add just '%' and it would work for any host, its like a wildcard. If you can't even get into the database to make the above changes, then you should change your... | 1 | 3 | 4,653 | 2015-02-13T21:22:31.797 | database_errors | serverfault.com | |
796,929 | IIS 7 SSL Name Mismatch Issue with Server on Workgroup? | I have a Windows 2k8 R2 IIS 7 Web Server that's in a DMZ that's not on a Domain and in a workgroup by itself due to policy. The server name is "server131". I am using a SSL certificate that is issued to "server131.my.domain.com" and accessing the web site via url "app.my.domain.com". This results in a SSL name mismatch... | You need to adjust the website binding in IIS to fit your certificate's name. | 0 | 1 | 475 | 2016-08-15T16:54:59.863 | api_errors | serverfault.com | |
933,745 | Nginx server static files with try_files under location | I have the following nginx configurations: [CODE] And I files /root/severbat/dist/index.html and /root/av/swagger-ui-dist/index.html exist. But if I open url http://localhost/severbat I see nginx greetings page instead of index.html However if I serve files under / it works: [CODE] nginx-acesss.log : [CODE] | Hello and welcome to ServerFault. I think your problem is that NGINX appends the matched [CODE] to the specified [CODE] , so when you enter, for example, [CODE] NGINX looks for the directory [CODE] and doesn't find it. That's how the [CODE] directive works in NGINX You might want to use the [CODE] directive instead: [C... | 2 | 1 | 11,423 | 2018-10-03T09:24:56.180 | infrastructure | serverfault.com | |
112,058 | Should a restore of a database file for Exchange 2010 always be in a "Dirty Shutdown" state? | First off, note that I am not doing this recovery because of any actual problem, I'm just testing it. I'm running Exchange 2010 on Server 2008 R2, and using Windows Server Backup to a remote file share for the backups. I have to assume I'm doing something wrong because all of the documentation I've found hasn't helped ... | Please take a look at THIS article, at the bottom it states that a DB backed up and restored to an alternate location using Windows Backup will be flagged as dirty. | 3 | 1 | 2,007 | 2010-02-11T20:53:06.347 | database_errors | serverfault.com | |
917,156 | Compatible hard drives for Powervault MD3000i | I recently acquired a Powervault MD3000i with several hard drives already installed, and was looking to see if it were possible to purchase additional hard drives without going directly though Dell. The links I found online for the supported hard drive matrix were broken. Looking under the support section on Dell's web... | I ended up speaking with Dell support regarding this issue and am adding this as an answer to help clarify this for others if they have the same question in the future. It was determined that the drive MUST originally be from Dell and have factory installed Dell firmware. I has hoping that we could buy the same model h... | 1 | 1 | 1,067 | 2018-06-18T17:17:43.863 | infrastructure | serverfault.com | |
342,302 | svn: The specified baseline is not the latest baseline, so it may not be checked out | I am facing a strange problem while performing a svn commit operation. On linux(suse), when I try to commit, svn fails and gives the following error. [CODE] But when I try to commit the same thing on windows(I took a checkout of the repository on the windows xp using tortoise svn) it works. Now I am totally confuse why... | [CODE] did the trick for me. | 0 | 0 | 1,535 | 2011-12-19T10:58:32.537 | infrastructure | serverfault.com | |
19,959 | Performance testing using Jmeter | I am new to JMeter and I want to learn JMeter step by step. Would you suggest me the easiest ways that how can I start a performance testing using JMeter?? Thanks, Matvey H | I believe the best option to start with is JMeter official User Manual .Given you read it end-to-end and execute mentioned examples to get understanding on how this or that test element works - you'll be good to go to start load testing using JMeter. More detailed information on each Test Element can be found at Compon... | 1 | 1 | 133 | 2016-06-05T03:56:56.970 | data_quality | sqa.stackexchange.com | |
549,991 | Why does `rpm` show 3 httpd packages, and which one provides the real httpd? | I ran [CODE] on my CentOS5 webserver a few days ago. Today I just noticed that I have 3 httpd-* rpms! How can I end up with three RPMs for httpd (My other servers only have one httpd rpm). I want to make sure that my server has a patched, updated version of [CODE] . How can I tell which one of these packages provides t... | I'd rebuild the rpm database as well. I usually just do: [CODE] but here's the longer, safer, official method: http://www.rpm.org/wiki/Docs/RpmRecovery | 3 | 1 | 453 | 2013-10-31T18:47:27.400 | infrastructure | serverfault.com | |
72,433 | Is my server being hacked? | Possible Duplicate: My server's been hacked EMERGENCY I got this weird page, which I am very sure was not created by me: [CODE] Where the hell does it come from? Is this a virus?? My blog site, blog.domain.com was fine few weeks back. But now, all of sudden, when I go visit my blog, its become blank page and display: [... | I've seen that sort of iframe embedded before. Someone has definately hijacked your page and embedded the link. Remove all references to it that you can find, and change ALL your passwords . Cheapo hosts never like to admit they've been hacked, so I wouldn't expect much help from them | 1 | 3 | 439 | 2009-10-08T07:48:57.283 | data_quality | serverfault.com | |
5,897 | Testing asynchronous concurrent systems in a systematic way | Problem I have a system with two logical threads, living on different machines and operating concurrently and asynchronously . First one receives data from an external system and puts them into DB. The latter receives action requests from the external system, and based on the data stored in the DB, it takes one decisio... | When executing tests (either manually or automated), you must be careful about your assumptions. Always explore if an application might be time/wait sensitive as you are conceiving and executing your tests. Always consider - what would a single user do (regarding wait period)? What would many users do? What happens if ... | 2 | 3 | 477 | 2013-04-07T12:21:04.930 | data_quality | sqa.stackexchange.com | |
84,471 | SQL Server 2005: reclaiming LOB space | I've got an interesting table in one of my DBs that's confusing me. The table in question has a a few LOB type columns (two nvarchar(max) and a text) and it looks like there's some strange space issues going on. from this query: [CODE] I get: [CODE] (there's just under 8000 rows in the table, each row has a data length... | Ok, I figure I'd update this in case it helps someone else. Ended up working with MS Support on this issue, and apparently there's a background worker thread that is responsible for releasing the space. In this case it had stopped working. Easy fix was to restart the SQL server. Cheers Andrew | 2 | 1 | 269 | 2009-11-13T16:42:15.403 | database_errors | serverfault.com | |
782,530 | Forcibly disconnect spammers | I have Postfix, Dovecot and Amavis on my Ubuntu server. Recently, I get every 4 minutes a connection from IP 155.133.82.96, which appears to be Windows XP and maybe has a virus. Anyway, I found the way (after a lot of Googling) to make my Postfix not delay client access checks and I reject that IP. However, it stays ar... | This address is part of a network served by a provider in Poland: http://www.tcpiputils.com/browse/ip-address/155.133.82.96 I have also often scans against my MTA coming from that network, mostly/only for SASL login break attempts. What I recommend to keep that stuff away: A solution with Postfix only is not possible a... | 1 | 1 | 63 | 2016-06-07T17:51:20.180 | infrastructure | serverfault.com | |
634,339 | How to disable Null and Weak Ciphers on 389-Directory-Server | I am running 389-DS on CentOS. Version - '389-ds-base.i686 1.2.11.15-34.el6_5'. Security scans revealed that NullCiphers were found on Port 389 and 636. I tried to disable them by shutting down DS, editing the 'nsSSL3Ciphers' on all '/etc/dirsrv/slapd-/dse.ldif' files, and starting DS. nsSSL3Ciphers looks like this now... | You can either fix the ciphers manually as suggested in other answer or, when applicable, simply upgrade to FreeIPA 4.0.3 which fixes the ciphers out of the box ( upstream ticket ). This is what I get with FreeIPA 4.0.3 or 4.1.0 Alpha1: [CODE] | 0 | 1 | 3,077 | 2014-10-08T04:19:02.787 | infrastructure | serverfault.com | |
802,953 | 404 error setting up subdirectory in nginx | I'm adding a subdirectory /blog onto my server which is a wordpress installation. I've setup the following config on nginx but getting a 404 error on /blog. The rest of the site/config is working perfectly. What am I missing? domain.com [CODE] | WordPress uses PHP and currently you have PHP set up for the document root [CODE] , but not for the document root [CODE] . You need to add a nested location block: [CODE] The [CODE] modifier is necessary to make the prefix location take precedence over other regular expression locations at the same level. See this docu... | 0 | 2 | 7,399 | 2016-09-14T10:45:06.893 | infrastructure | serverfault.com | |
661,801 | Out of 2 VMs and their 1 host, only 2 at a time are reachable from the LAN | I have a VMware vSphere hypervisor set up with two VMs. I need to be able to reach the host (for configuration, etc.) as well as both VM's from my client (which is also in the same subnet). I want to set up a PoC Hadoop cluster, and the client will need to connect to all of the VM's. Yesterday, I was able to ping the h... | I would check the port configuration of the connecting switch to see whether there is a MAC address limit--some companies will enforce to allow only a certain number of MAC addresses per port. | 1 | 2 | 376 | 2015-01-23T09:06:58.620 | hadoop_errors | serverfault.com | |
1,003,383 | SSRS Report Builder Error: Target Principal name is incorrect | Here is our problem, when using SSRS Report Builder we are able to successfully connect to our data source with no errors, but when we try to connect to a data set we get the following error. Everything was working normally, this issue just started appearing about two weeks ago. Other than trying to access a dataset on... | For anyone who ends up with the same issue, here is what solved it in this case for us. The root cause was not the certificates. It was actually the Data Source used in the reports. When the report server was originally configured, the data source created for us had a connection type of "Microsoft Azure SQL Database" W... | 1 | 0 | 1,193 | 2020-02-17T12:48:21.053 | database_errors | serverfault.com | |
228,896 | Create a view for A table with new columns JOIN(ed) on B table queries about the last maching records with certain parameters. How to simplify code? | I'm not sure if I can ask this question here. Let me know if I can't. Basically, my code works fine, but I would like to improve the code itself. I'd like to improve this code to require fewer lines (faster is optional, but not mandatory). I think my code could be optimized in space because it performs two queries abou... | (Getting rid of some redundant parens, plus wrapping and indenting:) [CODE] [CODE] needs an index on [CODE] , but you effectively have such since InnoDB tacks the PK on the end of any secondary key. Other indexes needed: [CODE] If you are using an old version of MySQL, [CODE] is problematic since it would repeatedly ex... | 0 | 0 | 28 | 2019-02-04T23:14:59.797 | data_quality | dba.stackexchange.com | |
287,749 | Can wget convert links within a local html document? | I know that wget can fetch a remote page and its dependencies and rewrite the html so that image [CODE] attributes reference the newly downloaded images. I am trying to convert local html files that reference images on the Internet. I'm using [CODE] All of the referenced images are downloaded to the appropriate places ... | Try this: [CODE] | 9 | 3 | 5,102 | 2011-07-07T01:43:11.950 | infrastructure | serverfault.com | |
7,765 | Determine Oracle session client character set? | I know how the database characterset ( [CODE] in [CODE] ) and the client character set (the client environment setting [CODE] ) interact. What I can't find out however, is how or if I can determine, for an established session , what Oracle thinks the current client characterset is. Is this possible at all? Note: [CODE]... | I am a little doubtful that this is exactly what you are looking for, but [CODE] shows the client nls_lang environment variable on the client. I don't think there will be a SQL query you can run to give the 'current' setting because AFAIK the server is not aware of what translation is done client-side, so any command t... | 9 | 9 | 55,492 | 2011-11-11T11:02:13.567 | database_errors | dba.stackexchange.com | |
442,610 | Can't access to a iSCSI volume | I have a iSCSI target on a customer place I'm using from an old Fedora (Core6) server. I configured it and formatted as ext3 (mistake, now I know) and I've been working with it for some time. Now I need to access this volume from other machine. As far as I've read, I can't do it safely from two machines at the same tim... | fdisk reported labels don't mean much nowadays -- in fact as MS-DOS partition tables fall out of use, it even can be entirely misleading. If you want to know what's on a partition, better use [CODE] : [CODE] | 1 | 3 | 2,235 | 2012-10-26T09:30:02.070 | api_errors | serverfault.com | |
608,947 | tcpdump: "ethertype Unknown"? | While debugging a DNS problem (apparently UDP packets get lost on the network), I'm stumbling upon many (but not all) "ethertype Unknown" messages such as follows. Tcpdump is run with "-n -i any port 53" [CODE] What would cause these? Could it be related to hardware offloading to the nic? Is it harmful? | It looks like there is an offset of 4 bytes in the dump. The ethertype is "0800" but tcpdump believes the ethertype is "0045" which is really the beginning of the IP header. Maybe you are using a VLAN (which adds 4 bytes to the frame). Yes, it can be related to offloading, or to the interface (eg. use eth0.X instead of... | 6 | 4 | 10,660 | 2014-06-30T11:47:45.993 | infrastructure | serverfault.com | |
610,996 | I get apache error | Hi can you plese help me. I get an error on php apache and i dont't know how can i fix it. Error: [CODE] | Those errors are being caused by something scanning your server for common vulnerabilities - you can't really fix that, since getting scanned by stuff is a normal part of having a service on the internet. If your system's well secured and up to date, this kind of scanning is nothing to worry about. | -7 | 2 | 1,416 | 2014-07-08T16:04:39.767 | infrastructure | serverfault.com | |
760,386 | ISCSI, MPIO and Target-IPs | Today I played around with ISCSI, MPIO and performed some tests. Some went as expected, someothers delivered results I cannot explain. The Test-Environment was 2 virtual machines, named [CODE] and [CODE] . Both VMs have been assigned with 2 NICS, let's call them [CODE] , [CODE] , [CODE] and [CODE] , to make it clear wh... | You should the iSCSI target on the host, not the VM. Why ? because by dooing so you scrap all the bonus the host give, like that; If you are using Microsoft's iSCSI initiator within the virtual machine, you cannot perform snapshot operations on the virtual machine because it is not supported. For more information, see ... | -1 | 0 | 139 | 2016-02-29T00:33:56.137 | infrastructure | serverfault.com | |
519,910 | Include page url in php error_log | I'm working on sorting out all my php errors. I've just setup so that all errors go into one log so I can view them. The problem is that I can't really see what page someone trying to access that gave them an error. Of course I can see the file where the error was generated, but these are often includes used on other p... | Customize the error message with set_error_handler() Someone already posted its code to address a similar issue : http://www.php.net/manual/en/function.set-error-handler.php#95206 | 3 | 2 | 1,284 | 2013-07-01T13:42:09.133 | infrastructure | serverfault.com | |
69,881 | Lock down Wiki access to password only but remain open to a subnet via .htaccess | Basically we have a Wiki that has some sensitive information stored in it - not the best I know but my predecessor set it up. I want to be able to request password access from any one who is not on the local network subnet. Those on the local subnet should be able to proceed without entering a password. The following .... | you are wrong in this line [CODE] should be [CODE] Look at the table in [CODE] documentation | 2 | 3 | 718 | 2009-09-30T09:34:44.540 | database_errors | serverfault.com | |
135,983 | Remove accidental duplicates in PK table, cascade changes to FK table | Lets say I have three tables in a postgreSQL database, one of plants, one of samples, and one of mappings to change variables in plants. There is a PK-FK relationship between plants.id and samples.tree, and a constraint on table plants that every genus-species combination must be unique. But some, of the entries in tab... | This solution requires first that there aren't any conflicting or cascading information in [CODE] ; to work, the following query must return no records: [CODE] The queries to update your tables are: [CODE] The table [CODE] may have more dependencies than just the table [CODE] . You may check through the following query... | 1 | 1 | 304 | 2016-04-20T20:07:17.747 | database_errors | dba.stackexchange.com | |
6,649 | Testing bimodality of data | I am trying to see if my data is multimodal (in fact, I am more interested in bimodality of the data). I performed dip test and it does evidence against unmodal data. However, I want to see, in particular, if it is bimodal. I believe silver man's test can be used. However, I couldn't find the implementation of it in ei... | There has been an answer on this question, please check it : Test for bimodal distribution | 5 | 2 | 5,118 | 2015-07-31T17:20:10.873 | data_quality | datascience.stackexchange.com | |
440,610 | How does a JIT compiler actually emit and then call the emitted native code? | Assuming that a VM runs a JIT compiler on otherwise "interpreted" code, such as a line by line interpreter or some form of bytecode/IL code and determines that it can create optimised native code for some part of what is running, what mechanism is actually used to "emit" and then call the emitted code? If I was writing... | If I was writing a normal compiler, I couldsimply write the desired binary to a file, to be run later by the system in whatever manner it usually would be, but how would a JIT compiler do that during runtime, running the new code within the same process that created it? There is no reason a JIT compiler couldn't do the... | 6 | 9 | 867 | 2022-08-25T05:42:30.113 | api_errors | softwareengineering.stackexchange.com | |
939,869 | Port 80 mixed up among clients using DNAT | I'm trying to set up a network like this: ...but I'm facing an issue. Here's the point: If I try to reach (e.g.) mywebsite1.com from external it works like a charm and it's shown my wonderful website but whenever I try to run (e.g.) apt-get update from inside the Virtual Server 2 it throws an error like " Failed to con... | Your provlem is your dnat rule has no destination address filter on it, you need to add '-d 192.168.1.30' to the rule. | 0 | 1 | 137 | 2018-11-13T19:32:09.527 | api_errors | serverfault.com | |
215,512 | Database Entity Design for Enumeration Table | I have an enumeration of ~10 values - they are Char such as A through K. These are all unique. They are used for two purposes - an application is forced to select acceptable values and also there is a many to many relation between product and this enumeration table. Is it bad practice to set the Primary Key as simply t... | If there was any sort of choice to be made by your designers or users in the selection of these values I would go for the surrogate ID approach. What has been decided can be un-decided and the change will be easier with surrogates in place. Since you are adamant the values are fixed by a Law Of Nature (or, at least, so... | 2 | 1 | 37 | 2018-08-21T17:58:55.300 | warehouse_errors | dba.stackexchange.com | |
918,716 | How do I access TCP connection? | I am extremely new with networking and am learning about the TCP Layer; I'm writing software thats going to speak with a tcp server. I tried googling: [CODE] and [CODE] but i cannot find how i can communicate with a tcp server. is it something like [CODE] i apologize if this is extremely easy but like i said im new to ... | TCP is a transport layer protocol, something like [CODE] operates on application layer protocols (e.g., HTTP). Look up the OSI 7-layer model to learn more about the specifics as this question is very broad. | 0 | 0 | 136 | 2018-06-28T19:26:57.507 | infrastructure | serverfault.com | |
595,041 | Server 2008: Keyset does not exist when installing scheduled task | The product I work on has an installer that does a whole bunch of things, including installing regular files, setting registry keys, installing websites and web services on IIS and creating scheduled tasks. We have used this installer for years and now and then we have an issue with it but we can usually get it sorted.... | We found that we had to delete/rename the [CODE] folder in [CODE] . Once that was done we had no issues. | 1 | 1 | 1,601 | 2014-05-14T12:49:06.630 | infrastructure | serverfault.com | |
85,609 | Cheap server platform with support for >12 GB RAM | I'm looking for the currently best (as in value for the money) cpu/chip/motherboard combo to build affordable application servers that support a lot of RAM (at least 12 GB; better more). As I want to build the servers myself, I'm not looking for any server vendor recommendations as Dell etc. The servers will mainly be ... | I'm looking for the currently best (as in value for the money) cpu/chip/motherboard combo to build affordable application servers that support a lot of RAM (at least 12 GB; better more). For value, AMD Opteron servers nearly always beat Xeons in terms of cost. For one, older Opterons are very economically priced. Two, ... | 5 | 7 | 1,132 | 2009-11-17T17:47:38.717 | infrastructure | serverfault.com | |
108,365 | ValueError: Must pass 2-d input. shape=(15129, 10, 1) | I'm having a problem with reshaping a DataFrame, after doing this [CODE] I'm getting this error [CODE] | You have to convert your DataFrame to a numpy array first. Try this: [CODE] | 1 | 0 | 10,290 | 2022-02-20T21:53:13.633 | data_quality | datascience.stackexchange.com | |
184,714 | Good way of dealing with security scanners on a web server | I'm wondering, what would you guys recommend when it comes to deal with people scanning your web server for potential vulnerabilities. Any good approaches on how to stop this? Would it help to block their IP at the firewall level? I was thinking that perhaps adding an iptables' rule to block or rate the limit of incomi... | Any good approaches on how to stop this? Ensure that your server is secure, and they'll leave you alone. | 2 | 1 | 235 | 2010-09-26T02:16:47.353 | infrastructure | serverfault.com | |
4 | Getting non-programmers to understand the development process | When starting a project for a company that's not primarily a programming company, one of the expectations is that there's a finished product at the end free of all bugs and does everything needed right away. However, that's rarely the case. What are some ways to manage expectations and explain to non-programmers how so... | Pretty much everybody with a computer has encountered the concept of "bugs" these days, so you might start there. "What's the most annoying way an application has ever failed on you? Multiply that by ten, and you'll have our users' experience if we don't devote enough resources to testing and maintenance." And don't un... | 66 | 34 | 10,023 | 2010-09-01T19:37:39.957 | api_errors | softwareengineering.stackexchange.com | |
514,952 | How can I reinstall the WinRM service on WS2012? | Whatever winrm command I issue I get, The client cannot connect to the destination specified in the request ... Error number: -2144108526 0x80338012 I checked all the usual suspects. The service is running. All updates have been applied. I would like to uninstall the WinRM service and reinstall but I can't find WinRM l... | Check your http.sys: [CODE] to confirm that you are listening on the loopback address. if not, add 127.0.0.1 to the list of listeners. | 1 | 2 | 22,545 | 2013-06-11T13:06:48.607 | infrastructure | serverfault.com | |
811,111 | Wildcard *.localhost SSL with Nginx and Chrome | I've attempted to set up a wildcard [CODE] for HTTP and HTTPS with Nginx proxying requests to [CODE] . DNSmasq is used for resolving [CODE] to [CODE] . Everything works fine for HTTP, but HTTPS connections receive the following error in Google Chrome: [CODE] The certificate is a self-signed certificate that I've added ... | So ultimately the answer seems to be that you simply can't create a certificate for [CODE] that Chrome will accept. My solution was to change to using [CODE] instead, which worked a treat. | 6 | 10 | 10,628 | 2016-10-25T08:32:27.603 | infrastructure | serverfault.com | |
562,701 | How to scale up a web server supporting long polling | I am planing to add more web application servers to support increasing clients, deploying HAproxy and Keepalived for load balancing and High availability. My server usage has the following characteristic: Jobs are not CPU intensive. Message are JSON text less than 100 character. Users will send message to server throug... | I don't think your 60k clients are the actual problem. You will more likely have problem with not enough file descriptors, but that should be easy to fix as part of OS configuration. Here's why connections will not be your problem. Each connection is characterised by its source ip address, source port, destination ip a... | 7 | 6 | 4,313 | 2013-12-20T10:59:08.123 | infrastructure | serverfault.com | |
327,538 | When using a CTE, why do I need to use SELECT twice in order to filter on values from an auxiliary statement? | [CODE] Here is a naive and simple example of a CTE. The auxiliary statement uses SELECT to retrieve ids. To filter on them I have to use SELECT or an exception is thrown. Why is this, Why is it a different pattern than using a subquery to make the same overall query? See: https://www.postgresql.org/docs/current/functio... | is there any performance hit? (doubt it) Should I just use a subquery? (doubt it) Typically, [CODE] is sub-optimal for this type of query. It makes Postgres - or any RDBMS for that matter - (try to) fold duplicates in the set to the right. Chances are, there are no dupes coming from a query like [CODE] , then that's a ... | 0 | 3 | 173 | 2023-05-25T19:08:57.117 | database_errors | dba.stackexchange.com | |
1,114,123 | Should you encrypt data between 2 servers in the cloud? | If I have several AWS EC2 and azure instances running on separate regions. I am using rabbitmq to exchange messages between them. Should I worry about adding TLS and encrypting those connections? In other words if server A is on AWS us-east for example and server B is in azure how bad will it be if they exchange inform... | Should you encrypt data between 2 servers in the cloud? Yes. Modern security thinking is that you don't consider your own network / datacenter as more trusted (than your WAN or the regular internet). Traditionally one would allow for more relaxed security standards in the datacenter, within the "secure" perimeter of yo... | 13 | 25 | 3,539 | 2022-10-27T06:44:00.123 | api_errors | serverfault.com | |
94,485 | Cannot generate SSPI context | I'm trying to connect between two SQL Servers to set up log-shipping. I'm getting the following error when connecting from the Publisher to the Subscriber: Cannot connect to DRBOX Additional information: Cannot generate SSPI context. (Microsoft SQL Server). I can connect ok from the Subscriber to the Publisher. Publish... | When I have seen this error it has been Kerberos-related as the server OS has to be configured to allow Kerberos. | 1 | 1 | 567 | 2009-12-15T10:45:38.980 | database_errors | serverfault.com | |
766,327 | Postfix SMTP authentication security hole | I have Postfix running on CentOS 6. Everything is working ok except for a security hole in the smtp. I keep getting spam emails sent from my address to my address. I have checked this out on telnet, and the server allows me to send emails to myself without authentication. If I try to send to an external email address, ... | You need to set sender ID verification in your mail server...receiving mail from your own ID is spoofing mails which can be stopped by settings sender ID and configuring SPF records in your DNS server.. | -2 | 0 | 515 | 2016-03-27T10:30:15.803 | data_quality | serverfault.com | |
282,752 | Mounting NFS directory causes creating Zero byte files | I have two Servers, Server X (IP 192.168.1.1) and Server Y (IP 192.168.1.2), both of them are ubuntu 9.1 i have created varnish load balancer on them for my drupal website (pressflow 6.22) I have mounted a directory of imagecache from server X to Y as below @X:/etc/exports ==> /var/www/proj/htdocs/sites/default/files/i... | Thanks All, i have found the problem. i should install the following packages on server Y in order to get imagecahe working fine: advpng optipng jpegtran jfifremove | 0 | 0 | 801 | 2011-06-21T19:44:51.903 | infrastructure | serverfault.com | |
72,829 | MySQL: Creating a database without root privileges | I want to have a MySQL user that will only able to create a new user+database(+password) combinations - without being the mysql root user for obvious security concerns. My idea is to have a secure user ( [CODE] privileges only) that will modify the [CODE] table directly, but I don't know if there are consequences. To b... | You can do it using the normal GRANT system in MySQL. But the user you're using will need all the same access they're trying to GRANT. You can only do GRANTs with the same permissions or less than your current user. Don't start messing around with the system tables, it's not necessary. | 0 | 3 | 1,972 | 2009-10-09T06:03:25.903 | database_errors | serverfault.com | |
733,541 | Web application access permission | I have a web application that uses SQL server . SQL server is hosted on a server and accessed using port 1433 . My question is will the user who is accessing my application required to be able to establish the communication with the port 1433 . As far as i know, the user will be opening the application login page using... | Your server that runs your website needs to have access to port 1433. The users that are accessing your application via the web do not need access to port 1433. These users communicate with our webserver over port 80. And your webserver in turn, communicates with your database server over port 1433. If your webserver a... | 0 | 0 | 42 | 2015-11-03T11:49:59.980 | database_errors | serverfault.com | |
102,575 | Sun Java VM does not create a crash report | When a Sun Java VM crashes it usually creates a hs_err_pid* file (crash report). However we have a Open SuSE Linux server where java crashes without leaving a crash report behind. A core dump is created (SIGSEGV) but no hs_err_pid* file. Are there circumstances where the Sun vm will not create a crash report? Or: how d... | The problem was, that the crash was very severe, that even the crash report routines were not able to do anything. Enabling core dumps and analyzing the system core dumps leaded to the root cause. | 1 | 1 | 3,614 | 2010-01-14T08:29:35.947 | infrastructure | serverfault.com | |
257,607 | Windows Server 2008 R2 and IIS7: Is there a default upload limit for FTP sites? | I created an FTP site on a dedicated server and got the user to connect right away. Still, when uploading a large file the upload speed doesn't go higher than 27 kb/s, I thought the problem was at my end but when I tried with another server I got a much higher speed for the same file. So I'm guessing there's a default ... | It sounds like speed throttling somewhere. Do you notice slow connections to your server with other protocols, IE like HTTP. Because you were able to upload faster to another server, it sounds like the issue is somewhere in your providers network. I would open a support ticket | 0 | 0 | 606 | 2011-04-09T02:13:00.043 | infrastructure | serverfault.com | |
419,643 | Separate responsibilities when public methods depend on other public methods in same class? | Recently I hit something like the following setup in our codebase, and I'm wondering if there's a preferred way to do it, to achieve the cleanest separation. [CODE] The code already loads a file, and now I want to read some metadata off of it. In the business logic, all this metadata is eventually thrown away, but some... | You can use [CODE] to avoid a public function being called by another in the same class. Alternatively you can also have a [CODE] class with metadata (including version) as its member field. [CODE] and return [CODE] and [CODE] respectively. | 1 | 3 | 87 | 2020-12-04T10:13:21.677 | api_errors | softwareengineering.stackexchange.com | |
119,978 | Allowing Remote Access to SQL Server but still keeping it protected? | I work for a company with a pretty standard internet presence. One dedicated webserver and one dedicated database server colocated at a datcenter. We are a MS house running Windows Server 2k3 and SQL Server 2k5 While most of our communication is from WebApp to DB server and back, we have one legacy VB.net Uberapplicati... | Can you configure a VPN, and then only allow access to the SQL server from authenticated hosts? | 3 | 2 | 141 | 2010-03-07T04:33:43.327 | api_errors | serverfault.com | |
867,369 | Changed Network Label on VCenter Server VM now Unable to Connect to Reset it Back | I didn't think it through, in vSphere on my vCenter Server VM I changed the Network from VMNetwork to VMotion. I did this with the intention of changing it back immediately, I sometimes do this as a trick on other VM's to fix an issue, however stupid me didn't think this through on doing it to the vCenter Server VM. An... | You obviously killed the vCenter port group connectivity. The only way back is connecting to the host directly, either through vSphere Client or by SSH (needs to be activated first). Another option would be to recover the vCenter server from backup, but then again, you'd need to login to a host. | -2 | 0 | 219 | 2017-08-07T19:44:08.207 | infrastructure | serverfault.com | |
502,305 | Linux networking port exhaustion | I've done as much research as I could on this without digging right off in the kernel source. There seems to be a large amount of disinformation/incorrect info on the subject, so I hope this answers the question for me and others once and for all. Strictly IPv4 speaking, is port exhaustion actually possible? Let me exp... | You have two main questions here: 1. Strictly IPv4 speaking, is port exhaustion actually possible? Yes. Take, for example, a load balancing router sending all connections to a NAT IP address. This is likely to happen when you have many [CODE] s connecting to the bottleneck of a single [CODE] . This means that your webs... | 16 | 11 | 20,638 | 2013-04-24T16:20:50.703 | database_errors | serverfault.com | |
155,909 | memory and time intensive php task | Sorry if this question has been asked before, but I couldn't find anything usable. I'm working on a project for a client and currently I have to loop through the users table which is about 3000 records and still growing. I have to do some calculations on a nightly basis which I am going to be using cron/php. The calcul... | If you really expect your table to grow, you should start thinking about batching the process, do your calculations in steps. The simplest way would be to have a secondary table that would hold the user id and the timestamp of when the user was last processed, and limit your cron script to loop through, for example, 50... | 4 | 3 | 5,733 | 2012-07-07T02:40:58.897 | api_errors | softwareengineering.stackexchange.com | |
161,282 | Finding the application behind ".net sqlclient data provider" | I'm trying to find which application is opening various connections on the SQL Server, all named ".net sqlclient data provider". From system monitor I got the machine name; On the client with [CODE] , I have found 4 connections all with the [CODE] yes this is windows and it is a MS SQL server. "Trace process in SQL ser... | [CODE] (MSDN) is always a good start, and you can query the [CODE] table or [CODE] (MSDN) DMV. Alternatively something like Adam Machanic's [CODE] can help find problem processes and queries. If you can't find what you're looking for directly in SQL Server, you'll be able to find things like the hostname/IP address and... | 6 | 5 | 20,465 | 2017-01-16T23:52:01.100 | database_errors | dba.stackexchange.com | |
6,641 | Is branching tests the only option for system with multiple versions? | Our system under test have schema that differs between system versions 1.0 and 2.0: new entities have been added, some have columns added. We used Hibernate to generate Java entities for both schema versions. Then, depending on which version we are testing, we are switching the classpath to those Java entities. This wa... | In my experience branching is the simplest way to handle multiple versions of the system in test. I'd suggest taking a look at this question and the answers, too: Strategies for automating testing on features that are only on certain environments In that one I've given a list of strategies that can be used, which also ... | 3 | 3 | 1,393 | 2013-08-16T11:47:03.330 | data_quality | sqa.stackexchange.com | |
460,901 | YUM dependency issue even though library is installed | We build our own php and mysql packages from source, this one is for the php-5.4.10 release, and host these at our own repository. Let's call this package custom-php and custom-mysql(-libs & -server) When I do a yum install custom-php on a server, yum lists a dependency problem: [CODE] The file libmysqlclient.so.18 is ... | rpm does not know anything about local filesystems. It only looks in it's own database for what is on the system. In your case that is a non-standard place to put the library. Generally the standard place is in [CODE] and yours is in /custom so rpm is not finding it where it should be. Here are two options.. 1) rebuild... | 7 | 4 | 10,854 | 2012-12-26T04:33:50.140 | database_errors | serverfault.com | |
55,759 | What is "spatial feature encoding"? Can anyone give a concrete example? | This book "Deep Learning and Convolutional Neural Networks for Medical Image Computing" mentioned a term spatial feature encoding On the other hand, CNN models have been proved to have much higher modeling capacity, compared to the previous image recognition mainstream pipelines, e.g., HAAR, SIFT, HOG image features fo... | Chatfield et al. provides a good survey of feature encoding methods. From the introduction to that paper (emphasis my own): The typical object recognition pipeline is composed of the following three steps: (i) extraction of local image features (e.g., SIFT descriptors), (ii) encoding of the local features in an image d... | 2 | 0 | 621 | 2019-07-16T09:20:24.257 | pipeline_ops | datascience.stackexchange.com | |
467,754 | Duplicity Incremental Restores | I use duplicity to manage an encrypted daily incremental and weekly full backup schedule for my Linux box. Though duplicity allows incremental backups, I could not find any way to do anything other than a full restore. I'm running a 2nd server where I restore the duplicity backup, but I want to keep this 2nd server in ... | I don't think you want to be using Duplicity to keep your second server up to date with your primary. This is why rsync exists and would suit your needs perfectly. | 4 | 2 | 1,833 | 2013-01-14T04:43:18.143 | database_errors | serverfault.com | |
64,932 | How to yield better AUC score? | I have a dataset with 5K records and 60 features focused on binary classification. Class proportion is 33:67 Currently I am trying to increase the performance of my model which is stuck at F1-score of 89% (majority) and 75% (minority) class and AUC of 80%. I tried Gridsearchcv and feature engineering. Though I don't ex... | I would not necessarily call it data issues. There is always some threshold that you just can not surpass, depending on the dataset ofcourse. Generally feature engineering and understanding the data will yield much greater increases than just hyp.par. optimization, which as you can see from the picture, yields often ma... | 2 | 2 | 863 | 2019-12-16T14:47:46.170 | data_quality | datascience.stackexchange.com | |
420,929 | Is this a possible/good RAID setup? | Earlier this week, one drive in our office's 2-year-old RAID5 array (4x 750GB Seagate drives, HP ProLiant 110 with Smart Array controller, running Windows Server 2003) failed. From what I know, RAID5 should be able to handle a single drive failure, but evidently critical OS files were stored on the failed drive (we kep... | Well, the good thing is that the HP Smart Array controllers allow you to divide a physical array (a collection of disks) into one or more logical drives (virtual disks of a specific RAID level). You can take four drives and create an array. You could then create a logical drive of say, 72GB, for the Operating system an... | 1 | 2 | 189 | 2012-08-24T18:06:28.710 | database_errors | serverfault.com | |
1,094,173 | Slow SSH - Failed to activate service 'org.freedesktop.login1': timed out - no systemd | I run Devuan Linux, which still uses sysvinit and does not use systemd. For a while now, I've noticed SSH logins are very slow. The log (/var/log/auth.log) indicates that DBus is timing out: [CODE] Searching around, I can see this is not an uncommon problem in the systemd world. However, I am not using systemd, and acc... | So I was never able to find an answer to this problem and ended up reinstalling the OS. If you're having a similar problem and found this, my sympathies. | 2 | 0 | 1,535 | 2022-02-19T10:51:02.520 | infrastructure | serverfault.com | |
670,627 | Win Server GPO Mapped Drive Missing "Connect As" functionality | We're having an issue trying to create a policy for mapping drives. We're unable to specify a "connect as" username and password. | I'm pretty sure Microsoft removed the functionality to allow you to store credentials in GPOs because it's insecure... Yup: http://support.microsoft.com/kb/2962486 So you need to write a script, or connect as the logged in user I believe. | 1 | 3 | 5,308 | 2015-02-23T04:35:25.847 | infrastructure | serverfault.com | |
391,332 | Graphite is plotting increments from Logstash in float | I was trying to mimic this logstash.net/docs/1.1.0/tutorials/metrics-from-logs I have following setup nginx(app server) ==sends the increment==>Etsy statsD=====>Graphite This setup is working fine since graph is being plotted just fine but not correctly. According to above configuration, I understand the graph step val... | Since this is an old question (at the time of this answer), I'm just throwing this here as a reference for anyone else wondering the same thing. Logstash's cookbook has an entry on understanding Graphite and how the data gets aggregated. See it here If you happen to be using a newer version of logstash, then you'll hav... | 2 | 1 | 1,634 | 2012-05-22T08:11:33.323 | infrastructure | serverfault.com | |
1,147,215 | Prevent routing loop with FwMark in Wireguard | I want to set up a VPN server so that the VPN connection is used only when accessing resources within the server. Normally, I'd do this by using the server's internal IP, but I want to use the domain name to access this server. There are a few ways to achieve this: Use a custom DNS server Bind another IP to this server... | Introduction There are two commands: [CODE] the low-level WireGuard ("WG") command that only affects a [CODE] interface's settings (including setting a mark for outgoing envelope traffic), and [CODE] which in addition will configure addresses, routes, and sometimes routing rules, additional routing tables, and even nft... | 1 | 2 | 1,744 | 2023-11-05T04:18:06.460 | infrastructure | serverfault.com | |
139,579 | nginx subdomain rewrite | Yet another nginx rewrite rule question How can I do a rewrite from [CODE] to [CODE] ? thanks in advance -- Deb EDIT: I'm sorry I didn't see the textile formatting removed the * from my question. I fixed it now. What I need to do is go from www.joe.domain.com to joe.domain.com, where joe could be any word. | Whats the significance of the extra period before domain.com? Is the goal to remove the www from the URL? If so, this should do the trick: [CODE] Don't forget to: [CODE] to load it up Source: NGINX Wiki | 8 | 7 | 19,906 | 2010-05-07T13:29:40.873 | infrastructure | serverfault.com | |
14,687 | net.sf.json.JSONException: Invalid JSON String error on jenkins | [CODE] I'm basically using a script on jenkins piepline to send data to grafana I'm facing this issue on jenkins version 2.235.1 The same script is working on another jenkins instance and it doesn't display this error I think it's caused by plugin deprecated version or jenkins itself I'm not sure if there is a workarou... | It is possible for [CODE] to fail due to whitespaces, leading and/or trailing. Appending [CODE] to the string could prevent this issue. [CODE] | 1 | 0 | 2,015 | 2021-09-16T12:03:58.913 | pipeline_ops | devops.stackexchange.com | |
847,657 | MySQL account has password, but only logs in without it | I am running Windows Server 2012 R2 trying to host a Drupal site. Because it is Drupal, I am trying to connect to a MySQL server rather than a MSSQL server. I created a new schema as well as a new user and I gave the new user a password. When I try to setup Drupal and connect to the server with a password, I get this r... | For some reason, when I changed the password in using MySQL Workbench, the changes wouldn't propagate throughout the server. I needed to change the password via the command line, then it worked. | 0 | 0 | 214 | 2017-05-01T21:37:40.270 | database_errors | serverfault.com | |
413,116 | How to apply patches to phantomjs port in FreeBSD 9? | I have installed FreeBSD 9 and I need to install phantomjs . It is available in [CODE] but the version is 1.0 while I need a more recent version. There is a patch to update to version 1.4.1 but I don't know how to apply this patch. I've googled this and read the FreeBSD Porter's Handbook several times but I'm still los... | You need to update your port tree. Run: [CODE] If you want to keep your port tree updated on a regular basis you can create a periodic script. This is the script I use on my dev machine, [CODE] [CODE] Don't forget to [CODE] and add [CODE] to your [CODE] file. | 2 | 2 | 525 | 2012-08-01T01:06:14.380 | infrastructure | serverfault.com | |
540,127 | What's special in restoring a DB in a MongoDB sharded cluster? | I'd like to migrate a DB from a replica set to another which belongs to a sharded cluster. Till now, this cluster has got only 1 shard, and no collection or database is really sharded. I mongodumped and restored this DB. From one of the sharded cluster's mongos, I can run a simple query like find() but something includ... | This isn't a problem with with mongorestore. If you create a new collection in a sharded database in 2.2+ you will see the same behavior. [CODE] Apparently the behavior was different in 2.0. [CODE] I opened SERVER-10381 to see whether or not this is expected if you want to follow it. EDIT: This is expected. When the qu... | 0 | 2 | 431 | 2013-09-19T07:58:22.220 | database_errors | serverfault.com | |
123,355 | SQL Server is running slow after a certain amount of time | We've been experiencing some issues with our SQL server recently. I have noticed that some of our SQL jobs are running longer than normal. One job normally runs in under 3 minutes will take over a day. A job that runs in about 15 seconds will take over 2 minutes. These jobs calls a simple stored procedure. I have looke... | I'm not sure how this recommendation will be viewed, but based on the vague nature of your problem description and report of steps you've taken, I'd recommend going with something that attempts to answer some of the 'what do I look for / at?' for you like the stored procedures Sp_blitz and sp_askbrent over at brentozar... | 2 | 3 | 658 | 2015-12-10T00:08:46.260 | database_errors | dba.stackexchange.com | |
212,239 | Secure LDAP Authentication with Active Directory | We are working on a web project where we need to be able to bind to an active directory domain and then pass the user's credentials to the domain to make sure the user has successfully authenticated before we allow them access to one of our web applications. We have HTTPS working fine for the front end to accept the cr... | I have read many places that talk about setting the TLS_REQCERT variable to never; however, I am worried about man-in-the-middle attacks and do not feel comfortable leaving the setting set this way. You are to be commended both for thinking about security and for understanding the implications of setting TLS_REQCERT. I... | 5 | 6 | 4,877 | 2010-12-14T00:03:03.253 | api_errors | serverfault.com | |
748,469 | Azure custom CentOS Image shows "Running (provisioning timed out)" | I created a VM using the standard CentOS 7.1 image in the Azure gallery. I generalized it and captured it as a base image for future deployments. However, once I spin up a VM using this image, the provisioning just runs for over an hour before finally displaying the status [CODE] and the new portal notifies me that it ... | I found the solution myself - I had to go in to the new Azure portal and reset the logon password to the same one I supplied when creating the new VM. Then I restart it from the portal and problem fixed! | 0 | 0 | 525 | 2016-01-12T13:31:22.977 | pipeline_ops | serverfault.com | |
255,831 | Unix samba accounts sync issue | I have installed samba-server, libpam-smbpass and smbclient on my ubuntu 10.04. And I have uncommented the following in my smb.conf file: [CODE] ANd I created a unix user account and logged in via shell to get the account activated. And I tried [CODE] , but I cannot login. And I tried this in the shell: [CODE] . And it... | Have you added the user to whatever SAM database that is configured in smb.conf? [CODE] You say accounts you created a while ago are working, does that mean account on this same computer that were created before samba was installed are working or that you've created a similar setup before and that installation worked? | 0 | 1 | 1,272 | 2011-04-05T11:28:43.850 | infrastructure | serverfault.com | |
439,462 | Active Directory Administrative Center in Windows Server 2012 can not delete any domain controllers | I need to delete an otherwise "non removable" domain controller box that runs windows server 2003. Normally I use [CODE] to remove domain controller roles from active domain servers. I tried to do that with our last Windows Server 2003 level server, but it keeps failing with errors. So I have decided to try to remove t... | What errors are occurring on the demote attempt? I'd say take a look at that before jumping to the nuclear option. Sites and Services is still available for your DC nuking needs in 2012 (and still handles the metadata cleanup automatically), you can install it via Add Roles and Features (Features -> Remote Server Admin... | 0 | 1 | 1,751 | 2012-10-17T18:36:58.540 | infrastructure | serverfault.com | |
1,057,410 | Laravel/PHP process on debian 10 only ever using one of two CPU threads | I am running a Debian 10 Buster server on a google VM with PHP 7.3 Apache2 and MySQL 8. On the server, I am running Laravel 8 as an API for two clients. I recently upgraded the VM to an n2-standard-2 (2 vCPUs, 8 GB memory) and wanted to check the throughput my server can handle. My issue is that my server never utilize... | After a lot of testing I found the bottleneck: I was serving Laravel on PHP artisan via a reverse proxy, and it was artisan that was turning away requests when it reached a certain level. I omitted this by just serving Laravel with Apache. The bottleneck disappeared and I can now use 100% CPU power if I want. | 1 | 0 | 428 | 2021-03-17T20:25:32.573 | database_errors | serverfault.com | |
214,894 | IPvsadm not equally balancing on wlc scheduler | For some reason, ipvsadm does not seem to be equally balancing the connections between my real servers when using the wlc or lc schedulers. One real server gets absolutely hammered with requests while the others receive relatively few connections. My ldirectord.cf file looks like this: [CODE] The weird thing that I thi... | With lc (least connection) if all servers have the same number of connections then it will always give a new connection to the first server in the list. This can mean that if you have very low utilization, and only a connection every now and then, that connection will always go to the first host in the list. | 5 | 1 | 4,242 | 2010-12-21T15:58:41.390 | infrastructure | serverfault.com | |
307,527 | Single Responsibility - is this class doing too much? | I'm redesigning one of my programs which performs certain actions on processes of interest (known as "Monitored Processes" in my program). Some actions I always need to do on those processes are: Open process handle Get process name Close process handle And some further actions I may need to do on some or all of them a... | I would call the class ProcessController rather then MonitoredProcess. The class instance is not a process, it encapsulates a process handle. And it does not just monitor, it controls. You could pass the process id to the constructor. This would get your terminology straight, it would be clear your class controls a pro... | 3 | 4 | 605 | 2016-01-15T18:15:13.843 | api_errors | softwareengineering.stackexchange.com | |
188,515 | Oracle Unified Auditing Update Table | I am trying to audit when a user UPDATEs a table in Oracle. The script I am running is below. All of the other auditing works fine, but not the UPDATE policies. I created two policies to try two different methods for catching it. [CODE] HERE IS THE OUTPUT TO SPOOL WHEN RUNNING THE SCRIPT: [CODE] | If you are able to connect with this: [CODE] Then [CODE] returns [CODE] , and not [CODE] , so your policies do not work. Your other policies are non-functional as well. Those events are audited because they are part of the built-in [CODE] policy which is enabled by default. Just log in with [CODE] and run the below to ... | 0 | 0 | 758 | 2017-10-15T17:27:03.327 | database_errors | dba.stackexchange.com | |
632,344 | How should I manage and troubleshoot NTP issues? | For some time now I've been fighting with some NTP issues in my company's network and I'm having a hard time to understand how the commands combine with the service. For example: In the server's [CODE] there's a line: [CODE] But when I type [CODE] it shows me a different server's IP. In addition, through time I've lear... | If you want an NTP server to do anything reliably, you need not to lie to it about the reliability of its own clock; the lines [CODE] and [CODE] do exactly that, and it looks like getting rid of them has fixed things. As for stopping [CODE] before brute-forcing the time with [CODE] , my understanding is that there's a ... | 1 | 1 | 1,778 | 2014-09-30T07:54:31.270 | infrastructure | serverfault.com | |
393,602 | Deciding which microservice should write to the database | Let's assume the following architecture where [CODE] creates an [CODE] which is logged to DB and sent to [CODE] for processing [CODE] processes the event, handles failures, etc. [CODE] Once [CODE] is done, I want to update the event row in the DB with the outcome of running that event. My question: Which app should wri... | Why not let a third "DatabaseLoggger" service update the database? So there will be only one app writing to the database, and none of the other apps is coupled directly to the db. All those other apps will have to send logging events to the service. | 0 | 1 | 86 | 2019-06-20T12:19:21.563 | api_errors | softwareengineering.stackexchange.com | |
111,227 | Execute code ONLY if we have the ability to do full text search on database (mysql >= 5.6.4) | I found this answer for how to have conditional logic for execution of mysql statements ( https://stackoverflow.com/a/7537348/627473 ). Seems to work great. But I need to find a way to execute code for a very specific condition. The code can only execute if the database supports FULL TEXT indexing for innodb. This happ... | Plan A: Notice how you can comment out things if the version is older than something: (I am running 5.6.12.) [CODE] You can see lots of examples in the output of [CODE] . Plan B: You could also parse [CODE] inside a Stored Procedure (or client code). Plan C: Or, maybe this [CODE] | 1 | 2 | 181 | 2015-08-16T22:19:43.330 | database_errors | dba.stackexchange.com | |
800,448 | Revert changes done by a GPO personal folder redirect | We had an issue where we've been redirecting the personal folders in the main office, but due to an oversight, in one of the satellite offices the users personal folders have also been redirected. That office is geographically very far, and a VPN link exists between the two offices, so having those folders redirected i... | This Technet forum post helped me fix my problem: https://social.technet.microsoft.com/Forums/windowsserver/en-US/6f6c5ad7-1aa1-4b97-96e5-a6d135221444/revert-folder-redirection?forum=winserverGP Log on as a problematic user and modify the setting in the below location: [CODE] For example, set Desktop to [CODE] . You ma... | 0 | 0 | 855 | 2016-09-01T11:48:52.847 | infrastructure | serverfault.com | |
15,638 | # of iterations in Restricted Boltzmann Machine (RBM) | I have a training set, I provide it (consider a data from training set) to the visible layer. Then the normal process is followed, i.e. Positive Phase-> Negative Phase-> Reconstruction of weights, bias units take place. Does it end here or should I have to iterate with the present visible unit value again (the process ... | When you are unsure about how something (e.g. RBMs) should really be implemented, it is often useful to look at the code of others. G. Hinton himself has published a MATLAB-script ( here ) which demonstrates the training of an RBM. There, you can see that for each mini-batch, he does the positive phase, then the negati... | 1 | 2 | 437 | 2016-12-09T09:00:57.517 | data_quality | datascience.stackexchange.com | |
217,509 | DenyHosts - Everytime I block myself | Since I installed DenyHosts I get the error "ssh_exchange_identification" if I want to login via ssh to my server. If I lookup [CODE] I find my IP inside there. How could I prevent that my IP everytime putted inside there? | Probably you tested one of the conditions where denyhosts should block users, e.g. logging in as root. Here is what you can do to reset the hosts.deny file so that you will be able to login again (from the DenyHosts FAQ): [CODE] http://denyhosts.sourceforge.net/faq.html#3_19 | 2 | 3 | 1,544 | 2010-12-30T19:24:59.377 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.