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 |
|---|---|---|---|---|---|---|---|---|---|---|
281,051 | Windows 2k3 server RAID 5 | I've got a server at home running Windows 2003 Server. I use the server to house my media collection and backups from other PCs on my LAN. The server has 4 1TB drives along with a smaller system disk where the OS resides. I'm sick of having my media and files scattered around 4 disks and I want a single volume for it i... | Personally, I'd stay with the software RAID 5. I've got 3 disks in software RAID 5 (on Server 2008, admittedly) even though RAID5 has a performance hit on writing I've not really seen that much of a difference. The only time I would want a hardware RAID is in a dedicated server box, and also rember RAID is not backup, ... | 1 | 1 | 165 | 2011-06-16T12:41:06.870 | database_errors | serverfault.com | |
57,608 | Slow insert - 300+ Million Records | The following query takes over an hour on the table to insert. There are no indexes. There was one which was deleted but still takes an hour after deletion. Any pointers on improving this appreciated. [CODE] | You are asking SQL Server to perform 19.5 Billion string manipulations (300,000,000 rows X 65 columns), all in one giant transaction. That is assuming vbep_Full is a regular table with simple column definitions (not a view with joins to other tables and/or with computed comlumns). If your CPU is not maxed out, you coul... | 0 | 1 | 1,572 | 2014-01-27T11:30:44.930 | warehouse_errors | dba.stackexchange.com | |
381,624 | How to avoid the continuous downcasting in this case? | I have an abstract class [CODE] and multiple subclasses ( [CODE] , [CODE] , [CODE] ...) extendig it. I have a [CODE] that can store a [CODE] . My problem is that when I put for example a [CODE] into a [CODE] like [CODE] and then take it out with [CODE] , this method gives me the beagle as a [CODE] , but I want to get m... | You could make use of generics and create a DogHouse of T. [CODE] | 3 | 8 | 1,340 | 2018-11-17T12:47:42.007 | api_errors | softwareengineering.stackexchange.com | |
242,854 | I want to measure memory usage of an application over time. How do I do it? | I want to use PerfMon to measure memory usage of the application over time, however, there are more than dozen Memory related counters. Which one will give me an accurate picture? | Process/Private Bytes will give you the memory for the worker process. Process/Virtual Bytes or Process/Working Set will give you virtual memory. You can do some easy searches to learn how to analyze the data you get after monitoring and see either or both of those counters rising. | 0 | 2 | 724 | 2011-03-03T18:19:32.913 | infrastructure | serverfault.com | |
203,248 | Encrypt connection between SSRS and SQL Server | We are working under a requirement that all connections to SQL Server be encrypted. After setting up a Reporting Server (2016), I see an unencrypted connection to the SQL Server. There are no data sources set up yet, so this is not a connection associated with report data sources, it is just the connection that RS make... | Unfortunately, you can't do this. There are two options (RSCM and rsconfig.exe) to set the connection string that SSRS uses to connect to the Report Server database and neither of them gives you the option to add the "Use Encryption for Data=True" parameter on the connection string. And since SSRS uses the SQL native c... | 2 | 2 | 1,095 | 2018-04-06T15:15:55.827 | database_errors | dba.stackexchange.com | |
157,007 | Create a computer trust between a Client (windows 7) and Server 2008 | Problem: Cannot log in because "the trust relationship between this workstation and the primary domain failed" There is no local Admin login. Usually you can log in to an account that previously logged into (cashed account) We don't have a password for that account. Notes: I know that you can manually create computer a... | You can't join a client to a domain without local admin rights on the client. Maybe you need to look for ways of recovering the administrator account ? | 2 | 0 | 2,448 | 2010-07-02T14:35:30.573 | infrastructure | serverfault.com | |
275,035 | Injectable, Poppable Stack | Background A project involves converting a relational expression map ( rxm ) to an XML/SQL statement. The map resembles: [CODE] The rxm is converted into Java classes using ANTLR. Walking through the AST uses a Visitor pattern that calls methods for entering and exiting various parts of the tree. For example: [CODE] Pr... | Use a Tree data structure then convert it to a string using recursive polymorphic [CODE] methods. Let me reiterate your question in my own words to make sure I understand you correctly: It appears that you are writing a Domain Specific Language (DSL) that you wish to convert directly your desired output via string mani... | 0 | 2 | 204 | 2015-03-03T01:56:34.260 | api_errors | softwareengineering.stackexchange.com | |
940,366 | Get-Command Changing Drive | I wrote a powershell script that includes a check for the [CODE] cmdlet. Script runs fine under Windows Server 2016. On 2012 R2, the script fails with: [CODE] errors when trying to create and write to a log file. What I discovered is that on Windows Server 2012 R2, when the [CODE] command is run, it changes my drive to... | I found an answer over on StackOverflow. https://stackoverflow.com/questions/27273440/why-working-directory-is-changing-when-executing-invoke-sqlcmd Apparently, on Windows Server 2012 R2, doing anything with a sql cmdlet preps the environment to run in [CODE] . Following the suggestion in the above link, I wrapped my s... | 0 | 0 | 51 | 2018-11-16T15:33:22.943 | infrastructure | serverfault.com | |
389,775 | Approach to designing maintainable, yet informative, user notification messages | I am facing a design problem related to the design of the user notification messages to be used in a web application. Just for the record, I am working in a JS environment and use a json structure to store user notification messages. However, I think the actual tech stack I use is of no importance here, since this is m... | What do you know about the actors of the system? Are they tech-savvy? For tech-savvy users, the word [CODE] is totally meaningless. Are they even humans? Are they HTTP clients? As in the real world, messages should be adapted to the interlocutor. What do the requirements say about these messages? Are they all the same,... | 2 | 1 | 140 | 2019-04-04T10:22:16.053 | api_errors | softwareengineering.stackexchange.com | |
584,782 | Very high load during pvmove in domU | I had a pretty bad time this evening. I had to move LVM2 LVs from one PV to another (source PV backed by NFS stored vdisk, target PV backed by an iscsi LUN). Moving small LVs of ths VG (few gigabits) went fine, but I had a 400GB LV and after a while this made my guest reach more than 150 loadavg, to the point where it ... | See that ~99%wa value? That's your problem. You're running into severe resource contention in your storage subsystem. You'll need to implement some monitoring so you can collect metrics and determine if the bottleneck is at the network level, at the physical disk level, or somewhere else entirely. | 0 | 0 | 247 | 2014-03-26T22:39:26.587 | infrastructure | serverfault.com | |
73,513 | Update query in a trigger | I have a configuration table: Table: [CODE] [CODE] This table holds the user configured column names and table names . I am building a query run time using the data from [CODE] and updating another table [CODE] . I am using dynamic SQL. This works fine inside the procedure. Problem is: I want to fetch the current date ... | Perhaps you can use some user defined variables. I once wrote an answer to this : Disable trigger for just one table . I suggested setting up a user defined variable to disable a trigger. In your case, dynamic SQL is not necessary if you are simply changing parameter values for a SQL statement. If you are changing tabl... | 4 | 0 | 2,036 | 2014-08-08T14:09:54.650 | database_errors | dba.stackexchange.com | |
545,340 | mounting a linux network shared directory onto a directory of another linux server | I apologize in advance if this a noob question. I have two servers, NFS Server: usanfsd01 LINUX Server: usalnxd01 I've to mount the usanfsd01:/nfs/data directory onto the usalnxd01:/lnxwd directory. I know how to do the mount via /etc/fstab. But the only concern is usalnxd01:/lnxwd directory has already some files insi... | try to find under the /lnxwd directory, no files are in use. You can use the following command if you are not aware, [CODE] Thing is, after mount you cannot use the files which is already is use under the directory /lnxwd. If there is any files in use, try to stop the program and create a backup of this directory. Once... | 0 | 2 | 268 | 2013-10-11T09:23:26.893 | infrastructure | serverfault.com | |
418,881 | How to Monitor and Log Port Usage and Destination Attempts of a local computer from a Linux Gateway? | I have access to a linux server that is acting as the gateway to an internal network. There is a MagicJack Plus device plugged into this network via CAT5. The MagicJack gets its ip via DHCP from the linux server, and I've determined which IP address it was issued. I've nmaped that ip, but I couldn't discover any open p... | To get all the traffic your device generates do the following: Plug the device directly into your host's port (i.e. into a dedicated Ethernet adapter) Given [CODE] is the name of your host's network adapter you dedicated for testing (see above) use this command to write a packet log to a file: [CODE] Leave that command... | 2 | 2 | 748 | 2012-08-18T09:17:00.763 | infrastructure | serverfault.com | |
123,960 | Network vulnerability and port scanning services | I'm setting up a periodic port scan and vulnerability scan for a medium-sized network implementing a customer-facing web application. The hosts run CentOS 5.4. I've used tools like Nmap and OpenVAS, but our firewall rules have special cases for connections originating from our own facilities and servers, so really the ... | I've automated scanning before, but did not use an outsourced scanning service. On the topic of outsourced security services for scanning, many people I know swear by Rapid7 . They also have HD Moore on staff so they certainly know penetration testing and Metasploit. It is trivial to use Nmap or Nessus scripted, encryp... | 7 | 2 | 1,259 | 2010-03-18T18:28:03.910 | infrastructure | serverfault.com | |
242,325 | Slow query, index present | This query is executed many times as part of an application, but runs slow: [CODE] It takes routinely more than 3 seconds, which is already bad, but sometimes the IN has 250 arguments, and the query takes more than one minute. This is the estimated execution plan: https://www.brentozar.com/pastetheplan/?id=rJ-b2XalH Ta... | You should provide datatype of columns and real scenario. Real scenario like How you are passing c3 value and other values ? Since [CODE] in 88% of cases and [CODE] in 97% of cases It is ideal scenario to create [CODE] . I am little bit confuse whether you should create [CODE] on each column separately or create [CODE]... | -1 | 0 | 95 | 2019-07-08T09:06:54.030 | database_errors | dba.stackexchange.com | |
85,795 | 404's in Wordpress when trying to access scripts | I'm not sure if this is the right place for this but I think this is a server / scrpting issue not specifically a Wordpress problem. If you go to my site www.ThinkComputers.org and open firebug and Open the Net window you can see the 404 errors I am getting. I can assure you those files are there, as I have doubled che... | It could be a rewrites problem. Can you post the WordPress relevant section of your .htaccess file? | 1 | 1 | 109 | 2009-11-18T06:34:37.397 | infrastructure | serverfault.com | |
26,927 | Large File Copy Tool accross Flaky Connection | I am looking to copy some large files accross a flaky WAN connection. Is there a tool I can use which will auto resume when the network fall over briefly and let me manually resume if I have to fix it manually? | The native windows tools to do this are xcopy /z and using BITS. Xcopy /z is pretty self explanatory. Bitsadmin is how you manage a bits tranfer in windows 2003, howver if you can install powershell v2 it contains cmdlet modules to do bits transfers. See Transferring (Large) Files Using BITs . My favorite exe tool is X... | 3 | 6 | 7,252 | 2009-06-16T23:26:48.300 | infrastructure | serverfault.com | |
683,671 | Is there a way to rate limit connection attempts with firewalld? | On our CentOS 6 servers, I've used information from this article to reduce the brute force ssh attempts on our servers, specifically the rate limiting / logging section. Is there a way to do the same thing using firewalld in CentOS 7? I'd prefer to avoid switching back to iptables since it seems firewalld is the direct... | Try with: [CODE] A full example: RHEL7: How to mitigate HTTP attacks. About logging rejecting package FirewallD simply does not support the same level of logging that the old iptables-service did. See https://lists.fedorahosted.org/pipermail/firewalld-users/2014-February/000155.html But there may be a posible work-arou... | 8 | 11 | 21,361 | 2015-04-17T22:58:22.870 | api_errors | serverfault.com | |
38,883 | How to set up an encryption-only proxy server?* | I need to create an encryption-only proxy server. By this I mean, from anywhere in the world I'd like all of the company's laptops' Internet traffic to be encrypted and routed through this single server. Caching would be nice, but not required; encryption between laptop and server are the only requirement. What are som... | I agree w/ pjz-- it sounds like you're looking for a VPN. OpenVPN is a great, no cost method of getting started w/ VPNs. It's stable and ready for production use, but even if you don't end up using it, it's a good tool with which to get familiar with VPNs. It's really easy to setup with static keys (for playing around)... | 1 | 5 | 2,203 | 2009-07-10T12:51:59.327 | infrastructure | serverfault.com | |
174,749 | Modifying columns of very large mysql tables with little or no downtime | I periodically need to make changes to tables in mysql 5.1, mostly adding columns. Very simple with the alter table command. But my tables have up to 40 million rows now and they are growing fast... So those alter table commands take several hours. In a couple months they'll take days I'm guessing. Since I'm using amaz... | I periodically need to make changes to tables in mysql 5.1, mostly adding columns. Don't. No really. Just don't. It should be a very rare occasion when this is ever necessary. Assuming your data really is normalized to start with, the right way to solve the problem is to add a new table with a 1:1 relationship to the b... | 19 | 9 | 32,258 | 2010-08-26T11:02:19.023 | database_errors | serverfault.com | |
639,763 | Postfix/Dovecot Issues receiving Mail | I am having an issue with PostFix and Dovecot. I followed this guide: https://github.com/opensolutions/ViMbAdmin/wiki/Mail-System-Install-on-Ubuntu and when mail is sent into the server, this is in the mail.log [CODE] This is my output from postfix -n: [CODE] And my Output from doveconf -n [CODE] The domain is mail.pol... | OK, so firstly it looks like your incoming mail transaction is running into problems with SASL authentication. [CODE] That path looks to have come from here, in what I assume is [CODE] output (contrary to how you describe how you got it): [CODE] That's a path to a socket, which is relative to $queue_directory. I'm not ... | -3 | 5 | 926 | 2014-10-26T16:50:09.347 | infrastructure | serverfault.com | |
105,398 | Limiting internet traffic per user/IP based on volume | I have a shared internet connection on my network which I currently manage using Smoothwall Express. I want to be able to allocate each of my housemates a certain amount of bandwidth per month. My ISP charges me per MB, so I want to extend that charge to those that are using it, while not alowing them to rip me off. Th... | Not out-of-the-box, no - and the commercial version likely is both out of budget for this project, and still wouldn't be a perfect fit. You could hack something together with express though.. but it would be a fair old project. | 4 | 1 | 5,406 | 2010-01-22T15:46:12.230 | infrastructure | serverfault.com | |
175,441 | authenticate to ldap in centos | I'm trying to set centos to authenticate to a server 2003 AD. I run authconfig-gtk and select ldap for "User Information" and "Authentication" and configure it as such base dn: dc=test,dc=com ldap server: 192.168.0.1 and no TLS encryption (need to get it running first) on the options page Cache user information, use sh... | Before beginning, make sure you tail both [CODE] AND [CODE] ; secure will give you errors from pam, but messages will give you errors from ssh (i.e., errors from querying LDAP): [CODE] So, we have the same setup at work (Using AD server 2003). Since it sounds like you already have pam hitting LDAP (because its failing ... | 0 | 1 | 1,832 | 2010-08-27T20:39:21.080 | api_errors | serverfault.com | |
224,694 | Copying data up in single SQL statement | I need to fix an SQL statement in [CODE] that should calculate a field using values from two of the columns and I prefer to do this using set-based programming, ie not procedural. What needs to happen is that in a separate column called [CODE] the value of [CODE] is copied depending on whether [CODE] is 0 or 1. If it i... | Look for [CODE] | 0 | 0 | 32 | 2018-12-11T22:08:14.527 | warehouse_errors | dba.stackexchange.com | |
145,283 | How do you change topdir as a user in SSH? | I have read several places NEVER to build RPM's as the root user. As such, I defined a new user and have tried building out RPM structures there, however, using the [CODE] returns an error which states the topdir cannot be accessed: Installing curl-7.20.1-1.src.rpm error: cannot write to %sourcedir /usr/src/redhat/SOUR... | from the Centos Wiki on how to setup a build enviroment (assuming you're enviroment is the same, change $HOME to a path or better variable as needed): [userid@hostname ~]$ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros Beware: the second command will overwrite a previous .rpmmacros you might have, so you should ... | 3 | 8 | 3,079 | 2010-05-25T23:06:39.710 | infrastructure | serverfault.com | |
900,174 | Folder permissions. Allowed to read but not allowed to execute | Dealing with a folder in windows 10, I am changing its permissions. When I go to security tab of its properties, I can see that I can allow or disallow: Full control Modify Read and Execute List folder contents Read Write (The names might be different, my system is not in english). My question is, is there a way to set... | Read and Read and Execute are two different permission "sets". If you want the user or group to only have the Read permissions then grant them only the Read permission and not the Read and Execute permission. http://www.ntfs.com/ntfs-permissions-file-folder.htm | 0 | 0 | 1,256 | 2018-03-06T02:27:21.657 | infrastructure | serverfault.com | |
661,692 | How do I get a network interface up in rhel 7? | I was given a rhel7 vmware template to use for provisioning rhel 7 test environments. When I created my vm, it booted up fine except that my network interface doesn't seem to come up. If I type ifconfig -a I get the following: [CODE] As you can see, I don't have an ip address for ens192. Being a programmer and not a sy... | I figured it out and I can see why I got the "read the manual" type comment. The issue was rather simple and I'm sure any sysadmin would have figured it out right away. But for us programmer types who have to do sysadmin stuff out of necessity here's what was going on. Short answer: My MAC address was incorrect in my /... | 7 | 7 | 53,936 | 2015-01-22T22:10:59.433 | infrastructure | serverfault.com | |
818,534 | Is it possible to have two different servers for my MX records? | I have a domain name registered, and I want to use two services to receive email on it. I want to be able to use a service such as Zoho or gmail, but I also want to receive mail on my own server running Postfix. Is there a way for me to receive email from both services? For instance, can I use MX records that point to ... | No, it is not that simple. If you advertise two MX records of different weights, the lower will always be tried first. If you advertise two at the same weight, it is random which of the servers will get any given email. You will need to set up your own authoritative server to get your email, then make arrangements for ... | -1 | 4 | 97 | 2016-12-03T10:31:10.610 | infrastructure | serverfault.com | |
116,957 | Joining two subqueries with union all and join leads to suboptimal execution plan | I've faced the similar problem on my production environment, but I managed to reproduce this behavior on Northwind DB . Consider the following query: [CODE] It has pretty good query plan: Now when I uncomment line with [CODE] , the plan becomes not as good (seems like query processor can't push the [CODE] filter to the... | I think that SQL Server simply does not have the appropriate optimization rules to yield the seek-into- [CODE] query that you are looking for in the case of a [CODE] on both sides of the query. Such a query plan is theoretically possible, but the query optimizer is not capable of producing it for your query. In order t... | 6 | 4 | 8,275 | 2015-10-04T18:44:50.463 | database_errors | dba.stackexchange.com | |
59,880 | Avoid Postfix Increment Operator | I've read that I should avoid the postfix increment operator because of performance reasons (in certain cases). But doesn't this affect code readability? In my opinion: [CODE] Looks better than: [CODE] But this is probably just out of habit. Admittedly, I haven't seen many use [CODE] . Is the performance that bad to sa... | The facts: i++ and ++i are equally easy to read. You don't like one because you're not used to it, but there's essentially nothing you can misinterpret it as, so it's no more work to read or write. In at least some cases, the postfix operator will be less efficient. However, in 99.99% cases, it won't matter because (a)... | 28 | 62 | 38,045 | 2011-03-19T06:59:51.357 | api_errors | softwareengineering.stackexchange.com | |
886,654 | Able to connect the other ports however unable to connect the SSH port (22) of EC2 instance | I am having two ec2-instance with OS Amazon linux (instance1 and instance2) mapped with same security groups and I am able to ssh the 'instance2'. However I am unable to SSH the instance1, this instance1 is working till I am change the IAM roles. Even now I am able to connect the DB port of the instance1. Please advise... | With the information you have provided, I can give you some items to check/compare; I cannot tell the actual cause. First, have you tried the troubleshooting steps recommended by Amazon? They are here . Check the Public DNS setting on instance1 (under the AWS console - services - EC2 - running instances - select instan... | -1 | 1 | 158 | 2017-12-05T13:24:13.003 | infrastructure | serverfault.com | |
165,659 | Benefits of using WITH TABLOCK on an INSERT | Under some circumstances, doing an [CODE] will be faster due to minimal logging. Those circumstances include having the database in the [CODE] recovery model. Is there any other potential performance benefit to using [CODE] on an [CODE] on an empty table when the database ( tempdb ) is using the [CODE] recovery model? ... | I know of a few benefits but they're mostly situational. Using [CODE] will reduce concurrency but will immediately take a table lock on the target table. As long as you can guarantee that just one session will insert into the table this will avoid unnecessary row or page locks and will prevent lock escalation . After a... | 28 | 31 | 92,981 | 2017-02-27T19:29:31.310 | database_errors | dba.stackexchange.com | |
274,253 | Apache ab: choosing number of concurrent connections | I can't find anything that specifically elucidates the number of concurrent connections that are reasonable - nor can I find any treatises or research on this topic. The boss says "The server needs to handle 50,000 concurrent users - so measure with 50,000 concurrent connections." Then I see in at least one popular blo... | What is reasonable depends on what kind of traffic your server is getting. A typical web server that handles about 1 million page requests per day (and that's quite a busy little server) will rarely ever need more than 50 concurrent connections, unless your page processing is really heavy. If your average page processi... | 5 | 6 | 6,022 | 2011-05-26T22:25:19.263 | infrastructure | serverfault.com | |
344,344 | mod_rewrite file check with extention | Here is my .htaccess for simple url rewriting for any MVC architecture. [CODE] Every thing is working only one exception rises. On the root where [CODE] exists i created a file [CODE] , i also do have a controller named generator. So for a request, [CODE] , it must rewrite it to [CODE] But it is rewriting it to [CODE] ... | I got solution from stack-overflow and the solution is to Turn of multiviews. [CODE] This solved the problem. The credit goes to https://stackoverflow.com/users/567986/gerben | 1 | 1 | 56 | 2011-12-27T10:18:43.307 | infrastructure | serverfault.com | |
136,674 | LOB_DATA, slow table scans, and some I/O questions | I have a rather big table with one of the columns being an XML data with an average size of XML entry being ~15 kilobytes. All other columns are regular ints, bigints, GUIDs etc. To have some concrete numbers, let's say the table has a million rows and is ~15 GB in size. What I noticed is that this table is really slow... | Presence of XML field causes most of the table data to be located on LOB_DATA pages (in fact ~90% of table pages are LOB_DATA). Merely having the XML column in the table does not have that effect. It is the presence of XML data that, under certain conditions , causes some portion of a row's data to be stored off row, o... | 19 | 11 | 3,865 | 2016-04-26T22:30:12.303 | database_errors | dba.stackexchange.com | |
69,096 | Using Oracle12C Client with Oracle11.g database | I have been using Oracle12c client to connect to an Oracle11g database in a remote server for about one month, it wasn't giving me any problems until this week, when I started getting the error: [CODE] First I used Oracle Sql Developer to design the tables of the database, and a week after that I started to develop an ... | The document that has the client/server compatibility matrix is 207303.1 Client / Server / Interoperability Support Matrix For Different Oracle Versions . (Oracle support account required) Oracle client version 12c is compatible with Oracle server version 11.2 (and below), so no your error isn't likely to come from tha... | 8 | 9 | 32,536 | 2014-06-26T10:03:14.320 | database_errors | dba.stackexchange.com | |
7,249 | Why can't I use NEWSEQUENTIALID() as the default value for my column? | I'm trying to create a table in Management Studio and after reading about the new (from SQL 2005 on) [CODE] function, thought I'd give it a go. This is what I'm doing: But it's not letting me. The error message I get is: [CODE] Am I missing a trick here? I'm definitely running SQL Server 2008 R2. | You can work around this bug in SQL Server Management Studio just by ignoring the first and second warning. Changes will be saved. | 19 | 6 | 3,820 | 2011-10-26T09:44:41.530 | database_errors | dba.stackexchange.com | |
290,139 | Does mongo *really* need a dedicated volume, if I need to back it up? | TLDR; What's the easiest way to automate a mongodb backup of a 20-gig DB? We run mongo on the same KVM (VPS) as the web app; the server runs Debian. We/I don't need/want to backup the entire fs on a daily basis, but definitely the Mongodb database. I don't really want to put Mongo in a separate volume, it complicates t... | Yes, hot snapshot is easy and fast way to do backup... But of course there is also mongodump. Here is my crontab entry. Every hour, overriding current date backup. [CODE] | 0 | 1 | 49 | 2021-04-20T16:10:45.143 | database_errors | dba.stackexchange.com | |
821,668 | Linux ifconfig shows excessive RX packets and bytes | I'm trying to track down some network issues and I could use some pointers. It seems to me that there's a lot of traffic, much of which is apparently generated by retransmissions. Unfortunately my switch is not managed, so I'm looking at tcpdump and ifonfig on some of my machines. Here's an example of a CentOS machine ... | You can use nethogs to find which process is responsible for this traffic. | 0 | 0 | 1,363 | 2016-12-19T20:52:23.750 | infrastructure | serverfault.com | |
138,673 | Delete User View named the same as system view | I am exporting a database to Azure and have found a user view created in a previous version of MSSQL (Currently running 2008) that is name INFORMATION_SCHEMA.TABLE_CONSTRAINTS which obviously should be impossible. I can find the objectid in sysobjects but can find no way to drop the view by anything other than it's nam... | Making a guess with no information but is the name in [CODE] INFORMATION_SCHEMA.TABLE_CONSTRAINTS ? Try running this: [CODE] I'm guessing you get something like this: [CODE] First confirm that the second entry is actually a view then run the following: [CODE] Please run the following query and post a screenshot of the ... | 3 | 1 | 118 | 2016-05-16T17:30:56.640 | data_quality | dba.stackexchange.com | |
13,131 | How to redirect the request to a different node when there is an unexpected exception and one of the pods gets restarted | We are deploying the application in a Kubernetes cluster and when we face an unexpected error and the pod gets restarted or goes down we are getting a 502 Gateway error even though there is another pod that should start accepting the requests without getting the 502 gateway error. We are making sure that the applicatio... | You should configure a Readiness Probe in the [CODE] for your app. When using a Readiness Probe , no traffic will be sent to instances that are not prepared to receive traffic. | 0 | 1 | 279 | 2021-01-13T08:20:21.650 | pipeline_ops | devops.stackexchange.com | |
979,244 | how to redirect to www while also changing document root folder in htaccess | How to create the following rules in .htaccess ? Mod rewrite is enabled. But I am running into problems. For each of the rules in each case (1) and (2) I want them to apply to the domains under that rule. [CODE] When I attempt to solve with the following: [CODE] Whenever the URL is accessed it shows the subfolder in th... | A few comments on your attempts... [CODE] These directives are in the wrong order. The redirect needs to go first in order to prevent the [CODE] subdirectory being exposed. However, in its current incarnation, this would result in a redirect loop as it simply redirects to itself again and again... (I guess maybe the ex... | 1 | 1 | 1,479 | 2019-08-14T13:13:51.370 | infrastructure | serverfault.com | |
24,112 | Sql server 2008 R2 installation fails with Error: 17204 | Sql server 2008 R2 installation fails with the below error message in the log message, This is a part of the sql server log Starting up database 'msdb'. Error: 17204, Severity: 16, State: 1. FCB::Open failed: Could not open file e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\model.mdf for file number 1. O... | This is a known issue which has several causes: The first thing to check is your permissions on local machine: Are You a local Administrator? Is there a group policy that might prevent you from installing \ debugging? If these do not resolve the problem in your case, and you have verified the required permissions, plea... | 3 | 1 | 4,192 | 2012-09-11T13:03:36.703 | database_errors | dba.stackexchange.com | |
185,939 | Best way to create a daily snapshotted read-only db in RDS? | We have a PostgreSQL db instance in RDS. In our application we need to run a daily export in the early hours of every day, the export and transformation may take some time and one issue we've found is it can export incorrect data if the data is being modified while the export is running (we use limit/offset as our tabl... | What's wrong with bullet 3? Schedule a Lambda function written in your preferred language to run at midnight that calls the RDS API to perform a snapshot. http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateSnapshot.html You want this part near the bottom: [CODE] | 0 | 0 | 736 | 2017-09-14T09:43:29.190 | data_quality | dba.stackexchange.com | |
863,433 | Automated NRPE checks yield warnings but work when performed manually | I'm monitoring several hosts using Nagios. This works fine when I use "normal" checks that are executed on the monitoring host (say, [CODE] ). However, I'm having troubles with NRPE-based checks which are executed through the NRPE-service on the monitored host instead. I have declared my custom commands in the NRPE-con... | It turns out that there was a duplicate Nagios process running on the monitoring server which wasn't affected by restarting the service and therefore kept using an old, buggy version of the configuration. While we can't reconstruct how we ended up with two Nagios processes, killing the duplicate one solved the problem. | 0 | 0 | 357 | 2017-07-21T10:05:52.487 | pipeline_ops | serverfault.com | |
753,958 | $0 empty in script when run by cronjob | I am trying to setup automated backups for an AWS EBS volume and using https://github.com/colinbjohnson/aws-missing-tools/tree/master/ec2-automate-backup to do so. The backup script used is the following (ec2-automate-backup.sh) [CODE] The cron primer file used is the following (cron-primer.sh) [CODE] (Note that the on... | Function [CODE] definition says, [CODE] and [CODE] commands should be available. Script is unable to find [CODE] command when running from [CODE] . Hence, you are hitting error. In [CODE] , you need to modify PATH variable to include [CODE] to [CODE] executable, by writing them before your [CODE] lines. You can use bel... | 0 | 0 | 532 | 2016-02-04T10:15:12.597 | database_errors | serverfault.com | |
167,128 | What is logical cohesion, and why is it bad or undesirable? | From the c2wiki page on coupling & cohesion : Cohesion (interdependency within module) strength/level names : (from worse to better, high cohesion is good) Coincidental Cohesion : (Worst) Module elements are unrelated Logical Cohesion : Elements perform similar activities as selected from outside module, i.e. by a flag... | Logical cohesion can be bad because you end up grouping functionality by technical characteristics rather than functional characteristics. For example, consider an application consisting of multiple modules. Each module represents some business domain and has corresponding data access code. If you group all data access... | 12 | 8 | 9,460 | 2012-10-02T18:43:54.180 | pipeline_ops | softwareengineering.stackexchange.com | |
178,521 | How do bug reports factor in to a sprint? | I've been reading up on Scrum recently. From my understanding, a meeting is held before the sprint starts, to decide what gets moved from the product backlog to the upcoming sprint backlog. Once a feature is completed in the current sprint, it will go into the "Ready to QA" bucket, and it's at this point that I'm getti... | The way I see it there are two main solutions to this: Don't allocate 100% of your time to the current sprint. Allow 10-15% of your time for bug fixing and other support activities that will come up during the sprint. Then if a blocking bug comes up you have the time to fix it in the current sprint. If a non blocking b... | 8 | 10 | 1,816 | 2012-12-06T13:37:49.660 | api_errors | softwareengineering.stackexchange.com | |
307,771 | Why MySQL dump consume memory after finished | Hi I have a cron job to backup a lot of my database. I create a script to run the dump command for each database every night, I created it like this. [CODE] I can understand if it will consume much memory, but I don't know why it keep hit the peak memory after all of my cron was finished. Here is the my memory traffic ... | Not a problem. Well, not yet. [CODE] works by [CODE] all the data and generating a dump file from that. For InnoDB tables the [CODE] read the data into the "buffer pool". That expands to a maximum as indicated by [CODE] but never shrinks. That setting should be tuned to use up most of the remaining memory, but not go p... | 3 | 2 | 953 | 2022-02-21T11:48:37.820 | database_errors | dba.stackexchange.com | |
247,914 | domain not getting resolved without www. Despite appropriate apache settings and DNS records | I realise this question has been asked tons of times before on the forum but I've eliminated all the usual suspects in my case and still Im not having much luck with this problem. The www.mydomain.net works fine but the mydomain.net takes me to the Apache test page. Here's my DNS entries [CODE] Here'e my apache config:... | Are you using virtual servers on Apache? If so, there may be a default site configured that is causing any domain not 'www.mydomain.net' to be handled by the default handler. As a quick check, try abc.mydomain.net and see if you get the apache test page. | 1 | 2 | 243 | 2011-03-16T02:26:37.440 | infrastructure | serverfault.com | |
910,520 | NGINX: Primary script unknown - when calling a dynamic URL with controller prefix | We facing a problem and we can't fix it. We are currently able to run our application as expected - SEO URL runs like a charm and are rewriting to [CODE] . The problem is, we have an additional URL Pattern like: [CODE] [CODE] [CODE] ...which we need to rewrite to [CODE] too. We are unable to write this URL dynamic URL ... | You have two options: Either 1) redirect all URIs ending with [CODE] to [CODE] , if there is no matching script file - add a [CODE] statement to the existing [CODE] block (see this document for details): [CODE] Or, 2) redirect URIs that begin with [CODE] to [CODE] - add a new [CODE] block (see this document for details... | 2 | 2 | 1,080 | 2018-05-03T10:59:46.163 | infrastructure | serverfault.com | |
1,095,509 | MariaDB using much more memory than it should | We are using MariaDB 10.3.32 on a Ubuntu 20.04.4 machine with 6 GB of memory, about 20 applications running on it. Databases are all InnoDB. Even with mostly default settings (see on the bottom), memory usage increases from day to day, seemingly non-stop. After about a month of uptime the OOM killer starts doing its wo... | The buffer_pool grows until it reaches [CODE] . That should be the largest component. 128M is probably dangerously small; I would normally recommend 4G if no other apps are running on that server. How big is the dataset? Did you really do only 5 Selects in 2 days? Perhaps that is [CODE] ? We need [CODE] instead. Memory... | 4 | 0 | 7,104 | 2022-03-07T08:03:27.180 | database_errors | serverfault.com | |
491,399 | can I suppress apache2 error messages about clients denied by server configuration | For about 36 hours I made a config mistake and left an apache2 server forward proxy open to all. I've closed this, but the server is still getting hammered by hopeful ad spammers. My apache error log is filling up with [error] [client 108.62.178.124] client denied by server configuration ... Can I suppress these error ... | You could change the [CODE] but you might miss something, that said you could miss something with too much noise! Reference: http://httpd.apache.org/docs/2.2/mod/core.html#LogLevel Other potential options: If there are only a few IP addresses the firewall them? Put the logs into a log analyser and filter the noise, bon... | 2 | 0 | 309 | 2013-03-26T11:06:42.510 | infrastructure | serverfault.com | |
452,456 | Ensuring partial order of concurrent operations | I have the following operations: User submits event We store event in a queue Wait for events and store them in db for redundancy Wait for events and process them Remove events from queue and db For performance reasons, op 3 runs on a different thread. The queue is always accessed under a lock, since events are submitt... | Firstly, if step 4 must wait for step 3 to complete, your execution diagram is indeed fully linearized - there is no overlapped execution allowed. If this is the case, continuation passing style should be used for simplicity and clarity. My answer below assumes that steps 3 and 4 are allowed to execute independently an... | 1 | 2 | 126 | 2024-03-15T22:59:32.033 | api_errors | softwareengineering.stackexchange.com | |
389,415 | Is it possible to infer the the generic type from a generic method? | I'm making an HTTP API client class. I want a [CODE] method which takes a request object and returns an obejct that is expected from the API. So a [CODE] object will describe how to get a [CODE] . Ultimately what I'm trying to do is the following: [CODE] I'm trying to infer the return type based on the [CODE] generic. ... | First of all, you can not expect to get class which pass into Request as T type by using [CODE] because it could be implements more than one interface. [CODE] Beyond, you can use [CODE] instead of concrete class. It is totally same for this logic. And, I think you try to predicate(not assign) by doing [CODE] . If so, I... | 5 | 5 | 16,229 | 2019-03-29T04:09:06.727 | api_errors | softwareengineering.stackexchange.com | |
125,797 | Syntax error near unexpected token 'fi' | I have created a very simple script (see below) but cannot get it to run properly. I always get messages saying [CODE] when I try to execute this script. [CODE] I am running this on Red Hat Linux if that makes any difference. If any one can help identify what is wrong with the if statement I'd really appreciate it. Bil... | You are missing a semicolon (and I'm not sure if it works without square brackets). Alternatives: if [[ $? -ne 0 ]];then or if ! test $? = 0; then or if [ $? -ne 0 ];then or test $? = 0 || echo 'error'; or even better: rm /bla/bla || echo 'error'; (the last one is your whole script) | 0 | 5 | 7,811 | 2010-03-24T14:37:29.623 | infrastructure | serverfault.com | |
301,814 | Where do i give rights so that users can cancel print jobs on the print server? | I'm currently running a Windows 2008 R2 print server. Everything seems to work fine, except that i can't seem to cancel jobs stuck in the queue. One of our helpdesk asked me to give them rights to do this, and upon inspection, I couldn't cancel the job either (although I'm sure I could bounce the spooler which would ha... | Add the users to the Print Operators group on the print server. You'll need to disconnect any active sessions for that user from the server (in computer management > Shared Folders> Sessions) before the new settings will take effect. | 3 | 4 | 14,202 | 2011-08-16T21:25:45.433 | api_errors | serverfault.com | |
809,501 | Domain not loading on 1and1 bitnami wordpress application on cloud server? | if you check following domain: top-produkttest.de You will see, that nothing is loading. The Domain is pointed to the servers' IP Adress and I configured the domain in the vhosts file. The server is running on CentOS 7 and bitnami was preinstalled. Apache2 is running. I also can't access it via the Servers' IP Adress. ... | It seems that your server is running into performance issues. I reckon it's just being extremely slow for any reason. In order to identify your problem, I recommend you the following actions: Check the list of processes consuming CPU and memory. You can do it by logging in to your machine console via SSH and execute th... | 0 | 0 | 171 | 2016-10-17T10:57:30.610 | infrastructure | serverfault.com | |
1,002,950 | How rsnapshot manages moved and/or renamed files and folders | I consider using rsnapshot for backuping large amount of data and I wonder how rsnapshot manage when a folder at the source is moved or rename, is it detected it and edit associated hard links or it creates "duplicate" of all the files tree under? | If the source folder is renamed/moved, [CODE] (or [CODE] ) does not detect the change. In other words, the renamed directory will be re-copied without hardlinks. To avoid that, if/when you know a big source directory has been renamed, you should do the same on the latest backup directory (ie: inside [CODE] ). | 3 | 2 | 875 | 2020-02-13T14:52:10.510 | data_quality | serverfault.com | |
522,932 | 2nd static ip address does not connect to the server | Apache server starts with no errors. I have ip 1.1.1.1 and 2.2.2.2 set up as static IP's. ' https://www.site1.com ' connects with the server. ' https://www.site2.com ' does not connect to the server. virtual host file contents for site1.com: [CODE] virtual host file contents for site2.com: [CODE] results of 'netstat -l... | When you go to http://www.site2.com/ , you're going to port 80. Since that site is listening on port 81, and the listener on port 80 doesn't know about it, it doesn't work. You either have to make both sites listen on port 80 or you have to go to http://www.site2.com:81/ | 0 | 1 | 222 | 2013-07-12T17:48:58.923 | infrastructure | serverfault.com | |
72,906 | Give every user 3 default 'bookmark' entries | I've got a table [CODE] and a table [CODE] . The table [CODE] obviously contains pages the user wants easy access too. But, there's a new requirement now: every user gets 3 unmutable bookmarks. One of the bookmarks (be it an unmutable one or a user-specific one) is marked as homepage. Always. I'm thinking about 2 solut... | Would you be OK with having a single table that has these three immutable bookmarks, and then using a view that joins this table with the user's real bookmarks? immutable_bookmarks ------------------- id name URL (or whatever this is a bookmark to) user_bookmarks -------------- id name user_id URL And then define the v... | 2 | 4 | 104 | 2014-08-01T07:47:17.603 | warehouse_errors | dba.stackexchange.com | |
698,423 | I’m having fundamental issue with Computer Group Policy Objects working but not showing as applied in gpresult | I created a Computer GPO that tells the workstations to make the monitor sleep in two minutes (just for testing.) I applied the GPO to the Computers OU. It works fine… I manually change the sleep time to 10 minutes on the workstation. I then run gpupdate and the sleep setting changes to two minutes as expected. I repea... | Running GPResult from a "Run as Administrator" cmd prompt will show the computer policies. It won't then show the user policies because the local "administrator" you are then running it as doesn't have any domain policies applied to it. | 0 | 0 | 197 | 2015-06-11T21:33:18.323 | infrastructure | serverfault.com | |
420,563 | What are some steps to trouble shoot denied HTTPS requests in IIS 7? | I'm hosting a site in IIS 7 that's using a wildcard certificate from RapidSSL. To date there's been no issues of people not being able to connect to the site with SSL. Now we have a client who can't connect from every machine in their network. The client machines are Red Hat and Windows XP. They can make HTTP requests ... | IIS is rejecting the client certificate. This generally means that your server doesn't have the CA which was used to generate the client certificates. You will need to obtain this from the client and install it on the IIS server. See this Microsoft KB article: Error message when you visit a Web site that is hosted on I... | 1 | 2 | 685 | 2012-08-23T20:20:19.787 | api_errors | serverfault.com | |
308,097 | How does creating an index help with NOLOCK problems? | Link: https://www.brentozar.com/archive/2018/10/using-nolock-heres-how-youll-get-the-wrong-query-results/ The article mentions some problems with using NOLOCK: You can see rows twice You can skip rows altogether You can see data that was never committed Your query can outright fail with an error, “could not continue sc... | Just creating any non-clustered index on a table doesn't magically make all NOLOCK issues go away. In this particular case, for this particular query, an index on any column except the WebsiteUrl column will help, though. Why? Think about how SQL Server can do COUNT(*). "How many rows are there?". You can answer that r... | -1 | 10 | 664 | 2022-03-01T05:34:56.100 | database_errors | dba.stackexchange.com | |
240,582 | Get single records when duplicate records exist in 2 table | I have 2 tables. [CODE] is the sales and [CODE] is the leads table. I'm trying to see if the people in the leads [CODE] made a purchase and their name appears on the sales [CODE] . If they do I only want the name of people who appears on both tables. TableA (Sales) [CODE] TableB (Leads) [CODE] What I want to see: [CODE... | You can try to find highest sale for each email and then join it with leads: [CODE] | 0 | 1 | 398 | 2019-06-14T14:01:21.187 | data_quality | dba.stackexchange.com | |
22,993 | System Programming & Object Oriented Design - what to look out for | Next semester (starts in just under 5 weeks), I'm taking System Programming and OOD concurrently. Apparently SP centers on working in C on Linux, and I only have Java and Python experience, so I am a little nervous about this. For those of you who've taken these at an university, what should I look out for? I've alread... | Well, exactly what you're going to need wil depend on the class, though some generalities will likely hold. I'd suggest getting a C book intended for Java programmers. It's likely to point out the major pitfalls and help you transition. The biggest items that you're going to worry in C that you don't really worry about... | 4 | 4 | 711 | 2010-12-01T22:49:45.720 | api_errors | softwareengineering.stackexchange.com | |
1,112,913 | SSH authenticate with publickey,password or publickey,none | On my SFTP-Server I want to allow only login via public key AND password OR (if and ONLY IF user has no password) by only public key I set the following in the the sshd_config: [CODE] But I'm always promptet for a password. When the user has no password it says "further authentication required", also when I just press ... | If you could provide a verbose output of [CODE] to see what may be the root cause. One possibility could the the permissions on the [CODE] directory with the private keys are too loose, so it refuses to use the key. Could be something else, but we need to see the verbose output. EDIT: Perhaps specifying [CODE] for pass... | 2 | 1 | 5,680 | 2022-10-12T13:44:46.987 | api_errors | serverfault.com | |
321,995 | Isn't these two code snippets for SQL SERVER return same value | In my sql server I got a table named "Product" where a column named "P_name" exist. This column is completely null meaning it has null value in all of its rows eg: P_name NULL NULL NULL I wrote two queries. My first query is: [CODE] It returned the value of 0 (which is correct because the P_name column is completely nu... | In the second query, you are not counting a column, but a static value for each row in the Products table, you actually are running: [CODE] instead of giving the column name in the count: [CODE] | 0 | 2 | 34 | 2023-01-11T18:16:18.487 | database_errors | dba.stackexchange.com | |
728,258 | Allowing OpenLDAP users to change their own password | I seem to be missing something, I have logged in successfully via LDAP as user cent, however I am not able to change the user "cent" (me) password: [CODE] Please advise | Either You mistyped your password, or Your OpenLDAP is misconfigured. There should be an entry something like this: [CODE] | 0 | 1 | 2,875 | 2015-10-11T23:40:56.193 | infrastructure | serverfault.com | |
717,929 | external usb harddrive prevents startup of Server 2003 | An external usb harddrive attached to a Windows Server 2003 (yes, we know it is old) seems to prevent the server from starting up (after a reboot or power recycle). I get the message: "Bootmgr is missing. Press Ctrl+Alt+Del to restart". If I unplug the drive at startup and press CTRL+ALT+DEL it is fine. After startup I... | You need to change the boot order in the BIOS. Depending on your BIOS, this could be in 1 of 2 places. Some will list all drives together, in this case simply move your internal HDD to the top of the list (or at least above the external drive). A different style of BIOS may have one list for internal drives and a separ... | 1 | 1 | 138 | 2015-08-31T07:15:25.177 | infrastructure | serverfault.com | |
209,680 | Non Super User cannot alter stored procedures and functions | I am running into an issue granted a user access to alter stored procedures and functions within MySQL 5.7.22-0 running on Ubuntu. User has ALL PRIV on the database except GRANT User has SELECT PRIV on mysql.proc User can DROP and CREATE --> they can not ALTER Here is the output from SHOW GRANTS [CODE] Output for SHOW ... | Perhaps you want this in the [CODE] : [CODE] or, more likely, [CODE] | 2 | 0 | 2,165 | 2018-06-14T16:01:45.593 | database_errors | dba.stackexchange.com | |
355,342 | Prioritise ssh logins (nice) | Is there a preferred way to set "nice" for sshd? I need priority given to sshd such that I can login and easily fix stuff when something has gone wrong (eg DoS, badly behaved processes, etc) | You can give your preferred user account or user group a nice value in [CODE] , at least if we are talking about Linux. Then when you login via sshd, you will have nice value of X, whatever you set it. In my experience the CPU scheduler in kernel is nowadays so good it's hard to make server unmanageably sluggish just b... | 23 | 9 | 9,729 | 2012-01-31T09:51:25.813 | infrastructure | serverfault.com | |
111,790 | Hyper-V Network Boot Legacy Network | I am planning out a Hyper-V R2 Cluster environment. I was wondering if I went to the effort of deploying one of the few methods to network boot from iSCSI inside the guests, whether the legacy network adapter would switch to a synthetic after boot, or whether the connection could be handed to a synthetic network after ... | The answer to you question is "no." If you boot through the emulated NIC, that's the NIC you'll use with iSCSI for the boot LUN, and performance will be crappy. It would be theoretically possible to construct some sort of shim that booted from one NIC and then logged into the target with the other, but I'm not aware of... | 0 | 1 | 719 | 2010-02-11T03:01:13.390 | infrastructure | serverfault.com | |
226,757 | ASA DHCP Relay configuration | I'll make it simple, I have locations in different cities, connected using 2 Cisco ASA devices. my main location, corporate, use the IP 192.168.1.x The second location, remote store, use the IP 192.168.3.x I have a DHCP server (192.168.1.254) at my corporate location. I have created a scope for the 192.168.1.x which wo... | You need to create a scope in the same subnet as each remote location. so at site 192.168.3.x you need a scope that falls withing the 192.168.3.x subnet. EDIT: Is that a typo in your question (102.168.3.x)? What's the scope you set up? | 2 | 1 | 4,790 | 2011-01-25T18:04:36.120 | infrastructure | serverfault.com | |
665,096 | Active Directory Replication Errors | We just installed a second Domain Controller on our domain. The installation of DC 2 went along with no hiccups. However I am running into an issue with replication. I cannot seem to get DC1 and DC2 to replicate from each other. The strange thing is I get different error messages from both servers when I try to "Replic... | There are a couple things that could be causing this problem. 1. ensure both servers are on the same subnet 2. check your DNS settings primary DNS should be DC1 3. check your firewall settings, there is a chance that the firewall settings on one of your servers is blocking access from within your network I once had a c... | -1 | 1 | 11,725 | 2015-02-04T22:55:57.987 | database_errors | serverfault.com | |
360,662 | mxttolbox SPF check - showing - all fail & Rest ptr a mx are Passed . What is the reason | Newly created spf record for one of our domain . texxxxx.com goes like this teXXXXXX.com v=spf1 a mx ptr ip4:189.123.111.000 mx:teXXXXX.com -all ( not real values) and mxtool spf check proviede following result a Pass Match if IP has a DNS 'A' record in given domain mx Pass Match if IP is one of the MX hosts for given ... | SPF is checked in order. If the ip address of teXXXXXX.com matches the ip address of the connecting mail server, SPF passes, and it stops evaluating. It will only give a fail/negative result if none of the previous entries didn't pass. That is what -all means. | 0 | 3 | 6,128 | 2012-02-16T04:42:54.340 | infrastructure | serverfault.com | |
20,013 | Techniques to clean the topics | I have set of topics as follows. "web based", "web-based" -> with surplus symbols "technology","technologies" -> with singular and plural "learned", "learnt", "learning" -> suffix stripping Can you please recommend an accurate tool to perform aforementioned tasks. | For text processing, try using Python and the NLTK package . For removing surplus symbols, you can use regular expressions. Install package 're' and use the built-in function re.sub to substitute symbols like '-' with empty character. For suffix stripping, you can either use regular expressions again or use the built-i... | 1 | 1 | 39 | 2017-06-28T01:47:14.527 | data_quality | datascience.stackexchange.com | |
4,711 | In Jenkins, how can parameters that contain spaces be referenced? | Google has failed to even lead me to a proper answer as to why spaces are permitted in names of Jenkins parameters, let alone how to reference them. Assuming it's not just a major oversight, how does one access these parameters? For example, I have a string parameter named "IP Address". I could rename it "IP_Address" b... | You can use [CODE] . Think of [CODE] as a Map containing a key [CODE] . If the key didn't have a space, then you could use [CODE] or [CODE] , but when there's a space, you can only use the latter syntax. That syntax is also useful when you're computing the key name to look up, and have stored it in a variable: [CODE] | 7 | 5 | 10,390 | 2018-08-07T12:32:07.383 | pipeline_ops | devops.stackexchange.com | |
237,181 | Nested subquery giving eror of unknown column | I am facing uknown column 'id' issue which is exist in db_emp.test_etl. Then also it is giving uknown column error why?.This query successfully working in mysql version 8.0.14 but not mysql version 8.0.11. [CODE] db_emp.test_etl table structure : [CODE] Above query work for single level sub query as below : [CODE] | The problem here must be with the [CODE] reference in the innermost [CODE] . For a long time MySQL has had trouble with resolving outer references in correlated subqueries if those references were placed inside derived tables in the correlated subqueries. Apparently the problem has been resolved in 8.0.14 : Optimizer N... | 0 | 1 | 1,351 | 2019-05-02T06:36:42.017 | data_quality | dba.stackexchange.com | |
324,069 | My domain name is unrecognized after a couple of hours | I have a domain mydomain.com for example and use freedns service to add an A record and the destination ip to my webserver. If i try to access mydomain.com or put the ip server into the url all works fine. But after a couple of hours, i can't reach the server through my domain name or through my ip. I try to access myd... | You say you have a static IP address so you would be better off using a "free static DNS provider" - try putting that term into your favourite search engine. | -2 | 1 | 204 | 2011-10-23T13:30:05.287 | infrastructure | serverfault.com | |
496,743 | How to force an ISP to remove false reverse DNS? | There is an IPv4 address (in a /8 managed by ARIN) that I have no control over which reverse resolves to a domain name which I registered. Someone used the IP address to run a scam, and it is resulting in negative publicity for my domain, so I would like to get the reverse resolution result changed to not point at my d... | Since, it's ARIN authority I'd start here: https://www.arin.net/abuse.html | 13 | 3 | 2,411 | 2013-04-06T05:07:11.520 | infrastructure | serverfault.com | |
716,260 | Ansible sudo error while building on Atlas | I've been trying to build my Vagrant configuration on Atlas. Also I'm using ansible for provisioning and i have some sudo issues. After setting up VM while trying to run ansible playbook on Atlas I get this error: [CODE] So I've found on internet that sudo permissions may be the issue. In my main playbook file permissi... | [CODE] means that some other application is holding the apt lock. Maybe there is some other install process running on the system? Check [CODE] output for suspicious processes. The error message could also be caused by insufficient privileges. You might want to check if the Ansible user gets full root access via sudo. ... | 1 | 1 | 1,953 | 2015-08-24T08:56:17.357 | pipeline_ops | serverfault.com | |
487,898 | Attach storage drive in a VM via iSCSI initiator or VHDX on the Hyper-V host | Our current 200-user infrastructure is based upon XenServer and a StarWind iSCSI SAN. The C: drives for the virtual server's OS are mounted in XenServer SR volumes which are in turn virtual hard disks on the StarWind SAN. However, the data drives for the VM (say our file server) is mounted using the Microsoft iSCSI ini... | The two strategies are about equally costly. The VHDX part does add a very thin layer, but doing networking from the Hyper-V parent partition in comparison to doing it from the guest will be slightly less expensive, as you're not doing network virtualization for the iSCSI traffic. The VHDX strategy, however, it far eas... | 1 | 3 | 2,384 | 2013-03-14T18:40:30.283 | infrastructure | serverfault.com | |
222,658 | Implementation of chess endgame engine without Endgame Tablebases | I'm interested in creating an chess endgame solving engine. The endgames in chess are usually solved using the endgame table-bases generated by [CODE] . I have found that Artificial Intelligence and Genetic Algorithms have been applied to the chess programming. However, before starting the implementation I wanted to fi... | Without any precalculated tables, you can just build a standard chess playing engine (not specifically for endgames). Look, for example, here for a starting point. To optimize such an engine for endgames, you can try to automatically adapt your evaluation function whenever you identify a "known endgame" situation for w... | 3 | 4 | 963 | 2013-12-30T11:07:54.000 | api_errors | softwareengineering.stackexchange.com | |
504,208 | DDWRT/iptables - block outgoing connections on ALL ports except 80 and 443 | A bit lost with ddwrt here... It's actually straight-up iptables but I can't figure it out. All I need to do is: Block ALL outgoing connections on ALL ports, except 80 and 443. Block ALL incoming connections -- nobody should be able to connect in. Any help, links, or clues would be most appreciated. Thank you! | This does what you ask for, I assume you can connect via serial, or you will be effectively locking yourself out. Nobody can make incoming connections, not even you. I have set the [CODE] chain to [CODE] , change that to match your needs. [CODE] Replace [CODE] with the source IP you will be connecting from. Of course, ... | 0 | 1 | 3,194 | 2013-05-01T18:23:44.603 | infrastructure | serverfault.com | |
1,088,482 | How to create a service connection with access to all namesapces in azure kubernetes pipeline? | I tried to create a service connection to azure kubernetes cluster, but it is asking to provide namespace mandatory. So I provided one namespace and set the cluster admin option selected. And in the release pipeline, using this connection, I tried to create a secret but in a different namespace. But I got error as forb... | Trying picking default as the namespace and ensure cluster admin is checked like you said and it should work. I just set this up for mine like this and was able to deploy to the cluster, and as the namespace names are in my manifest files, they are creating OK. | 0 | 0 | 761 | 2021-12-29T14:02:24.180 | pipeline_ops | serverfault.com | |
112,998 | Password for iis after installing | After installing IIS on my dev system, window xp professional, its asking for username and password while trying to access http://localhost . Can you please help me out. Tried googling and tried may things but could not resolve the issue. Anonymous access is enabled iusr_ is given full access to the wwwroot folder asp.... | Another try: is there a web.config file in wwwroot (or in a parent folder)? If yes, check if authentication is explicitly defined: [CODE] See: How To: Use Windows Authentication in ASP.NET 2.0 (MSDN) | 1 | 1 | 3,341 | 2010-02-15T14:21:27.427 | infrastructure | serverfault.com | |
120,804 | What is the meaning of this operator: *= | I have a very old Access application that uses SQL Pass-Through Queries. This application has been nursed along through multiple server upgrades, and we recently moved up to SQL 2012. I now get a syntax error. The last two lines of the code are where the problem is. I believe it is some kind of JOIN, but I've never see... | Your query is using the pre-ANSI (and possibly original) JOIN syntax. Back in "the day", joining tables was done by specifying all of the tables, separated by commas, in the [CODE] clause, and then specifying the join condition(s) in the [CODE] clause. Equating the current ANSI style with the old style gives you the fo... | 5 | 6 | 2,343 | 2015-11-11T23:59:14.757 | warehouse_errors | dba.stackexchange.com | |
695,043 | Issues customizing a RHEL7 VM deployed from a template on VMware | In compliance with VMWare's VM customization matrix , I am testing this out on vSphere 5.5 Update 2d. I create the template with a RHEL 7.1 DVD and point anaconda to a kickstart that looks like this: [CODE] After the RHEL7 VM is created, I convert it to a template and deploy a VM based off it. However, none of the cust... | With the help of our VMware admin, we were able to figure out that the customization script required [CODE] . This isn't installed with RHEL7's [CODE] package group. To summarize, you need the following RHEL7 packages to have customization work: [CODE] [CODE] [CODE] [CODE] Hope this helps others. | 7 | 10 | 9,175 | 2015-05-28T15:31:07.140 | infrastructure | serverfault.com | |
250,686 | What is a good design approach in .NET for performing a series of checks in background process? | I have a flight planning system in .NET/SQL Server which needs to perform several validation checks. This needs to work on both a windows and a web client. Currently the checks run synchronously but this is slowing the system down, plus it is often repeating the same checks. Like "is this aircraft in the right start lo... | One method that I used in a somewhat similar position that allowed me to force integrity on the data while ensuring a speedy experience for my users was to asynchronously build the request on the server side. So, if feature A (.75 seconds to process calculations), B (2 seconds), and C (3 seconds) were all part of a sin... | 3 | 3 | 189 | 2014-07-22T08:15:00.140 | database_errors | softwareengineering.stackexchange.com | |
123,593 | Problems Deleting Data | I'm stuck on trying to delete some information on my MySQL database. I've never used a database this big and when I developed this application I didn't imagine it would get so big (maybe small for you guys, but for me it's huge). My thought was: I have a table with "mos" Managed Objects (PK [CODE] ) (Image 1) I have a ... | Answer originally added to the question by its author I solved the problem for today, but I don't know if my workaround will be enough for the future. My WorkAround was: Deleted all FKs Instead of Deleting the older data (~20GB), I selected Into new MyISAM tables (~40GB) and it was fast enough for me. Deleted old table... | 6 | 0 | 654 | 2015-12-14T00:57:04.107 | database_errors | dba.stackexchange.com | |
208,625 | Can't see some hosts on VLAN 1 with 2 /22 and 2 /16 ip blocks on it | Before I begin, please don't rip me apart for the current configuration. I didn't do it ... I'm just trying to fix without taking it down to redo. :) I have 2 3560 cats connected via a wireless link. One of the cats is connected to a cisco 3825 router which in turn is connected to the internet. Both cats have one Vlan ... | Are you trunking or access mode between the switches? Regardless, when it times out, look at the mac address table on switch 2 and see what it reads. Make sure that all the VLANs you're using are created on both switches - having multiple secondaries on the router in 1 vlan isn't the best practice and makes it hard to ... | 0 | 0 | 133 | 2010-12-03T01:28:35.523 | infrastructure | serverfault.com | |
640,459 | SNMP memory values do not match `free` | Compare this # free -m total used free shared buffers cached Mem: 72363 68035 4328 0 522 66294 -/+ buffers/cache: 1218 71145 Swap: 12291 0 12291 and this: # snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.2021.4 UCD-SNMP-MIB::memIndex.0 = INTEGER: 0 UCD-SNMP-MIB::memErrorName.0 = STRING: swap UCD-SNMP-MIB::memTotalSwap... | From the manpage for [CODE] : cache Memory used by the page cache and slabs (Cached and Slab in /proc/meminfo) [CODE] includes slab allocation in cache; UCD-SNMP-MIB doesn't. If you add in the slab allocation, you get: [CODE] which is much closer to what [CODE] reported (67885056 KB). As for getting real free physical ... | 4 | 5 | 8,397 | 2014-10-29T09:13:22.273 | infrastructure | serverfault.com | |
949,353 | Mail blocked from Windows Server 2016, but not since 2008 | Good Morning: I'm running exactly the same script from two different virtual machines: The first in Windows Server 2008 R2 The second in Windows Server 2016 Features The SMTP is an external service of a hosting (BlueHost) The script does not generate an error The mail arrives in both cases to internal addresses (from B... | Finally I have solved the problem by changing the name of the computer . After looking for differences between the VMs, I noticed checking the headers of the emails, that the name of the computer appeared in the header. I changed it and it started to work. As if in some way, that name would be blocked ... | 2 | 0 | 256 | 2019-01-16T12:25:08.653 | database_errors | serverfault.com | |
1,062,565 | HTTPS 308 permanent redirection k8s ingress nginx | I have created an EKS cluster following the examples from AWS EKS, I have deployed the nginx ingress controller on top from kubernetes/nginx, Created an ingress resource which points to back end k8s services, However, when I am trying to query via [CODE] it returns Permanent Redirect 308 Here is my service-nlb.yaml [CO... | This is the answer from user Ariseaz from the github issue mentioned in the answer from Azeez Adeniji. Using helm ingress-nginx chart on EKS Edit configmap ingress-nginx-controller [CODE] Add [CODE] Edit service/ingress-nginx-controller by adding [CODE] Setup your port in the ingress controller to look like what I have... | 2 | 2 | 16,765 | 2021-05-04T19:23:20.607 | pipeline_ops | serverfault.com | |
491,506 | Logrotate rotating daily but should be rotating weekly | For some reason logrotate is rotating logs daily instead of weekly, even though all the config files for logrotate seem to be set to weekly. Any ideas? /etc/cron.daily/logrotate [CODE] /etc/logrotate.conf [CODE] /etc/logrotate.d/apache [CODE] | Notice this line in [CODE] : [CODE] Perhaps you have some stale or backup files lying around in that directory, which get included, and specify daily rotation? As a workaround, and if you still can't figure it out, and if you only ever want to have your files rotated weekly, then you can change the frequency with which... | 2 | 1 | 3,844 | 2013-03-26T15:55:45.730 | infrastructure | serverfault.com | |
179,584 | Connecting Linux system to switch from 2 interfaces | To get proper redundancy, we've installed 2 switches in our network and connected them to eachother. We now want to hook our servers to both switches. Since all servers have 2 ethernet ports, this should be possible. The big problem is that we want to do this using just 1 IP address per server. Does anyone know how to ... | With Linux the simplest bonding method to use is active-backup mode when connecting to two different switches. With this only one is active at a time and you can set which one you want to have priority. This method requires no special configuration on the switches. With windows you are going to need to install a utilit... | 0 | 2 | 1,110 | 2010-09-09T15:34:03.280 | infrastructure | serverfault.com | |
134,463 | MySQL: How to perform aggregate functions on rows where a column is duplicate, for all values of said column | I have a table where one of the columns may have duplicate entries, and I want to condense each set of duplicates into a single row, with an aggregate function applied to the other columns. I cannot think of a sensible explanation of this, so here is an example data table and result table [CODE] All of the rows where [... | It seems like your query needs to be something like: [CODE] More information on creating aliases (the [CODE] keyword). More information on [CODE] More information on the [CODE] function with a handy example that would have served you well. Since you had a question about the [CODE] clause in the comments below... As I u... | 1 | 3 | 2,250 | 2016-04-06T01:03:32.423 | database_errors | dba.stackexchange.com | |
55,187 | Select records in one table but not in another, when the second table is not matching on primary key | I have two tables from which I need only the results that appear in one table ( [CODE] ) which do not appear in the second table ( [CODE] ). The [CODE] table's primary key is [CODE] , and the table has a vestige [CODE] column (which is actually unused in the application at the moment). The [CODE] table's primary key is... | MySQL, in fact, all SQL products really barf at [CODE] It causes confusion. You really mean [CODE] You need to change it to [CODE] Give it a Try !!! ABOUT YOUR QUESTION Your first query [CODE] resembles a natural join where nothing matches on the cardinal table, so the count [CODE] is correct. Your second query [CODE] ... | 1 | 3 | 20,496 | 2013-12-17T14:06:06.807 | database_errors | dba.stackexchange.com | |
222,210 | powershell run java process problem | I'm trying to run a java process via Powershell in Windows XP. Here's the command: [CODE] So, the classpath is . and .\common.jar (I think java takes the wrong slashes, right?) There are two environment variables, one "atest1" the other "." and the class to execute main on is DW_Install (in the default package). This c... | So, the answer is here . Thanks for your help. I hope this helps someone in the future! | 0 | 0 | 9,241 | 2011-01-13T20:58:18.987 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.