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 |
|---|---|---|---|---|---|---|---|---|---|---|
802,625 | Google Apps Directory Sync search rule returns incomplete results | I have successfully set up Google Apps Directory Sync (GADS) for one of the Active Directory forests I manage. This forest was created with a functional level of 2012R2. Now I am setting up GADS for a second forest. This forest used to be at the 2003 functional level but was later raised to a 2008 functional level. In ... | Okay I figured it out, and now I'm so angry with myself. The problem was insufficient permissions for the service account being used to run the LDAP query. In a forest that had not gotten as screwed up as ours is, special permissions would probably not be required, but in my particular domain, adding the LDAP query acc... | 2 | 1 | 1,698 | 2016-09-12T17:42:13.903 | infrastructure | serverfault.com | |
339,696 | some Zimbra project planning questions | I am planning to deploy a ZCS machine in a remote DC on colocation. Using the latest Community edition Hardware: 2x SAS disks for OS in raid1, 8x SAS disks in raid10 for Zimbra, 32Gb RAM 8 CPU cores Requirements: Normal system functionality Everyting must be encrypted (currently considering the standard LUKS) Backup to... | You don't mention the number of users you plan to manage under this setup. I can comment on my experience with Zimbra installations of up to 150 users, though... The hardware is fine, if not overkill on the RAM. Zimbra will hammer your CPUs by default. There are some tuning options that will help. On the OS/disk side, ... | 1 | 2 | 274 | 2011-12-10T12:21:16.743 | database_errors | serverfault.com | |
831,917 | Linux vm in vmware "Error loading operating system" | I have a vm I cloned from a physical server using vmwares p2v converter and after the clone the new vm wont load the os. The error I get is "Error loading operating system" The cloned machine is a rhel 3 32bit server. I believe its esxi 5.5. I uploaded an arch iso to the vmware storage and booted with that. When I had ... | This wasn't a vmware issue like I suspected. The problem was with grub. chroot and [CODE] allowed the machine to start up. | 2 | 2 | 2,467 | 2017-02-10T20:15:07.230 | infrastructure | serverfault.com | |
897,749 | Alert me This sender failed our fraud detection checks and may not be who they appear to be | I'm using ZenDesk Ticketing system in the company. ZenDesk has support email which is used by customers to send their problem requests to, thus creating a new ticket. But we're using our own support email which is hosted on Outlook and do forwarding emails from this email to ZenDesk one. The problem is when someone sen... | If the sender is failing and SPF check, you can not fix that issue by changing your SPF record. They will need to fix their SPF record. Forwarding emails is problematic with SPF. There are a variety of solutions that can be used: Configure your ZedDesk to trust the security headers injected by Outlook: This is the stan... | 0 | 1 | 159 | 2018-02-18T10:58:55.553 | infrastructure | serverfault.com | |
752,504 | URL incorrectly redirecting to other site hosted on same server (nginx) | I have an Ubuntu VM running nginx that I'm part way through configuring for SSL. I've defined some custom local domains that I use for development, stored in my hosts file (on the host machine, which is OSX): [CODE] Each has its own config file, both act to redirect all traffic to the non-www SSL domain. The nginx conf... | I'm not sure if this is worth keeping alive for others, but it did end up being an obvious error, [CODE] didn't have its [CODE] , it had two [CODE] s. So a working bar.dev config: [CODE] | 0 | 0 | 76 | 2016-01-28T21:35:08.337 | infrastructure | serverfault.com | |
42,706 | Defining Input Shape for Time Series using LSTM in Keras | I have been trying to model Time Series forecast using Keras LSTM algorithm. My dataset consists of weekly sales data from Jan-2016 and I also have external features such as Festivals/Events each modeled as a flag (0/1) for each week. So for e.g. let's say 2016W01 has sales of 100 units and has flag value 1 for the New... | An LSTM will expect the data to be of the format (samples, time steps, features). In a univariate case where we will focus on just the time series with the sales data, where you say five lags are required as input: [CODE] You could format your data like this using a sliding window of step size one: [CODE] this would gi... | 0 | 3 | 1,653 | 2018-12-16T13:01:58.680 | data_quality | datascience.stackexchange.com | |
1,036,634 | postfix delivery of mail to the same domain with external relay | I was looking at this answer to solve my issue but I see that I already set it. The point is: I am running postfix to deliver mail using Gsuite. If I deliver mail to any other domain it works fine. If I send mail to an address [CODE] it will try to dispatch it internally. I want to force posftix to send it using Gsuite... | Actually I solved using the transport directive. I added to my main.cf the following: [CODE] Then I created the transport file using [CODE] that will deliver all the email using gmail smtp (internal and external). and then I run [CODE] Finally I restarted postfix and everything is fixed. | 0 | 1 | 873 | 2020-10-06T16:01:21.137 | infrastructure | serverfault.com | |
917,968 | Hyper-V fail-over network replication ports (do i need HTTPS inbound to source server?) | I have replicaton of a local server to a remote server and all is fine (the remote server is enabled as a replica server, with HTTPS inbound). In the event i perform a planned failover to the remote server, how do changes get replicated back, are they over the outbound local-to-remote HTTPS connection or by some other ... | To enable reverse replication you have to enable your primary host to receive replication as well. When you reverse replication it matches the GUID and replicates to the original VM so don't worry about the replica storage location setting on the primary host, that is for replicas not already on the host. Replication G... | 0 | 1 | 293 | 2018-06-24T08:10:19.757 | database_errors | serverfault.com | |
985,175 | Avoiding DNS lookup issues with a cache | I'm running fairly simple PHP websites, on Ubuntu, with AWS EC2 instances, which use [CODE] domain names to connect to their respective RDS instances. This introduces 2 issues: When the DNS cache expires, every 5 seconds, the next request adds a minimum of 12ms to my websites processing time, which isn't ideal (I try t... | As per AWS Route 53 Documentation : Amazon Route 53 effectively connects user requests to infrastructure running in AWS – such as Amazon EC2 instances, Elastic Load Balancing load balancers, or Amazon S3 buckets – and can also be used to route users to infrastructure outside of AWS. You can use Amazon Route 53 to confi... | 2 | 0 | 1,120 | 2019-09-22T11:57:33.180 | api_errors | serverfault.com | |
259,630 | Defining password complexity and its action on "grace" state USERS | I have Oracle USERS linked to external applications that came to "grace" status. I tried to change the assword time expiration to unlimited but it doesn't apply to those account (considering I guess that the "grace" status is responsible for that) So, in order to keep the application's configuration the same, I wish to... | The password complexity is managed by a function. You can edit the function to fit your requirements or disable it at all. Check this link : https://docs.oracle.com/en/database/oracle/oracle-database/18/dbseg/configuring-authentication.html#GUID-A39E191B-4A06-442D-94C7-5882B73DDCFA On the section "Managing the Complexi... | 0 | 0 | 580 | 2020-02-13T14:09:18.667 | database_errors | dba.stackexchange.com | |
299,157 | How do I test a system where the objects are difficult to mock? | I am working with the following system: [CODE] We recently had an issue where I updated the version of the library I was using, which, among other things, caused timestamps (which the third party library returns as [CODE] ), to be changed from milliseconds after the epoch to nanoseconds after the epoch. The Problem: If... | It sounds like you're already doing due diligence. But ... At the most practical level, always include a good handful of both "full-loop" integration tests in your suite for your own code, and write more assertions than you think you need. In particular, you should have a handful of tests that perform a full create-rea... | 32 | 27 | 5,628 | 2015-10-06T15:49:13.470 | api_errors | softwareengineering.stackexchange.com | |
180,953 | Unit Testing DatabaseOpenHelper class in Android | I've written several unit tests for an already existing [CODE] class. I covered the creation scenario and migration from old schema to new one. Unfortunately, I don't feel that my tests are good. For example, for DB creation I check that [CODE] was called three times (we have three tables so far) and check that query s... | Instead of verifying that colum1 is name, colum2 is birthday, colum3 is .... i would just test if these colums exist after upgrade. To do this I would create an integration test that starts with a databasefile which has old database version, run the updater and then execute a sql-select for every table with a all field... | 7 | 1 | 1,532 | 2012-12-29T18:55:59.137 | api_errors | softwareengineering.stackexchange.com | |
109,931 | Why should you prevent a search engine from indexing your development server? | I've heard that you shouldn't let search engines index your development server. The reasons given were: Duplicate content penalties Customers making purchases from an unsecured domain (if eCommerce) These issues may seem relatively minor and I'm not sure it would be enough to convince someone to put in the effort to lo... | The most glaring and obvious problem with this is the fact that your development server is even publicly accessible. Search engine penalties and other related issues aside, there are a plethora of problems with having your dev server unsecured. While there's nothing wrong with having your dev server on the Internet, it... | 5 | 8 | 263 | 2011-09-21T19:09:07.480 | data_quality | softwareengineering.stackexchange.com | |
379,568 | WHM new account nameservers not responding | I've setup a new account in WHM and updated the nameservers from Domain Registrar and it's not responding from the server. So I went to DNS functions and Nameserver IP's and I have the following [CODE] I'm not sure whether "NO IP" part is the problem I went in to the domains and they seem to be properly set up. Below i... | You need to go to the DNS zone of WHM for this domain name and add following A record entries: ns1 A IP address1 ns2 A IP address2 Once you do this, you can login to domain name registrar and first register these nameservers as child nameservers (Private nameservers) and then only you can use these nameservers as main ... | -1 | 1 | 1,719 | 2012-04-15T03:35:41.333 | infrastructure | serverfault.com | |
335,936 | What are the responsibilties of the main in object oriented programming? | I'm new to object oriented programming and I don't understand what's the purpose of the main. Yes, I read that it's the "entry point" of the program but what I don't understand is what should be in the main? And what are its responsibilities? It may happen that something written in the main could be encapsulated in ano... | First off, your example isn't an object-oriented program. It's a procedural program that happens to store data in objects, because that's the tool that your language (Java?) provides for structured data. A true object-oriented program consists of objects that interact with each other -- it's about behavior rather than ... | 10 | 10 | 3,264 | 2016-11-13T11:51:40.550 | api_errors | softwareengineering.stackexchange.com | |
244,841 | which node will execute events in master-master setup | Am newbie in this database replication. Right now on server master-master setup with Galera setup. If I have events running in the database. It means from which master its running. If one master down then the second master will execute that events or for that something can be done in the configuration. Anyone like to s... | As far as I know, events in a MariaDB Galera Cluster must be configured to run on only one of the nodes. While [CODE] is replicated to the other nodes, you have to choose which node to use for running the event scheduler: Execute [CODE] on the node where you want events to run, or set it in your config file if you want... | 1 | 1 | 934 | 2019-08-08T08:32:20.517 | database_errors | dba.stackexchange.com | |
165,382 | DHCP problems with Windows Vista x64 machine | One of our computers has started to constantly acquire a new lease from our DHCP server (a Trendnet router.) I get these 3 messages every couple of minutes, and the messages are logged at the same time: [CODE] (Yes, the last message is repeated twice.) Because of this, the computer is having constant problems with comm... | This appears to be a hardware problem with our Netgear GS108 switch. I thought I had tested without the switch, but apparently not! | 1 | 0 | 304 | 2010-07-29T18:51:56.750 | infrastructure | serverfault.com | |
876,733 | nginx + fpm + subdirectory | I have an nginx config that looks like this: [CODE] This is a Laravel application, which works almost completely out of the box. However, there are a couple of small problems that I have with this configuration. Hitting [CODE] triggers a 404. Hitting [CODE] works successfully. Hitting one of the pagination URLs ( [CODE... | Hitting /movies triggers a 404. Hitting /movies/ works successfully. To solve it at the server-level... please add the following location block alongside the existing location block for movies... [CODE] Hitting one of the pagination URLs (/movies/test?page=2) has no information from the querystring. It is due to [CODE]... | 1 | 0 | 1,735 | 2017-10-04T00:10:59.483 | infrastructure | serverfault.com | |
12,948 | Query optimization: Which is better in my case - CURSORs or a Set-based approach? | First of all, I can describe the schema of the table, but my table itself is around 80GB so I am hoping some expert eyes can look at any obvious optimizations that can be performed. I am carrying out some activity-based analysis to understand a set of users from an in-house virtual gaming environment. I have two base t... | 1 - Don't use CTEs for performance. CTEs are basically single-use views. They convey absolutely NO performance benefit. If performance is important and you have enough data, indexed [CODE] tables will probably work a lot better. 2- Definitely use a set-based approach. I can't think of any scenario where a [CODE] would ... | 1 | 7 | 659 | 2011-10-11T19:29:04.557 | database_errors | dba.stackexchange.com | |
422,697 | Variable WHERE clause while avoiding sql injection | I want the user to be able to provide a custom WHERE statement against a mysql-backed platform... do I need to worry about any possible SQL injection attacks notwithstanding invalid sql? See the pseudo code below. [CODE] Okay, in all seriousness I can see where this can go horribly wrong. But given that multiStatements... | And then the SQL Engine was updated to include [CODE] In short don't allow the user to provide any SQL. In long. The capability of database engines and sql has steadily expanded over the years. What was not valid SQL 10 years ago, is now valid and very powerful. Specifying negatives like not this feature, and not that ... | 0 | 5 | 236 | 2021-02-25T02:21:51.027 | database_errors | softwareengineering.stackexchange.com | |
320,872 | Is there any way to find out if SQL Server is using all of CPU cores? | I'm using SQL Server Web Edition. I have SQL Server licensed to 16 cores only. I have 48 cores of CPU. Is there any way to know that SQL is reaching or utilizing its peak 16 cores limit all time? I am having performance issues and not able to find out that if its only SQL Server reaching its all cores limit after which... | Paul Randal's article SQL Server Wait Statistics (or please tell me where it hurts…) has a query that will help you identify if the low performance you've been experiencing is due to processor utilization. Regarding the limitation of 16 core for SQL Server Web Edition, you can confirm that info on the Scale limits sect... | -1 | 1 | 284 | 2022-12-12T20:11:54.280 | database_errors | dba.stackexchange.com | |
1,019,098 | Apartment-wide single SSID / multiple password Wi-Fi network security concerns? | My apartment building is changing internet providers, and the new provider plans to install a network that will have a single SSID for the entire building. Each tenant will be given a unique password that is supposed to make it so each unit is separated on the network from every other unit. For comparison purposes, our... | Yes, it is possible if you are using 802.1x for authentication. The RADIUS server can specify a VLAN for the user/port. If it is different for each user then the router can have ACLs that prevent inter-VLAN traffic or simply not route between them. | 2 | 3 | 959 | 2020-05-28T20:31:51.047 | infrastructure | serverfault.com | |
566,014 | Cannot access virtualhost via servername but can with alias | I can access site perfectly via alias, but not servername: [CODE] How is it possible? What can I do to fix this? | Maybe the name [CODE] isn't resolvable in DNS. What does [CODE] say? If it says "Host xx.com not found", then that's the trouble and you'll need to give that name an alias or IP address in your domain's DNS. | -1 | 0 | 93 | 2014-01-09T02:43:20.343 | infrastructure | serverfault.com | |
181,678 | Minimal permissions required to read index size in SQL Server | I'm involved with managing an application with a large number of SQL Server 2014 databases and am extracting table and index sizes in order to track capacity. I'm using the following query: [CODE] Ideally I'd like to run this query from a SQL Login with the minimum required permissions, but so far it seems like the use... | As far as i know, the minimal required permission set solution in this case is to create a store procedure thats executed within an impersonated context. Do this by: [CODE] see: ( https://learn.microsoft.com/en-us/sql/t-sql/statements/execute-as-clause-transact-sql ) Then grant users execute on that stored procedure. T... | 2 | 1 | 2,058 | 2017-07-25T02:39:11.087 | database_errors | dba.stackexchange.com | |
976,593 | Is it possible to connect a laptop to a Linux desktop - to function as the desktop console? | I have some 30 Linux (RHEL/CentOS 7) desktops that operate as servers. Their only connections are power and NIC. Being desktops, most don't have serial ports. How can I go about using a Linux laptop to serve as their console? I'm thinking of connecting the laptop to the desktop with a USB-to-USB cable. Is the above pos... | Yes, there are products that serve to enable a laptop as a portable KVM device. They are commonly used for lightweight/portable crash carts. Start here: https://www.google.com/search?q=usb+crash+cart+adapter As we don't do product recommendations, I can't be much more specific than that. Those types of answers don't ag... | 1 | 3 | 963 | 2019-07-24T23:01:19.937 | infrastructure | serverfault.com | |
36,163 | TCP Optimization for WinXP | Is there any benefit to optimizing my network connections (TCP) using tools like the TCP Optimizer? http://www.speedguide.net/downloads.php If there is a benefit, how does one do it right? | It depends. Depending on the type of network you are on and the applications that you typically access, tweaking Windows standards may or may not help. If you're using frame-relay WAN links, tuning the TCP Window Size has a fairly dramatic impact on circuit utilization. Depending on your ISP/WAN connectivity, adjusting... | 2 | 3 | 384 | 2009-07-05T23:06:03.643 | infrastructure | serverfault.com | |
137,376 | Table Relationship - One to Few (Many) | I know the title may seem confusing but I have yet to find a solid answer to this design pattern. Let's say I want to create an Employee table and have multiple addresses for each employee. So this would call for your standard one-to-many relationship. You obviously want and Address Type column to track what type of ad... | The compound PK of EmployeeId and AddressTypeId is exactly what you want, and you don't need anything else. The relationship is still a one-to-many relationship, as for one [CODE] , you may have many [CODE] whether it is a home address or a work address. The bridge table is interesting if you may have the same address ... | 5 | 6 | 2,981 | 2016-05-03T15:34:13.877 | warehouse_errors | dba.stackexchange.com | |
237,444 | alternatives to nested try-catches for fallbacks | I have a situation where I am trying to retrieve an object. If the lookup fails I have several fallbacks in place, each of which may fail. So the code looks like: [CODE] This looks awfully ugly. I hate to return null, but is that better in this situation? [CODE] Are there other alternatives? Is using nested try-catch b... | The usual way to eliminate nesting is to use functions: [CODE] If these fallback rules are universal, you could consider implementing this directly in the [CODE] object, where you might be able to just use plain [CODE] statements instead of an exception. | 15 | 18 | 17,099 | 2014-04-29T21:16:26.223 | api_errors | softwareengineering.stackexchange.com | |
321,086 | Using btree index with LIKE operator but not equal (=) | In summary, Postgres prefers doing the equivalent of a [datetime index seqscan]+[filter (using the heavy function)] instead of using the index when using = to find what I like. When simply replacing = with ~~, it starts using a bitmapAnd on datetime+indexed field which is thousands of time quicker. I tried: setting the... | The index is decorated with [CODE] , which prevents the simple equality operator from being used, while LIKE is special-cased to be usable in this case. You can drop the collation decoration from the index, or you can add one to the test in the query: [CODE] Note that even if your database's default collation is "C", t... | 1 | 2 | 249 | 2022-12-16T15:16:30.073 | api_errors | dba.stackexchange.com | |
587,844 | HAProxy isn't accepting reissued GeoTrust certificate | I requested a reissue of a GeoTrust certificate in light of the Heartbleed bug. We're using [CODE] with OpenSSL enabled. I've updated OpenSSL on all affected instances. The PEM that HAProxy requires is a concatenated version of the certificate, the intermediate certificates and the private key: [CODE] I can validate th... | Wow. A detail that I omitted was that we purchase/re-issue our certificate through a reseller (Namecheap). I had requested a certificate re-issue 3 times today because I thought I was doing something funky. I called GeoTrust and asked about my requests. The guy on the phone checked all 3 CSR's that I had sent and all 3... | 4 | 2 | 5,443 | 2014-04-09T17:41:47.073 | infrastructure | serverfault.com | |
266,617 | Postgres not using index when expression in WHERE condition | The table [CODE] has an index on the column [CODE] . The following query makes use of this index: [CODE] But this other query doesn't — almost identical but the WHERE condition depends on an expression: [CODE] What I'm getting trouble understanding is, once the [CODE] subquery has been executed, the [CODE] value is kno... | Without further schema information, like what the relationship between my_table and other_table is, it's a bit difficult to answer with a query directly, but I've done my best below. As Laurenz Albe mentioned, you could solve this using another query. That query could take the form of a CTE: [CODE] Or a subquery: [CODE... | 2 | 2 | 882 | 2020-05-06T17:50:57.547 | warehouse_errors | dba.stackexchange.com | |
681,505 | Recover Citrix deleted application | Due to an error some of the Published applications in our farm (Citrix 4.5) were deleted. As far as we have the datastore in Oracle probably restoring our last backup before the accidental deletion will solve the problem. But before performin this action (recover the database used for farm datastore) I've take a look t... | Try DSView.exe There is a tool for looking inside the XenApp Data Store. It is called "DSView.exe". I think this is your best bet. Unfortunately I can't give any better pointers on where exactly to look inside the DS. Here's a Citrix Support article that has screenshots and general info on DSView.exe: CTX127599 - How t... | 0 | 1 | 1,430 | 2015-04-09T09:14:41.793 | database_errors | serverfault.com | |
3,611 | How to fix intermittent typing problems with send_keys? | See attached. Once in awhile (say, one in several hundred test runs), I'll have something like this happen: What it should have typed was AttachmentCount:0 . Another example where it is retyping "very" and this time with the wrong case: I have also seen it happen where it stops typing in the middle of a send_keys() phr... | Well, this is more of a workaround than a true fix or answer -- and I'll award the bounty to any better solution -- but here's what I ended up doing. It checks to make sure it typed what I wanted it to type, and retries if not. [CODE] | 5 | 1 | 6,494 | 2012-08-08T17:36:54.697 | data_quality | sqa.stackexchange.com | |
686,076 | How to set up port forwarding from Windows host to Vagrant Linux VM to Docker containers? | I'm using a Windows host, running CoreOS in Vagrant with VirtualBox provider, and in that CoreOS, I have Kubernetes 0.14.2 single-node cluster running (I couldn't get latest version, 0.15, to work reliably). I have created an nginx service, as provided in Kubernetes Docker guide . [CODE] Assuming the Kubernetes service... | You can do this while creating the service, either by adding the field [CODE] to the JSON definition, or by using overrides with the IP address of the VM: [CODE] Another thing that works is configuring Putty - in Connection / SSH / Tunnels, add individual ports, e.g. in this case, local 8080 needs to point to 10.0.0.12... | -1 | 1 | 2,531 | 2015-04-28T08:17:29.480 | pipeline_ops | serverfault.com | |
318,827 | How to continue the INSERT even after the error | I have millions of rows to insert in SQL Server, but some of them are in error, I would like to know if there is a way for the INSERT to continue even after the error? and know which lines are in trouble? I tried to do it this way, but it didn't work. [CODE] Thanks. | If you have "millions of rows to insert", then using individual [CODE] statements for each row is not the right way of doing it. Consider using the bulk load utility [CODE] , which is specifically designed for this task. It has the [CODE] option that tells it to record rejected rows in a separate file. | 0 | 2 | 2,926 | 2022-10-27T12:29:11.960 | database_errors | dba.stackexchange.com | |
357,990 | How to avoid the static_cast/dynamic_cast in `Abstract Factory` design pattern? | We are using [CODE] design pattern in our project, as the project became complex, most of the time the concrete class functionality need to separate to multiple class. As the following code snippet, the render are supported by [CODE] and [CODE] , so there need [CODE] in the concrete implementation as following code sni... | (First a general note: that is not an abstract factory. The pattern gets its name from having an abstract class or interface for the factory. You're then supposed to have a different factory class for each family of types, instead of choosing the type from looking at a string. However, you might choose a concrete facto... | 2 | 5 | 2,366 | 2017-09-25T08:39:02.080 | api_errors | softwareengineering.stackexchange.com | |
375,721 | Keep channels online, even though underlying systems are offline? | We have six very old systems where the newest one is built 1995. All these systems have batch jobs running from midnight to 6 AM every night, and these systems are offline. On top of these six systems there is an API from which different channels access data from the six systems. Every channel is naturally also offline... | I don't think it's possible without addressing the underlying problem of the batch jobs taking the system offline. The solution would be as you say to copy the whole datasource prior to the batch jobs starting, and point the api at that until the systems come back online. But if you need to take the system offline to r... | 0 | 1 | 178 | 2018-07-23T11:29:58.637 | data_quality | softwareengineering.stackexchange.com | |
61,276 | "A referral was returned from the server" from ActiveDirectory plugin | I am using (trying to anyway) an ActiveDirectory plugin for ScrewTurn wiki called UserAuth (by "ElectricImages"). Whenever a user logs into the Wiki's login page with correct network credentials (provides domain\user and password), they get a login error and the ScrewTurn log shows the message Authentication of ...... ... | OK, I fixed it... There were 2 problems: I needed to use the fully qualified name, e.g. Source=ServerFault.com (as suggested by squillman) I needed to change the "Anonymous Access" user in IIS to be a network user that has access to Active Directory (previously, it was a local machine user) Thanks all who helped! | 4 | 5 | 24,806 | 2009-09-01T19:02:15.467 | api_errors | serverfault.com | |
139,597 | MySql timeouts waiting for table lock, no apparent deadlocks | I started having the following error on two different applications that write to the same database and table: Lock wait timeout exceeded; try restarting transaction At the beginning I thought it was caused by some slow queries creating deadlocks, but I haven't been able to find any evidence of that. This is the output ... | If a transaction has been running 837 seconds, I suggest that its is poorly designed. I don't like a transaction to last even 5 seconds, much less the default [CODE] . Can't wait for user - A transaction should not include any user interaction. Waiting for a user might mean waiting for him/her to take a phone call. If ... | 1 | 2 | 9,804 | 2016-05-26T09:42:55.757 | database_errors | dba.stackexchange.com | |
739,740 | Windows Server - WMI Permission? | This question is related to this one. I am trying to get some disk sensor data via WMI (W2012R2). Therefore I added a user wmiagent and granted some rights. I did it exactly like in this guide. Some commands like [CODE] work fine so the connection is working to my Windows machine. But executing a [CODE] command is givi... | The account also needs permission to logon. Try granting it the "Allow logon locally" Windows right to the domain controller (Default Domain Controller Policy). | 0 | 0 | 153 | 2015-11-30T12:32:06.393 | airflow_errors | serverfault.com | |
581,000 | alternative directory for files if not exists | lets say i make a request to http://www.mysite.com/files/picture.jpg so my picture.jpg is supposed to be in htdocs/files/picture.jpg how do i configure if picture.jpg does not exist in htdocs/files then look it up inside htdocs/files/alt? the filename varies, but the alternate directory name (alt) is fixed (which resid... | You should use an Apache module called mod_rewrite to achieve this. http://httpd.apache.org/docs/current/en/rewrite/ Apache's [CODE] module provides a way to modify incoming URL requests dynamically, based on regular expression rules. The [CODE] directive from [CODE] has the [CODE] flag which allows you to test if a fi... | 0 | 0 | 134 | 2014-03-10T11:11:19.217 | infrastructure | serverfault.com | |
623,457 | Struggling with Haproxy 1.5 ACLs using regular expressions and URL Parameters | I am using Haproxy 1.5.3 setup with ssl on the frontend and also sending ssl to the backend servers. the mode is http and using acls to determine stickyness. My test requests are as follows: wget https: //domain.com/ping?IPT=transpor6t&FROM_ADDRESS=409 wget https: //domain.com/ping?FROM_ADDRESS=409&IPT=transport6 the r... | Haven't tested this yet, but try specifying the delimiter: [CODE] | 1 | 0 | 2,425 | 2014-08-22T22:33:47.777 | infrastructure | serverfault.com | |
887,071 | Determining printers with state "Needs New Driver" via WMI/VBS | Everytime a change is made to our print server, some printers from what staff (without admin rights) have added to their printer list report "Needs new driver" in Devices & Printers (pre Win 10)/Printers & Scanners (post Win 10). See below example: I have been trying to find a way of identifying these printers, so that... | One solution is to allow users to update their printers without Administrative elevation. Then you don't need to do anything. VIA GPO: Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options\Devices [CODE] Computer Configuration\Policies\Administrative Templates\Printers [CODE... | 1 | 0 | 1,703 | 2017-12-07T16:25:55.037 | infrastructure | serverfault.com | |
561,776 | running multiple nics for fileshare benefits on a dhcp/dns role host | I have users who complain of network share disconnections happening in the background and it causing issues to their applications which are accessing these network resources. Because of this I decided to enable the other NIC on this server (HP Proliant DL 320 G5p). The first time I did this many problems happened with ... | There's a great article on TechNet on how to configure multiple NICs on a File Server running Windows 2008/2008 R2. You can find that article here . However, I think what you're looking for is: 2.3 Standalone File Server, 2 NICs on server, single subnet You will need to configure both NICs with different IPs on the sam... | -1 | 2 | 635 | 2013-12-16T21:29:44.153 | database_errors | serverfault.com | |
759,562 | Size Limit of /etc/hosts (Linux) | Does anyone happen to know what the theoretical size limit of /etc/hosts is on a Linux system before you might start to see degradation in performance? Furthermore, can anyone point me towards some official source that states what the expected limit is? | Use the source , Mike. The resolver uses a linear search through the text file to locate entries. It's a database with no indexes. So, in the absence of additonal caching capability, the cost for lookups will be O(n). As to when that will result in a degradation in performance, thats an impossible question to answer - ... | 11 | 9 | 2,730 | 2016-02-24T20:38:10.340 | infrastructure | serverfault.com | |
866,921 | replace two line with three lines using ansible | I am changing out our DNS servers. As part of this the DNS entries for our statically configured server interfaces need to be updated. However, I'm running into a snag. The interfaces currently have 2 entries defined and I would like to replace them with 3. This playbook demonstrates the problem using [CODE] . It will ... | What is the problem with [CODE] ? If line regexp is there, line will be replaced; otherwise new line will be added. [CODE] This code will replace [CODE] with corresponding value from [CODE] if it is present in the file, or add new line if DNS with such index is not defined in the file. | 1 | 3 | 4,151 | 2017-08-04T16:43:53.467 | pipeline_ops | serverfault.com | |
699,836 | Sustained io testing linux | I wish to hammer the io of some disks for an extended period of time and become aware whenever I can't read from a block (or some other symptom letting me know of an issue with backend storage). There are some benchmarking tools that write for a few seconds and show you results, but I want to do long-term testing. So f... | How about an [CODE] job with verification and a time_based workload? I'm thinking something like [CODE] This will do a random write of /dev/sdz bypassing the block cache (thus destroying the contents of /dev/sdz). After the /dev/sdz has been fully written its contents will be read back and verified. This process will b... | 1 | 1 | 159 | 2015-06-18T01:15:44.380 | infrastructure | serverfault.com | |
273,112 | Web API: avoiding name conflicts in URL query parameters | I am implementing a REST-like API and have just faced an interesting problem. There is a need to provide a resource with an open list of query parameters to filter the results. For example: [CODE] Field names are configurable, so I don't have the complete list of possible names. There are also parameters with special m... | An easy solution is to add a prefix to all the query fields (or at least the customized). In my case the fields can be in different classes, e.g. "core" or "custom" so it is convenient to use prefixes to differentiate them. For example, "core.field1", "custom.field10". As a side effect, it will resolve the problem with... | 2 | 2 | 2,167 | 2015-02-13T08:51:23.507 | api_errors | softwareengineering.stackexchange.com | |
548,920 | stunnel client uses improper SNI when talking to Apache | I have stunnel listening on port 80 and acting as a client connecting to Apache listening on port 443. Configuration is below. What I'm finding is that if I attempt to connect to localhost:80 the connection is fine but if I connect to 127.0.0.1:80 When I check Apache's logs it indicates that stunnel is using localhost ... | It looks like you can force this with the client config item: sni = server_name http://www.stunnel.org/static/stunnel.html - Search for SNI | 1 | 1 | 5,219 | 2013-10-27T06:15:35.437 | infrastructure | serverfault.com | |
72,746 | Some app accidentally change permissions in All Users/Application Data Folder on about 500 PCs -- How can I restore it to windows default? | During a beta test, a customer installed some software of ours which accidentally modified the permissions of the [CODE] folder on about 500 computers. They deployed the software using Altiris. The permissions got changed and began causing issues for applications like antivirus software which wanted to write data to th... | Try xcacls.vbs ( http://support.microsoft.com/kb/825751 ). It is a free VBScript command-line utility from Microsoft that is similar to the cacls command, but with more options. It has the ability to apply more fine-grained permissions than cacls, but read the instructions (displayed by typing the command without any o... | 2 | 2 | 2,695 | 2009-10-08T23:24:16.210 | database_errors | serverfault.com | |
53,662 | How does the Blackberry Manager know that a downgrade is required when pushing 3rd Party App? | I am trying to push out an app from the BES to Blackberry Device. I know everything works fine because it has worked previously. I now have an older version of the application and I have created a Software Configuration for it (I have removed the original version of the app and re-indexed). I have also completely wiped... | For the record I have found the answer to my own question. First of all, the BES knows that a downgrade is required by looking at the SyncDeviceMgmt table in the database and checking the version numbers that have already been pushed out to that particular device. In my case the BES wasn't even trying to push the app o... | 2 | 2 | 370 | 2009-08-13T10:40:10.580 | infrastructure | serverfault.com | |
116,959 | Windows 2008 Server and Subversion | I have a box with Windows 2008 Server, and I installed SVN. I want to connect to svn from a different Windows 2008 Server, and they are on the same network, both are in my office. Do I need to configure the box with the SVN server to accept connections from other computers, for when I try to connect, using Torotise Rep... | Did you configure the firewall on Server 2008 to open up the SVN port? That is a necessary step to allow access from another machine. Which port you have to open up depends on how you configured your SVN server. | 1 | 1 | 392 | 2010-02-25T22:23:13.763 | infrastructure | serverfault.com | |
187,785 | Foreign keys not working | I have created a db, and my problem is that I can insert ANY value in FK. Sorry for having the values in Spanish. This is my Database: [CODE] For example, I am able to insert in [CODE] in my all empty database which is an [CODE] relationship, the values I wanted, when it should show an error. I have found this similar ... | The problem is in the FK constraint, because they are not enabled. I am using DB Browser for SQLite, so you only have to go here in order to enable it: Then just check that Foreign Keys is enabled: | 2 | 3 | 1,773 | 2017-10-05T17:40:21.990 | warehouse_errors | dba.stackexchange.com | |
1,044,417 | Unusual DHCP activity after power outage | Over the holiday weekend, one of our clients experienced a power outage. When everything came back online, most devices seemed to be fine, but a few (one of our ESXi hosts and a number of VDIs) could not get a proper IP address. They were getting the 169 APIPA from Windows. I looked at the DHCP logs and from the time t... | It is not an answer to your question as I feel there is not enough information to really determine what happened. To prevent issues with DHCP servers many system administrators prefer to give their servers fixed IP addresses. That being said, I do prefer giving as much devices as possible DHCP leases to have a central ... | 3 | 5 | 874 | 2020-11-30T16:09:16.893 | infrastructure | serverfault.com | |
67,053 | Confusion about the MSE ERROR | I created a Random Forest regressor model and calculated my own error. I also want to calculate MAE, MSE and RMSE to compare my results to similar use cases. I am confused by the results as the values are far lesser. The random forest regressor function I used is the default one. So I am just curious if there is anyone... | After giving much consideration, let's review the mechanism of Random Forest Regression (RFR) : So this idea or process of averaging models is a technique called Ensembling . Additionally, Random forest is a Supervised Learning algorithm which uses an ensemble learning method for classification and regression. Random f... | 3 | 1 | 586 | 2020-01-25T20:37:52.603 | data_quality | datascience.stackexchange.com | |
75,576 | How we can make database resumable in perl script | I have a Perl code which connects with database and scan data from different different table. I face a problem if I lose my connection: it roll back all the transaction. How could I make the Perl script resume the connection and start the process from where the interruption took place? Can I use the Perl to resume the ... | Here is how you can handle this problem: Programmatically figure out how to store state, reconnect, and pick up where things left off. Enable the database to use online backups, so the system can stay up 24/7. This would allow you to continue to process even when a backup is being taken (although I would question why s... | -1 | 2 | 148 | 2014-09-03T11:30:17.177 | database_errors | dba.stackexchange.com | |
363,857 | Exchange 2007 Transport rule only works on SMTP | We've setup a transport rule to catch mail sent to people that have left the company. We've then created Exchange contacts for the mailboxes that were closed and so we can refer to them from the rule using "people". We even created a special DSN for our custom Enhanced Status Code and set the rule up so it'll use the s... | Can you post more about what filters and conditions you have included in your mail transport rule? Also can you ensure that when sending mail locally you are not using the auto-complete function in Outlook | 2 | 1 | 243 | 2012-02-26T12:20:35.233 | api_errors | serverfault.com | |
84,319 | Is it possible to have 2 backup plans for a single database? | Is it possible to have two backup plans ? allow sysadmins to have their own SQL Server 2008 set of backups for a database allow DBAs to have their own separate backup plan We have had issues with the sysadmin backups not working and would like to have a separate set for recovery. | You can have sysadmins doing COPY_ONLY backups and DBA's doing regular FULL, DIFF and/or Transaction log backups. The key is COPY_ONLY backups for allowing ad-hoc backups. But they cannot be used for point in time recovery. Note that taking a random Transactional log backup (without using COPY_ONLY) will break the log ... | 3 | 4 | 345 | 2014-12-04T15:36:36.870 | database_errors | dba.stackexchange.com | |
1,132,850 | NGINX reverse proxy responds to IP but not domain name | I have an nginx reverse proxy setup to point to my nodejs app. When I enter the server IP in the search bar, the website pulls up as expected. When I enter the domain name I get an ERR_CONNECTION_REFUSED error. I have the following sites-available file for my site: [CODE] I've also commented out everything in the [CODE... | When I enter the server IP in the search bar, the website pulls up as expected. When I enter the domain name I get an ERR_CONNECTION_REFUSED error. Then the FIRST thing to check is what the domain name resolves as on the client. Try pinnging the domain name. (It also proves that a lot of other things are not the cause,... | 0 | 0 | 867 | 2023-06-07T21:37:04.853 | api_errors | serverfault.com | |
1,041,346 | How to configure the SSH timeout with the Ansible Mitogen plugin? | I have the following vanilla Ansible configuration that helps go through a slow Bastion: [CODE] However, when using the Mitogen plugin with this configuration: [CODE] The timeout in the [CODE] section clearly isn't used. The Mitogen SSH documentation alludes to some SSH configuration, but it's unclear where to set thes... | you can use [CODE] variable. You can set it in [CODE] or in the command line: [CODE] | 1 | 1 | 10,419 | 2020-11-05T02:58:54.347 | pipeline_ops | serverfault.com | |
1,048,538 | How to expose passwords/secrets in Ansible playbook | I have a simple Ansible playbook to Fetch a database connection config from an RestAPI, Extract the config object from the payload, Using the config JSON (as request body) to create a PUT request to another RestAPI. At the 3rd stage I found that the database username and password combination is wrong. Later, while I pr... | You can set [CODE] in [CODE] . As However, the no_log attribute does not affect debugging output, so be careful not to debug playbooks in a production environment. Ansible doc the secrets should be displayed in the verbose output. Just add [CODE] to the [CODE] command. | 0 | 1 | 7,000 | 2021-01-04T16:57:57.173 | pipeline_ops | serverfault.com | |
199,459 | Confirming a Hard Drive Write Error | I've been having issues with a hard drive in a dedicated CentOS server with the following symptoms: Random MySQL Database Corruption -- Tables have been corrupted and repaired multiple times. Several hours after each repair they get corrupted again. MySQL has been completely uninstalled and a new version installed and ... | Harddrive errors tend to be caught by the kernel. Does your server have ECC RAM (it should)... without it memory errors can be missed. Same with any cache RAM on RAID adapters and the like. Pull the DIMMs, clean the contacts and try again, or try running Memtest. Checking for SMART errors on the drives can be helpful. ... | 1 | 1 | 486 | 2010-11-08T16:31:22.667 | database_errors | serverfault.com | |
737,485 | Hyper V 2008 enterprise not fully utilising system memory | I have 4 VM's running on hyper v 2008 R2 enterprise. Two of them have a warning memory status. Thus both have more memory demand than assigned memory. But On windows the physical memory usage is only 12gb. The server has 32GB. How can I get Hyper V to use more system memory? | Check to make sure you have free space on the disk where your snapshots are stored. In the case of failure, Hyper-V will pause the VM and write the RAM to the snapshot folder. If there isn't enough available disk space to write a complete snapshot, then Hyper-V will not add more RAM. When adding RAM fails because of th... | 0 | 0 | 48 | 2015-11-19T10:32:13.663 | infrastructure | serverfault.com | |
551,452 | MariaDB doesn't upgrade, 2 versions are installed | I have a server running on Debian wheezy with MaraiDB and OwnCloud. Few days ago, I wanted to update the packages because of the OwnCloud updates but something went wrong. Usually in this case I'd probably try to remove and again install the problematic packages, but on a server which is used by different people it doe... | I ran into this problem on two of my VPSes this morning. The only way I "fixed" it was to use dpkg to roll back the 10.0.5 packages with the 10.0.4 packages. Not really a fix, but it was the best I could figure out because the usual apt-get install -f did nothing. dpkg -i /path/to/old/10.0.4 debs | 0 | 1 | 551 | 2013-11-07T18:57:02.400 | database_errors | serverfault.com | |
355,184 | What should I do with implementation-specific exceptions? | Let's say I have an interface describing a simple service [CODE] I've written the [CODE] exception myself and it is specific to this service. Apart from that, anything else that could go wrong is implementation specific. If I have a [CODE] The connection could be broken, the table could not exist, etc. While with a [CO... | Should I wrap such exceptions into a RuntimeException or add another exception to my signature like OperationFailedException ? I would recommend something like the latter. Create a more generic exception for your [CODE] . Name it something like [CODE] or [CODE] , and have each method in [CODE] declare it as a checked e... | 11 | 8 | 3,331 | 2017-08-06T02:17:48.983 | api_errors | softwareengineering.stackexchange.com | |
64,206 | Internet Usage on K-12 Student Laptops | I'm developing some workshop curriculum on the topic of Internet safety for the purpose of helping parents protect their kids. I'm good on the issue of helping parents control their home computers but I'm not very up to speed with how educational institutions configure the laptops they provide to students where (I assu... | Most schools in the states fall under federal regulations that say that if you want XYZ funding, you're required to filter all access. Other schools filter just because it's asking for less litigation. So...at our schools, students grades 5+ have their own accounts that they use to log in. The school laptops in buildin... | 5 | 5 | 334 | 2009-09-10T16:26:21.693 | pipeline_ops | serverfault.com | |
257,012 | Estimate IOPS for an Amazon EBS volume using Windows PerfMon | I'm evaluating moving our aging infrastructure to Amazon's AWS and am trying to estimate costs. I know our current disk space requirements, bandwidth, and most of the other variables that will affect cost. The one that's got me stumped is IOPS on EBS volumes. My thought is to capture performance monitor data from our e... | "Disk Transfers/sec" is the metric you're looking for. It counts discrete I/O operations, rather than throughput. | 5 | 5 | 2,008 | 2011-04-07T19:28:52.997 | infrastructure | serverfault.com | |
5,802 | What system information is stored in the primary file in SQL Server? | Suppose I have created a new database in SQL Server with a file group FG1 and marked this as the default. All my user tables etc are now created in FG1. However I also created a file that is part of the PRIMARY file group. Apparently the system objects are stored in this primary file. I was wondering What kind of syste... | The system objects are the objects which store the schema for all your objects. The stored procedures, table schemas, etc. are all stored in these system objects. If the system objects become corrupt you have to restore the primary filegroup. You can view the data within the system objects by querying the system catalo... | 2 | 8 | 769 | 2011-09-15T05:02:21.310 | data_quality | dba.stackexchange.com | |
296,978 | How to consume standard routed API in a clean way? | Let's take an example of a generic API endpoint that looks as follows: [CODE] Conditions on this endpoint are as follows: Arguments are optional. Default values will be used if not provided. All the earlier arguments must be provided in order to use an argument. So in this example, if I were to get posts of page no 2, ... | A simple solution using LINQ: [CODE] Then you just need to pass your string segment arguments in order, converted to string. Alternatively you could do the string conversion inside: [CODE] | 2 | 3 | 143 | 2015-09-11T11:31:35.860 | api_errors | softwareengineering.stackexchange.com | |
124,484 | What are "sys.extended_index..." indexes? | A [CODE] run reports corruption in [CODE] . What kind of index are represented by the name pattern [CODE] ? The message is: The spatial index, XML index or indexed view 'sys.extended_index_1066482673_384000' (object ID ...) does not contain all rows that the view definition produces. This does not necessarily represent... | Extended Indexes are full text indexes, XML indexes, and Spatial indexes. Reason, the 3 types of indexes are better handled outside the B+ tree index. I know you do not care to correct this but, did you recently upgrade? Try changing the compatibility level if it's not SQL Server 2014 and run [CODE] again You can ident... | 5 | 5 | 1,406 | 2015-12-23T19:56:47.717 | database_errors | dba.stackexchange.com | |
1,006,478 | Is it possible to clone an old Windows XP machine to modern hardware? | I was given a task to migrate an old machine based on Windows XP to newer hardware. I have tried using Clonezilla to generate an image from the IDE HDD. The problem I am getting now is getting the restored image on a SATA Advanced Format HDD to boot into XP. The system reboots by itself when I try to boot it into XP. I... | With high probability XP do not support the new hardware. And IMO the best you can do is to convert the physical machine to virtual. This can help gracefully scale the virtual machine, take snapshots and so on. And also you will have virtual machine which support XP. | 0 | 2 | 590 | 2020-03-11T09:50:39.990 | database_errors | serverfault.com | |
839,824 | ZFS Poor Write Performance When Adding More Spindles | I am using ZFS on Linux and am experiencing a rather strange symptom that when I add more disks to the system, the speed at which each drive writes reduces, effectively negating the additional spindles for sequential write performance. The disks are connected with to the Host via an HBA (LSI 9300-8E) on SAS Disk Shelve... | The specification for an LSI 9300-8e HBA quotes 12Gb (Gigabit) throughput for connected storage. ( https://docs.broadcom.com/docs/12353459 ) You multiply up that figure with the bandwidth getting ~9600MB/sec. overall throughput. Is there an overall I/O queue depth setting for the HBA (driver) in the OS that is throttli... | 6 | 1 | 1,749 | 2017-03-22T06:59:48.087 | infrastructure | serverfault.com | |
49,580 | How to improve performance if index is not Most SELECTIVE? | As per suggestion index must be most selective to improve the performance. As a general guideline, we should create indexes on tables that are often queried for less than 15% of the table's rows The ratio of the number of distinct values in the indexed column / columns to the number of records in the table represents t... | Without having much detail, I can't recommend much. One thing that does jump out at me is that it's very likely you can improve performance on the table by normalizing it! The presence of so many duplicated (so few unique) values in the columns you listed suggests that perhaps many others in the table are not normalize... | 2 | 4 | 1,383 | 2013-09-10T07:33:27.523 | warehouse_errors | dba.stackexchange.com | |
286 | version controll application/system for mysql databases | Possible Duplicate: Keeping track of schema changes Hello, How do you keep your mysql database schema under version control. | Liquibase is probably the most popular version control system for MySQL. It's free and open-source. | 1 | 0 | 167 | 2011-01-05T15:25:29.340 | database_errors | dba.stackexchange.com | |
443,304 | automount a windows share | I have this line and it works [CODE] But then I try with autofs and it doesn't In /etc/auto.master: [CODE] and in /etc/auto.cifs_shares [CODE] it seems that the thing gets mounted actually, but it turns to be empty. When mounted with mount it's not empty at all What am I missing ? I'm on Centos 6.3 64 bits | I had similar problems with mounting a CIFS share on CentOS 6.3 64-bit - the documentation I found doesn't seem to document two additional arguments that need to be set up in the auto.master file for this to work. Here's what worked for me and might likely work for you (modified a little to fit your example): At bottom... | 0 | 4 | 2,524 | 2012-10-29T10:09:27.333 | infrastructure | serverfault.com | |
157,837 | LEFT JOIN same table - Postgres 9.2 | I've got this table: [CODE] I got a list of cities and postcode. I need to find if any row matches with the data I have: [CODE] I'm using this query; how can I achieve the expected result? [CODE] Would the query be right? | Would the query be right? No. It would find any combination of given cities and postcodes (like [CODE] . This Cartesian product would become increasingly expensive and nonsensical for more combinations in one query. And the query itself is needlessly expensive and confusing on top of that. [CODE] is misplaced and joins... | 1 | 3 | 1,103 | 2016-12-11T23:41:29.857 | warehouse_errors | dba.stackexchange.com | |
374,912 | FFMPEG Install on EC2 - Amazon Linux | Hello Serverfault friends, I am about two days into attempting to install FFMPEG with dependencies on an AWS EC2 instance running the Amazon Linux AMI. I've installed FFMPEG on Ubuntu and Fedora systems with no problems in the past, and have read reportedly successful instructions on installing on Red Hat/Fedora. I hav... | Well, the direct answer is no, but the correct answer is I can . When you have missing dependencies during compile, you just need to hunt those down and compile them, then try again. If you're feeling really fancy, you can make your own package out of all those dependencies. There is no fundamental incompatibility abou... | 3 | 3 | 9,607 | 2012-03-29T16:44:31.457 | infrastructure | serverfault.com | |
6,924 | Improving SQL Server performance on VMware under Linux | I have a Linux server in a small company (3 users) acting as a domain server and running two VMs under VMware: one has SQL Server 2000 on it and one has SQL Server 2005, in each case running on Win2k. Each of the SQL Servers has a couple of small-but-important databases. As near as I can tell, the Linux server spends i... | I had a similar problem. Virtual disks kill performance. Try to get as much data into memory as possible. I eventually put the disk intensive VM's onto its own RAID stack. Most people in OIT do not recommend putting disk intensive applications into a VM because of this reason. You also didn't specify which VMWare produ... | 7 | 5 | 920 | 2008-09-16T19:00:31.183 | database_errors | dba.stackexchange.com | |
620,463 | Sudo keeps asking for password on / mounted over NFS | I have a diskless server booting Ubuntu 14.04 with [CODE] taken from NFS. I use [CODE] . I have some strange behaviour of [CODE] and [CODE] . [CODE] keeps asking for passwords despite the [CODE] in the [CODE] . [CODE] does not update its db and does not find anything at all. I suppose this is because of some misconfigu... | I've solved it. The problem was not about NFS. sudo kept asking me for passwords because I had wrong time on the diskless server. I set the time to the correct value and sudo worked. locate did not update db because there were [CODE] in the [CODE] file. I removed nfs from [CODE] and it worked. | 0 | 0 | 709 | 2014-08-14T15:36:57.973 | infrastructure | serverfault.com | |
361,001 | Device vlanVID does not seem to be present error when starting vlan interface | EDIT#2: I think I found the cause of the issue: in /proc/net/vlan/config there is an old entry for vlan620 which links to bond0 (I was trying to do bonding originally) plus an old vlan620 file again tied to bond0. How can these entries be removed since contents of /proc cannot be edited like normal files? I am trying t... | Try using vconfig to remove the interfaces: [CODE] Linux Journal has good article discussing VLAN support in Linux that may help. | 1 | 1 | 6,582 | 2012-02-16T21:42:14.753 | database_errors | serverfault.com | |
62,479 | MySQL Rows to Columns to HBase (using Sqoop) | I have a table that looks like this in MySQL: [CODE] I have found that I can use this for rows to columns and it works so far: [CODE] The problem is I have 4000 'num' values (values are integers from 0 to 4000) and I do not want to write 4000 MAX statements manually. Is there anyway I can put a loop in there somehow? I... | If you are interested in returning all the values as columns, you need to be try something very adventurous. First look at your query [CODE] If would be a big mess to get MySQL to execute it as a query by giving MySQL the query with each column formulated. Perhaps you can get MySQL to concatenate the column values usin... | 0 | 1 | 911 | 2014-04-03T15:04:36.167 | hadoop_errors | dba.stackexchange.com | |
235,635 | Classic ASP executing under .cer file IIS7.5 | Not sure if this is default behaviour, however on one of our Windows Server 2008 R2 boxes we've noticed one of our websites has .cer files under a folder called /scripts. The .cer file contains ASP script which allows the intruder to browse the ENTIRE file system on the server, delete files, create files etc. We've ide... | That mapping is there by default in IIS7. Both *.asp and *.cer are mapped to asp.dll. They are the only two extensions mapped to Classic ASP by default. I'm not sure the reason for the .cer default. It's obviously something legacy for Classic ASP but I haven't personally needed to call a .cer extension directly in Clas... | 1 | 1 | 1,491 | 2011-02-15T10:27:28.773 | infrastructure | serverfault.com | |
273,528 | Why are cases in a switch statement not isolated? | As far as I can tell in all C-like languages something like this: [CODE] Will print "Hello World!" if variable == 'a'. I'm curious about the reasoning behind this behaviour as it seems to me automatically inserting breaks at the end of every case would make its behaviour a lot more consistent with expectations and a lo... | To write the equivalent of a switch statement in assembly you'd need to add jumps at the end of each branch to prevent execution from continuing to the next branch. C was designed to have a fairly straightforward mapping to machine code, and the pattern would've been familiar to assembly programmers at the time. Its de... | 4 | 12 | 721 | 2015-02-17T17:34:31.633 | api_errors | softwareengineering.stackexchange.com | |
143,044 | Optimise a LATERAL JOIN query on a big table | I'm using Postgres 9.5. I have a table that records page hits from several web sites. This table contains about 32 million rows spanning from Jan 1, 2016 to June 30, 2016. [CODE] I'm trying to tune a query that counts the number of people that performed a given sequence of page hits. The query is meant to answer questi... | Preliminary notes You are using odd data types. [CODE] ? [CODE] is an outdated type and almost always the wrong choice. You have indexes on [CODE] and join on it repeatedly. [CODE] would be much more efficient for multiple reasons. (Or [CODE] , if you plan to burn more than 2 billion rows over the lifetime of the table... | 9 | 14 | 15,018 | 2016-07-05T21:19:11.613 | api_errors | dba.stackexchange.com | |
448,183 | How can we avoid extremely complex configurations in enterprise software? | This is the situation that I've seen two times in a row already. A company makes software intended to be sold to other companies. So there will be relatively few clients, but each is an important one. An obvious, though by far not exhaustive example of such software is an ERP system. Now each client company has their o... | Why do companies making software sold to other companies tend to attempt to make the code general enough to meet the needs of all clients at the same time, while adapting the product to the needs of each client through configuration? Profit. This is an attempt to minimize cost. Everyone wants a custom fit at off-the-ra... | 34 | 36 | 5,828 | 2023-10-18T19:40:01.107 | data_quality | softwareengineering.stackexchange.com | |
658,407 | Security risks with distributing files with bittorrent | So I am evaluating different options for distributing very large files between several sites without completely crashing my servers and my IT infrastructure. My best option so far seems to be some sort of bittorrent solution. However I am not sure if this solution is safe security wise. Is anyone aware of any known sec... | As far as I know, without the .torrent file the clients won't be able to download the torrent data. But I haven't researched this so I may be wrong. The community, please correct me if that's the case. As an extra measure to be able to notice any abuses you could set up your tracker with passkeys (in other words make t... | 2 | 2 | 197 | 2015-01-09T14:31:32.190 | infrastructure | serverfault.com | |
323,775 | Real Time Analytics: Which database? | We are currently using MongoDB, and it is performing well for our needs. However, we are looking to support better real-time analytics and aggregations, which MongoDB doesn't handle effectively. Therefore, we are exploring other possibilities. The biggest problem is my data is so much flexible. We store: contacts event... | Since different attributes have input types, we could create two tables...attribute_string_1, attribute_string_2, attribute_string_3 What do you think might be the best choice for such a problem? Well that would defeat the purpose of using a NoSQL database like MongoDB, and you could just use a regular RDBMS at that po... | -1 | 0 | 96 | 2023-02-19T12:12:09.127 | spark_errors | dba.stackexchange.com | |
168,604 | In SQL Server 2008, is it possible to have aliased or named connections in the 'Connect to Server' dialog? | I work in an environment where I have to connect to SQL Server databases hosted on different servers with many different application logins. I might have ten different application logins for a single database instance. I find it incredibly difficult finding the stored connection parameters in SQL Server's "Connect to S... | Yes That is, you have "App1", "App2" etc to mask the actual DB instance. Then you "train" SSMS to remember logins for that alias. You set up client-only aliases using SQL Server "SQL Server Configuration Manager", then "SQL Server Native Client Configuration", "Aliases". As per MSDN | 0 | 1 | 30 | 2010-08-09T18:58:01.457 | database_errors | serverfault.com | |
898,053 | Proxy not returning Web app content | I have a webapp which communicates to the end user over port 80 and to an Express Server over port 3001. I've set up a reverse proxy but the code seems to be returning my server response directly to my end user instead of the web app html code. I need the web app to continue sending it's typical html response while sen... | Modifying the line ProxyPass to ProxyPassMatch allowed me to still access my HTML page from the root domain while passing any additional api calls to my server listening. [CODE] | 0 | 0 | 46 | 2018-02-20T15:37:08.247 | infrastructure | serverfault.com | |
302,371 | How to change EXIM mail server to send to new mx record? | Our website uses the wordpress contact forms 7 plugin to send emails. These are for people who want us to contact them. This just uses the default MTA on our server which is exim. Everything worked great and then we migrated our mail servers to exchange on a different server. Our MX record is pointing to the new server... | Exim is delivering locally because the destination domain matches one that you've configured Exim to consider local. Smarthosting doesn't come into it, because that only kicks in once Exim's decided to route the e-mail somewhere else, and that's not what's happening. The easiest way to handle this just to grep through ... | 1 | 3 | 2,050 | 2011-08-18T03:28:20.797 | infrastructure | serverfault.com | |
731,522 | DNS and mail server: how to setup SPF properly? | Here's my problem: I have my server that does everything: webserver and sendmails, let's call him " hqf.com ". My client bought another domain, let's call it " fly.com ". I need to send "validation emails" that look like this: [CODE] I've setup a postfix mailserver. When this server sends the email, it's "under the nam... | I'll use [CODE] for your client and `example.net for your mail server's domain. Your client's mail should be sent by an address like [CODE] . Other than [CODE] your client would have SPF records like [CODE] . As [CODE] send email using the the mail servers for [CODE] it would have an SPF record like [CODE] or [CODE] . ... | 0 | 1 | 129 | 2015-10-25T16:19:57.863 | data_quality | serverfault.com | |
118,046 | Very slow harddisk performance | Today I was trying to execute a long-running (but highly optimized) query on a server in our company. I've run the same query on the same data on my home computer (5400rpm harddisk) and it took about 40min. The server is about 10 times slower, maybe still running! The server does about 30 inserts/second, my home comput... | I would suspect the RAID5 to be the main culprit. Every block write to your array could result in a reads followed by two writes - at best (if the extra block is already read into cache) it will be two writes. On top of that, if your transaction logs and data files are on the same array each write the database performs... | 2 | 0 | 3,016 | 2010-03-01T20:45:36.727 | api_errors | serverfault.com | |
322,270 | Php-mysql injection | [CODE] Anyway to inject the mysql on this kind of structure? The database on with 1 Table 1 column with name id, just simple store "abc,bca,cab". Thanks. | Short answer, no. But mysql_real_escape_string isn't the only thing that protects you here. See : [CODE] You're not protected here, and an injection was made. So your quotes are protecting you against this here. You could also type cast (int) instead since it's an id. As a side note, you shouldn't use mysql, but mysqli... | -1 | 4 | 194 | 2016-06-15T07:38:12.560 | database_errors | softwareengineering.stackexchange.com | |
109,244 | Moving from TFS to Distributed SCM | I am currently playing with the idea of pitching DSCM to management in my company. We currently use the full vertical TFS stack (SCM, Bug Tracking, Project Management etc.) - however I want to specifically target the source control (as I don't think retraining QA with something like Redmine would be achievable). Probab... | Kiln might be a good option for you. It is based on mercurial and has full support by fog creek and good documentation to boot. | 3 | 2 | 544 | 2011-09-19T09:55:49.843 | api_errors | softwareengineering.stackexchange.com | |
93,677 | How to make apache log files readable by apache | I would like to make apache access log file readable by www-data (the user running the webserver) so I can serve it over HTTPS, to save me the trouble of SSHing to the server every time I want to check it. I tried [CODE] , but it seems that the permissions are automatically reset to [CODE] . | In case you'r running a logrotate, which also sets the permissions of the new log files, that might be a good place to make the change. For example, this is a default apache2 logrotate on an Ubuntu server. [CODE] As you see there is a setting called create? Feel free to change it to whatever mode and ownership you want... | 5 | 11 | 7,530 | 2009-12-12T12:13:01.373 | infrastructure | serverfault.com | |
377,664 | Using iPad for web development with WordPress | Setup: MacBook Pro (Running OS X) with Apache and WordPress install running at http://myhostname [CODE] is mapped to [CODE] in [CODE] I can not use URL to access the server, like [CODE] because the URL changes when I change locations and WordPress is sensitive to that I can not use [CODE] to access the server, because ... | Setup some sort of dynamic DNS so that you can access your site via a name. | -1 | 1 | 150 | 2012-04-08T12:45:02.157 | infrastructure | serverfault.com | |
336,990 | rsync file list over ssh generated by remote script | [CODE] This is what I do today. I'd like to instead do this by sending the output from [CODE] directly to rsync. That should be faster, and I can easily abort just one rsync operation. But I see at least one problem with this: The remote script generates a list of files with absolute paths. For rsync to work, I think I... | Generate a list of files and hand them over to rsync with the [CODE] option: [CODE] This should be much faster than calling rsync for every single file. | 0 | 6 | 2,123 | 2011-12-02T11:41:25.460 | infrastructure | serverfault.com | |
1,085,398 | How to retrieve private key information when we are creating azure vm from terraform? | I have created a linux centos machine on azure cloud using terraform. I tried to see the content of private key so I can connect later using output variable. But, I got error as I need to set it as sensitive and I did the same and the outputs is shown as below. Apply complete! Resources: 15 added, 0 changed, 0 destroye... | refer :https://docs.microsoft.com/en-us/azure/developer/terraform/create-linux-virtual-machine-with-infrastructure terraform output -raw tls_private_key > id_rsa terraform output public_ip_address ssh -i id_rsa azureuser@ | 0 | 0 | 576 | 2021-12-04T18:56:27.730 | pipeline_ops | serverfault.com | |
245,225 | What Windows licenses are required to run additional terminal service sessions | Possible Duplicate: Can you help me with my software licensing question? We need to build out a server running Windows 2008 R2 Standard that can allow up to 10 simultaneous RDP/Terminal Services connections and I'm a little confused about how the CAL licenses work. From one source I was told I needed 10 "server CALs" a... | You will need to purchase the 10 server CALs as well as the 10 RDP CALs. The server CALs are needed so that the users are licensed to talk to the Windows 2008 R2 OS. If you already have Windows 2008 R2 CALs then you don't need to purchase more. You can not use the default 2 admin RDP connections. Those are not RDP CALs... | 1 | 5 | 3,349 | 2011-03-09T15:35:38.583 | data_quality | serverfault.com | |
308,734 | How to integrate Postgres advisory lock functions into SELECT and UPDATE? | Using Postgres 13 in a Node.js application, I have a simple task to do: [CODE] a row (identified by its primary key) Run some application code that cannot be done in the database* with that data. [CODE] the row. Edit : Because of the stuff happening on application level and outside of the database, I cannot use a trans... | [CODE] There's a race condition here. The lock is released when the UPDATE hasn't happened yet. The lock should be released in a separate statement after the UPDATE. Besides, in the Read Committed isolation level, which is the default mode, WHERE conditions can be evaluated several times (*) if the command has to wait ... | 0 | 1 | 840 | 2022-03-15T09:17:38.847 | warehouse_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.