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
302,452
Storing product stock changes in a separate table (database design)
I'm working on a project that has a products table, at the moment there is a stock field. The issue is we don't know when stock is added, who's adding it I was thinking of having a product_stock database which could add rows for each addition or subtraction, however I'm not sure as to how to calculate the total stock e...
Probably not a single best practice. A lot depends on what you're using the data for and what your reporting needs really look like. For basic needs, I'd probably keep a [CODE] column in the [CODE] table and have a [CODE] that stores the history of what was in the product table (many database engines have built-in supp...
0
2
834
2021-11-11T07:00:11.543
warehouse_errors
dba.stackexchange.com
175,848
How can I perform a mongoimport to a host that requires an SSL Certificate?
I am trying to load some sample JSON data into a MongoDB database (hosted on IBM Bluemix). The connection requires SSL, and a SSL Certificate has been provided, but I keep getting an error when I run mongoimport from the terminal (OS X). Here is the command I am running (with sensitive data removed, of course): [CODE] ...
With mongoimport you must separate host address and authentication DB --host host_address:port --authenticationDatabase admin
1
1
2,576
2017-06-09T03:40:22.353
database_errors
dba.stackexchange.com
33,560
Encore ENHWI-G as a pure router
I have a LAN which connects to the internet via a DSL connection managed by a Linksys router (192.168.0.99). For better coverage I've connected a second router, an Encore ENHWI-G, through the LAN ports. I got wireless working correctly, ie I can ping the LAN while connected to either router. But I can't access the net ...
When you say "pure router", I think what you're really saying is "I want this thing to function like a cheap wireless access point". An access point bridges wireless media to wired media (with many optional bells an whistles, too, on a real access point). I don't think you're looking for a second TCP/IP subnet and rout...
0
0
1,115
2009-06-30T00:48:40.613
infrastructure
serverfault.com
61,001
How to filter rows in Python pandas dataframe with duplicate values in the columns to be filtere
Overall context: I have a data frame that contains observations for every five minute starting at 5 AM in the morning and ending at 8 PM in the evening for several days. I need to filter all the observations that start from 9 AM in the morning and end at 5 PM in the evening for every day. The input data frame looks lik...
I think you have defined midnight as today's 00:00. Therefore, the rows before today are out of your range. I think this may work for this cases: [CODE] The filter rules use the time only and ignores the date.
1
1
503
2019-09-29T14:38:45.373
data_quality
datascience.stackexchange.com
348,210
Long links in NGINX causes redirection
On my NGINX setup, when a url is too long, there seems to be an issue where it redirects the user back to the main page Is there a setting in NGINX that I can alter that enables longer URLs ? I'm thinking of this option below, but I'm not sure. [CODE] However the documentation doesn't really explain this option well.
Alright guys (and girls?), After a long search I finally found out what this issue was being caused by. There is a third party module that can be installed on php called suhosin. More information about the project can be found here http://www.hardened-php.net/suhosin/ Anyway you need to open up your php.ini and find th...
0
2
753
2012-01-09T19:24:02.070
infrastructure
serverfault.com
986,316
Entire Application in Django server shuts down with single error
I am new to Python and django , I worked on C# and php as developer earlier. My problem here is Entire Application in Django shuts down with single error. for example i start my website with "python3 manage.py runserver 0.0.0.0:8000" example:-- i have two pages home and register 1) if i make error in register page code...
You shouldn't be running a non local setup using manage.py. Please refer to Django Deployment guide available here: https://docs.djangoproject.com/en/2.2/howto/deployment/ In general it recommends running Django behind uwsgi or gunicorn or something similar. A la php-fpm for php. Also error in php will also kill the pr...
0
2
475
2019-10-01T06:55:11.797
infrastructure
serverfault.com
902,020
Does IKEv2 support initiator authentication by pre-shared key _and_ password?
I'd like to configure an IKEv2 VPN gateway for multiple remote users to access a private network. I have a test setup where the responder authenticates itself with a self-signed certificate. The initiator authenticates with a username and password. A couple issues: The certificate is overcomplicated. I'll not be settin...
Client and server authentication in IKEV2 are unrelated. So in theory, you can authenticate the server with a PSK and the client with EAP. However, the RFC states the following regarding EAP authentication: In addition to authentication using public key signatures and shared secrets, IKE supports authentication using m...
0
2
3,488
2018-03-16T13:53:46.983
api_errors
serverfault.com
515,166
Route being ignored on core Cisco 6500 switch?
This is less likely a bug, and more likely a lack of my own understanding on routing. I am having an asymmetric routing issue where return traffic is going out the wrong firewall. I have an explicit static route stating to go to the correct firewall's inside address, but it is ignored and travels out the default route....
When pinging through the 4500, the next hop after both firewall's was responding, not the outside interface of the PIX like I first thought.. After I realised this I checked the ASA and found that for some reason Id added a global nat that included the 10.0.0.0/16 subnet, which was picking up the traffic coming from th...
0
0
529
2013-06-12T03:31:54.137
api_errors
serverfault.com
965,931
How To Check HTTPD Directory Enforcement?
Fedora 29 with HTTPD Apache 2.4 By default access to the server's directory system is protected by this entry in httpd.conf: [CODE] ...and is overwritten on a per-directory basis with further [CODE] rules; so I have virtual host blocks as shown below and I would like to run a test to ensure that [CODE] is not allowing ...
Directory points to a directory in your filesystem, so in virtualhosts you specify [CODE] to allow access to your documentroot. The official documentation is very specific with this: http://httpd.apache.org/docs/2.4/mod/core.html#directory The entry pointing to /, should only be in server config context [CODE] and is r...
0
0
36
2019-05-05T10:05:40.290
infrastructure
serverfault.com
251,040
SQL Server 2000: SQL Server Browser Service missing
I have an instance of SQL Server 2000 SP4 running on Windows Server 2003 Standard Edition. In the Services MMC snap-in, the SQL Server Browser service is not listed. I am looking for reasons why this service would be absent. BTW, the following services ARE listed: MSSQLServer MSSQLServerADHelper SQLSERVERAGENT Microsof...
There is no SQL Server Browser service for SQL Server 2000. Each instance on the machine handles identifying itself independently.
1
2
1,879
2011-03-23T20:32:13.913
database_errors
serverfault.com
267,726
How can I track down an issue with a locked table, endless query?
I have a table that is periodically getting locked in a manner that I don't quite understand. I cannot do the following: [CODE] There are roughly 2,000 records. I can do the following: [CODE] Going backwards to find a new record that perhaps was problematic, incrementing the count in chunks until I can finally reproduc...
As mentioned by others use spwhoisactive or spblitzwho to find the behavior. However I am suspecting you do not have sufficient index on that table. A better index will just make the lead blockers query run fast and avoid blocking the query scanning same table. Also check for open transactions with sleeping status . So...
0
1
34
2020-05-22T19:15:02.577
database_errors
dba.stackexchange.com
275,754
PostgreSQL: query slow, planner estimates 0.01-0.1 of actual results
I will preface this by saying I'm not well-versed in SQL. I mainly work with ORMs, and this recent headache has brought me to dive into the world of queries, planners, etc.. A very common query is behaving weirdly on my website. I have tried various techniques to solve it but nothing is really helping, except narrowing...
Can you add an index on core_releasegroup(type,release_date) and try this: [CODE] ? Explain I'd like him to use (I don't have all the indices in the schema I built, moreover: all tables are empty). [CODE]
1
1
376
2020-09-19T12:47:14.343
database_errors
dba.stackexchange.com
86,132
Python to clean miswritten words with repetitive letters such as "wwwwooorrrrddss" to "words"
When cleaning text-data in Python3 for NLP, are there are any 'common practices' when it comes to addressing repetitive letters in words such as "wwwwooorrds" to "words", or "fffunnnyyyyyy" to "funny"? The source of the miswritten words is an OCR and I am not able to address the issue upstream, and thought I would chec...
A simple two part solution from this site remove any letter sequences longer than two (probably not good for welsh) [CODE] Then using pattern.en to check spelling. [CODE] NLTK is another common toolkit that can help with this
0
1
134
2020-11-30T18:04:58.390
data_quality
datascience.stackexchange.com
352,989
How Continuous Integration testing deals with software changes
When we are developing a software supported by continuous integration (CI), I imagine 3 roles working together: Software developers, adding functionality to the system with merges to the repository. DevOps, maintaining the CI pipeline that supports developers. Testers, working on the "verification" part of CI. My probl...
Continous Integration is a best practice per se, which main goal is to ensure that your code assembles correctly and pass both unit and integration tests. CI should happen continuously regardless the changes (not sporadically only when changes happen). This is especially important for projects involved in continuous de...
3
3
439
2017-07-18T05:04:40.613
pipeline_ops
softwareengineering.stackexchange.com
134,379
industry averages for time spent on maintenance
A manager recently announced that were were spending far too much time fixing bugs. I guess he thinks we should write perfect code all the time (whilst still hitting those impossible deadlines of course!) and it made me wonder what the industry average of time spent bug fixing v writing new code was. So does anyone hav...
A manager recently announced that were were spending far too much time fixing bugs. Above sounds very ignorant. Suggested reading for cases like that: Facts and Fallacies of Software Engineering by Robert L. Glass, particularly "Fact 43. Maintenance is a solution, not a problem." Wikipedia article mentions 80% efforts ...
18
13
9,805
2012-02-10T14:23:22.427
api_errors
softwareengineering.stackexchange.com
430,895
Finding latest successful logins and failed attempts to a CentOS server
I'm looking for a log file or any service to report the latest login attempts that have failed due to username/password mismatch. Are there any such utilities available for CentOS? (built-in is preferred) My second question, and more generally, I need a log file of penetration attempts to my server. Ideally, this log s...
In Linux, the [CODE] command shows successful login attempts and displays session information (pts, source, date and length). The [CODE] command records all bad login attempts. Both share the same [CODE] page, but the difference is that [CODE] reads the binary [CODE] file, and [CODE] reads the [CODE] file by default. T...
39
78
109,805
2012-09-22T07:16:29.780
infrastructure
serverfault.com
14,127
Helm - UPGRADE FAILED: cannot patch "..." with kind Deployment: Deployment.apps
I was running the older 2.16.0 version of ChartMuseum Helm Chart. I am trying to update it to use newer 3.1.0 . When I try to upgrade using [CODE] , the upgrade fails with the following error: [CODE] I am not sure but I believe this is because of helm v3? I was going through [CODE] page where I found helm v3 is a prere...
This is not a Helm issue. You are probably trying to update the LabelSelector fields which are immutable. This is expected behaviour as per the kubernetes .
3
3
6,740
2021-06-08T21:27:00.383
pipeline_ops
devops.stackexchange.com
592,662
How can I use hardware VPN connections from the cloud?
We currently host our servers in a typical hosting environment. We connect to several third parties via VPN connections. Each third party stipulates what VPN devices we can use to connect to their network. In each case they require a hardware VPN device is used, and in one case the third party demands we use their hard...
That is a "simple" routing issue. Just make sure the right routes are in place to get your stuff routed through the devices you need. E.g. Cloud -> Hosting -> VPN -> Partner.
0
0
129
2014-05-02T08:36:18.790
infrastructure
serverfault.com
128,666
Is there a better way to design these classes?
I have two business classes: TimesheetDay and TimeSlot. One TimesheetDay can have one or more TimeSlots. The TimesheetDay and TimeSlot classes will be dependent on an object that implements a corresponding TimesheetDayData and TimeSlotData interface. That way, I can write data classes to map the objects to a MySQL data...
I recommend to create one more class - [CODE] , it would map mysql data and objects. As I understand, you intend to make [CODE] and [CODE] as POPO (Plain Old Php Object). That is a good intention :) So what you have to do is inject [CODE] into [CODE] , there have a method [CODE] which would get the data from mysql base...
2
1
448
2012-01-05T19:27:17.077
pipeline_ops
softwareengineering.stackexchange.com
708,502
Postfix omits realm (@domain) when checking for smtpd pam+mysql authentication
I've trying to configure Postfix so users can send email through SMTP having a username and password. And I'm trying to store credential within a MySQL database. I've taken the path of [CODE] and [CODE] and I'm stuck in the midway. Enabling the pam debug feature I can see that when I try to send an email using Thunderb...
I found the problem, so here it is in case it would help anyone: There's a configuration file for [CODE] , mine is located in [CODE] : [CODE] The [CODE] variable is supposed to contain the options passed to [CODE] . It's missing [CODE] which does what exactly I was looking for. According to its documentation : -r Combi...
2
3
1,234
2015-07-25T18:48:10.530
api_errors
serverfault.com
379,779
How to allow arbitrary database connections based on users selections?
I'm writing an application which would allow users to access the databases over the network. Currently the user enters database details in a form which are later used to establish a JDBC connection. The details I obtain are (1) database host name, (2) username, (3) password, (4) certain other config parameters. Apart f...
Many databases allow extensive customization of the authentication mechanism. To be more specific, many have LDAP integration, which makes things much simpler both for you (or your system administrator), because there is no need to have dedicated accounts in the database, and for your users (because they don't have to ...
0
1
87
2018-10-10T15:42:01.747
database_errors
softwareengineering.stackexchange.com
334,879
Missing GIN support function (4 or 6) for attribute 1 of index
I have a problem creating GIN indexes in postgres 14.9 and GIN 1.3 The following is the query: [CODE] And here is the results of running the above: [CODE] I check pg_catalog and public schema GIN support functions. 4 and 6 are according to the documentation ( https://www.postgresql.org/docs/current/gin-extensibility.ht...
Errors with an SQLSTATE that starts with [CODE] are data corruption errors. You should see if you can [CODE] the database, then restore it to a newly created database cluster.
0
0
38
2024-01-15T15:19:58.347
database_errors
dba.stackexchange.com
591,253
Does varnish count a restart if all backends in a director are sick?
My varnish setup looks like this (obviously I've simplified): [CODE] And the vcl I'm wondering about: [CODE] What does varnish do when me! is sick (or really if all backends in the director are sick, only in my case it's 1/1)? Does it go to vcl_error immediately, and trigger a restart? I want to know how it will handle...
I've done my own testing, and it seems like it is an error when the director is unhealthy. Note I never did test this with more than one server in the first pool. When I set my target page.php to return a header 500 status automatically (only on the me! server) and watched the varnishlog, I saw the request to me! with ...
1
0
862
2014-04-25T04:43:40.087
infrastructure
serverfault.com
222,432
Creating materialized view is very slow
I have quite a complex query in PostgreSQL 10.4 on Amazon RDS (3 joins, quite a few conditions). It takes from 1.5 to 6 seconds to perform a select. However, when I want to create a materialized view from it to speed it up, it takes forever. By forever I mean more that 30 minutes (usually after this client drops connec...
The solution was to take a look at pg_stats and notice that there is very low correlation for some columns. The adjusting the stats for those relevant columns using: [CODE] Now creating view is slower by a very reasonable factor.
4
1
4,585
2018-11-13T13:34:25.920
database_errors
dba.stackexchange.com
432,455
Git tags as an alternative to --no-ff in gitflow
In https://nvie.com/posts/a-successful-git-branching-model/ , Driessen suggests using the --no-ff flag to make the history of commits for the dev branch clear. This is an easy flag for individuals on a multi-person team to forget to add, and it also has the disadvantage of adding extra commits to the history (commits w...
The main purpose of the [CODE] flag is to: [avoid] losing information about the historical existence of a feature branch and groups together all commits that together added the feature. (from the blog post you linked to in your question) If keeping the historical information about feature branches is undesirable, then ...
2
4
328
2021-10-05T15:37:54.960
api_errors
softwareengineering.stackexchange.com
727,204
Removed 2 hard drives in RAID configuration from Dell Server, need to recover data
My very old Dell server will not boot up, I am pretty sure it's a motherboard issue. So, I removed 2 hard drives when the computer's power was off. I am assuming the drives were in a RAID configuration. My intention was to get an adapter to recover the data, but then I figured out that I may not be able to recover the ...
I believe if it was RAID-1, both drives should be the same, with normal partitions, filesystems and files. You should be able to stick one drive in another computer and access the data. Of course it's possible that not all RAID controllers/software work the same way, but I have seen it work this way before. It couldn't...
-1
1
158
2015-10-06T23:30:51.997
infrastructure
serverfault.com
1,036,565
VirtualBox Windows showing weird screen right after starting the Virtual Machine
I am trying to create a virtual Windows using VirtualBox, and I have encountered a problem. I am following the Wikipedia instructions , and can solve every problem encountered so far until Step 19. After turning on the virtual machine, it shows me the following image, and nowhere does it give me an installation screen....
I don't have 50 rep, so I have to post this comment as an answer. You don't have a virtual hard drive configured. You should have one on SATA port 0. Put the optical drive on SATA port 1. I don't know if this is your problem though. I would have thought that windows setup would start without a hard drive. Also, you hav...
0
0
588
2020-10-06T07:32:10.013
infrastructure
serverfault.com
16,877
MongoDB: Should I combine fields for performance in limited circumstances
I have a really simple MongoDB collection: [CODE] There's an index on the "user" and "domain" fields. I always perform the same type of query on this collection and it only ever returns one result. [CODE] What I realised is because I always query on "user" and "domain" and because together they're unique I could just c...
Without combining the fields in your data set you could just create a compound index using both. No changes to your data necessary. To do so, just create the index like so: [CODE] Docs are here: http://www.mongodb.org/display/DOCS/Indexes#Indexes-CompoundKeys Once you have created such a compound key it essentially mak...
3
3
180
2012-04-23T03:17:55.397
database_errors
dba.stackexchange.com
82,007
How do I get this SQL Server ODBC Connection working?
Note: I've obviously changed the server names and IPs to fictitious ones. Here's what's going on. I've got a server, which I'm calling [CODE] , running Microsoft SQL Server Express 2005. Right on this server itself, I've got an ODBC connection set up pointing at itself, and that already works perfectly. I log in using ...
Named pipes and TCIP protocols for SQL server 2005 are disabled by default. Have you enabled them under "SQL server configuration manager"? You can find the protocols in the SQL Server Network configuration and under SQL Native client xx configuration. The connection on the server itself works thanks to the "Shared mem...
31
19
376,385
2009-11-06T00:22:00.530
api_errors
serverfault.com
37,862
Code quality metrics
Looking for some metrics which can be used to determine cost of given code (maybe versus cost of "fixed" code). I've already found some generic ideas like (bugs/cost per line of code), but I'd like to know more about how you can determine the maintenance/feature development cost of a code base.
You can't Not directly, because each feature is different, each application is different, and each developer is different. That said, there are some indirect measures you can use to approximate the information you are looking for: Cyclomatic complexity - in its simplest form, a measure of how many different ways throug...
0
4
2,336
2019-02-19T13:21:42.343
data_quality
sqa.stackexchange.com
86,736
Best way to improve resilience?
One of the major projects I have lined up for 2010 is attempting to mitigate some of the Single Point of Failures (SPOFs) in a network I currently manage. We currently have a single datacentre rack containing a couple of dozen servers. Inside the rack, we're redundant and resilient, each server has 2 disks, and can wit...
Well you're right, DNS is definitely not the answer - take that from someone who has run multi-homed ISP networks, and now does DNS for living. What was the £80k quote for - just BGP and an additional transit feed, or for the necessary Cisco routers too? The 2800s you're currently listing probably aren't capable of run...
5
4
1,494
2009-11-20T17:20:13.567
pipeline_ops
serverfault.com
988,339
Dropped large packets on VMWare
We have a strange issue in our network, which according to networkengineering.stackexchange is off-topic there , even though in my eyes it is a network problem. We saw it the first time when we wanted to restore SQL databases to a test DB. The restore failed, in the windows log we saw iSCSI errors, the mounted iSCSI di...
Obviously, the information about "Packets > 1518" has no this link to the Netgear Forum the 4 bytes for the VLAN tag are added to the MTU setting automatically, so there is no need of changing it to 1522 or something else. Would have been better if they would not count tagged packets in when counting packtes larger tha...
4
0
673
2019-10-17T06:27:05.353
database_errors
serverfault.com
293,292
Cannot start MySQL on windows box with named pipes
I've installed MySQL server on Windows although in the configuration have selected to not run MySQL as a server and have disabled TCP/IP access so only named pipes can be used, I'm now having problems getting the server running. Below is the output, after trying to start in standalone mode. Can anybody who knows a thin...
[CODE] What looks out of place here is the complaint about ib_logfile0 being a different size. That will definitely take out InnoDB. At the DOS Command Line, run this: [CODE] Restart mysqld and ib_logfile0 and ib_logfile1 should be rebuilt with the proper size. Give it a Try !!!
0
1
829
2011-07-23T08:15:30.200
database_errors
serverfault.com
108,812
Extract four digits from a column by regexp
I am sitting on a database where one column contains two data types ;) Example [CODE] The user thought it would be easily searchable this way... Now I am trying to fix this, taking the ID out of the title field and putting it into it's own column. How do I select the title with a regexp so that I only get the four digi...
If the four digits you need to extract are either exactly at the end of the string or are followed only by spaces, it would probably be easiest to extract them using the [CODE] function after removing the trailing spaces using the [CODE] function: [CODE]
0
3
1,144
2015-08-03T03:40:38.473
warehouse_errors
dba.stackexchange.com
582,077
Fedora 20, How to add MariaDB TokuDB engine
I was able to install MariaDB using this command: sudo yum install mariadb-server mariadb-client And it is working fine, but i am unable to install TokuDB engine as plugin. I have tried this: sudo yum install MariaDB-tokudb-engine but i am getting this error: No package MariaDB-tokudb-engine available. I guess its only...
I was able to solve this by doing clean install of TokuDB 7.1.5 Community Edition for MariaDB 5.5.36 downloaded from Tokutek site and installed as binary. Now i have this in MySQL as version: 5.5.36-tokudb-7.1.5-MariaDB and i have all needed engines incuding TokuDB and Aria.
0
0
604
2014-03-14T11:58:56.780
database_errors
serverfault.com
535,121
"The full text index for this database is in use" on virtual server, not on dedicated server
Our production Domino server was 32-bit Windows 2003 server where OS, Program Files and Domino Data all were on different disk drives. I don't remember seeing this error on that server ever: NotesException: Notes error: The full text index for this database is in use After we switched to a 64-bit Windows 2008 virtual s...
I reduced the sleep time between FT searches to 10ms and added exception handling so that the FT search is tried again 10ms after the exception. The result was 14 exception rounds on dedicated server and 12 on the virtual server. Probably there were some load on the virtual server when I first tested. 100ms sleep time ...
0
0
4,189
2013-08-30T12:07:17.903
infrastructure
serverfault.com
283,990
What arguments are there to use a coding style for each distinct language?
I recently had a discussion about our coding style for C# projects. Two things in particular were very hard to agree upon. Method Naming C# has the de-facto standard of naming (at least public, not sure about private) methods in the [CODE] . Coming from a Java background, our current document states to use [CODE] inste...
I'd say if your Java devs regularly program in C# and vice versa, they might have some argument for making them look the same (slightly easier to read). But even then, differences can be useful enough to trump reading ease. I for one like to use same-line-open-brackets in JavaScript to remind my brain at all times that...
1
7
662
2015-05-15T09:05:47.527
api_errors
softwareengineering.stackexchange.com
520,565
Why is Apache returning Service Temporarily Unavailable on local host?
Ok so I am a bit new at all this. I was trying to get php and apache2 running on my localhost and I don't seem to be able to get it to work. I keep getting this message when inputting localhost into chrome on my machine: Service Temporarily Unavailable The server is temporarily unable to service your request due to mai...
Apache is trying to connect to an upstream proxy at [CODE] port 20559, but there is no service running at that address/port. Since no service is running, Apache gets [CODE] and returns a 503 error. To resolve the issue, either start the service, or use the correct IP address/port number, as applicable. (It's unlikely t...
4
3
44,321
2013-07-03T15:31:43.887
infrastructure
serverfault.com
37,747
What is the Microsoft Proxy Client (MSP Client)
There seems to be a piece of software, related to Microsoft Proxy, called " MSP Client " - which i assume stands for Microsoft Proxy Client . Of course it doesn't have to be a piece of software, MSP Client could be the client that is using MSP . But what is this software? Is it something that is intalled as a protocol ...
The Microsoft Proxy client (now called the Microsoft Firewall Client) shims into the Windows Sockets subsystem and implements a "backchannel" protocol between your client and the Microsoft Proxy (today ISA Server) server computer. Additional metadata about your security context is sent along with new connection request...
1
2
4,470
2009-07-08T15:34:23.347
infrastructure
serverfault.com
808,577
Apache2 - SSL pages load in Chrome but not Safari
I'm having this unusual SSL issue with Safari. Basically I have a Debian server running Apache 2 (2.4.10) with OpenSSL 1.0.1t on a private network. I've set up an SSL virtual host in the normal way and I'm using a web server certificate signed with an intermediate which in turn is signed by a private root certificate i...
Looking your trace, I think I got it. Seems like the Apache virtualhost replying on IPv6 in port 443 is configured to "speak" HTTP, not HTTPS. I verified this trying to connect to: https://google.com:80/ (or any other site) while sniffing, and the reply i get is exactly 400 like in your case. So, check your Apache Virt...
0
0
3,842
2016-10-12T10:46:44.827
api_errors
serverfault.com
982,191
Pointing SSL domain from Cloudflare to Azure Storage static website
I have created an Azure Static website using azure storage account and then I have pointed CNAME record to the primary web link provided under the Static Website section in the Azure Storage account. My domain name is connected with Cloudflare to provide with SSL for my domain but even its SSL enable I get the error sa...
You either need to add a custom hostname to the storage account or set a page rule in cloudflare that rewrites the host headers.
0
0
191
2019-09-06T11:30:31.997
infrastructure
serverfault.com
500,283
SSH tunnel to allow ssh traffic: connection always refused
I have access to two servers at work. Server A hosts git repositories and is externally visible. I would like to be able to clone a repository into Server B which is hosted on Server A. Currently, I can't ssh from Server B to Server A. I am assuming the firewall is blocking that. So I am trying to create an ssh tunnel ...
You need to create a reverse tunnel with [CODE] instead of [CODE] . On your local machine, use [CODE] You'll get a shell on [CODE] . If you do [CODE] on this shell, this will connect you to port 22 of [CODE] , tunneled through your local machine. After that, your git clone command should work.
1
2
2,084
2013-04-17T16:49:01.343
infrastructure
serverfault.com
195,253
How to repair ext3 boot partition?
I have a small VIA Ubuntu server used as firewall and a second one with Ubuntu desktop for hosting different services (web, mail, ...). For an unknown reason some errors occurred in the sda1 partition (boot partition) of both computers. I suspect it was caused by a power failure this summer although I have an APC UPS. ...
generally the concept is to mount the filesystem read only (that's why a live cd is needed). for your case, since you have nothing you could start the system in single mode (add 1 in your boot parameters). Another thing you could do is to make a usb bootable (unetbootin) and boot it (some idea as live cd) You could als...
0
1
2,506
2010-10-27T09:22:03.203
infrastructure
serverfault.com
70,272
Discrete values as target variable
I have discrete values in the target variable(Exactly 13 different values in total) . When I am giving that as input to Random forest Classifier ,it gives error that input as continuous. And if I give it to regressor it is predicting a value between the discrete values. How can I treat this problem
I suspect the problem is that your discrete values are non-integer floats. The classifier's fit method runs [CODE] , which returns (in part): 'continuous': [CODE] is an array-like of floats that are not all integers, and is 1d or a column vector. ( source ) (Tracing the source code wasn't straightforward; a traceback o...
0
1
359
2020-03-26T14:46:30.953
data_quality
datascience.stackexchange.com
73,396
Cron job not running on specified time
I've a cron job that should run every day at 1700 hours from Saturday to Sunday. However, it runs on the system at 0100 hours instead. The schedule descriptor string used to define the table for this particular job in question is: [CODE] The system on which this crontab exists is CentOS 5.2 with ISC Cron V4.1 running o...
Crond is likely still in the old timezone, restart it (from a shell with the right timezone) to pick up the new [CODE] variable.
0
8
2,119
2009-10-11T13:49:58.883
infrastructure
serverfault.com
468,804
mdadm stalls rebuilding a RAID5 array at 99.9%
I recently installed three new disks in my QNAP TS-412 NAS. These three new disks should be combined with the already present disk into a 4 disk RAID5 array, so I started the migration process. After multiple tries (each taking about 24 hours) the migration seemed to work but resulted in a non-responsive NAS. At that p...
It is likely stalling before finishing because it requires the faulty disk to return some sort of status, but it's not getting it. Regardless, all your data is (or should be) intact with only 3 out of 4 disks. You say it ejects the faulty disk from the array - so it should still be running, albeit in degraded mode. Can...
3
2
5,602
2013-01-14T09:33:02.467
infrastructure
serverfault.com
40,247
Gatling POST request
[CODE] while compiling, i am getting error [CODE]
It's because your [CODE] holds the value of [CODE] , which is a [CODE] instance, which you can't call [CODE] on. Some curly brackets solve the problem, like this: [CODE]
0
0
402
2019-07-31T04:35:13.647
data_quality
sqa.stackexchange.com
25,828
Data recovery options for unix file systems
What popular and tried data recovery options are there? I know of these (none of which have GUIs afaik): foremost - Forensics application to recover data scalpel - A Frugal, High Performance File Carver ext3grep - Tool to help recover deleted files on ext3 filesystems e2undel - Undelete utility for the ext2 file system...
I've had excellent results with TestDisk . No gui, but the next best thing ... console menus! And an excellent wiki for use cases. Many an accidentally deleted thumbdrive has been rescued.
5
2
292
2009-06-15T12:44:44.880
infrastructure
serverfault.com
94,024
Does Unit Test increase productivity?
Possible Duplicate: TDD vs. Productivity In most computer science books such as Clean Code we are told to write good Unit Tests in order to increase productivity when updating project or writing new modules (or refactoring). Most of my project are short and take about 2 months or less to develop and often they will nev...
I have found unit tests to help my productivity: They help me work out how I'd like my code to be organized (classes, methods, etc). They help document how to interface with the code. Looking at one unit in isolation helps focus on edge cases and hidden assumptions that could bite later on. Chunks of code that are reus...
6
6
742
2011-07-18T16:07:08.310
data_quality
softwareengineering.stackexchange.com
209,014
How can I observe what nginx is doing? (to solve: "1024 worker_connections are not enough")
I have a very low traffic site running on nginx, with 4 workers, 1024 connections each. Every several hours I start seeing in the error log "1024 worker_connections are not enough", and my site slows down / becomes flakey. A nginx restart solves the problem entirely for the next several hours. Clearly something odd is ...
Without proxy pass / reverse proxy [CODE] With reverse proxy [CODE] 2 is because you open a connection to what you are proxying X is however many concurrent connections these clients make to you To see which connections are hanging around you could run [CODE] . It will show all connections open to nginx, and their stat...
10
8
15,596
2010-12-04T00:49:46.390
infrastructure
serverfault.com
356,674
Why is my RHEL6 x86_64 server trying to install libselinux.i686?
Just did a fresh install using the RHEL 6 DVD on a test VirtualBox server: [CODE] I am certain it's an x86_64 machine: [CODE] And no other i686 packages are installed: [CODE] But when I do [CODE] : [CODE] Here are my repositories: [CODE] What gives?
This was due to an [CODE] package bug. [CODE] command that @Mark recommended helped me figure that out. I was able to get around it by manually installing a newer package and all was good.
4
2
4,022
2012-02-03T19:54:57.710
infrastructure
serverfault.com
158,110
How to extract dynamically data from another database in function with DBName as parameter?
I have one main database ( [CODE] ) and several client DBs ( [CODE] ). I need to start query in [CODE] and to get data from [CODE] . The client DB can be found also on linked server. My problem is that I need to do this in a function with [CODE] , so I can get [CODE] , but this in not allowed by SQL Server. Is there an...
It is not possible to do this dynamically via [CODE] , as IIRC you can't do that in a function. You can't use an ad-hoc distributed query via [CODE] ( https://msdn.microsoft.com/en-us/library/ms187569.aspx ) either as [CODE] explicitly requires its inputs including the query text to be string literals not more general ...
1
1
2,667
2016-12-14T09:57:29.587
database_errors
dba.stackexchange.com
259,791
Nic bonding and ESXI
I was wondering something related a setup I was planning to do. I am redo doing my small vmware network to change to a better box as my iscsi target. Just like my old box this one has 2 gigabit network interfaces. My ESXi box also has 2 interfaces that I dedicate to for storage. The problem is I don't have a switch tha...
iSCSI should never use bonded interfaces because of the way it works. Use MPIO for iSCSI redundancy and increased throughput.
0
1
2,300
2011-04-14T18:57:50.117
infrastructure
serverfault.com
200,870
Move grid hosting to dedicated?
I have been using a grid hosting solution to host a site of mine for some time. it is a drupal site with reasonable traffic. I have a vps with the same host which provides 0.5GB of memcached, but other than that the VPS is not really used because I don't want to slow memcached. Without giving away too many details abou...
I would recommend a hybrid setup or a performance cloud (grid). Some of the performance requirements to satisfy your CMS suite may still be addressed given the appropriate solution. Not sure if you are shopping around for hosting companies, If you would like I can send you information on a managed cloud service with In...
0
1
109
2010-11-11T17:52:08.467
infrastructure
serverfault.com
127,907
Error while installing MySQL on RedHat Linux
I am new to RedHat Linux and am referring to this link for the installation : https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html I finished the first two steps and when I try doing Step 3, I get the following error: [CODE]
I will recommend to move from php-mysql to php-mysqlnd (which provides the same set of extensions: mysql, mysqli and pdo_mysql), and thus, get rid of dependency on libmysqlclient: [CODE] Notice: PHP 5.4 is now EOL, I also recommend to upgrade to 5.5 or 5.6. And 5.4 is also the last version to provides php-mysql, newer ...
0
1
1,567
2016-02-01T08:24:12.967
database_errors
dba.stackexchange.com
483,557
sshd[4344]: error: ssh_selinux_setup_pty: security_compute_relabel: Invalid argument?
OpenSSH_5.8p1, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 selinux-policy-2.4.6-338.el5 pam-0.99.6.2-12.el5 SELinux is running in permissive mode: [CODE] Whenever I login via ssh, [CODE] complain that: [CODE] Google point me to this thread on the Fedora forum: Possibly the easiest way (though longest) is to create the file [...
The [CODE] file just causes the startup scripts to run [CODE] at boot time, and then reboot again. (Actually it runs some invocation of [CODE] that prints lots of dots, but since that's just a frontend to [CODE] I don't care...) You could just run this yourself without rebooting, and that's generally my first step when...
0
1
6,554
2013-02-28T22:10:47.600
infrastructure
serverfault.com
139,234
people fork my project but don't fetch from upstream - what can I do?
Several people have forked my github repo but they have not fetched-merged from upstream. So my original repo has evolved significantly since the fork took place, and meanwhile these people are showing an old outdated version of my work, which kind of makes me look bad (e.g. what they're displaying is incomplete, conta...
Is there anything I can do about this? Make your repo private or take your code off GitHub. This is just the price of being open source, isn't it? Yes. The whole point of Open Source is that others are free to change it and/or redistribute it. Depending on the licence you might be able to enforce them to use a differen...
9
11
2,070
2012-03-11T19:53:39.300
api_errors
softwareengineering.stackexchange.com
479,010
Mounting a S3 bucket across multiple instances
I want to use Amazon S3 to store all of my files for my websites. I can set S3QL up properly so that it is mounted on [CODE] and everything works fine. I want to do it this way so that I can create an AMI, and then fire up multiple instances which would then also mount the same S3 bucket to [CODE] Will this cause any d...
If: you mount the bucket read only, you're fine. If: you try to mount it read/write, you're headed for trouble. A method I've used is to create a large file, roughly the size of a disk that would hold the data and treat it like a partition. Essentially, it becomes a large file container. This saves a huge amount of tim...
1
1
4,166
2013-02-14T21:44:17.087
data_quality
serverfault.com
792,572
What Does a Layer 3,4 Firewall do that a Layer 7 Does Not?
I'm thinking about going with a security vendor for hosted sites on my VPS, and I'm having a hard time understanding something. (Yes I know this is OSI terminology, and the sites in question are basic dental and medical practice websites with no eCommerce and no private info (SSN, etc). Their basic plan has a Layer 7 f...
It sounds like you're getting a bit of misleading jargon. The technical definitions for these types of firewalls are: Layer 3 firewalls (i.e. packet filtering firewalls ) filter traffic based solely on source/destination IP, port, and protocol. Layer 4 firewalls do the above, plus add the ability to track active networ...
19
31
43,687
2016-07-28T20:45:16.550
infrastructure
serverfault.com
618,236
Need help examining tcpdump file to block attack
I need some help, my game server has been under fire with DoS attacks for 2 days now. Bandwidth attacks are no problem since I host with OVH and they are filtered out but my game server ports are being attacked which times out the servers and disconnects all players. So at first it was easy, he attacked with packets fr...
If you are not going to apply NAT or filtering based on stateful inspection, then you are better off not using connection tracking. You can disable connection tracking on a per packet basis by using the [CODE] target in the [CODE] table. That should avoid the [CODE] messages you are seeing. Suitable rules could look li...
0
1
502
2014-08-05T21:22:14.630
infrastructure
serverfault.com
281,383
SQL Server 2019 Performance issue with large INSERT
We are converting several ETL processes from SQL Server 2016, Windows 2012 server to a Windows 2019, SQL Server 2019 (CU8) environment. One process is running longer in SQL Server 2019 than it used to in SQL Server 2016. The process performs an [CODE] , where [CODE] is a series of substring and case statements. Table A...
From comments: To all intents and purposes, those plans are identical. As such, I'd focus more on differences in the physical set up and server settings. If the query optimizer for 2016 and 2019 are arriving at identical plans, but, behavior is different, chasing optimizer settings, query hints, statistics, cardinality...
6
1
2,319
2020-12-11T21:08:35.333
database_errors
dba.stackexchange.com
709,262
DFS-R creating 4.2 million file backlog of identical files after clone
I have a Windows Server 2012 R2 DFS node that got its database corrupted. Before the DFS-R corruption, it had a totally up to date data set. It was around a week before we discovered the corruption, which would have meant that around 10,000 files were changed during that week. Fortunately I have another 2012 R2 DFS nod...
I was never able to find a solution to this problem. I decided to just let the sync run its course. It took 3 weeks and the backlog grew by a few hundred thousand files during the syncing time, but I didn't see any other choice.
5
2
893
2015-07-29T06:23:02.160
database_errors
serverfault.com
332,942
Bridging and iptables SNAT conflict
I am working on a setup here and have it working with one minor exception. Devices on one side of my bridge aren't getting SNAT'd to the Internet. The Diagram / Overview: [CODE] Here is the setup: Site_A has all the production servers and workstations. Site_B has a set of servers that we would like to fail-over to and ...
if the packets are being bridged, of course iptables will never see them. Solution? use ebtables to redirect internet bound packets to the machine so that they will get the SNAT treatment (I'd use -j REDIRECT for MAC mangling)
1
1
620
2011-11-20T15:48:19.100
infrastructure
serverfault.com
1,064,777
Serve pdf file by location in nginx
I'd like to serve a unique pdf file by location in nginx. I followed the instruction here: https://stackoverflow.com/questions/42023339/serve-pdf-file-by-location-in-nginx and I did: [CODE] Everything is working except a [CODE] file is downloaded (without the filename) How can I fix this?
Drop the [CODE] directive and replace it with, e.g. [CODE] to make a redirect. [CODE]
0
0
2,004
2021-05-26T14:06:21.523
infrastructure
serverfault.com
818,950
Cannot send shared mailbox message with exchange 2013
I marked myself Full Access and Send On Behalf shared mailbox permissions. Then in the from field do not appear shared mailbox so i type manually in [CODE] : [CODE] and click ok. Then once i try to send i receive error: [CODE] My Global Address List is updated, but i do not see it in GAL. Previously there was a user wi...
In your posting you wrote: "marked myself Full Access and Send On Behalf shared mailbox" however according to KB 3045224 you need Send As permissions instead of Send On Behalf. Your situation seamed to be: You have Full Access and Send On Behalf Of permissions to a shared mailbox in an Exchange Server environment. You ...
0
1
3,871
2016-12-06T07:48:52.647
infrastructure
serverfault.com
862,181
M4.large on AWS encounters stolen cpu
My M4.large instance somehow reported slight stolen CPU. However, if I didn't remember wrong. It should merely occurs on T2 or M3 series instances. top - 11:07:53 up 24 min, 2 users, load average: 1.00, 1.00, 0.80 Tasks: 89 total, 2 running, 87 sleeping, 0 stopped, 0 zombie Cpu0 : 29.0%us, 62.6%sy, 0.0%ni, 8.0%id, 0.1%...
Typically CPU-steal happens on any virtualised infrastructure as the needs of the VMs change. CPU-steal is the stealing of cycles from your VM by another VM - not by different cores within your VM. Given that Amazon are using an (albeit heavily custom) build of Xen, CPU steal is to be expected to a certain degree, and ...
2
2
1,176
2017-07-14T11:18:56.897
infrastructure
serverfault.com
228,420
Index vs Statistics
In SQL Server, when to create statistics only on a table column instead of index and when create to index (which creates statistics as well automatically)? I mean both improve query performance then how can one decide which is suitable?
Let us try to understand what is index and statistics first: An index is an on-disk structure associated with a table or view that speeds retrieval of rows from the table or view. An index contains keys built from one or more columns in the table or view. These keys are stored in a structure (B-tree) that enables SQL S...
0
0
1,689
2019-01-30T08:08:57.840
database_errors
dba.stackexchange.com
306,513
Setting up MysqlMM replication with EC2 instances with elastic IPs for both
I just spun up two EC2 instances and got an elastic IP for each. I can't seem to get it to connect. Here is the bulk of my config: [CODE] the config for the other server is very similar(but different IP among a few things). When I run: [CODE] I see the following: [CODE] I don't know what to do at this point... EDIT: I'...
Both servers are trying to use the same sets of autoincrement IDs, causing a conflict when replication occurs. To fix this, you need to adjust the [CODE] (to 1 on the first server, 2 on the second) and [CODE] (to 2). If you eventually add a third server, its [CODE] would need to be 3 and all three servers would need [C...
1
2
267
2011-08-30T17:20:10.363
database_errors
serverfault.com
626,754
Hardware compression on tape drives: does it still make sense?
Does hardware compression still make sense on tape drives, considering the performance of modern CPUs? Also, what should I do if I have some data which is already compressed in GZIP and my drive is working with hardware compression enabled? And, are the hardware compression algorithms proprietary, thus making it imposs...
As the tape drive has hardware dedicated to compression, your CPU can be used to something else... so yes, it makes sense. On a file server, you want the server to serve the file request, no compressing data for the backup. Tape drive hardware works "on the fly" ... if you backup some data already compressed as "zip" f...
5
6
1,064
2014-09-06T21:36:53.930
infrastructure
serverfault.com
931,430
Have a system that expires SSH keys every 90th day
I have a customer that now requires us to change every password every 90th day due to their interpretation of GDPR. That's fine for the web-based system we develop for them because we can just implement those rules. But they also require us to change the passwords on our SSH keys used to access the servers, which is, w...
The customer is wrong here and does not understand what they're talking about. Changing the passphrase on a private key is a very bad idea, because it has very counter-intuitive security properties. Normally, users think of passwords that they have changed as "no longer secret". They might become throwaway passwords fo...
28
37
11,673
2018-09-18T07:45:43.377
hadoop_errors
serverfault.com
83,950
my.cnf parameters to enable binary logging mySQL 4.1.20
I'm having problems enabling binary logging on mySQL 4.1.20 After adding log-bin=/var/log/mysql/tts_db to my.cnf, mysql fails to restart, with the following error in mysqld.log: 091112 03:36:37 mysqld started /usr/libexec/mysqld: File '/var/log/mysql/tts_db.000001' not found (Errcode: 13) 091112 3:36:37 [ERROR] Could n...
In general on Linux systems, an Errno 13 means Permissions Denied or Access Denied. What's the output of [CODE] Does this match with your MySQL user? If not, suggested solution (providing mysql is your mysql user and mysql is your group): [CODE]
0
1
4,596
2009-11-12T10:12:31.597
api_errors
serverfault.com
443,252
Reverse DNS is finding someone else's domain
When I do a reverse DNS of my IP address I'm finding a different server name? This isn't my domain name. I was testing my mail server and it gave that warning. How do I fix it? [CODE]
The reverse DNS (which is a PTR record in the in-addr.arpa zone) is set by whoever owns the IP allocation. You need to ask whoever provided the IP to you (e.g. the ISP or hosting provider) to change the record.
0
6
445
2012-10-29T05:42:31.683
infrastructure
serverfault.com
119,239
URL does not work, from one location
I cannot reach one of my vendors web sites. I can access the site from home, my boss can access from his home. But, from the office it does not work using the domain name. Using the IP address in place of the domain name does work. From these facts, it seems that I have a DNS problem at my work location. The DNS is obv...
Well at the very basic level, if you just want to get it working on your machine, then you can edit your hosts file on your local machine to set the IP address for that name. See this question . If you want to fix this problem on an organisational level, then you need to get access to your DNS server and take a look at...
2
1
774
2010-03-04T16:43:13.983
infrastructure
serverfault.com
346,828
How to chown when a user name contains a dash?
A user and group contains a dash: abc-def . When I try to use chown I get an error: [CODE] the user is valid and it should work... how can I use chown with user/group names containing a dash?
GNU chown uses a colon instead now to separate user and group. [CODE]
1
6
912
2012-01-05T06:26:10.367
infrastructure
serverfault.com
352,955
RESTful way to get a difference in a list of entities
I have a REST endpoint that gets a list of customers in a JSON format. GET /webservice/customers [CODE] My client saves in a database the customers it loads, but to update this list it needs to load all the data everytime. Sometimes I can have more than 100 000 entities , which is really slow and consuming. I'm looking...
Yes, you want to support filtering the endpoint by a date. Something like [CODE] [CODE] and [CODE] headers deal with returning or not returning a resource at all. You want to filter the responses from your endpoint.
2
7
205
2017-07-17T17:07:52.360
api_errors
softwareengineering.stackexchange.com
426,745
Best Practice - SQL 2012 & IIS in VMWare
We are pretty new to VMWare and looking for some thoughts on our environment. We have a VMWare cluster that has on one host: VM#1: MS Windows 2008 R2 Enterprise & SQL Server 2012 VM#2: MS Windows 2008 R2 Standard & IIS The IIS asp.net app talks directly to the SQL Server. We had this similar environment on physical ser...
Assuming that there is no resource over-commitment, reservations aren't going to get you a whole lot. You need to track down what the cause of the slowdown is. What is observed is that the VMs seem to spool down and we get lags in response. What you need to do is find out what resources are causing this. Also "spool do...
3
3
3,902
2012-09-12T12:56:29.413
database_errors
serverfault.com
1,145,202
Collect packages versions with ansible
Hi friends hope you're being well. I got this very basic task i need to accomplish via ansible but i'm stuck with variable resiter : i need to collect some packages version with ansible and display the output as : host has 'this software : version' here is the play: [CODE] When i execute it i got this message: [CODE] I...
Use the module package_facts . You'll get a dictionary of installed packages in the variable ansible_facts.packages . For example, [CODE] gives in Ubuntu [CODE] The results are lists because more versions of a package might be installed. If you want to take the first items add the filter first to the pipe [CODE] If you...
1
3
528
2023-10-05T13:09:37.653
pipeline_ops
serverfault.com
156,248
SSIS ETLs deadlocking
We have an SSIS package in our SQL Server 2008 server to load data onto our system every night. The SSIS package consists of several ETLs (around 20) that are currently run sequentially. On some nights it spits out below deadlock messages for certain ETLs. Some nights pass with no errors at all. Every night what's run ...
I encountered the same issue. I was using a data flow task component in which there is a condition split with many outputs. The problem was that more than one of these outputs was calling the same stored procedure(As the stored procedure was performing a lock on a specific db resource, I found myself with a parallel us...
1
1
2,699
2016-11-24T08:05:12.740
database_errors
dba.stackexchange.com
137,897
Create a copy of a SQL Server Job
Using T-SQL or Powershell, how can I create a stored procedure that performs the following: Copy a SQL Server Agent Job to another backup Job on the same server (with a new name) Disable the backup job so that it is not scheduled. [CODE] The solution needs to work on SQL Server 2008 - 2014
[CODE] You can run this on servers with SQL 2008 R2 Feature Pack or SQL 2012. You can run it targeting remote servers. If the job name already exists, or there is any other error, it will break out. If the job name referred to itself in one of the steps or something that will of course be problematic seeing the simple ...
2
1
5,821
2016-05-08T10:10:33.807
database_errors
dba.stackexchange.com
598,111
Storing Postfix's passwords in MySQL without encryption
I've been struggling with Postfix for past few days. Finally I managed to set it up with virtual mailboxes listed in MySQL and passwords encrypted with PAM. It was just then that I realized I need the passwords to be stored not-encrypted! I can't seem to find whether it's possible or not. Can someone please guide me to...
As Nick told me, it is a bad practice to store passwords in clear form in database. I managed to find a way around it so I'll be storing passwords encrypted after all. But if there's any scenario that can not escape this bad practice, I must say that my tests showed me that even though I configured Postfix to use PAM f...
1
0
649
2014-05-23T14:17:25.907
database_errors
serverfault.com
523,656
HDD in RAID failure?
I received some alerts from mdadm. Further checking seem to indicate that some HDD's may be damaged. Could you please verify that? There is two SCSI drives which should work in RAID1 [CODE] Output of mdadm --detail /dev/md0 [CODE] I just want to add, i booted it in rescue mode and this is the output i get with smartctl...
You have a mirror (RAID1) of two partitions (sda2 and sdb2 form md0). Sda2 has failed. If there is nothing else on sda (e.g. sda2 is the size of the whole disk) then replace it. If sda has multiple partitions than first make sure that there is no active data on those. Array Size and Used Dev Size seem the same or at le...
0
3
509
2013-07-16T11:01:47.583
infrastructure
serverfault.com
258,676
Remote connection scheme without Windows Authentication/Domain in detail
There is a legacy C++ system that needs to be "translated", that uses ODBC for connecting to remote SQL Server Database. System is distributed to many different OS and different domains, some always online, some updated on connection, some updated via sending/receiving updates in the form of files. Each user has been r...
how safe is this remote SQL Server access scheme The shared account credentials embedded in the application can be read by anyone who controls a computer on which the application runs. No matter how you try to hide the credentials, you can never hide from a user with a debugger, who can just set a break point on the fu...
0
1
59
2020-02-01T11:22:24.030
api_errors
dba.stackexchange.com
742,820
nginx1.8.0+PHP 5.6.16 on OSX, some php pages links show 500 Internal Server Error
My page documents locate in [CODE] [CODE] My nginx configure is nginx.conf and my php and php-fpm configure is this file and I find I can use wordpress(/usr/local/var/www/wordpress) perfectly, but not anchor(/usr/local/var/www/anchor), anchor will shows 500 error. I get this log from the php-fpm [CODE] I already tried ...
You need to ensure which user launched master PHP-FPM process, not pool processes. for example: root@strangeman:# ps aux | grep php-fpm root 1135 0.0 1.6 334196 16812 ? Ss Dec13 0:02 php-fpm: master process (/etc/php5/fpm/php-fpm.conf) This user may be declared in php-fpm startup script
0
0
763
2015-12-14T07:15:20.073
api_errors
serverfault.com
382,629
OpenManage vs Reality: where are my disks?
Im getting a 'degraded disk' error from an old PE 2850. I see the orange light blinking on the array so I know where the problem is. The system is running win2003 x64. Im running OpenManage also and I'd like to add a hot-spare to the system so I can fail over the drive and yank it. When I go into OpenManage Im told the...
I've seen that OpenManage will sometimes remove a failed physical disk from the listing in OMSA. Kind of a PITA, especially if you wanted to make it blink. I'm sure if you booted into the PERC BIOS, you'd see all of the physical disks.
0
1
520
2012-04-24T15:28:50.887
infrastructure
serverfault.com
391,166
Windows DNS doesn't resolve local records to different subnet without domain suffix
I have a domain with a windows DNS that works great for every computer in that subnet. Today I setup a remote office and joined them to the network through a VPN tunnel and so those computers are on another subnet. I then set the remote office to use the main office DNS and it works great for almost everything. My only...
Add them to the main domain or add the suffix in DNS settings. connection properties > TCP/IP properties > advanced > dns > append these dns suffixes (you can also set this via dhcp)
0
2
2,945
2012-05-21T19:17:00.060
infrastructure
serverfault.com
27,811
Unable to capture Rest API's in soapui with proxy
I am a SoapUI Beginner, using SOAPUI(version 5.3.0) open source for API testing. I want to fetch all Rest API with a proxy. But whenever I use HTTP Monitoring Tool in soapUI to fetch all the rest APIs I am receiving Null pointer exception. I tried the following steps: Under preferences, added proxy for localhost. The s...
My understanding is that you're trying to do API discovery on some website/resource/endpoint. Seems like SoapUI only offers this feature for SOAP web services. If you want to do API discovery there seems to be no real way to do that programmatically/automatically due to the nature of REST APIs. It is impossible to dete...
6
1
459
2017-06-15T06:01:51.023
api_errors
sqa.stackexchange.com
322,280
How to extract the subquery of an update script into a CTE?
I store groups and their members in two tables where the member table references the [CODE] as a foreign key: [CODE] Now without knowing (= typing out) any ids I need to update the [CODE] s of one group: [CODE] Luckily, I can uniquely determine the group by [CODE] s its non-id columns [CODE] and [CODE] , and the member...
The CTE acts like a table, so you need a proper SELECT to access it: [CODE]
2
1
59
2023-01-18T18:21:21.750
warehouse_errors
dba.stackexchange.com
1,051,031
Jenkins installation fails on Ubuntu 20.04 with dpkg: error processing package jenkins (--configure)
I was trying to install [CODE] in my server [CODE] with the following commands [CODE] But installation fails with [CODE] [CODE] I've tried this, removing and again installation , changing the content of [CODE] here but none of them is working. I'm only facing this problem when I try to install [CODE] in server, while I...
[CODE] Oficial docs: https://www.jenkins.io/doc/book/installing/linux/#installation-of-java https://www.jenkins.io/doc/book/installing/linux/#debianubuntu
4
2
15,944
2021-01-24T20:20:36.917
pipeline_ops
serverfault.com
523,732
Vmware View 5.2 PCOIP flash performance with ZeroClient
At the moment i'm testing a VDI with VMware View 5.2 and LG CloudMonitor 23CAV42K. My VMs Settings: Win7 Pro 1 virt. socket with 2 cores per socket (Xeon X5450) 2GB RAM Teradici Audio Drivers Linked Clone and installed with EMC + VMware performance guide Pool Settings: 3D-Render: Softwaer 512MB 1 Display Flash Quality ...
we use Teradici cards to offload the CPU as well as the audio. Once you install the card, add the Teradici audio driver to your VM. Your bandwith usage will go up however. Without the Teradici driver, our audio bandwith was around 100-150kb/s. With the driver, it went up to 450-500kb/s. But I believe that you can modif...
0
0
453
2013-07-16T14:51:19.080
infrastructure
serverfault.com
25,406
How to design two different neural nets for actor and critic RL?
In order to have an actor critic RL model there are two things to be satisfied . Value approximation function should converge to a local minimum $$\sum_s d^{\pi}(s) \sum_a \pi(s,a)[Q^{\pi}(s,a) - f_w(s,a)]\frac{\partial f_w(s,a)}{\partial w} = 0$$ The following condition should be satisfied with the parameterization $$...
There are many papers out there that deal with neural networks and RL. This blog will give a very good insight on a Policy Gradient Network: Deep RL with PG Now for your question. You really need to be familiar on how we train a neural network. A simple one for classification. If you check the derivations and how the w...
3
3
1,313
2017-12-05T11:39:15.193
data_quality
datascience.stackexchange.com
161,746
VM virtual hard drive alignment
According to http://www.yellow-bricks.com/2010/04/08/aligning-your-vms-virtual-harddisks/ it is important to align the virtual hard drives of virtual machines for performance. I'm running virtual machines in an environment built on Debian, KVM and LVM. What steps should be taken to get alignment right when installing a...
You need to know the block size of your disk, or the stripe size on a raid/LVM. Misaligned partitions happen in cases where the blocks of the filesystem are not 'aligned' with the blocks on the disk (or chunks in a striped environment like storages, RAID or LVM). So, if you have a 8k chunk size on the storage, use 8k b...
2
1
2,231
2010-07-19T10:51:07.760
infrastructure
serverfault.com
297,865
anonymous/ghost users in database
This questions is related to this one : anonymous checkout My company bought a CRM software and I am concerned by the way it stores customers' information. The website allows anonymous users to have a shopping cart and add products. The website asks them to log in once they want to pay. The thing is: anonymous customer...
You always have to be careful not to confuse or intermingle Authorization and Authentication. Customers are accounts who can buy stuff on your website and not necessarily ones who can login. The security risk can come into play if for some reason your code somehow could come up with a customer record for an anonymous c...
1
1
350
2015-09-21T21:15:16.020
api_errors
softwareengineering.stackexchange.com
474,253
Linux process swap usage is greater than the overall system swap usage
I have a strange problem that when I run top command it shows that some processes are using around 1.5GB of swap space but then the overall usage of the system swap is way to less to something around 117MB, so why is that? I thought the overall system swap usage is the aggregated usage of all the processes, which doesn...
Top (at least in some versions) calculates SWAP per process as VIRT - RSS instead of reporting real swap usage. Under Linux the result is a completely meaningless number.
2
6
1,968
2013-01-31T15:55:52.957
infrastructure
serverfault.com
425,914
Why running migration turns into timeout in a production environment?
I know this is a theorical question since i don't have code to or any logs to show, but i hope that someone can give me some idea on this question. The problem in question was the following: On my work, on a deploy to a production system a migration took so much time running that it failed due to a timeout and this hap...
You will need to look at the sql generated for the migration to determine why it is slow. Possible reasons include: Deadlocks with other queries Rebuilding indexes Moving lots of data around Running out of memory due to large transaction This kind of thing wont show up on a small database, but can kill your production ...
-3
4
888
2021-04-29T21:16:30.277
pipeline_ops
softwareengineering.stackexchange.com
30,868
Cannot generate reports from SQL Management Data Warehouse
I'm running SQL Server 2008 R2 and have installed the MDW on one server and have a Data Collector collecting and uploading the server activity, query results, and Disk activity data to the MDW. When I select any of the reports from the MDW with Data Collection > Reports > Management Data Warehouse I receive the error: ...
Just ran into and resolved this issue today. Select the View Logs context menu option in the Data Collection Sets--the data upload could have failed, which causes the reports to generate this issue.
5
2
2,698
2012-12-20T23:43:09.207
database_errors
dba.stackexchange.com
908,694
Mapped VMDK no longer accessible - VMware ESX - recover data
At my company we have a virtual Windows 2012 R2 server running on VMware ESX. The server has 3 disks attached on different LUNs. (Disk 1 & 2 are on a smaller LUN containing multiple servers that is shared with other VMs) Disk 3 is on a separate 10TB LUN that contains the 9,46 TB vmdk file and the rest is free space. Tw...
Problem solved... A bit embarrassing how simple the solution was and how over hyped the problem got. So we got to a point where Microsoft support gave us excuses like that they can not help us because it is a vmware problem and that is not their product, we should contact them, and maybe it is a hardware error (we use ...
1
0
873
2018-04-20T11:11:05.257
database_errors
serverfault.com
225,271
Does it make sense to create an index on foreign key (uuid) column in Postgres?
Assuming 2 sample tables in Postgres 10.X: [CODE] All IDs are simple UUIDs. [CODE] is being queried by [CODE] quite often. Does it make sense to create a separate index on [CODE] even though it references unique (UUID) value? Something like: [CODE]
It's usually recommended to have an index on foreign key column. It helps when master and detail tables are frequently joined or when delete/update happens on master table. In this case absence of index causes full scan of detail table to enforce foreign key. If any of above is true for your system , it would be a good...
6
4
6,984
2018-12-18T15:05:18.537
warehouse_errors
dba.stackexchange.com
587,509
Turn off Internet Access; Leave Intranet On
I have a machine running Windows XP SP3 on a domain run by a server running Windows Server 2003 for our DNS. We also have a sonic wall firewall. We use the XP machine to receive faxes and scan documents into a queue. Queue is read by Linux server for web-based software application. The goal is to either shut off intern...
Use Windows Firewall to accomplish this. Block all traffic except for what you need for the scanning functions. If you're just looking to block web access, block incoming/outgoing 80/443 traffic. This has a side effect of making Windows Updates not work, but since XP is out of support anyway that doesn't matter anymore...
-1
1
895
2014-04-08T15:07:32.640
infrastructure
serverfault.com
203,422
mysql - Can a inner join statement limit query results?
I am attempting to write a query (mysql maria db) that pulls all rows from my main table (19m records) but also pulls categories / sub categories (in another table -> business_sub_category / categories). I have written a number of inner joins into my statement to pull the tables but it appears that i have made a mistak...
You need to perform a [CODE] or a [CODE] . An [CODE] takes the value that matches both tables and gives you back the results of both tables. A [CODE] (sometimes referred to as a left join) matches the value between both tables. When a value exists in the primary table you are selecting from but does not exist on the ta...
2
3
4,705
2018-04-09T16:52:26.527
database_errors
dba.stackexchange.com
285,511
Debian Stable: Can't update kernel, libc won't update
I use Debian Stable (squeeze) on a virtual host where I can't touch the kernel, it's stuck (and will be for some time as support told me) at [CODE] So when I try to update, several packages fail with [CODE] for example [CODE] and some version chaos ensued: [CODE] What should I do? I want to keep the system up-to-date, ...
This looks like a frankenstein of a system that a vendor put together: Debian hasn't shipped with a 2.6.18 kernel since Etch (4.0), but the kernel timestamp is after Etch's EOL. Additionally that kernel number system isn't Debian, so it is clearly a custom kernel. libc6 version could be that from Squeeze (6.0), but gcc...
0
1
2,112
2011-06-29T21:21:14.707
infrastructure
serverfault.com