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 |
|---|---|---|---|---|---|---|---|---|---|---|
266,042 | Temporary failure in name resolution | I keep getting an error message whenever doing anything that requires a DNS lookup on my CentOS server. E.g.: [root@15557 etc]# wget http://www.whitehouse.gov/sites/default/files/rss_viewer/birth-certificate-long-form.pdf --2011-05-03 20:55:35-- http://www.whitehouse.gov/sites/default/files/rss_viewer/birth-certificate... | This might be a problem caused by DHCP server -actually, by a rogue or another misconfigured DHCP server on your network. Probably , this is what happens: when your server boots, it manages to get the accurate parameters ( IP address, gateway, DNS servers, etc ) from the legit DHCP server and as a result, you won't exp... | 11 | 10 | 87,250 | 2011-05-04T04:06:52.890 | infrastructure | serverfault.com | |
637,668 | BIND failing to resolve with 'WARNING: recursion requested but not available' | there are no errors in the logs and query logging won't initialize iptables is fully disabled but the server will respond with "WARNING: recursion requested but not available" because my client 104.200.17.225 is going to external. But the client 'is in' the trusted ACL. Bind is ignoring my trusted list entirely. [CODE]... | try switching your ACL statements [CODE] | 3 | 5 | 57,994 | 2014-10-16T23:58:45.317 | infrastructure | serverfault.com | |
190,937 | bash script returns "out of memory" in cron, but not in shell | I'm running a nightly bash script to sync a remote folder (source) with a local folder (target). I've tested this script, based on rsync, and it works fine in a root shell. It takes time since there are hundred of gigs to copy but it works. Once I use it in crontab my server runs out of memory. My server has 8GB of RAM... | Even though limits.conf is commented out, I suggest that you test just to make sure. One way would be to create a cronjob that just contains something like "ulimit -a | Mail -s 'limits' me@example.com" to have the info emailed to you. Once you know what the limits are, then you can just reset them in the shell script t... | 2 | 1 | 4,840 | 2010-10-14T14:00:10.137 | infrastructure | serverfault.com | |
134,669 | Sharding with IoC | I've come across a situation where I need to shard a database (Oracle, but that doesn't particularly matter). The gist of the problem is I have written a large-scale system in a fairly standard TDD-style, with repositories and services hidden behind interfaces. Dependency injection is used to implement particular versi... | I think it depends on how well your entities that you are persisting are segregated. If they are coupled and you are relying on cross-table joins to bring some arbirary read (+projection) state up and then deserialize it back, then you probably have a problem. On the other hand, if you can load an entity or aggregate r... | 2 | 1 | 318 | 2012-02-12T18:23:12.730 | database_errors | softwareengineering.stackexchange.com | |
100,899 | Help with PIVOT query | I have a table with below structure : [CODE] some sample data (seems problem with sqlfiddle.. so putting some sample data): [CODE] Here is the SQLFiddle with some sample data. Can someone with a T-sql expertise guide me on how to achieve the final result ? I know that [CODE] (with dynamic columns) will be the right app... | This is a bit messy to get the final result because you have multiple [CODE] for each date. Before I demonstrate how to do this with dynamic SQL, I'll first show how to do it with static code to get the logic correct. In order to get the final result you can utilize both pivot and unpivot. But first, I'd change your or... | 12 | 20 | 770 | 2015-05-07T16:47:24.473 | warehouse_errors | dba.stackexchange.com | |
213,771 | zpool import on a 50TB volume is taking forever: What is it doing? | We have a fiber channel san managed by two OpenSolaris 2009.06 NFS servers. Server 1 is managing 3 small volumes (300GB 15K RPM drives). It's working like a charm. Server 2 is managing 1 large volume of 32 drives (2TB 7200 RPM drives) RAID6. Total size is 50TB. Both servers have Zpool version 14 and ZFS version 3. The ... | With ZFS you really want to let it manipulate the disks directly as it improves concurrency. The single 50TB disk you gave it is a choking point. That DTrace script is only tracking syscalls. The real action happens inside the kernel and if you want to see what's consuming most of the CPU, use the 'hotkernel' script fr... | 6 | 4 | 6,209 | 2010-12-17T17:23:13.000 | infrastructure | serverfault.com | |
445,695 | safely remove webserver from nginx backent pool? | We have 4 webservers behind nginx being hit with 262 events/second. I would like to tell nginx to stop sending requests to that server. If I remove the server from the file and reload the file, aren't all requests in process dropped on the floor then as nginx no longer knows that server. What can I add to the config so... | According to the nginx documentation, updating the config and then using the [CODE] or [CODE] commands should start new worker processes with the new configuration and close any listen sockets on the old worker processes, preventing new connections to them. These old worker processes will continue running until they ha... | 2 | 4 | 1,309 | 2012-11-05T22:01:46.190 | infrastructure | serverfault.com | |
635,138 | Microsoft AV - Do Exclusions Apply to Full Scans or Realtime Protection Only? | The vendor for a new system we're setting up sent us specs for their recommended A/V exclusions. They recommend that we exclude .PDF, .JAR, .BIN, and .DAT files (among others) from real-time scanning. These exclusions make sens for what the application is doing. They've also indicated that doing a full scan of these fi... | After experimenting with it, I have come to the conclusion that a file exclusion is a file exclusion period. It applies to both real-time scanning and full scans. There is no way to separate out realtime vs. full scan exclusion settings. | 0 | 0 | 550 | 2014-10-10T17:06:59.773 | infrastructure | serverfault.com | |
274,162 | Best way to tag/identify processes for killing them later? | In my linux startup scripts, when I start a process like (openvpn used for this example, but the question is general to any process); [CODE] what is the best way to find it and be 100% certain it's the right process and kill it in the stop section? I normally use stuff like: [CODE] Sure it works nearly all of the time,... | Thank you @Iain, @KyleSmith, and @M_1 for your answers, and for helping me get started on Server Fault. If I had more rep here I'd +1 you guys. (Edit: now I have rep, +1s all around). I'm going to answer my own question because I've found something that does what I was looking for: a general solution that avoids imprec... | 7 | 8 | 5,683 | 2011-05-26T18:16:08.680 | infrastructure | serverfault.com | |
402,582 | Application Security Trimming vs Database Security Trimming | We have a fairly complex Meetings Management solution which would have one meeting to contain different agendas which would contain some tasks and also documents, etc. There are also different roles such as agenda creator, agenda reviewer, agenda approver, user responsible for actions etc. We could have participants at... | I doubt the MS SQL row-level security is fine-grained and flexible enough to handle all your use cases. For example, just seeing the title but not description. Also, SQL doesn't really have a comprehensive toolkit for RBAC and authentication. It's a long way from JWT claims to that row-level security. On other hand, yo... | 2 | 2 | 135 | 2019-12-16T21:02:51.197 | api_errors | softwareengineering.stackexchange.com | |
727,473 | Is RRAS SSTP VPN using publicly signed certificate a bad idea? | Most guides for deploying SSTP on RRAS recommend setting up a private CA using AD CS, with all the necessary steps that come with that to issue a server authentication certificate and have it trusted by the clients. From what I've read, it's also perfectly possible to set up SSTP using a publicly signed certificate. To... | You need a CA for client authentication. You must trust only client certificates signed by your CA. If you do not plan to use client certificates for authentication, then you do not need a private CA. | 0 | 1 | 402 | 2015-10-07T21:54:54.363 | api_errors | serverfault.com | |
1,011,066 | php 7.4 mysqli pointing to wrong path | I recently updated to php 7.4 from php 7.3 on Debian and it seems apache is pointing mysqli to older path. How do I figure out from where it's causing issue? Error - [CODE] I tried to check if it's installed or not - [CODE] | I resolved it, myself. Had to disable apache php 7.3 module and enabled php 7.4. Sometimes, we forget to do basic step. Just sharing the answer so if anyone faces same issue, they can try below - [CODE] | 0 | 0 | 561 | 2020-04-06T05:34:53.800 | database_errors | serverfault.com | |
68,725 | Join 3 tables returns too many results | I have 3 tables: [CODE] , [CODE] , [CODE] . The last 2 tables have [CODE] that associate with [CODE] (first table). The problem is that when I try to run inner join query and return all posts and videos that have user_id and exists in both tables, I get multiple same records. [CODE] If I run the queries separately, I g... | If you want 14 rows in the result (6+8), you need to use [CODE] of the two queries you already have. Just take care for both to have the same number of columns (and same datatypes in the respective columns.) It will be something like: [CODE] | 0 | 1 | 2,426 | 2014-06-21T07:35:14.573 | warehouse_errors | dba.stackexchange.com | |
179,915 | What happens when I change a table column's data type to increase its data length in SQL Server? | I believe SQL Server would create a new column under the hood and copy the original data to the newly created column. And the original space for the old column cannot be reclaimed before the table is rebuilt. But I can't come up with a general picture in my head about what exactly is going on. Say I have a simple table... | Changing a column data type to a wider type will require rows to be moved to other pages once a page is full. This behavior is similar to DML updates of variable length columns to a wider value. This can be observed with this script that uses the undocumented [CODE] TVF available in SQL Server 2012 and later: [CODE] He... | 4 | 2 | 1,394 | 2017-07-15T12:06:22.717 | database_errors | dba.stackexchange.com | |
992,510 | AD CS Configuration Using Install-AdcsCertificationAuthority Cmdlet | I am trying to configure a subordinate CA using a .PFX file with PowerShell. I am using the below parameters: [CODE] Even though MyCert.pfx file is SHA256, the cmdlet [CODE] shows SHA1 . If I use server manager to configure AD-CS and import the .PFX file, it correctly installs using SHA256 Am I missing something? Or is... | You need to add [CODE] as a parameter to to your cmdlet (or in your case, [CODE] to your splatting variable) to configure the algorithm used to sign certificates. That algorithm is not necessarily the same as that of the CA certificate signing it. | 2 | 0 | 509 | 2019-11-19T18:05:45.213 | infrastructure | serverfault.com | |
127,613 | How can I tell what database/procedure is using a linked server? | I have 3 servers, one of which has a linked server configured that points to the other - I'll call this Server A. Server A has over 100 user databases for various purposes. Server B is running SQL 2005 which we're trying to eliminate. Server C has copies of some of the databases from Server B, and we're migrating appli... | Well, you could parse the procedures (as long as they aren't encrypted) and jobs on server A looking for the name of the linked server - but keep in mind these requests could be passed in through an app, coming in from ad hoc SQL, built dynamically, etc. so this won't catch everything. This can also produce false posit... | 6 | 7 | 14,372 | 2016-01-28T15:18:24.870 | warehouse_errors | dba.stackexchange.com | |
210,458 | hyper v guest windows 2008 SP2 unreachable from intranet | I have got strange problem with windows 2008 guest. Network for this host is configured as external. I am able to ping FROM this host and I am unable to ping to THIS host. When I am resetting connection at this guest system from network connections I can ping this host for few seconds. Where is the problem? This machin... | The same network configuration requirements of a real machine apply to virtual machines. Do you have a default gateway configured? Perhaps you could elaborate on exactly how your VM, host, etc have their NICs configured. | 0 | 0 | 843 | 2010-12-08T15:21:31.250 | infrastructure | serverfault.com | |
28,183 | What if the application has functionality that wasn't in the requirements? | It may take serious effort to determine if an application has significant unexpected or hidden functionality, and it would indicate deeper problems in the software development process. If the functionality isn't necessary to the purpose of the application, it should be removed, as it may have unknown impacts or depende... | Undocumented features are BUGS It doesn't matter whether the undocumented functionality appears harmful or not, it is still a bug for the following reasons: Because the functionality isn't documented, there is no traceability. Lack of documentation means that harmful consequences are much less likely to be found (if te... | 6 | 2 | 592 | 2017-06-30T19:08:15.237 | data_quality | sqa.stackexchange.com | |
528,900 | Hardcoded password vs using `cat` to retrieve from file | I'm using Zentyal (formerly EBox) as my home gateway/server, to evaluate it for possible use in a local organization. I wanted to change the root MySQL password, which I did, and mistakenly changed the password in the Zentyal [CODE] folder to match it. So I changed the Zentyal password back to what it was, but the prob... | Why aren't you just using perl's native i/o capabilities to read the file? [CODE] The [CODE] here discard a newline at the end of the string. What is causing the problem when the Perl script does a cat to get the password? Have you tried just printing out the password you've read from the file? Something like: [CODE] T... | 0 | 5 | 573 | 2013-08-06T01:27:13.060 | database_errors | serverfault.com | |
998,268 | Tomcat Lib Folder JARs and Classpath | I'm not sure if this is the right place to ask this, but I'll go ahead anyway! I am trying to deploy a JAR that I built with maven into the Tomcat/lib folder. The problem I'm having is that all the classpath JARs for the JAR that I built, aren't getting read. So I am having to explicitly add those JARs to Tomcat's lib ... | There are two reasons, why you are getting [CODE] s and [CODE] s. A jar inside jar project Unless I am mistaken, you are trying to use the Maven dependency plugin to copy all dependency jars into your jar file. A jar inside jar configuration will not work unless you are using a custom class loader . The only noticeable... | 2 | 4 | 21,235 | 2020-01-09T11:56:56.217 | infrastructure | serverfault.com | |
852,424 | Unable to ssh from windows 10 machine | Im trying to ssh a machine from my Windows 10 machine using a linux shell. I tried using Bash programm included in Windows 10 and i have got the following error: "Resource temporarily unavailable" I tried then using Cygwin but i have got the following error: "Connection timeout" I tried then using a virtualbox VM but i... | For future reference, when you install Nginx, it will block SSH by default with the error message "Resource temporarily unavailable" unless you... sudo ufw allow ssh | 1 | 2 | 6,565 | 2017-05-26T13:59:18.063 | infrastructure | serverfault.com | |
916,791 | No base DN returned from server.Plase enter the base DN manually- Apache Directory Studio | I'm new in Ldap and trying to setup it manually on centos and i'm getting below error while access it from Apache Directory studio. No base DN returned from server.Plase enter the base DN manually- Apache Directory Studio . | It just means that the LDAP server didn't provide it's base DN name to the client and you have to configure it yourself. The base DN (distinguished name) is the base name of the directory tree (e.g. [CODE] ) and you should have configured it when setting up the LDAP server. | 0 | 0 | 1,574 | 2018-06-15T08:28:19.780 | infrastructure | serverfault.com | |
153,177 | Apache2 and /icons path behaving differently | My site is written in asp.net using mono and apache under ubuntu LTS. After debugging most of the problems out I still had problems with my icon folder [CODE] . It was giving me the wrong or no icon. Then I notice [CODE] gets me my custom 404 page while [CODE] gets me a directory listing. Why is [CODE] path hitting a d... | in your httpd.conf you have something like [CODE] | 6 | 3 | 10,005 | 2010-06-21T12:29:57.347 | infrastructure | serverfault.com | |
134,399 | Internal server error,godaddy problem? | I added subdomain,create a new folder,than put some files in folder,when I try to access my new subdomain I get this message [CODE] Can someone help me with this please?It is linux hosting with mysql database. | Can you access a html only file on the site? Upload a file with just some simple text in it. Can you load it? If not, look for the .htaccess file and rename it to something else. Now try to load the text file. If you can load it then its a issue with htaccess if not, time to look at the server logs for errors. | -1 | 0 | 537 | 2010-04-21T11:44:50.757 | database_errors | serverfault.com | |
318,288 | Change port from ipv6 address to ipv4 address | I have setup a service on my server which has opened a port (ie, 40000) but its foreign address is :::* which is a wildcard ipv6 address (I think) When I run telnet localhost 40000 on the server the connection is working fine, but when I try to telnet from my local machine it doesn't work. When I telnet from my local m... | How to configure this depends on the service, but you'll want to configure it to listen on the all-addresses IPv4 address, [CODE] . | 0 | 1 | 1,947 | 2011-10-04T11:57:40.877 | infrastructure | serverfault.com | |
198,249 | MySQL Error 1329 - Empty Cursor Issue | I am experiencing an issue with a stored procedure I wrote some time ago that has recently stopped working. The SP populates a cursor and runs through a loop processing the data in another SP. The issue is that since recreating the SP with a simple cosmetic change, the NOT FOUND Handler for the cursor always fires imme... | i made 3 changes to your SP: initialize exit_loop to FALSE change the name of each variable by adding "V_" to make them different to the column name: close the cursor outside the loop below the end result hopefully that solved your issue: [CODE] | 0 | 0 | 3,430 | 2018-02-19T10:40:57.760 | database_errors | dba.stackexchange.com | |
607,818 | Parallel mysqlimport Syntax Wrong? | I'm trying to import a large 70GB+ database (all [CODE] ) using [CODE] . This is a development system on Windows using WAMP server. [CODE] . I'm getting the following error: [CODE] Here's the command I'm trying to use: [CODE] I usually use MySQL Workbench to do the import but I wanted to use the [CODE] parameter and I ... | Have you tried to import these with any other tool? The error is in the SQL files. Check which file has [CODE] on its first line, and fix the file or remove it. | 0 | 0 | 826 | 2014-06-25T12:58:37.373 | database_errors | serverfault.com | |
747,985 | OpenVZ Container cannot access internet | I have Daedicated Server, and I want to split it on two virtual servers with two diffrent IP Adresses. I bought two exetrnal IP adresses for this server and now I have three, one Main Address, one for firts VPS and one for second VPS. I have installed Debian 7 x64 on server and OpenVZ, set booting to OpenVZ kernel and ... | Problem, according to the comments: DNS name resolution wasn't working correctly. Solution: Replaced [CODE] with the one from the machine hosting the container. | 0 | 0 | 2,070 | 2016-01-10T10:20:18.440 | pipeline_ops | serverfault.com | |
1,144,417 | FastAPI is masking Apache2 inside Docker | I setup a webserver and a FastAPI in a single docker container. Here are the relevant parts of the Dockerfile: [CODE] So basically Apache serves port 80 and the api listens to port 8080. I got a docker-compose.yaml file that looks like: [CODE] This container runs behind an Apache2 reverse proxy in which I set this: [CO... | Based on the suggestions of @Spirit I changed the docker-compose in order to setup 2 services with 2 separate Dockerfiles, there is now no more issues with ports: [CODE] | 0 | 0 | 219 | 2023-09-25T13:47:47.567 | pipeline_ops | serverfault.com | |
1,055,044 | How to control the connection while uploading to AWS S3? | Is there a way to control the connection while uploading from my servers to the AWS Storage? to be clear, Azcopy is so powerful to upload to AWS, so most of our bandwidth consumed and this is affecting our DataCenter !! So is there a command to let Azcopy limit the connection for every transfer (max 100M speed for ever... | The documentation for [CODE] shows that it can limit its own bandwidth usage: --cap-mbps float Caps the transfer rate, in megabits per second. Moment-by-moment throughput might vary slightly from the cap. If this option is set to zero, or it is omitted, the throughput isn't capped. | 0 | 3 | 167 | 2021-02-25T14:50:28.443 | infrastructure | serverfault.com | |
802,154 | Does public IP address of VPC in Amazon EC2 changes if internet gateway doesn't change? | There is an instance in Amazon EC2 VPC with private IP address only, 192.168.1.100. VPC uses Internet Gateway to get connection to the public network. I've found my IP address using 'curl -s checkip.dyndns.org', let it be 1.2.3.4 Now I need to communicate with 3-rd party team, so that they allow incoming requests from ... | If you do not allocate an EIP for your instance, the public address assigned to the instance will change if the instance is stopped then restarted. There is no charge for EIP allocations as long as what you allocate is actively in use on a running instance (see: https://aws.amazon.com/premiumsupport/knowledge-center/el... | 0 | 1 | 766 | 2016-09-09T17:03:41.997 | database_errors | serverfault.com | |
9,564 | What is docker? what problems does it solve? | I'm a jr. developer and I'm being required to learn docker. I googled around and read a bunch of articles about docker but couldn't really understand what it was for, what problem does it solve. Example about GIT. When I was at university when we had our thesis, my groupmates and I use facebook messenger or email to pa... | Docker is a technology that allows you to create OS-level virtualization for software delivery. There are many , many articles written about what this technology is, how it can help developers and companies, and tutorials on how to get started . To answer your question of why as a developer you may care (non-exhaustive... | 2 | 0 | 251 | 2019-10-24T15:27:14.233 | pipeline_ops | devops.stackexchange.com | |
507,510 | Why does Windows have such a loose processor affinity | A while back, I did some playing around with new Win2008 virtual machine and found some serious concerns. The server is Dell T610. 16gig, 4 core, 8 logical, 2.4ghz Xeon, 5600 series. ESXi 4.1.0 The guest is 2008 64bit, with 2vCPU's I've been testing CPU performance using 7Zip on a 400meg file. Our server requirements h... | "Therefore, for primarily single (or limited) thread applications, it is sometimes best to set the CPU affinity to a specific core, or subset of cores. This will allow the 'Turbo' processor frequency scaling to kick in and be sustained (instead of skipping around to various cores that may not be scaled up, and could ev... | 0 | 1 | 326 | 2013-05-14T03:25:57.680 | infrastructure | serverfault.com | |
286,911 | grub rescue prompt | Had win7 and ubuntu installed on laptop and inadvertently selected the recovery option in boot menu - exited and now all I get is error: no such partition grub rescue> set returns: [CODE] ls returns: [CODE] 'normal' not available and I dearly love to not have to stick my oem recovery disc in any other info I can give p... | If you still have your Ubuntu (and hopefully it is the live disk), boot off that. Browse through the file systems on both your Windows and Linux partitions. If you can get to both, you're fine; you just need to reinstall grub. Just remember a couple of things: In linux, partition numbers start at 1 and disk starts with... | 1 | 1 | 1,091 | 2011-07-04T20:11:25.307 | infrastructure | serverfault.com | |
735,496 | Redirection loop when enabling Virtualhost HTTPS to HTTPS redirection | I am using Apache sites to redirect HTTPS subdomain to other HTTPS subdomain but when I enable it I get a Redirection loop on the browser. The initial situation is the following: https://example1.domain.com and https://example2.domain.com shows the same content. The VirtualHost configuration is the following: [CODE] Th... | Change ServerAlias example2.domain.com to ServerName example2.domain.com It's not an alias there technically. I don't use Apache much anymore but it seems like because you told it it was an Alias, it keeps looking for a ServerName, hence the redirect loop. | 0 | 0 | 92 | 2015-11-11T09:38:54.743 | infrastructure | serverfault.com | |
540,293 | Using case statements with notify in Puppet | [CODE] Why does this run without error, but not display either notify (on a server where the operatingsystem fact == CentOS)? I am running this as a standalone script using puppet apply os-check.pp and just see the catalog run notify. | In addition to Craig's excellent answer, you need to: include mymodule::scripts::os_check Edit: Otherwise, you are just defining a class, not instantiating it. | 0 | 1 | 4,326 | 2013-09-19T19:43:47.287 | pipeline_ops | serverfault.com | |
121,955 | .VBS scripts have stopped running... No idea why! | We have two .vbs scripts that are run by our Task Scheduler that have suddenly stopped working for no reason we can fathom. We haven't significantly altered our system configuration in the last 24 hours, and the scripts have run without a hitch for months. According to the Task Scheduler the scripts just keep running a... | What is it trying to send to? the xml.send method is used to make a http/https request. The error indicates it can no longer make the request. Perhaps the server is down or something has been changed. Try and open up a web browser and manually connect to the server the script is trying to access. | 1 | 2 | 2,205 | 2010-03-12T17:28:08.090 | infrastructure | serverfault.com | |
131,975 | Using gmail as your primary mail server | I have read that there is an option of using Gmail as your primary mail server. In the sense that you can add mx records etc and you do not have to do it on your own server. Do you think this is a recommended setup in terms of security. Will Gmail do the fight against virusses, spam, and brute force attacks for you? [U... | We use it here, and I really like it. I just don't have to think about e-mail anymore — I can't think of any higher praise than that. That said, the switch was made before I started here, and so I have none of the political pressure that comes from such a move and didn't have to deal with any of the conversion issues. ... | 10 | 6 | 1,843 | 2010-04-13T15:09:04.053 | infrastructure | serverfault.com | |
82,474 | Store the resulting list of a SELECT in a variable to count AND use the result | I have stored procedure that uses a cursor and for every fetch a duplicate [CODE] , once to determine the number of IDs found ( [CODE] ) and if the [CODE] is bigger then a specified value, an [CODE] is issued for another Table [CODE] the above IDs are used ( [CODE] ).. The idea is to have the [CODE] stored in a variabl... | If you want to put a query result in a table variable and iterate through the rows that can be easily done. Be careful with your loops of course. [CODE] | 4 | 5 | 52,000 | 2014-11-12T13:49:44.793 | database_errors | dba.stackexchange.com | |
130,973 | Move a Database that is in restore mode | I have a database which is the recipient of a logshipping process. The database is in 'restoring'. Is it possible to move this database? EDIT Just to clarify what I meant by move. I mean to make a copy of the database and transfer it to another server without breaking the logshipping process. The reason for this is to ... | Never actually tried it, but this describes the method I would think would work. It depends on it NOT being in Standby mode (i.e. if you can connect to the recipient right now with read access, you'll need to fiddle with it to change it to Norecovery mode) This is also assuming that "move" means move to another drive/d... | 4 | 1 | 2,401 | 2010-04-09T15:17:59.333 | database_errors | serverfault.com | |
40,663 | Simple query not using indexes | My query is not using indexes. It is a simple query. Can someone explain why that's the case? The query: [CODE] Explain Plan: [CODE] Table: [CODE] | As far as I can tell, your query is using an index, the one that backs your primary key. Look at the EXPLAIN Output Format documentation for the "join type" column. The second bullet point for the [CODE] join type is what your select is using: A full table scan is performed using reads from the index to look up data ro... | 1 | 1 | 56 | 2013-04-23T08:09:11.970 | warehouse_errors | dba.stackexchange.com | |
176,756 | how to check who has killed the job which was running ?if logs are not generated | Unspecified error occurred on SQL Server. Connection may have been terminated by the server. This is error I am getting.(when the job is executed) [SQLSTATE HY000] (Error 0) Cannot continue the execution because the session is in the kill state. [SQLSTATE HY000] (Error 596). The step failed. | The error log should contain some information about what session killed a particular process. Run the following statement to get the hostname and process id of the user the [CODE] command originated from. [CODE] Note that if any time has gone by since the command was run, this may return stale results as session ids ar... | 3 | 6 | 23,826 | 2017-06-20T12:13:18.900 | database_errors | dba.stackexchange.com | |
121,114 | Deleting part of saved XGBoost-Model (JSON) and reloading it | I am training an XGBoost-model on part of the ForestCover-Dataset. Then I save the trained model to json. Now I load the model and "update" the saved model with the data, that I previously omitted in training, using the "xgb_model" parameter of the train-method. I also save this "updated model" to json. What XGBoost do... | In case anyone stumbles across a similar issue: The parameter "num_trees" is stored as a string not an integer. I updated it as integer, which caused the problem. | 1 | 1 | 172 | 2023-04-24T10:36:22.920 | data_quality | datascience.stackexchange.com | |
876,089 | TLS for spesific relayhost on postfix | i want to implement advance content filtering in postfix using python. I have figured it out the implementation from http://www.postfix.org/FILTER_README.html . but there is another problem, after the filtering from python script i need to relay to amazon ses that need to use TLS. The problem is that if i config postfi... | After some searching on google i find a way. even though not as intended for some specific relay host. Its using config in postfix so the postfix not required to using ssl. The configuration is in main.cf using this following line : [CODE] | 0 | 2 | 4,248 | 2017-09-29T07:36:34.397 | infrastructure | serverfault.com | |
1,115,875 | rsync Delete only Matching files | How can I use rsync (or another program) to delete identical files between directories? To be identical, location and metadata should match (permissions, ownership, timestamp) For example, I backup dir X to Y. After time, there are files added and removed in X. I want to remove from X all files/directories that match i... | [CODE] Warning- This solution compares files using the output of [CODE] , so it compares metadata date+time+owner+permissions+filename, and does not compare bytes within the files. Also it is not safe for files with newlines in their name. | 1 | 1 | 155 | 2022-11-16T19:12:50.547 | database_errors | serverfault.com | |
622,725 | azure website restart and take old dll version | One of my site is hosted on windows azure and when azure restart site from manage windows azure panel. then it take old version dll and site is down until we restart the site by deploying global.asax or change in web.config to restart the site. after deployment of global.asax or change in web.config site is restart and... | I believe this is acting as designed with how .Net works. The same thing happens in IIS if you upload a DLL and then stop, start, or restart the site it will not recompile and is running out of cache because it's all compiled into memory at first launch. It doesn't reference those DLL files again until a new compile is... | 2 | 0 | 938 | 2014-08-20T11:59:54.990 | pipeline_ops | serverfault.com | |
155,404 | What is a user-friendly solution to editing email templates with replacement variables? | I'm working on a system where we rely a lot of "admins / managers" emailing users from the database. One of the key features is being able to email several people at the same time, with specific information relevant to each of them. Another key feature is to be able to hand-craft emails, because it tends to be be neces... | By request from the comments in ChrisF's answer, here's one solution I've used in the past: Use a WinForms RichTextBox to allow the user to edit the text of the template. Allow drag / drop (or other inserting) of variables or placeholders into the RichTextBox. Disallow editing of the variables themselves by checking ar... | 9 | 3 | 588 | 2012-07-03T09:15:10.897 | database_errors | softwareengineering.stackexchange.com | |
218,678 | mysql with DRBD on rackspace | I am trying to set up a failover secondary MySQL server that is a mirror of my primary MySQL server using DRBD. The problem is that I am on a rackspace cloud server and I need a second partition on both the primary and secondary servers that I will replicate with DRBD. Rackspace does not allow me to create a second par... | Coincidently there is a blog post related to doing this by a Rackspace employee: http://rackerhacker.com/redundant-cloud-hosting-configuration-guide/setting-up-a-redundant-database-and-caching-layer/ | 0 | 3 | 761 | 2011-01-04T19:20:51.947 | database_errors | serverfault.com | |
679,419 | how to attach (mount) VHD which is currently used by Hyper-V VM to the host? | I want to be able to read data from the Hyper-V VMs on the host. I understand I can go to DISM and attach VHD there - but it requires a VM to be offline - otherwise I get the following error: Virtual Disk Manager The process cannot access the file because it is being used by another process. Are there any ways to achie... | If your goal is backups, then you should be using Hyper-V aware backup software (something that uses the Hyper-V VSS writer). While the VM is running, the .vhd/.vhdx file is locked. If you want to backup files within the VM, then use any backup software you like that will backup flat files/sql/exchange/whatever. It sou... | 0 | 2 | 2,541 | 2015-03-30T20:46:06.573 | database_errors | serverfault.com | |
892,319 | PERC, Caching with SSDs | We have a few servers with PERC H710s, we're moving to SSDs and I wonder, is caching needed given that we're not using spinning disks? Our general setup is as follows 2 X 2TB SSD in RAID 1 Read Policy: No Read Ahead. Write Policy: Write Through Disk Cache Policy: Disabled Is there any benefit to having caching enabled?... | Is there any benefit to having caching enabled? Yes, there is still a potential for performance benefit with the on-controller caching. SSDs do perform significantly faster than spindle drives, but the transfer speed in and out of controller cache is still significantly faster. There's also a potential for reducing the... | 3 | 3 | 6,814 | 2018-01-15T21:05:44.280 | infrastructure | serverfault.com | |
119,650 | Unique code based on category - a sort of auto_increment | I have to create a unique code to every user registering. The thing is that the unique code needs to be generated based on which city the user is from. So the tables I have are: [CODE] [CODE] is for unique identification of users in DB. [CODE] is the readable code generated for the use of users. They access their accou... | Assuming you are using an ACID compliant engine (i.e. InnoDB) the "get max, add one, then insert" method should work if wrapped in a transaction. I would query the requirement for the user code to be a specific item though given you have a user ID which is presumably an auto-incrementing integer. If there is no need fo... | 0 | 1 | 241 | 2015-10-30T11:01:08.447 | spark_errors | dba.stackexchange.com | |
330,094 | Simultaneous INSERTs which lock the target table inside a before-insert trigger result in a deadlock | I'm working on a web application which uses a PostgreSQL database for storage. There are many logical entities in this application which are related to each other like [CODE] (the hotels example used throughout the question is purely hypothetical). Each table stores the IDs of all its parents in the hierarchy together ... | After some more experimenting I've found the source of the problem - lock being acquired during trigger execution. I don't know what's the reason here but, apparently, this leads to conflicts between whatever operations the database is executing during those simultaneous transactions. Therefore, executing [CODE] before... | 0 | 0 | 53 | 2023-08-09T12:34:53.193 | database_errors | dba.stackexchange.com | |
119,168 | Is "White-Board-Coding" inappropriate during interviews? | This is a somewhat subjective quesiton but I'd love to hear feedback/opinions from either interviewers/interviewees on the topic. We split our technical interview into 4 parts. Write Code, Read & Analyse Code, Design Session & Code on the white board. For the last part what we ask interviewees to do is write a small co... | In my view, It is very appropriate. If you are wanting a job to do a particular skill, then it is entirely appropriate to be expected to demonstrate that skill at interview. The effect of this technique on the recruitment process is very noticeable. 90% of candidates fail this task. but the developers recruited are goo... | 30 | 46 | 10,094 | 2011-11-11T09:00:09.227 | api_errors | softwareengineering.stackexchange.com | |
35,585 | Name for exploratory "role play" testing? | Our company produces a business-to-business software which is (more or less) a social network for companies. Every now and then, we organize some kind of "Role Play session" for testing the software. One or two developers (sometimes even sales people) act as one company, giving their company a name, a logo and so on, a... | I think this is commonly referred to as Persona Based Testing This exists for both manual role-playing (as you refer to) and is also a useful tool for writing automated tests to help get the test writer in the right frame of mind. It helps to create software when, instead of saying "user updated profile", we say "Mary,... | 7 | 9 | 253 | 2018-09-11T10:35:32.767 | data_quality | sqa.stackexchange.com | |
328,309 | How to detect real time change in API response | I have an API endpoint written for version and health of tomcat applications. It returns a json response with details. I wanted to know, how can i monitor any change in the json response in real time. I am building a dashboard on top of the endpoints. I will be using django channels consumers to consume events in real ... | You can't push information from the end point itself. But since you control the deployment process you can add a push interface as part of the deployment. For example. Add a second interface which you can connect to with a push methodology such as long polling, queues or nservicebus. Have your clients connect to this i... | 1 | 2 | 2,687 | 2016-08-13T07:21:43.390 | pipeline_ops | softwareengineering.stackexchange.com | |
342,263 | Should every method return a value for Unit Testing? | I am learning to create simple Unit tests to eventually (and hopefully) start to do only TDD; for now I am trying to write tests for code already written to see what might cause problems. This is one of them. Let's say I have this simple class (with Typescript-> Javascript): [CODE] And I use it in this way: [CODE] [COD... | I guess your misconception here is that a "subject under test" must be always a method on its own. But that is not true, though some methods can be tested without using any other methods, the typical size of a SUT is a class, or some interacting methods and functions of one class. So if you have a method which changes ... | 13 | 24 | 24,294 | 2017-02-14T21:16:19.433 | api_errors | softwareengineering.stackexchange.com | |
559,875 | Can I implement network redundancy just with static routing tables? | I have a Windows 2003 server which is connected to a router at 192.168.15.1 via 192.168.15.10. I also have a linux server connected to that same router via 192.168.15.90. And I have a direct connection between those two machines via 192.168.15.11 and 192.168.15.91 respectivly. I'm trying to set up the network configura... | Where to begin ... You have not told us the netmask - I assume these all on the same /24? If so, routing has absolutely nothing to do with this. These machines are all on the same subnet so there will be no routing. I assume you have two NICs in each server? And I also assume you are trying to connect by IP? If so, the... | -2 | 3 | 886 | 2013-12-07T18:43:34.320 | infrastructure | serverfault.com | |
693,970 | Linkstation WXL: RAID disappeared, /dev/md2 is inactive - how to troubleshoot | today I had problems accessing the SMB-share on my Linkstation. My NAS has two hard drive disks, configured as raid0. this raid was mounted to /mnt/array1/intern - the folder that i am missing. My first problem is, I really dont know, where to look for some error reporting. Lets start with /var/log/messages, its says: ... | You have two drives joined in a raid0 stripe. One drive /dev/sda and raid partition /dev/sda6 looks fine. What happened to the second drive? I suspect the second drive is damaged. Does it show up if you run... fdisk -l | 1 | 0 | 710 | 2015-05-23T09:40:28.880 | infrastructure | serverfault.com | |
765,500 | How to open firewall to access azure file storage | We are going to use robocopy to keep a stack of encrypted files synced to an azure file share. But what do we need to open on the firewall to let the backup server get to an azure storage file share? (This will be an SMB3 connection from Win2012-R2 to azure storage) a) Open port 445 b) But what IP addresses? Our storag... | The only workable path is to enable firewall to work with domains, and to then open it to: my-sharename.file.core.windows.net (For the appro share name / storage entity) | 0 | 2 | 16,633 | 2016-03-23T03:36:24.077 | database_errors | serverfault.com | |
8,374 | SQL Server Max Memory not limiting use of RAM | I would like your input on this. I have a sql server 2008r2 Ent. Ed. 64bit with 16 cores and 64GB RAM. There is one instance of SQL server patched fully as of 20111014. The max ram is set to 60000MB. Amount of free ram is 0 according to task manager after a few days online. If I change the max ram to below 53GB it will... | SQL Servers max memory setting defines the limits for buffer pool usage only. There will be variable but significant allocations required over and above that limit. Jonathan Kehayias's , Christian Bolton and John Samson have level 300/400 posts on the topic. Brent Ozar has an easier to read article that might be a bett... | 19 | 21 | 23,072 | 2011-11-24T15:05:01.973 | api_errors | dba.stackexchange.com | |
239,106 | Public Folder Auto Replies only go to internal users | I am currently running windows 2003 RC2, with Exchange 2003 I've setup a public folder, and it can receive internal and external mails with no problem. I've used the folder assistant to create a reply template, one that I wish to fire for every message it receives. When I test an internal message, (via outlook) it's de... | Automatic replies to the internet (including Out of Office) are off by default in Exch 2003. I think this setting applies to your situation too. To enable them, try this . | 0 | 0 | 230 | 2011-02-23T11:20:52.360 | infrastructure | serverfault.com | |
459 | How to avoid a regular user can only test in production? | When configuring test environments, the issue often comes up where I ask the question to the customer like in my question title here: How to avoid a regular user can only test in production? There are typically the environments like unit test, system test, integration test, volume test, user acceptance test, etc (I bet... | A Sandbox could be part of the solution To bring material to the subject you can check the questions with tag sandbox on MetaSE , there are sanboxes for: Q/A formatting. Comments formatting. Chat. There's a feature request about " Can we get a Stack Exchange sandbox? " which has no status (neither declined, pending, re... | 6 | 6 | 1,010 | 2017-03-10T08:24:40.710 | pipeline_ops | devops.stackexchange.com | |
269,293 | Is there any performance difference between UNIQUE INDEX and INDEX with the same cardinality on MySQL? | I have a table that has [CODE] and [CODE] . [CODE] [CODE] is [CODE] , and [CODE] is [CODE] . I want to know if there's any performance improvement if I convert the [CODE] index from [CODE] to [CODE] . | There will be no difference for read operations, once written the entries in the index will be the same. In theory there is a slight difference in update performance as the engine needs to enforce uniqueness in a unique index, but in reality this is one going to be at most a few CPU cycles per row difference so will be... | 3 | 3 | 8,763 | 2020-06-16T23:05:15.623 | database_errors | dba.stackexchange.com | |
287,150 | Is this an excessively large 'Lock' time and is it indicative of a problem? | Given: Production environment Application Servers using Hibernate SQL Server Studio Manager v17.5 SQL Server 2016 in a clustered HAG setup SQL Servers do NOT have the Query Store feature enabled The author of this question is a software engineer with enough SQL Server knowledge to be categorized as mostly harmless upda... | So the elephant in the room. Is that wait time excessive? The lock waits from the screenshot show 18,024,389 ms / sec as the recent (average) wait time over the last couple of minutes. That means for every second of "wall clock time," there are 18,000 seconds (5 hours?!) of lock waits accumulated by queries. That's so ... | 0 | 1 | 863 | 2021-03-16T20:31:43.077 | database_errors | dba.stackexchange.com | |
185,928 | Firebird 3.0 service won't start on Windows 7 | I have Firebird 2.5 classic server running on Windows 7 on port 3059. This service is set to automatically start up and it works fine. I've installed Firebird 3.0.2 as classic server on port 3050 but service won't automatically start. I can start it manually but I really need it to start automatically. Error 1053: "The... | This could be that your system just has too much going on at initial boot or maybe the 3.0.2 service shares some resources with the 2.5 service and is running into a timeout that clears itself by the time you are able to manually start the service. Honestly, I don't know enough about Firebird Database to know for sure,... | 2 | 3 | 1,722 | 2017-09-14T07:37:10.220 | warehouse_errors | dba.stackexchange.com | |
116,909 | Insert into specific table if the user session group | I am trying to insert data into specific table by user session and group. The tables are [CODE] , [CODE] , [CODE] . Structure of table "users": [CODE] Structure of table "workers" and "help": [CODE] I finished login with session pages and include session onto every page. So when the user login it check and display from... | This look s like a job for Dynamic SQL For this example, let's use [CODE] STEP 01 : Look up the [CODE] of the [CODE] [CODE] STEP 02 : Create the SQL string to insert based on the [CODE] of [CODE] [CODE] STEP 03 : Compile and Execute the SQL [CODE] or in your case, just use the formatted SQL in PHP | 1 | 1 | 2,560 | 2015-10-03T22:07:46.143 | warehouse_errors | dba.stackexchange.com | |
179,761 | Alternative to Temporary Table with Create View - MySQL | I have a view which uses many tables, and statements and functions. It is very slow, the main reason being that I only have read-only access to the main tables which do not have the appropriate indexes, so joins evaluate very slowly. Following some advice I have broken the joins down using temporary tables, to ensure t... | View is just an alias to the query that allow you to use its result in other queries in terms of tables not subqueries. But each time you refer to the view, the query from its definition is invoked. No temporary tables created when view is defined. Therefore views do not improve the overall performance at all and are i... | 0 | 0 | 11,258 | 2017-07-13T13:09:54.987 | database_errors | dba.stackexchange.com | |
174,505 | Where's my ASP.NET 4.0 | I have installed .NET 4.0 to a Windows Server 2008. I have run aspnet_regiis -i. But with my new site on IIS7 I can't seem to select v4.0 as the framework. I see 2 new app pools ASP.NET 4.0 and Classic 4.0 but surely all apps don't share the same v4.0 app pool right? What am I missing? | Is the server x64? In this case, you should run [CODE] from the [CODE] folder, not from [CODE] . | 0 | 4 | 1,218 | 2010-08-25T18:32:41.313 | infrastructure | serverfault.com | |
347,874 | Connection refused. Why can't I send email from one server but I can from another? | I'm trying to send email from PHP using [CODE] . I have complete access to both servers. No unusual [CODE] rules on either (nothing blocking a default install of [CODE] ) I installed [CODE] on the one server a couple of years ago (Ubuntu 10.10) and that sends mail from PHP just fine. The new server (Ubuntu 10.04, set u... | Solved! It turned out that the hosting provider had some trial account blocks in place to stop abuse. Apparently these would normally be lifted once new customers go through authentication (which I've done) but they weren't. Thankfully they have now been and I can send email perfectly. So the lesson here: don't assume ... | 4 | 2 | 9,380 | 2012-01-08T21:35:48.890 | api_errors | serverfault.com | |
388,914 | How do I remove a rootkit without an anti-rootkit program? | Possible Duplicate: My server's been hacked EMERGENCY Windows 2000 Server. I believe I have a rootkit. But, nothing will remove it. I've tried everything. Even tools that are merely for scanning fail or bsod the computer. Since nothing works, I wanted to try and do it manually. edit: This is a Windows 2000 Server Fores... | I'd strongly advise to rebuild your server. if the server has been root-compromised how can you assure integrity of all of its parts even if you THINK you've removed the compromised part ? it's easier and saves the time and hassle - rebuild and restore from backups | -3 | 7 | 241 | 2012-05-14T14:45:14.853 | data_quality | serverfault.com | |
121,619 | Dropping unused indexes - Assessing the unexpected dangers | We have a very large database with hundreds of unused indexes according to DMV statistics, which have been accumulating since the server was last rebooted in July. One of our DBAs made the following cautionary statements, which don't make sense to me: Before we drop an index we need to make sure if it not enforcing a u... | Your DBA's concerns are both valid. Regarding #1, it seems to me that SQL Server would actually do a seek on the index to determine uniqueness before an insert / update is done, and therefore, the index wouldn't show as being not used. The uniqueness guarantee may be used by the optimizer in deciding which logical tran... | 16 | 18 | 991 | 2015-11-19T20:20:38.603 | database_errors | dba.stackexchange.com | |
128,648 | Does using new techniques hurt productivity? | It seems that as experience with the specific set of tools you have to work with grows, the incentive to try out new things weakens. When I was new at this programming job, trying out new things, researching online, made me more productive, because I often found a way (or library) that made the task easier that the cod... | It's often risky to try new things. We sometimes get into trouble because we tend to do two things: Overestimate how useful the cool/new/snazzy thing is. We see some cool example, some code thrown online. Very cool we think. Very cool! In X I can do task Y ten times faster. Its clearly superior. We don't yet see all th... | 19 | 17 | 858 | 2012-01-05T18:46:19.037 | api_errors | softwareengineering.stackexchange.com | |
161,045 | Does latin1 have performance benefits over utf8? | I have a table in [CODE] with > 80M records and one of the columns ( [CODE] ) can contain just latin symbols ( [CODE] ). Does it have the sense to convert this column into latin1? MySQL doc says: To save space with UTF-8, use VARCHAR instead of CHAR. Otherwise, MySQL must reserve three bytes for each character in a CHA... | Short answer: Don't bother. Long answer: https://bugs.mysql.com/bug.php?id=84440 -- you may or may not save space. InnoDB is inherently bigger than MyISAM. Comparing characters in utf8 is slightly slower than in latin1. But you will probably not notice. The tiny difference between 1741668352 abd 1810874368 is probably ... | 10 | 5 | 6,869 | 2017-01-14T00:07:32.703 | database_errors | dba.stackexchange.com | |
86,490 | formail -I "From " what does this do exactly? | the Topic itself asks the Question. What does [CODE] exactly? Does it simply remove all duplicate Froms? The Manpage is a little bit unclear to me. | Removes all the "From " headers from the message. The "From " line is the delimiter for a unix mailbox. Notice, it doesn't contain a ":" like the "From:" header Essentially UNIX mbox format keeps all your mails in one file. This is the polar opposite to something like Maildir which treats every mail as a separate file.... | 0 | 2 | 1,708 | 2009-11-19T22:23:47.760 | data_quality | serverfault.com | |
164,886 | Simple vs Complex (but performance efficient) solution - which one to choose and when? | I have been programming for a couple of years and have often found myself at a dilemma. There are two solutions - one is simple one i.e. simple approach, easier to understand and maintain. It involves some redundancy, some extra work (extra IO, extra processing) and therefore is not the most optimal solution. but other... | Which solution should I strive for when I do not have hard performance SLA to meet and even the simple solution can meet the performance SLA? The simple one. It meets spec, it's easier to understand, it's easier to maintain, and it's probably a whole lot less buggy. What you are doing in advocating the performance effi... | 30 | 58 | 5,822 | 2012-09-14T13:55:19.540 | data_quality | softwareengineering.stackexchange.com | |
1,060,887 | Nginx + Gunicorn + Flask not serving static files | I am new to Nginx and Gunicorn.... I am trying to serve flask app on certain prefix.... ex: https://myweb.com/flask/prefix/ everything works fine except it is not loading static files...... my nginx site configuration looks like below [CODE] when I checked the network section by using Firefox developer tool I found tha... | I found solution at last.... sharing here so that it helps someone.... In your wsgi.py file.... [CODE] with this it should work... I referred solution from here.. | -1 | 0 | 2,257 | 2021-04-19T23:50:26.773 | infrastructure | serverfault.com | |
5,059 | FBI on function with concatenated string | I have an index in place (from days of old) that I'm curious about. It's on a basic person table and the function is [CODE] When trying to search on this index, I wind up with a full table scan. Any idea why? And if this is just completely broken like I think it is, would you suggest a column index on these four column... | Are the columns nullable ? is the query a LIKE ? Is there an NLS issue ? I'd expect a [CODE] to use a index range scan [CODE] may use a index fast full scan or a table scan depending on whether columns from the table were likely to be required. If it thinks 1 in 5 rows will match and that for each of those it needs a c... | 0 | 5 | 1,247 | 2011-08-25T21:54:49.857 | warehouse_errors | dba.stackexchange.com | |
184,951 | memory errors on startup in postgresql 9.6 log - MAP_HUGETLB failed | On postgresql startup, I see this in the log files 2017-07-17 05:21:01.743 UTC > LOCATION: CreateAnonymousSegment, pg_shmem.c:484 2017-07-17 05:21:01.868 UTC > LOG: 00000: redirecting log output to logging collector process 2017-07-17 05:21:01.868 UTC > HINT: Future log output will appear in directory "pg_log". 2017-07... | Met the same issue when deploying postgre-sql by postgres-operator ( https://github.com/zalando/postgres-operator ) in Kubernetes. The size of required shared memory usage by postgre-sql is based on shared_buffers and max_connections. While, the shared_buffers configured by patroni is calculated based on the size of ph... | 3 | 3 | 3,369 | 2017-09-01T23:52:47.320 | database_errors | dba.stackexchange.com | |
220,937 | How do I approach a serious F# project without C# knowledge? | So, essentially the project I wish to undertake is an SVG editor. I would prefer to use WPF because then I can leverage XAML for my application layout (that designer is so nifty). Unfortunately, I have only been using the .NET framework for just a few months, and am still unfamiliar with most of the class names. The go... | Break the problem into two parts. Learn the basics of F# by excluding the use of WPF. Learn how to write functions without using [CODE] and [CODE] and using [CODE] . Once you have this done learn how to make use of mutables to update state. Learn how to use WPF in F# by reading Learning WPF through F#, and vice versa ,... | 10 | 11 | 3,532 | 2013-12-10T18:54:03.077 | api_errors | softwareengineering.stackexchange.com | |
259,753 | How to find admin user of pluggable database in Oracle 12c up | I'm creating a script and I need to know what is the admin user of pluggable database. I don't find nothing about it in documentation. Other question is, what happen if I drop a admin user of the pluggable database? is there some problem? | CREATE PLUGGABLE DATABASE ADMIN USER Use this clause to create an administrative user who can be granted the privileges required to perform administrative tasks on the PDB. For admin_user_name, specify name of the user to be created. Use the IDENTIFIED BY clause to specify the password for admin_user_name. Oracle Datab... | 0 | 2 | 8,105 | 2020-02-15T07:02:03.590 | database_errors | dba.stackexchange.com | |
297,696 | Multi inheritance in Java | Let's say I've got a generic java class [CODE] which receives an input object and transforms it to an output object. Now I've got two other classes ( [CODE] , [CODE] ) which should do the same except they haven't an [CODE] respectively an [CODE] . Now the three classes have some functionality in common. The [CODE] clas... | First of all, Java 8 introduced Default Methods , which is in fact multi-inheritance in Java. History showed that complicated inheritance structure is cancer. You should favor composition over inheritance . In this case you are mixing input filter with output filter to create artificial bi-directional filter parent. No... | 0 | 0 | 2,260 | 2015-09-19T18:36:36.323 | data_quality | softwareengineering.stackexchange.com | |
442,377 | How do I configure apache to accept a client ssl certificate (if present) or authenticate using ldap (if the cert is absent)? | I have an Apache server that serves up mercurial repositories and it currently authenticates using ldap credentials. I want to permit a single user (to start with) to use a SSL client certificate, with all remaining users still able to use the ldap credentials authentication method. I have looked through Stack Overflow... | This is somewhat of a guess (I don't have any easy way to try this) but perhaps some combination of [CODE] and [CODE] will see you through? | 6 | 1 | 15,052 | 2012-10-24T18:15:28.913 | api_errors | serverfault.com | |
419,328 | Does server farm change the design of the server program? | In The Linux Programming Interface Sec 60.4, it talks about design a server that handles multiple requests using multiple processes or threads, or pools of processes or threads. Then it discusses another approach "server farm": Other approaches to handling high client loads involve the use of multiple server systems—a ... | is it correct that all machines in the farm run the same server program? Yes, that is correct is the server program still designed in the same way as a standalone server program: handle multiple requests concurrently (using methods such as multiple processes/threads or pools of processes/threads)? or does server farm c... | -4 | 2 | 135 | 2020-11-25T00:37:13.257 | api_errors | softwareengineering.stackexchange.com | |
93,801 | Training a model purely on weak labels | I have read a couple of papers now use rules-based system to create weak labels and then train a BERT-based model only using these weak labels. Both studies have reported better performances on manually labelled gold-standard test data. However, I just don't follow the logic here. I understand distant supervision and a... | Based on a quick read of the paper linked in the comment: I just don't understand if your model (BERT or not) is only trained on these weak labels then you are treating them as "ground-truth", Correct, but only for the training: the model is trained to recognize the labels obtained with a "quick and dirty" method. and ... | 3 | 2 | 238 | 2021-05-01T02:15:05.387 | data_quality | datascience.stackexchange.com | |
795,568 | Merged, shared calendar in Exchange / Outlook | I've got a client suffering from XY problem. They keep trying to create a calendar for a fake user, and dumping information on that calendar to publish it to the rest of the company. What they really want is some sort of a report that all users can see, which will tell them who is free, who is busy, who is on vacation,... | in outlook if you open other users calendar you just tick a checkbox for all other open calendars so the calendars are shown overlaid you can set all users calendars settings to show all info for other users except private events from the exchange powershell by running this script https://gallery.technet.microsoft.com/... | 0 | 0 | 286 | 2016-08-08T15:57:42.570 | infrastructure | serverfault.com | |
630,024 | PHP 5.5 on Ubuntu with php-mcrypt: Unmet dependencies | I have an ubuntu server running with PHP 5.5 [CODE] I´m trying to install [CODE] now, but i get following error message: [CODE] I understand, that somehow the mcrypt package is not compatible with my current PHP version, but how can I fix this? Thanks! | What version of ubuntu are you running ? phpapi-20090626 is very old to be used with php-5.5.3. May be check your version of phpize as well. Did you install php-5.5.3 from source or something ? | 1 | 0 | 358 | 2014-09-20T14:01:02.050 | infrastructure | serverfault.com | |
236,828 | Issue with query, likely foreign keys | I'm setting up 3 Mysql create table queries below. The 3rd one works, the first 2 fail and throw this message: The plugin generated 132 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plu... | Spurious spaces: [CODE] need parens: [CODE] | -2 | 2 | 31 | 2019-04-27T01:50:30.643 | database_errors | dba.stackexchange.com | |
6,386 | Running automated tests for Unity apps on iOS/Android devices? | I want to run automated tests for a game that I am developing with Unity . It runs on iOS and Android devices. As a first step we would like to Launch the game on device type X If the game loaded on the device within some timeout without crashing: Pass the test Otherwise Fail the test I want to run those tests on all d... | For iOS I would like to suggest Test Studio which is an existing tool. You can download this app from AppStore and integrate its extension in your app. Once its done then you can run your app from the Test Studio and can record your script for the app. This script can be shared with different iOS devices using their we... | 4 | 1 | 2,316 | 2013-07-10T01:21:51.053 | data_quality | sqa.stackexchange.com | |
1,151,763 | Use Ansible vault password to encrypt zip file | I have been given an Ansible playbook that aims to password protect a zip file. (Part of) the playbook looks like this: [CODE] So they are trying to pass the vault password to the zip command for the -P option. This does not seem to work. When running the playbook, I get: [CODE] As far as I understand Ansible vault thi... | Ansible has various ways to provide the vault password. files - can be protected by filesystem permissions scripts - can access other vaults, decode/decrypt the vault password stored somewhere else But all boil down to the same problem, at some point you need to provide something to decrypt the password, which makes it... | 0 | 1 | 67 | 2024-01-18T07:46:06.577 | pipeline_ops | serverfault.com | |
563,264 | Backups through distributed filesystems | I hope I can articulate my question as precise as possible. I am seeking for a way to make backups for my vm-servers as soon and frequent as possible as the data they are handling/producing are valuable. I have a KVM-Host and at least 2 Guests: Webserver (Apache/PHP) and Database server (MySQL/Solr). I don't care much ... | A distributed file system is not a backup, it's redundancy. It'll 'backup' your accidental deletions as well. That said, DRBD . | 0 | 8 | 192 | 2013-12-23T22:37:58.730 | database_errors | serverfault.com | |
816,512 | How to impose two conditions at once for Apache CustomLog? | I currently have separate access logs for static and dynamic pages. My httpd.conf has (inside ): [CODE] I would like to complement it with [CODE] , but cannot find an example of using CustomLog expr= parameter and cannot guess a working expression: [CODE] produces syntax error, unexpected T_OP_OR | The [CODE] function must be compared against something, you cannot just check for the environment variable to be set or not as your code tries to. I admit the error message is not particularly enlightening :-) The following should work for you: [CODE] | 5 | 8 | 4,804 | 2016-11-23T06:52:22.033 | infrastructure | serverfault.com | |
94,649 | Dealing with historic data drift | I'm trying to predict a continuous target in an industrial context. The problem I'm facing is that the some of the predictors have changed over time, for example the pressure in the machine was increased. This influenced some of the other predictors, but hasn't influenced my target. As an example (in R formula notation... | Based on your post (my emphasis): The problem I'm facing is that the some of the predictors have changed over time, for example the pressure in the machine was increased. This influenced some of the other predictors, but hasn't influenced my target . So to be clear, the input parameters changed but made no impact on th... | 2 | 1 | 74 | 2021-05-19T13:18:17.950 | data_quality | datascience.stackexchange.com | |
197,203 | Count total number of nested one to many relationships | Tables: [CODE] , [CODE] , [CODE] Users can have many costs. Costs can have many payments I want to get information about the user AND count of all payments that they made This query returns result but takes very long time to run [CODE] I tried outer joins but then it return duplicate if user has more than one cost Inne... | Let me know if this covers your desired result. [CODE] 13 rows affected [CODE] user_id | num_payments ------: | -----------: 1 | 5 2 | 2 [CODE] user_id | name | num_payments ------: | :---- | -----------: 1 | john | 5 2 | anne | 2 3 | peter | 0 dbfiddle here Or better a left join solution: [CODE] user_id | name | num_p... | 0 | 1 | 536 | 2018-02-06T19:56:57.173 | data_quality | dba.stackexchange.com | |
266,642 | Can a process that needs 15 MB run given a machine with 10 MB of physical memory and 10 of virtual? | So there is physical and virtual memory. Let's say we have 10 MB physical and 10 MB virtual. There is also paging. As far as I get it, paging basically splits physical and virtual memory into slots of the same size. Such slots are called frames. So if we use slots of 1 MB, we will have 10 frames in physical memory and ... | The entire point of virtual memory is to be able to run processes that require more RAM than you have RAM chip in your computer. If it couldn't do that, you wouldn't be any better off than without it. As Robert Harvey has explained, the way of providing this capability is to intercept all memory accesses the process ma... | 1 | 3 | 670 | 2014-12-17T06:24:00.903 | api_errors | softwareengineering.stackexchange.com | |
398,969 | Unix printing a banner page on every print job | I have a Data General server on unix that is printing a banner page on every print. I originally thought that the banner page was comming from the printer. As this is an HP printer, I used telnet to get to the jetadmin and then proceded to disable the banner page, but this did not solve the issue. I then went into the ... | When setting up the printer under sysadm, I had to select "Remote to networked printer device" as the "Connection Type". You will now be able to disable the banner page when going through the rest of the setup options. It's important to note that I have not been able to set banner page options using any of different "C... | 0 | 1 | 748 | 2012-06-14T22:19:29.550 | infrastructure | serverfault.com | |
73,645 | How to deal with imbalanced text data | I am working on a problem where I have to classify products into multiple classes (more than one) based on product descriptions. For instance: "Tresemme shampoo and conditioner - sulfate-free" = Personal Hygiene "Lavender-scented handwash with moisturizer" = Personal Hygiene "Doritos Ranch flavor 18 oz mega party pack"... | I too am working on same problem, found these below links very useful in getting started on oversampling and under sampling- https://machinelearningmastery.com/random-oversampling-and-undersampling-for-imbalanced-classification/ https://en.wikipedia.org/wiki/Oversampling_and_undersampling_in_data_analysis | 1 | 1 | 341 | 2020-05-06T03:19:33.233 | data_quality | datascience.stackexchange.com | |
41,860 | LSTM regression bias increases when targets go close to 0 | I've build a LSTM model for time series forecasting. Results are not bad, with a mean normalized error of 7%. However, this normalized bias shows a clear pattern: The closer to 0 the value to predict, the higher the bias, as depicted in the figure below: NOTE 1 : True and Pred values are scaled in the figure for clarit... | I found a solution for the problem: scaling the features and the labels. By performing min-max scaling over the features and labels, the curves become: The error is still showing a pattern related to the target value, but the normalized error is now really low... I think this is a nice example of the benefits of normal... | 2 | 0 | 280 | 2018-11-29T16:19:01.577 | data_quality | datascience.stackexchange.com | |
1,107,318 | Kubernetes dashboard ingress HTTP error 400 | Installed Kubernetes dashboard with Helm [CODE] [CODE] Kuberetes dashboard ingress returns [CODE] Nginx ingress version 2.3.0 installed via Helm. Any help would be much appreciated. | Adding [CODE] made it to work on HTTPS via ingress, its kinda insecure but do the trick whole config : [CODE] | 0 | 0 | 1,120 | 2022-08-03T18:44:14.783 | pipeline_ops | serverfault.com | |
144,934 | Tools for Operating on Large Amounts of Text Data | I need to handle and process ~5 million news articles, an amount small enough to fit on a commodity desktop but too large to process serially. Thus far, I have been using Python/ [CODE] for serialization, but this is easily getting out of hand. However, I do not have a server much less a cluster immediately available f... | Many people speak highly of Solr . It specializes in searching large quantities of text, and should be usable from Python. I suppose you could also do something custom with Hadoop . It directly supports map reduce operations, though it might be easier to work in Java than Python with Hadoop. | 3 | 1 | 392 | 2012-04-18T02:41:14.660 | api_errors | softwareengineering.stackexchange.com | |
75,442 | Best way to add Foreign Key to massive table? | Say I have 4 tables: [CODE] (~100 million rows), [CODE] (~100 million rows), [CODE] (~30 million rows), [CODE] (small). [CODE] and [CODE] each have 2 ForeignKeys: one to [CODE] , one to [CODE] . Currently, to figure out which planes are at an airport at a certain time, I have to do a massive join between [CODE] , [CODE... | First of all, depending not just on the number of rows but also on the total size of your table (based on the average row size) , it may not be excessive to create a new Foreign Key . Especially if scheduled properly. However, it may well be too heavy a change. In that case, you could consider creating an Intersection ... | 1 | 2 | 2,177 | 2014-09-01T16:30:43.477 | warehouse_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.