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 |
|---|---|---|---|---|---|---|---|---|---|---|
71,764 | Implementing Argus (similar to netflow) what kind of information should I be gathering? | I am setting up a trial of Argus at my company as a diagnostic tool. We have a collector box attached to a monitoring port on our switch, and the initial plan is to redirect ports with unusual traffic to the collector and then analyze it to get troubleshooting info. I need to sell this before I can pitch a more consist... | As a first step I would recommend looking at the "official" Argus wiki page . It is largely a cookbook page that gives some great examples of the kinds of queries that can be run using the tools suite. Also worth browsing is the argus mailing list . Often interesting uses of the product are shared there. Additionally, ... | 1 | 1 | 896 | 2009-10-06T14:29:15.000 | pipeline_ops | serverfault.com | |
917,616 | Drop-in replacement of Dell H330 controller with H730(P) | I am (slowly) upgrading some Dell servers. One of these has a H330 PERC controller which is quite slow (no cache, etc.). So I'm considering upgrading it to a H730P. It is a secondary server with two 4TB SAS disks in RAID1 configuration. My question is: is the RAID1 volume scheme compatible with H730? That is, can I jus... | They are both PERC9 serie controllers, so you should be able to simply swap the controllers. After that, your array will be market as "foreign" and you need to import it in the new controller. Pay big attention to these steps, because a wrong action will cause the array to be deleted. A working backup is a must in this... | 1 | 2 | 1,943 | 2018-06-21T10:00:32.120 | database_errors | serverfault.com | |
1,067,477 | mdadm how to use an array as a "member disk" in another array | I HAD a 4-disk RAID 5 array with MDADM. One of the disks failed. I bought a new disk three times the size of original disks as replacement. I now have 3x5TB disks in a degraded RAID5 1x16TB disk free unused I want to change the existing raid from 5 to a-sort-of 1+0 where only the old disks would be the "0" part: 3x5TB ... | Yes, this should work. But there is better way to achieve something like this. If you ever wondered how RAID10 or RAID60 are built, it's like this: system builds a number of small RAID1 or RAID6 arrays and then combines them into large "RAID0" array. Not vice versa, like having many RAID0-s mirrored or assembled with a... | 0 | 1 | 287 | 2021-06-22T17:25:04.297 | infrastructure | serverfault.com | |
657,896 | MongoDB: insert operation fails but disk is free | I've seen the strange behavior of my server and first of all I looked at log file [CODE] . There I saw the next lines: [CODE] I guess that it means that there is no free disk space on my server. Then I typed command [CODE] : [CODE] My MongoDB-files store at [CODE] , and there are a lot of enough space to store data. Th... | The only solution I've found is about 2GB-limitations in MongoDB on x32-machines. MongoDB can't store more than 2GB on x32-operation systems: http://blog.mongodb.org/post/137788967/32-bit-limitations But I'm not sure that that was the problem. | 3 | 1 | 1,587 | 2015-01-07T14:24:08.890 | database_errors | serverfault.com | |
186,748 | Svn move with wild card | The following command does not work on linux shell [CODE] it gave me an error: [CODE] Is there another way to achieve the same result? I want to batch svn move files | [CODE] Is probably what i'd do. either that, or something with find and -exec | 1 | 1 | 429 | 2010-10-01T20:34:43.643 | infrastructure | serverfault.com | |
342,677 | How do you give an account permission to a start and stop a Windows Service? | How can I give an account permission to start or stop a particular Windows Service using SC.exe? What I'm trying to do is from one machine A call these operations from another machine B: [CODE] The issue is that the first two operations pass but the third one fails. | You have to give your user the permission to stop the service either explicitly or via the membership of a sufficiently privileged group. This can be done by first changing a security template using the Security Templates MMC snapin and subsequently applying it to your system either locally or via group policy . This w... | 3 | 2 | 1,884 | 2011-12-20T10:51:08.423 | infrastructure | serverfault.com | |
868,317 | How to prevent "GET slash" http DDoS attack from frontend | Yesterday our webservers running Apache2.2 got DDoSed from a botnet which caused nine (9) hours downtime . The attacker was just creating too many "GET /" connections with result our servers to reach cpu load 100 and finally rejecting further connections. In front of those webserver there is a pfsense machine with hapr... | You won't be able to see the "GET /" from layer 4. That is only available at layer 7. It is best to block attacks as far away from the backend as possible. The sooner you can mitigate it, the better. You want it to consume as few resources as possible. If you can block it at the load balancer, great! At the firewall, e... | 0 | 1 | 625 | 2017-08-12T14:07:38.240 | api_errors | serverfault.com | |
352,344 | Apache2 Serving Pages Extremely Slowly - Please view server-status | For the last week, sites on my VPS have been loading extremely slowly, sometimes even timing out. Could you please take a look at my Apache2 'server-status' output and let me know if you see anything interesting? I see a lot of "OPTIONS * HTTP/1.0" requests where the client is localhost (127.0.0.1). I really have no id... | Are you running cPanel on your setup? The "OPTIONS * HTTP/1.0" is used by cPanel to check the status of the server, but shouldn't in itself be causing any additional load on the server so my guess is that there is something else and without additional information from you its very hard to suggest something else. When c... | 0 | 1 | 1,346 | 2012-01-21T22:56:44.443 | infrastructure | serverfault.com | |
145,850 | SQLCMD: "Login failed for user" on SQL Azure, but it works with SSMS | I have an SQL Azure database, and I'm able to connect to it using SQL Server Management Studio. When connecting to it, it displays [CODE] However, when I'm using the SQLCMD utility on the same machine, against the same SQL Azure server, with the same credentials, it always answers [CODE] The syntax I'm using is [CODE] ... | The error was some encoding issue with Powershell. I suppose the password's special characters were not read correctly by Powershell. In [CODE] , it worked flawlessly. | 3 | 2 | 5,194 | 2016-08-04T08:44:42.053 | database_errors | dba.stackexchange.com | |
785,872 | ipmitool: "Insufficient privilege level" for administrator | I'm trying to add the second administrator to IPMI: [CODE] I could login into web-ui and act as administrator using TESTUSR, but when I'm trying to use it with [CODE] - it don't work as planned: [CODE] Adding [CODE] don't changes anything. Any ideas why one administrator is "better" then the other one? | There is a privilege level for each user in addition to the channel. So one possibility is the privilege level for the user is not set correctly. Looking through the [CODE] manpage, it appears the command you want is: [CODE] Trying it really quick, for some reason the privilege level has to be specified as a number (4 ... | 3 | 1 | 14,246 | 2016-06-23T16:49:27.387 | infrastructure | serverfault.com | |
118,509 | VB6 COM Object not working on IIS 7 Windows 2008 x64 | I am extremely new to building webs and using IIS 7 and I have been charged with migrating some classic ASP sites in or DEV environment. My question is, and I apologize if I word it incorrectly, why don't any VB6 COM objects work? I have a site that uses a COM object for a sign-in process and it seems to do nothing and... | Most likely you need to allow your application pool to run 32-bit applications. The way to do this is to right click your app pool, click Advanced Settings and change the "Enable 32 bit applications" setting to True. | 0 | 0 | 947 | 2010-03-02T22:12:15.890 | infrastructure | serverfault.com | |
558,082 | Windows Serv 2008 R2 - IIS7 redirect ip adress to name | I am hosting a local site with Windows Server 2008 R2 and i really don't know how client can access to the site with a name "ex: test.com" instead of ip adress. I have search with DNS but i don't understand how can i use it with my site. I am tried it => here but it's doesn't work and i don't know why... i am really co... | If you have that domain on your DNS server, simply add an A record with no name and the public IP address of the server that you want your customers to connect to. You would then need to set a binding in IIS with the hostname that you want, which matches the DNS record you just created. | -1 | 0 | 63 | 2013-11-28T16:29:42.937 | infrastructure | serverfault.com | |
277,868 | Too specific of namespacing/packaging | I'm about to start building a C# library for English and French morphology as a side project. The library will be later merged with other linguistic aspects (phonology, sentence parsing, etc). for other languages (Japanese and Russian). Unfortunately, I have come across an issue in my design: my namespace hierarchy is ... | Your question is opinion-based and open-ended, so I'm not offering anything undoubtedly acceptable, but certainly, good naming is hard ← emphasis. I've found many times that coming up with good names or good system of names if they can't be easily changed with the use of refactoring tools later on, once the pilot was d... | 2 | 1 | 131 | 2015-03-31T16:00:03.240 | api_errors | softwareengineering.stackexchange.com | |
888,165 | How to use setfacl on ZFS dataset to set the equivalent of UNIX-style chmod 770? | I'm trying to use [CODE] to set the permissions of different ZFS datasets, and I want those ACL permissions equivalent to UNIX-style [CODE] . What [CODE] command could accomplish this, and what ACLs should [CODE] display if I were to do this correctly? I'm running FreeNAS 11.0 with Samba 4.6.4. | Note: the following is from a Solaris system, but the results should also work on BSD (where you need to use [CODE] / [CODE] instead of [CODE] / [CODE] ). The default permissions of a newly created (text) file are: [CODE] If you use [CODE] , you will get: [CODE] Essentially, execute (x) is added for owner and group, re... | 3 | 1 | 2,097 | 2017-12-14T16:13:09.287 | infrastructure | serverfault.com | |
482,444 | How to pass environment to start-stop-daemon based nginx init script | I am using Nginx with Passenger to serve a Rails app. I have hit a strange problem where NginX is not reading the environment variables that the app needs when started normally by the init script. I am using this script: https://github.com/JasonGiedymin/nginx-init-ubuntu/blob/master/nginx When NginX starts via the scri... | Try adding the variables to the script [CODE] | 0 | 0 | 1,623 | 2013-02-26T00:24:30.870 | infrastructure | serverfault.com | |
221,135 | What are the key performance metrics to monitor for a deployed ASP.NET web application? | I have full logging ( using log4net) throughout the application. What are the key WMI variables etc that should be monitored. If you had to pick 10 things that you would look at everyday what would they be and why are they important. | This question has already been asked, see https://stackoverflow.com/questions/603354/what-are-the-best-perfmon-counters-for-an-asp-net-application . The answer points to this TechNet article for IIS6.0 . You can also see the description of IIS performance counters (as of .Net 4.0) here: Performance Counters for ASP.NET... | 6 | 5 | 5,642 | 2011-01-11T14:29:12.753 | infrastructure | serverfault.com | |
529,961 | Symmetric NAT and UDP Hole Punching | I've read this question , but the explanation of Symmetric NAT wasn't detailed enough. Please could someone help me to understand the following paragraphs? I read this about Symmetric NAT : Each request from the same internal IP address and port to a specific destination IP address and port is mapped to a unique extern... | From our chat...so others may not get the full conversation, but the basics are here. So basic NAT = [CODE] with symmetric NAT it is a static mapping and the same every time and for both source AND destination. Example: [CODE] "in a client-server application where the client initiates the communication) a server could ... | 9 | 6 | 8,825 | 2013-08-09T20:09:49.967 | infrastructure | serverfault.com | |
46,882 | Python: Fast indexing of strings in nested list without loop | I have an array dataset from which I need to build D whose each element is a list of strings (Third column of dataset). The dataset looks like: [CODE] I want to check for every new string, and if it is not a part of any of the array element then append new string to only that array element. Since the data on new string... | This answers assumes I have correctly understood the question... I can alter my answer if OP updates the question with more details Using your example data, you can use Pandas easily drop all duplicates. Setup First dump your data above into a Dataframe with three columns (one for each of the items in each row. Import ... | 3 | 1 | 1,591 | 2019-03-07T18:52:57.087 | database_errors | datascience.stackexchange.com | |
192,680 | Free antivirus for windows 2003 | What are some effective free antivirus solutions available for Windows Server 2003? I tried AVG 10.0 but it gave me an error. | This is pretty subjective, but you could try ClamAV . It should run on Windows Server 2003. Other compatible antivirus programs are listed in this TechNet thread . | 1 | 3 | 630 | 2010-10-18T18:15:48.003 | infrastructure | serverfault.com | |
843,748 | How to upgrade Dell Perc H310 to Dell Perc 6i in Dell R420 | Due to events beyond my control, a Dell R420 server my (non-profit) organization relies on as an applications server was built using a Dell PERC H310 raid controller. This is much too slow for the work the machine is expected to do (especially when writing). We have since bought a new server (for other reasons), and th... | In principle, would a Dell PERC 6i be faster than the Dell PERC H310? My understanding is that the H310 has no write-cache, and that the 6i has some. In principle, yes a PERC 6i would almost certainly perform faster than an H310 given the fact that it has write caching support. What would it take to install a PERC 6i i... | 0 | 1 | 1,699 | 2017-04-10T20:29:33.603 | infrastructure | serverfault.com | |
91,870 | Duplicate non-clustered index on Primary Key, can I drop one of them? | Looking over on of our older databases I noticed that several large tables had duplicate indexes on the Primary Key. Both indexes are Non-clustered, Unique and only includes the PK-column. The clustered index is on a different column Below is the SQL to create the indexes [CODE] and [CODE] Both these statements will cr... | I think it's safe to remove the non-primary key as it's an exact duplicate of the primary key. If one of them is used more and takes less space, did you check the fragmentation and last statistics date on both? Maybe one of them is more fragmented or has better stats. | 2 | 3 | 1,365 | 2015-02-13T07:57:51.390 | database_errors | dba.stackexchange.com | |
513,321 | Linux server with Samba 4 as DC, filserver and netatalk (AFP for OS X) | I have an Ubuntu 12.04 server with samba 4.0.6 and netatalk 3.0.4. Samba is DC and fileserver. All with ACL and ext4 with acl filesystem. I managed to get the ubuntu server to join the domain with centrifydc trough changing the hostname in /etc/hostname Seems like ACL is complicated in an mixed environment. I have ther... | You could try whether "map acls = mode" in afp.conf helps with AFP permissions when dealing with ACLS. | 2 | 3 | 1,020 | 2013-06-05T07:23:40.357 | infrastructure | serverfault.com | |
389,964 | CQRS and Transactional Event Sourcing, problem while recreating Read DB | I'll first explain the context of my problem. The backend of my current project is using DDD, CQRS and Event Sourcing as a stack (the read DB being a MongoDB, my write DB being an event store). At some point I had to chain multiple commands in a "transactional" manner, did some research and had to choose between listen... | Read and Write listeners have a different life-cycle. Write listeners are not rerun over old data. They are run once. (If they are idempotent you might be able to rerun them but that is just duplicating work and increasing risk.) Read listeners are rerun over old data in order to reconstruct views for historic purposes... | 2 | 3 | 759 | 2019-04-08T07:34:28.877 | database_errors | softwareengineering.stackexchange.com | |
1,054,600 | nginx if condition with cookie/header value 0 | I have a cookie and a header named type and having value 0, 1, 2 (Main issue is with 0). I am trying to set a variable based on the value from cookie and header, with more preference to header value I have a following condition in nginx [CODE] So the type is first fetched from cookie and if there is a value (allowed va... | It is best to use [CODE] for these kinds of purposes. Define the maps on [CODE] level: [CODE] When there is a reference to [CODE] variable, nginx will look up the result using the first map, checking [CODE] value against the map. If no matching entry is found in first map, the [CODE] value points to [CODE] , which is r... | 0 | 0 | 598 | 2021-02-22T13:06:29.660 | infrastructure | serverfault.com | |
227,773 | Oracle 10g Database Locking Session Issue | I have a problem with locking and not timing out in one of my Oracle databases. This session locks occur on certain transactions that come from Oracle Forms users. For instance, when some user requests to make a change on a locked object the transaction waits for the locked object to be released, but it waits indefinet... | You can change distributed_lock_timeout at the instance level [CODE] But what you are describing is a session modifiable parameter in 11g called [CODE] and I’m not aware of anything that replicates that in 10g. The fact that it runs as expected in one environment and not the other means you might want to pull a list of... | 0 | 0 | 374 | 2019-01-22T15:17:59.803 | database_errors | dba.stackexchange.com | |
568,710 | Reverse DNS does not contain the hostname | When I check our SMTP configuration with this tool: http://mxtoolbox.com We get the following error: [CODE] even if they are both [CODE] What else should I check? Thanks. | When you say that both are mail.domain.ext, did you just now fix those records? Remember that DNS answers get cached. Try doing a reverse lookup from somewhere else on the internet. It may take you anywhere from an hour to a day for the cached data to expire from mxtoolbox.com's DNS servers. | 0 | 1 | 4,060 | 2014-01-21T08:43:49.220 | infrastructure | serverfault.com | |
92,680 | SQL Performance Problem IA64 | We’ve got a performance problem in production. QA and DEV environments are 2 instances on the same physical server: Windows 2003 Enterprise SP2, 32 GB RAM, 1 Quad 3.5 GHz Intel Xeon X5270 (4 cores x64), SQL 2005 SP3 (9.0.4262), SAN Drives Prod: Windows 2003 Datacenter SP2, 64 GB RAM, 4 Dual Core 1.6 GHz Intel Family 80... | This was caused by two issues - indexes different between prod and QA along with improperly configured maxdop. | 1 | 2 | 350 | 2009-12-09T17:13:56.797 | database_errors | serverfault.com | |
314,451 | Blocking storm when adding member to DB role | I managed to cause a blocking storm on a busy system whilst mapping a new Windows login to a particular database. The login had to be mapped to several roles within the database and I used the following syntax for each: [CODE] I was surprised when my process threw an error because it was chosen as the victim as part of... | Not 100% an answer, but here's the story The crux of this deadlock is [CODE] [CODE] is your ALTER ROLE statement, and it's waiting to get an exclusive lock on the principal, which apparently is treated as a Sch-M lock. But it's waiting for [CODE] to release its Sch-S lock on this resource (the graph gives no indication... | 0 | 0 | 206 | 2022-07-15T08:28:17.533 | database_errors | dba.stackexchange.com | |
390,850 | Domain Admin requires admin elevation with UAC turned off? | I have a Domain Admin User that logs on via RDP to a w2k8 r2 server, UAC is turned off locally at that server. Whenever I try to access certain folders, I'm getting the following prompt: "You don't currently have permission to access this folder". When I try to launch certain programs, I have to right-click "Run as Adm... | When you check "Effective Permissions" on the folder against the logged in user, do they have the permissions you expect? It is possible to remove permissions from the domain admin account(s). You could assume ownership and reset the permissions, but it might just be that the user account you are using simply is missin... | 2 | 0 | 322 | 2012-05-20T20:09:50.027 | infrastructure | serverfault.com | |
155,119 | Commit truncation with rowcount | I am new to SQL, I have a million rows in a table to delete. I wrote code to commit the transaction (delete the rows) every time the count reaches 50k and reset the counter again. My question is why I put a commit statement for the counter 50,000 not 10,000 or 1,000? Is it OK to commit for every 1,000 deletes? What wil... | It sounds like you are trying to delete everything in your table, is that correct? If so, I would check into a [CODE] syntax, this will cause the least amount of performance impact as it will not log the row by row delete. Additionally, since this is relatively low impact you shouldn't need to divide this up for only 1... | 0 | 2 | 371 | 2016-11-13T08:33:57.653 | warehouse_errors | dba.stackexchange.com | |
68,679 | Efficient query for an advanced EAV model | I'm kind of stuck on how to build an effecient query which returns the data of the following EAV structure. Today, a product table already exists, containing 4 fixed fields. We want to upgrade the system, allowing an infinite amount of additional product fields, defined by the manufacturer of each product. We call thes... | First of all, what you are about to design is probably a VERY bad idea. A much better solution would be to have a dynamic schema where you add new tables and have the application understand how to query those table (you could place them in a schema). This largely avoids all the locking and query plan issues you are bou... | 7 | 3 | 9,741 | 2014-06-20T13:01:10.443 | warehouse_errors | dba.stackexchange.com | |
1,052,373 | I try to sent emails from different domain names using one email account and get dmarc=fail | For example, I have: example.com (in this domain I create account) need.com (additional domain) I want to give the users the ability to send emails as @need.com using alias in accounts settings. The problem is that all messages go to spam with DMARC policies. [CODE] It is necessary to configure so that everything would... | *.20150623.gappssmtp.com indicates that you don't have a custom DKIM setup for your Google Workspace. SPF is failing because of misalignment . When you send an email from Alias setup (from Google Workspace), your MailFrom: will be your Primary domain (primarydomain.com), and your From: address your Alias domain(aliasdo... | 0 | 2 | 2,152 | 2021-02-04T11:00:57.287 | infrastructure | serverfault.com | |
834,372 | i install dns in centos machine but it not resolve ip to name and name to ip | I have some problem regarding DNS. I install DNS in CentOS 7 machine and my CentOS machine ip is 192.168.0.155 . If I run nslookup FQDN (centos7.unixmen.local) name then it resolves the IP, which means my forward zone is running, and my output is [CODE] but if i run [CODE] that means reverse zone not resolve to IP to n... | It seems that in your /etc/named.conf file you have a spelling error, it should be [CODE] Note the r in addr. Also you have pasted in a stray closing comment */ from your /etc/named.conf file near the line saying [CODE] | -3 | 0 | 1,132 | 2017-02-23T07:34:40.553 | infrastructure | serverfault.com | |
84,846 | Aspnet_wp at 100% cpu, but what website? | I have a problem on one webserver (IIS6) where aspnet_wp is using 100% cpu. There are several websites on this server. But how do I tell what website is causing the problem? The sites are in the 2.0 framework, and the server is running in IIS5 isolation mode. | For IIS6: At a command line, run [CODE] . It will dump PIDs for each app pool, so you can track which one is pegged. [CODE] For IIS7: [CODE] | 2 | 7 | 479 | 2009-11-13T18:26:56.183 | infrastructure | serverfault.com | |
269,837 | HOWTO: Ring Ethernet Lan, My drawing Correct? | I have a special demand that to improve the redundancy of a network. (any of the cable between switches broken will NOT disconnect any clients) [CODE] This seems should work, but: Does it work just out of the box? Any settings needed? (on router? or pc?) Will a packet gets passed around infinitely? Thanks guys! | Not usually Enable spanning tree protocol on all switches. If spanning tree is disabled, then yes. Else, no. | 0 | 4 | 140 | 2011-05-15T06:49:13.407 | infrastructure | serverfault.com | |
515,289 | Windows Server 2008: How do I configure a scheduled task to run with the logged on user's permissions? | On Windows Server 2008 R2, with User Account Control enabled, I want to run Process Explorer (as Administrator) when I log in. Though I have administrative rights on the server, I am not the only person using it, nor am I authorized to do anything I want, especially if it may interfere with other people. To avoid the a... | I think to achieve this, you need to do it with groups, rather than individual users. For example, the Server Manager task, which causes the Server Manager to appear on start up, is configured like this: In particular, using the "Administrators" group, and configured to "Run only when user is logged on". So, for your c... | 0 | 0 | 456 | 2013-06-12T14:58:51.880 | infrastructure | serverfault.com | |
25,040 | PhantomJS not sending keys to input | I'm automating the input to a search bar; the program work fine when using chrome driver, but fails when I try to use PhantomJS. The text that should go in the search bar is not being typed properly: [CODE] I also tried this code: [CODE] None of them are working. Is there another way to 'type' the text in the input/sea... | You can try to wait for the searchBar than try to get the cursor(Focus) to desired [CODE] using [CODE] and then try to send keys. [CODE] | 1 | 1 | 1,972 | 2017-01-23T19:58:00.590 | data_quality | sqa.stackexchange.com | |
44,858 | Sonar scanner failer on force language to Kotlin | [CODE] I'm getting above error message when I forcefully set the [CODE] . But when I turn off the [CODE] property code will automatically scan for Kotlin and XML files. As on the image I have already installed Kotlin plugin to my Sonar server. There for can someone please give me a solution to resolve this error. | Do you need to force the SonarQube to set the language to Kotlin?? As I remembered, the [CODE] is somewhat deprecated (correct me if I am wrong). Right now, it will automatically detect the language that you are using. That's why when you try to remove the [CODE] in your configuration and build again, it should work. | 0 | 3 | 201 | 2020-06-09T03:59:02.330 | data_quality | sqa.stackexchange.com | |
382,224 | Linux bonding: 802.3ad (LACP) vs. balance-alb mode | Here's the situation. I would like to connect my Linux servers to a single network using dual link for fault tolerance and load balancing reasons. The servers have 2 or more 1-gig NICs and I plan to connect each of them to a different switch that reside in a single stack (i.e. a single virtual switch). All switches are... | I'm not terribly familiar with Juniper switches, but you shouldn't have to configure LACP on them; that is the point of LACP. If this isn't the case, something is wrong with your switch configuration. LACP only specifies a protocol for dynamically aggregating ports. It does not specify a port scheduling policy (where t... | 6 | 4 | 44,744 | 2012-04-23T12:51:05.777 | api_errors | serverfault.com | |
356,782 | Multiple layers of abstraction and chain calls of methods (Java functional like programming) | I am creating a multiple wrappers/layers API in Java that go like this [CODE] [CODE] [CODE] with methods like [CODE] within each layer What is the correct way for the above structure to work as to be able to maintain the original object's, we start the chain with, type throughout the call. Aka the following to be feasi... | From this line only [CODE] I suspect that you may want to implement something like this: [CODE] So that you can perform this: [CODE] I was struggling for long to get such a solution. Unfortunately in java, generics themselves are not enough. You need to add some magic also.. --- EDIT Layer 4 would be: [CODE] e.t.c... | 0 | 2 | 1,496 | 2017-09-04T13:48:39.430 | api_errors | softwareengineering.stackexchange.com | |
815,398 | r10k on CEntOS 6.7, has anyone achieved this feat? | Do you guys know how one might run r10k properly on a CEntOS 6.7 server with Puppet 3.6? Is that a contradiction in terms? I checked the r10k source code's list of requirements: https://github.com/puppetlabs/r10k#requirements It looks like it requires Ruby 1.9. Fair enough. But... [CODE] Thus begins the ignoble quest f... | r10k 1.5.1 is the last version to support ruby 1.8.7. Even if you gem install 1.5.1, newer-than-when-released dependencies will be installed, which are also incompatible with ruby 1.8.7. Obviously resulting in non-r10k errors, and the reason you may be looking at this answer. [CODE] | 1 | 1 | 595 | 2016-11-17T00:34:00.497 | pipeline_ops | serverfault.com | |
741,387 | classes declaration inside of subnets in isc dhcp | I would like to use class declarations based on a subnet scope, is that allowed? Or are all classes global scope? here is my dhcp.conf snippet: [CODE] and this, also in the same file: [CODE] And i'm seeing this in my logfile, which makes me think that all class declarations are global: [CODE] I don't see anything in th... | All classes are global (which you can see a warning about when you test your config for errors with [CODE] . I don't know if this matters buy you also have the [CODE] declared twice in the class. | 0 | 0 | 2,464 | 2015-12-07T20:40:10.197 | infrastructure | serverfault.com | |
802,000 | Compatibility of Nvidia's Tesla K80 GPU on Sun Solaris Sunfire X4270 | I would like to fix Nvidia's Tesla K80 GPU on Sun Solaris server Sunfire X4270. If someone know how to check the compatibility, it would be great help ! | First step: comparing data sheets. The x4270 offers only PCIe 2 x 8 connectors, while the K80 needs x 16. Problem solved. | -6 | 3 | 128 | 2016-09-09T01:45:27.303 | infrastructure | serverfault.com | |
21,606 | sp_send_dbmail fails when mailing queries, but no error returned, query just hangs | I have an issue SQL Server 2005. [CODE] fails when mailing out with the result of a query (inline or attatchment). No error message is given / reported, the query just keeps executing but nothing returned (have left it for 28 minutes so far) with no time out etc. Mails go out fine when no queries are involved. Does any... | Is it possible that you're running on a deadlock situation? Create a test table that you know for sure no one is accessing it, populate it with some sample data, and run a query in proc against that table just to test it out. | 4 | 2 | 918 | 2012-07-27T10:39:16.240 | database_errors | dba.stackexchange.com | |
1,122,692 | nginx mirror traffic configuration issues | I am trying to mirror the SNMP trap across multiple servers. It uses TCP/IP traffic. I am using nginx to complete this but i am getting the following error [CODE] [CODE] | [CODE] is meant for relaying raw TCP traffic. [CODE] is meant for mirroring HTTP requests to a different destination. Raw TCP traffic does not contain HTTP traffic, so therefore [CODE] module cannot be used with it. I don't think nginx can be used for the mirror operation you are trying to perform. I don't know if ther... | 0 | 0 | 386 | 2023-02-12T17:40:27.090 | infrastructure | serverfault.com | |
39,968 | SQL server disk write queue dramatically grows sometimes | I have SQL Server 2008 and a single database with full recovery model. Usually, the queue length is less than 1. But sometimes it grows up to several thousands (3000!!) for a few seconds. At this time many of write queries ends up with timeout error. Using Resource Monitor, I found that at this moment sqlserver.exe wri... | Sounds like you have: A very crappy IO subsystem. A checkpoint occurring. Crappy IO subsystem + checkpoint = high disk queue. I found that writing to log (not to data file) is default behavior of Full recovery mode. And log can only be copied to data file by Backup Transaction Log operation. No, not really. Your inform... | 2 | 5 | 2,317 | 2013-04-14T22:03:41.573 | database_errors | dba.stackexchange.com | |
613,395 | Domain users in relation to local machine's settings | The lack of terminology's knowledge make's it difficult to find an answer with search engines for the following issue. Please excuse me. The problem is as follows: In a local windows network enviroment focus on a specific PC workstation, call it M, and two domain users, say user1.example.local and user2.example.local. ... | One way to achieve this would to copy the user profile of user1 over the one of user2: http://technet.microsoft.com/en-us/library/cc781200(v=ws.10).aspx | 0 | 1 | 61 | 2014-07-17T17:12:39.627 | infrastructure | serverfault.com | |
343,977 | Rebuilding courier message files | I run a mail server on which I have courier imap and pop3 running. Recently I moved some local messages from my machine (previously downloaded with pop3) onto the server so I could use imap. I used Mail.app on Mac OS X 10.5.8 to do this. This resulted in a series of files on the mail server that look like this: [CODE] ... | Thanks @mailq. It turns out that in addition to timestamp being at the beginning of the message filename, courier also looks at the modification timestamp of the file itself. I had to set that to the received timestamp as well. Here's a script that will, given a bunch of messages, copy them to an output directory after... | 1 | 1 | 1,003 | 2011-12-24T18:05:21.967 | infrastructure | serverfault.com | |
203,196 | Does an index continue to be used after it is dropped (Database Polling investigation) | The folly of developers who use database polling is shown below. I have identified a query below which did not have an index in place on a particular column In addition to polling the database every second with the below query, the developer did not utilise indexes on the CloseDateTime, so a scan of about 50,000 rows w... | An index that is not there is simply not there. One possibility is that the plan you had originally was sub-optimal, potentially due to bad (or just different-at-the-time) stats. So you went through this process: You had a plan that wasn't optimal. You created the index, which invalidated the existing plans referencing... | 1 | 0 | 125 | 2018-04-06T02:53:56.550 | warehouse_errors | dba.stackexchange.com | |
259,546 | Plesk and MailScanner | Plesk has spam filtering features using SpamAssassin you can buy. But I was wondering, what if I just install Mailscanner ? I mean, MailScanner installs itself in the postfix/exim/qmail pipeline and just lets the MTA deliver it normally. But because Plesk does it's own voodoo inside my Ubuntu install, I'm not sure if t... | I won't install something like Mailscanner on a system that is management by an external tool like Plesk. Both Mailscanner and Plesk change a lot of things and expect certain conditions. Mailscanner brings a lot of packages and is not that easy to set up, btw. You really have to know what you're doing. If you're using ... | 0 | 1 | 639 | 2011-04-14T08:28:02.013 | pipeline_ops | serverfault.com | |
143,958 | Can't connect to MySQL on CentOS 5 Error 13 - Permission Denied | Ok, I have an install of CentOS 5 running as a GuestOS in VirtualBox. The network card for the Cent box is bridged with that of my host OS so that the boxes can see each other. Cent has an IP of 192.168.1.108 and my Host box has an IP of .104. Everything, with regard to networking, seems to be working properly as I can... | What grant did you issue? MySQL treats connections from localhost different than IP-based connections. Out of the box, you can probably connect as root from localhost w/o a password. Are you using 'root' as your login? [CODE] You are using a different user, right? ;-P | 1 | 1 | 1,941 | 2010-05-21T01:09:26.167 | database_errors | serverfault.com | |
145,303 | Inserting 30k prices each minute, how can I skip an entry if the price did not change? | I receive around 30k price updates for various articles every minute and I need to write the new prices into our database (Which is a MySQL Database running InnoDB) The table containing the prices right now has only three columns: Article_id, InsertTime, and ArticlePrice My Problem is: I do not want to insert duplicate... | You have 30K new records for the 'current' minute; put them in a [CODE] table; include [CODE] . Note: [CODE] will need [CODE] . You need to find the 'latest' existing price for each of the 30K articles in the existing history table. But first, you need to find the latest InsertPrice for each article in this table: (Thi... | 1 | 1 | 118 | 2016-07-29T07:48:24.267 | database_errors | dba.stackexchange.com | |
5,778 | Outlook 2003 can't send email outside of domain? | Okay, once again I’m baffled with an issue that I’m hoping one of you can help me solve. Here’s the deal… Configuration: Microsoft Office XP (Outlook 2003) on a Windows XP (SP3) system connected to a POP3 email host. Symptom: Sending an email to anyone@example.com works as expected. Sending email to another domain (MSN... | I agree with Brent. It seems to be a classical "relay not allowed" problem on server, or other server issue, and not a client problem. | 1 | 1 | 3,914 | 2009-05-07T13:49:20.927 | infrastructure | serverfault.com | |
313,701 | Changing boot device for a QEMU-KVM virtual machine | I am trying to change the boot device for a VM. I go to the VM's XML file in [CODE] and set [CODE] . Still, it attempts to boot from the harddrive instead of the cdrom. I know I have an ISO image loaded on the CD-ROM virtual device. Am I not doing this correctly? I tried shutting down the VM completely and starting it ... | If libvirt doesn't reload VM settings on start/stop, [CODE] command may help. And please write entire XML file and libvirt version Hmm... everything seems OK. Try adding [CODE] to section and look if cdrom appears in boot menu. Also try removing all records from and adding [CODE] to section | 10 | 9 | 42,447 | 2011-09-21T00:37:36.413 | infrastructure | serverfault.com | |
245,973 | How can I compare processor performance when building a server? | I'm building a server for our dev test environment. It only has to support a handful of users, but it still has to have enough power to manage a 100-gig SQL Server database. (Yes, I'll add a bunch of RAM.) How do I compare all the different Xeons for speed? For that matter, how do I compare a Xeon with a Core i7? Intel... | Passmark benchmarks almost all CPU's out there, very good for comparison. PassMarks CPU Ratings | -1 | 1 | 427 | 2011-03-10T23:20:29.900 | database_errors | serverfault.com | |
193,225 | Anonymous function performance - setTimeout | According to Gregory Baker & Erik Arvidsson (Google), creating a named function and then passing that to setTimeout is actually faster than creating an anonymous function (reference: Optimizing JavaScript code -> Avoiding pitfalls with closures ): Creating a closure is significantly slower then creating an inner functi... | The theoretical difference comes from the fact the named function in your example is created at "compile" time. But the real truth is that JavaScript engines are now very very good at creating and managing functions and scopes, which is arguably one of the most critical topic with today's coding style, so the overhead ... | 4 | 4 | 3,761 | 2013-03-28T09:35:15.273 | api_errors | softwareengineering.stackexchange.com | |
665,023 | Work Folders that include a shared group folder | I setup Work Folders on Server 2012 and everything is working. However, I do not know how to include a shared folder - like the default company folder - for each users Work Folder. Based on my understanding, each user creates its own separate user folder in the Work Folder and can only see files in that. How can I crea... | I would not recommend implementing something like that. You would create a redundant copy of this shared folder on every device. Either you need the data in this folder for collaboration, then an online share (mapped or redirected) is the better choice or if offline editing is important, people should copy the data int... | 1 | 1 | 3,783 | 2015-02-04T18:21:27.863 | infrastructure | serverfault.com | |
699,152 | How can I combat all of these brute force attacks? | I have 3 dedicated servers, all running CentOS that are physically located in Canada. On the newest server, cPHulk started detecting (and blacklisting) failed login attempts. It started the day that the server was put online. Since then, I get 15-30 emails daily from cPHulk letting me know it that there has been a "lar... | Like Michael Hampton said, They [TM] do this to everyone. Their scripts have detected an IP address listening on a port and they're throwing usernames and passwords at it to see if anything sticks. This is a map of live attacks. If the emails bother you, you can instead whitelist allowed login IPs and have it email you... | 5 | 9 | 1,266 | 2015-06-15T15:38:09.967 | infrastructure | serverfault.com | |
554,365 | How to define nodes from a Hiera file in Puppet? | I am using puppet and the puppet network device management module and I am trying to build my custom type. In the built-in type for the routers configuration, you can specify a list of nodes and then the configuration inside that node: [CODE] What I am trying to do, is to move the manifest declaration of the nodes and ... | Why do you want to describe all nodes in one hiera file? What makes hiera superb is its hierarchical configuration. Use separate configuration files for separate hierarchy layers and finally have separate hiera file for separate node. And all of these layers will be merged together. | 1 | 0 | 581 | 2013-11-12T08:41:39.350 | pipeline_ops | serverfault.com | |
151,868 | SQL Server 2008, not enough disk space | I'm executing sql query on my database. I have SQL Server 2008 installed on my D harddrive which has 55 GB free space. I have also C drive which has sth like 150 MB free (right now). While executing that query on quite a big table (16 GB) I have an error: An error occurred while executing batch. Error message is: Not e... | This is likely a logging issue. You can move the log file to a different drive and use a lower level logging. | 2 | 3 | 12,100 | 2010-06-16T19:20:04.223 | database_errors | serverfault.com | |
351,113 | How to architect the network system in my project? | I'm developing a open source application that have a client and server side. The first version only have as client tvOS, and is being written with Swift. Now, I'm writing the network system for my client. My client need to make requests for the API and manager websocket with the server. What would the goods practices a... | Do you need a singleton ? According to the GoF , the intent of a singleton is: to ensure that a class has only a single instance and to provide an access point to it. But is there a reason that justifies that a [CODE] really has to be unique across your application ? Or was it just a design choice because it was conven... | 3 | 2 | 147 | 2017-06-18T03:47:22.180 | api_errors | softwareengineering.stackexchange.com | |
220,661 | Separate the renderer from the business model | I have a small responsibility separation issue that I hope someone can clarify. I have a small model composed by 2 classes: GameBoard and GamePiece, and the obvious relationship is that a GameBoard can have several GamePieces. In the application I'm implementing, GameBoard and GamePiece contain data related to renderin... | By the sound of it, this looks like a case where the Visitor patterns comes in handy. Within this pattern, the [CODE] and [CODE] classes contain all the game-related logic, but no rendering logic. Instead, the rendering logic for both the [CODE] and [CODE] classes is located in a [CODE] class. When the board needs to b... | 4 | 2 | 202 | 2013-12-08T12:04:47.267 | api_errors | softwareengineering.stackexchange.com | |
592,560 | Azure IO performance | We have a number of Windows Server virtual machines that we use for .NET and Java development and QA. I find Azure attractive for the obvious reasons but mainly for the opportunity to reduce non-productive hours spent on environmental maintenance. Functionally, after cleaning up system id issues with some of the apps (... | Azure VMs are sized based on their RAM and CPU cores, but all sizes are conspicuously lacking in storage performance, which always becomes the main culprit regardless of how many cores and memory you throw at a VM. Two solutions: For normal usage, just attach as many data disks as possible to your VM and configure them... | 3 | 4 | 2,987 | 2014-05-01T18:52:55.033 | infrastructure | serverfault.com | |
973,565 | Inplace Upgrade HyperV Server 2016 to 2019 | So if worse comes to worse, I can just clean install and readd my VMs. I just want to see if there's a way to do this. My understanding is that Server 2016 can do an inplace upgrade to Server 2019, wherein local settings are saved and the core OS is upgraded. Based on that, I tried with my HyperV 2016 servers. The setu... | It's a known issue... Not just inplace from an existing HYPERV but from any windows server. I got it working by setting the server to boot from USB and that USB was the hyperv install disk (used rufus with MBR instead of GPT). Before I skipped boot from that USB and it would always give me that error. It might not be a... | 4 | 1 | 3,786 | 2019-07-01T13:14:13.570 | infrastructure | serverfault.com | |
182,447 | SQL Server - Sudden log autogrowth after database backup | I have to manage a SQL Server 2008 Database, using SQL Server Management Studio 2012. The database file is about 290Gb. The problem we have is that the log file used to grow a lot. Doing some internet research (I'm totally new to DB management), I came to the following conclusions, and applied all of them: Set (what I ... | I wanted to clear this in a comment but there is no room to do this, so I post it as the answer. While the the key point of what happens is right, i.e. the full backup cause the log to grow, this explanation below given by Ste Bov is completely wrong: When you start a full backup that is the new point in time that the ... | 6 | 6 | 1,604 | 2017-08-02T09:02:02.530 | database_errors | dba.stackexchange.com | |
311,039 | SSH Key authentication | I can't setup SSH key authentication to login without entering a password, and just using the private key. Here is the [CODE] file of my VPS. [CODE] I generated the key using [CODE] in [CODE] folder of my local machine. Then I copied the public key file [CODE] by [CODE] Then I moved the file to the .ssh folder of my us... | Today when I switched on my machine, I could login without the need of a password. I guess tha was just a temporary glitch. Else @voretaq7 answer would have been better in helping. I am accepting my answer and upvoting his answer. | 6 | 0 | 766 | 2011-09-13T19:41:37.580 | api_errors | serverfault.com | |
209,924 | .htaccess RewriteRule, send requests to PHP script | I'm trying to protect user uploaded files in directory /secret. I created a htaccess file and placed it into that directory. [CODE] This is working very well, as long as all the files are in that /secret directory. The problem comes when there are subdirectories, for example /secret/subfolder/document.txt. Now when I r... | [CODE] If that doesn't work try to remove the ^ in front of ^(.*)$ | 0 | 0 | 3,131 | 2010-12-07T12:36:04.180 | api_errors | serverfault.com | |
335,676 | How do you redirect to CGI only on a query? | I'm replacing index.cgi of gitweb with a static index.html page. However I don't want links to gitweb repositories to break, such as http://example.com/?p=foobar; My non-working .htaccess currently looks like: [CODE] What am I missing? | By my reading of the RewriteRule docs ("What is matched?" box), if your RewriteRule is in a Directory section or .htaccess file, then the leading [CODE] will be stripped away, so the pattern in your rule won't match. You could try replacing the pattern by just [CODE] , i.e. [CODE] | 0 | 0 | 285 | 2011-11-29T07:15:41.910 | infrastructure | serverfault.com | |
20,166 | Can't create table or database in sql server as permission denied in database master . (Logged in with windows authentication ) | Can't create table or database in sql server as permission denied in database master. Log in authentication is Windows authentication (./SQLEXPRESS) | In order to create a database, you need to either be a part of the [CODE] fixed server role, or have either of the following permissions on the server: [CODE] , [CODE] , or [CODE] . The fact that you are using Windows Auth is a neutral point, as within SQL Server it is a principal that still needs the required permissi... | 2 | 2 | 6,466 | 2012-06-29T15:05:19.090 | api_errors | dba.stackexchange.com | |
50,334 | Why is IIS Anonymous authentication being used with administrative UNC drive access? | My account is local administrator on my machine. If I try to browse to a non-existent drive letter on my own box using a UNC path name: \mymachine\x$ my account would get locked out. I would also get the following warning (Event ID 100, Type “Warning”) 5 times under the “System” group in Event Viewer on my box: The ser... | Because you had a WebDAV redirector hooked up - I forget what that looks like for XP, but I suspect you can un-bind it from the Bindings interface for a network adapter (possibly in the advanced view). If you take a network trace of the same client connecting to another drive on a server with IIS installed, you'll see ... | 1 | 0 | 2,280 | 2009-08-05T13:14:02.227 | api_errors | serverfault.com | |
514,932 | AUFS missing in Redhat Fedora, is there an alternative way of stacking directories? | I can't find Aufs in Redhat's Fedora, or any other stackable filesystem for that matter. It seems this is due to relabelling limitations of SELinux. Is there a way to achieve similar without resorting to file/dir copy. I have the following list of directories: [CODE] I want to present the following to the compiler*: /t... | FunionFS is available both on Fedora and in Red Hat EPEL. The package name, of course, is [CODE] . | 5 | 5 | 7,801 | 2013-06-11T12:16:36.040 | infrastructure | serverfault.com | |
1,024,031 | Should a unified bare metal application suite outperform multiple VMs on the same hardware? | Assuming one single-socket Xeon D server, 8 cores, 16 threads, two 10G SFP+ interfaces, 64 GB of RAM, two SSDs... An application bundle that includes a nginx, MariaDB, some app logic, and maybe Redis. OS would be FreeBSD or Fedora Server. Does it confer any benefit to spin up several redundant VMs, each containing the ... | This is a simple "How long is a piece of string" question. Depends on your string; we have no clue how long yours is. As @ewwhite says, do some testing. If this is an entirely theoretical/academic question, then you're asking on the wrong site. Rule of thumb - sure, bare metal should outperform a set of VMs on the same... | 1 | 3 | 128 | 2020-07-04T21:41:34.070 | database_errors | serverfault.com | |
486,370 | Should a foreground program invoked by a daemon split logging between stderr and stdout based on severity levels? | Usually log messages are written to stderr. I'm wondering if it is a good idea/practice to split log messages so that errors and warnings go to stderr while debug/informational/notice messages go to stdout instead? Or is this irrelevant given that many dedicated logging processes only read from stdin anyway, which requ... | I would not suggest co-mingling stdout and stderr inside your program, but how you handle it outside is up to you. [CODE] was intended for processed data meant for a pipeline, while [CODE] is specifically for non-data messages. This makes certain behaviors possible, such as batch processing, without altering the existi... | 8 | 4 | 1,135 | 2013-03-10T06:18:31.890 | infrastructure | serverfault.com | |
52,368 | Keeping track of filesystem changes on Linux | After installing an update/a new package there seems to be no standarized way to explore the changes made to the file system. A simple utililty creating a filelist of the whole system before and after installing something would help a lot, since diff ing the two file lists would reveal the changes made to the file syst... | Most package managers will tell you exactly what files they installed: [CODE] This won't, however, tell you anything about modifications their postinstall scripts may have made. I would argue that actually trying to diff a filesystem snapshot after install is overkill. There are a number of tools for tracking file acce... | 8 | 10 | 5,912 | 2009-08-10T17:29:24.113 | infrastructure | serverfault.com | |
365,882 | Is this still considered an implementation of the strategy pattern? | In my project I have different types of entities. I get the data for these entities in text files from a 3rd party. I've written a class to read and parse these text files, using the strategy pattern. The method in this class must return different entity types so I've made the entire class generic - something like this... | Sir, you are still using Strategy pattern in less explicit way. However your code after change does not fully reflect that. You'd have to present the IStrategy interface fot completeness. However the main line of my thought is rather so: patterns are not blueprints, they are rather intellectual scaffold that more it is... | 1 | 1 | 153 | 2018-02-13T16:47:07.370 | api_errors | softwareengineering.stackexchange.com | |
809,204 | booting halts due to new disks being connected | I have a Gigabyte GA-965P-DQ6 motherboard with the latest BIOS flashed in (version F13). I also have 4x sata disks (in proven working condition) from a different server. Two of them are Western Digital [CODE] and the other 2 the (very similar) [CODE] . To connect the disks I used 2x ASMedia ASM1061 PCIe-1x to SATA sata... | It may sound extreme, but I would rule out a power supply issue, by having all disks powered up, but the new four with their data cable disconnected. If the server boots ok, connect data cable for one disk, one by one, rebooting each time. I have had issues like this one (while adding a 5th disk), and turned out the po... | 2 | 0 | 550 | 2016-10-15T11:14:54.270 | infrastructure | serverfault.com | |
840,775 | SSH login using SSSD (Windows Server 2016) | I'm testing SSSD RedHat 7.2 integration with Windows Server 2016 (AD). I want to access through SSH using AD users in a specific group (allow_ssh_admin). I've configured some files and I can see the machine in the AD but I can't access using SSH conection. Configuration sssd.conf [CODE] smb.conf [CODE] nsswitch.conf [C... | The problem was Windows Server 2016 has three interfaces with three diferents IPs. (10.x.x.x, 125.x.x.x, 192.x.x.x). It did not have any DNS policy so if It try to connect to the server it replies by diferent interfaces every time I launch a ping. Host can not reach Server two out of three times. Deleting the DNS entri... | 0 | 0 | 9,589 | 2017-03-27T09:34:13.263 | infrastructure | serverfault.com | |
337,403 | Type Conversions in a dynamically typed language - Where should the conversion happen? | I was recently debugging a bit of code where the previous implementation looked something like this: [CODE] I was refactoring the calling method to [CODE] in the controller and missed the specific conversion of [CODE] , therefore introducing a bug where when user input is sent via the params, it's a string, and the com... | I don't think the callee should have to know that the method requires an int, and in a loosely typed language such as Ruby, it's okay to accept all types of Ducks in method arguments as long as they quack. Dynamic languages like Ruby are great at rapid prototyping, but they are terrible at carefully defining and checki... | 1 | 3 | 250 | 2016-12-02T20:01:37.197 | api_errors | softwareengineering.stackexchange.com | |
761,517 | Nginx include directive having no effect | Goal: Serve several low-traffic domains (mostly of static content) from my VPS. Currently, I'm using Nginx under FreeBSD. Problem: My [CODE] statement seemingly is entirely ignored. Even if I put gibberish in an included [CODE] file, [CODE] says everything is all good. All of my domains therefore serve the same default... | The include path: [CODE] And the file: [CODE] are in different directories . You can include relative to the [CODE] configuration directory with: [CODE] Or specify the absolute location as: [CODE] | 3 | 4 | 2,656 | 2016-03-04T09:04:35.223 | infrastructure | serverfault.com | |
51,562 | Managing exclusive resources across tests | I have a serial E2E test suite that's growing and getting slower. To solve this issue, I have to run the tests in parallel. But creating a user and all the required configurations is very complicated in this project. Having one user per test is also not ideal, as some pieces of the configuration cost money. So I was th... | Yes, there are several ways to manage exclusive resources across tests, including using a test runner with parallel execution capabilities or implementing custom locking mechanisms in your code. One popular option is to use a test runner like NUnit or TestNG that supports parallel test execution. These runners typicall... | 1 | 0 | 24 | 2023-04-20T17:25:10.533 | pipeline_ops | sqa.stackexchange.com | |
49,360 | mySQL for analytics and updating same row | Looking for the best way to handle using mySQL/PHP for analytics and thus having multiple connections trying to update the same counters in the same row at the same time. The problem being if I have a row like 'year-month-day-hour','hits' and I want to increase hits for every pageview, that's going to be a lot of conne... | You may need to create the counter table with 250 slots to spread the row locks. First, here is the table: [CODE] All you need to do is insert into the random slots like this: [CODE] If you want to collect the counts, run this: [CODE] If you want to collapse the slots into a single number, do this once a week: [CODE] T... | 1 | 1 | 202 | 2013-09-06T00:28:17.083 | database_errors | dba.stackexchange.com | |
728,633 | The UAC File Virtualization service failed to start due to the following error: This driver has been blocked from loading | I'm trying to run IBM Domino Server 9.0.1 FP4 on clean Windows Server 2012 R2. Once I run server as a service it stop after few seconds. I've managed only to find this message. The UAC File Virtualization service failed to start due to the following error: This driver has been blocked from loading What kind of informat... | We enabled UAC (which is per default disabled on Rackspace) and reinstalled Domino and it seems to be working now. | 1 | 0 | 13,440 | 2015-10-13T14:16:45.033 | infrastructure | serverfault.com | |
42,671 | How to restore IBM DB2 database from AIX to Windows? | I had made backup from remote IBM DB2 server in AIX using this command: [CODE] Then I grab the backup file using FTP Client from my Windows. I run this command to restore the database in my local machine: [CODE] But I got this error message: SQL2570N An attempt to restore on target OS "NT-64" from a backup created on s... | You cannot restore a DB2 database from AIX into Windows because of the endian. These are not compatible architectures. For more information, check the InfoCenter: http://publib.boulder.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0005960.html The only way to retrieve the data between these pl... | 2 | 3 | 6,637 | 2013-05-21T06:20:50.013 | database_errors | dba.stackexchange.com | |
459,267 | Enabling http access on port 80 for centos 6.3 from console | Have a centos 6.3 box running on Parallels and I'm trying to open port 80 to be accesible from outside tried the gui solution from this post and it works, but I need to get it done from a script. Tried to do this: [CODE] This creates exactly the same iptables entries as the GUI tool except it does not work: [CODE] UPDA... | I would say your rule is at the end of your INPUT iptables list. Try this [CODE] and then run [CODE] . The A in your command appends the rule to the current INPUT list. This is after a rule that may have an explicit REJECT. The I in my command, places the rule in a line position, in this case line 5. Which should be BE... | 3 | 5 | 21,311 | 2012-12-19T09:06:46.060 | infrastructure | serverfault.com | |
765,220 | Nginx reverse proxy causing file downloads to take excessive time to start | Overview My web app allows users to upload files which are stored on s3 via my servers. When a user requests a file my web server retrieves it from s3 then sends it on to the client. I recently deployed a load balancer making my current set up as follows: Note currently I only have a single webserver to simplify debugg... | Nice edit, things are much more clear. It seems like this is an application timeout in PHP. My best guess is that PHP is completely downloading the large files to a temporary location then returning them, rather than streaming them back directly. This accounts for the latency, though not so much for the slow speed. I d... | 2 | 1 | 6,415 | 2016-03-22T02:25:08.790 | infrastructure | serverfault.com | |
1,095,409 | php memory_limity = -1 not respected? | Debian bullseye, php 7.4. One of my cron jobs has the line: [CODE] I'm getting the error [CODE] I'm sure that the php.ini file used is [CODE] (tested with a cron job executing [CODE] ), and in that file I have: [CODE] Why am I getting the error? | Usually that means there is something wrong with the script, if you read from somewhere try to limit the iteration. However, paste this line above the line that gives you error and should work. [CODE] | 0 | 0 | 23 | 2022-03-05T13:43:18.383 | infrastructure | serverfault.com | |
125,811 | Backing up database with missing datafile | Is there a way to backup a Oracle 12c database which has a missing datafile? I dont have backups. Database is running in archive log mode. One of the data files is physically missing from the disk. But querying dba_data_files, it shows up as a datafile and when I try to backup using RMAN or expdp, it throws an error an... | You can specify [CODE] options in your backup command. For example: [CODE] or take the datafile offline, and: [CODE] skipSpec | 2 | 3 | 1,644 | 2016-01-10T17:42:05.760 | database_errors | dba.stackexchange.com | |
318,553 | removing ghost databases | For some up-to-now undefined reason, a number of ghost databases have been created: [CODE] However, attempting to drop any table with a dash leads to: [CODE] [CODE] of its own was dropped, but the ghosts are still lying around. It appears they may be at the origin of some connection issues with the test suite for the c... | You need to use double quotes : [CODE] | 0 | 2 | 66 | 2022-10-22T09:30:09.527 | warehouse_errors | dba.stackexchange.com | |
100,309 | Turning regression problem into "classification + regression" | Say I have a regression problem where I'd like to predict values ranging from 0 - 100.000 based on some predictors. A single XGBoost model achieves decent overall mean performance (measured by MAE) using 5-fold CV. Then I looked at specific sub-ranges of the [0,100.000] response interval to see where the model performe... | As you well noticed there is no way to know the bin in wich an unseen data's target value will be. So what you can do is to train a model that splits/clusters your data and then run a model on each cluster/group. This is possible since the first model will be able to make Inference on aun unseen x value for next runnin... | 0 | 1 | 80 | 2021-08-20T09:48:10.887 | pipeline_ops | datascience.stackexchange.com | |
252,981 | turn off http_proxy on centos | hello i have a problem. when i do "yum update or install" it will not work. but it will after i type in export http_proxy= everytime i restart. where is this location of http_proxy ? so i dont have to export each time the centos reboot? Thanks for looking in. Adam Ramadhan | I realise this is an old post but thought I'd post these instructions for others for future reference. This works, link Modify [CODE] to have the following lines included: [CODE] | 3 | 5 | 35,260 | 2011-03-29T02:51:00.897 | infrastructure | serverfault.com | |
1,132,989 | What is the simplest way to set up shared/clustered read-write filesystem across servers? | What is the simplest way to set up shared/clustered read-write POSIX-compliant filesystem across servers where performance is not a major concern? Suppose I have two Linux servers [CODE] and [CODE] and an uninitialized (no filesystem) block device [CODE] . Note: self-answered question. | OCFS2 is POSIX-compliant and "simple" to set up, I tried it and it works: [CODE] This is as simple as it gets for setting up a shared read-write POSIX-compliant filesystem on two or more servers. Nearly all steps need to be run on each node. And if a new node is added to the cluster, all nodes need to be updated with [... | 0 | 2 | 133 | 2023-06-10T05:57:44.670 | infrastructure | serverfault.com | |
121,790 | free memory in Linux | Possible Duplicate: Meaning of the buffers/cache line in the output of free I did free -tm on my system, and I got the output below. Is the free buffers/cache part of the used memory? And therefore we can consider it as free memory? [CODE] Thanks | take a look at this post here on serverfault. it will explain the free output to you. | 0 | 1 | 2,234 | 2010-03-12T05:45:32.310 | data_quality | serverfault.com | |
1,026,820 | Connecting Google Cloud Functions across Projects | I am using Google Cloud Functions and have multiple projects with cloud functions, that need to communicate with each other. My problem is that functions can only communicate with each other if they have Ingress settings set to "allow all traffic." As soon as I change it to the desired setting, which is "Allow internal... | Indeed, according to this documentation , Allow internal traffic only: Only requests from VPC networks in the same project or VPC Service Controls perimeter are allowed. All other requests are denied with a 403 error. To be able to communicate with a cloud function with "Allow internal traffic only", you need to: 1- in... | 1 | 0 | 2,284 | 2020-07-26T19:46:52.000 | infrastructure | serverfault.com | |
8,033 | How to load data into Vertica from C? | I'm investigating column oriented databases and came across Vertica. My need is to feed the Vertica database from C code. I don't succeed in grabbing this information from Vertica: I'm told to use "vsql" and the "copy" command. All I want is issue [CODE] statements to my Vertica database. Can this be done? For instance... | Vertica includes an ODBC driver for C. Read "Programmer's > Guide Vertica Client Libraries > Programming ODBC Client Applications" This section details the process for configuring the Vertica ODBC driver. It also explains how to use the ODBC API to connect to Vertica in your own client applications. | 3 | 4 | 1,626 | 2011-11-17T15:59:35.743 | database_errors | dba.stackexchange.com | |
325,140 | Single node failure in Cassandra 4.0.7 causes cluster to run into high CPU | we have 40 node Cassandra 4.0.7 cluster in GCP, after single node failure the entire cluster goes bonkers on CPU usage and I/O waits. Tried to bump the cluster size to 50 nodes the same is happening but a bit slower. Cluster stabilizes immediately after the down node transition into UN state. Nodes have 16 vcpu 32G RAM... | The symptoms you described definitely indicate that the nodes are IO-bound and cannot keep up with the writes. It isn't so much a case of a single node taking down the whole cluster -- it's just that that node is the first one to go down and all other nodes are soon to follow anyway. Using spinning HDDs for [CODE] is n... | 2 | 1 | 337 | 2023-03-24T16:59:11.573 | api_errors | dba.stackexchange.com | |
529,314 | Need to remove unwanted prefix in created header | I'm trying to generate specific headers to mimic a service provider. However, I keep getting the [CODE] prefix added to my headers. Configuration file: [CODE] Output in PHP, [CODE] The desired header would need to be: [CODE] I've tried the following which doesn't work either (I don't see the header at all using this): ... | It seems for PHP, you have to use the following syntax in the configuration file to obtain keys without the [CODE] prefix: [CODE] Source | 1 | 0 | 1,271 | 2013-08-07T12:37:32.463 | infrastructure | serverfault.com | |
182,585 | Does SQL Server 2016 Standard Edition include replication? | I was trying to create a distribution database on an instance of SQL Server 2016 SP1 Standard Edition. I got an error that the replication component of SQL Server was not installed. We have recently upgraded our server from SQL Server 2012 to 2016 where we had tested replication to a dev machine previously. It occurred... | Yes. (See the REPLICATION section in Editions and supported features of SQL Server 2016 Yes. The distributor (Distribution Server) is located on a SQL Server instance and has to be correctly licensed, be this a production server or development server. Yes. License required. A replication from a production server to ano... | 4 | 7 | 16,801 | 2017-08-03T10:42:23.153 | database_errors | dba.stackexchange.com | |
202,938 | Secure an Application/Software by expiration with Date? | I have been working on some software application and I update them every 6 months. Currently, the way I track the date is by extracting the date from the system when the user installs the application, encrypt it and store it in a file locally. Whenever the application is started, it checks if 6 months have passed, then... | Is there a specific problem you're having with the current model? If the application is installed on systems that normally have internet access, you could do this on a server to avoid the situation where someone plays with their system clock and runs the application longer than 6 months. When the application is install... | 4 | 3 | 2,362 | 2013-06-27T13:55:14.613 | api_errors | softwareengineering.stackexchange.com | |
1,070,738 | dhcpd server invalid MAC detection | On my DHCP configuration, I have on commit hook to save device information. My problem is some of the MAC addresses becomes invalid: [CODE] - this should start with zero [CODE] - also this my [CODE] [CODE] | It depends on what you use to parse it, one can argue that it is completely valid to leave out prefix zeroes, and that is what we do most of the time because there is no definition of how many digits there should be. However if we skip over the part about if this is being invalid and why or not and instead ask "How do ... | 1 | 3 | 371 | 2021-07-27T02:24:28.913 | infrastructure | serverfault.com | |
94,717 | Dynamically convert hstore keys into columns for an unknown set of keys | I have a database that stores a bunch of custom fields using [CODE] . In order to merge it into another database that doesn't support [CODE] , I'd like to split the keys into extra columns. Users can add new custom fields and so I can't rely on knowledge of the keys ahead of time. Which makes the answer at "Attributes ... | This can be done, very efficiently, too. Not in a single statement, though, since SQL demands to know the return type at call time. So you need two steps. The solution involves a number of advanced techniques ... Assuming the same table as @Denver in his answer : [CODE] Solution 1: Simple [CODE] After I wrote the cross... | 10 | 7 | 7,410 | 2015-03-09T04:46:31.250 | data_quality | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.