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
319,122
How to traverse "linked list" like structure with parallel nodes
I am working on a signal processing project that allows for parallel processing on data streams as well as inputs and outputs to and from multiple endpoints. The signal chain is broken down into "endpoints" and "nodes". Endpoints can be declared either input or output, and nodes are anything in between. The two types o...
This is a simple directed acyclic graph , which means that evaluating the nodes shouldn't be terribly complicated. The algorithms mentioned in the "Topological sorting and recognition" section of the Wikipedia article allow you to break the graph evaluation into a linear sequence of steps. Also see this answer .
0
2
1,231
2016-05-21T06:42:37.977
api_errors
softwareengineering.stackexchange.com
135,192
How can I create 3 tables with references On SQL Server
I started using SQL Server recently and I think this is simple to resolve. I need to create one table with a country list, and two tables that will use the country list in a column. Here is the code: 1 - (uf to log a country list) [CODE] 2 - the resumed table that will use the list. [CODE] 3 - the resumed table that wi...
I've re-written your [CODE] statements like this: [CODE] Always specify the "schema" of the table; in the above example that is [CODE] - which is the default schema. Specifying the schema name removes confusion about what schema will contain the table. I've renamed the [CODE] column in the [CODE] table to [CODE] to rem...
2
3
3,363
2016-04-13T17:07:21.873
database_errors
dba.stackexchange.com
205,389
How to detect root cause of problem or bug
Often in coding, I find it very slow and difficult to detect the root cause of a bug and sometimes I end up going to wrong point in my code. It's painful. I know that to detect the root cause of a bug is a very important skill for programmers. Does anybody have a trick or technique to suggest a good way of finding the ...
Ask why a lot, and keep asking it until the problem is clear. Why did the code crash? Because we got a divide by zero. Why did we get a divide by zero? Because X was zero. Why was X zero? Because it was passed in by function foo. Why did foo pass in a zero? Because it was set to the total number of relationships that t...
5
21
2,182
2013-07-19T09:58:58.440
api_errors
softwareengineering.stackexchange.com
31,100
Pretraining neural net example in Aurelien Geron's book
I am testing the pretraining example in Chapter 15 of Aurélien Géron's book "Hands-On Machine Learning with Scikit-Learn and TensorFlow". The code is on his github page: here - see the example in section "Unsupervised pretraining". Pretraining the network with the weights from the previously trained encoder should assi...
[NOTE: I have not myself worked through Aurélien Geron's tutorials, but I have read the book] On an intuitive level, I can persuade myself that the training would actually be slower for a pretrained model. In other words, it could make sense that the rate at which a error decreases (or accuracy increases) might be lowe...
1
1
133
2018-05-02T02:09:59.287
data_quality
datascience.stackexchange.com
132,061
Need Help getting perl module DBD::mysql installed for bugzilla on RedHat
Hi everyone I am having some issues getting Bugzilla setup, I have the software on the server and am trying to get the pre-rec's setup. I am using RedHat 4.1.2-42. I have all of the required perl modules save one:DBD::mysql When I try: [CODE] I get the following response(this is only an excerpt): [CODE] I then tried th...
It might be worth trying to install from an RPM instead of via CPAN: [CODE] This should resolve any missing dependencies that you have.
1
2
2,650
2010-04-13T18:32:41.350
database_errors
serverfault.com
51,386
MySQL Query Optimization - Indexes & Joins 12 million+ records
I'm running the following query: [CODE] Right now it takes at least 15 mins to execute. Both track and track_title have about 12 million records. Album and artist have at least a million each. Can this be sped up with better indexes? I've been playing with a combination of indexes in order to speed up the queries but i...
With the disclaimer that I'm not specifically a MySQL expert: My guess is that either it's failing to whittle down the huge number of rows that result from such as huge join, or it can't index the title well because the LIKE starts with a wildcard. Testing the second is easy, see if it runs better without a leading wil...
1
2
473
2013-10-11T17:42:57.230
database_errors
dba.stackexchange.com
569,076
Recreating CentOS environment with Vagrant
I have a Vagrant and CentOS related question. I'm trying to replicate a CentOS server which uses WHM/cPanel for hosting. Each site on the server is hosted in [CODE] . This means with Vagrant I need to have a synced folder which is something like: [CODE] Replicating this environment with Vagrant becomes an issue as the ...
It seems that the vagrant user is created at the time that the Vagrant box is created. In my case, as with a lot of people I assume, i'm using a pre-built CentOS box from http://www.vagrantbox.es/ . This box creates the vagrant user, and defines the location of the vagrant user's home directory - e.g. [CODE] - this mea...
0
2
583
2014-01-22T15:15:07.067
pipeline_ops
serverfault.com
622,138
Website does not advertise HTTP in its NPN Extension spdy
I have configure Apache with SPDY (and PHP-FPM). Everything works fine. However, spdycheck.org shows me following error: HTTP Over SSL Not Supported! This website only supports SPDY over SSL, and does not advertise HTTP in its NPN Extension. Web browsers without SPDY support may not be able to access this site It's imp...
False alarm! The issue was with the version I had compiled: https://github.com/eousphoros/mod-spdy/issues/19
1
0
619
2014-08-18T10:26:58.537
infrastructure
serverfault.com
230,942
MariaDB - Epoch date comparisons
On MariaDB 10, I'm trying to work with dates, particularly whether the current date is within 7 days of a date stored in the database. A longtext column holds an Epoch datetime, which I convert into a date-only using [CODE] , and it returns nicely like 11/03/2019 (UK time formatting). But if I try to use it in datediff...
Using CAST to DATETIME got the database engine to recognise that it was a date, and then it was simpler from there. [CODE] Thanks to danblack
-1
0
432
2019-02-28T11:00:00.103
database_errors
dba.stackexchange.com
162,667
TSQL help my feeble mind grasp Pivot/Unpivot on two columns
I've been trying to wrap my feeble mind around this one for some time, but I am having difficulty. I have looked at a few other examples like this SE.DBA answer, but I am having difficulty applying it to my exact situation. I do not care if the solution uses PIVOT/UNPIVOT or Cross Apply. I am using GROUP BY because the...
The [CODE] way of doing this would be: [CODE] The results: +---------+---------------+---------+----------+ | Payroll | Item | Tax | Gross | +---------+---------------+---------+----------+ | 1 | FIT | 300.00 | 60000.00 | | 1 | Employee_FICA | 450.00 | 60000.00 | | 1 | Employer_FICA | 150.00 | 60000.00 | | 1 | Employee...
1
2
384
2017-01-30T18:35:32.490
warehouse_errors
dba.stackexchange.com
55,007
Using HTTPS with BITS (Background Intelligent Transfer Service)
I am writing a client application that needs to send a file via BITS to my server. I have everything working for the most part, but I can't get the BITS connection to operate securely with HTTPS. Right now I'm just using basic authentication through HTTP, so the login is being sent cleartext--which is not optimal :-) I...
From MSDN Using Certificates for Client/Server Authentication In secure client/server communication, clients and servers can use digital certificates to mutually authenticate each other. BITS automatically supports certificate-based server authentication for secure HTTP transports. To provide BITS the client certificat...
1
1
1,472
2009-08-17T13:39:40.617
api_errors
serverfault.com
128,208
Does apache/PHP has overflow problem if the developer doesn't tweak it at all?
Is apache/PHP self secured so that developers don't need to care about it?
Despite what sysadmin1138 says, there are relatively few security defects in either apache or PHP. However there are a huge number of advisories issued regarding applications developed using php. It's not that PHP is intrinsically flawed, the problems arise because: 1) PHP is very easy to get started with as a programm...
0
1
78
2010-03-31T18:09:00.470
infrastructure
serverfault.com
998,504
Logged into Ubuntu as domain user, asks for first local user password on admin tasks
I have an odd issue that happens on all of the Ubuntu machines I join to my Samba4 domain. When installing, I create a user named [CODE] and then use that user to get the domain going. Everything goes smoothly after domain join, and I can login with [CODE] and [CODE] to the machine. However, when logged in, if I try an...
Gnome uses PolKit for authorization checks. By default [CODE] and the group [CODE] is considered as admins. You just need to add [CODE] to the [CODE] group: [CODE]
0
0
833
2020-01-10T18:50:13.013
infrastructure
serverfault.com
587,964
Could Certificate Authorities have been compromised by the Heartbleed bug?
OpenSSL is widely used and was affected by the Heartbleed bug for years. A lot of services were impacted and everybody is trying to recover from this bug by updating there system, generating new certificates, revoking the old ones, and potentially rotating other credentials that could have leaked. I guess some CA are u...
Could CA have been compromised by the Heartbleed bug? Might a CA have been compromised? Maybe. But probably not. Any CA worth its salt keeps its signing keys on separate systems from their web front-end systems which might have been vulnerable to heartbleed. Communications between these key signing systems and the "fro...
0
4
163
2014-04-10T03:31:02.310
infrastructure
serverfault.com
34,411
How to Reduce the Technical Debt of 1000 manual test cases?
I want my team to move away from manual testing as much as possible. As part of that I want us to automate around 1000 manual test cases. Some of these tests are for legacy features, which don't even have dev owners. There is no one in the dev team who understands what these tests do and if we even need them. Many of t...
There are a number of considerations. You should avoid thinking of 'x number of test cases' means 'x number of automated cases'. As attractive as automation is, it is very limited in what it can do effectively, reliably and in a timely fashion. Some things it will be able to do better, others not as well. Humans do not...
7
6
233
2018-06-24T01:24:24.633
data_quality
sqa.stackexchange.com
27,894
PEAR Mail problem on Ubuntu
I'm having trouble using the Mail package from PEAR. I have [CODE] installed ( [CODE] used toghether with [CODE] ) [CODE] phpinfo() says: include_path .:/usr/share/php Everything seems fine, but when I try to [CODE] I get: Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or d...
Turns out it was a [CODE] issue, which had the path [CODE] instead of [CODE] . I got it when I tried to [CODE] and got an open_basedir error. Changing it in [CODE] solved my problem.
0
2
6,445
2009-06-18T09:21:28.890
infrastructure
serverfault.com
204,212
Tunnelblick cannot load private key file
I got a certificate from my network administrator and the passphrase for it. Put everything in the Tunnelblick configuration folder, but always get an error: [CODE] Everything was copy&paste and it works on a windows machine. How can I get this to work?
In config file, try commenting out: [CODE] and add: [CODE]
1
1
7,776
2010-11-20T12:36:27.453
infrastructure
serverfault.com
321,015
Multiple access level modes for accounts on linux servers
When currently working on a linux server (I sysadmin 2) I have the 3 following use-cases: End-user use (e.g. personal or normal project groups) User problem solving and low-risk changes (e.g. Apache vhost changes) Real sysadmin work (e.g. configurig daemons) We have 1 user account for everything (which is configured wi...
You can use [CODE] to force people to change to an elevated user when doing things in category two. Each user would have two accounts: [CODE] and [CODE] . Assign the needed permissions to [CODE] the the person can just do [CODE] to gain access to that account and do their admin work. For class 3 functions I would say d...
2
2
1,770
2011-10-12T23:57:26.320
infrastructure
serverfault.com
925,912
Powershell script Import Users from CSV, add to group, with Success/Fail logs
I am attempting to create a powershell script to maintain users. Current environment. Office365 with ADFS, AD and on premise exchange server 2010. All integrated together. For the current problem, I am trying to import a list of users from a csv, and apply them to a specific distribution group, in either exchange or Ac...
You have a single quote that is quoting the "-like" comparison operator with the extensionattribute in the Get-Aduser Filter. You need a double quote before the -like, and remove the double quote after the single quote in the comparison: [CODE]
0
0
967
2018-08-11T01:18:14.633
infrastructure
serverfault.com
964,632
SSRS shows blank page for 1 user
We have a ssrs portal for our clients. they use sonicwall to gain access to our network. I have one external client/user that can access the vpn, but when he tries to hit the server he gets the spinning circle. He notes the tab title is 'Reporting Services Web Portal'. If I go to the portal home page and hit F5, i note...
As his logging work on your side, as stated in comment, the next step would do to make a packet monitor from the sonicwall to identify what port the customer block, so he could contact his support to make them open them. As you can't connect to his computer, ask him to connect, check the VPN IP the client got, and make...
1
1
736
2019-04-25T19:28:11.510
bi_errors
serverfault.com
673,248
How to remotely manage 2012 R2 print server
We have a Windows 2012 R2 server, that is running print services and hosting printers. I am using the management console snapp-in on another 2012 R2 machine to try and access the server remotely and manage the printers. When I add the remote server to the snap-in, it does not show me any of the installed printers or an...
So I removed the snap in from the console, and re-added it with the print server listed during the add. This solved it. I suspect the issue was related to trying to add the print server to the snap-in, after the snap-in had been loaded into MMC
1
0
1,337
2015-03-05T12:44:51.410
infrastructure
serverfault.com
161,648
Manual LVM Clustering or formatting leading to Input/Output Errors
I'm trying to use LVMs on multiple machines at once without the use of CLVM. My reason for doing so is that I've found CLVM rather unstable and a pain to get working in the flexible way in which I want it. Given that I know which servers will be connected to an LVM at any one time I've taken to automatically refreshing...
Turns out that this is a combination of partitioning and my own cluster solution. One must remember to deactivate all lvs in a volume group when 'unplugging' an lvm from a cluster server, else the devices will still 'exist' without actually being able to be read, as it's no longer attached to the server. However, the p...
0
0
1,326
2010-07-18T23:47:32.703
infrastructure
serverfault.com
466,656
DNSMasq is slower than my ISP at returning cached DNS entries.
I have DNSMasq set up on a relatively idle Pentium D 3.4Ghz Debian Linux machine. When I run dig queries locally, the second result is always 0 ms. When I run dig queries on any other machine on my network, the cached response time is a constant 35ms. This is in spite of the fact that I get LAN ping times back -- under...
I ran into the same issue with my local dnsmasq instance being slower than opendns and many other ISP provided DNS servers. The following finally worked for me resulting in a massive improvement and my dnsmasq being 3X faster than any remote DNS server. Adjust the cache-size parameter in /etc/dnsmasq.conf. I have set i...
6
2
6,694
2013-01-13T17:30:10.317
infrastructure
serverfault.com
299,618
Vacuum on large table sometimes takes very long
In a PostgreSQL 11 database server I have a large table (932 million rows, 2150GB, not partitioned) into which I insert about 2-3 million rows every night with a batch job. The table was created with [CODE] . After the insert I perform a [CODE] on the table, which usually takes about 30-40 seconds. However, once every ...
My theory on what is happening here is that for an INSERT only table, vacuum only needs to visit the parts of the table dirtied by the inserts, and can skip visiting the indexes at all. But if it finds even one (in v11) dead tuple, then it needs to scan the entirety of all the indexes, and that can take a long time. I'...
1
1
8,026
2021-09-15T10:41:17.353
api_errors
dba.stackexchange.com
855,759
How to execute shell commands as a different user with only sudo password?
I'd like to test a Webhook and is there a way how one can execute a shell command as a different user with sudo? As root I could do something like: [CODE] With [CODE] I get an error: sudo: cd /var/www/xml/tei_staged && git pull origin master 2>&1: command not found
yeah, it's somewhat stupid but this works and maybe it's useful for someone else who is slow on the uptake, too: [CODE]
-2
0
325
2017-06-14T13:35:30.123
infrastructure
serverfault.com
1,117,057
Apache: How to "hide" a subdomain but serve over https
I will freely admit my ignorance - or perhaps enough knowledge to be dangerous. I have a subdomain [CODE] that serves the phpMyAdmin utility. It's currently in a directory with an Apache directive to require a valid-user from .htaccess which made sense at the time, because I don't want to expose the phpMyAdmin login pa...
[CODE] You should remove the [CODE] and [CODE] directives. These are the old-style Apache 2.2 directives and are formerly deprecated on Apache 2.4 and are likely to cause conflicts (but they aren't required anyway). Although curious why you have a [CODE] section for [CODE] , yet the [CODE] is defined as [CODE] ? Then a...
1
0
221
2022-12-01T17:10:27.480
api_errors
serverfault.com
52,371
join syntax / style performance consideration
We recently found on one of our stored procedures that we get significant performance improvement by changing the join syntax/style of our query from this... [CODE] To this... [CODE] Note: in the real query, there were 10 joined tables including inner and outer joins. The tables were not huge in terms of sql data. No a...
In a world where the query optimizer considered all possible join orders, and contained all possible logical transformations, the syntax we use for our queries would not matter at all. As it is, the optimizer generally uses heuristics to pick an initial join order and explores a number of join order rewrites from there...
5
7
709
2013-10-28T22:13:23.063
database_errors
dba.stackexchange.com
375,236
Suddenly can't open any port > 1000
I'm quite a beginner with administration, and I've not had problems with my VPS before. But after having trouble with an upstart-bug, which I was able to solve, I had to reboot the system, and since then I cannot open any ports > 1000 any more, even with root. I only need those for redis and mongodb, and only so my ser...
Please try the following : netstat -ap to see if something is listening on that port (27017) you could go with "ps aux | grep mongodb " if the apllication is already oppened . If the above doesn't work , please let me know on which OS is the host so that I can troubleshoot this better (aka use specific OS commands ). R...
0
2
1,696
2012-03-30T12:22:46.047
database_errors
serverfault.com
84,962
PHP via FastCGI: "terminated by calling exit()"
I've recently converted my server from a mod_php setup to a php via mod_fcgid setup. Everything works well: it's fast, easy, doesn't crash, etc etc etc. The problem that I'm having is that the log files are filling up with messages like this: [CODE] If my apache2.conf file, I have logging set to [CODE] . My php.ini fil...
In standard CGI scripts, the server starts up the script, sends it a single request, then expects the script to terminate. In an FCGI script, the server starts it once, and sends many requests, one at a time. This means your script should not be exiting after a single request, but only exit in error conditions where it...
2
1
7,057
2009-11-15T20:14:12.777
infrastructure
serverfault.com
60,180
Remove rows that are too much alike not to be duplicates
I have a dataset of real estate advertisements . Several of the lines are about the same real estate property so it's full of duplicates that aren't exactly the same. What would be the best methods to remove rows that are too much alike not to be duplicates? It looks like this : [CODE] So far I tried to compare the des...
Take a look into record linkage methods. They typically are used to find the same entity between two datasets but can also be used to link a dataset to itself and find duplicate records (it’s called deduplication in the literature)
1
1
47
2019-09-14T08:32:57.250
data_quality
datascience.stackexchange.com
743,593
Microsoft Exchange 2013 Shared calendars on Mobile Devices
I have an Exchange 2013 server with a user shared calendar. Can't configure an iPhone to view the shared calendar. It doesn't appear on the MS Outlook app, nor the MS OWA app. Any suggestions: My goal is to share a calendar and set permission for some users to view only and others to edit, all to have smartphone access...
Not possible natively. The only way to access a shared calendar is to have full access to the mailbox and its password. There are some third party apps which can access it for you, I haven't tried any, but I know they (did) exist. Check the App Store. Simon.
0
0
797
2015-12-17T01:14:45.403
infrastructure
serverfault.com
204,983
Combining Single Page Application and DDD with a REST API
I'm creating a web application which on the client side consists of a Single Page Application (with Durandal) and on the server side an ASP.NET MVC site with a Domain Driven Design. The two are connected with a REST Api (Web API). I have a relation between two entities, which on the database level is many-to-many. (Hot...
You seem to hint at your own answer: don't submit everything in one go. If you think about it, what kind of actions would you like to be able to do in your view? One of them is apparently assigning hotels to room types. So for every action you want to perform in your view you either have a method you call on a endpoint...
3
4
2,144
2013-07-15T23:12:51.883
data_quality
softwareengineering.stackexchange.com
572,001
Apache/2.2.22 (Ubuntu) mod_proxy, mod_filter and mod_substitute
When trying to substitute content from text content-types using mod_substitute and mod_filter it does not work with reverse proxy config. [CODE] The request header looks like [CODE] What could be the cause of this?
This worked... [CODE]
2
1
1,944
2014-02-04T04:19:22.540
infrastructure
serverfault.com
420,912
How to Unit test / design differently a complicated free function
I have written a Command Line Interface, where the user has to construct an object basically by providing input to a bunch of questions. I have a hard time testing these functions as there is too much happening in there. Basically for every input, there is some validation and it will loop forever, print error message, ...
"you shouldn't test Implementation Details (such as functions in an anonymous namespace or private functions)" - this philosophy is controversial, or at least debated, or, at a minimum, I disagree with it. It is totally possible and usable and frequently desirable to test implementation "details". In fact, once you've ...
0
3
468
2021-01-11T16:47:00.360
data_quality
softwareengineering.stackexchange.com
273,374
Report Server w/ SQL 2008 R2 Express - Can't login to Manager URL
I just installed Report Servicing addon (Advanced Services) to a local SQL Express 2008 R2 server. I have the configuration tool and setup the proper URLs but when I connect to them I get permissions denied: The permissions granted to user 'DESKTOP\Eyston' are insufficient for performing this operation. (rsAccessDenied...
I believe it's talking about the SQL Server permissions. You'll need to go to Security > Logins in the Management Console and go to New Logon, then add DESKTOP\Eyston as the username (with Windows authentication). Then go to Server Roles and check [CODE]
1
1
669
2011-05-24T20:42:20.653
infrastructure
serverfault.com
1,020,642
Unable to connect to Azure SQL server through Point-to-Site VPN
Is there any possibility to connect to an Azure SQL server through Azure's P2S VPN client? More specifically, I want to force clients connected through Azure's S2P VPN client to use the VPN to connect to the DB server. One of the reasons is that the Clients' IP addresses change frequently and lots of (temporary) firewa...
For anyone else who might run into this issue, I want to highlight the OP's "first solution" (" Make the FQDN resolve to the SQL server's VN interface IP address when the Azure VPN client is connected. ") and observation that " The first solution works when I manually put a rule in the client's hosts file to resolve th...
0
2
1,949
2020-06-09T08:33:05.023
database_errors
serverfault.com
63,968
Error java.sql.SQLException: ORA-01555
Hey I am running a select * from query against ORACLE database. So is there a way we can avoid this kind of error. The query is fetching a large amount of data. It can take weeks to get that amount of that. [CODE]
This may be helpful: http://www.dba-oracle.com/t_ora_01555_snapshot_old.htm Sorry, I know this belongs in the comments section, but SO won't let me comment until my rating is above 50 :(.
0
0
1,728
2014-04-24T21:42:40.690
database_errors
dba.stackexchange.com
1,109,235
modprobe: FATAL: Module nf_conntrack_ipv4 not found in directory
TASK [kubernetes/node : Modprobe nf_conntrack_ipv4] ************************************************************************************* fatal: [node1]: FAILED! => {"changed": false, "msg": "modprobe: FATAL: Module nf_conntrack_ipv4 not found in directory /lib/modules/5.4.0-91-generic\n", "name": "nf_conntrack_ipv4", ...
https://cloudolife.com/2021/08/28/Kubernetes-K8S/Kubespray/Use-Kubespray-to-deploy-a-Production-Ready-Kubernetes-Cluster/ nf_conntrack_ipv4 havs been rename to nf_conntrack since Linux kernel 4.18+
-2
5
5,917
2022-08-27T10:19:04.690
pipeline_ops
serverfault.com
253,693
DNS error from a web site hosted in a VM
I'm on a private network but I need to access on an external site hosted in a Virtual Machine. When I was in the public network I edited the hosts file(%windir%\Windows\System32\drivers\etc\hosts) present in my Windows O.S. and add an entry with , so then I can see the site. But now this does not works, because I have ...
check if you can reach the site from your private network. [CODE] if there is an error you just established that you can't reach the site even via ip address. so you need to work on it. to fix your dns problem is exactly what you have done before - add the ip name of the site into the hosts file. ps: ping is not the to...
0
0
98
2011-03-30T14:40:35.360
infrastructure
serverfault.com
200,527
Very Simple "SELECT * FROM" Times Out (InnoDB)
Hello everyone and sorry for what may be a silly question, but I'm completely dazzled. First thing is that I'm not sure that it's related to InnoDB, but I've tried this on MariaDB and on MySQL and results are the same. Let's cut to the chase: I have huge performance issues in the most unpredictable places. To illustrat...
First of all, here are a few things you can try to get more info about the query in your case: After starting the query, you can check its status by running [CODE] Also, you can try running the query on a smaller set of rows by adding another [CODE] predicate (covered by an index), for example: [CODE] As for why the qu...
2
2
1,289
2018-03-17T09:12:04.467
database_errors
dba.stackexchange.com
276,427
IIS 6 "Dead" app pools can't be stopped or recycled
On a production machine that I manage, the app pools periodically die. After they die, it seems impossible to stop or reset them without issuing an iisreset. In this case, I use the word "die" to mean that the sites hosted by the app pool no longer respond to requests. There are 7 app pools; 4 never die, and the other ...
Looks like those "dead" pools are more or less stuck somewhere, maybe in an infinite loop, so they're not answering stop/recycle requests from IIS. What happens if you have a look at the Task Manager for "w3wp.exe" processes? You should have some of them, each one serving one application pool; if this is an infinite lo...
3
1
1,622
2011-06-02T19:34:56.460
infrastructure
serverfault.com
302,805
Increasing TransactionLogsDiskUsage in postgresql 11.12 RDS instance
We have a test RDS postgresql 11.12 instance, configured for logical replication. The only thing connected to it is a 3rd party service, Hevo Data, which is managing sync to a separate Redshift instance. There is no incoming data - inserts, updates, deletes etc Hevo does an historical load - a bunch of [CODE] s basical...
This is a duplicate of RDS Postgres oldest replication lag increases during inactivity even though Fivetran connector keeps synchronizing Due to a lack of writes at the source, there's nothing to sync and (for whatever reason) postgresql retains write ahead logs in this case - until there is something to sync. Doing an...
0
0
1,298
2021-11-18T01:22:46.650
database_errors
dba.stackexchange.com
612,582
Unable to start MySQL server while configuring MySQL Cluster using its auto installer GUI?
We are trying to configure MySQL Cluster using its Auto Installer GUI. When we click on 'Deploy and Start MySQL Cluster' button, it showing a small popup with progress. Once it is reached at 57%, after that the progress won't be changed at all. Using Inspect Element, we identified that, the error is related to start My...
I managed to fix the problem by opening all firewall ports between the physical (or virtual) machines used in the cluster. PS. Also, make sure that you have 22 and 1186 ports opened for the machine where you have "MySQL Cluster Installer" running.
1
0
139
2014-07-15T07:27:54.700
database_errors
serverfault.com
1,053,625
Accessing forwarded LAN server from same network
I have a server behind NAT, with IP [CODE] . The router gets a dynamic IP from the ISP, which is regularly used to update a domain, let's say [CODE] . The router is configured to forward port 80 to the server. This works fine externally and the server can be reached under [CODE] . However, if I try to access it via tha...
Disabling "NAT Boost" on the router fixed it.
1
0
34
2021-02-14T16:54:50.950
infrastructure
serverfault.com
330,461
What to include in a Database class
I am currently developing a java application, which will communicate with a SQL server. Therefore I created the class [CODE] which is responsible for [CODE] and [CODE] . I want to be able to add data to the database. In this example, the table is called job. Therefore I created a class [CODE] . Besides these jobs, ther...
The question is very confusing. What makes it more confusing is the fact that you decided to use Job and Jobhandler as examples which makes one think the question is about database jobs (scheduled tasks). But after reading the edit I guess you are trying to write a DAO and were talking about jobs as in "a position of e...
3
4
1,493
2016-09-08T00:33:55.560
database_errors
softwareengineering.stackexchange.com
305,244
Workaround for implementing operations on doubly linked or circular data structures in languages with immutable data
I would like to learn how to make graphs and perform some local operations on them in Haskell, but the question is not specific to Haskell, and instead of graphs we may consider doubly linked lists. Question: What would be an idiomatic or recommended way to implement a doubly linked list (or other doubly linked or circ...
There could be other efficient immutable data structures that fit your particular task, but are not as general as a doubly-linked list (which is unfortunately prone to concurrent modification bugs due to its mutability). If you specify your problem more narrowly, such a structure can probably be found. The general answ...
12
6
1,152
2015-12-16T16:15:19.217
api_errors
softwareengineering.stackexchange.com
44,177
Full text search on multiple tables in PostgreSQL
I have several tables that have related data. I want to have a search input box on the dashboard of the system that will search for anything (client, invoice, delivery note, ...). Is it possible to have a FTS implementation in PostgreSQL that will get the item searched for in more than one table and get the results? Fo...
General idea of Full-Text Search is to provide more functionality for naitive language searches. it allows using stop words (words, that do not contribute to subject of the search), search for synonims, specify distance between words etc. To accomplish, what you need a procedure with several unions is enough. Design la...
0
1
3,157
2013-06-10T10:15:39.660
database_errors
dba.stackexchange.com
928,665
smb fails to start on centos7 radius server
I have a working radius server that auths connections to a PDC AD server. I wanted to create another one so that I can fail over on the firewall when needed. I created a second server using the same configs as the first. When I have the following in my smb.conf it fails to start, even though this is the same config as ...
I also encountered this issue too of Samba SMB daemon unable to start with the error of create_local_token failed: NT_STATUS_NO_MEMORY. After a fail amount of frustration I discovered this post suggesting the new iteration of samba Domain member setups require winbindd: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug...
2
1
6,569
2018-08-30T07:33:37.273
infrastructure
serverfault.com
152,094
null pointers vs. Null Object Pattern
Attribution: This grew out of a related P.SE question My background is in C / C++, but I have worked a fair amount in Java and am currently coding C#. Because of my C background, checking passed and returned pointers is second-hand, but I acknowledge it biases my point of view. I recently saw mention of the Null Object...
You wouldn't use a Null Object Pattern in places where null (or Null Object) is returned because there was a catastrophic failure. In those places I would continue to return null. In some cases, if there's no recovery, you might as well crash because at least the crash dump will indicate exactly where the problem occur...
30
28
17,917
2012-06-08T18:10:39.113
pipeline_ops
softwareengineering.stackexchange.com
503,278
How to reduce or shrink the MFT (Master File Table)?
I have a dedicated windows server 2003 with more than 3 millions of files, recently I created a new partition to separate the website files from the OS. Later I reduced the site of the OS with some tools but I saw that the free space in the properties of the hard disk or in other HDD tools is 8 GB bigger than the size ...
After much search for similar/same issue I can say that there seems to be no solution to actually make [CODE] smaller from inside Windows) NTFS can reuse [CODE] space, but not make it smaller once it has grown in size. One thing I have not had the chance of testing yet is to use ntfsresize from Linux to try and minimiz...
7
2
6,297
2013-04-28T04:23:02.340
infrastructure
serverfault.com
49,495
How to install UTF8 locale on PostgreSQL?
I have a PostgreSQL 8.4 on Windows 7 machine, and my issue is that I have only the [CODE] locale. So when I create a database, I choose the UTF8 encoding and can select only [CODE] . And when I get any errors when I use JDBC I get unreadable logs. How can I set a locale like [CODE] or [CODE] ?
PostgreSQL 8.4 supports only one locales that is selected in installation time. You need to rerun initdb statement with different locales (but only one can be used) or you can migrate to 9.x version, that supports more locales.
3
2
4,323
2013-09-09T08:20:05.960
database_errors
dba.stackexchange.com
30,897
MySQL replication - some values are not being replicated
MySQL Replication issues I might sound clue less here as i am :) , I am having problem with mysql replication, i.e. replication seems to be missing in some random occasion. My structure looks like: 1) Master 2) slave (without SSL) 3) Slave (with SSL) On some occasions, what goes wrong is that data are not replicated to...
Are you aware of http://www.mysqlperformanceblog.com/2009/05/14/why-mysqls-binlog-do-db-option-is-dangerous/ ? Perhaps some of the missing updates are being run with the [CODE] database as the current database? It is less error-prone if you use the replicate-wild-* options. In your case [CODE]
3
2
2,404
2012-12-21T12:13:50.377
database_errors
dba.stackexchange.com
639,097
Granting user enough privileges to run ifconfig on IllumOS (OmniOS)
I sense this should be a very simple question, but somehow I cannot find a solution. I have a non-root user and I would like to grant this user enough permissions or privileges, so he can run ifconfig (I have root access to the machine). For example: [CODE] Right now I get this error: [CODE] Note: I know that I should ...
This is what [CODE] and [CODE] were made for. =) For [CODE] , you should run [CODE] and add an entry like this [CODE] Save and quit, and you're done. It's the easiest one of the two. The more Solaris-y way is to use [CODE] . It is more involved, but you can find directions for the process in this article: Custom Roles ...
3
2
340
2014-10-23T12:46:36.553
infrastructure
serverfault.com
175,688
Issues with the intended behavior of a Service layer?
This analysis makes sense, and states anything that avoids code duplication and simplifies maintenance speaks for a service layer. What is the technical behavior? When a service client references a service, does it do so at runtime, or does it happen at compile time? When I change something in the service layer code, w...
Typically service references are acquired through some sort of dependency injection, not hardcoded. They may even be remote calls. It should most definitely not be necessary to recompile clients when a service changes Yes, definitely. That's why the service API should be narrow and explicitly specified. And see the ups...
1
2
146
2012-11-13T13:36:04.887
api_errors
softwareengineering.stackexchange.com
327,606
MySQL 5.7.42, Gradual memory growth over time, memory leak?
I'm currently running a MySQL server (version 5.7.42) in production, and I've noticed a gradual increase in memory usage throughout the day. I suspect there might be a memory leak issue causing this behavior. Here are some details about my server configuration: [CODE] I'm using the Prometheus exporter to monitor the se...
See if any of these apply: ----- 2022-04-26 5.7.38 General Availability -- -- ----- A memory leak occurred if mysqldump was used on more than one table with the --order-by-primary option. The memory allocated for sorting each table’s rows is now freed after every table, rather than only once. (Bug #30042589, Bug #96178...
3
2
1,063
2023-05-27T15:24:50.773
pipeline_ops
dba.stackexchange.com
692,950
Apache 2.2 won't start with an ipv6 address
I'm trying to only allow the localhost on a certain folder, it works perfect with ipv4 ( [CODE] ) but as soon as I add ipv6 ( [CODE] ) my Apache won't start anymore. I checked the [CODE] and it says: The specified IP address is invalid. I already typed the ipv6 address without the compressed format, didn't work either....
The notation where you surround the IPv6 address with brackets is only used in cases where there might be confusion between the address and an optional port number. One example is in the [CODE] directive. Because it can specify both an address and a port the brackets have to be added to avoid confusion: [CODE] is inval...
0
2
1,441
2015-05-19T09:04:38.807
infrastructure
serverfault.com
615,123
How to execute external programs in the lookup table mechanism?
I need to execute a custom algorithm via header_checks lookup. I have the configuration [CODE] to see in the headers what user is sending the message, eg: [CODE] I need to make a mechanism to rewrite the [CODE] to [CODE] ... where [CODE] is the md5sum of the email address (for security reasons). Can I do this through t...
Limitation: For this solution, you must list all your users and its md5. Except tcptable/external daemon solution, MD5 calculation doesn't supported by most postfix table You can user pcre table and header_checks feature to achieves that. Specify this line in your header_check table. I tested this expression in pcre-ty...
1
2
456
2014-07-24T11:02:16.817
infrastructure
serverfault.com
111,139
Debian (Lenny) X2Go Client with 50% CPU
My x2Go Client uses too much cpu power, more than 50% all the time, even when I don't have an open remote session. Does anybody know how to check where the error (?) is located? Thanks
You can use strace to get an idea of what it's doing. strace -p pid
1
0
659
2010-02-09T15:00:58.333
infrastructure
serverfault.com
770,848
How to determine AWS EC2 network performance?
I am using an AWS EC2 Ubuntu instance that was set up and configured by someone else (i.e. I do not have access to the management console). This instance is primarily used to download files and sync to an S3 bucket, which I have automated with shell scripts. However, I do not know the instance type or the network perfo...
Doing [CODE] from the instance will give you the instance type from the EC2 Instance Metadata Service. http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
1
4
4,963
2016-04-16T15:53:46.423
infrastructure
serverfault.com
111,768
DNS NS Record in windows server 2008
I just bought a Virtual Private Server and I want to configure my website and the [CODE] on the same server and of course IP. I created a [CODE] "domain.com", after I finished, a [CODE] record and NS record was added by default. Then I created the A record that points to the server [CODE] . The [CODE] record added by d...
ns2.domain.com would be for a second DNS server. If you only have one DNS server, then you will only have one NS record. Redundant NS servers are recommended, but if your website is small, you can probably get away with one.
2
1
2,644
2010-02-11T00:54:07.560
infrastructure
serverfault.com
317,113
How can I add time and date to a query output file name in sql server agent job
I have a query set up in SQL Server agent to return an output result file. The problem I have is how to set a date and time stamp so that the file name always includes the date and time. On the SQL Agent Job, I opened step and clicked on the "Advanced" tab, then I selected a file path where the output should be saved a...
You can use SQL Agent Macros in step output filenames to include the date and time. The macros that might be useful are: DATE TIME STRTTM STRTDT
1
4
1,640
2022-09-19T19:56:08.330
database_errors
dba.stackexchange.com
186,885
Is there a default SELECT order?
I need to clear up what I mean by order here. I am simply asking about what order the data is fetched in. If I simply [CODE] in SQL Server without an [CODE] clause, I find that the results always come in the same order. That certainly is not the case with some other database servers, such as PostgreSQL. Is the observed...
Community wiki answer : There is no "default order". You will only get a specific sort order if you use [CODE] . If there is no [CODE] , the database is free to return the rows in any order it thinks is most efficient. See, for example, No Seatbelt – Expecting Order without [CODE] by Conor Cunningham (Software Architec...
0
14
14,245
2017-09-26T10:00:44.630
database_errors
dba.stackexchange.com
707,932
Are IOPS capped at 3000 for AWS Oracle RDS with General Purpose (SSD) (gp2)?
Documentation at http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html says This storage type can deliver single-digit millisecond latencies, with a base performance of 3 IOPS/GB and the ability to burst to 3,000 IOPS for extended periods of time. Assuming that I'm using a m3.2xlarge (largest currentl...
The following graphic describes what type of IOPS you can achieve using GP2 storage. The amount of IOPS is a function of the total amount of storage you have provisioned up to a cap of 10,000 IOPS as of the writing of this post. With RDS there is an added complication of when you scale up the amount of storage RDS may ...
2
3
788
2015-07-23T13:20:07.673
database_errors
serverfault.com
618,691
Remove all third-party drivers
Is there a way to un-DISM all drivers from Windows? Our images are injected with Dell's CAB driver packs, but with our new Optiplex 7020's we're getting a video error on bootup. We suspect there could be a conflict with the video drivers. We're also concerned that older drivers could be an issue, so we want to remove a...
Sounds like you are asking whether or not you are able to remove drivers from a DISM (formerly ImageX for all you old folks!) created .WIM image . To answer your question quickly, the answer is: Yes! To answer your question more verbosely, the answer is: Absolutely, yes! The operation you are interested in performing i...
2
1
6,838
2014-08-07T12:06:46.180
infrastructure
serverfault.com
18,387
How to optimise read/write performance a MySQL table with many rows?
I am developing a django application where I use a MySQL database. In my application there is one table for domains information which has only 2 columns [CODE] but I have a problem when I have imported almost 14,150,000 rows in that table. I have not done any optimisations yet (using default settings) and there is also...
As you need to perform a read,search operation faster you can use the MyISAM as the table engine if the table will not have the High write's in future. When you will use the MyISAM Engine for fast read/search for this table ,you need to set the Key_Buffer_size to some appropriate value depending upon the index size of ...
2
2
2,100
2012-05-25T05:10:05.000
api_errors
dba.stackexchange.com
879,243
Can't connect to my AD LDAP Server
I just installed an AD on a VM running Windows Server 2016. I want to connect to the LDAP server using a explorer like JXplorer or Apache Directory Server, because I will develop a Java application that will use that LDAP as authentication server. So, I've created a standard AD, with some users But, when I go to JXplor...
data 52e is the key, this means that the AD server is saying 'Invalid Credentials.'. I'm not readily familiar with JXplorer so I'm not sure how you set the credential for the session, but something is going awry there.
0
0
1,722
2017-10-19T10:48:47.410
api_errors
serverfault.com
56,038
Capturing Table Changes without killing the server
I have an Application that uses Oracle. Among many things, this application has timesheet entry. Supervisors enter their employee's hours, allocating to charge codes, under the appropriate rate (straight or overtime) - and save it. We need to report (upload) hour data each day to a third party. If hours are changed aft...
Just from a logical standpoint you're going to have to have 2 copies of the data, or a log of each change (including the deletes/inserts). You can use the tables/triggers like you said, use flashback query (and that will work on 11g by the way, assuming that all the archive logs for the day are still online-- and, in m...
1
1
1,499
2014-01-03T01:27:42.403
database_errors
dba.stackexchange.com
704,359
nginx proxy_pass eventually returns GATEWAY_TIMEOUT even though server is still active
I have set up a nginx proxy passthrough which works fine when nginx initially loads up, but eventually (maybe after a day or so?, not too sure at this point) the location that is a proxy passthrough only returns a [CODE] response. The odd thing is that I have set up multiple proxy_pass locations and it is random what g...
The bottle neck is probably in your t2_micro number of file descriptors, but there is also a high likelihood of it being a network bandwidth issue. There are two generic ways to fix this problem without increasing bandwidth: 1) Increase the limit (number) of open files system wide and/or ulimit for nginx 2) Upgrade to ...
9
1
2,452
2015-07-08T14:54:05.640
infrastructure
serverfault.com
267,420
SQL Server Grant CRUD to Users on One Schema
I have a schema called [CODE] . I want users who will be trained to have CRUD permissions on any object on that schema. I do not want them to have any other permissions on any other object outside that schema, and I also do not want them to have create/drop permissions for the schema itself. What is the least permissio...
Is this the right approach? This is the correct approach, users with that role will only be able to perform CRUD operations on objects in the [CODE] schema and nothing else. This is the least privilege approach and is correct. True least privilege would actually be assigning permissions to only the specific objects in ...
1
3
2,537
2020-05-18T22:19:40.660
database_errors
dba.stackexchange.com
11,772
Immediate e-mail alerting for error 229 (permission denied)
For a few reasons, I'd like to have all permission denied errors (number 229) emailed to me. Checking master.sys.messages shows that is_event_logged for this error is 0. Thus that rules out using SQL Server Agent error alerts, which rely on the SQL Server error log (I've tested this - I get no alert). I figured I'd pee...
Oh, damn it, not 30 seconds after I post this, I stumble across sp_altermessage (naturally, after spending a significant amount of time trying to figure out if I could do this with extended events). So if anybody else is wondering how to do this: [CODE]
3
5
784
2012-01-27T14:23:23.403
pipeline_ops
dba.stackexchange.com
493,356
Could the Input/Output or some other difference between adapters/chargers cause this?
I have a laptop and my adapter/charger could not be used anymore as the cable was cut. So I bought a new adapter but it was slightly different than the original. My original had (Toshiba's original): [CODE] While the new one (no-name brand) has: [CODE] The problem is that although the laptop stays on, the battery does ...
Yes, that's probably the issue. The new adapter is providing power outside of the safe operating limits of the battery (+25% Amperage and +25% voltage), so to protect itself from damage, the battery is not accepting the charge from the adapter. Next time you buy an adapter for a piece of electronics, make sure it's com...
-1
1
1,510
2013-03-28T20:32:08.693
infrastructure
serverfault.com
1,046,937
Exchange Server Smart Host not working
I have 2 Server, let me illustration like this Server A = Exchange Server Server B = SMTP Server(Postfix) on VPS I want my Server A fully Sending&Receiving Email from Server B(Because Server A Port 25 is Blocked By ISP) So i connected Server A Smart Host to Server B SMTP But when i check my mailing logs , Server A does...
By default, an Exchange server will try and send emails to a smart host using port 25. Since your Server A(Exchange Server) port 25 got blocked, you need to change this to a different port number, follow this steps to configure it: [CODE] For more details on creating a Send connector to route outbound mail through a sm...
0
0
315
2020-12-20T14:43:31.873
infrastructure
serverfault.com
997,704
Apache HTTP to HTTPS Proxy Redirect multiple addresses
I need your help. I have 2 versions of the application running on the Linux machine. Version1 runs on localhost port 5000, version2 runs on localhost port 5001. I need users to be able to access either of the application versions depending on the URL they use. My existing Apache httpd.conf as follows: When users type h...
You can define multiple [CODE] s for the same port, you just have to set different ServerName directives for each. If you want my.company.com to be the application at port 5000, and my-v2.company.com to be the application at port 5001, I'd suggest that you go with a configuration like this: [CODE] The real magic about ...
0
3
3,285
2020-01-05T18:30:07.103
api_errors
serverfault.com
1,121,896
Why can't I attach custom fields to the journal with systemd-run --user?
I want to run a program in a transient unit with [CODE] , using the user-level service manager ( [CODE] ), with some custom fields attached to the journal. According to the docs I can use [CODE] to do this. So I am running the program and setting the custom field [CODE] , like this: [CODE] But when I check the journal ...
Why is this the case? Do users need extra permissions to write extra fields into the journal? Users don't, but the specific mechanism that systemd uses to supply the extra fields to journald is, currently at least, only aware of system-level units (and relies on write access to /run/systemd). Although your user-level s...
1
1
140
2023-02-03T17:03:52.877
infrastructure
serverfault.com
381,697
How can I add myself to apache group?
I'm running my CentOS server on my Xserver and what happen is that when I want to upgrade my Wordpress escpecially for now to Wordpress 3.3.2 the problem is that I got [CODE] And I understand that this is a permission problem. Because the owner:group of my wordpress is under [CODE] So I wish to know how can I add mysel...
Try the following (if you're in sudoers list) or under root: [CODE] If you're not familiar with sudo, here is a short guide :
9
7
45,555
2012-04-20T20:08:10.607
infrastructure
serverfault.com
156,068
Using window function to carry forward first non-null value in a partition
Consider a table that records visits [CODE] Consider this example data (timestamp simplified as counter) [CODE] I'm trying to carry forward the last non-null somevalue of the person to all his future visits until that value changes (ie becomes the next non-null) value. Expected result set looks like this: [CODE] My att...
The following query achieves the desired result: [CODE] Note the null case statement - if IGNORE_NULL was supported by postgres window functions this wouldnt be needed (as mentioned by @ypercubeᵀᴹ)
16
20
22,839
2016-11-22T20:42:48.377
data_quality
dba.stackexchange.com
697,005
Can't install VirtIO Network Adapter in Win 7 Guest
I am playing around with different hypervisors, and I'm on to Proxmox VE. I setup an old server to test it out on, and installed Windows 7 as my first VM, using [CODE] drivers for everything - networking, disk controller, etc. I followed the recommendations from this page on the Proxmox Wiki, and downloaded the latest ...
There seems to be a problem with the current stable-virtio 0.1.96 . latest-virtio 0.1.105 works for me.
1
1
1,622
2015-06-05T21:52:15.523
infrastructure
serverfault.com
922,235
what is the difference between /etc/issue.net and /etc/issue
What are their purpose as they have the same content ? [CODE]
Both [CODE] and [CODE] are used to display a banner (e.g. welcome line/ warning..) to SSH users before the login prompt: [CODE] is shown to the users who connect from the network. [CODE] is shown to both local users and network users unless [CODE] is present and configured. Also, to configure them to be displayed when ...
19
33
32,190
2018-07-17T08:53:14.693
infrastructure
serverfault.com
210,385
concatenating multiple column with separator
I want to concat a multiple column of table with separator "|" but if null data in some column separator should not come E.g Table [CODE] Desire Output [CODE]
This seems an interesting question. To facilitate the copy & paste test, I hereby provide my version based on the solution from @Daniel Hutmacher. You can play by replacing / adding different values in the population script. [CODE] The result is:
-3
0
969
2018-06-22T16:57:35.767
warehouse_errors
dba.stackexchange.com
1,020,924
Windows Server 2016 How to create a local domain version that exists and is public?
I have this situation. I need to set a domain to a Sharepoint farm and configure it, but the problem is that the domain exists and If I type the domain (let's say it's example.com), I'm being redirected to the real domain. So practically this is what I wan't to achieve. Create a local domain version of example.com in o...
I'm surprised how no one answered it, but I found the solution which is pretty easy. Just go to C:\Windows\System32\drivers\etc and edit the hosts file I just added the domain like this: ipaddress example.com
-1
1
40
2020-06-10T19:38:13.020
infrastructure
serverfault.com
281,538
How to use FIRST_VALUE window function in MySQL/MariaDB to get one row per group?
I'm pleased to see window functions landed in MariaDB 10.2. I thought they would be good for first-of-group problems, but I'm struggling to see how they're efficient. I have something like this: [CODE] I want a list of each contact and the best email for them. "Best" being defined as: prefer their [CODE] one, if it exi...
I'm not sure I understand the problem, but I'll give it a shot. This will satisfy your sample data and expected result: [CODE] Since you enumerate the result set with row_number, I'm not sure why you need first_value. As you noted, FIRST_VALUE does not filter the result set in any way, it just extends each row with the...
0
1
2,261
2020-12-14T18:10:36.283
database_errors
dba.stackexchange.com
119,409
SQL Server Analysis Services, DNS, AD, Kerberos, Connection Issues
Running into a very weird issue. Converting servers to Windows 2008/SQL 2008. Have a server, SERVER_A, brand new, setup with Win2k8,Sql2k8 - works. Have a Server SERVER_B, running Windows2003/SQL2005. I want to migrate from SERVER_B to SERVER_A. I have all db's, cubes, etc setup on SERVER_A and it is mimicking function...
found out that we had to remove all SPN's from Active Directory before this would work. setspn -D also, found that there were some SPN's set to a domain account, so had to remove those setspn -D and then it all worked after changing DNS. It came down to the SPN's being the issue. first had to change sql services (DB, S...
2
1
1,146
2010-03-05T03:46:53.110
database_errors
serverfault.com
1,061,698
Linux server rebooting automatically
Here is the syslog of my linux server which is restarting itself in intervals for a month. I am not being able to find the reason till now. Could anyone help me understand why the sever took a restart today and what can i do to stop it. The restarts are not good for my work. Thank you in advance. enter image descriptio...
Look in cron jobs, if it´s programble restart every month. if not look in the performance and load of machine, this is what come to my head for moment.
1
0
1,795
2021-04-27T08:06:10.730
infrastructure
serverfault.com
819,389
Azure AD Connect Single-Sign On
I am trying to set up my domain for Single Sign-On to Azure-Connected services (Primarily, SharePoint Online). I have already run through the setup for Azure AD Connect and am currently able to synchronize my directory to Azure. I see my users in Azure and can sign in using an account. The next logical step for us is t...
if you only deploy Azure AD Connect you can configure what is sometimes called Same sign on but not single sign on. if you want single sign on you will have to deploy ADFS as well. https://gallery.technet.microsoft.com/EMS-Bundle-05-Azure-AD-5b6d8a90
1
1
1,374
2016-12-07T20:54:57.160
infrastructure
serverfault.com
929,807
Apache Virtual Host redirect from https subdomain to subdirectory
How do I redirect requests coming to https://blog.example.com to https://example.com/blog ? Reading the apache docs on when not to use the rewrite mod, I tried a simple redirect e.g. [CODE] But when I visit https://blog.example.com , it doesn't redirect me. Only says error with a certificate. Is there any possibility t...
Your config applies to [CODE] , in other words to the [CODE] port. The port for [CODE] is 443. Find that configuration and apply the redirect there, too.
0
1
1,882
2018-09-06T23:56:31.417
infrastructure
serverfault.com
987,309
Beegfs-client does not work with mellanox OFED driver
I am trying to configure and test beegfs with RDMA as explained in: https://community.mellanox.com/s/article/howto-configure-and-test-beegfs-with-rdma?t=1570613300675 My test configuration: OS: ubuntu 16.04 on both servers (Kernel version 4.15.0-65-generic) OFED: MLNX_OFED_LINUX-4.6-1.0.1.1 beegfs version: 1.7.3 (lates...
Try this in your /etc/beegfs/beegfs-client-autobuild.conf: [CODE]
2
0
1,573
2019-10-09T10:09:37.787
infrastructure
serverfault.com
679,758
2 networks on unmanageable switch
I have 2 ISP's in my office and both are connected in one switch. One is TATA and one is ACT. TATA will release IP's from their server (100.118.11.1 series). I have connected AP's in my switch, so that DHCP users will get IP's from TATA. I have a firewall (Quickheal) which we are using for our staff and IP series is 19...
No offense mate but your situation seems like a mess. I would advise you to: get a basic router which supports two ISP. For example: cisco RV042G Gigabit Dual WAN VPN Router. Connect your primary ISP to the WAN port (seems to be TATA) and secondary ISP to DMZ port Configure the router as load balancer or as connection ...
-4
1
84
2015-04-01T08:36:09.057
infrastructure
serverfault.com
432,862
sshfs mount won't start from /etc/rc.local
I have the following commands in /etc/rc.local [CODE] If I run them from command line, as root, they work. If I reboot the server they won't run from /etc/rc.local. I try to figure out what I do wrong but I don't have console access and I couldn't find any errors in /var/log related to sshfs.
I figured out what it missed sudo addgroup root fuse sudo addgroup someuser fuse Also there was an error in /etc/rc.local that prevented the lines with sshfs to be executed.
1
2
1,453
2012-09-28T08:51:36.460
infrastructure
serverfault.com
920,463
How to debug why enabling mod_proxy_html results in a blank page?
Background I have four Windows servers, running Server 2012 R2, running Apache 2.4 on each. These are arranged into two pairs of load-balanced web servers, with the first pair facing the internet, and the second pair inside the LAN. There is an incoming firewall rule to allow port 80 traffic from the first to the secon...
I have discovered a solution. The Tableau package makes use of Apache to serve content, so it is able to benefit from detecting what encoding formats are acceptable to the client. A colleague suggested that perhaps the HTML link rewriting was choking on compressed content, and this turned out to be correct. I therefore...
0
0
989
2018-07-11T12:52:05.637
database_errors
serverfault.com
243,150
PostgreSQL update column B with values generated from function that uses values from column A
Pretty new to SQL. I have a table ( [CODE] ) in PostgreSQL (v11.1) that includes the following columns: [CODE] I'm trying to create a function/script that will lookup the country ISO code for each [CODE] using a local install of the MaxMind GeoLite2 database and then update the corresponding [CODE] with the result to g...
On @Akina's and @a_horse_with_no_name's advice I downloaded & imported MaxMind's GeoLite2 Country database (in CSV format) using the following: [CODE] then ran an [CODE] to populate my [CODE] column with the appropriate 2 letter ISO country code using the [CODE] column data: [CODE] Took a couple of minutes to update ju...
0
2
107
2019-07-18T06:01:39.333
database_errors
dba.stackexchange.com
176,950
What is the procedure for reactivating a failed mdadm RAID5 array?
I have a three disk RAID5 array managed with mdadm, with an XFS filesystem on it. While I was using the machine, I noticed the machine suddenly become unresponsive (new programs wouldn't start, etc), but it was still up enough for me to open a new xterm and run dmesg. The kernel log showed a large number of SATA link t...
If you see the array in /proc/mdstat, then the array is assembled; you need to start it: [CODE] If it doesn't start, try to re-run the command with the [CODE] switch (verbose) and post the result. Once it is activated, you should be able to check its status and re-add sdc3 if needed.
2
5
3,227
2010-09-01T14:23:48.213
infrastructure
serverfault.com
150,610
rsync from OS X to Ubuntu failing for large (>15GB) files
I'm trying to rsync a 15 GB file from my OSX box to a box running Ubuntu 10.04 server. rsync is transferring ~300-700Mb and then closing the connection with the following error: [CODE] The exact command I am executing is: [CODE] I am sure that there is enough free space on the Ubuntu box. Any ideas what could be causin...
You may have a resource limit set up for programs run via ssh, and it takes that amount of data transfer before the remote rsync hits it and is killed.
1
2
1,393
2010-06-12T00:19:15.623
infrastructure
serverfault.com
155,662
How do I give a user permisson to view scheduled task history on Server 2008?
I've set up a scheduled task on Server 2008 and want to run it as a user other than the local administrator. So I choose a domain account created specifically for this task and once I've closed the scheduled task and entered a valid password I want to run it and look a the history tab for this task. On the history tab ...
You can give regular users or those within a specified group read access to the tasks folder (C:\Windows\System32\Tasks).
7
7
26,894
2010-06-28T18:23:34.130
infrastructure
serverfault.com
78,233
Build Restore History table
We restore a database daily that we download from an FTP site. I would like to build a history table that tracks when the database is restored on our SQL Server. This is easy. My issue is sometime the download is incomplete and therefore the restore does not work and throws an error. I would like to add logic to my his...
What about using the tables already in the MSDB database, Restorehistory, BackupSet and BackupMediaFamily? These databases will already have all of the backup and restore history. I would check though that in your particular case what the behaviour looks like in the Restorehistory table. You should be able to check in ...
3
1
450
2014-10-02T13:03:34.697
database_errors
dba.stackexchange.com
320,817
Brew Upgrade Mysql: sdi_delete failed: Record Doesn't exist: tablespace_id: 1 Key: 1 4049
I ran the following commands from the cli in MacOS Monterey V 12.4: [CODE] Upon doing so, MySQL was upgraded from 8.0.30 to 8.0.31. MySQL was running in the background during the upgrade. MySql would not restart, so I rebooted the Mac as a first attempt to solve the issue. When I run [CODE] I get the following list of ...
The story in my case was that mysql upgrade was run when the system was lacking disk space. The [CODE] upgrade failed, and the system was restarted, before the space was made available, which stopped mysql during the upgrade process. It was not possible to start the upgrade because the mysqld was SIGKILLed, not with gr...
4
0
432
2022-12-11T03:34:55.517
database_errors
dba.stackexchange.com
47,708
android : How to fix? - ConversationToQueryExtension.isEnabledForHostApp():252 Conv2Query not enabled due to current app not in whitelist
I am trying to login android application on emulator hosted on Windows OS. Facing below error : I/ConversationToQueryExtension: ConversationToQueryExtension.isEnabledForHostApp():252 Conv2Query not enabled due to current app [com.intelligentworkforce] not in whitelist Please let me know if anyone face/fix this issue.
After searching on Google & suggested by @pavelsaman, I took following steps and this error particularly got resolved : Re-install [Uninstall and install again] the application Open mobile settings and From apps & notifications select your targeted application Tap on Permissions Check what all permissions has been deni...
0
1
370
2021-06-25T12:55:18.497
data_quality
sqa.stackexchange.com
1,149,543
vgcreate fails with 'already exists in filesystem' error
I have an installation test environment, where occasionally an issue is observed causing volume group creation to fail. At the beginning of test, the disk contains four partitions. [CODE] The intention is to create a new partition [CODE] and volume group [CODE] . Since the volume group might have been created in earlie...
I experienced this issue with removable media and duplicate volume group names. Deleting [CODE] you mentioned was not enough, I had to remove all entries in [CODE] , too: [CODE] where [CODE] , [CODE] , ... are all logical volume names in [CODE] .
0
0
504
2023-12-11T10:12:43.720
infrastructure
serverfault.com
434,718
Forensics on Virtual Private servers
So these days with talks about having hacked machines being used for malware spreading and botnet C&C, the one issue that is not clear to me is what do the law enforcement agencies do once they have identified a server as being a source or controller of attack/APT and that server is a VPS on my cluster/datacenter? Do t...
(Disclaimer - I'm a computer forensics and computer security management undergrad. Local laws and LEO protocols may differ) As far as I know, I've not actually seen protocols specifically pertaining to VPSes. There's a few things to look at here. Law enforcement agencies have not shied away from seizing co-owned server...
2
2
279
2012-10-04T07:07:19.763
infrastructure
serverfault.com
982,061
syslog-ng configuration works in debug mode, but not without
I am trying to run syslog-ng as an OCF resource in an HA cluster. I am encountering some terribly strange behavior - when I start a single instance in debug mode, the filters match and it forwards appropriately. However when I remove the debug flag, it only matches one of two filters. So, here's how it works (hostnames...
From your syslog-ng version I guess you are using syslog-ng from EPEL on RHEL/CentOS 7. Can't verify it right now, but I have some distant memories, that when syslog-ng is started from systemd, then SELinux blocks network connections. You should check your audit logs, if there is anything related to syslog-ng. My blog ...
1
1
961
2019-09-05T16:19:01.503
infrastructure
serverfault.com
528,254
vSphere education - What are the downsides of configuring VMs with *too* much RAM?
VMware memory management seems to be a tricky balancing act. With cluster RAM, Resource Pools, VMware's management techniques (TPS, ballooning, host swapping), in-guest RAM utilization, swapping, reservations, shares and limits, there are a lot of variables. I'm in a situation where clients are using dedicated vSphere ...
vSphere's memory management is pretty decent, though the terms used often cause a lot of confusion. In general, memory over-commit should be avoided as it creates exactly this type of problem. However, there are times when it cannot be avoided, so forewarned is forearmed! What are the downsides of overcommitting and ov...
57
45
9,742
2013-08-02T13:56:26.567
infrastructure
serverfault.com