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
959,386
Google cloud sdk error : token exchange failed
I am totally new to Google Cloud. I am trying to push a Docker image on Google Cloud Registry. I have performed following steps : Installed Google Cloud SDK. Downloaded a JSON key file for my IM account Set authentication using following command: [CODE] Executed below command for login: [CODE] Now, when I am trying to ...
Did you check the official guide on how to push/pull? Why are you trying to login? weren't you trying to push the image? for example, if you are trying to push a nginx, the commands will be something like this: [CODE] Keep in mind that you will need to put your project ID, and the zone you want (being asia.gcr in our c...
2
1
2,475
2019-03-21T18:08:46.540
api_errors
serverfault.com
500,111
How to rsync to a server using ssh keys
I'm running on a Mac, and I want to set up a crontab to rsync from my VPS on a weekly basis to grab some backup archives. I'm using ssh keys (no passwords allowed on the VPS), and normally I can ssh in without any prompts (my private key has a passphrase but it's stored in the Mac keychain). However, when cron runs a s...
I don't think that cron has access to your passphrase and that's why you cannot log into your remote server. The best way to achieve this is to set up a new key with no passphrase. Using a key without a passphrase is less secure but you can however limit its usage. See AUTHORIZED_KEYS FILE FORMAT section in the sshd ma...
1
1
1,808
2013-04-17T09:11:37.593
hadoop_errors
serverfault.com
26,845
Unable to connect on natted server from a host computer on the same LAN using public IP address
I have a server statically NAT’d using a registered IP address and it is accessible from the outside. The problem is I cannot access my server from the inside using the registered IP address with a host computer that is connected on the same LAN as my server. I tried to deactivate ACL and CBAC, I also tried to create s...
Remember, when your firewall/router/whatever is doing NATing, the internal box that has a public IP NATed to it doesn't know anything about the NATed address . So, in order for this to work, your packet has to leave your internal LAN, go out to the external network, then come back in via the firewall/router/whatever th...
5
7
5,924
2009-06-16T20:27:52.423
infrastructure
serverfault.com
264,456
Sharing constructor code between classes that do not inherit from each other
There is a PHP library of classes (generated from a WSDL) that cannot be changed. These look like the below for simplicity. [CODE] Custom code needs to do some configuration (e.g. setting some SOAP headers and the SOAP version) whenever a System or Report object is required. The current implementation is as below. [COD...
Personally I would be using factory methods to create each of these objects and would forget about the additional inheritance you have designed. The form of this would be a ReportFactory class and a SystemFactory class that would have their own creation methods. In the creation methods you would instantiate the require...
4
2
424
2014-12-03T15:40:30.713
data_quality
softwareengineering.stackexchange.com
409,848
How to implement an app with an actions toolbar?
Say I am creating an app which contains selectable components and a toolbar/action bar. Some tools work on selected components only, some work on all components together. Pretty standard stuff. I can think of 3 approaches to go about the architecture of the relations between the toolbar and the components: Toolbar is "...
Toolbars are part of the User Interface. Good UI's are always decoupled from the application's underlying logic. The best UI's don't even know anything about the underlying application logic; instead, they expose commands that can be subscribed to by the application through bindings . Ergo, I prefer the "stupid" approa...
0
2
92
2020-05-07T16:26:33.830
api_errors
softwareengineering.stackexchange.com
256,438
Considerations for certificate revocation for intermittently isolated ad-hoc networks
I'm trying to decide on a certificate revocation strategy for a solution I'm designing (that will utilize Dogtag PKI, per customer request). The obvious choices seem to be using a CRL or using OCSP. I'm trying to understand the practical implications of both, and select one that can support this particular solution. I ...
OCSP is really just a different means to the same end: checking whether a certain certificate is revoked. Both can be considered a blacklist; with a CRL the client will grab the whole list and check for the individual cert itself, while with OCSP it's sending a request to get the status on an individual certificate wit...
1
2
430
2011-04-06T15:57:15.937
infrastructure
serverfault.com
769,723
Unable to remove publicfolder replicas on exchange 2007
I try to decommissioning my Exchange 2007 server after migration to Exchange 2013, to migrate to 2016 in the future. I removed all mailbox databases, but not the publicfolder database, i got an error The public folder database specified contains folder replicas. Before deleting the public folder database, remove the fo...
You get this error because you cannot delete a public folder database that contains data. To get in detailed about how do we remove public folder replicas from the database refer to this article that have documented steps and the links to get this job done. www.petenetlive.com/KB/Article/0000227 You may also get help f...
0
1
5,122
2016-04-12T09:31:10.647
infrastructure
serverfault.com
128,476
Installation of SQL Server 2014 fails on Windows Server 2012 R2
I am attempting to run a silent installation of SQL Server 2014 with SP1 on Windows Server 2012 R2 core install, although it also fails when using [CODE] : (01) 2016-02-05 19:48:33 Slp: Running Action: ExpandInstallFeatures (01) 2016-02-05 19:48:33 Slp: Error: Action > "Microsoft.SqlServer.Configuration.SetupExtension....
Uninstalling [CODE] allowed the installation to proceed correctly.
3
3
4,336
2016-02-06T16:38:01.710
database_errors
dba.stackexchange.com
313,775
AZURE SQL Database Dynamic Ip address
I have an Azure SQL Database and my clients want to access it. They belong to a place where they are assigned new IP every time whenever they turn on PC/Internet. I have tried to assign a range to access it but they have a huge range gap, for eg 35.111.111.0 to 199.255.255.255, and If I assign it full range access it w...
You can set IP address range from which communications are allowed into SQL Database in the Azure SQL Database firewall but for stable IP addresses, this strategy is acceptable. A firewall security feature called virtual network rules determines whether communications from certain [CODE] in virtual networks are accepte...
0
0
814
2022-06-21T12:31:16.780
warehouse_errors
dba.stackexchange.com
409,919
Openwrt isc-dhcpd-4.2.4
Every time the dhcp service starts, it listens not only on 0.0.0.0:67 but also on 0.0.0.0:PORT where PORT is a random number. Anyone knows where this behaviour comes from? [CODE] My config is: [CODE]
Search in google returns that it's a kind of a bug: https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1176046 On the launchpad there is also a link to the proposed solution (building package from source with extra options for ./configure script): http://forums.debian.net/viewtopic.php?f=10&t=95273 I have checked ...
5
1
2,094
2012-07-21T16:29:32.080
infrastructure
serverfault.com
274,957
Connect domain controller Windows Server 2003 to another one on Windows Server 2003
In Active directory, when I try to connect to another domain controller, after adding that domain controller and press ok, a message appears to me: [CODE] How can I fix this problem.
I agree with others that your questions is definitely not clear enough; anyway, since I've been fighting with a similar issue for all yesterday, I feel compelled to answer. This can depend on a lot of things: Can the two computers actually talk to each other? Check with ping, mapping a network share, etc. Are they on t...
2
2
1,561
2011-05-29T08:48:51.213
infrastructure
serverfault.com
232,365
mysql 8.0, updates are sometimes stalling
Update: The scope of this question does not cover basic performance tweaks and considers these are done already. So if you are happy to share some evident variables like [CODE] , [CODE] or even setting [CODE] to a wonderful knob [CODE] you discovered recently, this is not the case. Recently I moved one of my production...
That's an 8.0 optimizer issue. Can easily be fixed either doubling the [CODE] (and, if this is not helping, doubling it further and further) or just by setting it to zero, this way it can use up to all the amount of available memory. Did the trick for me. Unfortunately, I wasn't the guy to figure it out, but rather guy...
4
7
9,802
2019-03-17T13:06:55.563
database_errors
dba.stackexchange.com
321,291
MariaDB - Replication. Seconds_Behind_Master value increase after sometime
I have Master-Slave replication-enabled databases on separate servers. Master - MariaDB 10.1.10 Slave - MariaDB 10.6.11 Initially slave database sync with the master. But after a few hours, [CODE] parameter getting increased. After restarting mariadb service issue fixed. But again after a few minutes issue occurred. I ...
Issue sorted after downgrading to [CODE] .
0
0
172
2022-12-20T11:00:24.413
database_errors
dba.stackexchange.com
48,239
Why would I not be able to access VPS via FTP all of a sudden?
I have a VPS, CentOS, was set up automatically with HyperVM. I set up the FTP connection with lxadmin. I've been logging into my server via FTP for weeks. Today it says: [CODE] I can still log in via SSH. what kinds of things could have caused this? what are some things I can check/change so I can use FTP again? Here's...
Couple Guesses: 1) You made some iptables rules changes to allow the traffic but did not commit them with 'service iptables save' 2) Is the FTP service running? Does netstat show that the port is listening on the server itself? If so, can you telnet to the port on the server itself, what about remotely?
1
2
262
2009-07-30T18:57:52.793
infrastructure
serverfault.com
679,213
Suhosin - Disable shell_exec default, allow from one directory
I have in php ini this function, which blocks shell_exec default. php.ini suhosin.executor.func.blacklist = shell_exec Its works well. When I want to allow shell_exec, so I use in httpd.conf this function in directory, which allow function. This function is [CODE] This allow function for one dir. Its work well. If writ...
PHP on the command line does not use Apache php_admin_value. You can use [CODE] Or use a custom php.ini file: [CODE] Or configure php-cli with a custom php.ini file (check [CODE] ) - usually something like /etc/php5/cli/php.ini.
0
0
799
2015-03-30T07:17:11.790
infrastructure
serverfault.com
611,789
OpenVPN client connects but only loads SOME websites
I set up OpenVPN server on a Ubuntu 14.04 VPS using OpenVZ. I can establish a connection to the VPN with a client. I can access some pages like Google and twitter but a lot of sites fail to load. I added this to the iptables: [CODE] My server.conf looks like this: [CODE]
My problem was that I was editing iptables but never saving them (from fear of messing up previous rules). By using this: [CODE] I was able to test if my iptables were working without saving them.
1
0
3,225
2014-07-11T03:13:05.237
infrastructure
serverfault.com
569,698
Apache not finding folder on File System; Appending "\xe2\x80\x9d" to end of File Paths
I have three Virtual Hosts running in apache2 on my personal Macintosh running OS X Mavericks and I have ran into a knot of confusion. They are configured in my httpd-vhosts.conf file as follows: [CODE] Note: The first entry allows me to type in "localhost" and have it load as you'd expect it to without Virtual Hosts r...
[CODE] If you have php installed: [CODE]
10
17
6,885
2014-01-24T18:15:02.697
infrastructure
serverfault.com
320,225
Revisiting Fowler's "Public versus Published Interfaces" article with regard to versioning and microservices
In this short article Public versus Published Interfaces from 2002, Martin Fowler distinguishes between easily changeable "public interfaces" and harder to change "published interfaces": The key difference is being able to find and change the code that uses an interface. For a published interface, this isn’t possible, ...
Fowler's point is essentially that once you have 'published' an interface you are stuck with it. Essentially you've become a dependency of something outside of your control and the more popular your interface is, the harder it is to understand the impact of changing it. This is just a fundamental aspect of reality. Ult...
4
2
758
2016-06-03T17:28:50.597
api_errors
softwareengineering.stackexchange.com
329,489
Metric connectedNativeClientsByUser missing from Cassandra 3.11.13
cassandra version: 3.11.13 I want to build dashboard with - info how many every user have connection. Based on document there is metric - [CODE] . But when I check it with [CODE] , I don't see it Does I miss something in config or this is just outdated documentation? Does it possible to have [CODE] in 3.11?
It's a documentation bug, the 3.11 code does not have the metric connectedNativeClientsByUser within it, but 4.0 onwards does - it was added by https://issues.apache.org/jira/browse/CASSANDRA-13665 . I have added a ticket : https://issues.apache.org/jira/browse/CASSANDRA-18689 to fix the docs and a PR is in for review ...
0
1
35
2023-07-20T11:41:59.097
bi_errors
dba.stackexchange.com
82,166
Select Ingredients of a product based on unit type
I have three tables UnitType,NutritionMaster, NutritionInProduct [CODE] And I want to show the results as I tried doing it like this [CODE] but its not what I want ..can you help me.
The simple answer looks something like this: [CODE] I have intentionally not pivoted the results because the PIVOT syntax needs you to hard-code the names of the columns, which in this case are dynamically defined in the UnitType table. While we're at it, you may wish to consider a few revisions to your schema: There a...
0
0
54
2014-11-07T16:21:32.303
warehouse_errors
dba.stackexchange.com
827,645
Disk transfer rate random behaviour
Okay so I am facing a strange situation with a server build I've completed. Prior to getting a Tyan S7012, sticking it in a case with some RAM, I didn't notice any strange disk behaviour. But now, delving into the world of host bus adapters and all those good things, there are things I'm noticing on disk transfer speed...
At first, it's limited by the read speed only. The write speed doesn't matter because data can be cached in RAM. Eventually, the system hits the limit of dirty pages it will allow to reside in RAM and the read operation will be throttled until more dirty pages are flushed to disk. So, most likely, 150MB/s is your read ...
1
0
54
2017-01-20T22:06:59.820
infrastructure
serverfault.com
382,998
Linux Web Server Permissions - Best Practices
On a privately owned server with one website, is there any reason the files/directories within /var/www can't be group owned by www-data? My understanding is that security risks with www-data having write access only arise if you have multiple websites running on the same box.
The principle of least privilege applies. Only give users the rights they need and no more. In this case, if apache is only serving up pages, give the user acct no rights to edit. Possible risks include: changing file content or uploading new one; adding executable code to files, etc. These risks exists regardless of w...
4
3
4,193
2012-04-25T14:23:10.790
infrastructure
serverfault.com
354,802
How do I reset Apache's RewriteCond directive?
I have some Apache configuration like this: [CODE] It should do the following: If a request for an image comes from [CODE] , block it and display the hotlink image instead. If a regular request for an image comes in, redirect to the image hosted on the cdn subdomain. Otherwise, if the request is not a file or directory...
Line breaks are completely inconsequential; a [CODE] only ever applies to one [CODE] ; the one directly below it. Providing more information about your configuration would be helpful, as context is relevant in Apache. But, from the fact that your second [CODE] works, it seems that this configuration is either set in a ...
6
6
5,519
2012-01-29T18:30:36.693
infrastructure
serverfault.com
483,324
Why does mysql service stop when 100 users are connected
I have installed mysql server 5.0 on windows server 2008 R2 64bit OS. max_connection set to 1000 but when 95-100 user connected at a time service stooped. Please help me. I have the following setting in [CODE] please check Server have 16GB of RAM [CODE]
Check your OS max connection. You could set your max-connection in MySQL to whatever number you want but, if it is more than max connection of your OS then you can't go above that.
0
0
180
2013-02-28T08:09:00.900
database_errors
serverfault.com
283,016
Store data on File Server or SQL database
We have a solution which includes storage of PDF documents. Currently we have 50,000 documents that are 0.6 MB each (all documents same size) We currently store these documents in varbinary(max) fields in SQL Server. Everything works fine now. Problem is that we are expecting to have over 1 million documents. Shoud we ...
Have you considered FILESTREAM which combines the 2 ideas (file and database)? FILESTREAM integrates the SQL Server Database Engine with an NTFS file system by storing varbinary(max) binary large object (BLOB) data as files on the file system. Transact-SQL statements can insert, update, query, search, and back up FILES...
0
2
116
2011-06-22T13:45:43.347
database_errors
serverfault.com
41,976
Error while running Jmeter Perfmon
[CODE] I can't find a possible solution, even after vast range of search.
It seems you're suffering from the same problem as it's described in Sigar 1.6.4 is crashing: EXCEPTION_ACCESS_VIOLATION article , one of the reasons I can think of is that Windows PerfMon doesn't have CPU counters enabled so SIGAR fails to read this information and causes JVM crash due to a bug in its native [CODE] Tr...
-3
1
2,084
2019-12-30T06:54:21.810
data_quality
sqa.stackexchange.com
1,085,226
Detecting hypervisors in Puppet
Puppet provides a fact [CODE] which is supposed to show what virtualization method a system is using. We use Redhat 7 and 8 for guest operating systems. We have a lot of [CODE] systems, and also use RedHat Virtualization, KVM, and Linode. The documentation for [CODE] says it can detect [CODE] , but that seems to only d...
It is possible for virt-what to print both [CODE] (or [CODE] ) and [CODE] . The former from product or manufacturer data, and the latter probably from CPUID. factor also has its own implementations of guessing, plus virt-what. This plus the unreliability of guessing hypervisor in general means getting [CODE] back is no...
0
0
180
2021-12-02T18:01:40.640
pipeline_ops
serverfault.com
714,985
prevent openvpn client from changing ip of tap device
I have an openvpn server behind a firewall, clients are assigned static IP addresses with specific ifconfig-push directives in the client-config-dir. The problem is that clients can change their assigned IP's (e.g: ifconfig tap0 a.b.c.d up) making all my firewall rules useless... is there a way to prevent them from cha...
Why [CODE] ? Why would you use a bridge if you want to implement firewall rules? If you give clients a layer 2 tunnel to work with, then they are going to be able to change their layer 3 addressing.
0
1
2,587
2015-08-18T12:59:51.080
infrastructure
serverfault.com
911,413
Exchange Account shows 2 calendars instead of 1
I've created multiple room mailboxes that work fine in Outlook. However only 1 room mailbox shows 2 calendars when opened on an iPad. The other room mailboxes do not have this issue. When adding the room mailbox to another iPad, the same thing happens. So I'm thinking it must be an Exchange issue. When checking MFCMAPI...
Apparently "Rupel" on itself was the issue. By deleting it, the problem was solved. I however have no idea why this room mailbox had this issue.
0
0
138
2018-05-09T08:27:10.670
infrastructure
serverfault.com
574,911
Postfix rejects php mails
I get errors such as [CODE] my main.cf is [CODE] I wonder if there is a way for me to get out of this
Did you type your error message into Google? I'm betting the answer is no. If I Google the phrase [CODE] the VERY FIRST RESULT is this page from the postfix.org documentation , which tells you: authorized_submit_users (default: static:anyone) List of users who are authorized to submit mail with the sendmail(1) command ...
-8
13
2,217
2014-02-12T05:05:38.430
infrastructure
serverfault.com
278,546
Troubleshooting slow connection establishment
The client and the server are running on Windows on different subnets. I'm facing a 20s delay to establish a connection to a SQL 2012 Always On availability group using .NET Core Sql client using sql authentication. I have no problem establishing a connection to other SQL Server instances (no availability group). The c...
Since the connection is fast from sqlcmd, but slow from the .NET Core SqlClient driver, it's most likely this problem is on the client driver side (rather than an AG configuration issue). You should add [CODE] to the connection string to speed things up, as it shortens the retry interval. See the docs for details: Conn...
1
1
837
2020-10-23T07:15:51.070
database_errors
dba.stackexchange.com
235,139
How to unzip files bigger than 4GB?
I'm using RHEL 5.6 and unzip-5.52-3.el5. I'm trying to unzip a big file, but I get the error: unzip -o test.zip -d unzip/ error: Zip file too big (greater than 4294959102 bytes) Archive: test.zip warning [test.zip]: 4294967296 extra bytes at beginning or within zipfile Is there another program that can work with large ...
I finally ended up rolling my own rpm's for unzip 6, they can be found here: http://www.noodles.net.nz/2011/02/15/unzip-6-for-rhel-5-6/
27
4
63,942
2011-02-14T03:11:07.187
hadoop_errors
serverfault.com
69,452
dpkg can't install dpkg update - how do I update anything?
Short of rebuilding the whole server from the ground up (which I'm working on anyway), any ideas how to fix this problem on an old debian etch box? Its annoying to not be able to apt-get things... [CODE]
Okay, this is going to be fun. Your box is fairly screwed, so the worst problem is that you screw it harder, but I take no responsibility for you doing that following this advice. The problem is either that the dpkg package didn't install correctly, or the metadata is corrupt. Let's deal with the first problem. Debian ...
2
2
7,891
2009-09-28T23:56:37.480
infrastructure
serverfault.com
1,067,473
Can't access ESXi console after restart, vCenter is powered off
We have a vCenter 6.5 U3 hosted in one ESXi 6.5 U3, the host got restarted and vCenter wasn't set to automatically start, now vCenter is powered off and something is preventing us to log on ESXi. If I try to log on web console I get 'Connection refused' Already tried to restart host. hostd service is not running, it do...
I guess device mpx.vmhba32:C0:T0:L0:X is your boot device as partitions are unreadable ( Invalid volume UUID ). Boot from ISO and check filesystem and if storage adapter is fine and if host is connected ( unable to find target 1: No connection )...
0
0
1,828
2021-06-22T16:53:45.733
api_errors
serverfault.com
123,625
SQL Server: Interplay of personal login and group membership
I created a login for a user using his windows user then I created a login for an AD group in which the same user is a member. I did NOT give any access to the personal login any access to the DB and did not add this login to any server or DB fixed roles. I gave the AD group access to the DB. I have then DISABLED the 1...
SQL Server will deny access to a login that has been disabled. This is by design. If it is your intention to allow the person access through the group login, you should simply remove the login that is linked to the Windows account. SQL Server limits principals' rights such that any rights that have been explicitly deni...
3
4
1,277
2015-12-14T13:08:46.850
api_errors
dba.stackexchange.com
473,622
Fast format option for HDs recommended in dedicated servers?
I'm learning about dedicated servers and have a very simple question. In windows server 2008, is it a good practice to fast format your HDs for the first time? Or should i perform a slow one? Which are the differences mainly? I've got 2 MBR and one GPT disks. Thanks in advance.
This is answered by this answer: https://serverfault.com/a/10803/87408 Basically, quick format doesn't do a scan of the disk to check for bad sectors. Here's a MS Article[1] on the topic. [1]: http://support.microsoft.com/kb/302686
0
1
193
2013-01-29T20:26:37.843
infrastructure
serverfault.com
53,132
Schema for analytics table in Postgres
We use Postgres for analytics (star schema). Every few seconds we get reports on ~500 metrics types. The simplest schema would be: [CODE] Our DBA has came up with a suggestion to flatten all reports of the same 5 seconds to: [CODE] Some developers push back on this saying this adds a huge complexity on development (bat...
As commented, arguments from both sides are valid. Let's call them "star" (the flattened schema of your DBA) and "EAV" (entity-attribute-value). The latter can serve as a hint. Details in this related answer: Is there a name for this database structure? Well, if your 500 metrics are of well known type and you don't inv...
5
2
3,921
2013-11-11T17:06:51.553
api_errors
dba.stackexchange.com
856,991
Azure VM DDOS attack via RDP
Yesterday my VM on Azure was under a DOS attack. Symptom was I wasn't able to connect via RDP, unless the server was freshly rebooted, and only for a small fraction of time after the reboot. Once I successfully connected, with netstat I noticed that there were like 50 RDP connection trials from an IP address from Taiwa...
Microsoft Azure Network Security Whitepaper tells most you need to know about securing your Azure VM. Chapter 2.2 Security Management and Threat Defense a has Protecting against DDoS (page 11). While Microsoft provides a DDoS defense system, there are threats that automation can't handle: Application-layer attacks. The...
0
1
1,243
2017-06-21T07:46:20.753
infrastructure
serverfault.com
642,204
exim: user with several email addresses (as with "virtual" file in postfix)
In postfix, there is the "virtual" file which contains a simple list of email-addresses and the users they belong to: [CODE] This basically allows "user" to have more email addresses than just "user@mydomain.com" and it allows to point "myname@mydomain.com" to a different user than "myname@myotherdomain.com". How can o...
It was not easy, but I found the solution myself: Just add this to the exim configuration: [CODE] The important part is the "@$domain" part, so that you can specify users and domains and not just the users (as with the /etc/aliases directive)
0
0
105
2014-11-05T13:43:15.613
infrastructure
serverfault.com
1,083,483
Why do I get DMARC aggregate reports with no reported failures (G Suite + Amazon SES)?
Domain: franzoni.eu Such domain leverages G Suite (grandfathered free version) for receiving mail, but for various reasons (I prefer not to create users for M2M SMTP on G Suite, and I cannot use SMTP to send with aliased source addresses) I setup Amazon SES for sending e-mails; the domain is verified in Amazon SES, I a...
The aggregate report is generated based on a time period and not whether there was a failure. From RFC 7489 7.2 : Visibility comes in the form of daily (or more frequent) Mail Receiver-originated feedback reports that contain aggregate data on message streams relevant to the Domain Owner. This information includes data...
2
1
1,488
2021-11-13T20:38:10.060
infrastructure
serverfault.com
613,619
Multiple incoming email domains in Domino SMTP
I have an operating Domino mail server which receives email for one internet domain - [CODE] and now I would like to configure another internet domain, french version of [CODE] . Global domain document is configured to receive emails for both primary domain of [CODE] and new French version of [CODE] . User [CODE] has b...
Turned out to be Brightmail spam filter that was blocking all incoming email on the second incoming internet domain. Thanks for the suggestions all, it gave me the confidence to know that indeed I wasn't missing anything dumb and obvious in Domino! (Sometimes after all these years you wonder if you are overlooking some...
1
0
1,995
2014-07-18T12:21:36.217
infrastructure
serverfault.com
155,034
changes on multimaster replication and activate GTID
I've been reading a lot about the changes I planned to do to our DB landscape but I need some confirmation or recommendation to be sure the work I'll do goes without causing a disaster. Here is what we have on all hosts: debian8 MySQL server version: 5.7.16-log MySQL Community Server (GPL) Replication scene all anonymo...
OK, for anybody reading this in future. I did the first step changing all server to use GTID based replication and it worked perfect. I did it the way as I wrote in the original post. Right now I have same landscape as before, just using GTID. This night I'll go to activate circular replication between S4 and S5 and if...
0
1
303
2016-11-12T02:23:26.733
database_errors
dba.stackexchange.com
318,782
Designing a centralised command api
I'm working on a personal project that has a fairly complex UI. As much as possible I would like to remove mouse interaction. To help with that I am working on a kind of in app command line, where you can find all the actions by opening a popup and type in the names to run them. (think intellij ctrl-shift-a, or eclipse...
One way to accomplish what you're looking for is to implement the Observer pattern . For example, instead of having a single, centralized "commands" object that defines all possible commands, you'd have a centralized event dispatcher. Each "command", when instantiated, would register itself with the dispatcher. When th...
3
5
183
2016-05-18T01:40:47.673
api_errors
softwareengineering.stackexchange.com
526,779
cannot read SSL keyfile.kyr
my domino server cannot read SSL keyfile.kyr ? error message->HTTP Server: File does not exist, key ring file [keyfileesh.kyr], [Default Server] 1) troubleshooting done so far 2) checked names.nsf for configurations - Using Web Configuration View 3) Check that the keyfile.kyr and keyfile.sth are present in the domino\d...
RESOLVED: we used process monitor to see if domino is making any attempt to use files .. and it(domino) did - after collecting logs and search for .kyr file - it was clear at this point there is something wrong at OS level not letting domino use those files.. further digging revealed that antivirus had quarantineed som...
1
1
2,109
2013-07-27T20:57:19.517
data_quality
serverfault.com
101,904
benefits of periodic backup and restores on SQLServer
In the olden days when I used to use other database platforms, we were advised to back up and restore our databases periodically to improve performance. Common reasons were that a B & R would include rebuild indexes defragment pages My questions: What does MS SQLServer do (specifically 2005) when a back and restore is ...
You should be doing periodic backups and restores to test your restore procedures, but as far as doing them to improve performance, you can rebuild indexes and shrink files with Maintenance Plans, which is the preferred method.
2
1
213
2010-01-12T13:51:56.940
database_errors
serverfault.com
477,195
ftp user to var/www on ubuntu with correct permissions
I have the following config on my Ubuntu 12 server: 1 - [CODE] installed and configured with the config file settings: [CODE] 2 - I have an ftp user setup in which their home directory is [CODE] 3 - When I connect to the server with filezilla with the new ftp username, filezilla automatically shows the webroot, as desi...
Firstly I believe you should do a [CODE] on /var/www. This will ensure that files created in this directory inherit the group from the parent directory. Secondly, it looks like the file mode can be controlled by a vspftpd.conf value: [CODE] If you're still having problems, have a look at the [CODE] for the FTP user, th...
1
0
3,229
2013-02-09T15:08:04.083
infrastructure
serverfault.com
1,147,653
ProxyJump asks for the same password twice
For my work, I have to connect to a remote server. The connection is via a simple [CODE] and with only one password (no authentication file is needed). For more clarity, I connect like this: Do [CODE] on my terminal. Enter my password manually. Do [CODE] to be connected to slurm. Note that I'm entering my password just...
First of all, proxy jump is not the same thing as ssh to the remote machine and ssh further from there. Proxy jump works as follows: it connects to the first machine and builds a TCP forward to other machine's SSH port; then it connects directly from local machine to the local end of the tunnel, ending up connecting to...
0
1
364
2023-11-11T10:00:56.493
api_errors
serverfault.com
405,790
Smooth out requests to rate limitted API
[CODE] I'm trying to figure out when to send requests to an API that would be spaced as much consistently as possible. The most straght-forward solution would be to keep the requests spaced enough so that the API wouldn't throttle (1). However this technique wastes a lot of requests. I came up with the idea to let the ...
I didn't analyze your solution completely, but it looks a bit too complicated in my opinion. I'd simply keep the last 120 request timestamps (as you do) and delay each request that would be less than 60 seconds after the 120th request before. Then you will be able to handle bursts but still ensure that there are never ...
-2
0
202
2020-02-26T15:55:37.233
api_errors
softwareengineering.stackexchange.com
947,900
PAM with pam_krb5 to authenticate nginx requests
I am aware of the gazzilion pam / nginx questions here and on "Unix/Linux" but they are either unanswered or not related to my setup - so i try again :) TL;dr While the setup works perfectly with an [CODE] combination, i fail to get automatic ticket forwarding working when using [CODE] - basic authentication against ke...
The short answer to this question is, that is not possible with nginx_pam at all. The technical term / protocol i ask for is "GSSAPI" or SPENGO based kerberos ticket authentication, so a user is automatically logged in if he has a existing kerberos ticket. nginx_pam does not implement SPENGO/GSSAPI thus that will never...
4
3
3,035
2019-01-07T12:59:43.517
data_quality
serverfault.com
251,216
SBS 2011 Premium Add-on SQL Server
We have set up a new Intel server running Windows HyperV Server R2. Two VMs are running: Microsoft SBS 2011 Microsoft Windows Server 2008 R2 Standard (Installed from the SBS 2011 Premium Add-on disc) The package we bought has the Premium add-on with the Windows Server and the SQL server. I've got both VMs installed and...
Double check if you are installing SQL Server on a server in the same domain of the SBS. Even if you think it was, it may have lost trust - so try rejoining the computer to the same domain.
0
1
1,086
2011-03-24T08:48:09.387
database_errors
serverfault.com
268,403
SQL Server 2000 - Restoring .MDF Using sp_attach_single_file_db fails with error
Because more than one person was meddling with the database, we have lost our transaction log files and consequently lost the database. Luckily, we have the MDF file still perfectly intact, and we're not worried about the lost transactions, since they were only 'delete' transactions. I did some research, and found that...
You can give this a try: Create a new database with the same name and same MDF and LDF files Stop sql server and rename the existing MDF to a new one and copy the original MDF to this location and delete the LDF files. Start SQL Server Now your database will be marked suspect Update the sysdatabases to update to Emerge...
4
5
3,636
2011-05-10T23:18:06.953
database_errors
serverfault.com
371,946
How can I use different database realm for different "instances" of an application for authentication?
I have a web application on apache/httpd. By copying this application and putting it in a different directory under document root, I creat a new instance of that application. I do set up a new database for each instance as well. I use database realm for authenticating the user. The problem is that I use MySQL for stori...
The answer is to use virtual hosts for each application instance. Then you can configure what database to use for each virtual host. E.g. add this to httpd.conf: [CODE]
1
0
210
2012-03-21T12:49:02.650
database_errors
serverfault.com
156,093
Performance issue for webserver
We have asp.net sites based on dotnetnuke architecture and we are having two load balancing server with 2 gigs and with 24GB Ram. and SQL Server is with 48GB Ram. But still we are having some problem with sites and its heating 100% cpu usage. We have multiple instance of this site for each client wise one virtual direc...
I think you might get unnecessarily kicked to SF but until you do. I would use dynaTrace . However you may be looking for a quicker/free'er solution. I would check the IIS logs and see what is taking so long to serve. You might look into log parser . I would also use WinDbg after pulling out a hang dump using adplus fo...
3
0
147
2010-06-29T20:39:51.573
database_errors
serverfault.com
93,551
Separate color from black-and-white pages for printing
My organization has a leased color printer. We pay a per-page cost to the lessor, and the color page cost is far greater than the black-and-white page cost. Our users are pretty good about selecting the correct mode. But the problem comes when they want to print a big job that has only a few color pages. They don't wan...
Check out PDFsam : a free, open source utility for (you guessed it) splitting and merging PDFs. You may be able to script it to get it to do what you want.
4
1
13,286
2009-12-11T21:22:25.603
infrastructure
serverfault.com
392,801
Should I add additional unit tests for this helper method that simply aids in refactoring of code?
I have a method: [CODE] That calls the helper methdod: [CODE] Which simply checks for null or white space in my string with the parameter name, and throws an exception if it does. [CODE] My test is designed to simply make sure an exception is thrown if either the first name or second name is empty. My question is wheth...
It depends on your intentions with the [CODE] method: If [CODE] is intended to become a reusable library function, placed in a class different from the one where [CODE] belongs to, then a unit test for it makes sense. The fact [CODE] is public may be an indicator for this. If [CODE] is currently not reused anywhere els...
3
7
477
2019-06-03T13:45:13.493
api_errors
softwareengineering.stackexchange.com
305,399
Postfix with Dovecot configured and send emails with no errors. When sending from a remote client message-id is empty, and emails go to spam.
I have Postfix and Dovecot installed and running on the VPS. Using telnet once from VPS , and once from a client machine , I'm composing exactly the same messages. Everything is working but when sending from the client, the email goes to Gmail's spam . telnet mydomain.com 587 Only one thing from the mail.log is differe...
As always on such a question: Dovecot is for reading and therefore has nothing to do with email sending. Postfix is responsible for email delivery and therefore has nothing to do with email content So the client, client software, mail filter, anti-spam software or the like is the culprit As you don't say which program/...
3
6
1,438
2011-08-26T18:59:57.497
infrastructure
serverfault.com
292,199
INSERT duplicate rows for multiple, cascading 1:M child tables
Imagine multiple parent-child tables with 1:M relationships. I would like to "cascade"-insert duplicate rows based on root parent table row selection. Each table has [CODE] primary key and each child table has FK to its parent ID (one level up). The goal Given root parent table ID, insert duplicate rows for it and all ...
Unfortunately, the [CODE] clause of an [CODE] can only work with columns from the inserted row. Columns added by a [CODE] clause are invisible there. See: RETURNING causes error: missing FROM-clause entry for table To work around this limitation, I suggest to [CODE] before each [CODE] , and generate prospective new ser...
5
2
1,232
2021-05-25T02:38:51.917
data_quality
dba.stackexchange.com
408,204
nGinx non-www to www redirect
I have been working with apache for years and now wanted to move to nGinx keeping in view the performance everyone on internet seems to be talking about. But I its very frustrating for me for not being able to rewrite a non-www url to www i.e. example.com to www.example.com I have referred to all the posts on StackOver...
Taken from my site www.yes-www.org : [CODE] Your other [CODE] block should not respond to [CODE] , but only [CODE] .
0
1
396
2012-07-13T12:21:50.167
infrastructure
serverfault.com
2,682
Does making source code available affect your ability to generate revenue?
We’re working on a .Net framework which ultimately amounts to a single DLL. We intend to charge for commercial use of the framework, but make it free for open source/non-commercial use. The rough plan at the moment is to administer this through some form of fairly simple licence which will be issued whether you’re usin...
You should definitely make the source available. Whether it's freely available or only available to those who buy a license is up to you, but I would never use a third-party library with no source. Unlike Robert Harvey, I emphatically do not "know that I will probably never need it." Any library of non-trivial complexi...
22
14
988
2010-09-10T20:47:39.903
api_errors
softwareengineering.stackexchange.com
117,893
How to add image support to client-server database application?
I have an architectural question about a project that I am working on. Currently it is a simple .NET C# application that runs on several client machines, and communicates with a central MySQL server for data storage. There is not an application or service on the server at this time, just MySQL. I would like to add imag...
Storing images in the database is not always a bad idea. If you have a small amount of images, say in the tens of thousands range, and they are small in size, sometimes the convenience of storing the images in the database outweighs the added complexity introduced by adding an additional storage server that needs to be...
6
2
2,632
2011-11-04T16:32:42.353
database_errors
softwareengineering.stackexchange.com
649,564
How to source admin credentials to gain access to admin-only CLI commands in Openstack's Nova?
According to this documentation the admin credentials need to be sourced as follows: [CODE] The suspicion is that this is required to run the following commands: [CODE]
you can download the admin-openrc file from horizon, under: Compute => API Access => Download Openstack RC file
1
0
2,762
2014-12-05T22:52:01.460
infrastructure
serverfault.com
797,760
How do I get a list of Mailboxes that are forwarding to Contacts with a specific domain in Exchange 2007?
I need to put together a list of Mailboxes - specifically the Primary SMTP address - that are forwarding to contacts with a specific domain in the SMTP address. For example, the filter would accept a Mailbox with identity "John Doe" if the Forwarding Address points to a Contact with the primary SMTP address "jdoe@speci...
This may do what you need [CODE] it pulls out a list of forwarded mailboxes, filters it by those which are forwarded to contacts only, and then filters that by the primarysmtpaddress field to only select the domain you need.
0
1
801
2016-08-18T21:10:11.863
infrastructure
serverfault.com
181,830
SQL Server End to End Encryption Options
I'm familiar with database encryption options for SQL Server such as TDE and ensuring backups / backup locations are encrypted and secured properly. I'm doing some work for a new client who has asked me to detail options for end to end encryption, in other words, to ensure data sent from database server to application ...
Always Encrypted feature in SQL server, which is a client side encryption technology designed to provided end to end encryption, meaning it will encrypt the data in the driver of your client application. This means the data will be encrypted on the network between the client and SQL server, it is encrypted in the memor...
6
5
6,596
2017-07-26T09:15:28.953
api_errors
dba.stackexchange.com
397,421
Phpmyadmin location for nginx
I installed nginx and phpmyadmin. I set up a domain with these parameters to test phpmyadmin: [CODE] And everything works properly (if I visit the domain I can login to phpmyadmin). The problem is that it was just for testing phpmyadmin, now I'd like to move this to my 'default' site. But I can't figure out how to have...
As weird as it seems to sound, the "standard" config did not work for phpMyAdmin on my side. Here is what I ended up doing, now working with success on "/phpmyadmin" : [CODE] I am nowhere a seasoned admin, and this piece of config needs cleaning, but it is a good starter I hope.
5
13
27,601
2012-06-10T23:22:31.883
infrastructure
serverfault.com
176,779
PHP Mkdir not working - Full permission
Our server is a Linux Server with Debian 5, Apache2 This is a development server which we are doing testing on and as such we have setup world write permission on everything Ive also set the umask in /etc/profile to 000 One particular PHP script loops through some images in a directory and attempts to make thumbnails i...
Is the path its trying to create there ? ie if its trying to create [CODE] then [CODE] needs to exist. It may also pay to enable recursive creation [CODE]
0
2
11,258
2010-09-01T03:42:52.577
infrastructure
serverfault.com
172,678
postgres restore configuration?
I have a database dump that's about 140Gb. (When loaded, the database is about 350Gb.) I occasionally load copies of my dumped data into development and testing databases, which takes a while. Any thoughts on what configurations I might be able to change during the restore in order to speed things along? So far I have ...
Have you tried parallel pg_restore, i.e. the [CODE] flag? [CODE] can be better than just [CODE] . In fact, the latter might not do much at all because most of the loading should be done in large COPY commands which wouldn't be committing until the end anyway. You can also try increasing [CODE] . Finally, use tools like...
2
1
717
2017-05-03T21:43:33.980
database_errors
dba.stackexchange.com
421,161
How to configure vsftpd to work with passive mode
Whenever I install [CODE] on [CODE] , I only setup the jail environment for the users and rest is default configuration of [CODE] . I create user and try to connect with [CODE] ftp client, but I could not connect with passive mode. I always change the [CODE] to active mode to successfully connect to the [CODE] otherwis...
To configure passive mode for vsftpd you need to set some parameters in vsftpd.conf. [CODE] This enables passive mode and restricts it to using the eleven ports for data connections. This is useful as you need to open these ports on your firewall. [CODE] If after testing this all works then save the state of your firew...
62
107
294,016
2012-08-25T16:22:53.857
infrastructure
serverfault.com
448,710
Which association should be in the class diagram
there are a vehicle class and customer class . In short, in the customer class there is a function that shows 'can this person or company rent that car'.The function uses a object of vehicle and compares with the customer so my question is in the class diagram which association should be there to show this connection b...
After some research I've decided to switch from my earlier answer to a directed dependency association. This is because [CODE] does not hold [CODE] as part of its state. It merely takes a [CODE] as an argument to a method. My thanks to plantuml.com for the diagrams. You can reproduce this one with the following code: [...
2
1
132
2023-11-17T21:03:54.387
api_errors
softwareengineering.stackexchange.com
77,341
is GAE an infrastructure capable of hosting an app used by millions of active users?
I would like to know with the restrictions of GAE listed below, is it even possible to build a great social app (like Facebook) by hosting that app on GAE? In other words is GAE an infrastructure capable of hosting an app used by 600 million active users? Restrictions I've dugged out from a couple of forums / blogs (pl...
I think what annoys me about this question is that you've phrased it and loaded it with "facts" in an attempt to gather a definitive no. The truth is that you could develop an App Engine app that replicates the features of Facebook, Twitter, or Tumblr. And assuming the app was well written, it would scale to support hu...
8
28
3,566
2011-05-17T17:40:35.280
api_errors
softwareengineering.stackexchange.com
197,120
Does this dmesg output indicate a failed network card on Red Hat Enterprise?
Having an issue with a network card on a server today. If I restart the service via "service network restart" the card never comes back, the command prompt just hangs. I suspect it's a bad network card but wanted to run the output of dmesg by someone that might have come across these errors before. The output contains ...
If network card works before you use "service network restart" command then try to change network configuration without restarting network using "ifconfig", "route", etc. commands and see what happens. If you are able to change network configuration without causing problems then it is some kind of card problem or card/...
1
1
2,670
2010-11-01T23:12:44.363
infrastructure
serverfault.com
191,248
how to configure asynchronous ppp connection on a lan
how can i configure asynchronous ppp connection on a lan so that ppp connection to ISP is made (the Internet) only when there is a request from a local net to and disconnect if there is no activity for 15 min. or more connect to the out side world how can i configure my local net so that i will be able to save bandwidt...
you have two options you can pass to pppd daemon: demand and idle. with the first option when pppd starts the ppp interface will be created but no real connection will be made until first datagram is sent. with the second option you can specify how many seconds the connection may be kept idle (that is, no traffic passi...
0
0
331
2010-10-15T07:33:18.160
infrastructure
serverfault.com
965,371
Save virtual memory in event of a power outage?
I believe my understanding of ram is that it holds the state of all programs for fast recall. On a short term basis. So my question is. Can you have a uninterruptible power supply that would send a signal to a server or desktop, saying there is a power outage, and to store the virtual memory on the hard drive so when i...
What you ask for is called "Hybernation" and should be supported on every computer that was build since the last 25 years or so as standard. No joke. This is fundamentally basic and all it does show is that you never ever bothered to read up on the basics of any sort of power management in any decent OS. https://www.ho...
-1
1
35
2019-05-01T05:32:03.520
infrastructure
serverfault.com
98,587
Adding current directory to path
Here is a question that I can't seem to find a good answer to. Under Windows/DOS we have been "taught" that it is ok for use to be able to launch programs from the current directory without having to prefix the path. However, the default behavior for Linux is that you must prefix ./ for applications/scripts in the curr...
As much as anything else it is a mindset. By having your current directory as part of your path you are indeed increasing your risk. Just because a trojan program has been executed, does not mean that it will not do what one would expect of it. In other words, to use your ls example, the trojan program, unless it was d...
2
7
3,799
2009-12-31T21:50:52.137
infrastructure
serverfault.com
257,920
How can I Get Value of Max(col) in a greatest n per grouped by into Declared variable. MS SQL sever
I am looking for how to set the value of @MaxItemSeqNum to the returned result of the column MAX(dbo.[Table1].[Item_Seq_number]) in my select statement. I need this in order to insert the next record with the next sequence for that grouped item. I already have a surrogate primary key that auto-increments and is used to...
how to set the value of @MaxItemSeqNum to the returned result Either [CODE] or [CODE] fiddle The last variant is more useful - it allows to assign the values to more than one variable in one statement.
0
1
169
2020-01-22T05:44:27.837
data_quality
dba.stackexchange.com
176,088
Does partitioning help with lookups and inserts/updates by primary key?
I'm using MariaDB 10.1 and the default InnoDB storage storage, and I have a few tables with currently 10 to 100 million rows. These tables will keep growing a few million per month, and it's mostly caching. They either have a single-column primary key ( [CODE] ) or a composite primary key (two [CODE] columns) and no AU...
Your questions Q1: If PK is the Partition key , a "point query" ( [CODE] ) on the Partition key will do "pruning", then (hopefully) use an index in the single partition it found. No improvement over having a simple table with a suitable index. Q1: If PK is the [CODE] , but not the Partition key, then the query must ope...
5
1
1,909
2017-06-12T18:11:31.287
api_errors
dba.stackexchange.com
698,487
How to check End of Life dates for SAP installation running on Solaris 11.1?
I've been trying to work out SAP's end of life dates for a client's installation. I've referred to PAM, however it seems like PAM doesn't provide the granularity that we need. For instance, in PAM, there is an entry providing end of life info for our DB (listed as Oracle 11.2) and our Solaris (listed as Solaris 11). Ho...
For Solaris End of Support you can check this pdf from Oracle In general standard support for Solaris 10 is till January 2018
0
0
245
2015-06-12T05:34:09.233
database_errors
serverfault.com
713,890
DNS setup for multihomed devices in physically separated networks
Scenario: There are three physically separated networks, no firewall or router connect them together. In each network there are DNS-servers that resolves hosts in only that network. All networks have the same domain-suffix though. There are some hosts that are multihomed with one interface in each network, an these hav...
By design of the DNS, all name servers listed in the resolver configuration are assumed to have the same data. Multiple name servers are meant for redundancy, not for split namespaces. So if one name server replies that a certain host name does not exist then that answer is considered authoritative and it doesn't make ...
0
1
1,233
2015-08-13T11:14:24.650
infrastructure
serverfault.com
927,764
Join Server to Worfkgroup Without Creds?
I am imaging servers from stock AMI's in amazon. For business purposes I have to briefly join these servers to the domain so that I can install some agents before I shut them down, sysprep them, and image them as our golden images. When I try to remove these servers from the domain by joining them to a arbitrary workgr...
Might try [CODE] Remove-Computer -LocalCredential $cred -WorkgroupName "Workgroup" -Force Could throw in a -Restart if you want Remove-Computer docs
0
0
80
2018-08-24T00:48:39.047
infrastructure
serverfault.com
177,301
Calculating 3d rotation around random axis
This is actually a solved problem, but I want to understand why my original method didn't work (hoping someone with more knowledge can explain). (Keep in mind, I've not very experienced in 3d programming, having only played with the very basic for a little bit...nor do I have a lot of mathematical experience in this ar...
You can indeed compound ('add up') the rotations by multiplication. I'd consider using Quaternions instead though. They're much nicer to work with and they avoid problems with Euler type rotations (e.g. gimbal lock ). You can plug in arbitrary axes of rotation, rather than worrying about X, Y, Z rotations. Quaternion c...
2
5
4,429
2012-11-27T09:58:13.110
data_quality
softwareengineering.stackexchange.com
36,416
What is the best way to store X509 certificate in PostgreSQL database?
I'm working on web authenticate system where users will digitally sign random tokens and this will be checked with X509 certificates stored on the server. Therefore I have to store several X509 certificates (PEM or DER format) in PostgreSQL database. Sounds easy, but I want to have possibility to search certificates wi...
Duplication isn't ideal, but in this case is probably the best choice. Set the table permissions so that the table owner is not the operational day to day database user your app runs as, and only [CODE] your app the ability to write to the certificate data column, not the "cache" columns with expiry etc. Have a [CODE] ...
5
6
9,434
2013-03-11T10:49:57.000
database_errors
dba.stackexchange.com
334,451
Microsoft DNS Server (Windows 2008) CNAME issue
I am using the DNS role in Windows Server 2008 R2. I have my records set up correctly with the following CNAMEs: {removed domain names for security} Currently, only the 'wsp' cname works. All the records are identically set up. I have checked with a DNS checker, and the other two CNAMEs do not resolve to anything. I ha...
You have a separate zones for both magento and mysql. Probably nameserver looks in those zones, and CNAME that you may have in the parent zone is ignored. Guess those zones exist by mistake. [CODE] Besides you have possibly wrong SOA record for domain.co.uk - it refers to non-existing eku1_websrv1.domain.co.uk. Maybe y...
-1
0
701
2011-11-24T12:21:17.980
infrastructure
serverfault.com
497,170
How to safely capture or duplicate incoming requests to a web server
We have taken over a legacy web application that we cannot modify (the source code is broken and deployment fails) and we will eventually rewrite. Ideally we would migrate it one step at a time but this is not possible since we cannot effectively modify the application. I am in charge of rewriting the application and t...
I would use [CODE] or [CODE] , it would be nice to have the port on the switch connected to the web server mirrored, but in absence of that, you can run [CODE] or [CODE] on the server itself. You will need superuser access to run either of those programs. You're going to want to read a bit, as you obviously know what y...
2
2
3,841
2013-04-08T08:58:37.950
data_quality
serverfault.com
513,151
W2K8 R2 DNS subnet ordering issue
I'll try to explain my problem as clearly as possible. We just migrated from Novell eDir and files/print server to Microsoft AD and files/print server. Our domain is integrated into a regional forest. We're a NAT network, LAN it's a 172.16.0.0 and on WAN it's a 10.140.0.0 network. Actually, we got rogue Windows DNS and...
It was the DNS netmask issue. Sources : http://support.microsoft.com/kb/842197 http://msmvps.com/blogs/acefekay/archive/2010/05/29/dns-and-subnet-priortization-amp-dns-round-robin.aspx
1
1
209
2013-06-04T15:32:26.570
infrastructure
serverfault.com
726,836
Display PowerShell in SCCM task sequence
I'm working on a SCCM OSD task sequence using a package and the 'run powershell script' option in the task sequence. I need to have the script prompt for user input. If I run the script using the F8 debug console everything works exactly right. How can I have it display so this is possible?
The same basic premise as mentioned by Ethan Hinton above worked well. In my case I already have a mapped drive (U:) in use so the following worked. Ideally I'd like to convert the following to avoid needing the mapped drive. [CODE] EDIT: I put together a blog post that outlines the basics of how to wrap this up effect...
3
3
4,319
2015-10-05T16:08:58.670
infrastructure
serverfault.com
242,181
Why the difference in query time for these two queries?
I have a MySQL 5.7 database with a large table that has about 70,000,000 rows. There are 4 columns: [CODE] , [CODE] , [CODE] , [CODE] . [CODE] is the primary key, [CODE] is indexed and [CODE] is a foreign key. [CODE] is a [CODE] . I am doing two different queries: [CODE] The first query returns about 10,500 rows. The s...
Please provide [CODE] ! Do you have [CODE] ? It is the optimal index for the first query. Meanwhile, there is no 'perfect' index for the second query. I would guess that [CODE] would be best. What will you do with a resultset of 50K rows? That will choke any web site. If you are processing the data, consider doing some...
0
2
77
2019-07-05T13:52:12.100
api_errors
dba.stackexchange.com
113
When a relational database has better performance than a no relational
When a relational database, like MySQL, has better performance than a no relational, like MongoDB? I saw a question on Quora other day, about why Quora still uses MySQL as their backend, and that their performance is still good.
It depends on your data and what you're doing with it. For example, if the processing you have to do requires transactions to synchronize across nodes, it will likely be faster to use transactions implemented in an RDBMS rather than implementing it yourself on top of NoSQL databases which don't support it natively.
13
10
266
2014-05-17T04:53:03.913
database_errors
datascience.stackexchange.com
34,641
Stopping Multiple processes in a multi-user environment
We have recently moved our production terminal servers from stand alone blades into a data centre running on virtual servers(windows 2003). We are starting to suffer quite major performance issues, and one of the main culprits seems to be IE7, and users launching multiple copies of it instead of using a new window/tab....
I would have used a WMI script like here or a script made using AutoIT or AutoHotkey tools to watch out for new windows with same name and kill them. Specific to Citrix is here http://cwashington.netreach.net/depo/view.asp?Index=992 If this is not helpful enough let me know, I can write a AutoIT script or customize the...
2
0
526
2009-07-01T18:30:14.323
infrastructure
serverfault.com
1,154,089
Microsoft Active Directory Administrator privileges
We have a problem: all our developers have full admin rights on their computers. I set up a group called "Local administrators" through a GPO policy, which includes all domain users (developers), giving them admin privileges on their workstations. Members can make changes to other user profiles if they connect via RDP....
If your developers really need local administrator rights, you should at least make each developer only administrator of his/her own computer. Having all users being administrators on all machines is a terrible design and just asking for troubles.
0
3
64
2024-02-22T11:23:52.913
infrastructure
serverfault.com
83,620
Should strategy objects have state?
I have an application object that needs to validate some data. The particular validation algorithm isn't known until runtime, so I pass a validation object to it, using the strategy pattern . The application might need to reuse the validation object; for example, it might need to perform two validations simultaneously....
I know I'm being pedantic here, but all objects can have state. The question is whether or not they should have state. The answer to that question for strategies is the same as the answer for every other kind of inheritance relationship: Yes , as long as you're not violating the Liskov Substitution Principle . The poin...
6
10
2,380
2011-06-13T19:01:37.113
data_quality
softwareengineering.stackexchange.com
795,248
Nginx Primary script unknown (fastcgi_param + alias)
I'm using Laravel in a serverblock and I'd like to create an alias, for example /webmail. This results in an nginx " [CODE] " error. I think I need to change my [CODE] . Can anyone help me? Below is the important part about my Nginx serverblock. [CODE] So my webmail application is located in [CODE] . Webmail works when...
Try this configuration: [CODE] So, we pass a different document root / script filename prefix to PHP depending on the location. On default locations we have [CODE] set to [CODE] and on [CODE] we set it to [CODE] . You may need to add a separate [CODE] / [CODE] section in the [CODE] location, so that [CODE] or any other...
0
0
476
2016-08-06T16:16:56.947
infrastructure
serverfault.com
611,715
Solaris 10 init failing to reap zombie processes
[CODE] currently shows 17617 zombie processes, all of which have a ppid of 1/init. init should be reaping these defunct processes, but isn't for some reason. The number of defunct processes is growing. Trying to force them to be reaped using [CODE] fails with: [CODE] Here's how I counted the processes, by the way: [COD...
Turns out that init had simply stopped working properly, probably when the system was having I/O problems with swap. As it turns out, if init exits outside the process of shutting down the OS, it will simply restart. So I sent init a SIGSEGV (to make sure that it wouldn't mimic however it determines that a shutdown is ...
1
2
1,497
2014-07-10T19:38:44.177
infrastructure
serverfault.com
940,879
scp to pfsense not working
When ever I try to scp a file from pfsense I get back what appears to be the help for pfsense's scp: [CODE]
You need to use root@ instead of admin@. P.S.: Yes I know that ssh works fine with admin. No I'm not joking.
0
2
1,391
2018-11-20T13:02:55.770
infrastructure
serverfault.com
1,147,847
Google cloud: Your active project does not match the quota project in your local Application
I am trying to connect to a google cloud storage project/bucket using [CODE] , and get the message: WARNING: Your active project does not match the quota project in your local Application Default Credentials file. This might result in unexpected quota issues. To update your Application Default Credentials quota project...
This does mean that the quota from the project ID on the ADC file will be used rather the one you set with the command [CODE] There is available guide on how to view and manage your project's quota. There is difference between the 2 commands base on the documentation : [CODE] - generates user credentials for you to aut...
1
1
3,389
2023-11-14T15:24:44.857
infrastructure
serverfault.com
10,683
Predicting outcome of games - how to make team 1/2 interchangable
Currently I'm writing some models to predict outcomes of team games, but I'm having a hard time featurizing the teams so that the order of teams doesn't matter. For example, currently I duplicate all the data and reverse it to reduce the effect of ordering on the outcome, but that's not proving perfect. If I have "Rave...
Home field advantage is incredibly important in sports. If you always put the home team in the first column, your model will adjust the bias term accordingly. I've been doing this successfully for NBA and MLB models for several years now. Making the first team the home team also eliminates the need for an explicit home...
1
1
214
2016-03-13T07:29:41.990
data_quality
datascience.stackexchange.com
829,412
Postfix - can send mail to outside directly from server, but not from remote hosts connecting to it
I'm currently in the process of configuring a mail server on our AWS VPC to relay messages from applications on multiple servers on that same network onto the internet. This SMTP server is only ever meant to send automated emails and never to receive anything. The main purpose of this machine is to monitor and centrali...
One of the emails finally came through to my inbox. I've looked at the raw message and there are some differences between the two. This is the email that was originally filtered but finally came through: [CODE] This is the email that worked from the start: [CODE] A notable difference is in the lines [CODE] and [CODE] ....
1
1
2,446
2017-01-30T12:58:02.917
api_errors
serverfault.com
109,703
How to Avoid Fragile Unit Tests?
We have written close to 3,000 tests -- data has been hard coded, very little reuse of code. This methodology has began to bite us. As the system changes we find ourselves spending more time fixing broken tests. We have unit, integration and functional tests. What I'm looking for is a definitive way to write manageable...
Don't think of them as "broken unit tests", because they are not. They are specifications, which your program no longer supports. Don't think of it as "fixing the tests", but as "defining new requirements". The tests should specify your application first, not the other way around. You can't say you have a working imple...
27
28
6,861
2011-09-20T19:05:01.757
api_errors
softwareengineering.stackexchange.com
8,511
How to manage the versioning of Azure SQL Databases?
I am looking for a tool that will manage the versioning of Azure SQL Databases, and check for missing schema or migration scripts and apply those changes based on what is missing. Any other solutions or tips would be great. I just want to make sure the database schema is flat across the board regardless, and apply chan...
I assume from the [CODE] tag in your question that you need something that can run from a command line, so that rules out plugins to SSMS like dbForge . Try Flyway (has a free version) or Red Gate (commercial).
1
1
177
2019-07-01T19:14:51.167
pipeline_ops
devops.stackexchange.com
88,983
Big table with simple queries, but with a lot of text, is it bad for performance?
I am making cache table for website. It will have no problem with indexes (one unique index, simple quires), but it will have a lot of utf text. It will be 10-15gb (2 mln rows). Caching will help a lot for saving cpu usage, without cache every page has many complex queries. Is it ok two have such a big table? It will b...
MySQL itself can handle primary key selects very efficiently. However cached content does not require transactional engine so it would be much faster to store this kind of data in various key-value storages. Memcached is the first one to consider.
1
0
95
2015-01-10T03:06:21.397
warehouse_errors
dba.stackexchange.com
798,921
SELinux file path context not working with regex
I've reformatted for readability based on suggestions in the comments. I have a RADIUS server that uses google authenticator, and SELinux is blocking RADIUS from accessing the .google_authenticator files in the user home directories (these are also winbind users, with home dirs in [CODE] ). I tried to give it access by...
Try using [CODE] Instead. Home directories aren't necessarily in /home and this acts as a macro when you rebuild policy. EDIT So I checked the source code and it provides the following text which probably indicates whats going on here. [CODE] Regex that match last, win. The SELinux library is using the following order ...
4
6
2,833
2016-08-24T20:11:59.520
infrastructure
serverfault.com
594,723
Installing PDO and other PHP extensions for magento
I have a server and i was using php files on it. For some reason i had to reinstall apache on it. My files and my SQL database is still there. Now after fresh installation of Apache, when i run my php website i get PDO NOT INSTALLED error. So if now i install "PDO, PDO_MySQL, simplexml, mcrypt, hash, GD, DOM, iconv, cu...
Installation of PHP modules is not related at all with your databases or other data. Depending on your server install the modules using YUM or APT, and it should work just fine. You may need to activate any module in php.ini if there are not activated by default. The restart of apache may be required.
-1
0
986
2014-05-13T09:40:11.003
database_errors
serverfault.com