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
316,847
Enforce table ownership
Here's the deal,: I have postgresql databases (GCP Cloud SQL deployment, I don't care about version) and I want to enforce ownership of tables. Specifically, an application logs in to the database [CODE] via GCP IAM account, which has assigned [CODE] . The application needs to create a table [CODE] owned by [CODE] . So...
Easy; use an intermediate [CODE] role: [CODE] Now [CODE] (weird name) is a member of [CODE] , but does not inherit permissions from that role. Then change the schema so that only [CODE] has the [CODE] privilege. After that, [CODE] must use [CODE] to be able to create a table, and the table ownership is as it should be....
0
1
290
2022-09-13T14:50:28.990
database_errors
dba.stackexchange.com
240,814
Using plpgsql to remove all functions
I intended to drop all functions in all schemas within a certain database, however, after I executed the bash file containing the following code block, the functions are still there [CODE] After I partition the do block into three separate do blocks for dropping all views/functions/sequences, I managed to drop all sequ...
Your code is executed in a single [CODE] statement and hence in a single transaction. So if any of the statements cause an error, all statements will be rolled back. If you want to avoid that, you can use subtransactions by using an [CODE] clause, for example: [CODE] Then the failed statement is rolled back, but proces...
1
2
876
2019-06-18T14:09:50.843
warehouse_errors
dba.stackexchange.com
121,599
Best classifier for ordinal categorical variables
I'm getting different results between R and Python for a classification problem using ordinal categorical features. I would like to ask you what do you think is the best classification algorithm in Python to use for ordinal categorical data? In R this seems to be some Machine Learning algorithm based on "ctree". In Pyt...
[CODE] or a conditional tree is a non-parametric decision tree. TreeDecisionClassifier in Python is the closest, but there isn't a direct equivalent of a conditional tree in Python's sci-kit learn, which appears the context of the question. It may be possible to modify the scikit learn's decision tree to be a condition...
1
2
196
2023-05-17T22:01:35.913
data_quality
datascience.stackexchange.com
366,715
Unable to start the Phusion Passenger watchdog
I'm trying to install Passenger (mod_rails) on Apache2 server by using the command [CODE] Passenger gets installed and i added the below line to my configuration file LoadModule passenger_module /home/ec2-user/.rvm/gems/ruby-1.9.2-p290/gems/pass enger-3.0.11/ext/apache2/mod_passenger.so PassengerRoot /home/ec2-user/.rv...
First, let us make sure Watchdog is present on the system by running: [CODE] Then if it's an RVM issue, you can try a workaround of symliking Passenger's root to the location mentioned by apache: [CODE] On another hand, are you sure running [CODE] didn't raise any errors/warnings? including its output to the question c...
5
1
5,476
2012-03-06T05:16:35.033
infrastructure
serverfault.com
163,315
Can't create a server role using GUI in SQL Server 2014 Express
I am still new to DBA and learning. I am having an issue when creating a Server Role using GUI. The option to create the server role does not seem to be visible in the Menu But when I create a role using the following script it is successful [CODE] Also after creating a role I can't update it using the GUI options How ...
( This was asked recently and I'm going to close this as a duplicate.) This is a known bug in Management Studio, and has existed since at least SQL Server 2012. Unlike other missing things in Management Studio (like SQL Server Agent), this has nothing to do with the version or edition of Management Studio you're using,...
4
4
2,300
2017-02-06T07:44:12.877
database_errors
dba.stackexchange.com
989,890
Remote power shell through load balancer
I want to connect to exchange server via remote Powershell. When I connect directly with server URL I am able to create the session. But in the production I have many instances of exchange server, So I have created loa balancer for them and tried to connect with load balancer URL through remote Powershell. But I am get...
Have you tried use IP address to connect to remote powershell? Are you able to telnet to port which you used? In addition, you can have a read of this article to learn a bit more about selective trusts and whether or not it’s affecting you. A similar case for your reference.
1
0
1,316
2019-10-30T09:17:33.077
api_errors
serverfault.com
220,384
How to test the connection speed of a server?
What are the techniques to test the connection speed of a server (in my case, virtual Ubuntu server @ Slicehost)? Bonus points for one liner bash command.
One of the better command line tools for checking bandwidth available is iperf. However you need another box on an known fast connection to run the test against. I'm not aware of any public iperf servers.
0
6
23,140
2011-01-09T18:31:18.430
infrastructure
serverfault.com
838,247
Are these iptables rules necessary?
Scenario: Linux based router (Asuswrt-Rmerlin 380.65) running iptables v1.4.14 with the following rules at the top. The purpose of the router is to provide Internet access to internal clients. No services are open for public use on the wanface. [CODE] 1) With the rules above, is it necessary to have the rules below ? [...
Michael Hampton is dead right, answering questions in the absence of the whole ruleset can be misleading, but we can still make some definitive statements. You say your ruleset starts with [CODE] then you ask about the rationale for having certain additional rules, looking to find out what they add that the first two r...
2
1
351
2017-03-14T17:17:39.470
infrastructure
serverfault.com
20,179
What is the advantage of keeping batch size a power of 2?
While training models in machine learning, why is it sometimes advantageous to keep the batch size to a power of 2? I thought it would be best to use a size that is the largest fit in your GPU memory / RAM. This answer claims that for some packages, a power of 2 is better as a batch size. Can someone provide a detailed...
This is a problem of alignment of the virtual processors (VP) onto the physical processors (PP) of the GPU. Since the number of PP is often a power of 2, using a number of VP different from a power of 2 leads to poor performance. You can see the mapping of the VP onto the PP as a pile of slices of size the number of PP...
57
59
41,201
2017-07-05T05:43:20.287
data_quality
datascience.stackexchange.com
13,756
Discrepancy between training set and real-world data set: domain adaptation?
I have read in literature that in some cases the training set is not representative for a real-world dataset. However, I cannot seem to find a proper term describing this phenomenon; what is the proper term to address this problem? Edit: So far I have settled for the term domain adaptation , shortly described as a fiel...
You may be looking for sampling bias . Also the other case (where training set does in fact represent the real world data-set well) is generally known as representative sample. Hope this helps.
3
3
891
2016-08-30T12:26:07.027
data_quality
datascience.stackexchange.com
38,151
Installation rights management in Windows
Problem: We have a site where there is a mix of Windows 2000 and Windows XP machines. These currently have user accounts with Admin Rights which can install licensed/unlicensed software. We want to restrict such activities so that, Users can install / uninstall pre-approved list of software. Users are given unrestricte...
If you really NEED to do this (...), you'd want to research about Window's Software Restriction Policies: http://technet.microsoft.com/en-us/library/bb457006.aspx [start rant] To tell you the truth though, it looks like a LOT of work for something that IMO seems to be particularly easy to circunvent since the users wil...
1
2
260
2009-07-09T08:43:23.667
infrastructure
serverfault.com
285,186
"Error occurred during initialization of VM" in linux server
I am trying to run java command in linux server it was running well but today when I tried to run java I got some error- Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. my memory space is - [CODE] How can I solve this problem.
Restart(reboot) system or server it will work well.
0
0
3,905
2011-06-29T07:04:47.370
infrastructure
serverfault.com
870,355
How to benchmark the performance of XFS with a large number of files?
I have a single server running some code that creates millions of small files all in a single directory. At first, the code runs extremely fast. After a day or so, it begins to slow down quite a bit. I'm trying to figure out whether this is an issue with the code, or whether this is an issue with the number of files in...
Start with your application and understand how it performs. Add instrumentation to your code so you can measure how long tasks take. Monitor host OS metrics like CPU and storage IOPS. File system and block device response time with dynamic tracing like [CODE] and [CODE] Capture profiles with tools like [CODE] so you ca...
1
1
745
2017-08-24T21:28:38.143
infrastructure
serverfault.com
78,247
What to do when you have exhausted all avenues to fix a bug
I am a Junior Programmer(4 months career experience so far) working on a Cross Platform Mobile Application (1 person team - so its just myself). I have a bug in this program/app which is pretty large (30 different header files, each with their own cpp file too). I have been trying to track down exactly what is going on...
If you can reproduce the issue 100% of the time, set a break point on the last step (as early as possible). If you walk through the entire call stack, I'm pretty sure you're going to come up to some unexpected values somewhere, or something that should be called but isn't. Edit: And if you're sitting at your wit's end ...
13
20
3,025
2011-05-22T05:31:38.773
api_errors
softwareengineering.stackexchange.com
69,370
VPN - Remote Desktop Connection
I've set up a VPN connection to my work network on my home PC - running Windows 7 It connects fine. Once connected, I can ping machines that are on my work network using my home pc, however, if I try to RDP to them, it doesn't connect... It seems to initially connect, It asks me for the logon user / password, and when ...
On the Win 7 machine, start Remote Desktop Connection. Click on Options and go to the Advanced tab. For Server Authentication, do you have "Do not connect"? If so, knock it back to "Warn me" and try again.
2
1
3,388
2009-09-28T19:29:52.753
infrastructure
serverfault.com
137,677
Get the deleted value using while looping through the columns
I wrote a trigger to do auditing. To capture all the changes, I loop through the list of columns. The problem I'm having (see code below), when I try to set the [CODE] using the [CODE] , I get back the actual field name. I want to get the value, so I don't have to explictly name each field (like I did when I set the Ne...
I'm short on time so I wasn't able review your code, but I'm basing this answer off your question: How to get the deleted values/capturing changes? Just yesterday I was reading from CH. 8 of Itzik Ben-Gan's "Microsoft SQL Server 2012 T-SQL Fundamentals" and he had a good section on creating audit tables with the use of...
-1
0
507
2016-05-05T17:32:37.213
database_errors
dba.stackexchange.com
336,561
Server extremely lags and logs bunch of 'internal dummy connection'
Having a web-server (don't know actually whoset it up, it's my heritage). Few hours ago it started working very (extremely!) slow, mysqld oftenly fails requests. /var/log/mysqld.log is empty (well, it says, mysqld started, and so on, but nothing regarding today) /var/log/apache2/access_log is full of such lines: [CODE]...
The Apache Wiki's InternalDummyConnection article describes why these requests are issued, though there is definitely something wrong if no Apache configuration or application changes have been made prior to this behavior's appearance. If you are using Apache v2.2.6, (please detail [CODE] ) Bug# 39653 (and related comm...
2
2
5,296
2011-12-01T09:37:04.660
database_errors
serverfault.com
877,315
"Multiple connections to a server or shared resource by the same user" when there are no connections
Related to: The Network folder specified is currently mapped using a different user name and password However, I am not currently connected to the network location already. I if type [CODE] I get the following output: [CODE] And when I go to map the drive it asks for the credentials twice, then on the 2nd time fails wi...
It turns out windows had cached credentials for this location. Go to [CODE] Under [CODE] Remove the account that has cached credentials to the network share. Try and remap drive now. Failing that you can try: [CODE]
8
5
17,401
2017-10-07T00:30:41.663
infrastructure
serverfault.com
20,387
Too many open files on Debian
I have long running process at Debian. At some point in throw an error: Too many open files. Running: [CODE] shows: open files (-n) 1024 I wish to increase number of open files in 2 times. After execution [CODE] the limit is active until end of my session, which is not applicable for the task. How can I permanently inc...
If your process is started via a script, you can place the call to ulimit in the script just prior to executing the daemon. If you wish to increase the ulimit for your user, or for all users, you can set limits that are applied via [CODE] on login. These are set in [CODE] . In your case, you could do something like: [C...
18
15
48,872
2009-06-05T10:00:39.493
infrastructure
serverfault.com
814,134
Bridge multiple LAN ports to a WAN
I have a network device which has 1 WAN port and 4 LAN ports. This device is running linux under the hood. I want to connect the WAN port to the 'wider network' which supplies DHCP and connect devices to the LAN ports 'transparently' so they each receive an IP from DHCP and can directly reach/be reached by other device...
Simply use [CODE] to add all the ethernet ports to the bridge along with the WAN port. Your interface identifiers may vary.
2
1
1,604
2016-11-10T06:19:19.897
infrastructure
serverfault.com
632,065
Problems accessing my servers - but only from German providers
I'm having a problem that I've been trying to resolve for months to no avail. I have several websites hosted on a dedicated server in the US. Those include http://noduslabs.com http://waytorussia.net http://polysingularity.com I have a major problem accessing those sites from my providers in Germany. In fact, I'm using...
It takes too long for your server to send its first bits of data. So you are having either a major connectivity problem (unlikely imo) or your pages are just taking to long to create on the backend (wordpress). It takes almost 10 seconds for noduslabs and polysingularity to load from my US location. the other site seem...
0
1
60
2014-09-29T12:25:29.337
infrastructure
serverfault.com
120,089
Pytorch mat1 and mat2 shapes cannot be multiplied
The error message shows [CODE] I have built the following model: [CODE] The input images are of size [CODE] . Here is my training block: [CODE] Any advice would be much appreciated.
In [CODE] , the image first passes through some convolutional layers (i.e. [CODE] ), then it is flattened, then passed through some linear layers (i.e. [CODE] ). The problem is the dimensionality of the flattened tensor does not match the expected input for [CODE] . The last dimension of the flatened tensor is expected...
2
2
12,891
2023-03-10T03:08:47.403
data_quality
datascience.stackexchange.com
36,187
What is the equivalent of a "Certificate of Destruction" when using a cloud-hosted database?
We have a Rails application hosted by Heroku and using an Heroku Postgres database. Some of the information we store is considered to be sensitive by our users, and we've been asked if we can provide a Certificate of Destruction in the event they wish to delete their account. In other fields (e.g. law) CODs are apparen...
1) When we issue the ActiveResource::Base#destroy command on a record, is the data truly destroyed? Sure not. We keep backup snapshots with Heroku's PG Backups, so even if the original command truly destroys the data, its probably still in the backups. Without deleting the backups, is it even possible to destroy comple...
2
0
470
2013-03-07T15:23:10.760
database_errors
dba.stackexchange.com
1,033,073
How does O365 Mail Flow work for Transport Rules with Multiple Outbound Connectors?
We are implementing a service that will encrypt email for our O365 mail tenant. RULE 1 : If a specific pattern is found in the email SUBJECT, mail is sent to our mail encryption server and encrypted. Encrypted message is sent BACK to O365 with a Inbound/Receive Connector. RULE 2 : It sends outgoing mail from specific s...
From the relevant microsoft documentation All messages that flow through your organization are evaluated against the enabled mail flow rules in your organization. Rules are processed in the order listed on the Mail flow > Rules page in EAC, or based on the corresponding Priority parameter value in the PowerShell. Each ...
0
0
1,018
2020-09-08T13:42:05.273
infrastructure
serverfault.com
323,342
Multiple Servers, Multiple Domain Names, One External IP, IIS 7
I have looked through post and web listing, and I am not finding what I need so I will see if I can make some sense here. I should mention I am more of a programmer, and just happen to be doing this because in this company I am the most knowledgeable about servers which isn't saying much. Okay so here is the set up. We...
TLDR answer: Yes, you want a reverse proxy. Everything else is an implementation detail.
0
0
468
2011-10-20T16:01:47.210
database_errors
serverfault.com
99,842
PHP has encountered an Access Violation at ***
Win 2003, PHP 5.2.1 and IIS 6. I have PHP configured as ISSAPI and it is serving PHP pages. When I try a page that requires MySQL I am getting just: PHP has encountered an Access Violation at (and a RANDOM number) What is all. Google has not provided me with results that help me fix. Does anyone have any thoughts?
Make sure mysql support has been enabled in your php.ini file. Read this... specifically the Windows installation section.
1
1
23,144
2010-01-05T22:40:24.797
database_errors
serverfault.com
656,694
Allow OpenVPN client to push it's own DNS servers, regardless of OpenVPN server's pushed dns?
There is an OpenVPN server running on a Debian and it pushes a DNS in the server config file: push "dhcp-option DNS 8.8.8.8" Is there an option to allow the users to change that DNS servers on the client side? Here is the catch, the openvpn server must push a DNS because otherwise many OpenVPN clients will not be able ...
As of 2017 (OpenVPN 2.4) this is now possible. Add this line to your client config file: [CODE] and it will ignore all pushed config lines that start with the quoted text. Options are matched top-down, so the first match is used. You can use this to allow some routes and reject others, if it suits your needs. The three...
12
21
47,448
2015-01-06T17:49:28.260
infrastructure
serverfault.com
513,206
RDP or VNC a single application
I'm working at a school and need to put together a solution that allows our students to access certain flash-based websites on their iPads. The existing commercial solutions like Puffin Browser don't work in our case since we need to ensure that our students traffic is going through our content-filtering system. I curr...
Your problem is an interesting one, and your solution path isn't wholly wrong, but I think you're chasing a more complicated solution than you need. If you have a unix server you don't need VNC or RDP - you already have X11. With an app like iSSH you can display any X client on an iPhone/iPad, so a simple solution is t...
3
4
2,580
2013-06-04T19:24:59.930
infrastructure
serverfault.com
1,050,229
Error 4033 , Reason not-authorized
When I restart a GCP instance, I get the below error: [ ]
According to https://cloud.google.com/iap/docs/faq , Error Code 4033 means "Either you don't have permission to access the instance, the instance doesn't exist, or the instance is stopped." Given the instance exists, following https://cloud.google.com/compute/docs/instances/connecting-advanced#cloud_iap , likely you ne...
5
3
13,747
2021-01-18T09:11:53.420
api_errors
serverfault.com
45,116
Why are interfaces not casteable/ducktypeable?
One thing that always irked me (in C#) was that there's a hard dependency between an interface/abstract class and the implementing class and assembly. Meaning that that if two different assemblies implements the same interface either one of them have to reference the other (where the interface lies) or they both have t...
The intent of an interface is to completely separate the method signature from its implementation. If you are referencing an object strictly via an interface, but you need to call methods which are not specified as part of the interface, then maybe you should rethink your design.
4
6
570
2011-02-07T18:54:05.833
api_errors
softwareengineering.stackexchange.com
694,462
Is Strict-Transport-Security HTTP header name case-sensitive?
I'm digging into the HTTP Strict-Transport-Security specification, https://www.rfc-editor.org/rfc/rfc6797 It specifies the syntax of the header like this: [CODE] The RFC specifies that directive names such as "max-age" are case-insensitive, but does explicitly state whether the header name, "Strict-Transport-Security",...
All HTTP header field names are case-insensitive. RFC 7230 § 3.2 states: Each header field consists of a case-insensitive field name followed by a colon (":"), optional leading whitespace, the field value, and optional trailing whitespace.
1
3
1,137
2015-05-26T12:09:43.407
infrastructure
serverfault.com
127,065
Looking for a distributed locking pattern
I need to come up with a custom recursive object locking mechanism\pattern for a distributed system in C#. Essentially, I have a multi-node system. Each node has exclusive write permissions over n -number pieces of state. The same state is also available in read-only form on at least one other node. Some writes/updates...
Thanks for the clarifications. In that case, what I'd recommend is using a publish / subscribe model. Google's Chubby distributed locking protocol ( an implementation of Paxos ) I've never used Paxos (or Chubby), but there seems to be an open source implementation here . If that doesn't work, you could implement your o...
11
4
14,735
2011-12-26T18:19:48.373
database_errors
softwareengineering.stackexchange.com
222,717
Optimal "if-else" tree algorithm to minimize duplicate code
I'm having trouble formulating this problem as an algorithm: I have a set of conditionals (combined with [CODE] ) and operations, for example: [CODE] I want an algorithm to find the optimal "if-else" tree that minimizes the amount of duplicate code. The optimal branching for the example above would be: [CODE] The cost ...
Avoid nesting logic into inner blocks as much as possible. It makes code harder to read. [CODE] Exit if not A. Otherwise B or D, but if you know D is already true when B is false. You could drop the [CODE] and just execute E. In cases like this it's preferred to use a switch. [CODE]
4
4
1,995
2013-12-31T00:22:51.740
data_quality
softwareengineering.stackexchange.com
252,982
How can I successfully decrypt column data through the whole database safely?
We're moving to Azure SqlDb but as part of that, we're needing to migrate away from [CODE] as it's not supported. As such, we tried the process on the weekend but we ran into the log filling up and the script stopping midway through. What are my options here? There will be zero usage of the DB during the process, can/s...
Do it in batches, using a [CODE] approach. You could monitor the transaction log size & adjust the batch size accordingly. If you wanted to keep the database in the Full Recovery Model, then you could backup the log & shrink it as necessary.
3
1
350
2019-11-11T15:29:03.617
warehouse_errors
dba.stackexchange.com
182,151
How to give user access permission to dbo and single custom schema?
So I created the following users which owns single schema: [CODE] The userA should be able to access dbo & schemaA schemas, but should not be able to access (i.e select/update/insert/delete...) schemaB data! May be I can do something as below: [CODE] However, is there any better approach for doing this, so the userA ca...
When you create your users userA, userB, userC, they have no permissions at all (unless you grant some permission to [CODE] database role, but by default no permission is granted to public) So they cannot access nothing, even dbo schema, so you have no need to revoke/deny any permission. Then you create schemaA, schema...
1
2
2,343
2017-07-28T15:33:28.943
warehouse_errors
dba.stackexchange.com
1,119,154
"CrashLoopBackOff" while deploying mysql on multi-node cluster
This is my [CODE] file: [CODE] And the following is the [CODE] file: [CODE] When I apply both the files successfully and I check for pods using [CODE] this is the result I see: [CODE] I use [CODE] cluster with the following config on Ubuntu 22.04 machine locally: [CODE] The [CODE] result: [CODE] PS: I also like to know...
This is half an answer for you: PS: I also like to know why it shows READY 1/2? The [CODE] output is telling you how many containers in your pod are "ready". In your Cassandra deployment, you only have a single container. In your MySQL deployment, you have to containers: A container named [CODE] based on the image [COD...
0
2
784
2022-12-30T20:00:35.277
database_errors
serverfault.com
632,948
how to query postgresql database via salt
I need to run a query on a postgresql database in a module I'm writing for Salt. It won't do much, just query a table for a value to determine what version of the software is installed. The docs have a [CODE] function but you can't specify the database, so I'm guessing the query is run against the maintenance db. To co...
Found the code (Google wasn't revealing it) and it simply doesn't exist. I've raised this as a feature request here and am inspecting the code to see if I can contribute. Salt is amazing but it still has lots of these little gaps. UPDATE : after going through the code you can specify the database with the parameter [CO...
1
1
1,304
2014-10-02T03:25:23.673
database_errors
serverfault.com
195,129
Hash join between master/detail tables produces too-low cardinality estimate
When joining a master table to a detail table, how can I encourage SQL Server 2014 to use the cardinality estimate of the larger (detail) table as the cardinality estimate of the join output? For example, when joining 10K master rows to 100K detail rows, I want SQL Server to estimate the join at 100K rows-- the same as...
Assuming that no improvement can be gained by doing something to statistics or using the legacy CE, then the most straightforward way around your problem is to change your [CODE] to a [CODE] : [CODE] If you have a foreign key between tables, you always filter on the same [CODE] range for both tables, and [CODE] always ...
9
6
846
2018-01-11T03:25:27.047
database_errors
dba.stackexchange.com
1,134,180
How to disable or fix OpenStack intercepting DNS PTR queries
I have several virtual machines with Debian/GNU Linux running on OpenStack. When resolving their internal IPv4 addresses I get some strange results: [CODE] Notice several things: [CODE] does not print the answer, but the EDNS [CODE] . Instead there are some strange warnings: Warning: Message parser reports malformed me...
OVN has a flow which redirects traffic destinated to UDP/53 to it's internal DNS resolver, however it does not support EDNS. We reported this issue to canonical support in May and they fixed it upstream: https://github.com/ovn-org/ovn/commit/4b10571aa89b226c13a8c5551ceb7208d782b580 In my case it works when i tell dig t...
0
0
167
2023-06-18T12:34:48.897
infrastructure
serverfault.com
397,969
How can I use SetUID on a shell script to run as a non-root user?
Our company's server is running Ubuntu 12.04 (Precise) and Apache 2. We have a custom, internal web application installed. I have a bash script which pulls any updates to that app from source control to the server. Only one user on the system (the owner of the script file) has the necessary SSH keys to connect to sourc...
You can configure sudo to allow people to run a command as a specific no root user too e.g. in sudoers [CODE] would allow the user user1 to run your app as appuser with [CODE] Similarly [CODE] in sudoers would allow the users in the group somegroup to run you app as appuser with [CODE]
5
5
6,610
2012-06-12T16:40:20.943
infrastructure
serverfault.com
132,223
SQL Server using index scan instead of seek when updating a view that has an INSTEAD OF UPDATE trigger via a cursor
I have a 3rd party application which uses a cursor that updates rows in my SQL Server 2014 table. I am unable to modify this code and have therefore devised a scheme to point the cursor to a view which has an INSTEAD OF UPDATE trigger where I can intercept and fully control the update. I am very aware that cursors are ...
This looks like an oversight. The optimizer cannot generate an apply-style indexed loops join when the update is performed using [CODE] and the target view (schema-bound or not) has a T-SQL instead-of update trigger, regardless of the number of rows, or any other considerations: That shows an example with almost 20,000...
6
9
1,302
2016-03-14T20:04:39.500
database_errors
dba.stackexchange.com
688,329
Remove a drive from a 2-drive RAID 5 array using version 1.2 metadata?
My situation is nearly identical to "How to remove a drive from a non-standard 2-drive RAID 5 array?" , except my 2 TB RAID5 is using mdadm super block version 1.2. According to the best answer , "Because it's a mdadm super block version 0.90, each drive should be usable on its own as well. Since 1.1 and 1.2 put the me...
I went ahead and just tried it, and the answer is YES. A two-disk RAID5 using mdadm superblock version 1.2 will in fact retain its data upon failure and removal of one of the disks. e.g: [CODE]
1
1
158
2015-05-03T23:40:41.853
infrastructure
serverfault.com
81,411
SELECT in federated table is to slow
When i test [CODE] (for test there is 50k rows) it take [CODE] now I have two federated tables with data [CODE] It takes 16 seconds Without joins to federated tables [CODE] 0.0496 seconds. I have few questions 1.Is there any way to optimize it ? 2.when i select from federated table (really i select from main database?)...
If update_date doesn't have an index on it, you need one, by the way. If that's missing, it could make a huge performance difference. With federated tables, you have to remember that the local server thinks of the remote table as if it were essentially a MyISAM table on disk, and it decides how to join a federated tabl...
2
2
8,536
2014-10-29T19:40:46.397
warehouse_errors
dba.stackexchange.com
366,845
What transport protocols can be routed properly over the Internet, other than TCP and UDP?
I recently noticed that my ISP doesn't like routing native SCTP traffic over the Internet, unless it's tunnelled through UDP. A bit of a pain, but I solved the issue by using tunelling. This issue got me thinking - other than TCP and UDP, which transport layer protocols are (generally) allowed to be routed properly acr...
All IP packets should be routed by your ISP, independent of the higher-layer protocol. Of course this will become very difficult with IPv4 packets when they have to use NAT444/CGN/LSN/DS-Lite/A+P/etc when IPv4 addresses run out (depending on where you are this might already have happened). But then they should still ro...
0
3
236
2012-03-06T14:42:33.250
infrastructure
serverfault.com
265,090
How often to upgrade PHP & MySQL
I run a couple of IIS + PHP + MySQL Web servers, that run a variety of web apps (Wordpress, Expression Engine, etc.) I know that I should always keep my web apps updated, but I wonder how often I should be updating PHP & Mysql? It seems that the majority of the updates are bug fixes, stability enhancements, new feature...
I'd agree with the 4/6 week update pattern, as you are hosting an important service, the chance of somebody abusing a bug in either PHP or MySQL is larger than someone hosting a smaller service.
0
1
855
2011-04-30T20:44:29.650
database_errors
serverfault.com
406,559
What would be the minimum-cost reasonable SSL option?
Possible Duplicate: Difference between SSL products I want to ensure that the traffic between the browser and my app is encrypted, and that visitors don't have to click through a scary "unverified certificate" dialog. I'm looking over the SSL certificate options here at namecheap.com , and I'm having a hard time figuri...
You can even have a free SSL certificate for your site that is accepted by every major browser. You can get it at StartSSL . One certificate is mostly for the root domain (foo.com) and one subdomain (www.foo.com) at least at StartSSL I know that for sure but I guess that would be the same for namecheap.com.
0
4
1,188
2012-07-10T21:53:39.763
data_quality
serverfault.com
724,576
Fully altering recipient on Postfix
What I am trying to achieve is that any email coming to [CODE] gets rewritten to [CODE] and delivered to [CODE] . Both [CODE] and [CODE] work for delivering to the alternate recipient. When I read the doc it tells me that with the [CODE] , [CODE] does a full rewrite. However, in practice the email still has the [CODE] ...
From the mail.log, looks like you want to rewrite the email from the remote client. The default setting of postfix rewrite prevent this happened. Excerpt from Postfix Rewriting README Postfix versions 2.2 give you the option to either not rewrite message headers from remote SMTP clients at all, or to label incomplete a...
2
2
1,015
2015-09-24T15:15:20.400
infrastructure
serverfault.com
427,016
ntpd on Ubuntu fails to sync with status 2040
My Ubuntu 10.04 server has ntpd running with default configuration. Problem is it doesn't sync. Syslog shows: [CODE] When I try stopping ntpd and running [CODE] it does work. So I'm guessing the difference lies in the way ntpd is configured to run as a service. This is how ntpd is running as a service: [CODE] Other thi...
Turns out that simply restarting the NTP service doesn't in fact try to sync the clock. That error message is still unclear to me, but nevertheless about 15 minutes after restarting the service the clock is synced properly.
2
1
3,477
2012-09-13T09:50:02.553
infrastructure
serverfault.com
1,151,166
Connect to Google Cloud SQL on VPN
I'm new to Google Cloud, and I am currently writing a script to connect to a PostgreSQL instance hosted in Cloud SQL. My script is very simple: it should connect to the Postgre instance and create a few tables, just a database initialization. I know the script works, because I created a docker image of the script and e...
Posting this as a community for the benefits of others. As mentioned by @John Hanley: Use the Google Cloud SQL Auth Proxy: About the Cloud SQL Auth Proxy The Cloud SQL Auth Proxy is a Cloud SQL connector that provides secure access to your instances without a need for Authorized networks or for configuring SSL.
0
2
101
2024-01-09T12:26:57.903
api_errors
serverfault.com
436,538
How to reset state of exernal services when running Acceptance tests
What are the generic patterns and best practices for resetting state of a database, storage, external service, etc, in Acceptance Tests ? I'm struggling with spaghetti , living in acceptance tests. It connects to the remote DB, executes SQL, Rebuilds buckets through AWS S3 API, reaches into a payment provider API to de...
TL;DR I think you've analyzed your options well; the main takeaway from this answer is that it's perfectly okay to have some logic in your test suite related to setup/cleanup that does not count towards "test logic" in and of itself, and therefore can circumvent the general "tests should not know implementation" good p...
0
2
395
2022-02-07T09:54:50.547
pipeline_ops
softwareengineering.stackexchange.com
13,253
SQL 2008 R2 - Odd timeout issues
I'm having some recent timeout issues in our SQL 2008 R2 server. This started occurring late last week and has since somewhat improved. Issues: When using SSMS and right clicking over a database...menu will delay on showing. Could be anywhere from 2-3 seconds to 10 seconds. When trying to access reports in SSMS, hour g...
Try looking at a couple of things to help determine if you are having issues with the network. Wait Stats ASYNC_NETWORK_IO On The Server Network Interface:Output queue length Redirector:Network error/sec This should always be zero TCPv4:Segments retransmitted/sec & TCPv6:Segment retransmitted/sec When divided over the ...
6
1
2,699
2012-02-16T18:55:32.767
warehouse_errors
dba.stackexchange.com
15,984
Exceptions or Error codes
We are building a web service(SOAP, .Net) which would be talking to (mostly) native clients (windows, C++) and we are wondering what is the best way to communicate errors to the client (e.g. SomethingBadHappened like login service not available or something like user not found) and haven't been able to decide between t...
SOAP has a concept of faults , you can convert an exception to a fault on the server side and on the client proxy the fault can again be converted back to an exception. This works remarkably well in WCF and Java metro stack, cannot comment on native C++ clients. As regards to SOA best practice define one generic fault ...
13
8
3,279
2010-11-01T04:38:18.580
api_errors
softwareengineering.stackexchange.com
809,038
Why is my CUDA GPU-Util ~70% when there are "No running processes found"?
After configuring a system with 2 Tesla K80 cards, I noticed when running [CODE] that one of the 4 GPUs was under heavy load despite there being "No running processes found". Why is this happening and how do I correct this? Here is the output from [CODE] : [CODE]
This nvidia forum addresses the issue. To correct this, enabling Persistence Mode: [CODE] After running this command, here are the [CODE] results: [CODE]
5
5
8,608
2016-09-26T18:56:45.363
infrastructure
serverfault.com
756,014
No Certificates Found on Chrome Android with Comodo Positive SSL and IIS
For software testing reason, I have registered a domain name, set its A record to point to 192.168.1.30 (local PC on my network). I have installed Comodo Positive SSL for this domain on IIS on Windows 10 on this IP. I can access mydomain.com under SSL from any external PC browser, within my interal network (I only care...
It appears that you enabled "Require Client Certificate" option in IIS. Open IIS Manager, select your website, click SSL Settings and switch radiobutton to "Ignore":
0
2
2,091
2016-02-13T15:47:16.717
infrastructure
serverfault.com
911,433
How to replicate existing aws-ec2 instances and s3 data on nearest location/endpoints for improved network throughput?
I am a remote developer working out of India. My client is based out of North America and has his ec2 servers/s3 data kept in the us-west-2 region. The number of hops needed to fetch the data is obviously big and thus wastes a lot of my time during testing, as we are dependent on large data coming in from s3. How can I...
Technically you can. You just need to setup infrastructure clone and copy all data to India region. There are several BUTs: running cost. You (resp. your client) will have to pay for running environment in India. It can be thousands of dollars and maybe it can lead to hiring US-based developer (because your salary + In...
0
1
272
2018-05-09T10:30:19.703
infrastructure
serverfault.com
770,559
httpd.conf (ProxyPass and ProxyPassReverse)
I would like to ask what is the difference between the following configurations below. application original URL/location: http://localhost:8080/MyServerApp/App_1 1st set-up/configuration [CODE] 2nd set-up/configuration [CODE]
The different syntaxes are functionally identical. As stated in the manual : When used inside a [CODE] section, the first argument (of the directive syntax [CODE] ) is omitted and the local directory is obtained from the [CODE] .
2
2
3,772
2016-04-15T10:21:39.600
infrastructure
serverfault.com
448,196
WP HTTP Error: Couldn't resolve host
I keep getting this kind of error in my WP dashboard: [CODE] I tend to believe it's a DNS issue although all was working OK before. What I have done is altering the /etc/hosts file and adding stuff like: [CODE] While this fixes the error say : [CODE]
Put valid DNS server entries into [CODE] . It should look something like this: [CODE] The actual values will be supplied by your ISP, hosting provider or datacenter. Or you can use public DNS providers such as Google Public DNS .
-1
1
1,995
2012-11-13T12:46:57.523
bi_errors
serverfault.com
180,172
Use Natively-Compiled Stored Procedures in disk-based tables
Is it completely worthless to use a Natively-Compiled Stored Procedure over disk-based tables? (SQL Server 2016) Should all the queries inside a Natively-Compiled Stored Procedure point only to in-memory tables? I ask, because I am inserting and updating table T1, but the source for such tasks are disk-based tables.
Natively-compiled stored procedures can only reference: in-memory tables in-memory table variables / TVPs in-memory natively compiled inline TVFs Sounds like what you want is interop, and that can't be done inside a natively-compiled procedure. If it could, you would be discarding much of the performance benefits of th...
4
3
1,325
2017-07-18T21:06:13.107
database_errors
dba.stackexchange.com
19,667
MySQL REPLACE appears to corrupt data
For reference, this issue was posted on StackOverflow.com before coming here. In MySQL I am running multiple [CODE] queries to update hardcoded URLs in a database. Queries look like this: [CODE] The update process goes through every table and every string-based column in the database and runs a query like the above to ...
That does not look like a corruption problem. It might be a collation issue, not with the database, but with the IIS 7 or Moodle. You did not specify if MySQL was running in Linux or Windows, so here it goes: I ran queries to unveil collations and character sets For MySQL 5.5.12 running on a Windows 7 machine, I get th...
2
2
217
2012-06-21T14:57:44.090
database_errors
dba.stackexchange.com
431,759
How to download source, modify source, recompile and build .deb package?
I have to customize my Apache2 suExec module to ensure some special environment variables getting passed through suExec. How to download the source code form Debian package [CODE] , modify [CODE] -> [CODE] , recompile and build a .deb package again to rollout on the production systems? I tried [CODE] but didn't found t...
I tried [CODE] but didn't found the [CODE] within the occurred apache2-* folder. On my Ubuntu 12.04: [CODE] How to download the source code form Debian package [CODE] , modify [CODE] -> [CODE] , recompile and build a .deb package again to rollout on the production systems? [CODE]
1
2
610
2012-09-25T11:53:57.853
infrastructure
serverfault.com
119,829
Small Scale Point-to-Point Fibre optics
I'm faced with a bit of a dilemma with regards to stretching a 100base-T network from building to building. The site is a racetrack (cars) with a control tower, housing race control, admin and a small air conditioned server room. About 200m away, across the assembly area, is a newly built Hospitality Suite. Someone, in...
You're saying the right things, in my opinion. For building-to-building connectivity fiber can't be beat. It will be the last cable you ever need to run between the buildings (provided you run enough). Strngly consider running multiple strands for redundancy and future expansion. I generally recommend running no fewer ...
5
4
356
2010-03-06T10:57:15.757
infrastructure
serverfault.com
761,683
Better routing path to reduce network latency to China
When I am at home (comcast internet infrastructure), the packets go to either the att backbone router or the greatoaks.ca router and then cross the ocean to China CNC backbone router (219.158/16). This path is extremely slow due to high latency and high packet loss (almost >80% all the time). When I am at office, the p...
There's really not a whole lot you can do on a purely routing level: you are dependent on whatever routing decisions your ISP has made. Adding routes to your home router won't do anything, as it generally has only one possible next hop into your ISP's backbone. The only possibility I see, other than swapping ISPs, is t...
0
2
1,706
2016-03-04T20:44:12.503
infrastructure
serverfault.com
306,477
Using PostgreSQL 9.0 and PostGIS 1.5 on Debian Squeeze
I have installed PostgreSQL 9.0 ( [CODE] ) and PostGIS 1.5 ( [CODE] ) from Debian Backports on my freshly installed Squeeze (stable). However, when trying to create a PostGIS-enabled database, I noticed that I’m missing the “enabler script” [CODE] . According to the manual, it should be in [CODE] , but [CODE] doesn’t e...
According to the currently broken blog here ( Googlecache ). There is a repository of postgres9/postgis1.5.2/etc binaries for 64-bit architectures at [CODE] Otherwise, you'll probably need to compile and install postgis from source against 9.0 yourself, which will need the headers from the [CODE] package.
3
3
1,685
2011-08-30T16:11:39.237
database_errors
serverfault.com
854,409
AWS EC2 - CentOS 7 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I have an EC2 Instance with CentOS 7, after rebooting and stop - start, the instance cannot run anymore. I got this error, what cause this and how to fix it, thank you: [CODE] ===== More complete log [CODE]
I'm betting your /etc/fstab doesn't list a root device any longer.
4
0
2,237
2017-06-07T11:24:30.940
infrastructure
serverfault.com
358,697
Resque(Redis) On EC2 Micro Replciated to 3 availability zones
I'm going to build a failover setup for my resque jobs system wich uses Redis as a queue. The idea is to put 3 redises in different availability zones on micro instances and replicate them. Also would be nice to use ELB/tcp for balancing and excluding failed instances(If its possible). Does any one has such experience?...
Amazon announced support for Multi-AZ support for Redis on 2014-10-24, so this you can achieve through the AWS console. Regarding your other question about hosting your own EC2 instances with Redis, that is fully possible and will probably be cheaper. However, you will miss out on a lot of features (e.g. read replicas,...
2
0
505
2012-02-10T10:24:11.487
database_errors
serverfault.com
214,572
Subquery and subselection for Count/Number doesnt work
for example, for company (3) and his partners, I need the number of events with payouts. But i get only the number for one partner, im my example i have i have 3 tables (t_company, t_partner, t_event, t_payout). t_company = the firms t_partner = partner of companies t_event = Events of Companies and Partners t_payout =...
Thanks for your support, now i found my own solution: [CODE]
-2
0
59
2018-08-10T07:19:59.853
warehouse_errors
dba.stackexchange.com
1,045,537
"Password never expires" greyed out?
I have domain users in an Azure AD DS. I need to set some of those users with passwords that don't expire. When I go to "Active Directory Users and Computers" on a machine in the domain, the option "Password never expires" is greyed out. When I go to office 365 and check Password expiration policy, it is configured to ...
You may need to Create a Fine Grained Password Policy First, make sure you have already created Management VM: https://docs.microsoft.com/en-us/azure/active-directory-domain-services/tutorial-create-management-vm You can set the password policies in the domain by opening the "Active Directory Administrative Center and ...
0
1
2,058
2020-12-09T09:18:10.513
infrastructure
serverfault.com
509,267
nagios servicedependency wildcard not expanding
to reach customer-es-prd-dobb1, the packets must traverse a (client based) vpn via the host "cust-client-vpn". The intermediary host has a check named "customer-prod-vpn" which monitors the health of the particular connection. The goal is to make the hosts services in the customers network all depend on a specific serv...
' ' is only a valid wildcard when not using regex (use_regexp_matching=0). A wildcard in regex is at least . I went with .* and use_regexp_matching=1
2
3
1,570
2013-05-20T14:22:42.133
infrastructure
serverfault.com
377,788
Entity Framework - extending OR injecting services into DB Context
I fear I'm asking a somewhat silly question, but I'm now completely lost as to which principle I should follow. To my understanding - in terms of Single Responsibility Principle it's best we don't tweak OR inject services into OR introduce extra fields in DB Context. Simply because the purpose of DB Context is to provi...
What you are attempting to do, inherit DBContext and add extra logging functionality with overridden methods is architecturally fine, but unusual and potentially over complex, simply because its DBContext rather than one of your own classes. I would not advise anyone to try to implement their own DBContext simply becau...
2
2
1,364
2018-09-01T16:36:42.040
api_errors
softwareengineering.stackexchange.com
821,809
Keepalived send gratuitous ARP periodically
Is there a way for a keepalived to send gratuitous ARP periodically? We had following situation: switch failure (VLAN setup) keepalived failovered to backup instance backup instance sent gratuitous ARP but Cisco ASA device didn't got it (because of switch failure) when switch was recovered (few minutes later) VIPs were...
keepalived versions 1.2.20 and above support following config settings regarding gratuitous ARP, vrrp_garp_master_refresh is what I need. [CODE]
10
10
21,931
2016-12-20T13:09:09.413
database_errors
serverfault.com
206,514
Oracle 11g Fast Add Column Taking 11 Hours
To the best of my understanding, a new feature of Oracle 11g is the ability to add a not null column with a default value very quickly as it would no longer auto-update every row in the table with the default value in the new column. However, the following command takes ~11 hours on a table with ~1.2 billion rows on an...
Ok, I sacrificed one of my 10.2 sandbox databases for a good cause, and upgraded it to 11.2. As I suspected, the above DDL optimization does not work with compatible parameter still set to '10.2.*'. After increasing compatible parameter, it works as intended: [CODE]
1
3
2,598
2018-05-11T17:58:35.473
database_errors
dba.stackexchange.com
846,025
NGINX server_name field?
I want to know what is the usage of server_name field in the nginx i went through the documentation but i didnt understand the exact usage [CODE] this means when i try [CODE] in any browser runs in port 143. but when i tried [CODE] it is showing the page cant reached. Please help me in understanding it Thanks
First of all [CODE] will not work in browsers because default HTTP port is 80, so [CODE] actually is [CODE] . NGINX will reject your connection to unregistered host. Check this steps please. Ensure you have in your hosts file (local DNS): 127.0.0.1 www.example.com Ensure you have specified website root in nginx server ...
1
1
660
2017-04-23T06:34:26.063
infrastructure
serverfault.com
221,235
Simple Central Storage for HA mail server
I will have 2 Postfix servers. One will be a backup of the other. What is the easiest method to provide central storage to both of these boxes? My infrastructure is very simple: Just a lot of Xen hosts, so there is no SAN or anything. Each Xen host does have RAID1 though. I don't mind mounting NFS shares on each of tho...
It might be an idea to have a look at setting up DRBD with NFS. At it's most basic think of DRBD as RAID 1 across two machines, however you can only read and write to one machine. You can then use heartbeat or similar to make sure that only one DRBD node is handling NFS at a time. This is a gross simplification, but th...
0
1
284
2011-01-11T19:31:26.183
database_errors
serverfault.com
928,236
dns lookup with multiple ip to one name
I have a server that monitors other systems across two VLANs. It is connected to them by using two NICs. nslookup from a client on either VLAN reports the IP from network B but not A. Is there something I can do so that it favors one IP instead of the other or even not have nslookup report network B's address and only ...
Possible solutions: You could force your monitoring to IP and not DNS/Hostname If your application reads it; update your /etc/hosts run your own DNS server with your custom records or a split horizon But we would need more information; what monitoring system are you using?
0
0
1,121
2018-08-27T23:45:22.470
infrastructure
serverfault.com
393,243
filter body of incoming email in procmail
I've encountered some problem when configuring my linux machine. We are configuring fetchmail and procmail in order to receive the email from the external mail server.The problem start when we want to get the body content of the email by using "pipe" command in the procmail recipe. [CODE] We discover that we cannot sep...
You could try hack this with text processing tools, but the best option is to use something which actually parses it as a MIME message. Python's email module can do this, so you could use something like the following to output the message text. (This does assume that there is a text/plain representation in MIME message...
-1
2
2,391
2012-05-28T07:46:26.990
infrastructure
serverfault.com
958,487
Two application i686 vs x86_64
Which one take precedence? RHEL 7 server For instance if i have device-mapper-libs.i686 and device-mapper-libs.x86_64 which one runs? Do they both run? Could this cause an performance impact?
Those packages are just libraries, neither run by themselves. You will probably have one or more applications that are linked against those libraries; generally on RHEL7 the applications will be linked against the 64-bit version of the libraries, the 32-bit version tends to be there for backwards compatibility. You can...
0
2
225
2019-03-15T17:22:18.470
infrastructure
serverfault.com
249,191
Textwrangler -- Trying to run a xmllint command
When I run: [CODE] I get /private/var/folders/Aj/Aj9m3c8JGnmkccHY2o3lKE+++TI/Cleanup At Startup/Tidy XML.sh.S:1: parser error : Start tag expected, ' ^ -:1: parser error : Start tag expected, ' Something is very wrong. :P Any ideas?
Try this instead: [CODE]
0
2
1,355
2011-03-18T22:51:08.490
infrastructure
serverfault.com
1,122,156
Reloading /etc/ld.so.preload without starting a new shell
I'm adding a preload library using [CODE] . My problem is, it doesn't take effect until a new shell is created. This also happens if I remove the preload library. I get error messages for the missing library until I load a new shell. So, my question is, How can I force a reload of [CODE] ? I looked a the man pages and ...
When you add a library to the /etc/ld.so.preload file, it specifies that the dynamic linker should load that library before any other library. This means that when you execute a program, the specified library will be loaded before any other libraries that the program depends on. However, once the preload library has be...
0
1
2,111
2023-02-06T20:55:04.783
infrastructure
serverfault.com
928,369
SSSD: How to force users in different groups use different shells
I have an Active Directory working as id, access and auth provider for my CentOS 7 servers using sssd. I have been following this post in order to have users from different groups use different shells as they login but I have some issues. Here is my [CODE] file: [CODE] The idea is when someone from dev group logins, th...
After a long search and with the help of @ChristopheDrevet-Droguet with the filter [CODE] as a base, the only thing missing was a tree of objects to parse, I mean, in which the user could be found. The sssd should look like the following in order for this to work (at least for me): [CODE]
1
0
5,322
2018-08-28T17:56:10.513
api_errors
serverfault.com
398,359
No RDP after Server 2008 R2 SP1 install
I've painted myself into a corner. I've just installed Service Pack 1 on a Windows 2008 R2 server that is hosted in a remote datacentre with no possibility of logging in with a 'real' screen and keyboard. SP1 seems to have broken Remote Desktop protocol (RDP), I get to the log-in screen, log in and briefly see the Welc...
Okay.. had some coffee and thinking a little straighter. Deleting previous responses and providing better info: The original release of the update from KB2667402 causes this issue. It notes in the known issues that applying SP1 after the update causes RDP issues. The patch was re-released to address and correct the RDP...
3
4
4,191
2012-06-13T16:17:04.090
database_errors
serverfault.com
273,282
IP Filter keeps blocking connection
I'm trying to connect from a web app to another web app using the WCF.NET NET-TCP protocol. This net.tcp protocol is enabled in IIS and is using the port TCP 808 in my case. I've configured IP Filter in the server, but it blocks the connection between both applications unless I completely disable IP Filter. This is the...
I've found the solution. If Any IP -> My IP is the ingoing rule, then I had to add the outgoing rule too; which would be My IP -> Any IP. Details: [CODE] Hope this helps.
0
0
824
2011-05-24T17:11:37.547
infrastructure
serverfault.com
27,888
What can I do to speed up this SQL Query?
I've created this SQL query with the help of @Dems :-) Here is some detail, I tried to make a SQLFiddle but I kept getting errors with my variables... This works in Sql Server 2008... My question is, how can I make my query faster? I know I'm doing a number of things wrong here (repeated nester queries), I'm hoping to ...
So if you've got it down to 23 seconds and are hoping for better than 16 seconds... Consider an index on #sequenced(EventTime) and/or an index on Events(FiringTime) It might be worth a test.
5
1
4,931
2012-10-30T14:58:04.670
database_errors
dba.stackexchange.com
12,538
Predictive Analytics on distributed systems vs standalone system
I have somewhat philosophical question regarding performing predictive analytics on distributed systems (such as hadoop). I am no expert on this subject so maybe other folks who have more advance knowledge on this subject can enlighten me. Here is where I am getting confused: How can a statistical model (such as linear...
There is nothing special about building something across many machines, or Hadoop, so maybe we can take that out of the question. One general reason is that, even if the model building process were worse, building on more data could result in a better result. You're asking why building many models on subsets of data co...
0
1
277
2016-07-01T18:51:04.507
hadoop_errors
datascience.stackexchange.com
364,572
Windows 7 boot manager editor as an option in boot manager
Is there any boot manager editor that I can run in DOS (possibly) before the system will load and edit boot manager itself? I would like to delete, edit VHD's and other files, copying them from the network, changing the names and adding to the manager)? Are there any other boot managers that I can use to boot up Window...
Boot Configuration Data (BCD) for Vista and later is stored in a file "\boot\BCD". This file is on active partition on MBR disks (on system partition on GPT disks). You can use any registry editor to edit BCD but: the device element for a VHD is of type LocateExDevice - a complex structure consisting of two parts: a) d...
1
1
341
2012-02-28T17:05:40.257
infrastructure
serverfault.com
861,644
Apache server is rejecting request
I have a server running Ubuntu 16.0.4 with Apache 2.4.18 which seems to be rejecting requests from certain clients. I have another server with Apache 2.4.7 that accepts the same request w/o error. If I run the request thru a proxy like Runscope I get back a result. If I request just a simple php file I will get the err...
I have the same behaviour on a batch process that make a download, csv file, from an external apache server with ssl, after thay update from 2.3 to 2.4 version and they disable some old encryption types. The only way to get back to work was upgrading the openssl version of the server that make the ssl connection in tha...
0
0
640
2017-07-11T22:08:44.003
infrastructure
serverfault.com
471,550
[Shift]+[F1] not working in putty telnet sessions
Update: I configured putty (Windows 8; x64) to send exactly the same data as an old 16 bit Hyperterminal (Windows XP). I tested it using Wireshark. But still the Software on the Suse Server does not respond correctly to my typing of Fn keys. What could possibly be wrong? Wat am I missing here? I just switched from a 16...
try following: Configuring PuTTY
3
1
6,908
2013-01-22T22:17:38.243
infrastructure
serverfault.com
928,533
Connection reset by peer while using apache as reverse proxy
I've installed Transmission daemon on machine #0(Ubuntu 16.04.5, native), and Apache2(Apache/2.4.18) on machine #1(Ubuntu 16.04.5, on XCP-NG 75). Apache is now reverse-proxying transmission for adopting TLS to transmission rpc. Wherever I connect to transmission via apache, it continues returning 'Connection reset by P...
I've (finally) joined the StackExchange community to help you, as nobody has answered yet. I was facing the same issue today, and it looked definitely related to the Apache SSL info we could notice within verbose logs : [ssl:info] [...] The timeout specified has expired: [...] SSL input filter read failed. So a "soluti...
2
2
11,159
2018-08-29T13:55:07.553
infrastructure
serverfault.com
768,962
MySQL stopped running on Ubuntu: Can't change to run as user 'mysql'. How to save data?
Today out of the blue stopped running MySQL on a Ubuntu server. When I try to log in there, I get this error: [CODE] Inspecting the error: [CODE] I tried [CODE] : [CODE] I also tried: [CODE] and [CODE] If I try to list all users in the system: [CODE] I also checked if I am not running out of space on the server: [CODE]...
Probably this might help others. [CODE]
2
3
10,892
2016-04-08T07:32:07.963
database_errors
serverfault.com
200,588
Windows XP cant join Server 2008 Domain
I've setup a new Server 2008 box with a new domain. I've done all my testing with a Windows 7 laptop which is being deployed with the network. It joined the domain fine, and worked as expected. Now for the deploy, I've got to join a couple of XP boxes to the domain, but when joining, they come up with [CODE] , details ...
That is weird. How about... On the XP machine; [CODE]
2
2
2,793
2010-11-10T23:56:42.627
infrastructure
serverfault.com
238,825
PostgreSQL Trigger to override insert on table with inheritance
We have a table [CODE] that is partitioned by time into child tables like [CODE] , [CODE] . We do this using a [CODE] trigger on the parent [CODE] table to insert into the correct child table and then return [CODE] to abort the pipeline so it is only inserted into the child table, though (you guessed it), this makes in...
You could possibly use [CODE] or [CODE] to get the last value from the sequence. or use [CODE] to get the id before the insert and then insert that value explicitly (instead of allowing the default value). The third option is to ignore that column and instead use a natural key. That you are able to get the ID by doing ...
0
0
1,063
2019-05-22T21:13:58.390
database_errors
dba.stackexchange.com
74,747
What database should I use?
I am writing a log analysis program in bash. As part of it, I am compiling a list of known errors, so that I can search and reference those errors as part of the known list. I originally was going to just write them in a .sh file and use source to reference it. Then I realised that I have hundreds of thousands of error...
All I can offer you at this point are my deepest sympathies! Doesn't the person/company who/which is getting you to write a tool under this mind-boggling constraint realise that you'll have to do far more work for a far lesser return than if you used (as you say) Python or Perl or even Brainfuck :-). Anyway, what you w...
0
1
110
2014-08-23T15:03:42.567
pipeline_ops
dba.stackexchange.com
707,021
IPv6 Vs IPv4 for geolocation
disclaimer at first : this question is from a noob on IPv6 topic. Our web server initially had IPv6 active and Nginx not configure properly so the users with IPv6 got an error and website did not load. After configuration of Nginx to listen on IPv6, website loads properly but for the users with IPv6, the geolocation fa...
After configuration of Nginx to listen on IPv6, website loads properly but for the users with IPv6, the geolocation fails (we use Maxmind free database), they are then all Geolocated in USA. Make sure you are using the correct database. Some geoip offerings have seperate databases for IPv4 and IPv6 (AIUI with maxmind t...
0
1
896
2015-07-20T11:13:58.893
infrastructure
serverfault.com
154,651
VisualSVN Server , Windows 7 and Apache Problem
I am running Visual SVN Server(with Apache) on a Windows 7 computer and network. After about 15-20 minutes of my first commit/update, I am unable to access the repository via Tortoise SVN. The error message I get is: OPTIONS of " https://jason/svn/repository1 ": could not connect to server ( https://jason ) Restarting ...
Try setting up VisualSVN to use port 8443. Sometimes when you are using two web servers on the same machine there are port conflict.
3
1
1,094
2010-06-24T23:19:21.010
infrastructure
serverfault.com
820,706
On Invantive Query Tool: the remote server returned an error: (407) Proxy Authentication Required (http://proxy.acme.com:8080/)
When installing the Invantive Query Tool I need to configure a license. Version in use is stable-20161021-824. On 'Use free license' I receive the error: The remote server returned an error: (407) Proxy Authentication Required ( http://proxy.acme.com:8080/ ) How can I configure the license validation such that the lice...
The proxy credentials used in Internet Explorer seem not to be used using [CODE] method in Microsoft.NET. The possibilities are: Change the proxy such that the User-Agent 'Invantive' has access to all sites. Or whitelist specifically the following: customerservice.invantive.com licenseservice1.invantive.com licenseserv...
1
1
100
2016-12-14T16:35:47.663
data_quality
serverfault.com
764,837
Why is ZFS on Linux unable to fully utilize 8x SSDs on AWS i2.8xlarge instance?
I'm completely new to ZFS, so to start with I thought I'd do some simple benchmarks on it to get a feel for how it behaves. I wanted to push the limits of its performance so I provisioned an Amazon EC2 [CODE] instance (almost $7/hr, time really is money!). This instance has 8 800GB SSDs. I did an [CODE] test on the SSD...
This setup may not be tuned well. There are parameters needed for both the /etc/modprobe/zfs.conf file and the ashift value when using SSDs Try ashift=12 or 13 and test again. Edit: This is still a virtualized solution, so we don't know too much about the underlying hardware or how everything is interconnected. I don't...
12
6
5,588
2016-03-19T20:53:52.893
infrastructure
serverfault.com
879,200
Authentication of a AD user in SQL Management Studio
I'm struggling couple of days with the following issue. I'm want to let people, that are a member of a AD authentication with their username/password on SQL Management Studio 17.x but I cannot use Windows Authentication, because the computer they are working on is not joined in the domain. There is a option for "Active...
You do not need to have all machines on the same domain for Windows authentication to work. Go into your Windows credential store. On Windows 10 that's under Control Panel, User accounts, Manage your credentials. Add a new Windows credential where the network address is hostname:1433 (or whatever port you use), the use...
3
1
12,912
2017-10-19T04:20:17.980
api_errors
serverfault.com
954,489
SSL routines:ssl3_read_bytes:tlsv1 alert decrypt error on mutual authendication
I have configured JBOSS 5 with [CODE] Client contains, server CA certs and there own certs(JDK 1.8). Server contains, client CA certs and there own certs(JDK 1.6). For this case both CA's are different, when we are trying to communicate to that server and getting [CODE] I have no clues what was the exception it is ? Du...
The issue is probably (estimate based on OpenSSL output) that used algorithm mode is not supported by other side, or is considered deprecated/breached (i.e. TLSv1 is considered deprecated for more than a year). I would recommend to capture handshake with tcpdump/wireshark. Since it seems that handshake is failing, you ...
1
2
11,245
2019-02-18T13:05:32.117
infrastructure
serverfault.com
312,468
How to convert data separated pipe to rows?
I work on [CODE] I have table name [CODE] data as below my issue here How to convert [CODE] data separated [CODE] to rows . meaning every [CODE] will have only one [CODE] per row . [CODE] my expected result will be as below : suppose i have two columns have pipe so how to modify query to handle two columns have pipe on...
The problem here is that you have violated 1NF by storing multiple values in a single tuple. You are going to have to parse this into rows. You can use the built in STRING_SPLIT for this. [CODE]
-3
1
1,326
2022-05-23T00:23:16.840
warehouse_errors
dba.stackexchange.com
506,237
Ubuntu Samba share not writable by Apache on another machine
I have a basic shared folder on a ubuntu desktop (VM) that I want everyone to have 100% read/write to it. I can set this up, and use a mac to connect and mount the folder but logging in as the ubuntu user. MAMP is running on the OSX machine (same machine). The volume is mounted at /Volumes/uploads on the Mac. When I tr...
It was a conflict in paths. uploads was already created under Volumes and it was uploads-1 - but of course the name is "uploads" in finder. Note to all: Always check your paths!!
1
1
191
2013-05-09T02:09:36.467
infrastructure
serverfault.com
13,540
Excel VBA: convert R1C1 notation to A1 notation
issue I'm a "data tester" and I test websites by writing SQL queries then using Excel to process the data and validate data during test execution Sometimes we want to use R1C1 nontation in our VBA (e.g. 478,9) but usually we prefer A1 notation (e.g. I478) Also, range objects return numbers (e.g. ActiveSheet.UsedRange.C...
solution use the Excel Address function
2
2
2,774
2015-06-19T17:39:28.397
data_quality
sqa.stackexchange.com