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 |
|---|---|---|---|---|---|---|---|---|---|---|
232,399 | Poor performance on a 'leaderboard' query | Consider the following 2 tables: [CODE] My query needs to fetch the 100 players with the most points from a given room type and embed_code_id. here's what I have currently: [CODE] This query results in poor performance (1.5 - 10 seconds, depends on the parameters passed) Notes: * Both tables have about 1M records * whe... | Converting the query to cartesian form: [CODE] allows to understand that you need in indices: [CODE] or [CODE] [CODE] or [CODE] The index on [CODE] is effective. The index on [CODE] is covering. | 0 | 1 | 107 | 2019-03-18T06:00:37.677 | warehouse_errors | dba.stackexchange.com | |
472,265 | Blacklist preventing DNS lookups? | To make a long story short, some users at another company who I have a lot of email correspondence with started having problems sending me email, they would get a message from the mailer daemon at MessageLab (which hosts their email) that [CODE] , etc. etc. Since the message was coming from their server and nobody else... | Yes, it is possible to blacklist IPs for probing DNS. Imagine a scenario where an abusive user probes the DNS server million times a second (just figurative number). It would certainly cause a strain. Such are reasons for blacklisting IPs for DNS inqueries. Ironically, this is a bit of a self-fulling scenario. You make... | 2 | 1 | 2,254 | 2013-01-25T03:23:38.573 | infrastructure | serverfault.com | |
255,522 | pg_restore fails on foreign key contraints | I need to restore a PostgreSQL DB from a backup that was created using "custom format" so that a single table could be extracted from it later. (Per the documentation individual tables cannot be automatically extracted from a plain text backup.) Because the backup was created as a binary file I do not have the option o... | Yes there is. Have you tried the pg_restore --disable-triggers??? yet If that fails to work which would be odd You can restore just the schema with the --schema flag, then modify the table "drop the constraints" in question" then restore the table contents couple of useful articles Different Dumps and my long ago writt... | 1 | 1 | 7,172 | 2019-12-12T22:05:01.093 | database_errors | dba.stackexchange.com | |
370,518 | Why does Forth's flexibility make a grammar inappropriate for it? | I've recently undertaken the task of writing a stack-based programming language. Before I started designing my language however, I thought it'd be a good idea to read and experiment with existing stack-based languages. This brings me to the topic of this post. I was reading through the Wikipedia article on Forth , a st... | A "normal" word is pretty much just a subroutine. ...but you can write a user-defined defining word , which change how the compiler works. For example, a definition normally starts with a colon (":") and ends with a semicolon (";"). But if you want, you can (for example) change what the colon does, and in the process c... | 14 | 13 | 1,289 | 2018-05-06T00:56:31.603 | api_errors | softwareengineering.stackexchange.com | |
1,036,342 | Tmpfs vs NVME SSDs from performance POV | I have a script that creates large temporary files. I'm inclined to use tmpfs for this, however I did a quick search for tmpfs performance and found this which reports speed as about 2GiB/s. Modern NVME SSDs have comparable speeds. Putting aside differences other than performance (e.g. longer SSD life by not touching d... | [CODE] , being an extension of the pagecache, really operates as a "transparent" ramdisk. This means it provides very fast sequential read/write speed, but especially fast random IOPs (compared to a storage device). Some examples, collected on an aging Ryzen 1700 with run-of-the-mill memory: [CODE] shows 2.8 GB/s overw... | 8 | 12 | 5,360 | 2020-10-04T15:04:46.130 | infrastructure | serverfault.com | |
93,322 | mdt 2010 windows 7 deployment credentials error | Currently I am trying to deploy Windows 7 with Windows 2008 Server Microsoft Deployment Kit 2010 over my Network to a Physical machine. Now when my machine starts with the Lite touch-PE CD I get the "Specifiy credentials for connecting to network share" prompt. When I enter my credentials + domain, I get the errormessa... | It seems that the failure originated out of our network, it just vanished three days later. | 0 | 0 | 3,988 | 2009-12-11T08:08:10.883 | pipeline_ops | serverfault.com | |
336,508 | Should only static functions print to screen? | My question is more about trying to figure out if my belief is correct or valid in that a static method should be the only one that prints to the screen (let's say in a terminal). I am using Java and have a static method main and use objects either from my utility library or from my class itself. The idea is that, just... | I think there is no widely known principle stating that only static methods should print to screen. For example, a CLI app can have injected loggers inside its' objects. Such loggers would print to a file by default, but by setting a parameter you can turn a "debug mode" and inject an screen logger instead. In such a c... | 4 | 4 | 1,027 | 2016-11-21T14:46:22.430 | data_quality | softwareengineering.stackexchange.com | |
834,921 | Apache 2 mpm-itk and mpm-prefork modules together | Here is Apache 2 configuration: /etc/apache2/mods-enabled/mpm_itk.load [CODE] /etc/apache2/mods-enabled/mpm_prefork.load [CODE] The comments don't add much clarity - mpm-prefork conflicts with mpm-itk, but mpm-itk depends on it? When [CODE] is removed, there is an error: AH00534: apache2: Configuration error: No MPM lo... | You can only use one MPM. So the comment doesn't make any sense. You might consider reporting the problem to the package maintainer. | 0 | 1 | 1,939 | 2017-02-25T20:27:42.417 | infrastructure | serverfault.com | |
1,093,486 | Windows Client Gateway on other Subnet | I have two subnets. [CODE] The Cloudprovider(Hetzner) gives me a gateway [CODE] . I have a windows [CODE] in this subnet. I have a [CODE] in subnet 192.168.232.0/28. If i use on 192.168.232.19 the default gateway 192.168.232.17 I can ping 192.168.232.2 and the other way around. But I want 192.168.232.2 to be the defaul... | A gateway can only be used when it is located in the same subnet as the sender. IP routing works by sending an IP packet to the gateway and the gateway forwarding it on. On MAC-based networks like Ethernet that is done by addressing the encapsulating Ethernet frame to the gateway's MAC address. The MAC address is deter... | 0 | 1 | 592 | 2022-02-12T19:18:28.890 | infrastructure | serverfault.com | |
369,637 | How to make Zenoss stop monitoring SMTP? | The title says it all. We use Zenoss in a midsize network with lots of different Linux boxes. A lot of them have SMTP on by default, but we don't use it for anything; not on a single box. The Zenoss monitoring template "Status/IPService" keeps reporting various errors/timeouts for SMTP. Increasing the timeout threshold... | In version 3.X... click Infrastructure at the top navigation, then click IP Services on the submenu. On the left use the search field to find SMTP. In the right side pane under "enable monitoring (zMonitor)" change the value to no. remodel the device immediately and see if it stops monitoring smtp. you may have to rest... | 1 | 2 | 2,762 | 2012-03-14T15:05:49.593 | pipeline_ops | serverfault.com | |
106,825 | How to get connection string of a database mirroring? | I want to write to program to connect to a database mirroring, and now I'm confused with the connection string. My database mirroring was installed on three SQL Server instances on three virtual PCs. I want my program to run on one of them and connect to the database. The database will be switched roles (principal beco... | You must add the FailoverPartner to the connection string. And, as usual, there is an example on www.connectionstrings.com : [CODE] [CODE] [CODE] [CODE] Whenever you find yourself asking something about a connection string, just use the dedicated class SqlConnectionStringBuilder . | 0 | 2 | 1,729 | 2010-01-27T15:08:27.140 | database_errors | serverfault.com | |
399,773 | Sendmail uninstallation issues | Something went wrong with my sendmail installation so I uninstalled it with [CODE] . I still see the [CODE] script and [CODE] is full of sendmail files (.db, aliases, etc). Is there any way I can figure out what files I do have to delete manually ? also the users I have to delete/create in order to make it work ? | You run [CODE] and you --purge the rest of the relevant packages. | 0 | 0 | 455 | 2012-06-18T14:15:28.317 | infrastructure | serverfault.com | |
101,679 | Mysql Cluster Ndb Restore Foreign key constraint violated | I am trying to restore mysql cluster backup on slave cluster. When i run ndb_restore command it gives me following error: [CODE] How can i skip foreign key errors ? | With any more complex data it is almost impossible to restore data in MySQL Cluster in one step. Usually one needs two steps: [CODE] First step has to be run on all nodes of the cluster. Second step though - just on one node which will rebuild all the indexes. For foreign keys you can try to split first step into two: ... | 1 | 0 | 444 | 2015-05-16T09:53:33.707 | data_quality | dba.stackexchange.com | |
587,633 | Is it possible to use a HP P410 Controller in a ML150 Gen5 server? i.e. is there a cable that interfaces with a Gen5 cage? | Specifically I want to use a SAS card (a P410) and some drives that I have spare in a ML150 Gen5 server. If there is a cable that converts mini SAS to the Gen5 SAS cage connection can someone point me to it? Or can I use a ML150 Gen6 cage in a ML150 Gen5 server? I think the cage part number is 458312-B21 for the Gen5 a... | Sure : All-things-SAS - Also see this . The 4-bay 3.5" disk backplane for the HP ProLiant ML150 G5 drive cage (part 451781-001) uses a single older-generation four-lane SAS SFF-8484 connector. The HP Smart Array P410 controller features two four-lane SAS SFF-8087 ports. You will need a SAS SFF-8484 Male to SFF-8087 Mal... | 0 | 1 | 415 | 2014-04-08T23:51:45.677 | infrastructure | serverfault.com | |
1,146,634 | Server's Disk Queue Length is high, but Disk Bytes/sec is lower than it's capable of | I have an environment running SQL Server on a Windows VMWare platform using a SAN with SSDs set up in RAID 6, and using Veeam for server backups and LiteSpeed for SQL Server backups. I've had a problem several times over the past year where sometimes the database slows to a crawl, and my Avg. Disk Queue Length is high,... | HDDs become slower the longer their work queue becomes and vice versa - there's a very limited number of IOPS that you can throw at them (roughly 40-200, depending on grade and RPM). Any increase of demand beyond that point decreases their performance further. Creating an HDD array increases the total number of possibl... | 0 | 2 | 721 | 2023-10-26T14:25:56.737 | database_errors | serverfault.com | |
143,428 | SMB shared folder error when creating additional share on our SAN | Okay, we have a SAN using Failover Cluster Management on a pair of 2008 servers. We created shares on here before and they are usable. Now when I go to create a new share I get the following error message: "Flags for the SMB Shared folder cannot be configured. This shared resource does not exist" Does not allow me to c... | I think it came down to a permissions issue on that particular folder I was working with. I got it working now... | 0 | 1 | 5,256 | 2010-05-19T15:25:24.053 | database_errors | serverfault.com | |
828,562 | Google Cloud Platform Project-ID wrong format | I`m using Google cloud platform and now I want to use the API. I used the option on their website to try API-Calls but everytime i give in my Project-ID it get this as a response [CODE] I got my Project-ID by going to my project settings en there I saw Project-id: so I used that ID, is this the wrong ID maybe? project-... | I just tried the API call using the article and it worked fine. I also tested the call using the project number and it worked. Your project ID and project number can be obtained from the Dashboard as explained in this link . I would suggest trying using an incognito window . If that does not work try with the project n... | 0 | 0 | 1,999 | 2017-01-25T15:54:45.150 | infrastructure | serverfault.com | |
764,655 | Error while Expanding Disk Space of virtual machine in Hyper-V server | I have one Virtual machine running on my hyper-v server which has allotted the disk space of 100GB, i have only created C drive in this machine and C drive of this machine is fully consumed due to which my website is down. I turned off the machine and tried to expand the hard disk by 100GB for this virtual machine. I h... | In this case, disconnect the VHD from the virtual machine. This implies removing it from the virtual machine configuration, modifying the image, and then re-adding it. This is common to have to do on a lot of hypervisors in some capacity or another just to get the disk info for the VM itself updated. This is a little m... | 0 | 0 | 2,470 | 2016-03-18T18:04:12.337 | infrastructure | serverfault.com | |
285,910 | How do I simultaneously update unique keys in PostgreSQL? | [CODE] I have the data [CODE] I would like to update it to [CODE] Touching records as little as possible (i.e. don't rewrite the entire record set, don't kick off unnecessary triggers), what's the generally applicable approach to updating [CODE] to be the target values? A vanilla update just gives me constraint violati... | Define the constraint as deferrable: [CODE] Then you can update it in one statement: [CODE] | 4 | 6 | 1,548 | 2021-02-23T18:10:20.533 | data_quality | dba.stackexchange.com | |
481,860 | Apache ignoring .htaccess rules and returning 404 not found | I just set up Apache and PHP on a server running CentOS by using something along the lines of [CODE] and [CODE] . I've created the following file in [CODE] : [CODE] Not that it isn't actually [CODE] , it's the actual domain that I'm using. Then, in [CODE] I have the following: [CODE] The problem is I'm getting 404 not ... | Check whether there is a directive in your Apache config and there is AllowOverride. If should be set on All. If it is not there, add it to make sure the .htaccess file is being read. Wishes, Mohammad Ali Sharpasand | 0 | 0 | 1,095 | 2013-02-23T19:12:53.313 | infrastructure | serverfault.com | |
842,530 | Roaming Profiles multiple sites | I work for a SMB. Our central office houses our servers, and users in that office have accounts with roaming profiles. In the near future, we are looking to invest in branch AD servers, which will then be configured to house roaming profiles for their respective branches. All branches are a part of the same domain. How... | You might be able to do something like this... You probably assign the profile path directly on the user account. You could clear the account profile attribute, and replace it with a profile path assigned through GPO. [CODE] Create a GPO for NewYork profiles, link it to your NewYork workstation OU, and assign a value l... | 0 | 0 | 705 | 2017-04-04T15:54:15.437 | infrastructure | serverfault.com | |
1,070,036 | Limit a single users FTP access on IIS10 to a IP address | Can I limit a user so they can only access my FTP server from a set IP address whist allowing other users to access the FTP from anywhere? I have a Windows Server 2019 server running IIS 10 with an FTP site setup on it. the FTP server has [CODE] set to [CODE] . The server has several FTP users setup on it all mapping t... | You don't have much flexibility when using the default IIS providers and settings. Instead, to achieve the level of control you wanted, you have to write your own authentication provider with IP checks, and Microsoft has an article with a similar case, https://docs.microsoft.com/en-us/iis/develop/developing-for-ftp/how... | 2 | 2 | 695 | 2021-07-19T15:21:13.533 | infrastructure | serverfault.com | |
253,565 | Apache : Map one virtualhost to a subdirectory of another virtualhost | I'm trying to map one virtual host to a subdirectory of another virtual host, something like this [CODE] . At this moment, whenever I go to http://host2.com it maps to http://host1.com instead of http://host1.com/host2 My default site file is this [CODE] What am I missing? I'm not sure if it should matter, but I'm usin... | This can actually be accomplished using a single [CODE] , by using the [CODE] directive. You can then use the [CODE] to pass those requests to the proper directory, and by leaving off [CODE] you will just be rewriting the request, leaving the URL intact. [CODE] Hope this helps. | 3 | 3 | 3,037 | 2011-03-30T09:03:17.307 | infrastructure | serverfault.com | |
826,372 | How do I block someone else's domain pointing to my hosted website? | Hi I am running my website in Linux VPS with dedicated IP few weeks ago I found someone else domain is pointing to my website Ex :: mydomain.com === server my site content otherdomain.com === also server my site content If I update or modify its getting updated on other domain too.. please need help any settings to pre... | The most straightforward thing to do here is to create a new virtualhost that accepts connections for the other host and to then display a simple page to them. If the other host is example.com create a virtual host [CODE] | -3 | 2 | 1,457 | 2017-01-15T06:40:39.563 | infrastructure | serverfault.com | |
947,172 | SendGrid sent to spam on internal domain | I'm using SendGrid with a whitelabel to send email from my domain name, [CODE] . The whitelabel works perfectly for outside delivery, but when sending to an inside account on O365 [CODE] the messages are trapped in the O365 spam filter. The headers are showing a passing dkim for my traffic, which I should be able to bu... | You can try to add the domain into ‘Allow domain’ under spam filter in Exchange Online ECP. | 1 | 0 | 681 | 2018-12-31T19:32:26.890 | api_errors | serverfault.com | |
53,962 | Performance Monitor - Win2k3 - Run as Other User | I saw a post where a user was allowed to actively log in and run PerfMon. Is there a way to set it up where I can create a dummy user, tell the Counter Log to run as the user, and tell it to go? Or does someone actively have to be logged in and running PerfMon? | It depends on what your trying to achieve. If you want an interactive logon from a non-privileged user, then you just have to allow the user to log in, either by adding them to the remote desktop users group, or by updating the local security policy and granting that user the log on locally privilege. Alternatively, if... | 0 | 1 | 897 | 2009-08-13T21:05:45.820 | infrastructure | serverfault.com | |
313,021 | MariaDB is using more memory than the buffer allows - 4x more | Help me out here brain trust, why is my MariaDB 10.2.27 using 4x more resident memory over the buffer? [CODE] From HTOP | You should be using Engine=InnoDB, not MyISAM. [CODE] is used only by MyISAM, so, after converting your tables to InnoDB, set that to only 30M. [CODE] and [CODE] rarely come into play. That is, they unnecessarily inflate the SUM. [CODE] should be 0 -- it is an old device that is dying out. [CODE] is the most important ... | 0 | 2 | 294 | 2022-06-06T22:34:09.723 | database_errors | dba.stackexchange.com | |
439,562 | Handling resource not found | I have an endpoint GET home/{homeId}/laptops . Its response is : [CODE] If homeID does not exist I can return '404 Not found' OR an empty response with the homeId and the laptops array empty such as : [CODE] The client does not really care about the error message and in my specific scenario I can query a database by ho... | are there any HTTP standards that advise what should I do? No, HTTP has very little to say in this case. Basically, you will have to decide whether this false positive meets your requirements for both server and client. Don't forget that the main goal of any API is to be consumed, so look at it from the client's perspe... | 0 | 1 | 51 | 2022-06-30T10:47:08.987 | api_errors | softwareengineering.stackexchange.com | |
36,878 | Optimizing Expensive Functions | I'm trying some different techniques to optimise a Boosted Gradient Regressor by using an evolutionary programming technique to try and find the most efficient set of features. So far I've been having some good results (Been able to remove 65% of the features with an increase in accuracy), but I'm not impressed with ho... | According to the two papers ( Limited Evaluation Evolutionary Algorithm (LEEA) and Limited Evaluation Cooperative Co-evolutionary Differential Evolution Algorithm (LECCDE) ) you can approximate the result of the evolutionary algorithms by applying the algorithm not on the whole dataset but on mini-batches like in SGD (... | 3 | 1 | 243 | 2018-08-13T13:40:32.497 | data_quality | datascience.stackexchange.com | |
270,169 | A way to process a CTE once? | I have a view that has serious performance issues, because I am linking it to a CTE that uses another view, with the same table references. [CODE] The [CODE] view, references the same [CODE] table to get it's calculations. I know why it's slow . It's because the [CODE] view is reading all the data from the same [CODE] ... | There is no query hint to spool or materialize a CTE. So use a temp table, and optionally index the temp table. [CODE] | 0 | 2 | 164 | 2020-07-01T03:29:11.390 | warehouse_errors | dba.stackexchange.com | |
1,122,036 | Predictable network interface names not showing up | I seem to have the opposite problem of the internet. When you search for predictable network names not working all you find for the love of god is how to go back to wlan0, eth0 etc and disable it. I do have the opposite problem. I have a freshly installed Ubuntu 22.04 server on Raspberry 4 and it will not use predictab... | If you run [CODE] , select "Advanced Options", then "Network Interface Names", you will be prompted to enable predictable device names. This works by manipulating files in [CODE] to mask the corresponding units in [CODE] . With predictable device names disabled , we see: [CODE] Those symlinks to [CODE] mask the files w... | 1 | 1 | 1,038 | 2023-02-05T13:53:00.077 | infrastructure | serverfault.com | |
156,791 | Implement "account" transactions in postgresql | I am looking into on different ways a simple account functionality that can be implemented in Postgresql 9.5. I would like to be able to do it with maximum of "Repeatable read" as transaction isolation level. The reason why it should be "Repeatable read" isolation level is that we have detected a high level of collisio... | Good Idea For deposits: Allow deposit money directly as an insert. Bad Idea For withdraws: Check balance > amount of withdraw before continue. Consider instead having a CHECK (balance >= 0), then just allow the transaction to fail. I'm not sure about the rest of them.. You mention all this STATUS stuff, but what does i... | 6 | 4 | 1,830 | 2016-11-30T15:55:17.243 | database_errors | dba.stackexchange.com | |
505,370 | How to enable group-writable suexec-capable CGI scripts? | I have been asked to set up a shared webspace on our department webserver that may be accessed by multiple people and which might be running CGI or PHP scripts. The people maintaining the webspace might decide to use it for file submissions, which would mean that they'd need access to any files created by the scripts. ... | To ensure accountability in this context and yet provide the correct ownership and permissions for the published content, I use a slightly modified version of the workflow described in this article. This is how I have implemented, note that most of the pieces are replaceable: All the published content is managed by a v... | 1 | 1 | 510 | 2013-05-06T15:44:01.017 | infrastructure | serverfault.com | |
19,571 | How to improve precision under imbalanced classification | I am using an imbalanced dataset (rare positive cases) to learn models for prediction and the final good AUC is 0.92 but the F1 score is very low0.2. Is it possible to add some key features which will change the class probabilistic distribution and thus we can get a threshold to generate a higher F1? Here is an example... | Introducing a Strong Feature would definitely help as it is "Strong" :-) .. if you do not have a sure-success feature then you may try changing penalty of miss-classification to start with. You may try synthetic (i.e. SMOTE) or non-synthetic (domain based) approaches to bulk up the lower class. Also, if this is a very ... | 2 | 1 | 8,029 | 2017-06-08T21:57:16.490 | data_quality | datascience.stackexchange.com | |
49,680 | SCCM SP2 - OOB Management Certificates Problems | I have a vPro client computer with AMT 4.0. It was importeed successfully via the Import OOB Computers wizard, and after sending a "Hello- packet" it became provisioned. (The SCCM GUI displays AMT Status: Provisioned). But when I try to perform power operations on this machine, they always fail with the following lines... | I faced the same issue, the certificates installed in the AMT Client was actually issued to the SCCM Server. The error was in the "Subject Name" tab of the "Web Server Certificate Template"; the option "Build from this Active Directory Information" should be checked and "Common Name" should be selected in the drop down... | 2 | 1 | 1,133 | 2009-08-04T11:06:42.860 | infrastructure | serverfault.com | |
918,871 | BigQuery table export to json failing in US-Central | ERROR: (bq) This may be due to network connectivity issues. Please check your network settings, and the status of the service you are trying to reach. | This is probably an internalError 500 . This error returns when an internal error occurs within BigQuery. You will have to contact Google Support or file a bug using the BigQuery issue tracker . | 0 | 0 | 49 | 2018-06-29T17:26:03.290 | warehouse_errors | serverfault.com | |
289,278 | How to access a variable that I only need to create once on Application.Start | According to this guide: https://github.com/mspnp/azure-guidance/blob/master/Retry-Service-Specific.md They say: Note that the StackExchange.Redis client uses multiplexing through a single connection. The recommended usage is to create an instance of the client at application startup and use this instance for all opera... | If you declare the variable in the local context of Application_Start() as you have in your example, it is only accessible in that method. One solution could be to declare the variable as a global variable, outside of the "Application_Start()" procedure. Example: [CODE] then you are able to access it from your other cl... | 2 | 2 | 3,207 | 2015-07-09T21:39:37.833 | database_errors | softwareengineering.stackexchange.com | |
151,763 | Understanding The Transaction Log | I used to work with MySQL/PhpMyAdmin for web application and portable SQLCE for light local program. I just started with SQL Server Express 2016 and SSMS and just cannot understand Transaction Log. I have read various posts including MSDN: The Transaction Log and A beginner’s guide to SQL Server transaction logs , but ... | I'm going to attempt to show you why you have a vested interest in the Sql Server Transaction log. Bear with me as I lay out a few assumptions... For simplicity sake, I'm assuming [CODE] model. Because you're following BEST PRACTICES , you've separated the MDF/NDF files onto different drives than where your LDF file is... | 0 | 4 | 1,134 | 2016-10-08T01:59:06.130 | database_errors | dba.stackexchange.com | |
402,564 | Sharing data between services in events based architecture | We currently have a monolithic application. Currently an API end-point will look something like: [CODE] We are looking at introducing a more services type approach to help with some scaling and reliability issues. I've been looking at introducing an PUB/SUB event systems (Azure Service Bus) which services can then subs... | If you are implementing microservices, keep in mind that each one should have its own database. No other service should be able to access that database, only the owner app. So, to share information you have 2 options: 1. Provide an API so the other services can use, or 2. Send the complete data information with your ev... | 2 | 1 | 401 | 2019-12-16T15:52:35.140 | api_errors | softwareengineering.stackexchange.com | |
3,773 | docker-compose fails to recognize when images are rebuilt sometimes ... often same code is OK | I have a devops container inside of which I execute [CODE] and [CODE] commands which run OK then (on same server or different server with same code) sometimes incorrectly fail to [CODE] sibling containers after their images are rebuilt. My process successfully rebuilds a pair of two underlying docker images however [CO... | Solution was to put a docker pull into my launch script ... as in [CODE] just before issuing [CODE] which seems strange since most of the time it works OK without issuing pull ... I am using a local docker registry | 5 | 0 | 898 | 2018-03-29T18:45:25.040 | pipeline_ops | devops.stackexchange.com | |
144,412 | How could duplicate entry on unique key happen if only one master is active? | Say, I we have master-master replication with only one master active at a time. We have users table: [CODE] and web application cluster which inserts new record for new users. Now we got error which stopped replication: [CODE] Question is: is that true that this error in this setup is impossible, and probable reason of... | Do not see the problem. When somebody enters the email address a second time then this happens. Nothing to do with replication. This is what the [CODE] is used for. If this error would break the replication then I do not understand how replication could ever work. Every user could easily break the replication by, in th... | 0 | 1 | 643 | 2016-07-20T08:56:39.863 | database_errors | dba.stackexchange.com | |
28,536 | Change a URL to be environment specific in protractor test | I have a protractor test that locates a URL on a page. The URL is then clicked and expected to contain specific text. The URL needs to be manipulated before the browser opens it, how can I change the URL before hand? The URL to be clicked looks like app.company.com but needs to be changed to app-dev.company.com or app-... | Determining which environment is currently under test Using [CODE] configuration parameter. In Protractor, you can either pass the [CODE] command-line parameter or set the [CODE] setting in your configuration. This is a common way to parameterize your tests - execute the same tests against different environments. This ... | 1 | 1 | 5,522 | 2017-07-13T14:00:19.730 | data_quality | sqa.stackexchange.com | |
809,298 | How to fix UI errors after installing phpMyAdmin on Ubuntu ServerPilot app | I'm following these instructions , but I'm using FileZilla on Mac OS instead of Cyberduck. I opted for installing it in my app's /public/ directory because I couldn't figure out how to access it if I installed it as its own app. I downloaded the appropriate tar.gz and transferred it to my Ubuntu server using FileZilla ... | I ended up taking EEAA's advice and simply using Sequel Pro to interface with my SQL database. It worked fine and I was up and running within a few minutes. | 2 | 0 | 185 | 2016-10-16T02:25:15.213 | database_errors | serverfault.com | |
118,378 | How to choose between different models with similar results? RF, GLM and XGBoost | I am a medical doctor trying to make prediction models based on a database of approximately 1500 patients with 60+ parameters each. I am dealing with a classification problem (mortality at 1, 3, 6 and 12 months) and have made stratified splits (70 training/ 30 testing) and have done feature selection with the Boruta al... | Should I do more performance measurements? Which ones and why? Generally speaking, the choice of performance metric should be informed by your goals and the characteristics of your dataset. If you care about maximizing raw accuracy, then brier score is a good metric. However there are many situations (especially in the... | 7 | 3 | 261 | 2023-02-08T13:07:42.650 | data_quality | datascience.stackexchange.com | |
124,236 | PostgreSQL force sslmode=verify-full | I have created my CA, Server and Clients certificates and keys. I have tried connections using [CODE] flags with [CODE] . I have edited the [CODE] file to force SSL using [CODE] only. Now I would like to set my server in order to force the verification to be [CODE] . I have read twice the documentation I and do not und... | Maybe you want to limit the clients to those which present a given certificate, as described in Using client certificates : To require the client to supply a trusted certificate, place certificates of the certificate authorities (CAs) you trust in the file root.crt in the data directory, set the parameter ssl_ca_file i... | 1 | 10 | 5,256 | 2015-12-21T13:16:51.723 | database_errors | dba.stackexchange.com | |
319,748 | ZFS - setting physical disk start point of pool/filesystem | I'm testing harddisk performance, and would like to test writing to the outer tracks of my harddisk with ZFS. One way of doing this would be to create a pool/filesystem with a start point just a few Gigs away from the end of my harddisk. Is this possible? If so, how do I do it? I've looked in zfs man pages and googled,... | The term you're referring to is " short-stroking ". You can do this by creating a pool of disk slices rather than the whole disks. Use some small percentage of the disk (10%-12%) capacity for the slices. This may not be worth it, though. Use faster disks and SSDs since ZFS can leverage them well. | 2 | 5 | 300 | 2011-10-08T15:45:34.750 | infrastructure | serverfault.com | |
118,852 | "Your password has expired" after restart mysql when updated mysql 5.7.8-rc(debian) | echo time login in mysql shell it shows: [CODE] and error log shows: [CODE] | MySQL password expired Typically, in a script shell, you get the message: "Your password has expired. To log in you must change it using a client that supports expired passwords." From MySQL 5.7.4 to 5.7.10, the default value for the [CODE] variable is 360 (a year). For those versions, if you make no changes to this va... | 6 | 5 | 38,371 | 2015-10-22T03:33:55.227 | database_errors | dba.stackexchange.com | |
981,781 | Elastic-beanstalk service listening to non-standard port | I am trying to deploy on AWS Elastic Beanstalk a Dockerized server (actually Minecraft/Forge server) that listens to port 25565. The configuration I'd like to use is a simple single-container docker configuration. I tested the Docker image locally on my desktop and it works as expected (a Minecraft client can connect t... | Fixed. Answering myself, for future reference. There were two basic problems: EB really ( really! ) wants to get connections on port 80 from the public internet. At deployment time it creates a new security group for the environment, which opens port 80. Editing that group to open more ports does not help because of pr... | 2 | 3 | 1,773 | 2019-09-04T03:46:44.373 | pipeline_ops | serverfault.com | |
239,812 | SQL Server 2016 SP1 + strategy for long term version retention (snapshots, temporal tables, other?) | We have a data mart fed from an upstream data warehouse that we generate reports out of for external parties. I have a business requirement to preserve the state of the database for each month end to ensure reproducibility of results in case we are asked to do more analysis on the same time period. Database is I know t... | Since you're dealing with a single database (or a known set of databases), simply create a SQL Server Agent Job that restores the month end backup to a "month-end" database. Schedule the job to occur early on the first day of each month. The job would simply restore "last nights" full backup. You are taking nightly bac... | 3 | 5 | 114 | 2019-06-04T19:37:44.280 | hadoop_errors | dba.stackexchange.com | |
417,926 | How can I make Asterisk keep track of dynamic SIP agent statuses? | I am setting up a new server using Asterisk 1.8.11-certified4. In testing, we're seeing that agents dynamically logged into the queue will receive a second queue call as a call-waiting when call-limit is set to 0. Since the agents in question are not always in the agent queue, call-limit=1 would unnecessarily prevent t... | I asked the same question in the Asterisk IRC channel on freenode, and one of the developers responded indicating that in newer asterisk versions (I assume 1.8 and above) you need to specify callcounter=yes in your general config of sip.conf. He also mentioned that call-limit should never be zero, as that is not techni... | 3 | 3 | 4,156 | 2012-08-15T19:26:40.257 | infrastructure | serverfault.com | |
321,503 | How to configure basic Jenkins HTTP authentication with Nginx? | I have installed nginx and made follow host: [CODE] After that I can access to Jenkinks in jenkins.mydomain.ru and it's require password. But I still can access to Jenkinks in http://mydomain.ru:8080/ without any password. How can I disallow access to Jenkinks in http://mydomain.ru:8080/ ? | Jenkins seems to be listening on port 8080, so nginx has no control over it -- you need to go to jenkins' config file and tell it to listen on 127.0.0.1 (local connections only), where I would guess that it's currently set to 0.0.0.0 (open to all) | 1 | 3 | 3,806 | 2011-10-14T15:10:30.097 | api_errors | serverfault.com | |
233,689 | logical reads on global temp table, but not on session-level temp table | Consider the following simple MCVE: [CODE] When I run the following inserts, inserting into [CODE] shows no stats I/O for the temp table. However, inserting into [CODE] does show stats I/O for the temp table. [CODE] The stats output: SQL Server parse and compile time: CPU time = 0 ms, elapsed time = 1 ms. Table 's1'. S... | Minimal logging is not being used when using [CODE] and global temp tables Inserting one million rows in a global temp table by using [CODE] [CODE] When running [CODE] while the above query is executing, ~1M rows are returned. One [CODE] operation for each row + other log data. The same insert on a local temp table [CO... | 12 | 11 | 709 | 2019-04-01T21:06:57.043 | database_errors | dba.stackexchange.com | |
665,376 | Debugging a Postfix Saslauthd PAM-PGsql authentication failure | I've set up pam-pgsql to lookup passwords in my database for Postfix via Saslauthd. I can test credentials using the command line: [CODE] Authentication will fail, and I don't know why. [CODE] How can I know what pam-pgsql is doing? How can I get more helpful messages? | Jon from the past! I have the answer to all your problems. There's a clue right in your log: [CODE] Remember how you put the PAM config in [CODE] and not [CODE] ? And your log says [CODE] ? Yup, you're trying to auth on the wrong service. I actually found the solution in the Postfix SASL manual, just under where you fo... | 2 | 2 | 3,202 | 2015-02-05T20:39:41.200 | api_errors | serverfault.com | |
187,727 | get statistics about postfix | I have postfix on my server. and my server is sending about 5K emails daily i need to get some statistics about these emails in web interface (web tool) for example how many of them went to each domain (500 to @yahoo, 242 to @gmail and so on) and some other statistics. i need something other than postfix log-watch Than... | AWStat, Demo: http://awstats.sourceforge.net/awstats.mail.html , Site: http://awstats.sourceforge.net/ | 0 | 1 | 570 | 2010-10-05T13:38:18.400 | api_errors | serverfault.com | |
86,253 | How to start and maintain an after-work project | I work as a full time developer. My workplace, however, is very limiting in the technologies and programming languages I can use. All of the work is done in C++. It is clear that C++ is rapidly losing (or maybe already lost) its leading position. (please don't flame me, I have years and years of C++ experience, and I l... | Biggest thing: DON'T. GET. FRUSTRATED. Hang in there. Do your best. Learn what you can. Steal every minute. Enjoy the process! Second biggest thing: Think long-term. Think, "In a year from now, I want to have XYZ accomplished." When I look at what I've done over the past 6 months, I'm really impressed. But when I think... | 47 | 46 | 4,888 | 2011-06-22T18:29:44.347 | api_errors | softwareengineering.stackexchange.com | |
795,810 | CentOS-7 disk name change on reboot in hyperv | On hyper-V, one IDE and 7 SCSI hdd are attached. IDE disk is configured in LVM and scsi hdd is configured in standard partition. During reboot the disk name get shuffle. There is no error message. From the dmesg, I see that this get shuffled. Due to this need to application failed to start and remount again looking par... | This is known behavior for a linux system. The sequence that block devices are added in at boot time is arbitrary, so you certainly could see issues with devices moving around unless you use some sort of persistent naming scheme such as disk labels or UUID. See https://wiki.archlinux.org/index.php/persistent_block_devi... | 0 | 1 | 1,417 | 2016-08-09T16:40:07.900 | infrastructure | serverfault.com | |
193,061 | How to limit the number of sessions for a specific login | How can we let just one program to connect to the database, in case many programs have the connection string. (limit the number of sessions for a specific login) | If all programs are using the same credentials in the connection string, you might be able to achieve what you're after by using a Logon Trigger to limit the number of sessions for a specific login. For example, in the following code ( taken from the documentation ), the logon trigger denies log in attempts to SQL Serv... | 0 | 4 | 918 | 2017-12-13T19:58:59.110 | warehouse_errors | dba.stackexchange.com | |
205,151 | Windows Deployment Services Error When Approving Machine | I'm using WDS/Server 2008 R2 to deploy Windows 7 in a small organization. I have WDS configured to respond to all PXE clients, but require administrator approval. When I PXE-boot a client, it sees the WDS server and begins to boot, then pauses awaiting for the admin approval. On the WDS server, the machine shows up as ... | I found this rather old question while searching for a solution to this myself. For the record just in case someone else ends up here in the future: The WDS server's computer account needs to be granted rights to create computer accounts in the AD. If you haven't specified a specific target OU in your WDS configuration... | 0 | 2 | 4,557 | 2010-11-23T14:17:18.883 | pipeline_ops | serverfault.com | |
227,701 | Front-end structure of large scale Django project | Few days ago, I started to work in new company. Before me, all front-end and backend code was written by one man. As you know, Django app contains two main directories for front-end: /static - for static(public) files and /templates - for django templates Now, we have large application with more than 10 different modul... | By "module", do you mean app? Django already has a pretty standard structure for where to place files. I suggest you consider using that structure. For one thing, just about all help you will get will have examples with this structure. As for your structure, it looks pretty sprawling to me. It's up to you, though. In p... | 6 | 2 | 4,781 | 2014-02-04T18:33:13.790 | database_errors | softwareengineering.stackexchange.com | |
1,035,107 | Multicast not working on macvtap device | I have a problem with my virtual network and IPv6 network discovery (multicast traffic). (The setup might seem a little bit involved and I don't remember the exact reasons for every design decision. Nevertheless the network proved to be stable and maintainable. Still possible there's room for optimization and simplific... | I found an answer at Superuser: https://superuser.com/questions/944678/how-to-configure-macvtap-to-let-it-pass-multicast-packet-correctly/1033768#1033768 I'll just copy [CODE] 's answer here: libvirt's macvlan has gained support for multicast. Unfortunately it is disabled by the default setting [CODE] , and the documen... | 1 | 2 | 1,514 | 2020-09-23T20:33:57.557 | infrastructure | serverfault.com | |
404,331 | Should I put add() method in Laravel model | It's my first post here as I understand that SO is a platform to find fixes and this is where to ask questions about more general questions. Correct me if I'm wrong I'm working on project in Laravel and I started wondering where to put my code. It feels like this would perfectly fit in my [CODE] model, but I'v always p... | There is a school of thought that controllers and actions should be as lean as possible - pushing domain/business logic back into the models as much as possible. There's another school of thought that prefers to be a little more up front and show what's happening in the controller. Then there's the approach of keeping ... | 3 | 2 | 774 | 2020-01-27T13:02:36.893 | api_errors | softwareengineering.stackexchange.com | |
923,469 | Apache: Is the password protection in a .htaccess file always processed first? | Last week I did a relaunch on a website and today I have realized that the staging subdomain got indexed by Google. I want to avoid this mistake in the future and track down the error source. I assume that it has to do with the [CODE] file and cached redirects. The .htaccess file is structured like that [CODE] Could it... | The fact that your staging site was indexed has at least as much, if not more so, to do with the lack of access controls on [CODE] ... It could be that a [CODE] directive on your main site was responsible for disclosing the URL, but as far as I know access controls are applied by Apache before the [CODE] is allowed, re... | 0 | 2 | 94 | 2018-07-25T15:12:58.940 | infrastructure | serverfault.com | |
418,810 | Running time for simple for loops - Big O notation | I am currently doing some exercises with algorithms and I find myself in a huge problem. It seems that everybody understands this type of problem but I have a really hard time figuring it out. For exercise, we have some for loops to look at, and we need to figure out the runtime for that specific algorithm. We got a so... | I assume you need to prove the algorithm is [CODE] , not [CODE] . During the first iteration of the first [CODE] loop, the statement ( [CODE] ) is called [CODE] times. During the second iteration, it is called at most [CODE] times. (Here, unlike your algorithm, it's a division of floats.) Why at most? Well, if [CODE] i... | 2 | 5 | 559 | 2020-11-09T19:10:35.560 | api_errors | softwareengineering.stackexchange.com | |
436,467 | How to verify that a legitimate (but unknown) remote asset from an unknown source has not been compromised and that its integrity remains intact? | I am familiar with and see the benefits of Subresource Integrity ( SRI ). I understand that with SRI , once you've added a script reference with the correct [CODE] attribute, if the remote script is subsequently compromised, then the SRI Hash will not match the remote asset and the remote script will not download. That... | I'm trying to understand how it will be possible (I refuse to believe it isn't possible) to verify the integrity of a new unknown remote asset from a new unknown source, when you cannot say for certain if either the remote asset or the remote source has not been compromised. Sure you can do this. It's called the Waybac... | 0 | 1 | 134 | 2022-02-03T15:14:10.073 | api_errors | softwareengineering.stackexchange.com | |
58,597 | Why models performs better If normalize test data and train data separately? | Many threads (and courses) such as this and this one suggest that you should apply normalization to the test data using the parameters used in the training set. But other some discussions I've found like this one and this one that suggest that applying the normalization to the test set is not really required and it mig... | If apply normalization on training and testing in a separate way, I get really good results 85% (and sometimes more) and the further steps I try to do next work better as well. The problem with applying normalization across instances on the test set separately is that the test set represents any new data. So in princip... | 5 | 7 | 1,723 | 2019-09-03T10:24:06.270 | data_quality | datascience.stackexchange.com | |
475,416 | Is there a reason why DKIM signs every mail twice | I've configured my postfix/amavisd-new/spam-assassin setup after this tutorial https://help.ubuntu.com/community/Postfix/DKIM . But now the problem is that all mails I send are double signed with two DKMI Headers, one before and one after the mail is sent to amavisd-new. How can I prevent this behavior? | to disable milter processing after amavis, add to your [CODE] in the after-amavis section [CODE] if you want to run the milter after amavis, set the [CODE] configuration option in [CODE] to an empty string and add the [CODE] configuration to master.cf instead: [CODE] | 7 | 11 | 6,085 | 2013-02-05T00:26:10.987 | infrastructure | serverfault.com | |
401,625 | vmware esx4.1 virtual disk locked after failed snapshot creation | I have vmware vsphere 4 esx4.1. I have a virtual machine with centos6 64bit OS and 3 virtual disks (50GO system/ 250 GO user data / 250 GO backup) When I tried to take a snapshot of the VM, I got an error message like unspecifi-ed filename has bigger size than biggest size authorized by the datastore. My problem is tha... | When I've encountered similar situations, I've shut the virtual machine down and navigated to the datastore containing the VM. I use NFS for most datastores, so there are lock (.lck) files that can be removed. Easy. However, I'm assuming you're using VMFS on local storage. The process is less-transparent. VMWare has a ... | 2 | 3 | 1,215 | 2012-06-23T16:46:17.133 | database_errors | serverfault.com | |
873,300 | Couldn't mark volume as bootable in hpacucli (SmartArray P400i) | I've got HP ProLiant G5 with hardware controller HP SmartArray P400i . I created logical drive from 4 HDD and installed OS, but i don't know hot to mark this volume as boot. Here's the output of [CODE] in HP SSA disk: [CODE] Also, logical drive type is [CODE] . What is wrong could be here? How can i mark logical volume... | So I downloaded Smart Update Firmware DVD and updated everything what it suggested. And now I see that [CODE] button! | 2 | 1 | 2,956 | 2017-09-12T14:52:15.473 | infrastructure | serverfault.com | |
1,103,506 | Unable to connect to servers via RDP using their IPs (works with their hostnames) only for some admin accounts | We have nominative user and admin accounts. Admin accounts are in the "domain admins" group. When some of us log onto some servers via RDP with the server's IP we get the error "A user account restriction (for example, a time-of-day restriction) is preventing you from logging on. For assistance, contact your system adm... | Possibly, the accounts which have the problem are members of the domain group "protected users". That group does not allow using NTLM for authentication and using the IP, NTLM is the only possible way, while using the name, kerberos is attempted. Verify the group members. | 0 | 4 | 2,677 | 2022-06-17T07:39:09.007 | infrastructure | serverfault.com | |
748,934 | Adding multiple 'Limit to hosts matching' for user in Workbench | I want to add two IP addresses to limit a user account in Workbench. I can't figure out the syntax. I've scanned the help and online. [CODE] doesn't work. It says [CODE] so I'm assuming it's possible without creating a new user for each host limit. Whatever I try I get a [CODE] error. Also I can't add Workbench as a ta... | [CODE] - That would be an invalid assumption. There is one entry in the 'user' table for each 'Host,User' combination. Just do a [CODE] note the multiple 'root' accounts for localhost, 127.0.0.1, and so on that show up in the default configuration. [CODE] | 3 | 2 | 24,139 | 2016-01-13T21:52:20.587 | infrastructure | serverfault.com | |
391,131 | Algorithm for permutations of a string of characters, with no duplicate orders | I've seen a lot of good questions about similar problems but not exactly what I'm looking for. Given: a non-unique set of symbols (or characters) [CODE] Expected: an output similar to this (the order isn't important, only the elements outputed) [CODE] I know I could pipe the permutation output into another algorithm si... | One possible way could be to first convert your string in a map of character to integers. Then you would iterate over the keys of the map to select the next possible character. [CODE] | 2 | 1 | 1,062 | 2019-04-29T17:02:36.297 | data_quality | softwareengineering.stackexchange.com | |
453,151 | Powershell script runs on a Win7 client but not on an Exchange CAS server | I have created a small powershell script to disable active sync for mailboxes when the user is not a member of a specific AD group. This script works perfectly when running it from my Windows 7 workstation from the Exchange Management Shell. It does not however work on the CAS server's EMS. [CODE] Both the [CODE] and t... | The problem you're having is [CODE] . You need to load the Active Directory snap-in with the command [CODE] . You'll need to have the "Active Directory module for Windows PowerShell" feature installed on your Exchange server for this to work. The Get/Set commands give you that warning because your script does this: Dis... | 0 | 2 | 306 | 2012-11-28T19:22:22.783 | infrastructure | serverfault.com | |
325,871 | Recommissioning subnet, accommodating device with static IP address and unknown hostname in Windows network | My company recently bought an asset management appliance (a Dell Kace M300). The setup is supposed to be pretty painless; you essentially just attach an ethernet cable, power it on, and resolve a configuration page in your browser via IP (192.168.2.100). The problem I'm experiencing is that I cannot resolve or even pin... | The problem you're dealing with has nothing to do with Active Directory or DNS. You have a basic connectivity problem. The device has a default ip address of 192.168.2.100, so in order to connect to it you need to connect to it from a device on the same layer 3 network (subnet). My suggestion would be to connect a patc... | 2 | 8 | 81 | 2011-10-29T01:20:06.327 | database_errors | serverfault.com | |
953,552 | EC2 unable to ping google.com | We created new VPC that has four subnets, two private and two public. Private and public will be Mumbai A Mumbai B region. When I ping google.com from public Mumbai A it is not working. When I ping google.com from Public Mumbai B, result is the same. I tried with two servers on each. Note: All servers have the same sec... | Check a couple of things: Is Internet gateway configured for Public subnets? Is NAT gateway configured for Private subnets? Are the correct Route tables attached to the respective subnets? Do the hosts in Public subnets have Public or Elastic IP ? Do Security Group and NACL permit outbound traffic? If you still can't f... | 1 | 0 | 9,881 | 2019-02-12T14:44:56.617 | infrastructure | serverfault.com | |
193,126 | Deploy EAR with Websphere Application Server wsadmin.bat without losing security role-mapping? | We're running CI towards our WAS with wsadmin.bat The applications are updated with this command [CODE] This causes all the "Security role to user/group mapping"-settings to reset, even though all the other settings are preserved with the -update.ignore.new Anyone know how to fix this? | you may want to try: $AdminApp install instead as the parameter -update -update.ignore.new applies only if you specify install command and there are existing binding and if the existing bindings are older than bindings in the new ear. | 0 | 1 | 2,341 | 2010-10-20T20:03:13.700 | infrastructure | serverfault.com | |
635,219 | Nginx client_body_in_file_only for file upload performance | In my app, I have nginx proxy to my app server (unicorn). I'm trying to improve my file upload performance. I've read that through various techniques you can prevent your app processes from being blocked while the file is uploading. Current information on the best way to approach this topic seems hard to come by (see t... | How could you improve upload performance by making nginx buffering to the disk? Every time bytes are received (limited by the MTU of the transmission is the best case, or in the worst case with 1b-payload network packets), those will be written to the disk. Usually one tries to avoid requesting accessing loads of times... | 3 | 3 | 13,582 | 2014-10-11T01:00:41.600 | infrastructure | serverfault.com | |
601,442 | Resizing of volumes used as VMWare NFS datastores causes Linux VM issues | We had to perform a live volume resize of an NFS datastores VMWare uses on our Netapp. All of our Windows VMs were fine after the resize. However, some of our Linux VMs had issues. Some Linux VMs just stopped responding. After restarting those VMs, I couldn't find anything in the logs indicative of an issue though. I d... | I think, it was just an I/O timeout. I had such issues with Linux VMs on remote NFS datastore. NFS was just too slow, and some of our Linux VMs switched their disks into read-only mode (and therefore stopped responding). Probably, during resize your NFS datastore was overloaded and this caused issues. Do Linux VMs work... | 4 | 4 | 3,426 | 2014-06-03T12:02:46.697 | infrastructure | serverfault.com | |
316,366 | Cannot Successfully Checkout SVN Repo | Possible Duplicate: Subversion error: Repository moved permanently to please relocate I cannot check out my SVN repository. I think I have my config file written correctly: [CODE] Is there anything wrong with this config? The exact error I get when performing a checkout is: svn: Repository moved permanently to ' http:/... | What URL are you trying to use to check out? You don't want that [CODE] directive, remove that; if you want to not use [CODE] as your path then change your [CODE] to just [CODE] . Move your [CODE] to point to some empty directory somewhere that's not going to fight with the SVN module's handler too, as discussed in the... | 0 | 2 | 247 | 2011-09-28T13:13:15.650 | data_quality | serverfault.com | |
1,146,948 | Windows firewall will not block RDP port 3389 | Windows firewall on multiple domain controllers (2016 & 2019) has suddenly stopped blocking RDP access to port 3389. There was a GPO firewall rule to restrict access to the RDP port based on IP that worked fine. The GPO was initially filtered on AD group membership during testing. The AD group filter was then removed f... | It turns out this problem was being caused by the Crowdstrike Windows Sensor. When installed on a Windows domain controller it uses RDP inspection to validate connecting hosts. Problem is, there is at present a quietly acknowledged bug which causes it to conflict with host-based firewalls. They are working on a fix, bu... | 0 | 0 | 934 | 2023-10-31T16:12:04.473 | infrastructure | serverfault.com | |
270,126 | Global state of games(or other). Example : Waiting,Betting,Battling in gambling game | So I'm making a IRC betting bot. Basically the game/bot has three states of taking-in chat. State 1 : Betting If anyone says "!bet team money" parse it and record. State 2 : Battling Take nothing in, no more !bet etc. Just watch. State 3 : Waiting/Bank Don't take bets. But take-in "!bank" and print out the users money ... | This looks like a good application of the ideas of "Finite State Machine" and "Polymorphism". You've already defined your states, so the next step is to define the transitions between states, and the behavior of the system when it's in each state. There are many ways to implement state machines, but in this case you mi... | 0 | 3 | 195 | 2015-01-15T01:21:51.437 | api_errors | softwareengineering.stackexchange.com | |
165,065 | SNMP System view not returning memory information | I've configured SNMP properly (Removed the paranoia user and alike) and set it up with Zenoss, however it seems that Zenoss can't get the memory info from the server. snmpwalk also shows no memory info while it seems that the system view should list it, views are as follows: [CODE] Can anyone see something wrong with t... | To monitor a Debian system from Zenoss I make these below changes from the stock snmpd configuration. Then you will use [CODE] to connect from zenoss. [CODE] Also adjust this. [CODE] I use the local host firewall to limit SNMP requests to only coming from zenoss and a couple other management hosts. | 0 | 0 | 837 | 2010-07-28T23:17:09.793 | infrastructure | serverfault.com | |
6,756 | How to get IIS7 to release a locked file? | During our production builds, a very large (10 megabyte) static content file in the root directory will sometimes be locked by IIS and cannot be deleted by the clean task. This is presumably because it is being actively served to one or more clients at the time. The build process stops the website before cleaning via [... | There are tools, such as Sysinternal's Process Explorer, that can find and forcibly close file handles, however the state and behaviour of the application (both yours and, in this case, IIS) after doing this is undefined. Some won't care, some will error and others will crash hard. The correct solution is to take the o... | 27 | 12 | 60,849 | 2009-05-10T06:59:22.220 | infrastructure | serverfault.com | |
194,468 | Cannot install git-core using macports | Snow Leopard 10.6.4 mac ports 1.9.1 I have just installed macports and I want to install git-core. However, I get the following errors: [CODE] I have tried doing a [CODE] and a [CODE] and then trying to install again. But still get the same problem. I have also tried install the dependent db46 on its own. Here is the l... | I would suggest using Brew . Brew install git | 0 | 2 | 2,371 | 2010-10-25T11:24:12.817 | infrastructure | serverfault.com | |
344,838 | Enabling apt-get on a default Amazon EC2 instance which has yum installed | I'd like to call something like: [CODE] to enable me to use apt-get as well as yum for installation. However this doesn't work. I get the following back: [CODE] It looks like it requires making the default Amazon EC2 instance aware of repositories. In a nutshell: how I can simply enable use of apt-get instead of just y... | apt-get is a Debian tool. yum (and rpm) are Red Hat tools. They are not compatible; neither are the packages which they install. If you want to use apt-get, use a Debian (or Ubuntu) image instead of Red Hat (or CentOS, or whatnot). | 10 | 16 | 49,716 | 2011-12-28T21:13:55.133 | infrastructure | serverfault.com | |
856,601 | Accessing a Google Cloud Replica of an external on-prem master | I just set up a MySQL replication on Google Cloud Platform using my external on-prem server as replication master. I just follow this guide https://cloud.google.com/sql/docs/mysql/replication/configure-external-master and everything worked as expected. The replication is running. Now I want to access and query the repl... | As per step four of the Creating the external master configuration documentation, you should be able to update your replication user by following the Creating and Managing MySQL Users guide . Once you have a user account and credentials, you can then use them to connect to your instance using any of the guided methods ... | 0 | 0 | 567 | 2017-06-19T11:16:18.103 | database_errors | serverfault.com | |
740,017 | Windows 2008 R2 Standard Edition random packet drop | My dedicated game server running Windows 2008 R2 Standard Edition drops packages randomly and this is causing a freeze for about 1 second for my players. I have no idea whats causing this. I've been monitoring the network from the server and also from a client. My host has also monitored my server and the problem is no... | This is pretty common with a duplex mismatch with your NIC and Network Switch. Make sure your NIC for your server and the settings on your network switch are set the same (Auto, 1Gbit Full, etc.) | 2 | 0 | 69 | 2015-12-01T15:16:15.477 | pipeline_ops | serverfault.com | |
139,857 | Oracle 12c : Unable to install sample schemata on Windows 10 | I've gone through lots of trial and errors in installing the sample schemata for Oracle 12c and still can't get it right. I have a pluggable database named PDB01 . I also have an instantclient installed for the use of PL/SQL developer, but not sure if this affects the installation. Things I've done: Major Reference: ht... | When it comes to Windows, something is always different. [CODE] works on Linux/UNIX, but not on Windows. The Windows version of [CODE] is [CODE] . SQL*Plus Environment Variables LOCAL Windows environment variable to specify a connection string. Performs the same function as TWO_TASK on UNIX. ... TWO_TASK UNIX environme... | 0 | 1 | 1,274 | 2016-05-29T09:44:55.130 | database_errors | dba.stackexchange.com | |
268,687 | Solaris SMF for ssh tunnel | I'm tunneling from our web server to our MySQL server, both on Solaris boxes. I've created a SMF manifest for the ssh tunnel in order to reconnect when the web server box reboots. This works great. The problem is I'm not sure what to do when the MySQL box reboots. This external closure of the tunnel is passed to SMF, w... | You can specify how long to wait between executions of the [CODE] command in the 'exec_method' sections in the [CODE] variable. If you set it to 60 it would try immediately wait 1 minute then try again and the wait & try. The value you would set depends on how the MySQL box takes to boot. Another way you could do it is... | 1 | 0 | 588 | 2011-05-11T17:19:43.150 | database_errors | serverfault.com | |
667,638 | Apache fails after configuration of 2 virtual hosts | Apache does not restart after having changed the configuration. Error: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 File: /etc/apache2/sites-enabled/000-default.conf: [CODE] Got this configuration from the Apache Docs . Any idea why this does not work? | If you are using Debian, you don't need to specify [CODE] in your virtualhost, because is declared in [CODE] | 0 | 1 | 90 | 2015-02-14T14:05:31.090 | infrastructure | serverfault.com | |
472,262 | problems importing tapes from netbackup 6.0 MP7 | I'm trying to import tapes using bpimport bpimport -create_db_info -id 0019L3 i got through the Phase 1 import reading 10 tapes. I'm now running bpimport (Phase 2). the job is running but i don't see any activity that shows that anything is happening. is this normal? it ran for an hour and a half and i canceled the job... | Yes, lack of activity logs is normal for an import job. You need a lot more patience than a hour and a half. I can only guess that after this message, NetBackup reads the entire contents of image netapp1_1246028403 from the tape, byte by byte, to collect all the filenames that are contained in that image, and to add th... | 1 | 0 | 213 | 2013-01-25T02:37:57.920 | database_errors | serverfault.com | |
717,786 | Windows services privilege separation | When looking at the non-Microsoft services on my computer, most of them are executed as the account SYSTEM. Is there a mechanism in Windows that prevents any service running as SYSTEM from reading/writing data in the folders of other services (seeing as SYSTEM has read/write permissions there)? I read something about e... | If two services are executed under the same account (whatever its name is) they have the same access to files on the disk. If you want to separate that, you are going to need to create new accounts. This is very common. For example, when I install FileZilla FTP Server on our Windows servers, I create new user for it. S... | 0 | 1 | 222 | 2015-08-30T06:23:58.730 | infrastructure | serverfault.com | |
1,142,477 | Facing error again in minikube renew certificate | When I run kubectl command getting error is certificate expired How to debug minikube errors? kubectl get pods Unable to connect to the server: x509: certificate has expired or is not yet valid | It seems issue is related to an expired certificate A Temporary workaround is to removes several files from the /var/lib/minikube/ directory, then reset the Kubernetes cluster and replace keys on the host. Refer to this gitlink which can be helpful to resolve your issue If the issue is not yet resolved try running the ... | 0 | 1 | 398 | 2023-08-27T09:07:20.850 | infrastructure | serverfault.com | |
613,731 | How to to use a cgi file without an extension as index in Apache | I'm using WebMin to administer an Apache server and am having trouble getting Apache to use a python CGI file without an extension (named "home") as my index. The file is executable and works OK if I type the URL like this: http://example.com/home but I want this to get there too: http://example.com Instead, I get a pe... | You probably need to add the following directives to your configuration: [CODE] These could go in .htaccess or inside e.g. [CODE] . | 0 | 0 | 281 | 2014-07-18T18:36:16.953 | infrastructure | serverfault.com | |
284,266 | Python: Are all dictionary comprehensions just more expressive and compact for loops? | Recently, to describe dictionary comprehensions in Python , I wrote: dictionary comprehension is just a more compact & expressive way of writing the same logic as for loops (performance may differ). Is this a correct characterization of Python's dictionary comprehension? Is it possible to give an objective(-ish) defini... | To me, "expressive" means that you can express a large diversity of concepts with it. In many programming languages, a foreach loop (iterating over a container) is less "expressive" than a for loop. Because you can always trivially rewrite the former in terms of the latter, but not vice versa. Analogously, I would say ... | 0 | 3 | 374 | 2015-05-19T05:04:12.100 | api_errors | softwareengineering.stackexchange.com | |
784,495 | Poor performance with docker internal DNS | I have a problem with docker internal DNS. On one of docker container dns server is so slow that it time out most of the queries. Docker is installed in KVM virtual machine and I have several containers spawned with docker-compose. Default docker configuration. Querying external DNS works ok, but after some time (minut... | I was able to reproduce the symptoms. The fix for me was two things. Upgrade Docker Engine from 19.x to 20.10.3. After upgrading to this version my [CODE] container was able to connect to other containers on the same internal network. But, it could not connect to external servers like google.com for example. Added an o... | 2 | 0 | 887 | 2016-06-16T21:55:47.490 | pipeline_ops | serverfault.com | |
1,005,465 | offline install.NET 3.5 with Windows 10 | I have a work computer running windows 10, and with the way win10 does everything for you under the hood I would like clarification/help on the following because it seems like I am at a point of this cannot be done and I find it hard to believe. When installing 3rd party software and drivers for test equipment, it prom... | If you have the install media, you can use powershell to install offline using the Install-WindowsFeature commandlet. Mount the .iso or insert the disc and then open powershell as an admin and run: [CODE] where d: is the drive letter for the install media. This microsoft article documents the method, though it is using... | 1 | 2 | 8,430 | 2020-03-03T20:01:34.877 | infrastructure | serverfault.com | |
73,703 | How to get the rowid in a TRIGGER for another table in SQLite | Given the below schema [CODE] Used in client e.g. Java equivalent prepared statements with [CODE] s and params of these two statements: [CODE] Question Is it possible to write a trigger (or anything else) without client code (only SQL) which achieves the above results with only [CODE] Note: Of course the client code wi... | Based on CL 's suggestion to take another look at [CODE] and now that it's clear that [CODE] triggers are only for [CODE] s (see question's comments), here's a working version: [CODE] Output with comments: [CODE] Notes: Using [CODE] format helps to catch schema modification bugs since when a new column is added the [CO... | 2 | 2 | 4,945 | 2014-08-11T21:18:08.980 | warehouse_errors | dba.stackexchange.com | |
374,024 | What is considered good/best practice around handling ad-hoc coding requests? | I am a data scientist and do lots of programming in R/RStudio. I like to be organised (as I'm sure (hope) most programmers do) and as such I always use the Project feature in RStudio to keep my work organised so that I can comfortably switch between projects in just a couple of clicks, keeping related files together. D... | I'm not an R developer, but I do get requests like this. Also, I sometimes found the need to test out a small piece of code on its own. I tend to make small projects in Visual Studio for this. The problem with that has been that I would lose track of what snippets I have lying around. To overcome that, I've made it a h... | 4 | 1 | 331 | 2018-07-12T10:26:05.733 | api_errors | softwareengineering.stackexchange.com | |
254,463 | Get the CreatedAt Timestamp when the number of rows is equal to some number | I have a simple table in SQL Server. id OtherId createdAt 1 A 2019-11-28 05:03:03.983 2 A 2019-11-28 05:03:06.937 3 B 2019-11-28 05:03:12.983 I want to retrieve a timestamp when the number of rows becomes equal to or greater than a fixed number, let us say 10, where [CODE] is [CODE] . So, if the number of rows with [CO... | You could try along [CODE] The inner [CODE] groups the records by OtherId , orders and ranks them by createdAt . The outer [CODE] picks the record by some number. The CTE (common table expression) @Akina mentioned, would pull the sub-select to the top: [CODE] Do not see much difference in this case. But the technique h... | 0 | 2 | 244 | 2019-11-29T20:26:36.310 | database_errors | dba.stackexchange.com | |
695,162 | Hyper-V performance and the Save State BIN file | The Hypothetical Scenario . Our small business server has 2x 400GB SSDs and 6 slower 7,200rpm SAS drives. We create a RAID1 array for the SSDs (henceforth Fast Disk) and a RAID10 array for the 6x SAS drives (henceforth Big Disk). The latter is clearly fast as well. But Fast Disk is also Expensive Disk - every megabyte ... | It dumps all of memory at the moment that you save. No I/O will occur while the VM is running. You're safe putting that file on relatively slow media. In general, the media just needs to be able to save the VM fast enough that your host reboot, or power off due because you're running on battery backup, happens before s... | 2 | 0 | 824 | 2015-05-29T00:37:25.280 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.