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 |
|---|---|---|---|---|---|---|---|---|---|---|
384,100 | Saving MySQL databases without mysqldump | I need to back up some of my databases and migrate them over to a new server. I would use mysqldump , but the problem is that I'm having issues starting mysqld/mysql (part of the reason I'm migrating). I kept getting [CODE] Basically, I was on a media temple dv server and I used yum to try and upgrade stuff and that me... | If every table you have uses the MyISAM storage engine, then copying /var/lib/mysql is just fine. If even one tabe is InnoDB, then you must make sure you copy the following: /var/lib/mysql ibdata, ib_logfile0, ib_logfile1 (if they are not in /var/lib/mysql) /etc/my.cnf (because of the InnoDB settings) Please make sure ... | 1 | 2 | 4,017 | 2012-04-28T16:59:22.343 | database_errors | serverfault.com | |
249,151 | Good/Better config for MySQL on an EC2 Large Instance | I have an EC2 Large instance dedicated to MySQL. It will be serving a Joomla/Magento combo so it has a blend of InnoDB and MyISAM tables. I have only worked with MyISAM in the past and am therefore unfamiliar with the settings InnoDB uses. Experiments so far have been less than fruitful, as I keep causing the InnoDB en... | I'm running the same sort of Mysql server on EC2. Don't touch /etc/mysql/my.cnf, but instead put config files into /etc/mysql/conf.d/ This will let you manage your changes for specific engines and give admins after you additional clues to how things were configured. Also it make it easy to backup any changes you've mad... | 6 | 8 | 3,768 | 2011-03-18T20:29:57.327 | database_errors | serverfault.com | |
1,148,794 | Too many connect from unknown postfix | I am trying to set up an incoming email server by using postfix as MTA the issue I am facing is that there are too many 'connect from unknown' lines in the log. Can anyone help can I debug this issue? I think they might be due to the fact that my server is not giving enough time to remote client DNS to respond to the p... | This is normal on the internet, if it's the same ip which is doing a lot of connects, you can automatically ban them using fail2ban and a jail for postfix | 0 | 0 | 200 | 2023-11-29T07:08:27.183 | infrastructure | serverfault.com | |
220,631 | Double Entry Accounting Schema | Setting up a double entry accounting system for personal use and to help manage a really small business. Trying to put a few features that seem relevant now. Business Rules The logic, for those not familiar with accounting, is: money is not created nor destroyed, it is only transferred from account to another. Each tra... | I think your question is quite broad and hard to answer in its entirety. But here are some things I noticed about your design: General Design Some tables in your design violate the first normal form. A good example is [CODE] which has [CODE] , [CODE] and [CODE] as columns. Usually a place has only one street address an... | 12 | 2 | 19,326 | 2018-10-20T00:41:45.670 | warehouse_errors | dba.stackexchange.com | |
337,689 | postgres: session timezone of other sessions | Our DB timezone is UTC. I sometimes have users that forget to change their session timezone to UTC and they then get unwanted behavior (e.g. when using [CODE] ). Is there a way to Force all sessions to timezone UTC? At least force them once upon connect? Query all sessions, what time zone settings they use? [CODE] does... | No, you can do neither of these things. The session time zone is a global variable in the PostgreSQL backend process and not accessible by other database sessions. You can set the [CODE] parameter in [CODE] , and that will become the default value for all sessions. But there is no way you can keep an interactive user f... | 0 | 1 | 35 | 2024-03-13T09:06:45.410 | warehouse_errors | dba.stackexchange.com | |
335,218 | How and to apply Single responsibility principle correctly? | From Wikipedia on Single responsibility principle SoC ... class should have responsibility over a single part of the functionality provided by the software, and that responsibility should be entirely encapsulated by the class. All its services should be narrowly aligned with that responsibility class or module should h... | General Single Responsibility has something to say about semantic redundancy and false semantic cohesion of code fragments (modules, classes, methods functions). The problem is (with all SOLID principles) it's not about applying them, it's about identifying a violation them . Once you think it violates SRP you can make... | 2 | 3 | 1,790 | 2016-11-02T21:38:43.723 | api_errors | softwareengineering.stackexchange.com | |
438,459 | Are values like 'lastUpdated' an exception to the idempotency requirement for a PUT request? | In REST APIs a PUT request is meant to be an idempotent action - the result should always be the same, regardless of what the initial state was. However, often resources will have attributes like 'created_on', 'last_updated', which I assume are applied by the database. (A client shouldn't be able to determine their own... | It is still idempotent as long as the intended effect is the same. It other words, if you can "blindly" repeat the request and it still means the same thing, it is idempotent. The specification linked above explicitly says that this concept was created for error recovery, that is, to be able to repeat the request. It a... | 2 | 5 | 421 | 2022-05-06T01:53:11.430 | api_errors | softwareengineering.stackexchange.com | |
227,944 | Sync two postgres databases from two sperate locations with no network | I have 2 postgres databases running the same schemes on two different computers, that are not guaranteed to have any network connection while having to handle read/write requests. Because they operate on two different locations, I'm trying to find a solution to merge them once in a while to keep data updated in both (I... | I think a good way to do that is to have sequences with an increment of 2 instead of 1. That way your primary keys will be uneven on one site and even on the other one. Then you can merge without worrying. [CODE] And then you use [CODE] on one site and [CODE] on the other. | 2 | 1 | 4,239 | 2019-01-24T08:12:47.650 | warehouse_errors | dba.stackexchange.com | |
443,603 | Best practices for managing different libraries for variations of a sensor | Due to the previous supply chain issues, I currently have multiple variations of a particular sensor that performs a function in my design. Each of these variations have their own library associated with them, however, they all use the same functions names so that it's easy for me to swap between variations when sensor... | It sounds like there is some danger of using sensorA with libraryB. Hopefully there is a way we can interrogate the attached sensor and find that it is A, B, or C. Failing that, it goes into a config file and we take care to get it right each time. Similarly, we should be able to call a function and learn which library... | 0 | 1 | 70 | 2023-01-26T16:12:01.077 | airflow_errors | softwareengineering.stackexchange.com | |
928,890 | Windows AD DNS is automatically adding PTR records for CNAMEs and I want this to stop | Preface: I am not a Windows admin. I am a Linux admin. I have a Windows 2016 server with AD DNS that handles internal DNS forward and reverse lookups. Somewhere, somehow, some process is automatically adding PTR reverse lookup records for CNAMEs. This is breaking our Kerberos authentication for SSH between servers, as ... | Answering Myself I found what I was missing. Two things: These were not, in fact, CNAMEs. They were A records with multiple hosts listed for the purpose of load balancing. Since they were A-records, they did have a checkbox along the lines of "automatically create related PTR record" I unchecked that for these records.... | 3 | 1 | 5,914 | 2018-08-31T15:03:16.153 | hadoop_errors | serverfault.com | |
1,073,159 | Postfix doesn't send mail | I am trying to learn about mail servers and am quite daunted by all of the moving pieces in the setup.. Currently I am unable to send via from my smtp server. I can receive mails fine from various domains. In my logs I see the below entries when trying to send mail.. mail.log [CODE] My OS is Debian 9 and all iptables r... | First issue: I had a typo in my sender-login-maps.cf file. Was saying 'ser' rather than 'user' when specifying the dbuser. Second issue: After I was able to send mail, I then started the firewall however stopped receiving mail. This was due to incoming connections to tcp 25 being blocked. I didn't allow this as I thoug... | 0 | 0 | 764 | 2021-07-31T10:08:18.353 | infrastructure | serverfault.com | |
132,161 | What's the strategy to implement a "knowledge base" in my company | In my current work we think we can get benefit from having a knowledge base, so the next time someone has a question/problem etc, that base can be consulted and an answer will show up. Also, it will reduce the risk from having people leaving the company with the knowledge and we would have to start all over again. My q... | Without going in to much detail I can think of two and can be made accessible through the browser outside of your company network... MediaWiki - The same software that runs Wikipedia can be set up for your company. I believe you need to have a server running PHP/MySQL to run this software. No monetary cost associated w... | 3 | 3 | 2,951 | 2009-12-18T14:36:43.353 | infrastructure | serverfault.com | |
593,582 | Proxy is not getting disabled on my Linux Mint Server? | I have unset all the proxy environment variables and also changed the proxy to None under Network Proxy. Despite doing this whenever I am running sudo apt-get update it tries to connect to the proxy server. Where s the problem? | Changed from comment to answer. Check your proxy configuration for apt in [CODE] (maybe a file called [CODE] ) or [CODE] . | 1 | 0 | 423 | 2014-05-07T08:05:15.083 | infrastructure | serverfault.com | |
585,619 | Cannot kill httpd process even with -9 | I cannot kill httpd process on my VPS running centos 6.5. I tried killing it with -9 flag which didn't work either. Output of command: ps aux | grep httpd [CODE] What is strange is that every time when kill -9 29459 command is entered the pid of the above process increments by 2 and kill command returns No such process... | You are trying to kill the grep command, which you have just run. Since the grep command already completed, you cannot kill it. | 0 | 5 | 3,390 | 2014-03-31T11:29:47.973 | infrastructure | serverfault.com | |
193,485 | i am trying to get total amount from this query | [CODE] 1 queries executed, 0 success, 1 errors, 0 warnings Query: [CODE] Error Code: 1241 Operand should contain 1 column(s) | Error occurred due to a column which is not part of the equation is inside the parenthesis. Try this: [CODE] | 0 | 2 | 86 | 2017-12-19T07:28:48.757 | warehouse_errors | dba.stackexchange.com | |
292,480 | psql: warning: extra command-line argument "postgres.dolphin.com" ignored | when I using this command to copy table [CODE] from database [CODE] to database [CODE] in Fedora 32, shows error like this: [CODE] where I am going wrong with my command? what should I do to fix it? The database was in the remote datacenter. | In psql, the -v option takes an argument. It does not mean verbose, like it does for pg_dump. So the -v 'eats' the -h, considering an argument to -v. That leaves postgres.dolphin.com as being just a bare argument not belonging to any option. Normally that would be interpreted as the database name or as the user name, b... | 0 | 4 | 4,476 | 2021-05-30T03:29:32.343 | warehouse_errors | dba.stackexchange.com | |
49,777 | Decentralized usermanagement | I need some usermanagement for a serverfarm of +/- 30 linux servers. Normally I would think of something like LDAP, but we don't want to rely on a global server to which we need to authenticate, in case of downtime or broken connections. So I was thinking of writing some scripts that synchronise /etc/passwd and /etc/sh... | I have not seen an open source solution, but we have rolled our own before. It is relatively simple to have [CODE] run [CODE] and synchronise [CODE] , [CODE] and home directories containing authorized SSH keys. One thing to keep in mind though - the "master" copy of [CODE] and [CODE] need to have the details of all use... | 3 | 4 | 1,933 | 2009-08-04T14:16:22.083 | infrastructure | serverfault.com | |
197,074 | Puppet hostname doesn't match server certificate | I'm trying to set up a Ubuntu VM with puppet installed so I can locally test our production setup. I'm having trouble getting puppetmaster and puppet to talk to each other. Let me take you through my steps. (The server's [CODE] is a FQDN of the format "web1.xxx.xxx.net"). So firstly, I clear out all the pem files (exce... | The error is because the client by default connects to the server hostname 'puppet' but the certificate presented does not have 'puppet' either as its subject or as a SubjectAltName attribute. To fix it, you can (pick one): instead of initializing your puppetmaster's certificate by running [CODE] , initialize it by run... | 10 | 9 | 17,276 | 2010-11-01T20:43:10.123 | pipeline_ops | serverfault.com | |
203,402 | SQL Server 2016 expiration date | I have a question about the installation of SQL Server 2016. We Installed a trial version tha was made on 2017/09/19 According to the script that I execute in the database, the expiration date was 2018/03/18 but we can still use it without problems. The Sharepoint site that uses this DB does not give any errors or warn... | SQL Server doesn't stop the service when it hits the expiration. Instead, it is checked when the service starts. If you restart the service, or reboot, or your system crashes, when it tries to come back up, it won't start. So I'd take your backups, clean SQL Server off the machine entirely (since other components like ... | 4 | 10 | 20,175 | 2018-04-09T14:46:56.513 | database_errors | dba.stackexchange.com | |
422,262 | PCI scan failure for SSL Certificate with Wrong Hostname? | A client had a PCI scan completed by SecurityMetrics, and it now says they failed due to the SSL certificate for the SMTP port 25 (and POP3s/IMAPS) not matching the domain scanned. Specifically: Description: SSL Certificate with Wrong Hostname Synoposis: The SSL certificate for this service is for a different host. Imp... | This is what they call a false positive. We are using a wild card certificate so therefore the host name and certificate will not match. The certificate name will be the wild card name and the host would be domain.yourdomain.com and the SSL being a wild card will be *.yourdomain.com Simply ask security metrics to white... | 1 | 1 | 11,595 | 2012-08-29T02:32:05.327 | api_errors | serverfault.com | |
229,873 | Windows Server - Dual NIC Bandwidth Pooling | I have a Windows Server 2008 machine with dual NICs. Both are plugged into the same switch in a typical one-switch, one-gateway home network. This server is used almost exclusively for inbound connections. It hosts a web server (IIS 6), SQL server, and file server (via LAN UNC paths and mapped drives). How do I make be... | Transmit load-balancing is quite simple, you just enable it on the NIC and it should send traffic out through both ports. However receive load-balancing is a bit more involved. In short: Configure both connected ports on the switch for etherchannel Team the NICs and set the load balancing policy to 802.3ad Dynamic with... | 0 | 2 | 490 | 2011-02-01T22:01:28.620 | database_errors | serverfault.com | |
505,128 | Monit unable to start/stop nginx server | I have problems with monitoring nginx. Monit can monitor nginx and display resources usage (RAM usage, etc.), but is unable to start/stop nginx. I get only a simple message: "Execution failed". Syslog doesn't tell any more information. My monitrc configuration file: [CODE] Restarting any other monitored program (eg. do... | I had same issue but in my case error was clear, the group was mysql instead of www-data (I run nginx on ubuntu) then I change the conf.d file and then restarted the monit and Process 'nginx' status Running monitoring status Monitored Hope it helps. | 2 | 1 | 2,299 | 2013-05-05T12:07:30.817 | pipeline_ops | serverfault.com | |
569,972 | USB drive not detected in Intel EFI shell | I must update an Intel S3420GPLC board. BIOS, BMC, FRU / SDR, the whole thing. Everything is pretty much automated in the Intel download. You're supposed to boot to the integrated EFI shell, mount the USB disk/key, and launch the [CODE] script included in the download. Thing is, I tried with both a 4GB USB key and a la... | The first problem that you write in UNIX style. But the UEFI uses DOS style. So your sequence of commands: [CODE] The second problem - you have nothing written about the disk partitioning system. You can`t use DOS partition system. Use GPT(GUID Partition Table). In Linux use gdisk. (fdisk does not fit). As the partitio... | 17 | 15 | 171,361 | 2014-01-26T13:19:54.890 | infrastructure | serverfault.com | |
435,631 | Deploying Django App with Nginx, Apache, mod_wsgi | I have a django app which can run locally using the standard development environment. I want to now move this to EC2 for production. The django documentation suggests running with apache and mod_wsgi, and using nginx for loading static files. I am running Ubuntu 12.04 on an Ec2 box. My Django app, "ddt", contains a sub... | please note, that you should use www.mysite.com or mysite.com in your requests(as it defined in config file): [CODE] but looks like, You're requesting site by localhost or by IP address | 14 | 2 | 2,838 | 2012-10-07T06:52:02.657 | infrastructure | serverfault.com | |
725,602 | NFS issues between two linux/unix VMs | Description: I ran into a weird issue with my VMs using NFS. Both of my VMs are using linux. The server-side is using RHEL and the client-side using CentOS 7. My host machine is running Windows 7. My client-side VM is starting or initializing a website using nodejs. I made a folder directory where both the server-side ... | I did enough research to find that NFS and a shared directory approach is not a possible solution because there is an issue between the Linux kernel subsystem, inotify. The inotify acts to extend filesystems to notice changes to the filesystem, and report those changes to applications. Sadly, nodejs is not able to dete... | 3 | 1 | 150 | 2015-09-29T18:27:52.860 | infrastructure | serverfault.com | |
1,146,451 | Postfix / sasldb : "authentication failure" | I'm not a postfix expert... I'm having an authentication problem with posfix 3.5 on debian 11.8. I've added a test user : [CODE] Using swaks to test authentication to postfix, I get the following error : [CODE] Logs : [CODE] An authentication test via testsaslauthd works : [CODE] Same thing with telnet : [CODE] [main.c... | As said in comments, the username and the realm are sent to the SASL library. [CODE] was removed from saslauthd configuration (unexpected behavior ; the realm is still sent), and [CODE] can be forced to test behavior. With this configuration, swask authenticates and so does telnet. For telnet, the error was a base64 en... | 0 | 1 | 185 | 2023-10-24T08:26:01.413 | api_errors | serverfault.com | |
870,058 | Routing Windows guest VMs behind a NAT to multiple connected networks on the host | I've configured Windows Server 2016 with the Hyper-V role. The host machine is connected to two networks: [CODE] (dept.local link-local only network) [CODE] (ad.company.com internet-connected network) I created a NAT network [CODE] and some Internal vSwitches underneath that for guests to communicate through the NAT. E... | I was able to resolve (kind of) the principle issue by adding a second network interface dedicated for traffic to local network, deleted the default routes, and manually added a new 'default' route to use a specific interface and another route for the [CODE] network. I executed the following commands, where [CODE] is t... | 1 | 0 | 468 | 2017-08-23T13:50:44.087 | infrastructure | serverfault.com | |
425,091 | Inversion of Control: Separation of concerns in a composition root | In a C# console application of mine (which uses CliFx for the command line processing), I'm setting up dependency injection using Autofac. What I've learned about IoC is that you should have a single composition root with all of your types known and registered there. I'll be honest, the idea of having a single location... | IoC in CliFx So it seems that the actual problem that you are trying to solve is the way CliFx locates commands via [CODE] , which prevents normal IoC workflow because commands are (seemingly) instantiated outside of IoC. Well, the latter is not true, because CliFx supports IoC integration, so it can instantiate all th... | 1 | 1 | 379 | 2021-04-04T01:28:49.933 | api_errors | softwareengineering.stackexchange.com | |
747,927 | best configuration for database server | Okay I have a VPS (DO 512 MB) and AWS RDS free tier . I wanna get the maximum performance , please help me cause I'm a little confused . I run a nginx server on the VPS and it can handle 1K traffic/Sec without much panic . My problem is do I host the MySQL on the VPS or on AWS ? You migh say benchmark it , right !? I d... | If your system has the capacity to host the database, it will always be faster to run it locally than involve the network. It does not seem like your VPS is overloaded in this case, so you should stick to running your DB on the VPS, as your testing clearly indicates it is faster. It is common for systems which are dist... | -2 | 1 | 116 | 2016-01-09T22:37:46.507 | database_errors | serverfault.com | |
972,264 | virt-install hangs, no apparent error in logs and virsh list later shows its running after ctrl c exit, no domifaddr though | Got thrown into a situation managing boxes that the person before me used virt, so trying to come up to speed. As a test doing a virt-install of this: [CODE] It runs with this: [CODE] Then hangs, I can hit ctrl-c and get my prompt back, doing a virsh list shows that it is running but doing a virsh domifaddr kosmos-icc ... | [CODE] This WARNING is received because the [CODE] command is trying to connect you to the console of the virtual machine using your display. However, it cannot do that in your environment because you don't have a DISPLAY set. Presumably, you have lost the connection to your display by some combination of SSH without X... | 3 | 3 | 8,810 | 2019-06-20T15:41:54.397 | infrastructure | serverfault.com | |
136,216 | Networkx / Python : Is using a class for a node better practice than defining multiple attributes? | I've read through the NetworkX tutorial and documentation, but was unable to find real world answers for this question. Usually when using NetworkX, I might use strings to define nodes, then set several attributes. e.g. [CODE] However, it seems like declaring a class with members instead of attributes is better in prac... | This doesn't answer your question. However. It seems necessary. [CODE] Doesn't do what you're suggesting. Those are two class-level attributes. They're emphatically not instance variables. Also. You don't "declare" attributes at all. You don't declare them like that. [CODE] isn't proper Python. [CODE] This emphatically... | 6 | 12 | 5,545 | 2012-02-21T23:11:32.647 | api_errors | softwareengineering.stackexchange.com | |
157,929 | How frequent do we Analyze Table Statistic | We have a Oracle 11g database running with a table that insert entries with around 100records/min. We met some spiking issue mainly due to table is performing full table scan. We have indexed the required key, however, sometime it does not take into effect. What we do is to do a 'analyze table statistic' and it resolve... | Do not use [CODE] , this is only supported for backward compatibility (this was already the case in Oracle 10g), see ANALYZE Do not use the COMPUTE and ESTIMATE clauses of ANALYZE to collect optimizer statistics. These clauses are supported for backward compatibility. Instead, use the DBMS_STATS package, which lets you... | 0 | 0 | 426 | 2016-12-12T17:32:16.873 | database_errors | dba.stackexchange.com | |
904,304 | Could not resolve host: mirrorlist.centos.org Centos 7 | I have a fresh install of latest centos 7 [CODE] I wanted to install something and wget was not installed so when I tried to install wget I saw tha yum is giving error. I saw maybe all the topics about this problem on the internet but no luck I cant find my solution. [CODE] So when I list the repos I get this: [CODE] I... | [CODE] This indicates that you either (a) don't have a properly configured DNS server or (b) your network configuration isn't correct and you can't connect to a DNS server to check the hostname [CODE] . Try using [CODE] . If this fails, try [CODE] . If that also fails, your local network configuration is wrong and you'... | 30 | 40 | 335,401 | 2018-03-23T19:57:20.937 | infrastructure | serverfault.com | |
3,420 | null check and string concatenation | Can I do better than this query? [CODE] I would like to avoid calling [CODE] twice. [CODE] returns a varchar. Elaborating further: [CODE] could be a generic function like [CODE] in Oracle which you can't change the definition. | You can create a wrapper for the [CODE] call: [CODE] alternatively you can use a [CODE] clause (also know as a CTE ): [CODE] | 2 | 3 | 5,147 | 2011-06-21T21:57:30.493 | database_errors | dba.stackexchange.com | |
489,194 | How quickly should I action the update announcements on the CentOS mailing lists? | I've recently subscribed to the CentOS mailing lists so that I can keep up to date with any new releases or updates. I'm subscribed to [CODE] . I get quite a lot of emails regarding bug fixes and updates. Assuming the update is relevant to me, how quickly should I try to apply these fixes? Same day? Same week? Same mon... | It's silly to take a specific action on every update announcement that comes through. As the administrator, you exercise your judgment and knowledge of the specifics of your environment to make a determination of what's important to update. For example, if Apache and OpenSSH are updated and you have those services open... | 0 | 1 | 203 | 2013-03-19T09:33:16.083 | infrastructure | serverfault.com | |
172,437 | Silent registry changes on Windows 7 | I apologize if this is listed elsewhere, but I truly couldn't find it. Does anyone know how to silently modify registry keys in Windows 7? I've tried running regedit with the /S command line switch, but it still prompts the user for permission to modify the keys before proceeding. Any help would be much appreciated. An... | Since you're talking Windows 7, you will probably have better luck using a PowerShell script to handle this. http://technet.microsoft.com/en-us/library/dd315394.aspx [CODE] Microsoft makes sure that Regedit is noisy when it comes to importing registry keys. This is not true of other methods. | 1 | 2 | 3,239 | 2010-08-19T17:10:08.657 | infrastructure | serverfault.com | |
35,894 | CNN only performs well when split into 2 models | I have 2 groups of data of equal shape (the main difference between the 2 are that one has half as many features - and consequently different labels of course)that perform better when they are trained independently (both using the same code). Is there any canonical approach to create a single model that performs well o... | You could try saving the model after training the one it performs best on. Then restore it and try feeding in the 2nd set. [CODE] Then at the end of training, add the line [CODE] Then to restore. [CODE] | 0 | 1 | 37 | 2018-07-23T03:50:39.700 | data_quality | datascience.stackexchange.com | |
1,016,819 | Windows Event Forwarding, Source-Initiated By Way Of AD Security Group? | I'm setting up Windows Event Forwarding (WEF) utilizing a source initiated subscription type. In that source initiated subscription - select computer groups area I've successfully tested entering an individual PC. Additionally, if I enter Domain Computers in that filter it works as well. Based on several guides I've re... | Don't forget that you need to restart the target computer after adding it to the security group, because Windows will not refresh its group membership automatically. That may be your issue if everything else is OK. You can check the following log in the event viewer on the source computer: [CODE] | 0 | 1 | 2,209 | 2020-05-12T16:31:25.900 | infrastructure | serverfault.com | |
148,375 | 403 error with codeignitor | When I type in the standard web address for my site, I get a 403 error. However, when I type in a more exact address, say pointing to an index.php file, everything shows up fine. I'm using Anodyne Productions' Nova (SMS 3) which uses codeignitor. All accompanying software (PHP/MySQL) is compatible. I'm not a very techn... | Thanks for the tip. I ultimately dealt with the issue by setting up a redirect in CPanel. | 0 | 1 | 4,198 | 2010-06-04T21:57:17.340 | api_errors | serverfault.com | |
710,774 | Port Exhaustion and IIS 8 on Server 2012 R2 | My company has a highly utilized web server running IIS 8.5 on Server 2012 R2 At any given time, there are 34,000 connections to IIS and 200 requests per second. We also have an SFTP service running on the machine that has an average of 100 connected users. Everyone once in a while our monitoring system will timeout an... | Any type of network issues that have timeouts or a machine that needs to be rebooted every few days probably has port issues. Use the following commands to give you 60,000 ports. I had to do this on my domain controllers, DNS requires lots of ports. netsh int ipv4 set dynamicport tcp start=10001 num=50000 netsh int ipv... | 4 | 1 | 5,537 | 2015-08-04T14:32:48.003 | pipeline_ops | serverfault.com | |
554,671 | How to forward to Amazon S3 when in maintenance mode with nginx using 503? | During website maintenance, it is sometimes necessary to shutdown our website. Our current method is to [CODE] a file which will trigger the web server ( nginx ) to redirect traffic to a maintenance page hosted in Amazon S3. It is important to host the maintenance page on a external server because during maintenance th... | I don't believe you can pass a redirect using a 503 as it's not intended for redirection. You'll either need to host that specific file in a safe location so it's unaffected by whatever maintenance system is in effect, or use a proxy_pass so that nginx fetches the page from amazon and then passes it on to the client. S... | 0 | 2 | 3,456 | 2013-11-13T11:13:58.833 | api_errors | serverfault.com | |
534,731 | Redirect non-local connections to HTTPS in nginx | I'm trying to force HTTPS on remote connections and forward all traffic that is not from the [CODE] net to https://$host$request_uri but allow access on local connections. In apache2 I had [CODE] in the HTTP hosts' config and had to manually change to HTTPS after getting a 403. Ideally I'd like to add some code to the ... | I found a solution using the HttpGeoModule . By adding ( source ) [CODE] to my http section and adding [CODE] to my default-snippet I achieved what I wanted. | -1 | 0 | 822 | 2013-08-29T08:01:24.037 | api_errors | serverfault.com | |
1,082,059 | Linux workstations only authenticate on one domain controller | I have 3 domain controllers [CODE] and a mix of Windows10, Mac and Debian 10 linux workstations. The windows and macs never have an issue. Recently, (last Wednesday) seemingly at the same time I installed the October windows updates on the domain controllers, users have been intermittently unable to login to the linux ... | After a lot more digging through logs (debug level 7 on sssd) and googling, I still don't know what the root cause is, but I found it was throwing an error on accessing a particular group policy object. I checked the object permissions in [CODE] and it all looked fine. This setting makes the problem go away in a slight... | 2 | 2 | 1,629 | 2021-10-29T06:08:48.610 | infrastructure | serverfault.com | |
12,469 | Dockerized node.js and bind mount permission problem | I have an interesting problem with node, docker-compose and local development using bind mounts. I have a bind mount volume, called www-public, owned by my host node user (I created a node user and chowned the dir to node:node). The container (official node) is set up so it also run as node user. At some point in my no... | In your Dockerfile: [CODE] Then using [CODE] : [CODE] The [CODE] lines provide defaults. If you leave off the [CODE] flags, they will be used. If you do use the [CODE] flags values those will be used instead. | 0 | 1 | 708 | 2020-09-23T08:56:58.557 | pipeline_ops | devops.stackexchange.com | |
277,386 | Apache 2.2 CGI timeout configuration | I have a default Apache 2.2 system setup with a Perl CGI script directory configured like so: [CODE] Nothing fancy in here except one of my scripts takes over 10 minutes to process, and due to various reasons, prints out nothing during this time. Apache appears to have a timeframe of 10 minutes (600 seconds) for CGI sc... | The TimeOut directive defines the length of time Apache will wait for I/O in various circumstances: When reading data from the client, the length of time to wait for a TCP packet to arrive if the read buffer is empty. When writing data to the client, the length of time to wait for an acknowledgement of a packet if the ... | 4 | 6 | 41,410 | 2009-04-23T02:26:01.433 | api_errors | serverfault.com | |
1,061,561 | Can't reach a shared storage on a Windows server | I have NAS storage, sharing a folder. When I'm logged in to a (specific) Windows server, trying to connect to that share - it fails. But when doing the same thing on a different server, it succeeds. So I assume the issue is with my user profile on the specific server. Any idea how to fix that? perhaps clearing cache of... | Found it.. control panel > user accounts > manage your credentials > windows credentials - delete the credentials to the problematic NAS. | 0 | 0 | 23 | 2021-04-26T09:00:02.830 | infrastructure | serverfault.com | |
240,265 | How to manage a winforms application installed in many PCs connected to a single sql database? | I have a winforms application that connects to a single sql server 2012 database and is executed in many PCs of a company. I'm having several problems with some transactions inside the application, deadlocks and timeouts so the refactor idea comes to my head. Actually the app is using DbConnection object (the app start... | Migrating to a different technology will not necessarily prevent deadlocks and timeouts and other "application-level" problems. You'll just be rearranging the deckchairs. There are many cases where this client-server model works, it is efficient generally - as long as your clients don;t do things like read a big query ... | 1 | 3 | 517 | 2014-05-16T13:53:55.930 | database_errors | softwareengineering.stackexchange.com | |
176,724 | Custom WIM image to be deployed through SCCM 2007 r2 | I have captured a WIM file using imagex. It is windows 7 with a few apps that wouldnt install properly. I now want to deploy this through SCCM but for some reason it keeps failing. When it loads the WinPE it reboots shortly afterward. The last error i got was error code 0x80040104. I wouldnt think it wold be so difficu... | The answer is in this forum. http://www.windows-noob.com/forums/index.php?/topic/1660-customising-windows-7-deployments-part-1/ it worked for me. | 0 | 0 | 1,597 | 2010-08-31T23:51:36.137 | api_errors | serverfault.com | |
833,037 | NS record configuration not working in bind (bind9) on ubuntu | I have following zone file: [CODE] Dig gives answers for [CODE] , [CODE] and [CODE] but not for [CODE] Following is the result when I do a dig for [CODE] NS [CODE] Is there anything wrong in the zone file? I saw lots of examples on web and I was expecting it to work. Thanks a lot. UPDATED ZONE FILE A BIT, STILL NOT WOR... | This was solved by having a zone file for the subzone. I needed to create a zone file for the subzone: device-discovery.testzone.local and added the zone information to named.conf.local In the zone file for subzone, I defined the nameserver for device-discovery.testzone.local as test-server-host.testzone.local. It work... | 1 | 0 | 2,156 | 2017-02-16T20:48:36.380 | infrastructure | serverfault.com | |
357,547 | rpmbuild failed on dependency gnutls-devel even when pkg-config identifies the installed library | I'm trying to install the latest version of csync2, file synchronization tool, from LINBIT on CENT OS 5.4. Some recent changes made to this software have mandated that gnutls>=2.6 is installed on the system (for SSL support). Unfortunately, the gnutls rpms available on CENT OS 5 are of the version not higher than 1.4.3... | I think you need to edit your SRPMS to modify the spec file to list a build require on compat-gnutls-devel ie the one you found for the latest version. If you don't know how to modify a SRPMS and can't find appropriate doc with google, I'll try to help you further. | 0 | 0 | 1,952 | 2012-02-07T09:46:08.640 | infrastructure | serverfault.com | |
767,038 | How to install RDP Client Access License trial or use its grace period? | We want to have multiple active sessions in Windows Server 2012. Each active session will run an app to which one user will be connected. The problem is that we can not keep more than 2 sessions active at a time. As explained here we probably need to have RDP CALs for each session. But before buying we want to try how ... | The CALs are not what is limiting you to 2 sessions. You need to go through the Remote Desktop Services installation process through Server Manager. Here is an article from Microsoft about the process: Remote Desktop Services (RDS) Quick Start Deployment for RemoteApp, Windows Server 2012 Style After you go through the... | 2 | 9 | 22,878 | 2016-03-30T13:30:48.937 | infrastructure | serverfault.com | |
763,814 | Exchange Hybrid send all mails via Exchange Online | We are running Exchange 2013 in a Hybrid Enviroment with Office 365 and we want to send all mails via Exchange Online. If we use the Outbound to Office 365 connector for all addresses (adding * at address space) we get the errormessage "451 4.4 0 primary target ip address responded with 454 4.7.5 Certificate validation... | We've just recently moved to a Office 365 Hybrid setup, but we've been using EOP for quite a while. I mention it because you might need to check the connectors in the Office 365 EAC to make sure they're setup properly. Specifically take a look at the Inbound connector (from Your organization to Office 365). It's likely... | 0 | 1 | 3,091 | 2016-03-15T09:54:17.000 | data_quality | serverfault.com | |
45,422 | How to re-run jest failed test suite | I want to re-run the whole test suite when any test has status failed. I only found how to re-run the test case but I want to re-run the whole test suite. | The [CODE] command gives an exit code 1 if a test failed, 0 if all tests succeeded. You could create a bash shell script that looks something like this: [CODE] Reads: https://stackoverflow.com/questions/55927777/is-it-standard-for-jest-to-exit-with-a-status-1-if-any-test-fails https://shapeshed.com/unix-exit-codes/ | 1 | 1 | 2,738 | 2020-08-05T06:57:01.283 | data_quality | sqa.stackexchange.com | |
144,831 | Setting up SSL on Glassfish V2 or V3 | My employer recently purchased a Trustwave SSL certificate. Trustwave advertises support on their website, but they don't give an installation guide like they do for their other servers at all, and I am having a difficult time getting it configured correctly with GlassFish. I found this http://blogs.oracle.com/enterpri... | My experience is more focused with Jboss and Tomcat. However, I suspect it applies to Glassfish as well. The Java keytool is what is used to manipulate keystores. If you generated the key with openssl, keytool neither supports importing nor exporting keys. For exporting a key, this tool can be used. For importing, this... | 0 | 2 | 3,762 | 2010-05-24T19:09:54.927 | api_errors | serverfault.com | |
862,871 | How to find the cause of DNS lookup fail? | I run a server with several zones set for each domain, and everything seems to be working for the name to IP translation. However, when querying a DNS server used by some ISPs, the lookup fails. How can I find the cause of the problem? [CODE] As you can see, the Google's DNS server ( [CODE] ) and a lot of other DNS ser... | If you're not in charge of the server [CODE] , there's nothing you can do, except contact whoever is. To rule out any problems with your zone, I ran it through the ZoneMaster test engine , and one thing stood out - you've got two nameservers listed, [CODE] and [CODE] - but they both resolve to the same IP address. That... | 1 | 2 | 8,322 | 2017-07-18T18:08:08.140 | infrastructure | serverfault.com | |
1,076,559 | fail2ban detects the attacker IP but doesn't ban it, and is slow reading logs | From a few days I'm receiving attacks from some IP addresses to my nginx. I have decided to use fail2ban to ban it automatically, but I have noticed that is not working very well. I can see in logs that is detecting the IP addressess, but is not banning as expected. My jail file is: [CODE] and my filter looks like this... | It is not advisable to monitor access-log, see fail2ban/wiki :: Best practice especially the part "Reduce parasitic log-traffic". Inappropriate regexs can also cause that fail2bans "read speed may be slower than log speed", just I don't see your RE is not good. But it can be made faster, just you'd need to change loggi... | 2 | 2 | 1,469 | 2021-09-03T16:40:51.890 | api_errors | serverfault.com | |
174,961 | Is query efficiency affected by data not relevant to the query? | Say I have roughly 200 million records and have an indexed column [CODE] on a [CODE] table. If I select back 1 million records by doing the following query : [CODE] (Assuming my [CODE] is indexed.) Would the other 199 million rows' column data affect the efficiency of my query ? Example : Consider 199 million rows were... | Summary: It depends on Percentage of rows being fetch (at least according to imprecise statistics) Size of buffer_pool (relative to size of table) ENGINE How much off-record blobs, etc, you have. Whether the data is somewhat ordered by [CODE] . Details: For smaller numbers, I would simply say "No". But you describe a v... | 0 | 2 | 49 | 2017-05-30T23:14:21.027 | data_quality | dba.stackexchange.com | |
26,300 | Choice of PHP Application Server | Possible Duplicate: Enterprise Grade PHP Application Servers Hi Folks, I am on the lookout for a commercial PHP (application!) server that comes with Vendor support to use with enterprise scale applications. I know that it quite easy to put everything together myself (Apache + Fast CGI + PHP + APC + xdebug etc.,). But ... | Maybe you just want to use a commerical linxu distribution like RHEL? There you get a complete web stack (apache, php, mysql) with support from the vendor, Red Hat. | 0 | 1 | 717 | 2009-06-15T13:53:07.470 | data_quality | serverfault.com | |
199,266 | How should I model a "communication preferences" field which may require different supporting info for each row? | I am building a system which sends information to other systems. Each client system has its own communication requirements. For example, a client system might require: An HTTP request An HTTPS request An HTTPS request with some form of authentication An email A fax A physical letter in the mail A carrier pigeon Other m... | It depends on how much you care. For instance, there is a totally standardized method of doing this with URI . That will support HTTP/HTTPS/Email, and even with [CODE] physical addresses. You can usually store them in the very database with very little work.. [CODE] You can see from that, a lot is optional. They only r... | 1 | 1 | 180 | 2018-03-02T19:41:16.130 | api_errors | dba.stackexchange.com | |
25,158 | Error: The type or namespace name ... does not exist in the namespace / could not be found | I have written some code to verify, that a user can login to a hotel booking platform & I also added a verification step. I get an error on the [CODE] Method. Every other thing is fine in the code. I did some research for a possible solution before stopping by. Here is the solution I found on [CODE] : https://stackover... | First decide on what testing framework to use either MSTest or NUnit. You cannot or should not use both at the same time. Both test frameworks expect you use a test-class and not [CODE] as you are doing. If you follow the getting started guides you should end up with a full test-class in which you can use the Assert fu... | 3 | 1 | 6,347 | 2017-01-28T21:29:44.593 | data_quality | sqa.stackexchange.com | |
406,299 | Mod_rewrite not working on ISPConfig 3 Server | Problem I recently migrated a Drupal site from a shared hosting server to my own VM. Everything appears to work correctly, except clean urls. My VM Setup Ubuntu 10.04 LAMP ISPConfig 3 What I've tried From reading up on a number of drupal forums I've tried the following in this order Check that mod_rewrite is installed ... | ISPConfig 3 Manual says: Fast-CGI: Advantages: Scripts will be executed with user privileges of the web site; More than one PHP version can be run as FastCGI; Might be better in speed compared to CGI and suPHP. Disadvantages: php.ini values cannot be changed via PHP scripts, vhost files, .htaccess files. But it is poss... | 0 | 2 | 11,481 | 2012-07-10T08:54:34.803 | infrastructure | serverfault.com | |
99,945 | Creating a complex featureset for regression modeling | I am currently working a on project that requires me to convert all of the categorical variables to continuous (or binary) variables to build a regression model. The problem is that I have more than 100 categorical values and all of them have different measures. For example, let us say that users who have different typ... | What you are doing is fine, you are one-hot encoding the categorical variables. There are two ways to think of price: target or feature. If price is the target then the model will learn to weight the presence of Honda or Lexus as way to predict price. If price is a feature and you want to include the effect of Honda or... | 1 | 1 | 80 | 2021-08-11T15:11:08.253 | api_errors | datascience.stackexchange.com | |
293,242 | Sun X4100: "LSI Configuration Utility Text Strings Image memory error!" | We have a used X4100 (not M2). It has an option during the boot process that says [CODE] I type Ctrl + C Then the last line changes [CODE] After a few seconds, I get two more lines [CODE] The expected behavior and what has worked on other X4100s is to come up with the BIOS-style tool to set up RAID. I think the solutio... | Success! For those who find this. You need to update the LSI and MPT BIOS to not be so far behind the ILOM and regular BIOS. Whoever updated the ILOM/BIOS either did not read or did not heed the "readme"s Get updates here: http://www.oracle.com/technetwork/systems/patches/firmware/release-history-jsp-138416.html#X4100 | 0 | 0 | 1,735 | 2011-07-23T00:24:09.690 | database_errors | serverfault.com | |
163,836 | Is an Internet connection required when installing Ubuntu? | I'm installing Ubuntu on a virtual machine. I keep seeing updates that it's "retrieving" this or "retrieving" that. Is it trying to retrieve them from the Internet or just from the installation CD? When asked what I wanted to install, I selected: LAMP server Mail server OpenSSH server I hope all these are on the Ubuntu... | Installing does not require the internet however fetching packages from Ubuntu servers requires an internet connection to install "LAMP" and such. They are not included on the cd. | 1 | 2 | 188 | 2010-07-25T06:11:13.777 | infrastructure | serverfault.com | |
832,456 | nginx redirect based on domain name | I have a django web app which run on server with IP address [CODE] and domain as [CODE] Below is my nginx configuration [CODE] when i type [CODE] or [CODE] from browser it take me to [CODE] as expected but, now I have configured another domain( [CODE] ) to route to the same server [CODE] and the actual problem is when ... | You need to setup a new vhost for example2.xyz.com. Nginx will read the domain name first then call respectively conf file otherwise default conf. In nginx conf of vhost listen port 80 seperatly for both example1 and example2 or you can add listen 80 in default conf too for redirection to https. Use map module for mapp... | 10 | 13 | 39,525 | 2017-02-14T10:38:22.303 | infrastructure | serverfault.com | |
253,973 | Triggers on partitioned tables on Postgres 11.5 | I asked a question about History table design for deletions in PG 11.5 , and received a suggestion to partition the table. This is an excellent idea as the table may become huge, and the information content is low. Meaning, I'll end up wanting to purge data. When I went to reimplement the table with partition, I discov... | I don't know of any built-in solution to this; I think you ultimately need to run your own [CODE] statement for each new partition. There are a couple of ways to automate this. This function will come in handy: [CODE] If you: Really need the [CODE] statement to add the trigger automatically, and Have access to a superu... | 1 | 4 | 4,519 | 2019-11-23T02:54:31.893 | warehouse_errors | dba.stackexchange.com | |
235,734 | Can you span a single file share across multiple servers? | Let's say I have one large file server that has a company-wide share. That file server constantly runs into space issues. Now let's say I have a dozen or so random servers (print servers, web servers, etc) that have a ton of free space. Is there a way to utilize that in the company-wide file share? Like spanning the st... | The answer to this maybe Distributed File System http://en.wikipedia.org/wiki/Distributed_File_System_%28Microsoft%29 . | 1 | 2 | 5,307 | 2011-02-15T15:02:31.890 | infrastructure | serverfault.com | |
714,553 | Allow webserver user to unlink SFTP-uploaded files | I've set up SFTP, so that some users can upload files to a directory where the web application can pick them up. The webserver is running as user [CODE] , and SFTP is configured for user [CODE] . User [CODE] is uploading files to [CODE] (owned by [CODE] , to enable a chroot). Naturally, these files are owned by [CODE] ... | Only write permission on the containing directory is needed to delete a file. Neither ownership nor permissions of the file itself come into play. EDIT: In the case of subdirectories being created via SFTP, this can be achieved in several ways: by making them world writeable (normally not desirable for security reasons... | 0 | 2 | 129 | 2015-08-16T18:47:58.127 | infrastructure | serverfault.com | |
866,961 | Old Exchange "Microsoft Federation Gateway" preventing domain validation in Office 365? | I am 5 days into the process of validating a domain I control in Office 365 so I can begin a hybrid coexistence and full migration. I'm already 4 days into working with Microsoft Support but it has been an incredibly slow process. The message I got (only once, out of I don't even want to mention how many failed DNS and... | Problem Solved Office 365 support escalation finally confirmed that it was a federation trust that was blocking my validation. I indicated this to support on day 1 when I saw the message and did my due dilligence confirming I had one (and removing it). My original federation trust removal was incomplete, likely due to ... | 3 | 2 | 2,949 | 2017-08-04T22:01:43.823 | data_quality | serverfault.com | |
399,591 | the right reasons to start agile swarm development | We are a fairly new team of 5 devs working on an existing code base to make MVP somewhere in Q2 2020. We do not deliver to production yet but we do demo to stakeholders on our progress. We try to work as agile as possible but because we are new (1 dev 8 months, 1 dev 4 months (myself), 2 devs 3 months and one dev 1 mon... | It sounds like when you say Swarm Development you are referring to Mob Programming. However, any impact this would have on delivering your work at the end of the sprint would be a secondary effect. There are a number of factors that can impact this, but they are almost all flow issues. That is, the cycle time from star... | 3 | 1 | 237 | 2019-10-11T13:04:56.997 | api_errors | softwareengineering.stackexchange.com | |
808,355 | rewrite URL in htaccess and remove everything but parameter | Is it possible to turn this URL: [CODE] Into this URL: [CODE] When I try I just keep getting 404 or 500 errors and it's frustrating. Here's a few thing's I've tried. [CODE] If it's not possible then please could you tell me why it's not. I'm rather new to mod_rewrite and want to learn. | You can try with the below rules. [CODE] | 2 | 0 | 3,708 | 2016-10-11T13:19:20.303 | api_errors | serverfault.com | |
104,510 | Drop or impute the missing values? | I am working with a dataset having 45k rows and I was a bit confused on whether or not to drop the missing values OR impute the missing values. Column wise missing value distribution : As per this answer: https://stackoverflow.com/a/28199556/12298398 ), I calculated the number of rows containing missing values [CODE] B... | In most cases, dropping data only makes sense when you have a large number of nan values. For example of you have a feature with 98% nan values, it is not going to be of much use to any algorithm. Also imputing that feature is not going to work as you don't have much data to go on with. But if there are reasonable numb... | 1 | 2 | 1,780 | 2021-11-26T06:59:03.327 | api_errors | datascience.stackexchange.com | |
313,897 | I can't understand a syntax error issue in SQL / TimeScaleDB | This does NOT compile: [CODE] The issue seems to be the [CODE] following [CODE] . But this compiles: [CODE] My colleague and I can't understand why. Can anyone explain? | Explanation The function [CODE] does not do what you seem to think. You can use the type name like this to cast a value (typed or untyped): [CODE] But you cannot use it as function (followed by parentheses). That's only implemented for some basic types. See: Postgres data type cast There are two functions named "interv... | 3 | 3 | 618 | 2022-06-29T14:02:22.913 | warehouse_errors | dba.stackexchange.com | |
1,014,946 | libvirt KVM virtualisation - define some guests to use one NIC, others to use a different NIC? | I am running 30 libvirt-defined KVM VMs on a server with two physical NICs (1Gbps). Currently I'm using NATted virtual networks, defining the VMs' interfaces (as part of a full VM definition, not a separate network definition) like this: [CODE] [EDIT] This works as intended. The 30 VMs use the host's default ethernet i... | Earlier this year I had the same problem and this is what I came up with after some research. In general, the logistics are the following; since you have the xml files created, you need to first define the network, start and enable it to autorun with the start of the service and then you need to attach it to the VM of ... | 2 | 2 | 268 | 2020-04-30T10:24:09.277 | infrastructure | serverfault.com | |
676,638 | mdadm: drive replacement shows up as spare and refuses to sync | Prelude I had the following devices in my [CODE] RAID 6: [CODE] The following drives were also present, unrelated to the RAID: [CODE] The following drives were part of a card reader that was connected, again, unrelated: [CODE] Analysis [CODE] 's SATA cable went bad (you could say it was unplugged while in use), and [CO... | After hours of Googling and some extremely wise help from JyZyXEL in the #linux-raid Freenode channel, we have a solution! There was not a single interruption to the RAID array during this process - exactly what I needed and expected from mdadm. For some (currently unknown) reason, the RAID state became frozen. The win... | 6 | 12 | 15,003 | 2015-03-17T08:27:29.140 | infrastructure | serverfault.com | |
301,533 | Update values on table reverse order (Postgresql) | I have a table with three columns (way_id, node_id, sequence_id) with a unique constraint on way_id and sequence_id. If I want to insert an item at row 10, I want to increase all those with a sequence_id >= 10 by +1. Running the SQL command causes a violation error. I understand why but I don't know where to begin to w... | You cannot update a derived table, because it's transient. Even if you could, the [CODE] wouldn't necessarily respect the [CODE] in the subselect. What you want is a deferrable primary key constraint , which will be validated at the end of the transaction: [CODE] Fiddle PS. I was lucky to obtain the table DDL from your... | 0 | 2 | 573 | 2021-10-22T20:14:43.317 | data_quality | dba.stackexchange.com | |
582,499 | I have multiple PostgreSQL servers installed. How do I disable auto boot for older server? | I'm running Ubuntu 12.04 on Oracle VirtualBox. A couple months ago, I installed PostgreSQL server version 9.1 on my machine. Just recently, I learned that PostgreSQL server 9.3 supports JSON data types, so I decided to upgrade. I upgraded to 9.3 by following the instructions here: https://wiki.postgresql.org/wiki/Apt [... | For less of a hack, edit [CODE] and replace [CODE] with [CODE] or [CODE] . Note : Invoke [CODE] after editing this file. | 29 | 50 | 40,246 | 2014-03-17T00:23:07.097 | database_errors | serverfault.com | |
358,799 | Encapsulation and SRP | Suppose I have the following requirements: We organize books by author first name, this might change in the future. When ever an Author we carry at our store releases a new book, the Authors previous works are discounted at the managers discretion(i.e 10% 15%). Storage is done in an SQLite database with the appropriate... | Encapsulation is a technique. Like any other software development technique, you use it when you need the benefits that it offers. The purpose of a getter or setter is to get or set some state in a class; that should be self-evident. What is less clear is why you would provide "empty" getters or setters, methods that p... | 1 | 5 | 319 | 2017-10-08T16:30:07.513 | api_errors | softwareengineering.stackexchange.com | |
315,292 | Backup a server to a ftp server | Possible Duplicate: Backup linux to ftp server This scenerio is pretty common, but I have a little problem. My server is old and unless I can find precompiled libs that will work. I tried to use ncftpput to copy all my files to the ftp server. It works but for some reasons the remote server end up closing the connectio... | Looking at the documentation found here: http://www.ncftp.com/ncftp/doc/ncftpput.html It appears the default is: "Do (do not) try to resume transfers. The default is to not try to resume (-Z)." If you use the "-z" it sounds as if it should allow the transfer to reconnect. | 0 | 0 | 117 | 2011-09-25T13:15:14.323 | data_quality | serverfault.com | |
196,763 | Feature branches, beta branches, and scrapped features | I've been thinking a lot about best practices regarding branching in distributed version control systems such as git an mercurial (the two dvcs's I have experience with and use on a daily basis). The way I've been doing it is slightly different in each of these, but generally follows these guidelines: master branch - c... | I think the workflow at its core is fine and basically follows the ideas presented here: A successful Git branching model . However, I think the reason it breaks down for you is because you are essentially "off by one" in the merging and testing process: Feature branches should be based off of the development branch in... | 7 | 5 | 1,963 | 2013-05-01T20:17:25.987 | api_errors | softwareengineering.stackexchange.com | |
650,119 | Wildcard cert for local SSL Certificate Authority? | This seems like it should work, but PKI is complicated and I'd like to ask people who can give an authoritative answer. BACKGROUND : I am the network engineer for a company; for sake of argument we'll call our domain [CODE] . I authenticate some BYOD wireless services through Cisco ISE (just a fancy RADIUS server), and... | re-use whatever cert I buy to chain trust back to Comodo for a local thatcompany.com Windows AD local root CA, which is yet to be built... ... Is there any other reason that we couldn't reuse this Comodo UC Wildcard Certificate to build a Windows local root CA? That's not possible - an end entity certificate issued to ... | 3 | 5 | 2,198 | 2014-12-08T22:56:21.067 | api_errors | serverfault.com | |
186,955 | How to display data from table 1 separately, and combined with matching rows from table 2 | I have two tables, let's call them [CODE] and [CODE] . They're associated - column [CODE] in [CODE] matches the primary key column [CODE] in [CODE] . For my results, I want every row in [CODE] to appear without any [CODE] data; then, in the following output rows, I want to see the combined data from the [CODE] row and ... | Your question is a little confusing (in particular around the joins), does this look something like what you are looking for? [CODE] | 0 | 2 | 200 | 2017-09-26T17:53:50.587 | warehouse_errors | dba.stackexchange.com | |
100,891 | Large update taking too long; looks like it is updating more records than I have | I am trying to do an update on a table that has 4 million records. The main table is indexed on SerNum a unique field. I use a temp table to update from that also has a unique index on SerNum. I am told this should happen fast but it's taking hours. It's been running for 2 hours and if I add up the rows affected I get ... | Well, after a few iterations your @Updates table variable probably has become huge (since you're inserting data into it in every iteration ), and this is probably leaking memory. Plus, on every iteration, you're doing an EXISTS check for every single row in the tables which are a product of the join statement, against ... | 2 | 4 | 84 | 2015-05-07T16:11:29.103 | warehouse_errors | dba.stackexchange.com | |
67,933 | High model Accuracy and very low validation accuracy | I'm building a neural network model in python using Keras l for deep learning my data is having vital information , age and other health symptoms about 1385 individuals and the output label predict about the liver condition: output class Cirrhosis :362 Few Septa :332 Many Septa :355 Portal Fibrosis :336 I wrote a seque... | Your model probably overfits. This articles provides an easy to read intro to the topic. As a very first step I suggest to plot your learning curves and look for epochs with lower validation loss. Also, this helps to properly diagnose your model in terms of model capacity. Training a model for less epochs is one way to... | 0 | 2 | 2,432 | 2020-02-12T02:30:54.420 | api_errors | datascience.stackexchange.com | |
359,826 | Algorithm to identify differences between two sorted data sets | PROBLEM STATEMENT : Print the items that differ between the following two left and right sorted data sets: [CODE] The proposed solution should print: [CODE] Here is my data-driven implementation of this algorithm in pseudo-code. It appears to produce the desired results so my questions are: Are there any flaws in terms... | I would simplify [CODE] | 0 | 3 | 167 | 2017-10-27T12:12:10.770 | api_errors | softwareengineering.stackexchange.com | |
81,515 | How can I randomly sample the space of consistent neural networks for given data? | Suppose I have a dataset $X$ and target labels $Y$ . For a fixed neural network architecture, how can I randomly and uniformly sample from the space of all possible assignments of weights such that the neural network maps $X$ to $Y$ ? | I am trying to formalize your question before discussing it. If I understand correctly, you ask for the following: For $X \subset \mathbb{R}^{n}$ and $Y \subset \mathbb{R}^m$ , let $f:X \rightarrow Y$ be a map. Let $w \in \mathbb{R}^q$ be weights. We consider a neural network $g: \mathbb{R}^{n}\times \mathbb{R}^q \righ... | 1 | 2 | 129 | 2020-09-10T18:05:14.993 | data_quality | datascience.stackexchange.com | |
31,478 | SQL Server script to delete accounts no longer in Active Directory | We have a SQL Server 2000 that will shortly be migrated to SQL Server 2005. It has years of Windows Authentication accounts created that no longer exist in Active Directory, which prevent the Copy Database Wizard from creating these accounts on the new server. Is there a script or some automated way of deleting the acc... | What I ended doing is listing the accounts with: [CODE] And running [CODE] on the results. | 8 | 6 | 12,175 | 2013-01-05T14:37:58.360 | api_errors | dba.stackexchange.com | |
226,143 | SQL Server Express restore backup error | I'm running SQL Server Express 9.0.4035 on Windows 7, and am having the following problem creating a new database from a backup file I've been given. In the Restore Database dialogue I enter a new database name and select the file to restore from. I then get the following error: [CODE] What is S:/\, and why is it looki... | The database backup contains the full path and filename of the original database. You simply need to change them to suit the server/system that you're restoring the backup to. http://msdn.microsoft.com/en-us/library/ms186390.aspx | 0 | 0 | 69 | 2011-01-24T13:00:53.150 | database_errors | serverfault.com | |
243,704 | How to Bulk Insert sqlalchemy subclasses | I am trying to bulk insert SQL-Alchemy Subclasses into the parent table and their respective tables ie fruits tables -> Apple Table and so I insert a table of APPLE and it will insert both the row into the fruits table then give me the id of the row in fruits table and put it Apple This works when inserting one row at ... | I figured it out so SQLALCHEMY has a parameter in bulk insert mapping called return_defaults WARNING : This is straight from the docs return_defaults – when True, rows that are missing values which generate defaults, namely integer primary key defaults and sequences, will be inserted one at a time, so that the primary ... | 1 | 1 | 2,103 | 2019-07-24T16:41:24.297 | warehouse_errors | dba.stackexchange.com | |
520,184 | vsftpd upload file error | I am setting up a vsftpd server (in centos) which allows anonymous READ/WRITE.Here is my configuration [CODE] In my [CODE] folder. The permission is set to 777 which is owned by root. When i tried [CODE] I am getting 553 error. Are there any setting that i am missing? | SELinux context must be [CODE] , set it with [CODE] | 0 | 0 | 174 | 2013-07-02T13:37:17.083 | infrastructure | serverfault.com | |
256,317 | Patroni with etcd starting up | I have an existing PostgreSQL cluster v11.5 with streaming replication. I want to set up high availability managed by Patroni. I installed Patroni on both machines, I set up an etcd cluster on three others Virtuals Machines [' http://10.A.A.191:2379 ', ' http://10.B.B.99:2379 ', ' http://10.C.C.170:2379 '] but Patroni ... | Thanks to CyberDem0n. Two issues in etcd1 start command: API VERSION Etcd v3.4 default API version is v3. Patroni doesn't currently support the v3 API. Etcd 3.4 turned API v2 off by default. I added --enable-v2=true flag on the three etcd.service and this error was fixed. advertise-client-urls FLAG And for each etcd se... | 0 | 3 | 2,823 | 2019-12-26T16:29:09.383 | database_errors | dba.stackexchange.com | |
937,809 | Not getting ping response on CentOS server hosted with DigitalOcean | I have a CentOS server with DigitalOcean , i am trying to ping "1c-bitrix.ru" , i am getting the following [CODE] but there is no response. I tried the same from my Mac and its working properly. My IPTables are as follows [CODE] **Update I ran a traceroute on 1c-bitrix.ru and see the packets are getting dropped in midd... | You need to configure your firewall to allow incoming and outgoing ICMP traffic. Here's an example using iptables: [CODE] The icmp type number is part of the protocol. 0 is for echo reply and 8 is echo request. | 0 | 0 | 1,088 | 2018-10-30T07:01:01.007 | infrastructure | serverfault.com | |
17,227 | Efficient clustering of sparse binary vectors | I'm trying to perform clustering of the data to improve the efficiency of brute-force kNN . The dataset consists of objects described by a large set of binary features, each identified by a 32-bit hash code. Data point can be understood as a [CODE] elements long very sparse binary vector, with bits set to 1 on the posi... | You can efficiently implement e.g. Euclidean distance or Cosine on sparse data (iterate over nonzero values only!). Then you can use e.g. Hierarchical clustering. But also consider frequent itemset mining. Usually, on sparse binary data, frequent itemsets are better than clusters. | 3 | 2 | 2,808 | 2017-02-27T14:31:24.897 | data_quality | datascience.stackexchange.com | |
417,006 | Nginx fails to parse config because of scgi_params | I'm trying to install libtorrent, rtorrent and rutorrent. I'm at the stage of installing rutorrent, and their wiki says I have to put this location block in my config file: [CODE] This is my entire config block for this server: [CODE] When I rebooted nginx for the new config to take effect, I got this error: [CODE] Now... | Since your above config is put into [CODE] and [CODE] located at [CODE] , therefore Nginx cannot find out the included file. Using absolute path instead: [CODE] | 1 | 0 | 2,788 | 2012-08-13T14:51:41.627 | infrastructure | serverfault.com | |
533,877 | How large is my ZFS dedupe table at the moment? | I have read a lot of information about planning RAM requirements forZFS deduplication. I've just upgraded my file server's RAM to support some very limited dedupe on ZFS zvols which I cannot use snapshots and clones on (as they're zvols formatted as a different filesystem) yet will contain much duplicated data. I want ... | You can use the [CODE] command. The output would look similar to: [CODE] The important fields are the Total allocated blocks and the Total referenced blocks. In the example above, I have a low deduplication ratio. 40.2G is stored on disk in 37.5G of space. Or 2.51 million blocks in 2.35 million block's worth of space. ... | 25 | 25 | 22,668 | 2013-08-26T16:13:29.390 | data_quality | serverfault.com | |
19,879 | can I create an SSRS group without adding the group to the box itself and without using Active Directory? | I want to know if it is possible to create a group "internal" to SSRS without having to add the group to the ReportServer box itself. I do not have permissions to the box to create groups and/or add users to existing groups. I know that this is a way (the only way?) to have groups that can be assigned permissions in th... | There are a couple of courses of action for you: If you're friendly with your Windows Admin, I'd thoughtfully think out some AD Groups and then present them to the admin and ask them to be created (in whatever workflow you have). From there you can assign permissions on the individual folders by these groups. Click on ... | 4 | 7 | 2,596 | 2012-06-25T17:24:03.270 | bi_errors | dba.stackexchange.com | |
987,576 | MySQL 500% CPU Usage and Crashes Server | My dedicated server is a XEON E3 1240 V3 8GB DDR3 1TB HDD SATA (4 cores @ 3.4 GHz), which I've had for a couple of days only and just finished migrating about 20 wordpress sites to it (each database around 50MB to 150MB in size). The server has consistently had 500%+ CPU usage from mysqld, which has caused the httpd se... | Running [CODE] in phpmyadmin showed a strange query stuck on a database that had close to 1 million rows, killing that solved the issue. | 2 | 2 | 1,420 | 2019-10-11T01:54:00.057 | api_errors | serverfault.com | |
926,415 | "Boot disk cannot be local attached storage." in GCP | In GCP, I tried to create a server with a local SSD (because the performance is much better). However, I get the following error: "Boot disk cannot be local attached storage." Surely the answer is "GCP doesn't support this." But there were no hits when I did a Google search, so I thought I'd at least ask the question a... | Local SSD disks are not designed to be used as a boot disk for GCE instances. There are 3 types of disks : Standard, SSD and local SSD. While SSDs are designed to give you a higher number of IOPs ( Input/output operations per second) , local SSDs have an even higher throughput and lower latency than SSD persistent disk... | 1 | 4 | 994 | 2018-08-14T23:25:45.627 | infrastructure | serverfault.com | |
149,315 | Windows script to create directories of 3,000 files | We have some email archiving that is dumping all the emails into a directory. Because of some performance reasons with the server, I want to setup an automated task that will run a script once a day and if there is more than 3,000 (or whatever number) of files in the main directory, create a new directory with the date... | Written and tested. Copy the following code into a *.bat file. You'll want to modify the directory where the emails exist at the start of the code. The variable cBig has already been set to 3000 but you can change this if you'd like. At the bottom, move *.txt will have to be changed to reflect the extension of the emai... | 1 | 2 | 379 | 2010-06-08T17:05:01.233 | infrastructure | serverfault.com | |
214,005 | Sync / send data between front end and back end systems for an Ecommerce site | A client recently had a new backend .net stock management system developed that hooks into their EPOS and allows their stores to keep track of orders, products, customers, etc from a single central database that utilizes MS SQL Server 2003. The client hopes to use this as an opportunity to renew/re-develop their site t... | I would not allow the front-end to connect to the mission-critical database directly. This is a security-issue. Your front-end normally is in the "wild" (public internet) and therefore target for hackers all the day. If one comes through your productive database gets hacked and the company is standing still. In such si... | 2 | 3 | 4,070 | 2013-10-10T10:04:02.187 | database_errors | softwareengineering.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.