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 |
|---|---|---|---|---|---|---|---|---|---|---|
262,780 | Multiple SQL queries fired asynchronously progressively slow down | We are using .NET Core Web API 2. We have a vue client that makes calls to this Web API 2 API method. We have a report dashboard page. On this page we have 13 charts which means 13 calls are made to an API endpoint to get the data for the charts. If we run the 13 queries in SQL individually all of them run within a sec... | Those plans are pretty gnarly. And utterly inappropriate for such a small SQL Server. To be effective at that scale, you have to be efficient. You can do a lot with a little SQL Server, but you have to do things right. It appears that you are storing your data in single-element JSON arrays instead of properly typed col... | 0 | 1 | 889 | 2020-03-27T11:05:42.790 | api_errors | dba.stackexchange.com | |
276,786 | What is the best configuration for a MySQL instance with a lot of databases and lot of tables? | I have a MySQL database instance with more than 3000 databases in it. Each database contains more than 200 tables. Total data of all theses database comes around 100 GB. I am using Windows Server 2012R2 operating system with 4 GB of RAM. The RAM memory utilization of the server system was always showing very high. So I... | There is a reason you will need more RAM ... the INFORMATION_SCHEMA database. What has to get populated in it ??? Let pick just two tables as an example: INFORMATION_SCHEMA.TABLES INFORMATION_SCHEMA.COLUMNS Imagine (all the columns in the tables + the number of tables) multiplied by 3000 ??? The metadata would be need ... | 2 | 2 | 331 | 2020-10-09T05:14:23.767 | database_errors | dba.stackexchange.com | |
75,395 | Are transactions in PostgreSQL via `psycopg2` per-cursor or per-connection? | I'm doing some work with PostgreSQL 9.3 using the [CODE] database API. I have the DB API set in the minimum isolation level ("autocommit" mode), and am managing my own transactions directly via SQL. Example: [CODE] Basically, Is the transaction that is started by the [CODE] limited to just that cursor, or is it for the... | Transactions are per-session, i.e. per-connection. PostgreSQL doesn't support suspending and resuming transactions, so psycopg2 couldn't make them per-cursor unless it implicitly created new connections behind the scenes. In practice I don't find psycopg2's cursors particularly useful. They can retain result sets if yo... | 12 | 9 | 11,343 | 2014-09-01T01:32:18.170 | database_errors | dba.stackexchange.com | |
177,277 | Change instruction for apache config for linux into config for windows | I was given a tutorial on setting up apache2 and php to work with a java CMS called liferay. the problem is that the instructions were written for linux. Can someone help me change these to work with windows environment? [CODE] [CODE] things like the directory site-enabled don't exist, etc. so am having a hard time her... | The file you are looking for is httpd.conf, probably in "conf" directory of the apache installation. You can also check httpd-vhost.conf into "conf/extra" directory. | 0 | 1 | 47 | 2010-09-02T10:03:36.037 | infrastructure | serverfault.com | |
197,451 | .htaccess on Dreamhost shared hosting | I have mod_rewrite working perfectly on my local machine, but I'm getting a redirect loop on my shared server at Dreamhost. I think I'm missing something really obvious. Any ideas why this would not work on a shared server? I'm using Linux/Apache/PHP 5.2 with FastCGI [CODE] | For anyone having the same issue: turning off FastCGI solved the problem. | 0 | 1 | 410 | 2010-11-02T20:42:42.403 | infrastructure | serverfault.com | |
725,508 | File is too big for /dev/null | While testing a problem LUN for read errors, I encountered the following problem: [CODE] IBM hardware, RHEL 6.6 Who's the culprit, provided this particular file could be read without any errors? | It looks like your [CODE] may have been deleted at some point so when you started writing to it you are writing to a plain file rather then the character special null device. You an confirm this by looking at the output of ls [CODE] If I'm right then you won't see a character special device. You can repair this by firs... | 7 | 13 | 756 | 2015-09-29T11:26:01.650 | infrastructure | serverfault.com | |
761,171 | Strange activity on Wingate Proxy | I noticed some strange network activity on my network last night. I've never seen anything like it. It appeared as though public ip addresses were connnecting outward from my private network. It only started randomly happening after 9pm. They were making connections to random sites like google.pl and spickipedia.com. S... | make sure you don't have WinGate proxies bound unsecured to external interfaces that are reachable from the internet. If you do, then you will be picked up by port scanners, and unless you require authentication, used as an open proxy. Specifically it looks like the WWW proxy is accepting connections from the Internet ... | 0 | 0 | 257 | 2016-03-03T00:05:59.010 | database_errors | serverfault.com | |
48,697 | Variational AutoEncoder giving negative loss | I'm learning about variational autoencoders and I've implemented a simple example in keras, model summary below. I've copied the loss function from one of Francois Chollet's blog posts and I'm getting really really negative losses. What am I missing here? [CODE] latent sample func: [CODE] Loss func: [CODE] Another vae_... | Is your data is binary data. I think the binary_crossentropy loss is suited for the binary input. All the data in MNIST is binary. If your input is continuous like color image, try MSE loss or others. check it here https://github.com/Lasagne/Recipes/issues/54 | 2 | 0 | 3,949 | 2019-04-05T14:25:07.823 | data_quality | datascience.stackexchange.com | |
682,366 | Remote bash script execution via ssh causes local script to stop | I have a setup which behaves in a way i cannot get my head around. So I have a local bash script [CODE] which reads IP addresses from a file. It then calls a bash script [CODE] on each remote host, i.e. each IP address it calls. However, after the first remote execution via ssh, it just finishes. Here's my local [CODE]... | Look at the [CODE] manual, more specificaly the [CODE] option. If this doesn't work, try the [CODE] option. Also, I think your [CODE] script should [CODE] at the end. | 0 | 1 | 1,421 | 2015-04-13T15:15:21.030 | infrastructure | serverfault.com | |
355,512 | What file should be the DirectoryIndex in Apache to properly serve Munin graphs? | This is probably going to be one of those of course! answers, but I've spent all night looking up tutorials and FAQs on Munin and can't seem to find the answer. I have Munin installed, and I'm trying to serve the page that shows the graphs using Apache. My /etc/munin/munin.conf looks like this: [CODE] As you can see, t... | [CODE] should be [CODE] . Once you start [CODE] (or run [CODE] ) it will be auto generated. | 1 | 2 | 1,153 | 2012-01-31T18:12:16.620 | bi_errors | serverfault.com | |
641,516 | Configuring Passenger on Openshift | When running a Ruby application on Openshift, is it possible to specify custom Passenger configuration options? In particular, I'd like to override the value of [CODE] that's getting set in [CODE] . Unfortunately all files in that directory require root access to modify. Is it possible to override [CODE] without root a... | Currently it is not possible to edit that value in the supported OpenShift Ruby Cartridge (see product documentation for what is changable http://openshift.github.io/documentation/oo_cartridge_guide.html#ruby ). You can however create a custom ruby cartridge with your preferred settings and run that on OpenShift. | 0 | 0 | 341 | 2014-11-03T00:47:36.873 | infrastructure | serverfault.com | |
576,482 | Can't synchronize the user group in TeamCity | 0 user and group synchronized Below are my ldap log and settings. All I want to do is: 1. map the AD group "ccusers" to a group in TeamCity and create all users in that group. 2. Or add all users in AD group "ccusers" to "All Users" group in TeamCity. How can I setup this? [CODE] | If I understand well you should edit ldap-mapping.xml (or create it as a copy from ldap-mapping.xml.dist). You can create a map in this file. [CODE] Updated: I've compared your log and an one of mine. I see ie "Statistics: ... remote users=27, ... remote group=1". So I guess you could have a mistake in your filter or b... | 0 | 1 | 2,637 | 2014-02-18T15:31:08.280 | infrastructure | serverfault.com | |
373,989 | Name of technique for inferring type arguments of a type parameter? | Setup: Let's assume we have a type called [CODE] which has a type parameter [CODE] : [CODE] Then we have an interface [CODE] which has one method which will return an [CODE] . [CODE] The issue with [CODE] being generic is that we have to supply it with type arguments. One idea to solve this is to "infer" the type of th... | I don't know if there's a particular term for this problem, but there are three general classes of solutions: avoid concrete types in favour of dynamic dispatch allow placeholder type parameters in type constraints avoid type parameters by using associated types / type families And of course the default solution: keep ... | 9 | 2 | 588 | 2018-07-09T16:37:01.847 | api_errors | softwareengineering.stackexchange.com | |
1,143,715 | What does `static:rest` in the Postfix configuration mean? | In the Postfix configuration line (main.cf) [CODE] what is the meaning of “static:rest”? While [CODE] is explained in Postfix’ documentation as yielding the string [CODE] as is, I can only assume that [CODE] means “all not explicitly excluded mechanisms”. However, then there also is ”static:all” – is this an alias for ... | The list has to yield a result for all acceptable mechanisms. If you want to exclude entries without explicitly enumerating what remains, you need something in that list to match all remaining entries. This is not possible by just removing mechanisms using the exclamation mark, the list would remain empty and none of t... | 1 | 1 | 50 | 2023-09-14T14:34:32.200 | infrastructure | serverfault.com | |
1,014,829 | Is there such a thing as a Windows Tool to convert LDAP to LDAPS | I'm currently in the process of changing all of our companys systems that query our AD to secure LDAP connections. Our fax server unfortunately does not support LDAPS and upgrading it to a newer version is not possible due to time and money and the fact that we wouldn't take advantage of any of the new features. So cur... | A tool called ldaptor which can be used as a proxy between LDAP and LDAPS. For more information: https://ldaptor.readthedocs.io/en/latest/ Take a look into chapter ldap-proxy | 0 | 2 | 374 | 2020-04-29T16:05:25.257 | infrastructure | serverfault.com | |
408,547 | Collectd and graphite imports data every 5 minutes, rather than 1 minute | I'm a bit new to graphite, so bear with me on this. I'm looking into alternatives for a large and fairly unwieldy cacti installation, so I've been playing with graphite. We pull a lot of data via SNMP, so I've also downloaded, compiled and installed collectd to pipe SNMP data into graphite. I've set up a simple query w... | If you use the whisper-dump.py command on the appropriate whisper file, what does it show? It looks like it's not exactly every 5 minutes from the graph. Is it at all possible that you're just getting spikey network traffic? Also, for counters, it's always a good idea to use nonNegativeDerivative instead of Derivative ... | 2 | 2 | 4,586 | 2012-07-17T15:47:42.813 | infrastructure | serverfault.com | |
943,438 | Fail2Ban Postfix sometimes banning domain names instead of IP addresses in iptables | I'm running an Ubuntu server with Postfix serving as a mail relay. To prevent brute force attacks, I installed Fail2Ban and configured it to look at [CODE] to ban IPs accordingly. I'm using the default Postfix filter [CODE] that comes with Fail2Ban, configured to the strictest detection mode so that it captures SASL lo... | I don't think that this is something that fail2ban actually does, rather I suspect that you are being confused by [CODE] looking up the names for presentation purposes. Add [CODE] to your [CODE] command to disable this. From the [CODE] manual (emphasis added): -L, --list [chain] List all rules in the selected chain. If... | 0 | 4 | 1,264 | 2018-12-08T14:53:56.477 | infrastructure | serverfault.com | |
1,082,906 | Python deployment fails with "packaging 21.2 has requirement pyparsing<3,>=2.0.2, but you have pyparsing 3.0.5." | Issue in google app engine: previous deployment 1 week ago was ok, now i get "packaging 21.2 has requirement pyparsing =2.0.2, but you have pyparsing 3.0.5." both packages are not defined in the requirements.txt file. It looks like a new packaging version 21.2 was deployed automatically. How to solve this? Update: bein... | Manually installing pyparsing 2.4.7 has been reported to work. I released pyparsing 3.0.6 today, in which I try to accommodate the issues in the packaging code that uses pyparsing. 3.0.6 fails 1 unit test of packaging 21.2 that tests for a specific string in an exception message, but otherwise all tests pass. Please tr... | 2 | 2 | 587 | 2021-11-08T10:03:28.703 | pipeline_ops | serverfault.com | |
147,039 | Why is this explicit cast causing problems only with a Linked Server? | I am querying data from a linked server through a view on the origin server. The view has to include a couple of standardized columns, such as [CODE] , [CODE] and [CODE] , but in this case the table on the source server doesn't have any suitable info. The columns are therefore explicitly cast to their respective types.... | So, I was able to reproduce the error after realizing that the [CODE] was being done locally, not on the remote instance. I had previously recommended moving up to SP3 in the hopes of fixing this (partially due to not being able to reproduce the error on SP3, and partially due to it being a good idea regardless). Howev... | 21 | 13 | 8,275 | 2016-08-17T07:42:58.470 | api_errors | dba.stackexchange.com | |
573,378 | How can I run a full OS in a Docker container, without specifying a command? | I'm following the CoreOS Docker Documentation and it mentions starting containers with commands like: [CODE] Where [CODE] is an image. When /bin/somebinary exits, the image will no longer be running. I would simply like to run an image, without specifying any binaries to run. Instead, I simply want to run the services ... | As documented here, you simply run [CODE] as the command just like any other unix booting from single user to multi-user mode. https://stackoverflow.com/questions/19332662/start-full-container-in-docker Containers can be full blown OS's, they just don't have to be (neither do VMs for that matter, it's just more complic... | 32 | 26 | 70,473 | 2014-02-05T14:51:00.647 | pipeline_ops | serverfault.com | |
84,592 | Why don't databases have good full text indexes | Why don't any of the major RDBMS systems like MySQL, SQL Server, Oracle, etc. have good full text indexing support? I realize that most databases support full text indexes to some degree, but that they are usually slower, and with a smaller feature set. It seems that every time you want a really good full text index, y... | The short answer is because text retrieval has almost nothing in common with how traditional databases are designed and used. Someone who is an ace at creating/using an RDBMS is like a lamb to the slaughter when they approach text retrieval for the first time. (Sorry for the long answer, but I'm sick in bed today and I... | 13 | 21 | 5,131 | 2011-06-16T19:32:43.603 | database_errors | softwareengineering.stackexchange.com | |
62,957 | I'm Lost: I'd like to use client-certificates to authenticate users' access to our web server | (Windows Server 2008) We have a web server that we'd like to limit access to. I thought a good way to do this would be to issue certificates to ours users. Unfortunately, This IIS & Tutorial either did not work or I failed to implement it properly. With or without an installed client certificate, I get 403 Access Forbi... | The article you mentioned appears to be a rough, but correct, overview for doing exactly what you're looking for. I don't think there are any easier alternatives for this. You're going to have to rely on functionality built into a web-server, or maybe a custom tool, to solve your problem. I don't believe there's any ea... | 1 | 1 | 1,784 | 2009-09-07T06:56:06.053 | api_errors | serverfault.com | |
1,035,351 | Cannot activate Logical Volume which was managed by Pacemaker | I have two CentOS 7 servers that clustered with Corosync and Pacemaker to work in Active/Passive way. The whole idea was to move the mount point in case of a problem emerges in the active node. My client wanted to do security hardening and after that, they rebooted the servers. After reboot, I wasn't able to start the ... | Ran into this today on a Dell HA setup. Not sure if this is specific to their implementation, or if it's standard everywhere, but SuSE's KB "Getting errors while trying to activate a shared LVM volume group" led me to add the shared volume group to the [CODE] setting in [CODE] . Once that was done, I could do an [CODE]... | 1 | 0 | 1,940 | 2020-09-25T15:30:16.920 | infrastructure | serverfault.com | |
18,079 | why is SVM cost function the norm of the hyperplane parameters, and not the mean square error? | working through Dr. Ng's coursera course cost function intro : basically, you want to minimize the difference squared between your guess and the actual value cost function for SVM: this or this he says the cost function is now the norm of the vector representing the hyperparameters: sqrt(theta_1^2 + theta_2^2... ) Why ... | Given a linearly separable data set, the intuition behind the SVM-algorithm is to find a hyperplane that seperates both classes and maximizes the margin (which is twice the distance of the hyperplane to the closest data point) . So from all hyperplanes that seperate both classes, we want to find the one with the bigges... | 1 | 6 | 455 | 2017-04-03T14:57:50.457 | data_quality | datascience.stackexchange.com | |
143,822 | issues with creating varchar returning functions | I have an issue while creating functions in sql server, am very new to sql server Below mentioned is the code which i used, please any issues with syntax. [CODE] | From the documentation : [CODE] So, the return statement must be the last one. Use a variable to store your return value and add in the end return @retval. | 1 | 4 | 338 | 2016-07-14T06:56:24.440 | database_errors | dba.stackexchange.com | |
570,851 | High CPU usage in RHEL machine | I have RHEL machine that runs postgres-9.1 database. In a particular time, [CODE] output shows as follows: Refer link for snapshot: http://imgur.com/gKcOhOX,vNwTpwC#0 where as [CODE] is high between 12:50 AM and 1:50 AM & others are asusual, and later the usage of [CODE] goes down. I'm observing this daily. [CODE] show... | Your screenshot shows that some client using IP adress 10.5.183.37 is running some [CODE] query. This client connected at 00:46 and it's corresponding Postgres process has used over 57 minutes of processor time. Search for a cron job on a computer with IP adress 10.5.183.37 starting every day at about 00:46. | 0 | 0 | 389 | 2014-01-29T20:38:56.393 | infrastructure | serverfault.com | |
1,020,562 | IIS - Request filtering is configured on the Web server to deny the request because the content length exceeds the configured value | (For starters, I have found a lot of info here on SO, and have followed a lot of the information to no avail.) I am getting the following error when I upload multiple files to the server. HTTP Error 404.13 - Not Found The request filtering module is configured to deny a request that exceeds the request content length. ... | FIXED IT!!!!!!!!!! From knowledge.broadcom.com - How to increase Document upload size limit I did the following First, I did the below on all the Webservers, But still the same error. Then I did the same to the ARR server, as it is the entry and WA-LA. Works. Install Request Filtering role to your Web Server IIS. Open ... | 2 | 4 | 20,501 | 2020-06-08T18:26:36.287 | api_errors | serverfault.com | |
358,913 | Is storing a list of strings in single database field a bad idea? Why? | Recently, I started to work on some legacy system. People that developed it, came to an idea to store list of strings in single field of database table. Lets say that it is an identifier for object that does not have any representation nor data in database. The range of that identifiers will be relatively small in prod... | The datamodel isn't normalised; to be so it would need a separate table as you say. In that regard, it's not particularly good datamodelling practice. Whether it was done for a good reason or not is difficult to determine. Conceivably, coding simplification or performance may have been motivators. As likely is that the... | 16 | 19 | 29,980 | 2017-10-10T16:35:52.823 | api_errors | softwareengineering.stackexchange.com | |
549,517 | What does Apache's "Require all granted" really do? | I've just update my Apache server to Apache/2.4.6 which is running under Ubuntu 13.04. I used to have a vhost file that had the following: [CODE] But when I ran that I got a "Forbidden. You don't have permission to access /" After doing a little bit of googling I found out that to get my site working again I needed to ... | The access control configuration changed in 2.4, and old configurations aren't compatible without some changes. See here . If your old config was [CODE] (no IP addresses blocked from accessing the service), then [CODE] is the new functional equivilent. | 135 | 112 | 363,503 | 2013-10-29T21:51:36.583 | infrastructure | serverfault.com | |
888,501 | What are some best-practice ways to view the occasional Java applet in the medium-term future? | I've just encountered a Java applet on a random website and I'd like to start it. Given Chrome's relentless incompatibility with plugins since time immemorial, I went and asked on irc.mozilla.org what the best older Firefox version to use might be, as I know that the very latest versions have removed NPAPI plugin suppo... | The best practise is to get your application signed properly. Any other method makes your application insecure against many attacks, and therefore is not suitable for professional use. | 0 | 2 | 95 | 2017-12-17T02:16:40.203 | database_errors | serverfault.com | |
302,057 | Change dynamic SQL to Static SQL with order by | We have a SP that has a Dynamic SQL and one of the parameters it gets is order by. when we use the dynamic we can do something like this [CODE] then the order by is by the column that the number is referring to. where if we use a static SQL I know I need to do something like this, but it does not work (sql 2019) , is t... | If you’re using [CODE] as number, and expecting to be able to order by any column in your result set, you’ll need to have one of those Case expressions for each one. What you have at the moment will only order by the column [CODE] . But if you have a column called [CODE] then this structure should work for making it so... | -1 | 1 | 447 | 2021-11-03T06:31:20.727 | warehouse_errors | dba.stackexchange.com | |
129,133 | Access denied when starting SQL Server Express from command line | Windows 7 computer running SQL Server Express 2008 (sp1). When I try to run net start mssql$sqlexpress I receive an error: System error 5 has occurred. Access is denied The SQL service is running under "Network Service" account The service starts fine if I use the services window. Could somebody help me figure out why ... | Are you using an elevated command prompt if UAC is enabled? To elevate a command prompt type CMD into the search box and hit ctrl+shift+enter If you wish to elevate batch files, right click on them and use Run As Administrator, or launch them from inside an elevated command prompt. The other option is disabling UAC. | 0 | 2 | 3,145 | 2010-04-04T00:04:20.623 | database_errors | serverfault.com | |
598,750 | Connection timed out on Node.js app running under CentOS | I followed this tutorial to create a simple node.js app on my CentOS: the node.js version is: [CODE] Here's my [CODE] : [CODE] However, when I uploaded this app onto my remote server (assume the address is 123.45.67.89), I couldn't get access to it on my browser [CODE] The browser returned [CODE] . I tried the same app... | I'm going to guess that you didn't open your firewall for port 8080. You can do this using the iptables command [CODE] If this works you can save your firewall state with [CODE] | 2 | 2 | 4,143 | 2014-05-27T08:43:42.160 | infrastructure | serverfault.com | |
832,905 | How to install mongoDB on Fedora | I want to install mongodb on fedora 25, but i get this error : Redirecting to '/usr/bin/dnf install -y mongodb-org' (see 'man yum2dnf') Failed to synchronize cache for repo 'mysql57-community', disabling. Failed to synchronize cache for repo 'mongodb-org-3.4', disabling. Failed to synchronize cache for repo 'mysql-conn... | You are probably using this repository [CODE] It doesn't work on Fedora for two reasons: This repository is only for RHEL or CentOS 6/7 [CODE] should be 6 or 7 (and not 25+) If you want to install mongo (v3.4 on February 2018) in fedora, you can use the normal repository: [CODE] Source: Install Mongo on fedora Official... | 0 | 2 | 3,279 | 2017-02-16T11:35:51.023 | database_errors | serverfault.com | |
352,711 | FreeRADIUS 2 should use a different Python than default | We've got a FreeRADIUS 2 deamon installed on a CentOS 5.7 server. We'd like to use a pre-written Python module to do authorization but there's a problem: The Python module we've got requires Python 2.6 or more but the Python that comes installed with CentOS is Python 2.4 . Now, the server admin have installed Python 2.... | Open up the init script (something like [CODE] ). You then need to locate the line where it's launching the application, and change any instance of [CODE] to [CODE] . | 8 | 1 | 677 | 2012-01-23T13:42:19.843 | infrastructure | serverfault.com | |
148,507 | Sendmail problem | I am trying to get my server to be able to send email from PHP. Currently it is using send mail, but whenever I try to send mail to a gmail address I get this sort of response: [CODE] How can I set this up to relay through a google account that I own? Is sendmail the best thing to use, or should I switch to Postfix or ... | Your server address may be listed as a dynamic address, which should never be sending email into the Internet directly. The standards provide of a layer of trust and require static addresses with correct rDNS configuration. Almost all the spam I get comes from dynamic addresses. You should setup your server to send out... | 0 | 1 | 236 | 2010-06-05T14:53:22.870 | infrastructure | serverfault.com | |
54,946 | Error with FTP since binding via httpcfg | I was in a similar posistion to this question and bound two IP addresses using httpcfg. Since doing this ftp does not seem to be working on IIS6 in Windows Server 2003. Any ideas what could be wrong? The command I ran was: [CODE] I get the following when I try to conenct via Filezilla: [CODE] The log file is returning ... | The issue is with IIS. When you use httpcfg you have to restart the IIS admin services, not just IIS (i.e. restarting IIS via 'All Tasks' WON'T WORK). After your 'set iplisten' command, type: net stop http /y Then: net start http Then go into IIS and restart it... | 1 | 1 | 251 | 2009-08-17T11:31:50.327 | infrastructure | serverfault.com | |
412,483 | Export huge excel file | I develop a web application in Angular (frontend) and Scala (backend) for a big data team. Because they use large files for export/import, I build a module which is a copy of Microsoft Excel. So, what is the flux for import files: the client send the file to api1 api1 save the file on a temp folder and send response to... | My question is ... how I can map db tables in excel files to give it to users instantly, when they want to download a table? Simple answer: you can't, unless you have the files prepared in advance. [CODE] files are ZIP archives which can't easily be produced in a streaming fashion, so to give one to the user you will n... | -2 | 5 | 575 | 2020-07-08T09:39:22.313 | spark_errors | softwareengineering.stackexchange.com | |
1,098,802 | Assigning a Public IPv4 automatically to every KVM VM thats being created? | Im wondering how would i go on about assigning a public ipv4 to each vm thats being created. Setup : Host Server with 3 IPs on CentOS8 using libvirt and kvm to virtualize Bridge br0 using eth0 as interface. After a lot of Trial and Error i managed to do it manually by using a bridge and assigning the IP-Address to the ... | This is what DHCP is for. You can freely choose their MAC addresses, right? Setup a DHCP server on the system in the same (possibly, virtual) ethernet segment as VMs, and bind your IPs to certain MACs. You will also need to distribute some routes (use DHCP options 121 and 249). The machine with DHCP server itself doesn... | 0 | 0 | 1,580 | 2022-04-17T13:11:56.720 | infrastructure | serverfault.com | |
844,163 | Client Certificate Authentication Apache 2.2 | I have a web server run by Apache 2.2 on my Debian Linux. I have a root and intermediate CA within Apache. The intermediate CA created my web server cert, as well as client certs. I would like to use the client certificate's CN as the username when my RADIUS server prompts me for credentials. I'm looking at Apache's we... | Since my version of Debian is Wheezy (7), I had to use apache 2.2 and use a clever work around. Here's my Apache configuration (with a couple lines omitted): [CODE] The [CODE] takes everything in my certificate and uses it as the username and has the password of 'password'. I have RADIUS configured to check the usernam... | 0 | 2 | 215 | 2017-04-12T16:13:26.487 | api_errors | serverfault.com | |
253,845 | Incredibly long execution time for a update query? | I am using MySQL 5.6. In my table [CODE] I added two datetime columns that I will be setting, based on if another column is a certain value. [CODE] There are only 205 records that have state =6 and 3,500 total records. After 5 minutes I canceled the query, made an index on the state column, and tried again. After 10 mi... | Your problem is simple PROBLEM #1 : KEY DISTRIBUTION The MySQL Query Optimizer evaluates the best course of action and publishes it in the EXPLAIN plan. Note that the EXPLAIN plan says [CODE] while using the index on the [CODE] . That is an index scan. I have a basic rule-of-thumb I always go by : If an index has to re... | 2 | 0 | 134 | 2019-11-21T14:28:13.157 | database_errors | dba.stackexchange.com | |
87,445 | Windows 7: Windows Server 2003 not appearing | I have a SOHO Windows Server 2003 network with three clients, all Windows 7 (upgraded from XP and Vista). The network has been up and running for about a year, with no problems. Since the client upgrades, the server intermittently disappears from the "Network" window listing in Windows Explorer. Sometimes it's there; s... | If I recall correctly, this functionality takes place through the Master Browser service as opposed to AD (which would correspond with your note that searching for the Server in AD or accessing it directly works fine). I would start by taking a look at the "Troubleshooting the Microsoft Computer Browser Service" KB art... | 1 | 0 | 218 | 2009-11-23T19:01:02.730 | infrastructure | serverfault.com | |
149,724 | Web API design best practices - having many (similar) operations | I have a web service (axis2) and the server performs 4 primary operations: createX, removeX, getX and updateX Where X is represented by a combination of 4 values: id1, id2, id3 and id4 So, to simplify developer life, we created 3 extra helper functions: removeXForId, getXForId and updateXForId where we represent the se... | It would make more sense to me to organize the API around resources and use the verbs (GET, PUT, POST, DELETE) that come with the http protocol, in short: Make it more RESTful , that is surely considered good practice. This is a good succinct talk on API design that also analyzes popular APIs such as facebook's or twit... | 0 | 4 | 1,350 | 2012-05-22T20:46:06.340 | data_quality | softwareengineering.stackexchange.com | |
671,371 | amazon web services ec2 ftp filezilla | I am trying to make vsftpd to work with the centos 7 ami from centos. After installing vsftpd I edited the config file and made these changes: [CODE] and then I started vsftpd [CODE] also opened tcp port range 20-21 and port range 1024-1048 under security groups on AWS website, and set SELinux to permissive when I try ... | This thread is a few months old but I just came across the same problem and manage to solve it. In [CODE] I disabled IPv6 and enabled IPv4 by changing 2 lines: originally: [CODE] changed to: [CODE] Hope that helps! | 0 | 6 | 4,157 | 2015-02-25T17:08:16.810 | infrastructure | serverfault.com | |
558,406 | Why does static vs dynamic process management affect memory usage so much for php-fpm? | I recently migrated a client to an EC2 instance running Nginx + PHP-FPM. When I first setup the server I had set [CODE] with 40 worker processes. After a week or so I decided to experiment with [CODE] with a max of 200 and a min of 30 workers. What I noticed was that with a static setting, 40 processes took up about 2.... | [CODE] is not specific to any Process Manager ( [CODE] ) mode. Its benefits are to respawn worker processes after the specified amount of requests they handle individually. It could avoid memory leaks in extreme cases, but usually it just frees up memory allocations accumulated when memory-hungry scripts were executed.... | 7 | 7 | 4,773 | 2013-11-30T18:33:15.550 | infrastructure | serverfault.com | |
332,286 | bind9 upgrade on Linux lenny distribution | I have to update my bind9 package in my Debian lenny server. Please suggest me what is the best way to do this. This server does not have internet connection. And this operation should not affect the exist system setup. Can any one please suggest me on this. Thanks | For disconnected machines, the [CODE] tool promises to make installing packages tolerable: [CODE] You could look into the Debian backports repositories to bring newer software to older distributions. It might not be transparent to the rest of the system, but hopefully better than relying on compiling from source. | 1 | 2 | 165 | 2011-11-18T07:37:04.373 | infrastructure | serverfault.com | |
868,254 | How do I properly rejoin all my clients to new domain controllers using the same domain name? | There are many posts about re-establishing lost trust relationships, but I think this situation is different than what I've read. I had 2 2012 R2 DC's in my network and when the primary DC failed, the secondary DC did not hold the domain up. I repaired the primary DC, but could never quite fix the issues with the secon... | First, Make sure your new secondary dc get a copy of the global catalogue too please. As your old dc should had worked to take the load. For your question as its a small business I you recreate each user account, but I would unjoin each workstation from the domain to make them rejoin it after, to prevent sid issue with... | 1 | 1 | 948 | 2017-08-11T20:42:19.910 | database_errors | serverfault.com | |
49,625 | PPO, A2C for continuous action spaces, math and code | Edit: Question has been edited to better reflect what I learned after asking the original question. I implemented the clipped objective PPO-clip as explained here: https://spinningup.openai.com/en/latest/algorithms/ppo.html Basically I used a dummy actor network to find the new action probability without training the l... | Packt Publishing's "Deep Reinforcement Learning Hands-On" has an entire chapter on continuous action spaces. Here is the math in the book: and the code accompanying the book: code repo for book The code for the math above is in: The complete source code is in Chapter14/02_train_a2c.py , Chapter14/lib/model.py and Chapt... | 2 | 1 | 6,166 | 2019-04-20T06:42:14.927 | data_quality | datascience.stackexchange.com | |
489,247 | CentOS won't present login menu after a new service was defined | Yesterday I was trying to install Ganglia in my virtual machine. After I defined Ganglia as a service I reboot the machine, but after that CentOS won't present the log in menu anymore. I think it's because Ganglia service is blocking the system from starting properly, because I was able to show the start commands that ... | Boot into single user mode and disable the service in other runlevels, then switch to RL3 (or 5) or reboot normally. | 1 | 1 | 168 | 2013-03-19T12:53:41.980 | infrastructure | serverfault.com | |
879,096 | Need a .ps1 command to run at user login via GPO | How do I get the following command to run at user login (users don't have local admin privileges) via GPO (or some other way) to add VPN connection [CODE] I tried following this guide: https://technet.microsoft.com/en-us/library/ee431705(v=ws.10).aspx But the sample script and .xml file link referenced resolves to 404 ... | Inside your GPO's Group Policy Preferences, create a scheduled task that triggers at logon running with system perms. Follow the Weekend Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script post but use the 'When I logon' trigger and set to use SYSTEM credentials. | 2 | 0 | 329 | 2017-10-18T14:43:00.443 | infrastructure | serverfault.com | |
156,751 | SQL Server 2014 SQL Job CmdExec and access denied | I have a little trouble with SQL Agent Job. It should execute program in network directory like [CODE] . Job Step uses proxy account with credentials of a user, which can full access that directory. Unfortunately job still can't access network directory with error: Access is denied If I set permission on directory to [... | When you configure a Proxy account, you have to check "CmdExec" subsystem in order to use CMDExec with this Proxy Account. | 3 | 2 | 5,498 | 2016-11-30T10:40:48.310 | api_errors | dba.stackexchange.com | |
597,433 | Cisco 887VA Port Forwarding Not Working | I have a Cisco 887VA connected to our BT Business Broadband line. We also have another modem on a seperate connection which also handles our DHCP. The Cisco is plugged into our network switch, as is the BT modem for our other internet connection. A select few machines in our office are going to be manually configured t... | First of all, remove the line: [CODE] you don't need it, the default gw should point to Dialer0 only. As for port forwading, this should work for port 80: [CODE] Basically, [CODE] is your local IP, [CODE] is your local server port, [CODE] means whatever IP [CODE] gets from ISP (I think you can also put your public IP h... | 0 | 0 | 1,991 | 2014-05-21T09:06:20.747 | infrastructure | serverfault.com | |
530,156 | lighttpd rate limits per directory | I'm creating a site with a large number of small tools. One is a tool which uses a Python cgi-script that interacts with the Natural Language Toolkit (nltk), which is disk and CPU intensive. I have other services that are less intensive. On the client side, these are rate limited with JavaScript throttling. A malicious... | To directly answer your question, take a look at ModEvasive and Traffic Shaping from Lighttpd. As an alternative/in addition to what you mentioned, you should be able to throttle connections per second using iptables rules. And finally, consider using some sort of application (message) queue mechanism. That way no matt... | 2 | 3 | 517 | 2013-08-11T04:44:16.477 | api_errors | serverfault.com | |
47,519 | AttributeError: module 'selenium.webdriver.common.keys' has no attribute 'RETURN' | When I run my script it gives me this error: [CODE] Here is my code: [CODE] | See the documentation: https://www.selenium.dev/selenium/docs/api/py/webdriver/selenium.webdriver.common.keys.html instead of : [CODE] you need to use: [CODE] | 0 | 0 | 1,590 | 2021-05-24T11:45:17.790 | data_quality | sqa.stackexchange.com | |
799,659 | Why does php5-fpm execution slow down only when multiple wordpress sites are active? | I'm using a LEMP stack, with separate php5-fpm pools for two wp pages. Both nginx and php5-fpm pool config files are identical except for site and the socket names. I do static pools with 2 workers each. The observed phenomena are the following: If I have only one site active, it is super quick to load If I have two si... | If you have static pools with two workers each, you basically run out of workers for the PHP scripts all the time. If two requests arrive at the same time, one has to wait until a request is finished until a further request can be served. If there are tens of requests coming in at the same time (for example, [CODE] and... | 0 | 1 | 925 | 2016-08-29T02:23:04.437 | infrastructure | serverfault.com | |
428,818 | change selinux property of a file? | Possible Duplicate: Permission denied in vhost document root Apache cant process my files due to forbidden error, searching resulted that it might be because of selinux, how can I change selinux policy of a specific file? It's Centos 6.x | [CODE] | 0 | 1 | 193 | 2012-09-16T08:16:54.143 | data_quality | serverfault.com | |
24,604 | OpenCMS throwing Java Exception on TomCat Start | The Setup:- OpenCMS running on TomCat5.5 System running on FreeBSD with the DiabloJVM The OpenCMS system was working then after a restart of TomCat it stopped loading. The Database server (postgres) running on a different host has been rebooted and responds correctly. Any suggestions to get it running? When TomCat star... | I faced with that exception too, when trying to deploy OpenCMS and OpenEJB on the same Tomcat instance. It seems that OpenCMS and OpenEJB doesn't like each other. However, I found a workaround: After deploying OpenCMS on Tomcat startup, I used The Manager webapp to upload and get OpenEJB running. It worked fine for me. | 1 | 2 | 1,086 | 2009-06-12T08:35:27.650 | infrastructure | serverfault.com | |
203,063 | Why is CHECKDB reading the transaction log file on a database with a memory optimized table? | tl;dr : why is CHECKDB reading the transaction log for a user database with memory optimized tables? It appears that CHECKDB is reading the transaction log file of the user database when it's checking on one of my databases - in particular, a database that uses in-memory OLTP tables. CHECKDB for this database still fin... | Even though the SQL Server documentation states that databases with "In-Memory" tables do not support snapshots, the "internal" snapshot required for [CODE] can still be created since the checkdb operation does not touch in-memory tables, and the snapshot only captures changes to the on-disk tables. Presumably, Microso... | 17 | 10 | 1,238 | 2018-04-04T19:49:25.827 | database_errors | dba.stackexchange.com | |
42,871 | Differences between IE6 and later with regard to HTTPS handling | Straight to the question: Does anything have a good resource for details of what changed between IE6 and IE7, specifically that might make IE6 unable to connect to HTTPS resources on a IIS7 (Windows 2008) based web servers? Our assumption is that the servers are only accepting newer protocol versions/variants than IE6 ... | Have you sniffed the client-to-server handshake between IE6 and the IIS machines yet? ( http://en.wikipedia.org/wiki/Transport_Layer_Security#TLS_handshake_in_detail ) I suspect that this will give you the first bit of information about what's going wrong, especially if you compare the handshake to a working IE7-based ... | 1 | 4 | 2,479 | 2009-07-20T09:04:03.320 | infrastructure | serverfault.com | |
7,234 | indexes, foreign keys and optimization | Not a DBA so pardon my ignorance... I have a table with 20 fields of which 8 are foreign keys. Mysql has by default added an index for each foreign key. Table has about 100k rows. When retrieving the data some of the foreign keys are used and some are not. Also, I would like to add indexes to two more fields that are u... | In the example you show, the expression would use the index on [CODE] to resolve which rows to retrieve, and the leaf nodes in the index contain references to the corresponding rows, either by physical location in the case of MyISAM or by primary key value in the case of InnoDB. That way it avoids a full table scan. No... | 4 | 6 | 8,165 | 2011-10-20T13:20:16.223 | data_quality | dba.stackexchange.com | |
471,943 | Auto-configuring postfix using dpkg-set-selections | On Ubuntu 12.04, I'm trying to use [CODE] to automagically configure postfix on deployed machines with the following: [CODE] Unfortunately, the configurator insists on adding mydomain.org to the [CODE] (aka [CODE] ) config parameter: [CODE] How can I configure this properly? I want any unqualified mail to go out as [CO... | I think the problem is in the install scripts, [CODE] has some interesting code about it, and some comments: Add a 'mydomain' entry in main.cf for upgrade? Postfix version 2.3.3-2 and later require changes in main.cf. Specifically, mydomain must be specified, since hostname(1) is not a fully qualified domain name (FQDN... | 4 | 1 | 2,114 | 2013-01-24T03:16:38.163 | infrastructure | serverfault.com | |
942,601 | Intermittent http connection failure | We have two servers, ie [CODE] One of these acts as the primary web server for our two main websites, example.com and example2.com. The other acts as a backup, which we can switch traffic to by changing the DNS records. example.com and example2.com are two separate sites, but they each rely on the other's apis. So, reg... | It turns out the issue was that several times a day we download large feed files and import them into MariaDB. The file imports weren't causing a problem, since they're naturally throttled by the internet. However, we also have replication set up between our servers, and when each of these massive tables was imported, ... | 0 | 0 | 1,052 | 2018-12-03T04:21:07.077 | api_errors | serverfault.com | |
217,672 | Ubuntu cannot resolve unmet dependency | I'm trying to install a package on my Ubuntu 8.10 server. However, I get this message: The following packages have unmet dependencies. webmin: Depends: apt-show-versions but it is not going to be installed E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution). So I run [CODE] which of... | The ubuntu 8.10 is not any more supported. Have a look at this link . Ubuntu 8.10 (Intrepid Ibex) was released in 30 October 2008 and maintained to 30 April 2010. So, you need to upgrade your server using: [CODE] But, you need to have [CODE] package installed. Otherwise, you may need to re-install a newer version of ub... | 1 | 2 | 2,536 | 2010-12-31T13:15:27.880 | hadoop_errors | serverfault.com | |
114,911 | Crontab repeats every 15 min | My cronjob is being repeated every 15 minutes and I don't have any idea why. Here is the crontab file with real commands replaced: [CODE] I modified crontab and restarted the server. Everything started as expected. But it kept repeating the command every 15 min. My command is a sh script which uses wget to start web se... | cron does not reattempt jobs. It simply runs commands on a schedule. It does not necessarily care if they succeed or fail. cron also does not impose any sort of timeouts. You may want to check your syslog and /var/log/cron (at least that's where it is on RedHat-style systems). Also, if the user owning the crontab is no... | 1 | 4 | 1,667 | 2010-02-20T13:07:40.177 | infrastructure | serverfault.com | |
104,311 | Let Mac users unclog print queues | In one of the schools I work at, I was told that users are having trouble printing -- that the print queues keep getting jammed, and they are prompted for a password that they don't have to unjam them. Our users are using Macs running OS X 10.5.7. The computers are printing directly to a network printer (ie. without go... | To avoid messing with cupsd.conf (and risking stompage), you can add users to the _lpadmin group: [CODE] or just add everyone: [CODE] BTW, membership in _lpadmin grants both the ability to manage queues, and also configure printer settings; if you just want to grant queue management, I believe you can do that by adding... | 3 | 3 | 3,688 | 2010-01-19T19:51:21.110 | infrastructure | serverfault.com | |
13,803 | What is the simplest way of excluding the current row from the result of an analytic? | I want to do something like the following: [CODE] but I want [CODE] to show the next lowest if the current row is the lowest for a given [CODE] , or [CODE] if it is the only one. In other words I want this result: [CODE] What is the simplest way of achieving this? | There may be a simpler way, but here is a solution. If the current row is the minimum foo for the bar, then we always want the next (lead) foo. When there is only one foo for a bar the lead will always be null and for every other case we really do want the minimum foo for the bar. [CODE] Unfortunately [CODE] doesn't ex... | 3 | 3 | 3,833 | 2012-02-23T18:55:13.623 | warehouse_errors | dba.stackexchange.com | |
34,691 | MySQL Installation error: Unable to update security settings | I tried to configure MySQL server 5.5 on Windows and this is what I got: [CODE] Any thoughts? I found this article on it, but I'm not really sure what to do. I tried getting random processes to work but it didn't seem to change much. | Problem was with root access and firewall. To fix this I: Ran it on a machine with full root acces Added all MySQL items to firewall list and ran reconfiguration of the MySQL Ability to access root is important. I tried repeating this on a machine were I do not have root access and failed on every attempt | 1 | 1 | 10,676 | 2013-02-13T19:03:22.540 | database_errors | dba.stackexchange.com | |
811,635 | apt-get fails with unmet dependencies: Breaks, Depends, Recommends - what does it all mean? | I am attempting to patch the Dirty Cow vulnerability by running the following command on my Ubuntu 12.04 server: [CODE] This results in the follow error(s): [CODE] What do I need to do in order to fix these errors? | I recommend to fix the dependencies dist-upgrade is complaining about to run these commands in order separately to update and upgrade and thusly correct any dependencies that are not currently being met. [CODE] then [CODE] then [CODE] Together update with upgrade has helped correct a lot of issues I've stumbled into in... | 0 | 0 | 885 | 2016-10-27T10:54:41.857 | infrastructure | serverfault.com | |
346,526 | Nginx can't find PCRE library on Ubuntu Server | I have been trying to get my Passenger and Nginx setup to work with php files but I am having problems with the PCRE regular expressions library. Install all went fine so I'm assuming it found the libraries at that point but now when I include a regex for PHP files in my nginx.conf file, I get the following error when ... | Nginx is different from Apache. If you want PCRE support enabled you have to recompile it. If you installed Nginx from passenger gem, you should execute again the passenger-install-nginx-module | 0 | 1 | 2,230 | 2012-01-04T14:58:34.350 | infrastructure | serverfault.com | |
324,022 | How to Retrieve (Debit, Credit and Balance) from daily Transaction tables (Customer, Invoice, Payment) Full and Date Range) | There are 3 Tables Customer, Invoice and Payment. Customer Link with Invoice and Payment table. Question is, need to retrieve statement wise Debit, Credit and Balance. main issue is opening balance not getting from date range. I provide sample data with queries. Customer Table: (When inserting a new customer, if they h... | I compressed your example DDL/DML a bit: [CODE] [CODE] This is one approach that gets you the required output. First, we UNION the three sets of data together in a unified format. Notice that I put the debits and credits in the balance column, and multiplied the debits by negative 1, Once we have a unified set of data ... | 5 | 2 | 1,378 | 2023-02-24T18:02:01.017 | api_errors | dba.stackexchange.com | |
333,858 | Cannot drop the database encryption key because it is currently in use | I want to create a backup of my sql managed instance database to blob storage. However am encountering the below error after trying to turn off encryption key as follows: [CODE] I have read all MS documentation and everything is pointing to what I have done above. What am I doing wrong here? | The error message indicates that you cannot drop the database encryption key because encryption is still in use. To resolve this issue, you should follow these steps: Check Encryption State Ensure that the database is not actively using encryption. [CODE] If the [CODE] is not [CODE] (unencrypted), then encryption is st... | 0 | 0 | 197 | 2023-12-08T09:14:31.950 | database_errors | dba.stackexchange.com | |
268,589 | Can filtering be done more efficiently with/without sql joins? | I have a simple problem that has a simple solution with SQL, but would like to explore alternative ways to solve it if they turn out to be more efficient on large scale. Let's assume that we have a system where we have users, videos and list of videos users have viewed: [CODE] The question is: How would we find all the... | I don't understand your two choices, but I feel sure that a [CODE] is involved. Ponder something like this: Step 1: [CODE] But, beware, the output could be very long. I don't know if you need [CODE] after [CODE] . Step 2: Now to peel off the 30 highest ranked ones: [CODE] Unfortunately, the query must find all the un-v... | 0 | 0 | 61 | 2020-06-05T15:38:55.200 | database_errors | dba.stackexchange.com | |
637,300 | How to debug nginx + php-fpm download failures? | Downloads fail after all data downloaded on nginx + php-fpm. I'm controlling downloads of zip files (roughly 100mb each) with a PHP script that streams the file directly to the client. I'm using php-fpm under Ubuntu 14.04 with nginx. Occasionally the download succeeds, but generally it fails after streaming all the dat... | It seems to be partly a timeout. This tekovic link helped : Basically you need to set the fastcgi_read_timeout value in the content section to a reasonably number of seconds allowed before download starts (defaults to 60s). [CODE] According to the nginx wiki "Directive sets the amount of time for upstream to wait for a... | 0 | 0 | 1,405 | 2014-10-15T20:01:05.293 | data_quality | serverfault.com | |
537,226 | Disable syslog remote connections | I'm securing a server and closing all the ports that are not used, but i can't close the syslogd port, even worse I cannot find where the syslogd is called. This is what sockstat shows me: [CODE] and the rc.conf: [CODE] I only need the sshd service. | You can disable remote logs adding the following line to the file '/etc/rc.conf'. [CODE] Or use this one to close the network sockets: [CODE] After added the syslogd_flags you can use this command to restart the service: [CODE] | 3 | 5 | 1,608 | 2013-09-07T23:28:32.090 | infrastructure | serverfault.com | |
315,039 | INSERT ON CONFLICT DO UPDATE SET (an UPSERT) statement with a unique constraint is generating constraint violations when run concurrently | I am attempting to run an Postgres [CODE] in fairly concurrent code. I have been seeing a [CODE] error when my service is under load. By way of a reduced example, I have the following table, which has an [CODE] primary key and an [CODE] unique key (meant to function as a second ID) [CODE] I am running the following two... | After reading through the Postgres source code I believe I have found a satisfying answer to this. In the [CODE] statements given, only [CODE] is mentioned as a column. This will cause Postgres to use [CODE] as an arbiter index. Normally, when evaluating an [CODE] Postgres will speculatively insert the new row, and che... | 3 | 2 | 5,229 | 2022-07-30T01:04:13.210 | data_quality | dba.stackexchange.com | |
526,178 | Automate Hyper-V post-snapshot merge and machine start | Here's a scenario that occurs quite frequently. Before installing system updates I create a snapshot of a virtual machine in case something goes wrong. After the update is done and there are no problems, I want to remove the snapshot, as it would just be taking up space otherwise. This means I need to turn the machine ... | Of course there is. Using PowerShell you can stop the vm, start the merge, wait for it to compete, then start the vm. Update: I thought that running a merge was asynchronous when run from PowerShell, but it appears to be synchronous. So a script would look like this: [CODE] | 1 | 3 | 1,032 | 2013-07-25T10:30:57.977 | infrastructure | serverfault.com | |
979,442 | IIS 530 3 3 file system error on FTP Isolation | I've been struggling with this issue for the whole week. In the past I've set up a lot of FTP servers on IIS with no major issues. But now I'm facing this and I don't know how to proceed. I have a new VM instance in Google Cloud Platform running a Windows Server 2019 Datacenter OS with IIS 10. And I created the FTP sit... | Doesn't matter, I solved it using procmon. I'll share my learnings about this issue just if someone in the future hits again with "530 User cannot log in, Home directory inaccessible" on IIS 10 / Windows Server 2019 and everything seems to be well: What will guide you to the light is [CODE] use it and you'll find whats... | 0 | 1 | 3,388 | 2019-08-15T18:44:47.197 | infrastructure | serverfault.com | |
1,063,680 | A simple configuration: LAN + direct connect simultaneously | This should be an easy configuration, but I'm struggling to Google for it; the vocabulary eludes me. I've got a desktop with onboard gigabit which finds its way to the internet via the router. Naturally. I've got a server with onboard gigabit which finds its way to the internet in much the same way. No surprises. The r... | The /22 subnet on the 1Gb interfaces is swallowing up (overlapping) the /24 addresses of the 10Gb interfaces (i.e. packets are sent out the wrong interface). Adjust the addresses on the 10Gb interfaces and you'll be fine. I'd suggest something in the 10.x.x.x range to make it obvious they're "different". | 0 | 1 | 106 | 2021-05-15T23:47:04.500 | infrastructure | serverfault.com | |
334,670 | Cannot import EC2 keypair (Length exceeds maximum) via AWS console from existing keypair | I want to use the same keypair from one availability zone in another but I cannot import it. If I generate a new key I get the same error. See AWS console > Newtwork and Security > Key pairs > Import key pair then choose an existing EC2 keypair and I get the following error: [CODE] Why would imported public key pairs h... | You are trying to import the private ssh key file. You should be importing the public ssh key file only. On Linux, you can extract the public key from the private key using: [CODE] Amazon EC2 does not need to know your private ssh key. You should keep this secret and not share it with anyone, not even Amazon. Here's an... | 8 | 14 | 13,964 | 2011-11-25T02:40:45.563 | infrastructure | serverfault.com | |
302,017 | Setup CNAME for subdomain issue | I would setup for this: user go to test.example_site1.org test.example_org1.org it's a CNAME of test.example_org2.org user will see the page of test.example_org2.org On the example_org2.org server I use nginx and I have 3 django projects. test.example_org2.org shows the third django project. http://example_org2.org sho... | [CODE] are there only to say sub1.domain has the same IP than sub2.domain . But it does not tell a web server that they should serve the same content. When you enter the domain name on your browser, it checks the IP via a [CODE] query, and it gets an answer saying this is a CNAME for test.example_org2.org, which points... | 7 | 5 | 11,533 | 2011-08-17T12:07:42.000 | infrastructure | serverfault.com | |
704,319 | Fax Server on a Domain Controller | So I have this Fax number attached to a modem inside a Windows 2012 R2 DC. I followed the steps on: https://technet.microsoft.com/en-us/library/jj134193.aspx to install and configure the Fax Service. Everything on the DC is working fine, I'm able to send and receive faxes just good using my domain admin account. The pr... | Apparently, the fax machine must be shared on the fax server, exactly the same way as if you're sharing a printer to the network users. Sharing the fax machine will insure that users are able to access it. Done that and I'm happily delegating the fax work to our secretary now. | 1 | 1 | 1,219 | 2015-07-08T12:54:13.283 | infrastructure | serverfault.com | |
120,262 | How to fix mysql uppercase query script in php | I am currently working on the website that uses ADODB library. In entire website all the queries are written in UPPERCASE. The problem is when I run the query it doesn't work because of table name which is UPPERCASE. But when I change the table name to lowercase it works. [CODE] Here is the error I get: ADOConnection._... | The version for live sire was linux kernel. but the new dev site is ubuntu. I have done this on ubuntu/ mysql CML and it didn't work. The solution is I had to reconfigure the mySql database in AWS/rdbs You have to modify the “lower_case_table_names” parameter for your DB Instance(s). Prior to today, the lower_case_tabl... | 0 | 0 | 1,386 | 2015-11-06T01:24:41.577 | database_errors | dba.stackexchange.com | |
235,475 | How can I approach creating an efficient algorithm for maximizing value with these specific constraints? | I'm having trouble coming up with an approach that isn't n^2 for this problem. Here's a contrived, simplified version I've come up with: Let's say you're a company that needs 4 employees to launch in a new city, a manager, two salespeople, and a customer support rep, and you magically know how much impact every candida... | I'd use Integer Linear Programming (which, in essence, is constraint programming, which is what you are doing) to solve this kind of problem, using CPLEX in conjunction with Visual Studio. As stated in your post, the objective of your program will be to maximize a goal given a set of constraints (e.g. total budget must... | 3 | 1 | 1,110 | 2014-04-10T04:20:07.897 | data_quality | softwareengineering.stackexchange.com | |
336,194 | Sequel Ace missing list of tables component | I am using Sequel Ace (version 4.0.13 on Mac) to access a database. There used to be a list of all the tabels in the database in a component on the left side that is now missing. I cannot figure out how to make that list of tables appear. I've looked through the menu items but I can't find a way to bring this section b... | Click on the left side where it used to be and drag to the right. I just had and fixed this problem. I stumbled across this question when looking for the answer. | 0 | 0 | 62 | 2024-02-23T18:00:00.493 | warehouse_errors | dba.stackexchange.com | |
268,710 | Prematurely exiting a while loop in T-SQL and viewing the output | I let a while loop run over the weekend with a CURRENT_TIMESTAMP condition on it, problem is I accidentally set the condition to 2020-08-06 instead of 2020-06-08 (oops). Is there any way to manually exit the loop and view the results so far? I don't think it's possible for me to change the system time in order for the ... | Success will depend a lot on where the results are stored. If they're written to a normal table then you can simply query that table. If there's a transaction open which would block new queries use the NOLOCK hint. If you're using snapshot isolation I don't know how you can get at the open transaction's versioned data.... | 0 | 1 | 224 | 2020-06-08T07:56:39.300 | database_errors | dba.stackexchange.com | |
13,738 | How to design a schema to store search keywords | I am doing a database design that stores search keywords of a search form, used to generate the most popular search keyword reports by date, month and year. I have made a simple schema: [CODE] In this case, search term will be redundant in the table and make the database grow faster. I want to avoid data redundancy. Al... | First, let me address your concern about data redundancy. I agree with you that the second schema is more likely to reduce the redundancy, and is probably closer to what I would go with. One thing to be aware of, though, is this will be unique search terms. So unless you have some way of normalizing data, misspellings ... | 5 | 4 | 6,511 | 2012-02-23T08:59:59.627 | warehouse_errors | dba.stackexchange.com | |
66,906 | Does Mac OS X Server incorporate all the capabilities of Mac OS X? | I'm thinking about purchasing a copy of Snow Leopard Server as I'm setting up a web/mail server pretty soon. I also want to dig into things that the server has to offer. I'm looking into maybe getting a trial copy first (if possible). However, since I only have one personal Mac, I'm concerned with compatibility issues.... | I'm not entirely sure about the Snow Leopard situation (haven't upgraded yet, until Apple fixed a few early issues), but that was indeed the situation for Leopard, and Tiger before it; I'd be amazed if that got broken in this latest release. | 0 | 1 | 203 | 2009-09-19T04:27:46.113 | infrastructure | serverfault.com | |
31,021 | How do I solve an error code 127 when doing a pg_dumpall through a cronjob? | I have this simple script to backup all my databases in postgres [CODE] The dump status is 0 and the tmp.txt file is properly created when the script is executed from the command line. However, if I execute this script as a cronjob in my crontab, my tmp.txt is empty (the dump of all databases failed) and my status.txt ... | If the script can work apart from a crontab, you should make sure of the following: The script file contains the necessary environmental variables [CODE] [CODE] [CODE] [CODE] Output the standard error to a file for future analysis | 5 | 2 | 6,639 | 2012-12-24T16:53:38.460 | database_errors | dba.stackexchange.com | |
1,152,939 | Completely Reprovisioning Ceph Rgw Without Reprovisioning Ceph Cluster | I recently began learning about Ceph and setup my own ansible scripts to setup a Ceph cluster (yes, I'm aware that cephadm-ansible exists, but I want to get comfortable managing ceph). Initially, I provisioned the default rgw service here and tried to create another zone with the pools I wanted and make it the default,... | I validated it in a virtualized ceph cluster and removing the service and all pools related to rgw works well (assuming you have a way to transfer all the data you want to keep out of the rgw pools which I have in my case). I had forgotten about it, but the ceph cluster only starts with an [CODE] pool and that's it. Th... | 0 | 0 | 87 | 2024-02-05T13:34:46.770 | data_quality | serverfault.com | |
337,105 | Calculating averages of rows in a very large dataset | We have a ratings system in our website that allows users to provide feedback to 3 different questions about a user. We currently calculate the rating using averages using the following query on our RDBMS: [CODE] This query does not scale even when the result is cached (and it is) since some of our users have millions ... | What you can do to optimize this depends on how precisely the rating system works, and what kinds of analysis you want to do with the data. But if the ratings are discrete (like a 1–5 star rating), we can calculate them efficiently by storing the accumulated votes in a histogram . That is, we count how often each ratin... | 4 | 4 | 1,000 | 2016-11-29T14:42:51.080 | database_errors | softwareengineering.stackexchange.com | |
334,500 | pgAdmin 4 ... is not present in the table | Hello Here is my erd and the below my creating table codes; -- This script was generated by the ERD tool in pgAdmin 4. -- Please log an issue at https://redmine.postgresql.org/projects/pgadmin4/issues/new if you find any bugs, including reproduction steps. [CODE] When I am trying to insert this data; -- Dummy data for ... | You are assuming that the [CODE] in the [CODE] table is going to start at the value [CODE] . However, this is not guaranteed. The definition for [CODE] is to use the data type [CODE] . This data type is defined as: [CODE] Reference: 8.1. Numeric Types (PostgreSQL | Documentation) It is auto-incrementing, but the value ... | 1 | 0 | 53 | 2024-01-03T08:08:16.070 | database_errors | dba.stackexchange.com | |
761,192 | AIX non-expiring account lock - who is locking it? | I have a non-expiring service account on an AIX server which I use to connect to my database. Every couple of weeks some user or task tries to connect to the account with the wrong password, and the account gets locked. This causes me days of delay to get the account unlocked again. The AIX sysadmins tell me they can't... | I would start by translating the failedlogin file: /usr/sbin/acct/fwtmp /tmp/mynewfailedlogin.txt This will give you some clues such as user, IP/hostname, date etc. | 1 | 2 | 269 | 2016-03-03T03:39:46.620 | infrastructure | serverfault.com | |
979,353 | Varnish cache enabled but still getting age: 0 in header | I have installed varnish on my server alongside apache. Its an SSL site. So I use apache for SSL termination with varnish. The problem is when I use the curl -I command, the headers show that age is always more than 0. Same case when I test my site with https://isvarnishworking.uk But, when I see the headers from my br... | Why you don't get the same results in browsers and [CODE] is mostly always one - cookies. Varnish does some precautions for you and bypasses caching in presence of cookies (either when set by the backend , or when you're sending by the browser ). In your case it's most likely that your browser sends a [CODE] in request... | 2 | 2 | 2,743 | 2019-08-15T05:32:44.180 | infrastructure | serverfault.com | |
9,507 | How to delete a procedure which name is ambigous? | I am using informix... I dont know how i did it, but there are two procedures with the same name in my database. When i try to remove them with a [CODE] then i get a error message [CODE] How can i drop the procedures? | This happens when you have 2 or more procedures, with the same name, but with different numbers of input parameters. For example, you have created 2 procedures: [CODE] To delete the second one, you have 2 options: The easy one: [CODE] The hard one: [CODE] Even if the first method is dead simple, the first time I got ca... | 13 | 14 | 7,628 | 2011-12-21T08:56:12.137 | warehouse_errors | dba.stackexchange.com | |
194,990 | Microsoft Exchange rejecting logins | I have Microsoft Exchange 2010 running on Windows 2008R2 - 64 Bit. I had Microsoft Outlook 2007 clients connected and logging in just fine. Some time has passed and now my outlook clients are not able to connect. I've tried removing and recreating outlook login and when I do so and open outlook and try to expand the In... | Run [CODE] in the Exchange Management Shell to check whether all required services are started. If any are not started, start them and see if the problem has gone away. Try logging onto Outlook Web App to see if the problem persists there, or whether it's just Outlook playing up. Have you applied any patches recently (... | 0 | 1 | 1,448 | 2010-10-26T17:39:45.247 | infrastructure | serverfault.com | |
272,312 | Sync OUs within Active Directory | I'm setting up two OUs in Active Directory to support a software package we're getting ready to roll out. One OU is for production, the other for training/sandbox. It is required that these be independent OUs in the same domain rather than multiple domains or one OU to support both environments — the software connects ... | You're not missing anything obvious re: the group names. You'll need to take your route of changing the character prefixes like you describe. re: copying the groups - My script from this answer copies users and group membership from one standalone Windows Server machine to another. You could probably re-tool the group ... | 3 | 2 | 409 | 2011-05-21T23:59:57.193 | database_errors | serverfault.com | |
444,215 | Why does C# List<T>.AsReadOnly() allocate? | I am looking at the [CODE] method. Since [CODE] itself is a [CODE] . (It implements [CODE] and [CODE] implements [CODE] ) the implementation of [CODE] could technically be [CODE] which has no allocations. Instead this does [CODE] . As far as I can tell, [CODE] is a wrapper that forwards calls to the instance passed in ... | If there was no allocation, there'd be no reason to have the AsReadOnly() function. If all you want to do is cast it to an IReadOnlyList, then do that: [CODE] Casting rather than relying on a function with potential side effects (like creating an allocation) is more explicit about what you are doing. If anything, I'd s... | 5 | 6 | 988 | 2023-02-28T01:28:39.073 | api_errors | softwareengineering.stackexchange.com | |
255,915 | Is this a good Visual Studio solution structure for a domain driven design RESTful web service? | I am building a .NET 4.5 C# Web API RESTful solution and I would like someone to tell me if my project solution is correct and/or wise(-enough?) for a solution designed using Domain Driven Design, please. The solution has been split into 6 projects: /Base (Not referenced by anything) The web project and forms the inter... | This folder structure is inspired by the famous Implementing domain driven design book by Vaugh Vernon. Solution: ├ WebService (REST Services reside here) ├ WebServiceTests ├ Application (Application services reside here) ├ ApplicationTests ├ Domain (Entities, VO, Domain services, domain factories, specifications, doma... | 18 | 23 | 18,519 | 2014-09-10T12:22:06.363 | api_errors | softwareengineering.stackexchange.com | |
146,800 | Scaling up an apache server | I have an Ubuntu server running apache2 which i expect to be hit by around 500-1000 (concurent) users for a limited amount of time. The server serves a mixture of custom (rather light) php pages connected to a postgresql db (around 20 Mb in size) and static content. The hardware is stable and pretty beefy: Intel Xeon E... | Your bottleneck in this scenario will be the PHP and what it's doing with the database. If you are opening up a new connection with each call, then you're more than likely going to hit I/O walls on the disk access more than anything else. Your best bet is to have the database and static content in a RAM disk and commit... | 2 | 3 | 810 | 2010-05-31T08:59:08.990 | api_errors | serverfault.com | |
1,107,876 | GCP on-demand VM disconnects "Server Connection Error" while running computation | I run the workbench notebook on an on-demand VM of GCP. Every two or three days I get the following error during computation: Server Connection Error A connection to the Jupyter server could not be established. JupyterLab will continue trying to reconnect. Check your network connection or Jupyter server configuration. ... | Using preemptible VMs have 24 hours of use or the tokens use. That inherited security feature makes the Notebooks not suitable for long running jobs since it will make you refresh the Notebook and cause the executing cells to lose state. While Having an On-demand VM this shouldn’t be happening. I can think of 3 possibl... | 0 | 1 | 501 | 2022-08-10T17:54:47.013 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.