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
767,508
Deploying App which uses twitter stream api on multiple servers
I am using Twitter streaming APIs to fetch latest tweets from Twitter and respond to them if they match a certain criteria (a particular Hashtag) If deployed on one instance, it works very well as their is only one app responding to the tweets. If I want to scale this to multiple instances, there will be many apps that...
What you propose is how things should be done. Have one server or pool of servers that consumes the API and adds each new tweet to a database, and then another server or pool of "workers" that perform actions on the database entries. You may also consider a work queue as well to pass messages on new tweets to your work...
0
0
54
2016-04-01T07:55:45.107
infrastructure
serverfault.com
80,615
cluster suite rhel
we have set 2 node cluster with san box our config like that HS22 IBM blade center with T3400 SAN box with SAN Switch i have try with RHEL 5.2 RHEL 5.3 RHEL 5.4 cluster suite i can reboot using luci as well i can fence both server even i can relocate the services from 1st node to 2node Issues is if ckcek on node 1 clus...
I don't have any direct experience with RH clustering but, from your description, it sounds like node 1 isn't re-joining the cluster correctly after you reboot it. As a starting point, I'd check that all the appropriate services are set to start automatically on node 1, but before I do that, I'd clean up your question,...
-3
1
718
2009-11-02T18:03:59.263
infrastructure
serverfault.com
397,610
Redundant Connection Issue
I'm trying to set up a redundant connection for our web hosting servers. I have a BGP-capable router connecting two lines from two separate ISP's, one fiber (primary), one DSL (failover). I've already confirmed that I can push routes into the DSL ISP's system, so long as they aren't malicious. My question is, what do I...
At a high level you'll need several things to get started. 1.) A BGP autonomous system number. You'll need to register for one with your local registry (ARIN / APNIC / RIPE / etc). 2.) A routable subnet - either a sufficiently large allocation from your primary provider (generally at least a /24) or provider-independen...
-1
1
74
2012-06-11T14:35:51.633
database_errors
serverfault.com
56,262
How does Batch Normalization in Machine Learning address covariate shift and speed up training?
In this video and this answer , it's mentioned that batch normalization doesn't allow the mean and variance of the parameters of any particular hidden layer to vary too much with change in previous layer's node values. Let's say we have a network like this (taken from the video): As we change the mini-batch that the ne...
So for the first question, you are almost correct. Your description of covariate shift is correct, but batch normalization isn't focused on fixing input layer covariate shift, but instead internal covariate shift. It's not a huge difference, since the internal covariate shift of a hidden layer acts as the input to anot...
1
1
514
2019-07-23T18:37:26.253
data_quality
datascience.stackexchange.com
388,187
HP Proliant ML115 G5 - Boot order lost after reboot
I have one HP Proliant ML 115 G5 (AMD) with the latest BIOS ( 07-06-2009 ) and recently I've installed an USB disk. This is a common problem on old Proliant servers. When you plug the USB disk, BIOS boot order changes and tries to boot via USB. So, I'll change the BIOS settings and make the SATA disk the default boot d...
The firmware release you're on is the final release for that model, as it was end-of-life in 2009. There won't be much assistance from HP on this. You didn't describe the usage scenarios, but since this is a server, what is the problem with leaving the system on and reducing the frequency of reboots? The USB disk is an...
0
1
2,569
2012-05-11T09:41:53.523
infrastructure
serverfault.com
77,694
405 - ‘Method not Allowed’ adding service hosted in IIS7
I can't seem to get around this problem of adding a web service reference when the web service is hosted in IIS 7. I can add it just fine if I am running the VS2008 development server, but when I switch it over to IIS I get a 405 error. It seems to be a permission issue, but what? I've tried adding permissions to 'Ever...
Microsoft.NET/Framework/v3.0/Windows Communication Foundation/ServiceModelReg.exe -i ...then Microsoft.NET/Framework/v2.0.50727/aspnet_regiis -i -enable This mapped the proper isapi dll's to the *svc extension, among other things. Bless Microsoft...
6
5
6,346
2009-10-23T16:24:13.030
infrastructure
serverfault.com
306,551
Restoring secondary backup files on primary server in sql server
I want to restore log backup file on copy-only full backup in restoring mode on primary replica server these backups were taken from secondary replica . I took copy only full back up on secondary replica then failover after that I took .trn backup file on primary replica(which took full backup ). both full and trn file...
Reviewing the error message you're receiving... The log in this backup set begins at LSN 38202000004450500001, which is too recent to apply to the database. An earlier log backup that includes LSN 38167000000015500001 can be restored. This indicates there is an earlier log backup that was taken prior to the log backup ...
0
0
510
2022-01-25T09:57:33.933
api_errors
dba.stackexchange.com
171,839
Start Linux scripts sequentially with blocking
I want to create a script to start two different scripts in sequence. The first script start an application server, which although the process has started (and i'm back at the prompt), it will only accept connection after a 'certain' message in its log; 'Server Blah Blah started!'. The second script essential connects ...
A sample of how you would do what you want in perl. [CODE] With the above code it will only run the second program if the word was found once the first program finish printing it is output. UPDATE: If the program does not output what you want but there is a log file where it will write the info you need, you can use it...
2
0
265
2010-08-18T13:34:12.327
infrastructure
serverfault.com
39,811
How to find broken links using Selenium C#?
Script for testing broken links using Selenium C#.
I personally wouldn't use Selenium to do this unless I had no other choice. It would be much more efficient to use a dedicated link crawler. That said, if I had to use Selenium, I'd do something on these lines (no guarantees on code correctness - I'm doing this from memory early in the morning): [CODE] The reason for t...
0
2
1,368
2019-07-03T08:11:05.467
data_quality
sqa.stackexchange.com
299,707
Updating varchar column over linked server with parameterized query causes remote scan and cursorfetch
I'm issuing a fairly simple update of single varchar column against a remote linked server. E.g.: [CODE] And that works fine when is written as an ad-hoc query: Parameterized Queries Bad When we do what we're supposed to do, and have our [CODE] issue it as a parameterized-query , the SQL ends up being: [CODE] The query...
I talk a little about the remote join hint here , people can speculate but if they can't reproduce it's pretty tough to give you an answer . In the meantime, you can use [CODE] in a slightly different way to take away SQL Server's choices between bringing any data between the servers: [CODE]
2
2
243
2021-09-16T15:29:23.080
database_errors
dba.stackexchange.com
120,476
charindex wrong result
Charindex returns no record if only one letter is provided. If parameter matches the whole word it shows the record. Why??? [CODE] Thanks for all your replies in advance.
You must declare it as (n)varchar(x) if you need a variable length string: [CODE] With a (n)char data type, shorter string will be stuffed with white space at the end: 'x' with data type nchar(5), becomes [CODE] .
1
4
849
2015-11-09T10:33:54.177
warehouse_errors
dba.stackexchange.com
6,422
Alternative to Test Run for manual testing?
In the past, at companies that didn't yet have a robust automated testing suite, I've used Test Run to manage manual test scripts for multiple users. It was a pretty handy tool, but the site now seems to be defunct - upgrading past the free trial is broken and nobody seems to be answering support questions. Before I go...
There's a LONG listing at the Ministry of Testing including a number of free tools like TestLink (Look for "Test Management" about 1/3 of the way down the page). Another list (conveniently divided into free and commercial tools, but not as extensive) can be found at QTPBook . I've used TestLink and it works well once c...
5
5
2,729
2013-07-16T16:40:17.517
data_quality
sqa.stackexchange.com
1,125,961
drbd: quorum and dual primary for ocfs2 without fencing?
Due to cephs poor performance on NVME i'm experimenting with OCFS2 on DBRD again. DBRD appears to initially have been built around the idea notifying an application of a hardware failure, and the application taking appropriate steps to move access to a new primary. This is not a useful pattern for our case. DRBD 9 ment...
Dual primary is limited to only two nodes. See this warning in the DRBD user's guide. In DRBD 9.0.x Dual-Primary mode is limited to exactly 2 Primaries for the use in live migration. Quorum requires 3 nodes or more. Thus you cannot use quorum in conjunction with dual-primary mode.
2
4
332
2023-03-12T16:33:44.340
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
database_errors
serverfault.com
523,789
Apache in front of JBoss 6 -> Some proxy errors
Here under my Apache configuration: [CODE] Here my JBoss connector configuration: [CODE] In my Apache error.log: [CODE] [EDIT] These errors appear around 1000 times per day but my web application seems to work as expected. What could be the problem ? Thanks, Bob !
Is SELinux enabled and enforcing? If so, you'll need to [CODE] to allow Apache to make connections to JBoss.
0
0
1,165
2013-07-16T17:39:25.867
infrastructure
serverfault.com
925,289
Modify http headers for specific URL’s with HAProxy
For a specific URL, I'd like to set cache-control headers for static assets such as [CODE] , [CODE] , etc. that tells the browser to use the local cache for lets say 30 days instead of fetching a new version. How can I accomplish this via haproxy config? Before this is misunderstood, this is not a duplicate of how to c...
You could probably accomplish that in one line, but it is clearer like this: [CODE] Explanation: the [CODE] keyword tells haproxy that it should add the request to a specific acl if the condition hits. [CODE] matches a subdirectory, whereas [CODE] would match the entire path. Maybe [CODE] is better here, it looks for a...
0
2
4,225
2018-08-07T13:21:17.397
data_quality
serverfault.com
925,455
supervisord sending SIGKILL instead of SIGTERM
I'm running supervisor 3.2.0-2ubuntu0.2 Ubuntu 16.04. I want to change the command that one of my processes uses, but I need to make sure that supervisor sends the correct signal to it so that the process may wrap up; unfortunately, supervisor is still sending a SIGKILL even though I've requested TERM. [CODE] If I foll...
supervisord sends SIGTERM to your worker, but the worker needs to intercept the signal and do the work to shut down cleanly. It then needs to send SIGCHLD back to supervisord. If supervisord doesn't receive SIGCHLD within a certain time period, it kills the worker with SIGKILL as a last resort. See the section on stopw...
5
5
14,631
2018-08-08T13:14:59.127
infrastructure
serverfault.com
549,094
Can not move SQL Primary File
In the process of moving/upgrading old SQL server 2005, I need to move some sharepoint PWA datafiles. After detaching the database from the files, I am trying to copy/move the DB files from their old location, to a new one. Getting the following error: I tried both as Domain Administrator and Local Computer administrat...
Permissions get changed on physical files when the database is detached. If you detached the database using a Windows login they get set so only the account used to detach has access (no others, not even the local administrators group). If you used a SQL login to detach then the SQL Server service account will be the o...
2
2
445
2013-10-28T09:33:35.227
database_errors
serverfault.com
296,915
Linux Kernel 3.0 & Xen
According to this article: http://blog.xen.org/index.php/2011/06/02/xen-celebrates-full-dom0-and-domu-support-in-linux-3-0/ Xen is now fully supported in the Linux kernel without patches. What is missing for xen support in e.g. 2.6.39.3 that you would download from kernel.org that is now available in 3.0? It's a little...
With 3.0 the kernel includes support for the xen block backend , which allows you to hand over storage devices (block devices) from dom0 to the domUs.
0
0
307
2011-08-03T01:25:05.373
infrastructure
serverfault.com
604,441
Apache httpd mod_rewrite with Tomcat resulting in lost JSESSIONID
I'm working on a Java web application, for which I recently implemented an authentication module that relies on the JSESSIONID cookie to identify users. I was testing on a local tomcat from eclipse and everything worked fine... Until I deployed the application on our VPS (Centos) with a bit of a more advanced setup str...
I did some more research after reading CédricC's suggestions and found this: Configuring Apache, Tomcat, mod_jk and mod_rewrite to serve up tomcat from top-level I followed the instructions by Kevin Loney to modify the http headers directly from Apache by using the mod_headers module. In the end I just had to add the f...
3
2
7,808
2014-06-11T18:25:28.243
pipeline_ops
serverfault.com
342,782
Is this one method interface a good response to this interview question?
Today I received a rejection letter from a company where as part of the interview process they gave a a couple days to respond to the following question (paraphrased): Let’s say say you have instances of class UserReview and need to save them somehow, using a storage service of some sort. Please provide pseudo­code, dr...
What they are basically asking you is to implement and describe a Repository pattern . I think the thing that shot the whole solution down is this : Ultimately, every Object should be representable as a series of bytes, and every data store should be able to store bytes. This is totally, completely, utterly incorrect. ...
1
2
315
2017-02-23T00:50:29.373
api_errors
softwareengineering.stackexchange.com
35,185
Locate element is not working in Appium
I have located element for my App, and which is not working My Code: [CODE] Using above code I can Launch my App as Well,Further no action taking place My Appium logs [CODE]
I think the problem is here : [CODE] You don't do any actions with this button, so after the wait of 60 seconds the driver can't able to locate the Email element.
0
1
905
2018-08-12T10:47:39.567
data_quality
sqa.stackexchange.com
361,098
Gnuplot in commercial online/offline applications
Gnuplot seems to be one of the rare applications with the level of perfection in rendering graphics (will be glad to know if any competitor exists to this level). My question is related to the license restrictions of this dependency if I want to use it in my computational applications. I am not well-versed with license...
The key is that the gnuplot software is not part of your software. I want to distribute the binary along with my software Yes, exactly. You will be distributing your own commercial software, and alongside it you will distribute a binary of the gnuplot software. You haven't modified it, so all is well. Anyone wishing to...
0
1
949
2017-11-22T11:39:11.263
api_errors
softwareengineering.stackexchange.com
40,548
Ethernet port sleeping on PS3 running linux
My lab has a PS3 running Ubuntu Linux 9.04 Server Edition. After a period of a few hours with no use, the Ethernet connection (eth0) seems to go to sleep, causing the connection to be lost. Pinging or trying to SSH into the machine results in no response. The fix I've been using is to access the machine locally and res...
I don't own one, so for this answer, YMMV. However, it appears that the PS3 implements some portion of 802.3az , which appears to be related to your issue. Rather than sending pings from outside of your PS3 unit, you should send it from the PS3 itself. This will tickle the network stack - and (hopefully) the ethernet p...
-1
1
212
2009-07-14T15:59:27.963
infrastructure
serverfault.com
867,584
Will Exchange DAG copy unstable/corrupt database changes?
We just set up a DAG environment between 2 Exchange Servers. One of the servers hosts the active databases and one hosts passive copies (no lagtime). I think this will work perfectly in the case of a hardware failure but I'm worried about the application-side of things. If our active mailbox database gets corrupted (ma...
You need to separate here between Logical and Physical corruption: Physical corruption: Will occur when the database from an ESE structure is no longer valid in some way. Those corruption couldn´t replicate. Its simply not possible by Microsoft design (Exchange performs multiple steps to validate the logfiles; more inf...
1
2
1,042
2017-08-08T18:22:57.557
airflow_errors
serverfault.com
471,887
Postfix smtpd won't talk to saslauthd
I have an saslauthd setup to authenticate against PAM. It seems to do its stuff: [CODE] I have libsasl 2.1.23, postfix 2.7.1. I have a postfix configured thus: [CODE] With a master.cf thus: [CODE] However, trying to authenticate in this postfix gives the following error message: [CODE] authentication failed: authentica...
This cyrus-sasl mailing list post eventually set me on the right path. For posterity, an attempt to produce reasonably explicit config. /etc/postfix/main.cf: [CODE] The trick in above conf is that postfix+libsasl2 does this: ${cyrus_sasl_config_path}/${smtpd_sasl_path}.conf Once we have gotten that far, in /etc/postfix...
2
3
6,167
2013-01-23T22:35:00.167
api_errors
serverfault.com
783,608
Upgrade Debian release 7.11 (wheezy) to 8.5 (jessie)
I have a Debian system (virtual development box, not reachable from the internet) which has not been updated for a while. Now I'd like to make up for this, but it seems the sources are not available any more: [CODE] I was able to [CODE] from 7.4 to 7.11 today, but this seems to be all I can get. Is there a way to succe...
Upgrading to Debian 8 Jessie is more complicated than simply running [CODE] . I’ll summarise the steps involved but I’d strongly suggest that you fully familiarise yourself with Upgrades from Debian 7 (wheezy) from the Release Notes for Debian 8 (jessie) . Configure the package repositories. You modify the configuratio...
1
4
5,347
2016-06-13T11:04:11.857
infrastructure
serverfault.com
304,506
How can I run terminal commands at startup on a Mac OSX server?
For example, when the server boots I need to start Tomcat, and I need to start an Android emulator, and then issue some commands to it. These are on the path already. I'm familiar with Linux and understand the basics of Daemons, and I suspect it will be something similar?
LaunchDaemons are the preferred way to do this in OS X. Each daemon is controlled by a .plist file in /Library/LaunchDaemons (for add-on daemons; the builtin daemons are in /System/Library/LaunchDaemons) which specifies when to start the daemon (e.g. on load, when a connection is received on a TCP port, at certain time...
0
1
528
2011-08-24T13:15:02.643
infrastructure
serverfault.com
502,306
mail received at sendmail has relay=localhost [[UNIX: localhost]] causing check_rcpt to say Relaying denied
I have setup my local sendmail as a Smart Host and trying to relay all incoming mails to a mail server. However, whenever i try to send a mail to an internet mail address, getting the following error: [CODE] I debugged the sendmail configuration file and found that this rule fails as its receiving the client_addr as lo...
See "Anti-Spam Configuration Control" in cf/README file in Sendmail distribution. IMHO It suggests that the following access table entry should fix you problem. /etc/mail/access entry (file requires compilation with makemap): [CODE] If it does not work (as you reported) then try [CODE]
1
0
1,036
2013-04-24T16:26:00.187
infrastructure
serverfault.com
578,316
CPU 100% on uWSGI master getting killed, server not taking requests
I am facing this problem where my uWSGI error logs show "UAAAAAAH my master disconnected: i will kill myself !!!". This has happened twice in 2 weeks and surfaces only when we deploy code, which does a uwsgi --reload /tmp/X.pid. uWSGI is controlled by supervisor but this step just reloads uWSGI, no errors are shown on ...
Apparently, I am running in to a open issue with this uWSGI. uWSGI open issues
0
0
3,223
2014-02-26T02:56:44.813
pipeline_ops
serverfault.com
219,954
Very large MySQL backup
At our company we have a very large MySQL server with almost 1.000 databases with a total size of 500 GB. Every customer has is own database. And each database has about 120-125 tables! In the past we made backups with mysqldump. The server is very slow while creating backups and it almost takes 5 hours to take backups...
The conventional approach is to set up multiple replicated slaves . You then backup from these slaves periodically ( [CODE] is probably fine for this part still). The master need not be blocked while the slaves are being backed-up; it will simply continue to replicate once those backups are done. Stagger the backups so...
1
5
6,324
2018-10-12T12:09:06.883
api_errors
dba.stackexchange.com
201,045
Windows Server 2008 expanding folders is Slow
On several Windows 2008 Server machines I'll log onto, when expanding folders in Windows Explorer with the treeview on the left, at times, it can take forever for the nodes to expand. Oftentimes there'll be some type of animation icon. I'll also usually see a BG progress meter in the address bar at the top of Windows E...
In my experience this is quite often an active virus scanner aggressively rescanning files in the subfolders of the folder you are expanding. (Editorial: I find this behavior extremely annoying to myself and to all of my customers) Run some type of process monitor (procmon from SysInternals comes to mind immediately) a...
2
1
7,275
2010-11-12T03:16:41.280
infrastructure
serverfault.com
172,948
Failed To Insert Data Into Tables Using Postgres-XL and 4 Datanode
Recently, I have installed Postgres-XL-9.5r1.5 in a R630, 16 cores, 16 GB RAM. I configured 1 GTM, 1 Coordinator, and 4 Datanodes. I created a simple table sales_small_cat [CODE] I want to insert dummy data using [CODE] And I get [CODE] I traced the log of datanode below: [CODE] Is it a bug or my mistake? Please, enlig...
Finally, I found it as my mistake because I am still affected by ordinary PostgreSQL (9.4) behaviour. After I added [CODE] and [CODE] in the DML below, the data insertion is a success. [CODE] Frankly, I am still confused. Why does Postgres-XL need the [CODE] clause?
1
0
378
2017-05-08T09:48:56.487
hadoop_errors
dba.stackexchange.com
1,066,687
GCP storage refusing me access to a bucket on Cloud Storage even though I apparently have the necessary permissions
A colleague of mine has created a google cloud platform project for which we would like to use the Cloud Storage product. They have made me co-owner and storage admin in the IAM permissions. According to the google docs a storage admin has [CODE] permissions so I should be able to [CODE] bucket objects. I wrote a simpl...
Here the permission granted to the service account got applied not the permission given to you. We create a JSON key using the service account and give the path of the key to GOOGLE_APPLICATION_CREDENTIALS. I guess may be the service account got deleted or the service account doesn't have proper permission. May be you ...
0
0
1,580
2021-06-14T17:06:11.923
api_errors
serverfault.com
922,361
Unable to connect to oracle for java8
I've been working with setting up a few servers over the past week using Ansible. Everything has been humming along fine until today a couple of hours ago the java8 playbook I had been using quit working randomly. I haven't touched it or looked at it in weeks. I even did [CODE] to a known working version, still doesn't...
I was having that same error as well. Until the people at WebUpd8 update their package you need to edit it yourself. I used the answer you linked to, just with the new data: [CODE]
0
1
1,474
2018-07-17T21:17:35.357
pipeline_ops
serverfault.com
1,000,963
GCP: error while creating image
I am making an image from a ubuntu vmdk virtual disk. but I am getting an error The error: [CODE] Full log: [CODE]
Looks like your image is looking for some missing disks: "/daisy-scratch/Ubuntu 64-bit-s001.vmdk" Also you can see if your OS image is compatible with this tool. I recommend you to check if you're importing all the correct disks.
0
0
1,649
2020-01-29T18:51:59.050
infrastructure
serverfault.com
142,606
Find Missing Dates in My table
I have a make table that figures daily pride and assigns the current date to each line. I want to be able to run a query to pull all pride numbers from 06/01/2016 to 06/30/2016 and then run a query to find the dates in which there was no pride information entered if we could factor out weekends that would be even bette...
In your code, create a table [CalendarBusinessDay] with columns [CalendarDate] as Date/Time and [BusinessDay] as Yes/No where weekend dates are False. Add the appropriate month's data with a simple code loop. Run this query: [CODE]
-1
0
436
2016-06-29T19:42:31.273
warehouse_errors
dba.stackexchange.com
431,338
Why are sort() and reverse() JavaScript methods in-place?
Which are the technical reasons/considerations for the [CODE] and [CODE] JavaScript array methods to be in-place operations instead of returning a new array without modifying the original one, like the [CODE] or [CODE] methods do? I want to understand the technical reasons that drove such decision, why those methods do...
Arrays were originally implemented as hash tables. Keys (buckets) were converted to strings and hashed. v8 still implements it as a hash table, but also supports a fixed array ( ref ). The language specification (with updates) defines it as in-place, but I couldn't find a relevant design document regarding that decisio...
8
5
763
2021-08-24T21:14:40.513
api_errors
softwareengineering.stackexchange.com
941,188
Allow GRE (IP protocol 47) over Linux router NAT for a subnet
I have network setup as shown below: The VPN server running is windows 2012 server default VPN, which uses GRE protocol. I am able to have VPN connection to that remote vpn server, from my intranet single IP only. But I am not able to connect for range of intranet IP 172.16.14.0/24. The problem is with linux router, wh...
I found the solution. I did this: [CODE] Then add [CODE] I was using Ubuntu 18.04.2 LTS, kernel version 4.15.0-45-generic. There was no need to do anything related with GRE protocol inside iptables PREROUTING, POSTROUTING tables. Adding just above two lines worked.
3
4
10,412
2018-11-22T09:15:17.737
infrastructure
serverfault.com
1,112,001
Postfix: How to reject mail to non-sender?
Does anyone know if there's a way to reject mail to recipients that aren't the sender? That is, sender can only send mail to him/herself. My take is that [CODE] probably isn't designed for this. Any advice appreciated.
In postfix there is no simple configuration where you can say condition like "if recipient = sender". Also in general case there is more then one recipient in one mail can be. So what you suppose to do with such mail? Postfix cant "split" mail for each recipient and send it only to one of recipients. So you may want to...
0
1
84
2022-09-30T18:58:35.677
infrastructure
serverfault.com
1,020,146
Independent testing on scaled deployments in Kubernetes
I am trying to figure out the approach to achieve the following. I have a multiple deployments for a few components that together complete my application. For simplicity, let us assume there is a frontend, a backend and a database. When I deploy (with 1 pod each) all the components and release the frontend behind an ex...
Load balancer isn't meant to balance your traffic between different [CODE] but between a set of [CODE] within one [CODE] . If you have only one [CODE] in each of them, there is actually nothing to be balanced. If your [CODE] [CODE] consists let's say of 3 [CODE] , [CODE] takes care to distribute your traffic evenly amo...
0
1
41
2020-06-05T06:29:02.203
pipeline_ops
serverfault.com
533,838
How send email from command line specifying the email subject and using postfix?
I installed Postfix , and get the [CODE] binary. What I want is send an email alo [CODE] But the [CODE] option is not recognized. How send email from command line specifying the email subject and using postfix?
Take a look at mailx : echo "hello world" | mailx -s "Test from CLI" recipient@example.com
1
1
5,292
2013-08-26T14:13:24.667
infrastructure
serverfault.com
1,033,951
Remi: Which repository contains what?
If I add the remi repository with [CODE] I get 3 files in [CODE] that declare following repositories: [CODE] I'm missing some few introductorily words about how the packages are organized and when to use what. When should I use the remi, the remi-safe or the remi-modular repository?
As a general rule you should enable [CODE] , [CODE] and [CODE] (but all three of these should already be enabled). These repos together contain the packages and module streams you expected to install from remi. These repos break down as follows: remi-safe contains packages which are required by other packages in the ma...
2
5
2,542
2020-09-15T10:25:25.223
infrastructure
serverfault.com
66,370
Replicating 3000+ SQL Server databases
I'm currently investigating the different options there are setting up a DR site for our main data centre. In an ideal world, we would have fewer, larger databases, however due to architectural constraints with the product, we have about 3000+ small (50MB to 300MB) databases. I’ve had some experience with replication a...
Yes, I've got clients with 1k-10k databases per server. (Fog Creek is actually one of them, and I can mention it here because I know Joel's talked about it on the podcast.) Usually you run into problems at this scale, and you start thinking about moving down to VMs instead - it's easier to manage more virtual SQL Serve...
3
1
260
2014-06-02T09:29:36.963
database_errors
dba.stackexchange.com
40,985
SQL Server Management Studio missing when I installed SQL Server 2005
For some reason SQL Server Management Studio is missing when I installed SQL Server 2005 Developers Edition. Any reason why or how can i get SQL Server Management Studio on my PC? My operating system is Windows XP Pro.......... Thanks in advanced!
This is a common problem, the SQL 2005 install does not often install manamgent studio, even though you tell it to install all the tools. The easiest way to get it installed is to look on the CD, or setup file location and run: [CODE] if your using the X64 version use: [CODE] Source
2
4
3,821
2009-07-15T11:42:41.607
database_errors
serverfault.com
418,676
how to sync/flush after fdisk in linux (busybox)
when I change the partition table in Linux (busybox) and exit fdisk I'm still able to mount the old partitions, until I perform a reboot for example [CODE] I would assume d) would fail since the partition has been deleted? what am I missing?
The OS must be "forced" to re-read the partition table once changes have been done. A reboot does this and hence you see fdisk changes after a reboot. I've used the following command before to re-read partition table and I didn't have to reboot, [CODE] partprobe is part of parted package
2
4
6,849
2012-08-17T16:09:40.300
infrastructure
serverfault.com
401,444
REST API include permissions into resource
We currently have REST API, where you have a set of different resources, like: [CODE] Clients decide whether they can perform an action based on resource permissions. To query those the client calls: [CODE] And gets back a list like "deleteCat", "sellCat", "initiateCatMating" etc., so its more complicated than read, wr...
I was thinking whether it would be a good/acceptable practice to include the permissions in all resources This way the client will always know what it can do with the resource. You are really close. In REST, the answer is hypermedia affordances . Think about the web. How do you, as a client, know what you can do? You l...
2
5
1,642
2019-11-22T09:02:32.073
api_errors
softwareengineering.stackexchange.com
706,994
Gateway can't ping client
I tried to setup a new gateway in my virtual network, but I'm sure I have a problem. The gateway cannot ping the client but the client can ping other clients and the gateway. I have checked my iptables rules (I don't see a problem). Current iptables rules: [CODE] Current route (xxx.xxx.xxx.xxx is the public IP): [CODE]...
There is no rule that allows incoming traffic from your gateway, it only allows traffic when it is already established or related. If you want to only allow ping from the gateway you can use something like this: [CODE]
0
0
1,346
2015-07-20T09:23:30.760
infrastructure
serverfault.com
1,137,968
shared mail address with postfix and dovecot
I'm trying to set up some shared mailboxes like contact or support. I have made it possible for me to share an IMAP folder between users in Dovecot by doing this in 15-mailboxes.conf [CODE] and then I'm using ACL to control who has access to each folder. I want to make the support and contact mail addresses public, so ...
I have found a solution! If I just use postfix alias feature, I can make postfix deliver it directly to the mailbox and not lookup if the "user" exist So the way I did it was to update my alias file and added: [CODE] I will have to test if this means that I have bypassed spamassasin and the virus scanner. I will update...
0
0
401
2023-07-20T08:15:56.837
infrastructure
serverfault.com
14,680
Cannot Instantiate class error - Selenium WebDriver
I am facing this [CODE] error on running one of my test cases in Selenium webdriver using Java. Below is the class of the functionality of the test, [CODE] Below is my Test Case Class [CODE] Below is my Lib class, that contains the chrome driver configuration [CODE] When I run my test case class, I am getting the follo...
It looks like your [CODE] instance is created in one class( [CODE] , (should start with Capital letter BTW)) but you are trying to access it in another class( [CODE] ). If you want to use a class instance in another class, you have options. Some of them are: Add a getter method . Add a [CODE] method in the class where ...
1
1
87,530
2015-09-11T21:12:04.727
data_quality
sqa.stackexchange.com
989,574
Large numbers of "relay access denied" from same sender with helo=<[127.0.0.1]>
I've noticed large numbers of these lines in our logs recently (where ourdomain.com is a domain we control and 14.242.x.x is an IP outside our network): [CODE] They appear to be sent from localhost. How can I track down the source of these attempts?
These attempts are coming from 14.242.x.x. - The helo bit can be ignored as that what the remote mail server is claiming (unlike the IP address which is recorded by your server). The relay access denied is presumably because they are trying to send email externally from an unknown address and without appropriate author...
0
1
89
2019-10-27T21:32:00.350
infrastructure
serverfault.com
169,477
Invoke-PolicyEvaluation fails with xml files on network location
I am just starting to explore using Policy Based Management in SQL 2016. I created a policy that runs in SSMS just fine. I exported the policy to a folder on the local machine (VMSk1) that is shared to Everyone/read. I go to a second machine (VMSk2) and execute the following powershell. The idea was to have a central l...
Nope you are not missing anything, the command does not support use of UNC paths. At some point when the SQL Server module is published onto GitHub we might be able to help Microsoft fix that issue. However, until then you can work around it by using [CODE] to map it to a drive letter and that should work.
0
0
124
2017-04-07T16:05:42.973
warehouse_errors
dba.stackexchange.com
306,773
How can I install Data Quality Services on a Denali CTP 3 installation?
I want to take a look at the Data Quality Services feature in the Denali CTP; I happen to have a clean Windows 7 virtual PC image, and have installed the CTP. Running up the DQS client gave the error: The SQL Server instance that you are trying to connect to does not include an installation of Data Quality Services. To...
It appears that if SQL Denali test patch 11.0.1515 has been installed, then you cannot install DQS without first removing the test patch. I did this via Control Panel, and the remove updates option, which seems to work, although I'd strongly advise anybody wanting to play with DQS to just not install the patch in the f...
0
0
1,690
2011-08-31T11:10:01.537
database_errors
serverfault.com
278,595
At my wits end trying to create my very 1st MySQL stored procedure
I am trying to create a stored procedure in MySQL 5.5.8. using connector 8.0.13. Once this procedure is debugged, it will have to be embedded into a c#.net application, to be created on the fly every time the program is set up. For now, I am doing it manually. For someone like me, with MS SQL, Oracle, and DB2 backgroun...
When I gave up on creating the stored procedure through SquirrelSQL and installed MySQL GUI Tools, then I was able to create the procedure with the exact same source, by using Catalogs, selecting my schema, switching to the Stored procedures tab, and clicking Create Stored Proc button at the very bottom.
3
0
146
2020-10-23T23:39:37.290
database_errors
dba.stackexchange.com
841,094
Listing all packages, but without addional text
In this time I am working of project, what tell you, what software you have installer and what you can install. In this time I have problem with this command: [CODE] . This command returns me package names, that's good, but I need hide the other text along it: What i get: [CODE] What I want to get: [CODE] Thanks!
[CODE] should do that. What you are doing is: pipe [CODE] of the [CODE] command to [CODE] command. [CODE] parameter of [CODE] commands instructs [CODE] to use whitespace as delimiter and [CODE] to echo the second field.
-2
1
96
2017-03-28T17:08:25.223
infrastructure
serverfault.com
49,660
Cypress: cy.type() requires a valid time with the format with the format HH:mm, HH:mm:ss or HH:mm:ss.SSS
I am automating using cypress, there is a time input in the application. The html of it as follows: [CODE] The code that I used to identify the element is: [CODE] Code to enter data in it is: [CODE] When I run the test, cypress gives this error: [CODE] Also, cypress does type 01:52:08 AM in the time input, highlights t...
It seems there are only three allowed formats for input type time : HH:mm (e.g. 01:30 or 23:15) HH:mm:ss (e.g. 10:00:30) HH:mm:ss.SSS (e.g. 12:00:00.384) You can also use [CODE] command : [CODE] Basically whatever is possible in JavaScript is possible in Cypress. So here you can invoke jQuery [CODE] method .
0
2
2,463
2022-01-15T17:48:10.240
data_quality
sqa.stackexchange.com
372,787
Libboost 1.38.0 on Ubuntu 11.04 Natty
I have a Linux/Ubuntu DLL that depends on [CODE] . I've tried various ways including building my own version of LibBoost 1.38.0 yet none of my methods have worked. I was wondering if 1.38.0 is available pre-compiled on earlier versions of Ubuntu or if my architecture (64 Bit) is not compatible with LibBoost. Does anyon...
Normally when you are trying to compile against a library on Linux or any other UNIX with [CODE] or various other compilers the following flags need to be set: [CODE] [CODE] could be [CODE] , [CODE] or any other directory that library may be located in [CODE] is in your case: [CODE] If you are doing this on Ubuntu and ...
0
1
160
2012-03-23T15:58:05.370
infrastructure
serverfault.com
322,082
Function does not exist then dumping mariadb database to remote host
Im trying to do an initial transfer of my data to a replica server by running this command: [CODE] It copies most of the data, but stops on one of the functions i've created with this error: ERROR 1305 (42000) at line 3750: FUNCTION mydb.myFunction does not exist mysqldump: Got errno 32 on write I have both procedures ...
You should try doing mysqldump without the stored procedures In your case, it would be [CODE] You should also dump the stored procedures into a text file See my old post Dump only the Stored Procedures in MySQL In your case it would be [CODE] Have a look at the file [CODE] then import the stored procedures like this [C...
1
1
796
2023-01-13T13:29:52.433
database_errors
dba.stackexchange.com
578,228
How to troubleshoot slow performance on AWS EC2/RDS?
We recently moved our web servers from some 10 year old boxes to AWS EC2. Usage of the site is currently higher now (it's our busy season) and the site has become much slower, which is unexpected because our instance sizes are much higher than what we had previously. We run a pretty small site that only gets a few hund...
Finally tracked down the cause of our problems. Apache was misconfigured to have a Keep Alive timeout for 30 seconds. That combined with an overly aggressive AJAX script was causing the site to hang and wait for a connection. Turning [CODE] down to 7, as well as taming the AJAX script, brought everything back to normal...
5
6
18,568
2014-02-25T18:42:41.150
database_errors
serverfault.com
221,268
Is doing two things on one line always a bad practice?
[CODE] I have the impression that doing two things in one line is bad practice. This is why I am advancing the iterator outside of the only statement, using it. However, I feel blindly following a rule. Is this code less error-prone than if the [CODE] is inside the function invocation? Why? Does this rule apply to such...
It is not always bad practice to do multiple things on one line, but it does have a higher risk of making the program appear more complicated that it needs to be. If I were pedantic, I could argue that in the line [CODE] , you are also doing multiple things, but very few people would mark that line as a violation of th...
6
26
707
2013-12-13T09:02:05.210
api_errors
softwareengineering.stackexchange.com
212,419
How to remotely connect SQL Server 2016. Since we have 2012 and 2016 in same server
Issue I am not able to connect to a SQL Server 2016 instance on a remote system/server. My Existing Environment Windows Server 2012 SQL Server 2012 and 2016 installed on same server I tried to enable a firewall rule for SQL Server 2016 with port 1433. But it is not working. Same thing I tried with SQL Server 2012 it is...
Sometimes you need to open firewall rule for UDP 1434 SQL Browser port. Be sure SQL 2012 and 2016 don't use same TCP port (1433). If multiple instance on same machine they should be configured to use separate TCP port.
3
1
477
2018-07-17T06:50:27.670
database_errors
dba.stackexchange.com
308,713
Multiple Computed, Dependent Columns on INSERT in SQL Server?
I'm relatively new to database programming and am looking for some some theory/best practices and feedback on an issue involving multiple dependent, cascading, computed columns for an OLTP SQL Server/Azure environment. For some context, I've already translated a heavily denormalized reporting table that had hard coded ...
For what it's worth, I think you already have the solution you're looking for: using [CODE] computed columns . As a side note, you might want to ease up on your exchange rate datatype definition a little, as exchange rates can fluctuate wildly . I've gone with [CODE] below as that tends to maintain typical FX rate prec...
2
2
205
2022-03-14T18:50:06.220
data_quality
dba.stackexchange.com
333,670
Failed RAID 1 or 5 (mirrored or parity) hard drive replacement requirements
What are the general replacement requirements for a failed RAID 1 (mirrored) or 5 (parity) hard drive? Does the replacement drive have to be exactly the same (1) model and/or (2) size of the original failed drive? With regard to replacement size, I assume it would have to be at least the same size or larger. Can I use ...
In theory, you can mix-and-match the disk types as much as you want as long as the replacement disks are all of the same greater size. In practice, you really do NOT want to mix the drive types: it introduce a level of complexity (because the disk physical layout are different) that usually causes the whole thing to be...
1
3
1,209
2011-11-22T13:57:54.017
infrastructure
serverfault.com
588,391
How to get Doveconf to reload its config or read from `/etc/dovecot/`?
Edit Ok, so if you care to read the original question, you'll see I've had a fun time with this. I'm running Ubuntu 13.10 - Dovecot v2.1.7 - And it seems my original problem was due to some misconfiguration - so, I re-configured this and that in [CODE] - to no avail ~ So, today, I noticed that the output of [CODE] does...
I'm not exactly sure what the problem is, but you can obtain more information about what is going wrong by enabling the debug log [CODE] and by ensuring that the changes you've made to the configuration are actually seen by dovecot. The easiest way to verify what dovecot is actually using at runtime is the doveconf com...
0
1
9,464
2014-04-11T14:09:57.987
infrastructure
serverfault.com
1,132,953
How do I configure nginx to remove a part of the URI given to index.php
The routing script of my application expects the URI to be [CODE] My request goes to [CODE] How can I configure nginx to remove the "/subdir" from the URI, providing the expected path to the application's router? I tried this one, but got only "404 File not found" from the server (not the app): [CODE] With the rewrite ...
You don't have any location block that will handle the request after the redirect (lets say after the rewrite, your request changes from [CODE] to this [CODE] , there's no matching block that will process such requests. I would suggest to take out the nested location block outside, also add the root location block (if ...
1
1
407
2023-06-09T14:22:13.033
infrastructure
serverfault.com
28,827
Sequence of testing including Smoke Sanity Functional and Regression
Lets assume we have 5 modules in the application. Module 1 interacts with Module 2. We are in Sprint 15. In Sprint 15, there is new functionality added in Module 1. When the build of sprint 15 is deployed in QA, what must be the sequence of testing- Should we it be Smoke->Sanity->Functional->Regression? Considering, th...
ok, so this question is really broad, but the underlying goal seems consistent in the order of testing within a sprint cycle. I'll try to address that with the understanding that the depth of testing is entirely dependent on analysis and what your application is and what was modified. Beginning Point : Once Dev is comp...
1
2
2,731
2017-07-30T13:11:42.840
data_quality
sqa.stackexchange.com
402,613
Storing and filtering spatial data within RAM
I'm trying to figure out what's the proper way of storing and filtering spatial data inside a running program. I have a 2D map of theoretically infinite size. Users generate objects which are placed on the map, so infinite objects, theoretically. I'm storing all this data inside an SQL database. Whenever a user opens t...
I see you found a library that seems to meet your needs but there are multiple options here. The general structure here is called a spatial index . One the simplest and easiest to understand is called a quad-tree . You divide your space into 4 equal size sub-spaces and add those to the root. Then if any of the nodes co...
2
6
78
2019-12-17T16:09:07.147
api_errors
softwareengineering.stackexchange.com
31,945
Automatic Test with Selenium - Log in and send email
I have been studying testing for 2 days and I am trying to make automatic test where a system have the below Two steps : Log in into Email Send a email I completed first step and I have problem with second. After login, the system will click button "Create Message" but it doesn't get clicked . Window with new message c...
Try to set an implicit wait. 90% of the times the problem is a synchronization issue: [CODE]
1
1
249
2018-02-07T07:16:11.417
data_quality
sqa.stackexchange.com
594,558
Passenger Module Fails On AWS Gem With 'Class Variable Name' Error
Opening Disclaimer: I'm all kinds of newb to the technologies involved in this question. But the Googles, she no yield-a the fruit. I'm trying to deploy a Rails app into production. This app works fine using WEBRick. I am also using the AWS gem to retrieve data from S3. I have installed and set up Nginx with Passenger....
It is due to the fact that [CODE] is doing something evil. If you look at the code in that stack trace, you can see that they open class [CODE] and add cattr_reader and cattr_writer. ActiveSupport also does this and adds methods by those same names to [CODE] I do not have the code but I am pretty sure that when you use...
2
1
593
2014-05-12T14:42:20.660
infrastructure
serverfault.com
1,084,860
Can't connect to my FTP server from another PC on the same network
I have setup an ftp server on Microsoft IIS on a windows 10 PC. I have installed all the "World Wide Web Services" Set up the ftp site with the PC's IP address and default port Allowed specified users access to the site. Created a rule in the firewall to ensure the port is not blocked. Enabled the rules for the ftp por...
The connection is most probably blocked by the Windows firewall. While the Windows firewall is automatically configured with rules for the ports 21, 990 and 1024-65535, when IIS FTP server is installed, the rules are not enabled initially. To enable or change the rules, go to Control Panel > System and Security > Windo...
0
2
2,094
2021-11-29T14:01:52.537
infrastructure
serverfault.com
832,137
My DNS server appears to be correct but when I run online test they dont resond locally they answer and give valid response
[CODE] [CODE] When I try to access it only works locally. If I add the DNS to search, i.e. windows DNS to specify a server it works Now to me it appears as it should work at this point I am waiting to see if it will propagate but not sure if this is working properly to respond to external queries.
[CODE] only responds over TCP, not at all over UDP. DNS is primarily used over UDP (but also TCP in certain scenarios), so this will be a significant issue. Is there maybe some firewall in place that causes this? You'll want to make sure that both 53/udp and 53/tcp are reachable.
0
1
26
2017-02-12T17:09:22.767
infrastructure
serverfault.com
281,287
Creating a table with Rank ordering in Oracle
I am trying to create a table in Oracle as follow: [CODE] hops.staging_test is basically the same table without the PRIORITY_ORDER column. However, I am getting an ORA error because you can't order by in a create table statement. Is there another clever way to do this? Thank you!
The way you put it, it is not that [CODE] causes problems, but the fact that [CODE] is a reserved word and can't be used as a column name: [CODE] But, if you enclosed it into double quotes while creating the table, then yes - it'll "work" (but - do you really want to do that? I wouldn't): [CODE] So: presuming that this...
0
2
102
2020-12-10T16:59:42.037
database_errors
dba.stackexchange.com
213,101
Sleeping Barber Problem (with multiple barbers)
The Sleeping Barber Problem is a classical synchronization problem that many of you may be familiar with or at least heard of. It's based on the premise that a barber (a thread) sleeps when there are no customers (each customer is a thread) in the waiting room (which is a semaphore). If there is someone, he cuts his ha...
With one barber, you only need a message queue (the waiting room). Semaphores are embedded in it. With multiple barbers, coordination aims at: preventing several barbers from cutting hair of the same customer. preventing from having only one busy barber while the others sleep all day long.
6
2
12,596
2013-10-02T03:03:17.787
api_errors
softwareengineering.stackexchange.com
66,665
Security Tab missing on internet explorer
I have a windows 2003 SBS domain, which I administrate to the best of my limited abilities. I need to install an active X-control for which I must change settings in internet explorer. It surfaced that on all computers in the domain the Security tab in internet explorer (8) is disabled. I vaguely remember to have done ...
Run the Group Policy Results wizard in the GPMC for one of the affected computers and users. This will show you which GPO's are being applied and the settings that are being applied by those GPO's.
1
2
9,280
2009-09-18T12:34:07.133
infrastructure
serverfault.com
294,550
What can go wrong while querying INFORMATION_SCHEMA for schema names?
In this doc page on the use of the SQL standard [CODE] views, on the columns about schema names, the following warning is repeated each time: ** Important ** Do not use INFORMATION_SCHEMA views to determine the schema of an object. INFORMATION_SCHEMA views only represent a subset of the metadata of an object. The only ...
The [CODE] is a deprecated schema that I believe Microsoft keeps around because it's a notion of ANSI SQL (SQL-92) compliance. As the warning you quoted mentions, the [CODE] may be missing meta-data and information on some of the objects in your database. But Microsoft created the [CODE] schema as a more complete and c...
0
1
1,162
2021-06-19T22:07:00.453
warehouse_errors
dba.stackexchange.com
332,901
Using SSH to find access to a problematic script in logs of multiple domains
I run several (~20) sites on a Dreamhost VPS. Lately I max my memory allocation for the VPS and I want to find the problem. I would like to have an SSH script that will scan all the log files of all the domains and show me what object (image, php script etc) gets lots of calls. It will count the calls in each /logs/*/h...
The bit where you asked for a script to "...count the calls in each /logs/*/http/access.log, do an descending sort and show me the top 10 across domains." can be achieved with this: [CODE] But you could get the same information out of AWStats or Google analytics. It's really just a list of all URLs aggregated and sorte...
0
2
166
2011-11-20T09:47:30.587
infrastructure
serverfault.com
450,628
Apache 2.4 + PHP-FPM + ProxyPassMatch
I recently installed Apache 2.4 on my local machine, together with PHP 5.4.8 using PHP-FPM. Everything went quite smoothly (after a while...) but there is still a strange error: I configured Apache for PHP-FPM like this: [CODE] It works, for example if I call [CODE] I get the correct [CODE] (it is just a test file). If...
After hours of searching and reading Apache documentation I've come up with a solution that allows to use the pool, and also allow the Rewrite directive in .htaccess to work even when the url contains .php files. [CODE] As per Apache documentation, the SetHandler proxy parameter requires Apache HTTP Server 2.4.10. I ho...
36
43
119,112
2012-11-20T20:27:48.327
infrastructure
serverfault.com
284,758
Is is possible to write a "Brainfuck with variables" compiler?
I'm on a quest to write a LISP-ish language that compiles to Brainfuck. Well, it's a stack of intermediate compilers actually. Currently I'm trying to write the one that transforms this code: [CODE] into: [CODE] It's standard Brainfuck, but with variables added. The compiler is responsible for two things: Assigning [CO...
It depends on whether you want to replace [CODE] and [CODE] with variables or really add variables to the language. In the first case, you probably lose Turing completeness (because you only have finitely many memory cells). It may remain Turing complete if each cell can hold arbitrarily large values, but honestly I'm ...
4
4
1,118
2015-05-23T14:20:03.787
api_errors
softwareengineering.stackexchange.com
300,091
How to recover data from failed Intel Matrix Storage Console rebuild process?
I have a server with 3 hard drives: one System Drive and two drives in RAID1 for data. Raid1 is done via Intel Storage Matrix software. Today Intel Storage Matrix said that array is degraded and must be rebuilt. I clicked rebuild array. After that I was no longer near this server. When I got back I was told that the pr...
You could spend a copious amount of time trying to figure out what went wrong and how to fix it. Or you can blow away the array and restore from last night's backup. I assume there wasn't much new data on the drive as it doesn't appear to have been working recently.
0
3
2,299
2011-08-11T13:40:18.317
infrastructure
serverfault.com
312,198
Restrict access to a new schema to a specific role despite users having db_datareader?
I'm working in a SQL Server 2016 database that is not of my design nor can I fundamentally change the security structure. I know it is likely trash/worst practice but I have to play the hand I am dealt at the moment. I'm trying to restrict access to a schema to only members of a role, but everyone seems to have db_data...
Members of db_datareader can in fact read any table/view in any schema. Which is why it's often advised not to use this role if you need finegrained access control. You could create a new 'common_read' role, and just assign your users/groups to that one - and make a more restrictive grant (ie. don't grant access to 'se...
1
0
1,851
2022-05-16T16:27:14.137
data_quality
dba.stackexchange.com
994,224
Issue with Powershell script not filtering by date
I've put together this powershell function to basically pull events from the NPS log (Specifically denied authentication attempts) from the last point the script was run (the $date variable), sort out the IP and date the log entry was written on and add it to an array ($array) and export it to a CSV log. Then I use the...
[CODE] contains the full date and time, I would suggest removing everything except the time, as that may prevent the script from matching logs based on the time.
2
1
198
2019-12-04T05:18:20.407
api_errors
serverfault.com
954,066
ldap_add: Insufficient access (50)
I can't add an Attribut ! can anyone help me to resolve this error !? [CODE]
LDAP result code insufficientAccess(50) means that the currently bound identity for the LDAP connection is not allowed to apply this particular modify operation. You did not provide any relevant details. So it boils down to: You have to check whether your LDAP client correctly binds to the LDAP server. You have to chec...
0
1
3,799
2019-02-15T07:28:37.490
infrastructure
serverfault.com
325,030
WordPress shows only internal IPs
Yesterday, I set up a WordPress "cluster." Now I have a problem: WordPress and stat-plugins only shows the users as internal IP addresses like 10.0.0.2. My nginx configuration is: [CODE] Second server block: [CODE]
it looks to me like your using a single nginx vhost to then reverse proxy into multiple servers all running nginx/php-fpm correct? it also looks like your trying to use x-Real-IP from nginx - http://wiki.nginx.org/HttpRealIpModule however your missing one vital header in your second nginx vhost: [CODE] this will allow ...
1
1
1,136
2011-10-26T17:38:02.797
infrastructure
serverfault.com
931,359
Working around firewall to install packages
Hi I've been using linux for couple years now but never really sent much time on sysadmin stuff so I sort of know pieces of the answer but I need someone help me fill in the gaps. I have an EC2 server on AWS that I need to install mongodb on. Usually I can just add mongo repo and [CODE] etc. but this time the network w...
Use [CODE] and set up APT to use a socks proxy to point to the port you speciified: [CODE]
0
0
49
2018-09-17T21:01:45.727
database_errors
serverfault.com
957,506
Upgrading Server 2016 to 2019, getting Windows 10 error
I'm upgrading a server from 2016 standard to 2019 standard. I choose to save settings etc, but then I get this message and the KB doesn't tell me anything worth while. "Windows 10 setup 1809 build 10.0.17763.1. This version is not current. For more info, go to KB4464619."
Disconnect the network before attempting again Stop the installation process. Delete the [CODE] folder Disconnect the network cable or disable the Network interface Re-try the installation process.
1
0
2,092
2019-03-09T14:42:11.237
infrastructure
serverfault.com
156,220
no-www CNAME in windows DNS
I've asked the sysadmin of a client of mine (runs windows) to create the following CNAME records for their new website: [CODE] The problem is that he cannot create the second entry. I know how this is possible in Linux with bind, by using an ending dot on the alias, but how is it possible in windows DNS? I guess what h...
You don't say what the error is, but it is probably correct. The root of the domain will have at least SOA and NS records (and possibly MX and A records too). DNS doesn't allow a CNAME to coexist with other records. See RFC 1034 section 3.6.2 : If a CNAME RR is present at a node, no other data should be present; this e...
1
5
1,622
2010-06-30T09:46:37.367
infrastructure
serverfault.com
3,512
Fact table foreign keys null?
I am new to data mart design and need to clear a few concepts. I have read up a bit on dimension modelling where I see that fact tables store foreign key references to dimension tables. Now suppose I have a phonenumber dimension table and a phone_extension dimension table. (These tables have different details because o...
You can leave the FK to some dimension tables as NULL if those dimensions are not known or not applicable. You just have to remember to use outer joins when you do your reporting query. Alternatively, some people create a "none" and/or an "n/a" dimension record for data mart dimensions and then populate fact table FKs ...
11
12
7,604
2011-06-27T16:05:10.707
warehouse_errors
dba.stackexchange.com
200,723
naming convention for different types of functions (use prefixes or suffixes?)
Does anyone have suggestions for naming conventions for different types of functions, particularly wrapper functions that need to connect to and disconnect from the database vs. wrapper functions that are passed a db link and don't need to connect and disconnect? The project on which I am working has these types of fun...
If you are using an OO language that has polymorphism, it should already be apparent from the method signatures which method you need to call: [CODE]
6
4
4,397
2013-06-06T22:11:39.220
api_errors
softwareengineering.stackexchange.com
163,340
Temporal tables extension error with array columns
I'm using the temporal tables Postgres extension ( http://pgxn.org/dist/temporal_tables/ ) on Postgres 9.5.4 on Windows. This works well for most cases, but I'm running into a weird issue with array columns. I've created some minimal steps to reproduce this, the setup of the table and the temporal tables extension is t...
The problem is versioning.c:412: [CODE] When I changed to show [CODE] , result was: [CODE] I found the problem is in [CODE] (PostgreSQL function) does not correctly fill this field for tables created by [CODE] . I do not know how to repair it. But I found a solution: [CODE] After that: [CODE]
4
4
509
2017-02-06T12:39:02.803
warehouse_errors
dba.stackexchange.com
31,552
While hiring can I ask a QA candidate to find bugs on this game as an interview homework
While interviewing a QA candidate, we showed him our company's game from the Google Play Store. We asked him to play a bit and tell what the game is about. The game is simple enough, and we expect him to quickly understand when the game is over, what each item gives the player, etc. This is a test to see his logical th...
This may be culture-specific, but from my point of view, you’re asking for someone to work for free. The interview should be the interview; you don’t ask someone to do more work after the interview. And from your point of view, how do you know you can trust that the person in question was the one who did the homework? ...
17
83
15,430
2018-01-15T14:14:39.657
data_quality
sqa.stackexchange.com
622,962
ERROR : MySQL server has gone away while running query
I am using ubuntu 12.04 version. I am connecting properly to MariaDB from command prompt,I have a database named Dealer and have some tables in it but when i running any query, it gives an error.My steps as follow: mysql -uroot -proot use dealer; select * from dealer_outlet limit 1; now error occours ERROR 2006 (HY000)...
Since your question lacks lots of detail such as log output, I just throw in a guess. Have you checked that your MySQL data partition (or [CODE] , or wherever you have configured MySQL to store temp files) is not full? See with [CODE] and make sure there's disk space left. Another option is that your [CODE] table is co...
-1
0
941
2014-08-21T07:04:50.087
database_errors
serverfault.com
1,036,569
ansible documentation of alternative use of deprecated ALLOW_WORLD_READABLE_TMPFILES
the deprecation warning discouraging the use of ALLOW_WORLD_READABLE_TMPFILES includes a reasoning: [CODE] however, i do not comprehend how to actually implement this alternative on a plugin basis, i couldn't find any further reference in the config documentation here could anybody help me out here, or is it worth to r...
Valid problem with the docs documented in this issue: https://github.com/ansible/ansible/issues/72264 ...which also contains the answer to your question: Effectively, you will need to view the documentation related to the shell plugin you are using, likely sh, and substitute the configuration with the shell plugin spec...
3
1
1,566
2020-10-06T07:45:28.590
pipeline_ops
serverfault.com
384,945
Load balancing setup
Server 1(Proxy) -> Server2/Server3(Apache) -> Server4(mySQL) For server 1 I would setup HARproxy with something like? [CODE]
In the long run I think using the [CODE] and [CODE] setup will be better as it will give you a little more flexibility. See https://serverfault.com/a/295093/2561 for a basic example.
1
1
151
2012-05-01T15:21:52.653
database_errors
serverfault.com
390,048
How to configure SSL with apache2/httpd mass virtual hosting using mod_vhost_alias
I have been searching quite a bit now but couldn't find any answers. I'm using httpd 2.2.15 and Centos 6.2. I have configured apache for mass virtual hosting. I.e.: [CODE] I will have the same "main" domain with different subdomains pointing to the virtual hosts. I have created a self-signed cert for testing purpose wi...
First off, you need to make sure your current configuration is prepared to have an SSL listener added in. You haven't specified if you're using the main server, or a [CODE] , but if you're using the main server then you'll need to switch to a [CODE] . [CODE] Then, we'll add you a new VirtualHost running SSL. [CODE] So,...
3
4
3,417
2012-05-17T14:49:35.690
infrastructure
serverfault.com
538,403
Would cPanel or Plesk slow down my site/server?
My senior sysadmin told me that if I install cPanel or Plesk (or other panel) on a client's machine as it would slow down the server/site (WordPress on LAMP). This doesn't seem to make logical or intuitive sense to me. The senior is a bit too tight-winded and does not encourage questions - I am supposed to take his wor...
Adding a service always has a performance cost. The question is will adding the service benefit more than the additional overhead. The main concern is not really performance, it's that the increased complexity always has a management penalty. The more stuff on a box the more likely it is to go down/have issues and the ...
-1
2
1,566
2013-09-12T14:23:25.157
infrastructure
serverfault.com
731,915
Cant send mail due to PTR Records
I just installed sendmail on ubuntu 14.04 lts and configured a new domain. Somehow I must have overseen a config issue, as google mail is rejecting the message. looking at return message it tells me the following: [CODE] I configured the mx records, but why does the message state that it is received from 127.0.0.1 ? ma...
Looks like you don't have an appropriate pointer record for your IPv6 address. This is something your service provider who controls that IP has to add to their DNS records. The record needs to match the name of your mailserver. You see the 127.0.0.1 address because the mail was generated on your mail server - so it doe...
0
0
1,345
2015-10-27T11:09:19.110
infrastructure
serverfault.com
348,224
Javascript works everywhere else, except new server
Server A: Windows Server 2008 R2, IIS 7, admin - me Server B: Windows Server 2008 R2, IIS 7, admin - company server admin group I have a Javascript file that works well on my local machine. The JS file also works on Server B. When loaded to Server A, the page returns the error "Unspecified error" with a go to line that...
What this probably means is that the server isn't returning the correct data when the [CODE] file is requested. It's called a client-side language because it is a client-side language; the javascript files are not executed in any way on the server; they're just text files with a different MIME type as far as it cares. ...
1
2
3,215
2012-01-09T20:30:47.163
infrastructure
serverfault.com
292,034
Is this piece of code correct? #Leetcode 550
I'm working on this problem and I found this piece of code. [CODE] However, I only know the DATE_ADD function in MySQL. Is this usage here correct? Adding a date type variable with a integer and then using the DATE function to convert it. What's the result of adding a date type variable with a integer? And according to...
[CODE] Since [CODE] is a DATE datatype, do this instead: [CODE] (It seems strange to want the day after the oldest date; is that really what is called for?)
-1
0
44
2021-05-21T19:16:22.940
database_errors
dba.stackexchange.com
804,693
Unable to reach an external network with NAT
Network I am setting up the following network, there are three systems and the VPN is supposed to intermediate between the Firewall and the Kali. Lets assume that all the systems are using Ubuntu 16.04 (eventually I will install the Kali tools on Ubuntu): My Kali is able to reach the VPN Server, but it is not able to p...
You don't allow new connections to be forwarded or accepted on your VPN server. Change [CODE] to [CODE] and try if it works. If it does, remove the NEW statement for the general rule and create a new rule only forward and accept for those protocols/ports you need to forward, e. g.: [CODE] Also you have to use destinati...
2
3
763
2016-09-22T12:37:44.080
infrastructure
serverfault.com
325,798
/var/www/ downloads php files instead of viewing them in browser
Possible Duplicate: My php homepage downloads index.php instead of being processed on Gandi.net hi im a newbie with servers so thats why i come here with my prob hoping you can help me. so ubuntu 11.10 and i installed lamp-server but the problem is that i was screwing with file-permissions and stuff and now everything ...
There are several things that could cause this... I am going to assume that because you mentioned permissions, that permissions are the problem: Run the following commands as root: [CODE] Also, be sure to clear your browser's cache... The process is different for every browser, so if you don't know how, just leave a co...
0
0
1,506
2011-10-28T19:06:31.733
data_quality
serverfault.com