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 |
|---|---|---|---|---|---|---|---|---|---|---|
156,266 | Is it worth making a commit solely to resolve non-critical typos? | If I come across a non-critical typo in code (say, an errant apostrophe in a print(error) statement), is it worth making a commit to resolve that error, or should it simply be left alone? Specifically, I'm curious about weighing the gumming-up of the commit log against the value of resolving these non-critical typos. I... | My personal feeling is that improving quality is worth the minor inconvenience of an additional commit log entry, even for small improvements. After all, small improvements count a lot when you factor in the broken window effect . You might want to prefix it with a [CODE] tag, or mark it as trivial if your VCS supports... | 67 | 133 | 4,487 | 2012-07-10T15:13:46.163 | api_errors | softwareengineering.stackexchange.com | |
206,957 | Generating a proper ssh keypair on Lenny for Github | I have a codebase hosted in GitHub. I have 2 ubuntu machines (both on 10.04) that I develop on. On these machines I had no trouble generating my keypairs as per GitHub's instructions. Using the command [CODE] My server runs Debian Lenny. Now I was planning to do a clone/pull from my server to keep that updated. Since t... | -C is pretty useless.. it just adds a comment just use the command without it. Then add the new key to your github account [CODE] | 0 | 2 | 262 | 2010-11-29T12:09:04.687 | infrastructure | serverfault.com | |
281,117 | Unusual behaviour of a query when using case expression in group by, some records are being missed | I have 4 table with below structure: Table "Customer_Info" [CODE] Example Data: [CODE] Table "Customer_Transaction_Info" [CODE] Example data: [CODE] Table "Customer_Channel_Info" [CODE] Example data: [CODE] Table "Branch_Info" [CODE] Example Data : [CODE] The problem is that everything seems fine until this part of my ... | This behaviour is directly related to your group by - it is behaving as intended, by 'uniquing' your [CODE] s (of which there are 4 in your example data). Without further information on what you are looking to derive with this query it's hard to determine what results you wish for from this query. If you do need any fu... | 0 | 2 | 36 | 2020-12-08T16:18:02.700 | warehouse_errors | dba.stackexchange.com | |
661,934 | OpenSSL PositiveSSL certificate untrusted connection | I bought a SSL certificate and I cannot get it to function. I get a [CODE] error in Firefox. I do believe it's due to my .crt file being incomplete/wrong all together. My .crt was generated using: [CODE] What I get is a big block of data. It has a begin header and a end. The reason for thinking it's incorrect is due to... | That's not how this works. You created a self signed certificate, of course no browser will trust it. You bought a certificate, which means you should have been sent a [CODE] file by your provider. The process should be something like this. Generate a private key: [CODE] Create a CSR: [CODE] Then take the [CODE] file, ... | 0 | 3 | 411 | 2015-01-23T19:24:42.873 | api_errors | serverfault.com | |
177,734 | Ubuntu apparmor profiling | i have create a very simple profile for java, but i keep getting this error [CODE] i've set option to the profile to : [CODE] and even /XFolder/ ixrw, but i keep getting the error, any ideas ? | which profile? Are you sure the application is using that version/source of java? i.e. Perhaps the application in question is using a different version of sun-java... or one of the other flavors of java... | 0 | 1 | 187 | 2010-09-03T13:21:57.327 | infrastructure | serverfault.com | |
956,828 | Offload query load from MySQL to a JSON file with expiration | I have a server installed in a fixed container with limited bandwidth and CPU. On this server, I have a website that makes a lot of requests to its database. The web app's MySQL database is only one table. The client app makes one request every 5 seconds via AJAX and the AJAX opens the MySQL database. This is unsustain... | You pretty much listed your options. If your data is pretty static and can be effectively reused for multiple queries by multiple clients you shoild look at some form of caching . Some options are: memcache daemon installed in your website container. The app will consult the memcache first to see if the required data a... | 1 | 2 | 391 | 2019-03-05T11:57:58.377 | database_errors | serverfault.com | |
533,019 | How can i find out what crashed my Windows Server 2008 R2 box? | My file server just went belly up and I can't seem to figure out why. Perhaps I'm naive but when these things happen I can typically look through my System, Application or Security Event Viewer log and find the culprit - but no luck this time. While I was out of the office I received an Icinga notification stating that... | FYI - for any VMWare guest, if you want to get a memory dump, you can take a snapshot, then use vmss2core.exe to extract the memory to a traditional windows memory dump file that can be read using windbg, and therefore MS support or other qualified people. Converting a snapshot file to memory dump using the vmss2core t... | 0 | 5 | 2,901 | 2013-08-22T18:05:46.313 | infrastructure | serverfault.com | |
670,766 | I am able to receive mails but unable to send via my SMTP server? | I have a shared hosting server from hostgator, in which I created an email 'support@mydomain.com'. Then I enabled both DKIM and SPF (as I read on a few threads that SPF should be enabled to ensure a trusted SMTP server). I have no idea about configuring the SPF (I did read about it but could not get anywhere). The issu... | I believe your issue here is SPF. You need to designate your hosting IP as a permitted sender of email for your domain when you have SPF on. You would do this from your domain registrar. Create a new TXT record to add your IP as a permitted sender. TXT mydomain.com "v=spf1 ip4:192.168.0.x mx -all" Where the 192.168.0.x... | 0 | 2 | 579 | 2015-02-23T16:33:06.350 | infrastructure | serverfault.com | |
214,339 | Is there any way to filter or ignore messages written to log? | My database is behind a load balancer and even though the health check interval is set to 10secs, im getting multiple checks per second which result in thousands of "incomplete startup packet" messages written to the logfile. This makes it hard to find errors when I have to scroll forever in the log file to find actual... | In postgresql.conf the parameter [CODE] (boolean) causes checkpoints and restartpoints to be logged in the server log. Some statistics are included in the log messages, including the number of buffers written and the time spent writing them. This parameter can only be set in the postgresql.conf file or on the server co... | 1 | 1 | 774 | 2018-08-07T21:24:58.663 | warehouse_errors | dba.stackexchange.com | |
159,501 | SQL Alter Index within a Script | I posted this in StackExchange and it was mentioned that it should be moved to this exchange. So here it is: I've been reading about SQL Index Fragmentation and how to rebuild/reorganize. I'm curious on how to write a script about it. I have a script that will generate the table with the table index and display the fra... | That page count number is really not a thumb rule, it's more an arbitrary one. I am not able to recall Paul Randal's blog where he has explained that this is a made up number to set up a threshold. For bigger tables yes you can have the Ola's job run as per the maintenance schedule you have. For smaller ones having pag... | 0 | 2 | 254 | 2016-12-29T18:35:45.960 | warehouse_errors | dba.stackexchange.com | |
973,566 | Accelerate remote file share | I have a Windows file server (Windows 2016) that is hosted in PH that I want to share in TW. An immediate option I opted for is the use of webdav. However, its performance is subpar when being accessed in TW. I use cloudflare to reverse proxy my origin IP and enable HTTPs access. Is there a way I could accelerate the a... | It really looks like you should setup and configure BranchCache . Microsoft specifically built this technology to solve the problem you're describing. Just be cautious when multiple users are modifying the same files, as you can end up with race-conditions where user A in TW makes a change, and user B in PH makes a cha... | 0 | 1 | 131 | 2019-07-01T13:15:18.153 | infrastructure | serverfault.com | |
313,391 | Why MySQL doesn't use settings specified in my.cnf? | I've installed MySQL 5.5.15 on debian-lenny server. I used default instruction & settings to install it. Now, my server starts successfully, but seem non of my specified settings in /etc/my.cnf take effect(e.g. collation-server or des-key-file parameters) but when I enter an invalid setting, my server fails at startup(... | I had a similar problem after I upgraded to MySQL 5.5.14, my query cache and innodb buffer pool settings would not take effect on the server, but everything I checked on the server showed that the config file was being loaded, just found the solution here: MySQL ignoring my.cnf Seems that grouping items in [square brac... | 9 | 7 | 50,567 | 2011-09-19T13:59:55.690 | database_errors | serverfault.com | |
806,675 | How to ensure a smooth transition to Let's Encrypt SSL Cert? | I've got LAMP running on Ubuntu 14.04 and almost a year ago I installed SSL (TLS 1.2) certificate for my web server, so my site would only run under HTTPS protocol. On October 8 the certificate expires. And from now on I want to install and use Let's Encrypt. They have pretty good tutorials on how to use Let's Encrypt,... | Must I wait till after my old cert expires? No, not at all. Or should I go ahead and proceed with Let's Encrypt installation ASAP? Sure, go for it. If the latter, then another question arises. How to get rid of the old cert? I mean, it's probably NOT a good idea to use two of them side by side. Umm, delete it. How do y... | 0 | 3 | 100 | 2016-10-02T23:22:04.993 | api_errors | serverfault.com | |
65,872 | Samba share not working | I set up an ubuntu server on our corporate network. Added an account for each developer and shared each home directory using samba. This all worked great until I had to add a new user - I can't make the new guy's home directory available via samba. Normally, I "map network drive" in windows, using \\servername\username... | Did you add new users to Samba users with smbpasswd -a ? Also, installing samba client wouldn't remove samba server on any Linux distribution I know. I have samba client on almost all samba installations, especially for diagnosing. | 1 | 6 | 1,091 | 2009-09-16T12:36:16.703 | infrastructure | serverfault.com | |
52,005 | How to Fix log_reuse_wait_desc=LOG_BACKUP? LOG Backup not possible | I checked sys.databases to find out which databases need LOG backups. It surprised me that I had quite a few where [CODE] meaning, the JOB I have set up to run LOG backups on these databases isn't actually creating LOG backup files. After doing some searching, it had been suggested to change database modes from FULL to... | UPDATE: I figured it out! Because the ola hallengren scripts check for log shipping roles and skip log backups if it finds the current db in either [CODE] or [CODE] AND because the databases I have been fighting with recently DID have old log shipping entries that were not proiperly cleaned out, this script was not abl... | 5 | 4 | 32,068 | 2013-10-22T21:33:49.613 | database_errors | dba.stackexchange.com | |
255,133 | Why do function inputs need an extra set on parens in this Postgres function? | This works. However, it fails with a syntax error if the "extra" parenthesis in the second function are omitted. Why? [CODE] Does not work: [CODE] | You need the extra parentheses because your function [CODE] is defined to accept a single value, a [CODE] returns a set of rows, the parentheses indicated that the select only returns a single row and column (a scalar value). But there is no need for that, just pass the max value directly to the function: [CODE] | 0 | 1 | 24 | 2019-12-08T19:57:56.547 | warehouse_errors | dba.stackexchange.com | |
250,345 | PHP/MySQL hostserver crashing/freezing | I am not sure if I have totally missed something here so I am asking, to hopefully become a better person. So I already now, ask for forgiveness for my stupidity, if any. I have a client that is hosted by company that now is blaming the website I've build for the client, for "crashing" (or at least making it run very s... | You don't have any error handling at all in this, and that's a problem. If your call to mysql_query() doesn't work for some reason, it will return FALSE. That is then handed to mysql_fetch_assoc() and that will fail too. You really should be doing some basic error handling, something along the lines of this: [CODE] Thi... | 0 | 1 | 380 | 2011-03-22T14:17:47.740 | database_errors | serverfault.com | |
408,097 | Website panel upload error "HTTP Error 404.13 - Not Found" | I am uploading a 400MB file to the Website-panel file manager and get "HTTP Error 404.13 - Not Found". The log mentions verifying the configuration/system/.webServer/security/requestFiltering/requestslimits@maxAllowedContentLength setting in the applicationhost.config or webconfig file. How do I make changes to this fi... | applicationHost.config is located by default in [CODE] . You can also use the Request Filtering feature from the IIS Manager. For more information on configuring Request Filtering see this configuration reference | 0 | 1 | 560 | 2012-07-16T11:28:37.213 | api_errors | serverfault.com | |
372,233 | Determining a realistic measure of requests per second for a web server | I'm setting up a nginx stack and optimizing the configuration before going live. Running ab to stress test the machine, I was disappointed to see things topping out at 150 requests per second with a significant number of requests taking > 1 second to return. Oddly, the machine itself wasn't even breathing hard. I final... | If you care about your server's performance when accessed from somewhere in the world, ask a friend somewhere in the world (should have good bandwith) to install sproxy + siege on his linux box. Just download, configure, make. These tools are small, they compile within seconds. First of, start [CODE] on the linux box. ... | 15 | 3 | 6,991 | 2012-03-22T00:33:19.313 | api_errors | serverfault.com | |
249,634 | Setting up relationships on a gaming schema with multiple locales | I've devised the following schema: Where BotLocale holds locales like en-US, es-AR, etc. GameArtifact has a primary key which is artifact_id and GameClass with locale, identifier being the primary key. How can I properly set up a relationship between the exclusive column of GameArtifact and identifier from GameClass ta... | Your approach is the correct one if the typical workload consists of small transactions that access only a few rows at a time (OLTP). The extra join won't hurt, because it will be a nested loop join. Databases are optimized for stuff like that. Any small performance loss will be outweighed by the advantage of having fo... | 3 | 2 | 60 | 2019-09-25T22:51:31.210 | warehouse_errors | dba.stackexchange.com | |
372,624 | Why RSA SSH authentication only works after console log-in? | I setup RSA authentication on one of my Ubuntu servers, however after every restart, I can't log-in via ssh RSA. In order to log-in with ssh I need to first log-in via console, then the RSA starts working. Why??? Below are my sshd config file as well as an output from the ssh -vv command before console log-in and after... | I've just experienced the same problem; turns out my home directory is encrypted. Funny thing is, I don't remember choosing the option for it be be encrypted, and it only seems to have started happening after a recent upgrade (ubuntu 10.04.4 server) | 4 | 2 | 229 | 2012-03-23T03:45:39.253 | api_errors | serverfault.com | |
850,893 | multiple virtual host working only for 2 subdomain in apache centos 6 | Hi below is the content of httpd.conf file. I create 5 subdomain inside this file 2 subdomain are working. I mention after virtual host which are working and which are not working [CODE] I am unable to identify what is the actual problem in this config file | Depending on which apache version you may need to add the NamedVirtualHost directive to the apache configuration and reload apache. Please confirm you have the following in [CODE] : [CODE] | 0 | 0 | 520 | 2017-05-18T13:01:07.857 | infrastructure | serverfault.com | |
1,097,354 | Stop Nginx rewrites breaking all pages following location block | I'm having to rewrite URLs in nginx.conf that contain particular query parameters; As an example:- [CODE] These URL rewrites would then rewrite [CODE] to [CODE] and [CODE] to [CODE] . And these work perfectly, but the problem is that they break every other child page of the location block so for example, the following ... | Your configuration currently uses a prefix location , which means that it is considered when the requested URI begins with the value [CODE] . To restrict the match to only one URI, use the exact match syntax: [CODE] See this document for details. | 1 | 1 | 315 | 2022-03-30T06:55:33.143 | infrastructure | serverfault.com | |
1,089,810 | What's the advantage of uwsgi protocol over http for Apache proxying? | I've just set up a couple of WSGI apps behind an Apache server proxying to uwsgi using UNIX sockets on the same host. The generally advertised method to do that seems to be like this: [CODE] I've done it a bit differently: [CODE] So basically in my setup Apache and uwsgi talk back and forth using http instead of uwsgi'... | mod_proxy_uwsgi is included with apache2 since some years now, so should not be "an extra dependency". Yes, replacing http with the uWSGI protocol is (in itself) only an efficiency benefit. Other parts of uWSGI - like the use of a UNIX socket - provides security benefits. You can indeed configure your setup to be weake... | 1 | 0 | 611 | 2022-01-12T16:02:19.653 | infrastructure | serverfault.com | |
258,363 | Deadlock debugging with node: log responsible queries | I have a system of many node scripts that read and/or write automatically on a Postgres database all the time. One of those scripts randomly gets a deadlock. I would like to debug this, but the problem is that I don't know which other query cause the deadlock. (I use pg ) So my question is: If I catch an error like thi... | Sure. Just look into the PostgreSQL log file. This information is not sent to the client for security reasons: otherwise, you could craft SQL statements that deadlock with other queries to see somebody else's statements, which might contain confidential data. | 0 | 3 | 659 | 2020-01-28T16:19:48.223 | database_errors | dba.stackexchange.com | |
175,433 | SQL Server AlwaysOn Table and Archiving | We have a number of tables that will process a large amount of inserts each day. For this reason, the tables are archived on a weekly basis using a labour intensive process of backing up the database and restoring to another server and then inserting the data from this backup into another archive database. My plan is t... | Suppose you set up AlwaysOn but something goes wrong with your partition switching process and you accidentally delete all of the data. With your current proposal you'll automatically delete all of the data from your archive database as well. So even with AlwaysOn you'll still need to take backups, right? Now consider ... | 1 | 1 | 387 | 2017-06-05T12:57:08.900 | hadoop_errors | dba.stackexchange.com | |
1,099,218 | NGINX Reverse Proxy And Cache MS Graph API | I'm building a web based company directory which has roughly 450 employees. The data source being used is the Microsoft Graph API (Azure AD). This API requires you to make a request for every employee to receive their photos, since they are sent as JPEG images (binary data). My application is a ReactJS app hosted by Ex... | For anyone that runs into a similar issue, I needed to add a resolver to fix the errors I was seeing in the log. Afterwards, there was no error but I was also not having anything cached. I needed to add a few directives to my location block, which now looks like: [CODE] | 0 | 0 | 310 | 2022-04-22T14:05:31.120 | infrastructure | serverfault.com | |
290,310 | How to structure a reservations system in a document based database? | I really don't know if this is the right forum for this but I need help designing my database. Also I apologize for the horrible title: I don't know how to summarize the issue below in a single title. I am building a reservation system where one reservation can have multiple services. Something like the following (sing... | get rid of the document-based DB, its a horrible system for the kind of query you'll be doing. Go back to boring old RDBMS and you'll be a lot happier. If you do this, you can not only make reservations individually (which also help when someone adds a service to their reservation) but you can query all services assign... | 1 | 3 | 1,884 | 2015-07-21T09:13:45.523 | api_errors | softwareengineering.stackexchange.com | |
119,606 | Unable to get SQL Server 2016 CTP3 service to start on Windows 10 | During install of MS SQL Server 2016, on a developer/DBA workstation client PC which is joined to a domain, the installation using all logon and other installer defaults, completes with failures, and a very generic message that just means that the main SQL Database Engine Service (MSSQLSERVER) did not start. Starting i... | Interesting. Glad you got the SQL service to start. It should be okay to leave it as NT AUTHORITY\LOCALSERVICE for testing CTP3 on your workstation. In general for production servers on a domain it is best to provision and use domain service accounts for the SQL Server and Agent services - see https://www.simple-talk.c... | 1 | 1 | 3,140 | 2015-10-29T20:28:57.503 | database_errors | dba.stackexchange.com | |
1,107,716 | Accesing debug values in Ansible | My ansible code looks like this, [CODE] The output I am getting is, [CODE] I need to use the first value (directory name) from files:6880880 in another task. I tried msg: "{{ archive_contents['results'] }}" and "{{ archive_contents['results']['files'][0] }}" but getting error. I am fairly new to ansible. I think I am m... | The attribute results is a list. You have to reference the item to get its attributes. The simplest option is the path to the first item [CODE] gives [CODE] Generally, there might be more items in the list results . Get them all [CODE] gives a list [CODE] Get the first item [CODE] | 1 | 1 | 577 | 2022-08-09T00:25:58.703 | hadoop_errors | serverfault.com | |
180,816 | scripted shutdown of user level daemons at shutdown | I'm currently running a few programmes - unreal, anope and the qwebirc web client on startup with crontab. Anope dosen't take to a non graceful shutdown well, i use flat files for data as opposed to mysql and they corrupt often - i figure if i can get anope shutdown properly via the script it should solve it. Approache... | If the daemon doesn't have an init script, you must create your own. Just use an existing script as a template. If you need to execute commands as the user who owns the process, use su or sudo in your init script. rc0.d is the directory that is processed during a shutdown, be sure to place a symlink to your init script... | 0 | 1 | 363 | 2010-09-14T03:04:43.257 | data_quality | serverfault.com | |
322,590 | Why does SQL Server use INDEX SPOOL when there is already a relevant index during FK check? | I've got two tables in SQL SERVER 2019: [CODE] table with 2 FK on [CODE] table. [CODE] table has appropriate indexes on FK columns. The schema screenshot and SQL script to generate it are given below. DB Schema [CODE] I've got 3 transactions running in parallel: Transaction 1 [CODE] Transaction 2 [CODE] Transaction 3 [... | Why does it happen? SQL Server uses a cost-based optimizer. It generates different alternatives for different areas of the plan and chooses one that seems best, or at least 'good enough'. An index scan plus eager index spool is a valid alternative. An index seek in this case would always be better, but the optimizer do... | 4 | 3 | 303 | 2023-01-25T21:35:02.060 | database_errors | dba.stackexchange.com | |
274,122 | Python script leaves the database in restoring mode | I am attempting to use python to automate some of our database restores. When I run the SQL query the database restores and comes back up like normal, but when I run the python script that uses the same SQL query the database is left in the restoring mode. Any help with what I'm doing wrong would be greatly appreciated... | Pyodbc won't progress past info messages automatically, and RESTORE generates a lot of them. So you must process them with [CODE] or else you're actually aborting the RESTORE by running [CODE] before it actually completes. Eg [CODE] | 4 | 5 | 1,255 | 2020-08-21T13:41:19.520 | database_errors | dba.stackexchange.com | |
313,582 | Logging into text file or database? | When should I use database for logging and when text files? I see that web servers and web frameworks (that your app uses internally) usually (always?) log requests and errors into text files by default. But I see that people who develop their app around those servers and frameworks sometimes log into database (even th... | In very general terms, logging to a text file is much faster than logging to a database. That's the main aspect of logging you need to consider. The reason you log to a DB is more likely to be because you want to query the results - searching for particular log info is easier in a DB, particularly if you log contextual... | 33 | 21 | 45,193 | 2016-03-23T11:10:22.647 | api_errors | softwareengineering.stackexchange.com | |
393,656 | Road Warrior VPN Setup | I apologise up front for the rather open ended nature of this question but I've got well out of my depth and could really do with some pointers. I need to set up a road warrior VPN solution which will allow our customers to securely access a number of services we provide for them. Customer machines will be running a va... | What is wrong with installing OpenVPN clients? I would find out from your customers if this is an option, because it will be cheap and probably do what you want... though there is some configuration required (I haven't ever done it, but I've read about it being pretty good). On another note, I've used Watchguard firewa... | 1 | 1 | 1,863 | 2012-05-29T16:20:42.067 | infrastructure | serverfault.com | |
549,067 | SQL Server does not enforce encryption rules | I am forcing encryption on my MS SQL server. My intention is to reject any client connection that does not use SSL to connect. Here are my detailed steps : makecert -r -pe -n "CN=slc02xla.company.com" -b 01/01/2000 -e 01/01/2036 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky exchange -sp "Microsoft RSA SChannel Cr... | 10 seconds google lead to: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bde679d9-ff83-4fa7-b402-42e336a97106/force-encryption-on-sql-server-not-working?forum=sqlsecurity Let me quote: When the Force Encryption option for the Database Engine is set to YES, all communications between client and server is encry... | 1 | 3 | 1,527 | 2013-10-28T06:58:45.427 | database_errors | serverfault.com | |
1,032,364 | MTR showing packet loss rather consistently, but other tools are not | Using MTR (using TCP, not ICMP), I'm consistently seeing packet loss on one router that does normal ICMP flood limiting. UDP does the same - I still see the loss. However, when I use other tools, ie, TCPing.exe, hping3, PRTG QOS, I rarely see loss (except for the normal ICMP loss). What can possibly account for MTR sho... | Not sure about the other tools you used, but mtr, when using TCP sends a TCP SYN packet to the destination and incrementing the TTL from 1 until it reaches the destination. So the routers in the path still send back an ICMP type 11 - Time-to-live exceeded, when they are the ones where the packet reaches TTL 0. This cou... | 0 | 0 | 1,425 | 2020-09-02T06:12:20.980 | infrastructure | serverfault.com | |
8,607 | Azure monitor and deployment slots | My question is actually quite simple: if I have a webapp with a deployment slot and a monitor that checks the health of webapp in some way (connections, cpu time or the like) , if I do a swap, what is the monitor watching? The new webapp or the old? I would like to think it is always watching the current production slo... | Deployment slots share the same resources. The percentage of CPU used is what is taken by all slots combined. After a swap, it should still monitor the production slot. | 0 | 0 | 94 | 2019-07-13T17:17:47.433 | pipeline_ops | devops.stackexchange.com | |
312,867 | In Postgresql how do I get localtime as the TimeZone to work on FreeBSD? | [CODE] : 9.4 [CODE] : 11.2 When I set my [CODE] parameter in [CODE] to [CODE] I receive the following error when trying to start PostgreSQL. [CODE] During my searches I've found this correspondence which seems to indicate that /etc/localtime should be a symlink. Mine isn't so I tried changing it to a symlink and it sti... | The way you configured PostgreSQL, it does not use the operating system's time zone database, but its own copy, which is located in [CODE] . So your symbolic link has no effect. You'd have to create that symbolic link in PostgreSQL's copy of the timezone database, but the correct solution is different: set [CODE] to [C... | 0 | 5 | 325 | 2022-06-02T15:43:58.490 | database_errors | dba.stackexchange.com | |
1,056,101 | When a website is reachable through an IPv4 address, DNS is tested and working but all domains error out in Chrome what needs to be checked? | I just moved from Digital Ocean to AWS. My usual setup procedures for the web server I use for experimentation are not working. I can reach the site through IPv4 but all domains error out and my SSL certificate doesn't show up when tested on SSL Shopper. DNS appears to be working fine, my firewall is open, SSL certific... | You need to open port 443 for IPv4 in your AWS security group (and port 80 for IPv6). | 0 | 1 | 153 | 2021-03-06T00:08:38.200 | api_errors | serverfault.com | |
8,775 | Events prediction with time series of continuous variables as features | We have the feeling that behavior of a device in terms of continuous variables (fans speeds, temperatures, voltages, ...) has influence on rare events happening (components failures). I now have to build a predictive model for that, to proof the influence. Those continuous features are given as time series, and events ... | First of all, you will not be able to prove anything with a model, you will have false positives/negatives. With a good model you may be able show what variables may be an indicator of component failure. In problems like this feature generation can have the most important influence on the accuracy of the model. The tim... | 3 | 2 | 923 | 2015-11-10T08:06:57.003 | data_quality | datascience.stackexchange.com | |
1,096,809 | Fortify Software Security Center 21.2.0 Unable process the Fortify_Process_Seed_Bundle-2021_Q4_0001.zip during initial setup | I am trying to set up Fortify SSC 21.2.0 for a demo, and I am having a bit of trouble getting the database seeded. The following describes my set-up specifications and my progress so far. Apparently the issue at this point as far as I can tell is that SSC is trying to "seed" the SSC database with actual values but ther... | Resolved. There were two separate issues here that needed to be addressed. Collation configuration File system Case-Sensitivity Requirements MySQL by default uses uff-8,and it was assumed by me that Fortify SSC would use uff-8. SSC requires character set of latin-1. Fortify SSC also requires all databases and tables wr... | 0 | 0 | 1,070 | 2022-03-23T02:30:06.863 | database_errors | serverfault.com | |
106,647 | Most efficient way to learn java if you already know how to code? | Possible Duplicate: Is there a canonical book for learning Java as an experienced developer? I've been coding for close to 25 years now in basic, (C64 & Amiga), (Object) pascal, C, LPC and for the last few years, Python. Python is definitely my favourite (and strongest) language. However, lately I've been forced to do ... | For a much cheaper and far more up-to-date alternative to the books mentioned, I recommend starting with Oracle's Java Tutorials . Since you have a programming background already, some of it is going to be easy that you can read and power through. When you get to a topic you aren't comfortable with, spend the time to r... | 11 | 13 | 19,842 | 2011-09-08T10:59:00.363 | data_quality | softwareengineering.stackexchange.com | |
100,832 | I want to start the Postgres database | I run this: [CODE] It just hangs. There is no error message. I newly created this database with the initdb command. What should I do? | From the INSTALL document [CODE] So, [CODE] initialises the system after the binaries have been put in place, either through an rpm or a source compile. [CODE] launches the server (which is what you're trying to do) [CODE] xyz creates a database of name xyz [CODE] is the command-line client You could try [CODE] On runn... | 0 | 3 | 3,157 | 2015-05-07T05:37:35.077 | warehouse_errors | dba.stackexchange.com | |
421,157 | Network connection failed in Red 5 server | I am new to red5 server. When I try to run Red5 by creating a project in Eclipse using the Red5 plugin it runs with an error: [INFO] [NioProcessor-2] org.red5.server.net.rtmp.RTMPHandler - Scope default1 not found on localhost When I try to run the client, it shows [CODE] . Can somebody help me? | Have you seen this thread on StackOverflow ? It has four answers with possible solutions or workarounds. To get anything more specific, you'll probably need to provide more details about the failure and what you have or haven't tried. Otherwise any answer is going to be a shot in the dark. | 0 | 0 | 1,238 | 2012-08-25T15:37:36.173 | infrastructure | serverfault.com | |
255,799 | Windows vista and 7 don't honor routing table metric? | I have the route table below on a Vista machine, I can see the same problem on Windows 7 too. If I ping 193.181.14.10, I would expect the OS to honor the metric and choose either [CODE] or [CODE] It turns out that it actually choose to use the [CODE] route. So if I remove that route from the table, it works. By working... | I'm having the same problem with Server 2008. I posted a detailed question here Windows Server 2008 Ignores Persistent Route With Lower Metric . It seems Microsoft went their own way when they redesigned their new TCP stack implementation. The solution proposed by Microsoft tech support is to set the network card to ig... | 3 | 4 | 5,273 | 2011-04-05T08:00:16.327 | infrastructure | serverfault.com | |
632,201 | Nginx Reverse Proxy: servername.domain.com reverse to http://ip.add.res.s/location/App | I need a little help sorting out how to configure a reverse proxying load balancer in nginx. Basically, I have two web applications that live under subdirectories on Apache servers, /flavors/Chocolate and /flavors/Vanilla for example. This app runs on multiple servers for failover, so my list of upstream servers for Ch... | I think the only problem is with the [CODE] directive. You mention [CODE] where you should in fact use the upstream group name here. I changed the name of the upstream group to better document the change: [CODE] | 0 | 0 | 1,382 | 2014-09-29T19:36:06.820 | database_errors | serverfault.com | |
52,474 | Need to understand output of sqlcmd.exe | I was advised to make another question, from here - https://stackoverflow.com/questions/19674045/need-help-to-make-sqlcmd-run-as-per-requirements My sqlcmd.exe is invoked with a command of the form - [CODE] Now, [CODE] How do I find out the cause of the problem and fix it ? | Lets try and test connectivity to your server with sqlcmd [CODE] You should see the text : Changed database context to 'master' Next type "quit" and then try this Create a file called c:\test_sqlcmd.sql Add the following code: [CODE] Now execute that script [CODE] You should see Changed database context to 'master' and... | 2 | 1 | 949 | 2013-10-30T05:31:34.243 | warehouse_errors | dba.stackexchange.com | |
181,890 | What is an efficient storage method to store Graph Data from GraphX (Spark)? | I generate graph data using Spark's GraphX library and I need an efficient way to store graph data. I have access to Apache Cassandra and ideally I want to store the graph data in there but the issue is I don't know how to efficiently store the graph structure in Cassandra. I have looked at Titan's backend storage in C... | TitanDB stores graphs in adjacency list format which means that a graph is stored as a collection of vertices with their adjacency list. The adjacency list of a vertex contains all of the vertex’s incident edges (and properties). They used VertexID is the partition key, PropertyKeyID or EdgeID as clustering key and pro... | 0 | 1 | 990 | 2017-07-26T17:49:32.773 | spark_errors | dba.stackexchange.com | |
39,273 | Convert SQL Server UPDATE Statement for Use in Oracle | I can not get this UPDATE statement to work in an Oracle environment. It was written for SQL server. I am looking for some guidance on how to convert it. [CODE] | Just remove the [CODE] clause and replace the reference to the alias with the table name: [CODE] | 3 | 4 | 1,365 | 2013-04-04T18:06:08.193 | database_errors | dba.stackexchange.com | |
340,184 | Get (none):~ when logging in | I have an OpenSUSE server, I have disable login by password and only allow authorized_keys to log in. However, when I restart my server, I got the weird terminal (none):~ # But things are still ok so far. So I dont know if it is a big problem or not ? | Check the settings of "use pam" and "use login" in your sshd-configuration. It seems that during ssh-login your environment is not set up correctly. Either that - or you did not set your hostname properly. | 0 | 0 | 54 | 2011-12-12T18:00:58.940 | infrastructure | serverfault.com | |
369,412 | chkconfig $svc reset does not take effect if executed by higher pri init.d service at boot? | On a centos 6 derivative (Amazon Linux), I have an init.d script ecrinit that is meant to enable/disable some services at system startup (based on contents of a properties file on disk): [CODE] Since start pri of ecrinit is 60 and of proftpd is 88, I expected the latter to be started by the boot process, since calling ... | Take a look at the [CODE] script, which does the following: [CODE] the script has already expanded the list of available startup scripts before they run; changes made via [CODE] (or direct filesystem manipulation) aren't going to be visible. If you move your logic to the end of the boot process, you can start the servi... | 1 | 2 | 511 | 2012-03-14T01:27:44.607 | infrastructure | serverfault.com | |
27,622 | How should a Software Tester deal with missed Defects/bugs in Production? | I work as a QA/test engineer in a small software company. It is an e-commerce based product. I was assigned a few projects by my manager. I mostly do functional/blackbox testing. Before the production release, I tested many good scenarios and found quite a few defects in the code. Most of them got fixed. I did my analy... | Company pays me to test good and not be careless. You are asking this question here - you are not careless , you care about the job you do and the things you can improve on. Don't take it personally and be professional The point of finding bugs is not to blame anyone, but to enhance the product's quality. If your manag... | 63 | 82 | 28,331 | 2017-06-06T03:52:34.353 | data_quality | sqa.stackexchange.com | |
769,874 | How to forward a port from guest to host in qemu (kvm) | Is it possible, and how, to forward a port from guest to host in qemu/kvm? Note do I mean (out of) from guest to host, and not from host into guest (that's widely documented). I think I'm looking for the "opposite" of hostfwd/redir.. Like I use & understand [CODE] which connects port 8022 on the HOST to the GUEST - gre... | Minimal working setup I can access both the host and external network with this QEMU command: [CODE] Then in the host, setup a file server on port 8000: [CODE] [CODE] also works, but on one of my host systems it only worked with [CODE] but not [CODE] . Now in the guest: [CODE] This gives: [CODE] which tells us that the... | 9 | 4 | 24,235 | 2016-04-12T18:26:17.380 | infrastructure | serverfault.com | |
208,891 | Update permission denied, can't give self db_datawriter permission despite being admin on box | I'm in the administrators group on a Windows 2008 database server. My username appears in the Security -> Logins section of the SQL Server Management Studio and under Properties -> Server Roles I see I have the "public" role only. Under "User Mapping" I'm a member of the "db_datareader" and "public" roles. I need to ad... | In SQL Server 2008, Windows admins are no longer SQL Server admins by default. You will have to ask somebody else to change your permissions. http://msdn.microsoft.com/en-us/library/cc280562(v=SQL.100).aspx | 1 | 3 | 704 | 2010-12-03T18:58:48.543 | database_errors | serverfault.com | |
397,530 | Oracle: FRM-41211 Error Message when starting a Report from Oracle Forms (64 Bit Windows Server) | After installing Oracle Forms and Reports 6.0 (Patch 18) on a Windows 2008 64 Bit server we get the following error when we try to start a report from Forms. "FRM-41211 integration error: ssl failure running another product" The problem is reproducable on another server using the same Windows OS. One of the proposed so... | I did find a workaround for this problem. I had to replace two dll files (nn60.dll and nnb60.dll) with the same files of an older forms version (patch 3 or older). I found this solution and the dll files at this location: OraFAQ: Problem with Reports 6i & Oracle 9i & Vista 64-bit | 4 | 3 | 19,453 | 2012-06-11T10:08:39.553 | database_errors | serverfault.com | |
123,883 | Why do my Batch Requests increase when doing a Differential Backup | I have started doing some long-term tracking of various activities on our 2012 SQL Server and I have noticed an increase in Batch Requests during our incremental backups. To give an idea, normal day-to-day we are around 10-20 batch requests per second but during the time our differential backup runs, it jumps to 100-13... | After monitoring the active sessions and queries during the high activity period, I have come to the conclusion that the third party software we use (LiteSpeed) to perform backups is the culprit. There seems to be a lot of queries to get information about the maintenance plan, updating backup statistics, getting inform... | 13 | 2 | 137 | 2015-12-17T00:01:20.053 | database_errors | dba.stackexchange.com | |
240,122 | Network card very slow, only on Windows | This only happens to 1 of my machine, and only when booting into Windows 7. No matter what network card I put in, Windows would default its mode to 10Mbps full duplex. Transfer speed is approximately 1 MB/s. If I set it to 100Mbps, the transfer drops to 100-200K/s. If I set it to 1000Mbps, the connection is lost comple... | Have you made sure you have the correct drivers installed and that they are up to date? Also, is Windows fully up to date and have you made sure that there are no other "problem" programs running such as malware/spyware/viruses etc? | 0 | 1 | 276 | 2011-02-25T08:23:37.147 | infrastructure | serverfault.com | |
818,489 | Gitlab: Extremely high memory consumption by ruby "bundle" process | I have a problem with my Gitlab installation running on a small Ubuntu LTS 16.04. I have to point out that I don't have much experience with Linux or Gitlab. My Gitlab installation with a few personal projects (only 4) was running Ok, though pushing is extremely slow and sometimes fails. Also accessing the web interfac... | Those will be the unicorn workers and sidekiq. They appear to be using the correct amount of memory. 2GB is about the bare minimum of RAM to run gitlab; if your system has much of any activity you'll want 4GB or more. I have a personal gitlab instance on 2GB of RAM as well, and it shows similar usage: [CODE] Note that ... | 13 | 4 | 33,005 | 2016-12-02T23:21:18.210 | infrastructure | serverfault.com | |
206,781 | JSON object and storage of nosql | I have read Would a NoSQL DB be more efficient than a relational DB for storing JSON objects? and am building a small test project in Asp.Net. I have a webapi up in Azure. It returns a [CODE] and Company is my object which has several properties and child list and a lat/long value. [CODE] I return this List of companie... | I'm gonna show how I would solve this using the Starcounter database to store the data and using it's internal web server to fetch the data as JSON models. The application model is automatically the database if [Database] attribute is set. The database [CODE] And then in the integrated web server I would define a JSON ... | 1 | 1 | 1,969 | 2013-08-01T08:23:39.583 | database_errors | softwareengineering.stackexchange.com | |
430,565 | Magento hosting on a budget | I have to do a setup for Magento. My constraint is primarily ease of setup and fault tolerance/fail over. Furthermore costs are an issue. I have three identical physical servers to get the job done. Each server node has an i7 quad core, 16GB RAM, and 2x3TB HD in a software RAID 1 configuration. Each node runs Ubuntu 12... | KISS Keep it simple silly. I'm kind of lost here. For this very reason, don't begin to overcomplicate something that needs not be complicated. If you don't know the right method to implement something in the first instance - you certainly won't know what to do when something goes wrong. First, lets address the hardware... | 7 | 14 | 4,150 | 2012-09-21T09:22:30.500 | database_errors | serverfault.com | |
16,859 | mysql 5.5 corrupt - missing temporary table | One of our mysql instances crashed and failed to start: [CODE] I've failed to understand what should I do in order to remove this temporary table from the TABLESPACE. How should I proceed? | There are those rare times when an InnoDB table gets stuck in the ibdata1 deeply that you must try forecing mysql to start up in spite of it. Try using innodb_force_recovery in /etc/my.cnf ( Option values 1-6 ) [CODE] then restart mysql. This should at least allow a mysqldump [CODE] Once you have mysqldumped all data, ... | 2 | 3 | 4,667 | 2012-04-22T10:46:30.147 | data_quality | dba.stackexchange.com | |
686,158 | Setting VMware vSphere VMs to automatically upgrade VMware tools | We are currently on VSphere 5.1 across the board globally with around 450 Windows server VMs. We have an issue where we have various VMs throughout the organization that end up having expired VMware tools. Without going with 3rd party tools or VCops or similar, I know that there is a way to set each VM to automatically... | In my experience, no there's no extra risk in automatcially updating VMware tools. It doesn't affect anything locally and will provide the best experience for the VMs, as well as keeping them in sync with the host. vCenter Update Manager can do it as well. You can set it up to only update the tools (and hardware) for c... | 4 | 6 | 6,291 | 2015-04-28T13:56:11.580 | infrastructure | serverfault.com | |
614,418 | SAN Synchronous Replication and SQL Server - Is RPO of 0 possible? | I am working on a solution that is using SQL Server 2012 SP2, but without the use of AlwaysOn availability groups. This is due to cross-database transactions, that does not work for this scenario. Note: This is being addressed as we speak, but added as background information to my problem. We are using a HP 3PAR StoreS... | I can't comment specifically on 3PAR, but I do have a lot of experience with EMC Symmetrix arrays. My advice would be: Find another way. Synchronous replication is one of these technologies that look great on paper, and in optimal circumstances, but in the real world cause vast amounts of pain. The way it works is: inc... | 2 | 1 | 2,717 | 2014-07-22T08:29:06.423 | database_errors | serverfault.com | |
515,553 | Server 2008 Firewall not allowing connection through | Running Server 2008 R2. I'm trying to get a Zabbix agent working. The agent works if I turn off the firewall on the server. For obvious reasons, I don't want to leave the firewall off. As per the Zabbix instructions, I opened inbound TCP ports 10050-10051 on the server (also tried UDP) via WF.msc. As soon as the firewa... | First, I suggest you verify that the application behavior matches the documentation: type [CODE] in an elevated command-line and you'll get a list of open ports with the associated executable (if possible). Once you have that, make sure your rules matches the actual listening pattern of your application. An alternative... | 1 | 1 | 2,102 | 2013-06-13T14:00:31.490 | infrastructure | serverfault.com | |
420,380 | How do I convince management to approve IPv6 deployment? | I currently have the idea to deploy IPv6 on the corporate network of my enterprise. But my boss (CIO) asked me what the benefits are? And I did not have an answer. So what could I say to make the case for IPv6? It will run in dual stack with IPv4. We use firewalls, VPN, and multiple WAN connections. | A few of the benefits of IPv6, off the top of my head: NAT goes away. This isn't a large issue in your organization, but it is an issue since you are likely using small bits of private address space for... VPN goes away. In IPv6 you achieve the same things with IPSec, firewall rules, and... Mobile IPv6. Laptop users ca... | 5 | 10 | 656 | 2012-08-23T11:17:39.393 | pipeline_ops | serverfault.com | |
331,018 | NAS for Mac OS X Server | I'm using Mac OS X Server and want to allow the users that connect to their network accounts to store their data on a NAS drive. I want the users to connect to the Lion server as this allows for better policies and management for me and for their afp share to be located on a NAS drive. I've looked into home directories... | Is it possible to logically add storage to a Mac OS X Server which can be recognised as a local drive, so can be used for network accounts? Yes, FreeNAS can use iSCSI: http://doc.freenas.org/index.php/ISCSI . Keep in mind that iSCSI volumes can only be used as iSCSI volumes. You won't be able to share it out via SMB/AF... | 0 | 1 | 984 | 2011-11-15T08:54:43.717 | api_errors | serverfault.com | |
655,460 | bash: Something like quotemeta() for pattern characters? | Background I am aware of bash's various string manipulation capabilities. Also, I know I can escape special pattern characters with a backslash [CODE] . For instance: [CODE] The Problem The above is all fine and dandy. The problem is when the pattern comes in from somewhere else, and it may not have the [CODE] and othe... | Ah, I figured this out just after posting. The answer (as always) is: add more quotes (: For my example: [CODE] | 2 | 3 | 821 | 2014-12-30T19:02:00.923 | infrastructure | serverfault.com | |
251,434 | How can I have an aggregate function in the WHERE clause? | Using PostgreSQL 9.3.24 Issue Just simple operation, but I don't know how to do that best simplest way. How can I display results only when sum of [CODE] s for same [CODE] is [CODE] and [CODE] is [CODE] or [CODE] ? I.e. [CODE] in this case. I want display all values, for every [CODE] . Thank you. Update I tried aggrega... | [CODE] Of course the solution is correct only in the case when both available_count and onway cannot be negative. If not then use [CODE] fiddle | 1 | 1 | 4,941 | 2019-10-18T08:08:49.090 | database_errors | dba.stackexchange.com | |
842,215 | how to remove www part from request url and redirect into it | I have host with multiple domain pointed. i need to remove 'www' part from requested URL and redirect to it. [CODE] i need to this dynamically. I used below url re-write to do that but its not working. [CODE] any help really appreciate. | You can try the following rules: [CODE] This will redirect www to non-www and it isapplies only for http URLs. You can change it to https if required. If you are writing this configuration in [CODE] file, you need to make you have the right [CODE] config option. Otherwise, the [CODE] file will not be executed. | 0 | 1 | 331 | 2017-04-03T11:14:05.887 | infrastructure | serverfault.com | |
159,704 | DELETE Rows with or without LIMIT | When deleting, should I use LIMIT, or not (MySQL INNODB tables) Each customer has a unique hash. Each customer can have one or more records in a single table. If I know in advance a customer can have up to 100 records maximum, and my DELETE query has LIMIT 100, then I presume once 100 records were deleted, the query wi... | The limit is only going to help with exactly 100 so it is probably not worth the overhead. If you put an index on the hash then it should know to stop (and where to start). | 3 | 3 | 864 | 2017-01-01T20:18:52.877 | database_errors | dba.stackexchange.com | |
262,654 | question about MySQL5.7 server(Master) and a MariaDB 10.3(Slave) | I have question: I want to install a MySQL5.7 server(Master) and a MariaDB 10.3(Slave).Replay SQL(select and update) on the slave server after SQL running on the master server.get slow sql log on slave server(MariaDB).how to deployed it ? Thanks! | There are some lesser-known settings that should be set on the Slave. Pehaps you are thinking about [CODE] . More details here: http://mysql.rjweb.org/doc.php/mysql_analysis#slow_queries_and_slowlog Note: MySQL / MariaDB / Percona -- these have diverged somewhat in what options are available. Also, newer versions have ... | 0 | 0 | 17 | 2020-03-25T11:05:05.767 | database_errors | dba.stackexchange.com | |
487,602 | Linux /etc/security/limits.conf explanation | Can anyone explain (or know of a source) that provides details about the items in limits.conf? The man page doesn't give much detail. For example it says: [CODE] How are these different? What values can they take? What do they default to? Some of the items are obvious, but where can I find better explanations (default ... | [CODE] Why are these different? There are different classes of process schedulers on linux. The default one (CFQ) basically gives an equal amount of time slices to each process wanting to run and queues runnable tasks in such a way that everyone waits on average an equal amount of time for their turn. Some exceptions t... | 9 | 19 | 22,487 | 2013-03-13T22:09:36.943 | infrastructure | serverfault.com | |
1,029,237 | TLS handshake issues with etcd | We are using external etcd cluster for k8s cluster. We connected master to this etcd server but receive [CODE] How to fix this issues? (for eksctl side all is working correctly on etcd servers with same certificates) [CODE] Kube-api server manifest updated with same certificates | The error message implies that ETCD server is rejecting your connection due to certificate or CN in URL is not valid for the certificate configured. I guess the issue is with subjectAltName or CN configured in the etcd server, you could not have included 127.0.0.1 IP in the subjectAltName of etcd-server certificate. Yo... | 1 | 0 | 3,277 | 2020-08-07T12:35:00.263 | pipeline_ops | serverfault.com | |
202,719 | PostgreSQL - Working with array of thousands of elements | I'm looking to select rows based on whether a column is contained in a large list of values that I pass as an integer array. Here's the query I currently use: [CODE] The table is structured as such: [CODE] I came up with this index after trying different ones and running [CODE] on the query. This one was the most effic... | Is there a better way of doing this? Yes, use a temp table. There is nothing wrong with creating an indexed temp table when your query is that insane. [CODE] But even better than that... "500k different item_id" ... "int array can contain up to 15,000 elements" You're selecting 3% of your database individually. I have ... | 9 | 1 | 4,577 | 2018-03-30T22:10:39.073 | database_errors | dba.stackexchange.com | |
15,863 | How to configure registries.yaml to point to several Harbor proxy cache registry? | I have configured a Harbor (with SSL and FQDN: harbor.example.com) as a proxy cache for several docker registries (docker.io, quay.io and k8s.gcr.io). I can pull any images without any problem from any PC/VM which can access the Harbor netowrk, i.e.: [CODE] I want to use this Harbor to, from a local k3s cluster (which ... | I just got this working with Harbor Version v2.10.0-6abb4eab using [CODE] and a tweaked URL instead of trying to rewrite image names on the fly: Follow the docs at https://goharbor.io/docs/2.1.0/administration/configure-proxy-cache/ to create a project called [CODE] , setup security or make the mirror public If using y... | 4 | 0 | 1,163 | 2022-04-25T21:31:28.680 | pipeline_ops | devops.stackexchange.com | |
48,204 | How to stop PHP application from forcing logout on ip change during a session | My website is in PHP, running on Apache. One of my users is on a WAN with 2 IPs and his connection gets routed to our server by any one of them. PHP seems to log out the user out, if it detects change in IP. It is an open source app and I think some common popular file must have been used. Any way to prevent it? | I don't think apache has anything to do with that. The problem is most likely in php session although I don't think php checks the client ip by default. Are you sure there's nothing in your code checking the ip for a session? | 1 | 2 | 1,495 | 2009-07-30T18:07:21.007 | infrastructure | serverfault.com | |
51,106 | SMTP-AUTH required for local domains? | Here is the problem: From any IP address not belonging to your mail server: [CODE] I'm using Postfix. I'm having a problem finding a solution to requiring SMTP-AUTH for email claiming to be from mydomain.com. Googling around, this guy has identified the same problem (where I cut-n-paste with some modifications) the abo... | I would try something like this: [CODE] smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, check_sender_access hash:/etc/postfix/access_table, ..., permit [CODE] mydomain.com REJECT You're not me! The theory is this: If they've authenticated already, they trigger the [CODE] rule and are allowed t... | 5 | 4 | 8,735 | 2009-08-06T18:26:13.957 | infrastructure | serverfault.com | |
141,717 | SQL Server R Services - Could not find stored procedure 'master..xp_ScaleR_init_job' | I'm trying to run a data science experiment as explained in this tutorial . The tutorial has 5 lessons, and each lesson has a few sub-sections in it. For this tutorial, I am using a SQL Server 2016 RC3 Virtual Machine on Azure, with R Services enabled. RRE for Windows 8.0.0 as a data science client / R Client (for remo... | Apparently, SQL Server 2016 needs an R Server Client (RRE) that is atleast 8.0.3. This website talks about it. I also got the same answer from Microsoft Support. The R server I have is RRE 8.0.0. That was probably the reason for the error that I received. When I installed the Microsoft R Client instead, the script work... | 3 | 2 | 1,508 | 2016-06-20T13:26:51.763 | database_errors | dba.stackexchange.com | |
31,147 | phpmyadmin - Login issue, takes me back to the login page after logging in | I'd setup phpmyadmin quite a while ago and it worked well and I got everything setup and working etc... However, I went to login recently and it always just takes me back to the login page. The credentials are correct, but never the less I always end up at the login screen. I can't find anything in my error logs, and i... | Turns out the issue was memcache. I'd added it for other reasons and set PHP to use it for sessions. Nothing broke (or so I thought) and all seemed well. Turns out it's this very reason phpMyAdmin was not working. phpMyAdmin does not support memcache being used for sessions in PHP, it requires files. | 2 | 1 | 1,074 | 2012-12-28T21:55:45.450 | api_errors | dba.stackexchange.com | |
135,564 | What are the SET options that affect Plan Reuse and how to get their values in T-SQL? | I'm troubleshooting the case when a stored procedure runs great from the management studio at any time, but the same stored procedure can run terribly badly in one of the webservers, even for the same parameters. There could be a few things causing this, including blocking, etc. I would like to leave out the possibilit... | If it's a case of different options causing different plans to be used, just check the options using sys.dm_exec_plan_attributes . If the options are not the same for a good and a bad plan, that can then be the reason. A list of plan cache keys can be found in the following answer by Martin Smith : What would cause par... | 0 | 5 | 352 | 2016-04-17T14:35:44.720 | database_errors | dba.stackexchange.com | |
250,522 | Managing unique data correctly in SQL | Here in Brazil we have a personal identifier called CPF . This identifier has a sequence of 11 digits and is unique for each Brazilian citizen. Possibly in other countries there is something like that too. How is a unique identifier, I chose to set it in the database like a UNIQUE KEY . And now that things get complica... | what you've described is a unique key - only you're thinking of it as a unique column. You can create a unique constraint on any number of columns in a table, so here you'd combine the CPF with the deleted (or some other column if you could have multiple deleted records) column as well. For example : [CODE] | 0 | 2 | 101 | 2014-07-20T16:55:00.877 | api_errors | softwareengineering.stackexchange.com | |
359,337 | How to best pass along global configurations such as login data? | I have a code base consisting of multiple scripts and many functions. Everything is controlled from one master script ( [CODE] , let's say). I have a lot of "global" configuration files, for example the URL, login, and password of the webservice I'm communicating with (this changes between test and production), and som... | An external file like your third option is the general best practice for managing configuration information that is only known at run time and needs to be changed based on environment. Also rather than reading the file directly in each place values are needed it would be better to create a [CODE] function that takes th... | 0 | 2 | 363 | 2017-10-18T12:46:53.073 | api_errors | softwareengineering.stackexchange.com | |
87,849 | Is there a ready-made classifier to determine if webpage is an article or not? | I am trying to solve a problem, where I have a set of URLs and I need to filter out only those that can be classified as an article (i.e. typically not include privacy policies, terms of usage, webpage for unsubscribing from a feed etc.). Is there a trained classifier that can be used to filter these webpages? Every we... | There are some APIs that do that, like Diffbot's Analyze API . As far as I'm aware there are no opensource readily-available models to do this, so if you're not going to use an API, you will have to create your own model. | 1 | 1 | 715 | 2021-01-12T11:44:53.480 | data_quality | datascience.stackexchange.com | |
334,609 | How to properly create a local development environment based on a Docker based micro-service architecture? | So currently where I work we try to mimic our production environment as close as possible to our production environment. Our micro-services (APIs, listeners, data stores) are organized in the fashion that if it performs a responsibility (down to the data model) different than something else it deserves its own containe... | Microservices should be relatively independent of each other. During developer testing, you should be able to only start the one you are working on and perhaps two or three others, usually related to storage, messaging, or authentication. If you can't, you should work on improving your architecture. If your full applic... | 8 | 7 | 2,469 | 2016-10-26T00:11:35.187 | pipeline_ops | softwareengineering.stackexchange.com | |
179,751 | Restore database with override sql server | Here's a script that attempts to take a daily backup from the previous day and restore it over a reporting database. My problem is how do I set it to override the files, so I don't have to specify the file names? When I run this I encounter a series of errors, as below. [CODE] When I try WITH MOVE: MOVE 'LiveDB' TO 'F:... | It looks like your original backup was taken from a database located at [CODE] and you are now trying to restore over a database located at [CODE] , so you'll need the combination of both the MOVE and REPLACE options. [CODE] | 2 | 3 | 5,157 | 2010-09-09T09:48:53.920 | database_errors | serverfault.com | |
214,992 | Need help figuring out a daisy chain issue | We have a goofy process (don't we all?) that daisy chains (or cascades) on a table that needs flattening out for our data warehouse. The field "alt_key" is an identifier field. It ends up being the parent to other alt_key and alt_key2 data. What I have below is an example of how the data looks. This table is named MEMB... | A simple way to approach this would be to use a loop. Start by identifying your records where alt_key does not show up in any alt_key2 values. Load those into a staging table with pmi_order 1, and mark the records as processed in the source table (add a bit field to track this). These are your parent records. Now start... | 0 | 2 | 326 | 2018-08-15T15:29:29.973 | warehouse_errors | dba.stackexchange.com | |
52,326 | Typo/Spelling Mistakes are not Bugs | As per ISTQB - CTFL Typo errors/spelling mistakes are not bugs. My question is that, when there are typo errors in the software/application under test then how to address and get them resolved from the development team. Just only by discussion? | Well... ISTQB - CTFL is then wrong on this one. We test to uncover risks that threat the value of the product (to someone who matters). A bug is a characteristic of the product of the threats its value. If you look to the Heuristic Test Strategy Model , you can see several Quality Criteria that can be affected negative... | 7 | 24 | 5,131 | 2024-01-22T06:42:33.147 | data_quality | sqa.stackexchange.com | |
41,681 | P1-P10 fields in .NET Runtime error (Application event log) | Our Application event log is showing several .NET runtime errors (Event ID 5000) that look like this: EventType ulsexception12, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d691cc, P4 missing, P5 missing, P6 missing, P7 missing, P8 missing, P9 c0000005, P10 837l. The sources of these errors is SharePoint, but I cannot find any ... | I don't know what those mean, but in my experience you see that type of event log message when you have a thread with an unhandled exception. I'd suggest: Ensure all of your threads have top level exception handlers, and log exceptions Install an application exception handler, which won't stop your app from crashing, b... | 0 | 2 | 1,168 | 2009-07-16T16:17:54.017 | api_errors | serverfault.com | |
125,094 | Improving sort performance in GROUP BY clause | I have two tables in Postgres 9.4.1 [CODE] and [CODE] with the following schemas: [CODE] table [CODE] [CODE] table [CODE] Both tables hold 2M rows. This is the query I'm running [CODE] I am aware of the operator precedence in the where clause. It is only supposed to filter events with the type 'event2' by date. This is... | [CODE] That's what makes your sort expensive: Sort Method: external merge Disk: 3904kB The sort spills to disk, which kills performance. You need more RAM. In particular, you need to increase the setting for [CODE] . The manual: [CODE] ( [CODE] ) Specifies the amount of memory to be used by internal sort operations and... | 6 | 14 | 5,973 | 2016-01-04T01:40:08.300 | warehouse_errors | dba.stackexchange.com | |
414,705 | std::future everywhere? Why or why not? | I recently had a discussion with colleagues about the use of futures ( [CODE] in C++) or asynchronous calls in server applications. On one hand, if you have server logic that needs to access an API on another server, you don't want to block your application waiting on the answer. Using [CODE] (or the corresponding asyn... | On the other hand, you don't always know which local functions are going to access a remote API This is the assumption you need to challenge. As the programmer, you control when these calls happen. You don't need to scatter them willy nilly throughout your program. If you consolidate them, your program usually ends up ... | 1 | 1 | 306 | 2020-08-11T06:41:13.220 | api_errors | softwareengineering.stackexchange.com | |
313,302 | Detecting TCP/IP connection drop issues in my application | I have a desktop application which talks to a server using TCP/IP. It was working before but now we are running into an issue. The log message on the server shows that the socket is disconnected after a while, but we are able to exchange heartbeat messages. When I ran the Wireshark tool I get this log which I don't kno... | There's not enough information here to understand what's really happenning, but you might want to have a look for a stateful firewall between 50.19.123.218 and 192.168.1.135. Also check if you've got keepalives enabled on the client. | 0 | 0 | 613 | 2011-09-20T06:36:31.307 | infrastructure | serverfault.com | |
1,122,167 | Slow SMTP responses with Exchange 2013 (Not network infra related) | (I know 2013 is shortly out of support, and it will be replaced, but in the interim, I'm experiencing an issue I would like to fix.) I will use telnet over port 25 as my example, but normal traffic also behaves the same way. When I send a packet over port 25 to specific nodes in my Exchange cluster, it takes between 11... | The behavior you are witnessing might be a security feature called SMTP Tarpit. It slows SMTP responses on purpose to mitigate some attack types, like directory harvest attacks. The setting is controlled by registry key [CODE] The value is in seconds (DWORD) Note: If the TarpitTime registry entry does not exist, Exchan... | 2 | 4 | 643 | 2023-02-07T00:54:30.220 | infrastructure | serverfault.com | |
973,202 | is there VPN for non browser sources? | How to impersonate identity or IP when accessing Internet resources from cmd or Postman? Is it even possible? I am accessing 'haveIbeenPwned' API from cmd and Postman but getting '403' forbidden error and one of the reason state traffic patterns being similar to other users who may have violated the acceptable use term... | I guess the first question you should ask yourself is how your queries look, if the service considers them to be on the verge of violating acceptable use terms. In other words: What are you trying to achieve, and is there a better mechanism for doing that which doesn't, for example, cause unreasonable amounts of traffi... | 0 | 2 | 31 | 2019-06-28T07:18:45.727 | api_errors | serverfault.com | |
347,815 | Issues with nginx autoindex | I am trying to set up nginx so that a certain url produces the directory index of a certain directory on my server. Currently this is what my default.conf looks like. [CODE] However when I try to go to mysite.com/files/ or mysite.com/files I get a 403 Forbidden error. Looking into the error log I saw [CODE] I don't wan... | Check whether Nginx has execute permissions for the all the directories in the parent directory tree. In your case, Nginx should have execute permissions for [CODE] , [CODE] , [CODE] , [CODE] or else Nginx cannot chdir to those directories. An easy way to check this is to run [CODE] . | 7 | 9 | 27,668 | 2012-01-08T13:47:25.730 | api_errors | serverfault.com | |
490,378 | PHP 5.3 on Fedora 18 | I'm running F18 on my devel machine and I NEED to run PHP 5.3.* (best 5.3.6) on it. F18 doesn't have it in its own repositories and I can't build PHP 5.3 from source because of buggy libxml2-2.9 in F18. I searched internet for two days and didn't fine a solution to my problem. I'm desperate, if anyone could help I woul... | Follow the step as below. [CODE] Grab the source from PHP.net and extract it. [CODE] make, and make install | 0 | 0 | 527 | 2013-03-22T09:40:43.850 | infrastructure | serverfault.com | |
119,238 | Providing high availability and failover using MySQL on EC2 | I would like to have a highly-available MySQL system, with automatic failover, running on Amazon EC2 instances. The standard approach to solving this is problem Heartbeat + DRBD, but I've found a lot of posts suggesting DRBD doesn't work on EC2, though none saying exactly why. Obviously, a serial heartbeat or distinct ... | I think you really want a multi-zone RDS setup which was recently added to AWS. Read more here: http://aws.typepad.com/aws/2010/05/amazon-rds-multi-az-deployment.html If you wouldn't ask about AWS, I'd suggest a setup including DRBD. This would make sure that both servers stay in sync all the time. But I'm almost 100% ... | 5 | 3 | 3,438 | 2010-03-04T16:12:22.627 | database_errors | serverfault.com | |
510,812 | Stop default SSL response on Shared IP using SNI | Previously I asked a question here: Single domain SSL presented for all domains on Shared IP about setting up secure and non-secure domains on a single IP. Opinions were mixed, but it appears SNI hold the solution. Unfortunately I cannot get it work as required. https://domaina.com — Works as expected https://domainb.c... | You literally cannot do what you are asking while keeping both domains on the same IP address. As it is now, you have both domains (domaina.com and domainb.com) on the same IP address. Then you have opened port 80 for HTTP and port 443 for HTTPS. As you have noticed, the port is open for all domains on the server; it c... | 2 | 5 | 1,174 | 2013-05-25T10:15:12.583 | api_errors | serverfault.com | |
143,859 | How can I DRY up a series of upserts of the same fields from multiple tables? | I have a bunch of tables that all have a [CODE] , [CODE] and [CODE] column. I'm doing ETL on these tables and I want to put the last extracted date and time for each store in a single table, with an additional column for the input table name. So I've ended up repeating the same upsert a bunch of times and really the on... | You could use [CODE] in the CTE. There is still some duplication of code but less than before: [CODE] | 0 | 3 | 72 | 2016-07-14T11:30:27.623 | data_quality | dba.stackexchange.com | |
292,206 | Server error after restart "memory or battery problem" | Our IBM server gives an error saying "memory or battery problem has been detected adapter has recovered but cached data was lost" Please press any key to continue." and to press the key we have to travel miles to the data center.Is there any way to resolve this error. It has a windows server 2008 r2 loaded in it.I'm a ... | Most likely your server has a battery-backed RAID controller installed and the battery for the controller is failing. As @Janne said, your best bet would be to contact IBM under your hardware maintenance contract to have the battery replaced (though you may need to pay for this work as these batteries are often classed... | 2 | 4 | 3,969 | 2011-07-20T11:17:28.857 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.