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
994,731
Nginx delay invalid parameter
I have this in [CODE] [CODE] But [CODE] complains that delay is not a correct parameter: [CODE]
As per Richard Smith's comment, the version is wrong. The [CODE] option is valido only for nginx > 1.15.7 [CODE]
0
2
1,902
2019-12-07T18:34:26.793
infrastructure
serverfault.com
308,632
Log Shipping is failing with a 'Could not cleanup History'
We're experiencing a weird problem with our SQL Server 2019 Log shipping (15.0.4198.2). We have 4 databases that are log shipped, with a monitoring instance. The log tasks all fire at the same time. However every so often the jobs are failing to finish. (As in sqllogsip.exe would never exit.) When it happens it seems t...
This step is executing the [CODE] system stored procedure. From the docs : [CODE] must be run from the master database on any log shipping server. This stored procedure cleans up local and remote copies of [CODE] and [CODE] based on history retention period. Note that even though the docs specify that the cleanup proce...
2
3
538
2022-03-11T15:55:05.860
pipeline_ops
dba.stackexchange.com
121,457
Can I take backup of those tables which are created with NOLOGGING in Oracle?
Can I take backup of those tables with data which were created with NOLOGIING option in Oracle. Is it true that backup can not be taken for these tables and I can not restore my data if I have some crash or corruption.
You can. From backup (rman) perspective there is no difference between LOGGING and NOLOGGING tables. What you cannot do is restore through NOLOGGING operation . That means that if recover procedure will encounter such operation in archive log it is currently applying table will be marked as INVALID.
0
1
114
2015-11-18T12:25:34.650
database_errors
dba.stackexchange.com
412,311
Can other behavioral OOP design patterns be expressed in terms of Strategy and Template Method Patterns for behaviour parameterization?
I'm studying OOP design patterns in a solution-oriented way which I mean not concentrating just one pattern but with a comparative analysis like their combined or hybrid usages and equivalents in dynamic languages or in functional languages. As the GoF grouping name [CODE] implies, this patterns are for [CODE] by utili...
It's an interesting question, and while a concrete, definite answer perhaps requires a precise definition of what "expressed" means, in general, I would agree that the structure of the strategy pattern [CODE] is the basic underlying form that appears in various forms in many other patterns. This is also the basic struc...
2
4
248
2020-07-03T09:11:53.273
api_errors
softwareengineering.stackexchange.com
212,807
Expensive Query on 6 GB table
I have tables Foo and Buzz like so: [CODE] Foo has an index on buzz_id, the foreign key. It also has a index on the date. [CODE] Buzz has an index on name, an index on group, and a multi column unique index that combines name and group. A Buzz has many Foo. I am making the following query, and it is taking much too lon...
An index [CODE] should allow the index-scan in your 3.8 second query to turn into an index-only-scan. This should improve actual performance (at least if you keep [CODE] well vacuumed) and more importantly is should make the plan look faster than it currently does and so stabilize your system on picking the now-even-fa...
1
0
147
2018-07-20T18:11:43.180
api_errors
dba.stackexchange.com
1,113,687
How to pass remote server ip as header in haproxy tcp tunnel with accept-proxy enabled?
I need to a variable for haproxy that is the actual remote ip while still using [CODE] , like [CODE] . [CODE] does not work and sends the client ip from the proxy protocol if [CODE] is active. I have a setup like this: haproxy load balancers haproxy ddos protection servers nginx proxying to PHP web applications 1 accep...
Very obtuse but this works. [CODE] must appear before any http-request to not cause warnings. [CODE] is the only scope in which [CODE] is not changed by the [CODE] directive in [CODE] . Thus, [CODE] This will add the header [CODE] with the value of the server that haproxy received the proxy protocol request from. It mu...
0
1
1,070
2022-10-21T15:17:32.890
infrastructure
serverfault.com
185,923
How can I deal with a team member who dislikes making comments in code?
One of my team members consistently avoids making comments in his code. His code is not self-documenting, and other programmers have a difficult time understanding his code. I have asked him several times to comment his code, however he just gives excuses or claims that he will do it later. His concern is that adding c...
Comments alone don't make for better code, and just pushing for "more comments" is likely to give you little more than [CODE] style comments. So ask yourself why you want those comments. "It's best practice" does not count as an argument unless you understand why. Now, the most striking reason for using comments is so ...
184
430
18,573
2013-02-05T06:17:36.630
api_errors
softwareengineering.stackexchange.com
5,079
Item based recommender using SVD
I have an item-item similarity matrix. e.g. (the matrix is symmetric, and much bigger): [CODE] I need to implement recommender which, for a set of items, recommends a new set of items. I was thinking about using SVD to reduce the items to n-dimensional space, let's say 50-dimensional space, so each item is represented ...
I need to implement recommender which, for a set of items, recommends a new set of items. Is this a good idea? Have you looked into Association Rules Mining ? If you're open to other procedures this one is first one that came to my mind for recommenders based on sets of items. For those not familiar, this is simple met...
5
3
932
2015-02-07T14:21:42.543
data_quality
datascience.stackexchange.com
192,058
How to make it Secure?
I am building a website ( a platform ) which will have people communicate between each other and there is bound to be money transactions. The amount of money in each customers account will be kept in Database , This can be redeemed by the customer at any time ( ie: the website is liable to pay back whatever is the bala...
If you intend to transfer money from one user's account to another user's account you want to make absolutely sure that the amounts all balance out and nothing gets lost anywhere, even on a system failure. Mongo does not offer this guarantee since it does not support multi-record transactions. You will have to include ...
-3
3
80
2017-11-30T10:18:50.263
database_errors
dba.stackexchange.com
861,228
Postfix transport old local domain to new Exchagne
I have Postifix with Dovecot for more domain a.com b.com c.cz maindomain.com etc. I created new Exchagne server for domain maindomain.com and when I change MX for maindomain.com everything works good for delivering from Internet to maindomain.com in Exchange, but from another my domain in Postfix server (a.com b.com c....
If the file is specified in the [CODE] parameter it works as a transport table and overrides the default [CODE] selection that is built into Postfix. Therefore, adding that line should be sufficient. As the transport table is most likely a [CODE] Berkeley DB, remember to use [CODE] for it.
0
1
98
2017-07-10T08:25:48.530
infrastructure
serverfault.com
54,119
How to diagnose what is causing DB timeouts
I'm a web developer which currently has the joy of managing a client website that is still using Classic ASP that uses SQL Server 2000. The code is quite old and in the process of been updated to a completely new system but in the interim we have to keep the websites running as smooth as possible. There are three sites...
I struglled with this issue for one week. A the beginning, I started with a 45 seconds query for which the timeout error message was relevant. I reduced the execution time to 3 seconds and had still the error. While seraching the Internet, I found out many cases telling the message itself is not relevant, and for this ...
2
1
21,451
2013-11-28T10:13:50.630
database_errors
dba.stackexchange.com
735,964
2012 R2 NPS/RADIUS Server. Event ID 4402: There is no domain controller available for the domain
Attempting to replace existing Winidows 2003 RADIUS server with new 2012 R2 NPS/RADIUS Server. RADIUS server used for 2nd Factor SafeWord authentication. All policies and settings replicated to new NPS server. NPS server has been registered w/ AD ( child.domain.com ). When testing w/ NTRadPing Utility, continually get ...
Contrary to what others have said, you do not need to rename your domain or back rev to 2008 non-R2. I was able to resolve this issue by adding the following reg key to force authentication to use the DNS name, instead of the NetBIOS name: HKLM\SYSTEM\CurrentControlSet\Services\RasMan\PPP\ControlProtocols\Builtin New S...
-1
0
7,216
2015-11-12T21:54:08.697
api_errors
serverfault.com
578,308
ejabberd starttls_required in c2s/s2s and disable SSLv3 + unsecure Ciphers
I'm using ejabberd on Ubuntu. My configuration looks like this: [CODE] Still xmpp.net is showing that s2s TLS is not "required" but only "allowed". In addition SSLv3 is enabled for c2s and s2s and some insecure ciphers like RC4. How can I disable SSLv3 and RC4, and force starttls on all connections? Thanks!
Requiring StartTLS: [CODE] instead of [CODE] (keep in mind this will currently make you unable to connect to gmail.com and all domains they host). Weak ciphers: See http://www.process-one.net/docs/ejabberd/guide_en.html#sec27 . I think this means doing something like adding [CODE] to the [CODE] options. Check with [COD...
5
3
7,375
2014-02-26T01:47:56.987
infrastructure
serverfault.com
117,923
Any potential issues/ DoS risks with frequent connections/ queries to a SQL Server db?
A database team suspects there may be an issue with a third-party ETL application opening, and closing, connections to a SQL server database repeatedly. In terms of exact numbers --- it opens about 30 connections, runs 30 queries in parallel, each query lasts 10 seconds, therefore 10 seconds later, the queries end, and...
Depending on how the server handles this, it might cause a potential problem. One technology that SQL Server implements to handle this kind of situation is "Connection pooling". With Connection Pooling, when the process closes its connection, SQL Server does not immediately remove the connection object from its memory....
4
1
328
2015-10-13T19:20:04.893
api_errors
dba.stackexchange.com
605,193
vsftpd - "553 could not create file"
I'm having issue with my [CODE] . here is my info: [CODE] I'm trying to utilize virtual users feature inside of [CODE] and while authentication part works without any issues, unfortunately [CODE] doesn't work. [CODE] I've tried to disabling(permissive) and enabling(enforcing) SELinux and still same undesirable result( ...
I'm not sure why (perhaps a bug?), even though [CODE] was set to [CODE] , somehow [CODE] was thinking it set to [CODE] : [CODE] ... yet when I upload file it's like [CODE] is set to [CODE] : [CODE] So, unless I'm doing something wrong, maybe I should submit it to [CODE] as bug.
1
2
13,246
2014-06-14T19:43:53.057
api_errors
serverfault.com
16,359
SQL Server Clustering for HA combined with Log Shipping for DR
Has anyone implemented SQL Server log shipping in a clustered environment? Are there any issues or things to consider when implementing this scenario?
In general, log shipping works same way whether SQL server is clustered or not. Only thing you need to use windowsclustername\Share when you copy your logs instead of specifying node names e.g. nodel1\share or node22\share so it works regardless what node your SQL serve is running.
4
4
3,015
2012-04-11T15:29:15.147
database_errors
dba.stackexchange.com
783,007
SPF block on return-path mail
We make use of a unique return-path email on all email sent to track bounce backs and give feedback, but recently we're getting issues where the SPF record fails because people are allowed to send through their own domains and SMTP servers and then obviously our SPF records are not set up to allow those IP's. So basica...
... the from email is not used by the other mail server to check for SPF but the return-path mail... SPF only checks the sender address given in the SMTP envelope, i.e. what you call "Return-Path". SPF does not care about the contents of the mail itself including the mail header. This also means that SPF does not care ...
0
1
1,856
2016-06-09T10:17:46.187
infrastructure
serverfault.com
250,940
How to filter hstore where values are not null in a trigger?
The easiest way to explain the question is in the usage of an audit trigger . However, on insert it saves all values, including null values. I want to filter out the null values in the [CODE] . What is the simplest / fastest way to do this? Source: https://github.com/2ndQuadrant/audit-trigger/blob/master/audit.sql#L134...
With only built-in tools of Postgres and the additional module [CODE] , without involving [CODE] (as requested): [CODE] One of the overloaded variants of the [CODE] functions takes a two-dimensional array. Alternatively, you could eliminate key names listed in [CODE] in the [CODE] clause (while processing unnested keys...
1
3
1,243
2019-10-13T00:04:24.953
data_quality
dba.stackexchange.com
888,984
Error preventing creating of project: 'Your account is part of Google Apps and currently does not support the Developers Console'
I'm new to Google Cloud, when I tried to initiate billing to create new project I got an error 'Your account is part of Google Apps and currently does not support the Developers Console'. See screenshot: screenshot I'd like to know who best to talk to for this issue to be solved?
According to the error you receive, you need to enable "Google Developers Console" for you Organization and also your G Suite. You may find this document useful on the instructions for how to do it.
1
0
328
2017-12-20T08:03:50.037
infrastructure
serverfault.com
44,330
Normalization before or after resizing
I'm training deep learning network using images (to be exact - I'm solving semantic segmentation problem). What's the proper order of resizing (I need to resize images to fixed width X height ) and normalization (dividing by 255 value) of images in preprocessing? Does it make more sense to do first resizing and then no...
Resize and then normalize, that's the only pipeline that makes sense. If you resize after normalization, depending on the resize algorithm, you may end up with values that are outside of the normalized range.
0
1
3,377
2019-01-21T13:08:09.293
data_quality
datascience.stackexchange.com
315,935
MariaDB on INSERT| 'Error on delete of '/tmp/#sql-temptable-e931-bc-5.MAI' (Errcode: 2 "No such file or directory")'
We have started getting the below error on our MariaDB instance as of this morning. Error on delete of '/tmp/#sql-temptable-e931-bc-5.MAI' (Errcode: 2 "No such file or directory") This happens on any DML command. Does anyone encountered such scenario?
I can't think how that could ever happen. Here are some notes on what is going on. File names like that are for internally-generated temp table. Such files are for complex [CODE] , etc when it needs build a temp table as the easiest/fastest way to perform the query. Such tables are [normally] deleted (unlinked) when th...
0
0
370
2022-08-22T18:55:18.510
database_errors
dba.stackexchange.com
699,355
How can I replace a local TFS service account with a domain TFS service account to perform a migration?
I changed the service account used by Team Foundation Server from a local account [CODE] to a domain account [CODE] , by directly clicking on the " [CODE] " link in the [CODE] section. To verify this, when I click on the [CODE] node, I can see that the domain account [CODE] is the new service account. However, when I t...
When you change from a local to a domain account this is a big deal for TFS. It's effectively a domain migration from local to domain. https://msdn.microsoft.com/en-us/library/ms404883.aspx You need to follow the documented procedure for changing the environment within which TFS operates.
1
0
869
2015-06-16T11:42:39.213
database_errors
serverfault.com
610,284
Authentication options for staging sites
We're currently authenticating our clients who wants to view their staging environments using windows authentication. That means we have to create their accounts in our local AD and assign them to particular roles. What are the other's doing? How about Azure AD? Is it possible to achieve the similar behaviour that we h...
I don't think you can do anything without changing code. Azure AD does not allow Windows Authentication and stuff like that from IIS servers because you cannot join them to the "Windows Azure Domain". You would need to go over OAuth / ADFS or stuff like that. (requiring code changes)
0
0
112
2014-07-05T03:11:50.793
api_errors
serverfault.com
792,010
How to make Postfix null client save a copy of sent email to Office 365 sent items folder
We've got bit of software that is sending email by smtp which unfortunately isn't configured to save a copy of the sent mail to any folder. The client is on Office 365 and there's no way at present to configure it to save emails sent through smtp client to a sent folder. I want to setup postfix on site to act as a null...
Postfix is a Message Transport Agent (MTA), or you can say it is a postman . Its main responsibility is delivering email across server. There is no email saving feature incorporated to posfix built-in capability. You can find that capability in a Message Delivery Agent (MDA) software, such as dovecot or maildrop. Of co...
0
0
456
2016-07-26T13:01:53.627
infrastructure
serverfault.com
400,291
A little guidance setting up FTP server authentication on Windows Server 2008 R2 standard?
I have a (clean) server running Windows Server 2008 R2 standard. I would just like to use it for serving a website and a FTP server through IIS. IIS is installed and serves my website propery. I have now added a FTP site but when I try to logon using my user/pass i get the following error: 530 User cannot login From th...
You need to go into the FTP settings in IIS and change it from Anonymous to Authenticated. Then you need to give the user NTFS permissions to the folder(s) that you want them to have access to via FTP. Access control in IIS FTP server is controlled with NTFS ACLs.
2
3
8,690
2012-06-19T20:14:47.327
api_errors
serverfault.com
798,650
Doubtes in MS KB Numbers
I am having some doubtes in MS KB numbers, For Example MS16-103 (KB 3182332) - under this we have two different KB nos like 3176492, 3176493. My doubts is which one we should apply in the server. in server kb 3176493 is installed, this kb is under ms16-103. now the user is asking MS16-103 (KB 3182332) is installed of n...
Check in add/remove program under the update section. or use the powershell command Get-Hotfix with no parameter and check the KB list. For the KB you listed, they are not applicable to Windows 2008-R2. Under the KB3182332's text (that link to the MS16-103) you see the two OS that is affected by it; and two cumulative ...
1
1
77
2016-08-23T18:00:58.427
infrastructure
serverfault.com
1,086,280
Folder created in terminal does not give access to control panel user
I have made a script which creates a folder ( [CODE] ) in the public path of a website that belongs to a website control panel ( [CODE] ): [CODE] But this command does not give enough permissions to the panel user to create or edit files inside it, the permissions are: [CODE] when I create a folder in the panel, I get ...
Three options: Run the command as the target user, not as root. [CODE] run chown afterwards [CODE] use [CODE] [CODE] Personally, I prefer option 3 in such scripts.
0
2
102
2021-12-14T12:49:49.077
infrastructure
serverfault.com
334,646
pooler error: query_wait_timeout in pgbouncer logs
I am getting [CODE] for different databases in the pgbouncer log 6 to 7 times a day . When the error occurs for masterdata database , it gives me a timeout in the application. The configuration is below : [CODE] As the query timeout is disabled ( [CODE] ) and the [CODE] is set to [CODE] , why am I still having this err...
The documentation says: query_wait_timeout Maximum time queries are allowed to spend waiting for execution. If the query is not assigned to a server during that time, the client is disconnected. 0 disables. If this is disabled, clients will be queued indefinitely. [seconds] This setting is used to prevent unresponsive ...
0
0
113
2024-01-08T07:00:10.923
warehouse_errors
dba.stackexchange.com
74,360
How to add attention mechanism to my sequence-to-sequence architecture in Keras?
Based on this blog entry , I have written a sequence to sequence deep learning model in Keras: [CODE] It works reasonably well, but I intend to improve it by applying attention mechanism. The aforementioned blog post includes a variation of the architecture with it by relying on a custom attention code, but it doesn't ...
By default an LSTM model returns only the output of last timestep. [CODE] So the below step is needed to repeat the output vector 'n' number of times where 'n' should be the number of time-steps [CODE] But when you specify ' return_sequences=True ', LSTM returns a hidden state for ALL timesteps. The output shape from t...
1
1
428
2020-05-17T19:11:57.523
data_quality
datascience.stackexchange.com
815,462
RHEL - Force mount order in fstab
I have one network share that I mount in fstab. This is working fine. Then, I have a second mount which binds on the folder from the first mount. Something like this: [CODE] Now, my problem is that apparently the second mount is executed before the first mount. Hence, the folder /my/binded/folder will empty after boot....
from man mount: [CODE] I think your distro uses this parameter as default on boot. Try to find and remove it. (I don't know redhat)
0
2
1,785
2016-11-17T08:44:48.100
infrastructure
serverfault.com
229,126
Snapchat clone: How do I secure pre-downloaded notifications so that they cannot be opened outside of the app?
Say I'm making a snapchat clone app for Android and iOS. Let's say that I get a snapchat from Baz. I want to pre-download the audio for this snapchat. However, as the developer, I want to secure this audio from being viewable outside of the app. I've been thinking of encrypting it using AES with an IV and key that are ...
he could gain pretty much all of that from looking at the unobfuscated source of our app. This is DEFINITELY a concern. If that's the case, then your application definitely has a major security flaw. That could be anywhere from hardcoding password/keys in the code, to writing your own crypto algorithms, to just leaking...
0
1
383
2014-02-15T21:37:27.370
api_errors
softwareengineering.stackexchange.com
206,638
What would be the best way to store one valuer per hour per day per customer?
We have a table that stores a value per each hour per each per day per customer. A simplification of the table would be like this (removed some extra fields and the indexes): [CODE] The problem is that this table is huge, and altough we have an index with the dateinsert and customerid that allows us for a fast seek of ...
If the values don't change too often, I would use and Slowly Changing Dimension (Type 2) approach. In this case, you will store a new row only when your value changes. This is mostly common used on Data Warehouses to track historical data. In a nutshell: 1) Change your table to something like this: [CODE] Avoid using n...
0
1
208
2018-05-14T08:45:59.327
warehouse_errors
dba.stackexchange.com
946,756
SSL certificate in system store not trusted by Chrome
I have a gitlab server running in our company for which I have obtained a certificate signed by our company's CA. Since I can access the site from a machine within our domain without getting SSL errors, I'm assuming, that the server is configured correctly. When working with my laptop, I of course did not have the comp...
In Ubuntu, Chrome uses its own certificate store. You can import your RootCA.crt in Chrome's settings -> privacy and security -> manage security keys -> manage certificates -> authorities Note that updating ubuntu system certificate store by [CODE] has no effect on Chrome.
10
28
17,454
2018-12-27T10:36:57.623
api_errors
serverfault.com
171,479
Snow Leopard Server - VPN server - the ppp server could not be authenticated error
I have a snow leopard server configured for vpn access with l2tp over ipsec and it has been working fine for a number of months and now it has stopped working and I can't seem to find what is wrong. I get this error on the client side [CODE] The logs on the server look like this [CODE] Thanks, Alex
I have the same issue. Server works for a month or so, then all of a sudden get a message "VPN Connection the PPP Server could not be authenticated". I can see the connection being opened on the server log, but the it's disconnected. Did did a time machine restore yesterday and everything went back to normal... now tod...
0
0
2,132
2010-08-17T16:05:24.023
infrastructure
serverfault.com
681,240
Forcing a user to use swap space after certain memory usage (using limits.conf?)
I have a backend app that is being used internally by developers hosted on our server, however, the app unfortunately requires the use of Passenger and Ruby, both of which are very memory-hungry. I have an SSD swapfile that should allow reasonable performance for our usage, and I'd like to force this app to use swap sp...
You should take a look at cgroups (Control Groups). There is some info on ad-hoc cgroups which also says Note that the memory limit applies to RAM use only -- once tasks hit this limit, they will begin to swap. which seems to be exactly what you want. If your backend developer app is causing your front-facing apps pain...
2
4
1,299
2015-04-08T13:15:15.023
infrastructure
serverfault.com
967,966
How to Solve unknown_ca error on WSO2IS-5.7 when using MySQL RDS as backstore?
I've tried to install an instance on AWS using aws RDS as my datasource through the [CODE] with jdbc url [CODE] I've got an exception [CODE] I've tried to run [CODE] on [CODE] in JVM and [CODE] inside WSO2 repository with no change
If you get a SQLException: Connection refused or Connection timed out or a MySQL specific CommunicationsException: Communications link failure, then it means that the DB isn't reachable at all. This can have one or more of the following causes: [CODE] To solve the one or the other, follow the following advices: [CODE]
3
0
851
2019-05-19T11:20:14.867
database_errors
serverfault.com
446,400
TDD - What to do when adding a new function on a dependency causes many previous tests to fail?
I was programming today and encountered something that just feels like I'm doing something wrong (maybe?). I've encountered this situation before, but I wanted to reach out and ask if there's a better way to handle this. I have a situation where I realized my function [CODE] could save a lot of execution time by exitin...
Me and lot of others are heavily against using Mocks. We consider mocks as sign of bad design and testing practice. What you describe is one of the reasons why. Mocks couple test way too tightly with implementation and they have tendency to break when even small changes are made to the code. The alternatives are few: R...
1
7
206
2023-07-06T20:42:41.180
api_errors
softwareengineering.stackexchange.com
285,368
Best way to copy tables without a primary key or unique constraint?
Looking into synchronizing tables in a database across multiple servers using a DML method like MERGE, only to realize that some of the largest tables that take up the majority of the total size of the database do not have a primary key or unique constraint and therefore have duplicate data. As a result, doing a MERGE ...
Are you a high-tech or a low-tech person? Personally I tend to go for low-tech solutions, feeling more in control and less moving parts. If the table(s) without PK take out the majority of the db space, why not automate backup and restore? You do the backup anyhow, and you'll get those backup files rested by the restor...
0
0
1,348
2021-02-14T02:25:19.727
data_quality
dba.stackexchange.com
899,834
Is there still a limit of 100m ethernet cable between two FDX switches?
If the connection is just between two switches, there can be no collisions. So shouldn't the switches be able to cope with much longer delays than the standard 100m?
The 100 m limit is not only for ensuring collision detection (which isn't used in FDX) but the longer the distance the more signal attenuation and crosstalk increase. 100 m is the length where everything is guaranteed to still be in spec. Considering the notable headroom for the 100BASE-TX signal over Cat-5e cable (or ...
0
1
166
2018-03-03T19:47:54.273
infrastructure
serverfault.com
198,510
IIS6 returning 404 for all requests containing "Translate:f" header
I have written a custom WebDav implementation which is now hosted in IIS6, which now accepts "Translate:f" as a header but as it does so bypasses my custom http module (ASP.NET 3.5) and returns a 404 error. It is correct that there is no resource at the given address, but my custom module should be handling the request...
Answered my own differently worded question Is it possible to configure IIS6/7 to ignore certain request headers?
0
0
214
2010-11-05T10:25:47.757
infrastructure
serverfault.com
978,933
Exchange 2016 does not start after fresh install
I tried installing Exchange 2016 CU 12 on Windows Server 2016, version 1607, build 14393.2273, after a fresh installation of the OS. The server is part of a simple domain. At the end of setup, I get this message: [CODE] The dependency turns out to be Microsoft Exchange Active Directory Topology (MSExchangeADTopology). ...
The solution turned out to be: Clean AD by removing all of the Exchange-specific schema (there are tutorials online on how to do it). This has to be done very carefully . It's very easy to corrupt AD and then you're in a world of pain. Restore a backup of the Exchange server from before attempting to install Exchange (...
0
0
3,076
2019-08-12T15:22:38.097
infrastructure
serverfault.com
21,485
Why won't Oracle alter the size of a column that is used for sub partitioning?
I am trying to resize a varchar2 column, when I get an ORA-14265 error: ORA-14265: data type or length of a table subpartitioning column may not be changed With Oracle providing the unhelpful: // *Cause: User issued ALTER TABLE statement attempting to modify // data type and/or length of a column used to subpartition t...
The solution is [CODE] package. Basically redefition will move, online, to a new table (called interim table), then move all dependent objets like indexes and last exchange the interim table with the original one. What you have to do is: Create the interim table withe correct column definition Run redefinition Drop the...
0
1
5,604
2012-07-25T14:57:47.840
database_errors
dba.stackexchange.com
792,901
Issue with dell omsa packages on Centos 7
I have a Dell 2950 with Centos 7 and Dell OMSA packages installed. When I try to update the server with "yum update" I have the following dependences issue: [CODE] What is the safer solution in this case? Ignore/Skip the dependences is not an option for me
It seems that Dell doesn't want to fix their repo issue so the only solution that I have found is that post ( http://en.community.dell.com/support-forums/servers/f/177/t/19952237 ) [CODE]
2
1
1,596
2016-07-30T18:18:20.190
infrastructure
serverfault.com
42,153
java.lang.NullPointerException in Jmeter test execution
When I am running test JMeter getting below error: {"id":460979218,"jsonrpc":"2.0","error":{"errorEnum":{"code":-32603,"severity":"err"},"stackTrace":"java.lang.NullPointerException\r\n\tat com.jda.common.pivot.broker.actions.AbstractAction.getResponse Could any one guide me what could be the reason for prompt [CODE] ?
Your server expects some value which must be present in the request and JMeter fails to provide the value. There could be different reasons for this, one of possible ones is that you don't provide the relevant Content-Type header via HTTP Header Manager so the server is not able to parse the value even if it's present ...
0
1
2,180
2020-01-13T10:57:54.443
data_quality
sqa.stackexchange.com
129,936
how to write code for logon/logoff triggers in oracle?
I have written the code for a logon/logoff triggers. Logon is working but the logoff trigger is created with an error. Please give some suggestions. Logging table: [CODE] Login trigger: [CODE] Logoff trigger: [CODE]
Basically, all of your [CODE] calls in the subqueries were wrong. It always needs to be [CODE] because you need the sid to join with [CODE] . Note that you could condense it down to a single [CODE] statement. I've tested this on 12c and it works: [CODE]
0
2
2,886
2016-02-21T09:52:36.447
database_errors
dba.stackexchange.com
548,329
Ssh without password to Embedded read only device
I want to be able to retrieve values from an embedded device every minute. Currently I have a script that does this over ssh but I have to type in the password for the embedded device every time I connect to it over SSH. The embedded device is read only and there is absolutely no way I can mount it as writeable at this...
[CODE] is to be run not on the embedded but the system you're logging in from.
0
0
206
2013-10-24T12:20:26.437
api_errors
serverfault.com
810,923
Apache Load Balance and 503 Response
i have such a enviroment: We have one our own Web server, which comunicates with other software components (creating pdf documents) over http protocol. Such a software component is called a worker. It takes usuallay 3 minutes to prepare a pdf doucments by a worker. So we insert a apache httpd server as load balancer to...
You're hitting a timeout on Apache: [CODE] But that is understandable, given that you said your backend needs around 3 minutes to prepare the pdf. Actually in my opinion 3 minutes is a very long time for a reply, are you sure your workers are correctly working? If you have to live with those slow replies the only solut...
0
0
1,374
2016-10-24T13:32:07.327
infrastructure
serverfault.com
347,832
Connecting to SharePoint 2010 From the Internet (Keep being prompted for my Username & Password)
I installed Sharepoint Server 2010 on a domain controller but when I want to connect to my team site or my document workspace through the internet it keeps prompting me to enter my username and password. I'm using Windows Server 2008 R2, I have an ADSL Modem Router and I have forwarded all ports from 1 to 65000 in my r...
I wonder if you have kerberos setup instead of NTLM on the sharepoint site? http://mbar.nl/michel/archive/2009/11/16/sharepoint-2010-and-kernel-mode-authentication.aspx Also, are you entering "domain\username" or "username@domain.com" when logging in externally? Instead of just "username"?
0
1
717
2012-01-08T16:37:06.917
database_errors
serverfault.com
922,130
SQL Server Sort Order to Binary Search on SQL Server 2008 SP1
I am installing an OLT Software that requires Windows SQL Server 2008. I am getting this error below; The database sort order must be "binary sort". Please run the Transact-SQL command sp_helpsort to check the current database sort order. Output of [CODE] is; [CODE] How could I change sort order to "binary sort" in ord...
You need to either reinstall SQL and change the collation during the installation or rebuild the system databases to change the collation. https://stackoverflow.com/questions/5338788/how-to-change-the-master-database-collation-in-sql-server
0
0
690
2018-07-16T14:51:21.750
database_errors
serverfault.com
39,277
httpd.conf got trashed on FreeBSD
My httpd.conf got trashed on FreeBSD [CODE] [CODE] I am running apache-2.0.63_2. What I did was to modify /home/user/public_html/.htaccess and add a Deny from rule and then restart apache with. Any ideas? Any known bug for this? Did I do something wrong?
Apache reads its configuration file only once on startup. Whenever you make a change to [CODE] , you need to tell Apache that you have changed its configuration file, and that it should reload the file. One way to do this is by restarting Apache. A consequence of the above is that Apache does not react to any changes i...
0
2
348
2009-07-11T11:15:37.617
infrastructure
serverfault.com
1,028,996
What to do when /etc/network/interfaces is missing on Debian?
I just configured a Debian 10 virtual private server on a new hosting provider and somehow [CODE] is missing. Running [CODE] reveals a [CODE] and [CODE] interface. Trying to add an interface alias to [CODE] . What is going on here?
Thanks to the help of Wesley, I figured it out. That VPS was configured to use SystemdNetworkd so files in [CODE] instead of [CODE] . Also, thanks to Michael, I learned that interface aliases are a thing of the past. See How to configure interface aliases using Systemd-Networkd? .
0
1
18,364
2020-08-05T17:36:43.677
infrastructure
serverfault.com
1,140,793
How can I create VM using my custom Image on Azure?
I have a problem with starting a VM on Azure using my custom image. How I prepared my custom image: I had a VM running, based on an image from the Azure Marketplace. I stopped that VM and exported the OS disk (downloaded the VHD file). I uploaded that VHD file as a BLOB to my storage account on Azure. I created a new i...
You can't just create an image from a Marketplace VM and provide it with random offer details. Any image you create from a Marketplace VM, will have the same offer requirements the original VM had. Otherwise this would be a very easy way to get away with not paying for any licencing the original marketplace VM had. You...
1
1
608
2023-08-05T09:53:11.553
pipeline_ops
serverfault.com
279,007
Oracle 12cR1 - RMAN-11003, ORA-00354, ORA-00353 - Corrupt Redo Log
Oracle 12cR1, disaster database. ORA-00283: recovery session canceled due to errors ORA-00354: corrupt redo log block header ORA-00353: log corruption near block 8 change 80357235718 time 11/01/2020 01:57:01 ORA-00334: archived log: '/FRA/.../o1_mf_2_61264_hsvvjoyb_.arc' Database in mount mode and can't recover. How ca...
That is not an online redo log. That is an archived redo log of thread 2 sequence 61264. It can be clearly seen from the error and the name of the file. The archivelog on disk was damaged. Restore it from backup and continue recovery using that. If you do not have a backup of that archivelog, just roll forward the stan...
0
3
1,327
2020-11-01T08:23:58.447
data_quality
dba.stackexchange.com
771,957
JIRA becomes inaccessible after adding "address=127.0.0.1" in Tomcat connector
I have JIRA and Nginx running on the same server with Nginx installed to serve as a reverse proxy. From what I learnt from various sources, in the server.xml file, I must add an address="127.0.0.1" attribute so that Tomcat does not listen to outside IPs. But once I add that to my 8080 and 8443 connectors, things stop w...
Make sure your proxy from Nginx is going to "127.0.0.1" instead of your server's / site's hostname or IP. If this is done, you could have an issue with the Tomcat connector being on IPV4 (forced by 127.0.0.1) while Nginx is trying to get to it on the IPv6 stack.
1
1
1,214
2016-04-21T11:20:46.607
api_errors
serverfault.com
428,951
Smart Array P400 battery failure
The P400 Smart Array controller in my HP DL380G5 is indicating: [CODE] in the System Management Homepage. Also the IML indicates: [CODE] I do have several replacement batteries (actually, several controllers including batteries) lying around at work but never had to actually replace one. I am wondering if the battery r...
To give you a short, precise and correct anwer: no. While I have not personally swapped any of them, I have watched our hardware techs do it dozens of times. It requires the server to be shut down, then the battery can be swapped and the server can be booted again. From the P400 manual:
5
8
30,048
2012-09-16T22:25:23.913
infrastructure
serverfault.com
975,690
Which ssl certificates go where on an reverse proxy? - nginx
Need clarification for upstream SSL on an nginx reverse proxy server I've been reading the nginx docs regarding reverse proxy and securing ssl connections to upstream servers but I'm still confused about which ssl certificates go where. Many of the examples I find have nginx proxying localhost, but my situation has the...
The certificate of a domain should go where the clients "see" it, so in your case, if you want only the nginx server to be available from the internet, all of the public certificates should go to the nginx server. If you want to secure the backend connections, you can use whatever certificate you want on those servers....
8
4
18,666
2019-07-18T02:44:44.860
api_errors
serverfault.com
282,802
Database structure
I've been searching for a while how to solve this problem, and finally I've decided that maybe it's better to ask for some help. We have two different application (app1 and app2), each of them with a different database (db1 and db2). Then we have another project to manage those applications data using both databases. T...
It is possible to query across multiple databases in SQL Server if all the databases are on the same instance, or there are linked servers set up between them. The login would need access to all the databases. For your design question, I think having a third database for the separate concern of the client connections m...
0
0
101
2021-01-08T08:23:45.270
database_errors
dba.stackexchange.com
22,510
What are the best metrics for evaluating a software QA team's performance?
What are the best metrics for evaluating a software QA team's performance? I am looking for metrics similar to the ones below: 1. Test Efficiency [CODE] 2. Defect Leakage can be calculated using [CODE] 3. Defect Rejection Ratio [CODE] This metric is important for measuring the efficiency of a tester: while recording de...
There is no best metric I've yet to meet a tester who wants to create invalid defects, miss defects, or raise defects that are later rejected. If this is happening a lot, the problem is probably not with your test team, it's with something else in your process. Looking at your suggestions in a little more detail: Test ...
2
2
1,928
2016-09-09T14:02:51.657
data_quality
sqa.stackexchange.com
443,088
Cannot create Hyper-V Virtual Machine - General Access Denied 0x80070005
I have the standalone Hyper-V Server 2012 running and I'm trying to create the first VM on it but I'm getting the following error: From my research, this error comes up with something related to the Intel IPMI driver but I have an Asus motherboard so I didn't think it was the problem. However, I ran the ResetAccess.exe...
It's almost certainly due to NTFS permissions. Have you tried creating the machine somewhere other than under the C:\Users folder? Perhaps try creating a new folder and giving the [CODE] group full access on it, and see if you can create a VM in there. I don't recommend you leave the permissions set like that, but this...
2
3
9,225
2012-10-28T05:21:48.620
infrastructure
serverfault.com
1,038,881
Understanding TTL values in DNS query answers using dig
I'm querying [CODE] with [CODE] and I'm having a hard time understanding why TTL values sometimes jump around instead of decrementing every second uniformly (which is my expectation). What am I missing here? Here's what I'm doing on my Windows machine with [CODE] installed (DiG 9.16.7, from the BIND 9 distribution). [C...
There are multiple boxes behind [CODE] or any other similar public DNS resolver. Hence, technically, all those boxes can share their DNS cache, or not. If they don't, each one will have different set of records cached, and different TTLs associated to them. What you observe may seem puzzling but has 0 negative effects ...
0
4
558
2020-10-15T20:29:39.093
infrastructure
serverfault.com
837,564
sshpass failed to run command: no such file or directory
I am trying to use sshpass to copy a file between VMs. However when I run the command: [CODE] I get the output: [CODE] I can ssh to destination.vm using user2 and its password. I know sshpass is installed at /usr/bin/sshpass and is on the path. I double checked the folders I want to copy from and to exist. I have also ...
Install rsync on destination.vm
3
3
26,156
2017-03-10T19:21:55.837
infrastructure
serverfault.com
222,423
MongoDB Migrating away from RocksDB to WiredTiger
We have been working for some time with RocksDB as our engine and we are now trying to migrate to WiredTiger. We have some pretty big databases around 4~12 TB of data and according to the process described in the docs, we added a new node with WiredTiger and tried letting it replicate from scratch. With the amount of d...
If replication doesn't keep up with primary and it's not possible to extend the oplog, I'd try to shard the deployment and... let smaller shards replicate faster or drain the original shard and then remove it from the deployment - this solves you storage engine problem, but leaves the replication as laggy as before
5
1
874
2018-11-13T11:23:47.820
database_errors
dba.stackexchange.com
385,859
Strategies for managing a dynamically sized pool of worker processes?
I have a problem to solve that's very much like a thread pool, and I was hoping to hear some strategies or find some resources to information on managing the size of the pool. Let's say I have the following: [CODE] Here are some facts about the system: 50 to 100 [CODE] 's per second are submitted for processing. Those ...
It sounds like you may have to do a little trial and error here, but a strategy that I would try is performing a bit of statistical analysis on the work that needs to be performed and using that information to increase/decrease number of threads as required. In other words, you should have a thread which does nothing t...
2
2
1,027
2019-01-21T07:17:33.847
data_quality
softwareengineering.stackexchange.com
787,614
Apache doesn't start after virtualhost setup (CentOS7)
I setup virtualhost file in [CODE] like the example and check my file and addresses many times [CODE] but my Apache doesn't start it show the following error: [CODE] as soon as i remove the [CODE] everything go back to normal and server run again in another configure i add this code to my [CODE] : [CODE] and send this ...
You likely have not enabled the NameVirtualHost *:80 line in conf/httpd.conf You may also like to add a line for port 443 too if you're using that. The following commands are your friends: [CODE] The last command will show the log directory sorted by modification time; most recent last. Useful when you don't know which...
-1
3
3,988
2016-07-03T07:25:43.933
infrastructure
serverfault.com
6,694
error validating data: ValidationError(Deployment): unknown field "spec" in
I know that [CODE] files are temperamental and I still struggle to figure it out. Can anyone help out here to understand what is it about my [CODE] file that makes Kubernetes want to issue the above error? [CODE] I got the above error running [CODE] [CODE] being one of the folders in the project with the [CODE] configu...
Sure enough, everything and including the last [CODE] needed to be tabbed to the left once: [CODE] Unfortunately, you can't tell the difference with how [CODE] is formatted when pasted here, so it would not have been an easy catch, but if you would be looking at the original file configuration you would have noticed it...
2
3
10,396
2019-03-26T01:28:03.017
pipeline_ops
devops.stackexchange.com
242,234
What is the fastest method to restore MySQL replication?
I have a MySQL (5.1) master-slave replication pair and replication to the slave has failed. It failed because the master ran out of disk space and the relay-logs became corrupt. The master is now back online and working properly. Since there is this error in the log the slave process can't simply be restarted. The serv...
You can try [CODE] mysql command to ignore the current log file. However, you should be careful as this may result in data loss/inconsistency. I think the safe way is to rebuild the replication from the beginning to make sure you have no data loss/inconsistency. Copying the data dir is much more faster than exporting d...
1
0
1,321
2011-03-02T14:37:27.070
data_quality
serverfault.com
162,919
how to change the maximum number of connection to Oracle database?
How do I change the maximum number of connection to Oracle database at start? I use : [CODE] However, after restart the database, use show parameter sessions still give value 772 for sessions Khue.
are you also changing PROCESSES parameter afterwards? sessions is a derived parameter. Try changing sessions last?
5
3
13,971
2010-07-22T08:01:40.730
database_errors
serverfault.com
1,150,571
How to remove a file with weird characters in the name if find doesn't work?
I have a file which has some Unicode characters in its name that are not even shown properly in the console and are not properly processed by the [CODE] utility. I need to ideally rename, but if that's not possible, at least remove the file in question. I have seen the questions like How to remove a file where the file...
@choroba is correct - the [CODE] is a problem - caused by an unsafe or incorrect FUSE umount - you may need to add some additional parameters to your mount command to allow reconnects (or sometimes you need to remove some extra parameters that are causing the problem)
0
0
148
2023-12-28T23:59:05.790
infrastructure
serverfault.com
39,664
Calculation of distance between samples in data mining
I am confused about a little issue related to distance calculation. What I want to know is, while calculating the distance between samples in classification or regression, is the label or output class also used, or the distance is calculated using all other attributes excluding the label attribute?
The way that various distances are often calculated in Data Mining is using the Euclidean distance. You can read about that further here . If I understand your question correctly, the answer is no. The Euclidean distance can only be calculated between two numerical points. Therefore it would not be possible to calculat...
1
0
711
2018-10-14T14:31:14.723
data_quality
datascience.stackexchange.com
422,528
Find files/folders that are filling up disk space
Possible Duplicate: How can I determine what is taking up so much space? I just had an old server go belly up because it ran out of drive space. I am logged in to the shell, and I'm trying to find more unused files to remove. Is there shell a command, script, or app that will display the largest files/folders?
This command will help you find big directories 5 levels deep. It also orders the directories by the size. I had a similar problem long time ago where apache sessions where filling my disk and slowing down my web server. [CODE]
3
8
21,678
2012-08-29T15:01:47.963
data_quality
serverfault.com
141,728
Temp postgres table ignores "excluding constraints"
In PostgreSQL 9.5. I'd like to create a temporary copy of my table without its primary key. Postgres has a feature [CODE] - which I'm attempting to use. [CODE] If I'm understanding [CODE] correctly, that should not bring over the non-null constraint on [CODE] to [CODE] . But here's the error that I receive: [CODE] I ha...
I'd like to know what I'm not understanding correctly about [CODE] . What is happening here is that [CODE] creates a [CODE] constraint but doesn't create a separate [CODE] constraint. It adds a [CODE] "modifier" to the column. This works as a constraint, ie. no nulls are allowed in [CODE] but it is not a named constrai...
4
3
1,516
2016-06-20T14:39:46.337
data_quality
dba.stackexchange.com
367,279
Same dev env setup across multiple machines - aka fixing "but it worked on my machine"
Community, as our software and development team grows, we ran into multiple problems: Multiple Config files with different paths for each machine "Do I need this tool? And what version, I don't have this yet" - "I use it with version x.x" "Why does this work on my local machine but not on the prod server?" "Which Visua...
Use relative paths Script the installation of tools (use specific versions) Use a package manager (eg, NuGet) to ensure everyone uses the same libraries If you go down the Docker route, have local development deploy to local containers. This will more closely resemble production environments. Don't rely on the order in...
4
4
444
2018-03-08T11:12:37.320
pipeline_ops
softwareengineering.stackexchange.com
275,681
MariaDB master to master replication auto increment is not sequential
I have two master to master MariaDB server replication with the below settings: [CODE] and: [CODE] The replication works great but I have problem with auto increments. As you see they are not sequential. For example: Server A increments: 1, 3, 5, 7, 9 and ... Server B increments: 2, 4, 6, 8 and ... The problem occurs w...
[CODE] cannot be trusted to avoid gaps in the numbers. It appears that you must avoid them. Plan A: Switch to MariaDB and use a [CODE] table. Plan B: Simulate such. Have a table with 2 columns in one row. (A second sequence could use a second row, etc.) Something like: [CODE] [CODE] is needed to uniquely identify the r...
1
0
1,656
2020-09-17T20:08:34.057
database_errors
dba.stackexchange.com
53,437
Constraint exclusion to fetch latest N rows
I'm managing a table with several million records which are being inserted in real time. A part of my app needs to display the last N inserted rows, so at the beginning I just queried for: [CODE] A few days later, I found out it was faster to set [CODE] to be (for this example) [CODE] , and use it as [CODE] , so [CODE]...
Misconception 1: "Natural order" [CODE] ... would naturally order by id, therefore yielding the latest records. There is no natural order in a [CODE] statement. Without [CODE] you get rows in arbitrary order. Generally that will be the cheapest order in which Postgres can satisfy your query, i.e. the order in which tup...
0
5
263
2013-11-17T13:24:27.777
api_errors
dba.stackexchange.com
263,357
Notify about starting event
I am having quite a hard time figuring out how to solve this problem. Basically I have a mini social network with notifications and events. I want to add such functionality where 1 day before an event is about to start and 1 hour before the event starts, users participating in the event get notifications that the event...
Create a table which will store information about notifications: [CODE] Every time someone joins some event, you should insert a new row in the notifications table. To notify users, you need script which will perform a mysql query like: [CODE] After selecting users, notify them and delete the rows from table. This scri...
0
2
1,158
2014-11-20T18:37:37.843
database_errors
softwareengineering.stackexchange.com
684,221
Ansible EC2 Hosts Script Missing Instance
For some reason, ansible's ec2 hosts is missing instances. ec2-describe-instances returns the correct instances, but /etc/ansible/hosts does not: [CODE] You can see that ec2-describe-instances has the instance with the tag I'm looking for, but ansible hosts does not. Why is that instance not in there for /etc/ansible/h...
I had to tweak the following knobs (in [CODE] ): [CODE]
4
5
1,257
2015-04-21T02:15:09.273
pipeline_ops
serverfault.com
366,028
What's the most simple proxy that can log traffic to a file?
we found a new service that could be quite useful to monitor what is happening on our servers and in our applications. Problem is that it is SaaS, so we can't just install the tool on our servers, but have to send the data over the wire to the servers of the company. Additionally, the agent and daemon collecting and se...
If you are specifically looking for proxies then squid is your answer. If you are just looking for the end result you can use a combination of tools to gather data. (for example: you dont want all traffic sent through a single server, maybe in a multi site network. All data gets logged in a central location for reporti...
2
2
1,713
2012-03-03T18:54:53.683
infrastructure
serverfault.com
262,668
Slow Query With Multiple Left Outer Joins
I am using the following query which has multiple left joins. it takes around 3.2s for execution. I have added indexes on every column which is taking part in JOIN. is it something regarding DB performance? What all columns I need to consider for index. is a composite index needed in this case? [CODE]
Are there ever two billing addresses for one account? If not, toss the [CODE] for that address; it has no affect on the [CODE] . Ditto for all the other [CODE] . Even if one of the [CODE] leads to extra rows, get rid of them because of the [CODE] . Are there multiple profiles for each user? If not, then much of the oth...
0
0
786
2020-03-25T15:55:57.483
warehouse_errors
dba.stackexchange.com
227,146
How to set listener.ora and tnsnames.ora for oracle instances
I set listener.ora and tnsnames.ora, but I do not know if it is well set up. When I call the [CODE] command, I get instances rcadb and proddb unknown. I'm a beginner in Oracle, I installed the Oracle 12c pre-built. Now that I've made two databases, I have this problem, I can not find a mistake. The database orcl12c I g...
There is nothing wrong with that. Listener Control Utility SERVICES Command UNKNOWN means the instance is registered statically in the listener.ora file rather than dynamically with service registration. Therefore, the status is non known.
1
2
10,879
2019-01-15T00:33:47.367
database_errors
dba.stackexchange.com
5,811
Should fields that aren't needed often be kept in separate tables?
I have a tagging system on my site. I also want to add descriptions to the tags just like on the S.E. sites. The tags are used for a lot of stuff. Its how categories know what products to display, how users can further drill down into categories, how product attributes are set, how coupons know which products they can ...
I sympathize with this situation because of the [CODE] statements from ORMs. General MySQL (and probably other RDBMs) index theory is to only select the columns that you need, preferably entirely from an index. That being said, the answer depends on how much traffic you are expecting to get to see a noticeable degradat...
3
6
110
2011-09-15T20:14:03.827
warehouse_errors
dba.stackexchange.com
750,079
Wrodpress DDOS /xmlrpc.php
This is what my nginx access.log looks like as I write this times infinity: [CODE] I've tried to to put in place the common fix which seems to be inserting the following into my functions.php file: [CODE] But sadly the above snippet still isn't doing anything, my server has been doing this all day today. And what makes...
127.0.0.1 of course is internal. Did you check your cron jobs etc? For external IP addresses, Fail2Ban is your solution. You match such a log line in Fail2Ban, and Fail2Ban will tell your firewall to ban that IP for the amount of time you specify. Fail2Ban can be much more useful for WordPress than that alone. It keeps...
0
0
118
2016-01-19T06:04:51.453
database_errors
serverfault.com
285,377
Why does SOP permit cross-origin form submissions?
Same Origin Policy does not prevent origin [CODE] from creating a form with action attribute set to another origin [CODE] and even allows to programmatically submit this form without the user knowing through untrusted events originating via JavaScript just by loading the page. To solve this issue, programmers are force...
The Same Origin Policy protects the client. CSRF tokens protect the server. SOP prevents malicious site A from accessing cookie credentials held by the client for site B which would otherwise be submitted along with the cross-origin request. See How do web servers enforce the same-origin policy? (short answer: they don...
6
3
397
2015-05-30T19:40:51.900
api_errors
softwareengineering.stackexchange.com
326,447
Is hard-coding role-based security faster than reading an xml file?
I'm updating a few asp.net applications which use Windows Authentication and do role-based security via an xml file, then store this info in session variables (if the session times out, the program just recreates the session variable). This approach works fine, but seems unnecessarily convoluted in the way it's been im...
Yes, it would be faster. It would also be easier to test, less error prone to deploy, less work to secure, easier to read... And so on. The downside is it doesn't work if your pages aren't in code (if they're user created or some such). And there is the usual argument that having it in config means you can change it so...
1
2
187
2016-08-03T00:03:12.623
api_errors
softwareengineering.stackexchange.com
746,944
Postfix - MySQL - noreply custom response not working
I'm trying to get a custom response working for no.reply@example.com and I keep getting "User doesn't exist" errors. I have an alias of no.reply@example.com which has a 'goto' of the same value, then I have a [CODE] file which has the following: [CODE] In the [CODE] file I have: [CODE] And the [CODE] file: [CODE] What ...
Ok, looks like [CODE] isn't the way to go for this. I found this post and got it to work using [CODE] . Snippet from main.cf [CODE]
0
0
355
2016-01-05T19:54:46.160
database_errors
serverfault.com
283,569
How to protect controller endpoint from abuse?
I am building a web app that will first validate a promotion code via AJAX call and then if it is valid, allow the user to fill out the rest of the form , I use KnockoutJS to reveal and hide the elements. My issue is, what is stopping a sneaky user from building a code generator and pumping the codes into my ajax endpo...
You could block the user IP address after few attempts within certain period of time (say if certain IP address sends 10 requests over 1 minutes, then block the IP for 10 minutes.
0
1
153
2015-05-12T00:35:08.160
api_errors
softwareengineering.stackexchange.com
69,025
How and What to gain from bizspark?
In my company we had a bizspark softwares from microsoft, and as we understood that this will help us to lower our webhosting payments, and also some development software costs. Now my issue that we have already a dedicated server, we pay for it monthly, this server contain windows server 2008 and SQL server 2005, and ...
Yes and no, some hosting providers will allow you to use your bizspark licenses...others will not. If you have a dedicated server (and have full access to it), you can just install your own licenses(and report it to MS at each year end), that is what I did. It can save you a ton of money on production licenses...at lea...
0
2
498
2009-09-26T20:50:20.397
database_errors
serverfault.com
728,215
What could cause an SFTP host key fingerprint mismatch?
A remote user has tried to connect to my SFTP/SSH server for the first time, using the "Transmit" client under Mac OS X, and has found that the host key fingerprint doesn't match the expected value. I have a screenshot of the displayed fingerprint and have compared it with the output of [CODE] and [CODE] , and it doesn...
Turns out that the FTP program in use was not Transmit but was Cyberduck 4.5.1. The problem with the wrong fingerprint was already known as Wrong host key fingerprint . Updating to the latest version fixed this problem, and the displayed fingerprint is now correct.
5
2
11,074
2015-10-11T17:09:18.793
infrastructure
serverfault.com
269,690
Column name on NOT NULL constaint violation not shown
I'm using an Oracle 19 DB that is structured into multiple layers by using DB users. Here is a simplified overview of the structure: User DATA: Has the table [CODE] and the view [CODE] . The view is created with a [CODE] statement, so it contains all columns of the table. User APP: Uses the view [CODE] for all SQL and ...
Other than the obvious solution ( [CODE] ), you can revert to the old behavior by setting SQL92_SECURITY to [CODE] . In 11.2 , its default value was [CODE] , but in 19c , its default value is [CODE] . [CODE] Then restart the database, as this parameter can not be changed online. Demo: [CODE] By changing the parameter: ...
2
2
282
2020-06-23T06:03:10.303
database_errors
dba.stackexchange.com
504
Foreign Key violation - not sure why
I have the following two tables with a foreign key on [CODE] : [CODE] There's two rows in [CODE] : [CODE] So I should be good to insert into usr_cookbook right? [CODE] Why the constraint violation? The [CODE] I'm using (1) exists in the parent table. I'm sure there's something simple I'm missing here...
When I looked at the DDL per Brian's suggestion the problem immediately became clear: The [CODE] table was using MyISAM engine. I switched it to InnoDB and everything works now.
5
3
1,613
2011-01-11T04:42:23.037
data_quality
dba.stackexchange.com
25,105
What does "*password------------" mean in a profile deadlock report?
In SQL Server 2008 R2, I got several deadlock reports that have "*password------------" in the input buffer. It looks like an attack but in that case I don't know the reason or the kind of attack. (the log was generated by an expert DBA how has lot of experience and told me that, not me) Does anyone know what it is? Th...
It just means that the text of the statement contained the string "password" and SQL Server "helpfully" has masked it as a security feature to prevent you seeing some one else's password. I was able to reproduce this as follows [CODE] Connection 1 [CODE] Connection 2 [CODE] Then retrieving the graph from the extended e...
9
11
722
2012-09-28T14:17:00.123
database_errors
dba.stackexchange.com
21,418
UPSERT - Is there a better alternative to MERGE or @@rowcount?
I was wondering if you have encountered a T-SQL command similar to the concept of UPSERT? Performing INSERT|UPDATE operations using options (1) or (2) seems overly complex and error prone. OBJECTIVE To ensure that the desired record (in this case employee_id 1) is up-to-date WITHOUT having to having to essentially writ...
I think the simple answer to this is no. [CODE] was Microsoft's answer to the more convoluted [CODE] logic. And you didn't even list the worst approach: [CODE] I just threw up in my mouth a little typing that, but it's actually the one I see most often. In any case, if [CODE] is not flexible or powerful enough for you,...
15
14
30,193
2012-07-24T19:11:22.503
database_errors
dba.stackexchange.com
261,090
When do I need to DEALLOCATE a prepared statement in a MySQL stored procedure?
My question is simple. In what situations is it better to deallocate the prepared statement and thus removing it from memory and in what situations is it better to keep it in memory? I have written a stored procedure that uses two prepared statements. One of the first few lines is to prepare the statement like so: [COD...
[ https://dev.mysql.com/doc/refman/8.0/en/sql-prepared-statements.html] says: A prepared statement is specific to the session in which it was created. If you terminate a session without deallocating a previously prepared statement, the server deallocates it automatically. A prepared statement is also global to the sess...
1
1
1,489
2020-03-03T13:40:02.873
database_errors
dba.stackexchange.com
301,543
How to reconcile "not mocking what you don't own" with "expectations" in unit tests?
I'm putting together a set of models for use in a Zend Framework 2 application. So, each model has a table class which acts as the interface between the model and database for querying. Using the ZF2 [CODE] means that even a fairly simple query, like getting the number of hits from a page log between two dates, ends up...
The point of your test should be that it tests if getDailyHits returns the expected results. It is not doing that right now. It's a meaningless test that simply checks that your implementation makes a bunch of calls, instead of testing the behaviour itself. When for some reason your implementation or database structure...
5
6
526
2015-11-03T05:58:31.753
api_errors
softwareengineering.stackexchange.com
119,753
WSREP: failed to report last committed and stop
I have galera cluster and I have 4 nodes. I'm importing some data. however one node gives error. Warning. The warning is; [CODE] What is that error? How can I solve this? This node shouldn't stop, not mysql service stopped in that error. Thanks
warning WSREP: Failed to report last committed This is just a warning, and in itself isn't a cause for concern. I think it's unlikely that this caused the node to stop. See also Percona's blog post about it. And then: mysqld_safe Number of processes running now: 0 Again, according to Percona (Support) : Your mysqld pro...
5
2
5,436
2015-11-01T07:03:27.643
database_errors
dba.stackexchange.com
138,891
Why I am getting "Problem loading the page" after enabling HTTPS for Apache on Windows 7?
I enabled HTTPS on the Apache server (2.2.15) Windows 7 Enterprise by uncommenting: Include /private/etc/apache2/extra/httpd-ssl.conf in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd.conf and modifying C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd-ssl.conf to include: D...
The certs that I was using had attribute "Encrypt contents to secure data" enabled. Hence the Apache was not able to read the contents. I disabled the attribute by right clicking -> properties-> Advanced and removing the check to Encrypt contents to secure data
0
1
903
2010-05-05T17:12:38.193
api_errors
serverfault.com
7,009
SQL Server - Tempdb data/log file placement
Currently we got TEMPDB Data (number of data files:2) and LOG file on same drive. On monitoring we have found I/O issues on TempDB. We got an extra drive available - should we move the TempDB Log file to new drive or should we move the second TEMPDb data file on the new drive to help us reduce I/O issue?
If you're already certain you have IO contention, start by understanding which files are the cause. [CODE] With the data from that query you can judge whether the log or data files are the point of contention in tempdb. It's probable you'd be better off with both data files on one drive and the log file separate, but y...
5
6
3,262
2011-10-20T13:38:45.437
database_errors
dba.stackexchange.com
258,641
Best way to copy MS SQL (2000) database files to an external drive
We have a system running on Windows 2003, with a MS SQL server 2000 (Standard) instance as the data source. As we have sold the product, we are in the process of moving everything to the purchasing party. We have cloned the virtual machines, and when they set them up, they are stating that the databases are corrupt and...
Per the specific requirements of getting copies of the .mdf and .ldf files, you can simply stop the SQL Server service, copy the files, then start the SQL Server service. The way to do it without downtime would be to take full backups, but then the other party would be required to restore the backups instead of just co...
0
2
316
2020-01-31T17:20:56.037
data_quality
dba.stackexchange.com
155,264
Oracle DB Security Issue: Anyone can login using SQL*PLUS, with any username, and any wrong passphrase
I'm using Oracle DB 11g-R2 on CentOS 6.4, and unfortunately there is a terrible issue freaking me out. Anyone can login using SQL*PLUS, with any username, and any wrong passphrase. Consider somebody logging in using [CODE] with a wrong passphrase, and get all database and tables he wants. Isn't it bad? I know you may s...
The OSDBA group (typically, dba) You must create this group the first time you install Oracle Database software on the system. This group identifies operating system user accounts that have database administrative privileges (the [CODE] privilege). This is expected behavior as you are logging the Oracle Database from t...
2
4
412
2016-11-15T05:43:38.687
database_errors
dba.stackexchange.com
667,991
Puppet: How to write a proper “condition and condition” statement?
I wrote a "Message of the day" Puppet module which affects all proxy servers in my company. Within the template file, I have the following "if statement": [CODE] It's meaning: If hostname is proxy0-100 and not ^haproxy0-100 then add a line to the motd script. But for some reason this statement doesn't work. I also trie...
I found the problem... there was an extra space in the [CODE] file which caused the error. Thanks for your help.
0
1
832
2015-02-16T10:20:50.253
pipeline_ops
serverfault.com
478,919
VMware causes BSOD on virtual machine boot
I've got VMware 9.1 installed on Windows 8 Pro. I'm trying to run a virtual machine of Fedora 13 created on this computer. It is installed on an external hard drive, and I last opened the vm on a computer at my school running VMware 8 on Windows 7. Now when I try to boot the vm, I get to the login screen for Fedora, bu...
Remove the machine's network adapter, try to boot. If successful, you know what the problem is. Use a different adapter type.
-1
0
4,375
2013-02-14T17:41:50.847
infrastructure
serverfault.com