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
102,657
Backup data to remote dedicated server
My company already has a "local" backup strategy, but is willing to also backup data on our remote dedicated server as an additional "plus". Some info: Both machines are Windows Server (client is 2003, server is 2008) Administrator rights on both machines Valid SSL Certificate available FTP/IIS Server available and in ...
I'm having good luck with a Barracuda Backup appliance. Its not cheap (a few thousand at the beginning and a monthly cost for off-site storage), but it gives you a simple to use tool with lots of technical support. It will also send the data off-site. The least troublesome product that I've used so far. By comparison, ...
0
1
304
2010-01-14T13:24:57.913
database_errors
serverfault.com
601,356
DFS-R broken after renamed upgraded member server
I had an existing 2-way DFS-R replication topology set up, consisting of two servers, one was Windows 2003 R2 and the other Windows 2008 R2. This was working fine. Last week I upgraded the Win 2003 server to Windows 2008 R2. It was a VM, so the upgrade process just involved creating a new Win 2008 R2 OS C: drive and at...
Not supported. Ned Pyle's blog here outlines the process for a 'Disk Swap' DFSR member server replacement as follows: Set up new server and transfer disks across Delete DFSR Config database from swapped disks Add new server to replication group and allow initial sync to complete. The resync shouldn't take long at all a...
4
3
1,700
2014-06-03T04:45:06.033
database_errors
serverfault.com
333,960
INSERT my_table (fields,...) value (value_1,...), (value_2, ...)... is slow in citus
Environment: host: resources:32 cores, 64GB RAM, Docker 24.07 OS: CentOS 7 disk: 10 separate disk partitions The 10 separate disk partitions are as below [CODE] I use below docker-compose.yml to build a 3-node citus cluser in docker, and a standalone postgresql named "pg-16". They all use the same image. The only diffe...
Yeah, Citus its logic for multi-row inserts is definitely something that would benefit from some more code optimization. Luckily there's a way of bulk loading records that is much faster than multi-row inserts (both with Citus and plain Postgres): Using the [CODE] command, or psql its easier to use [CODE] wrapper aroun...
0
0
36
2023-12-11T23:47:33.900
pipeline_ops
dba.stackexchange.com
385,049
Varnish and Connection Flood (DoS - DDoS)
I've been playing around with the Varnish cache server and I got my webpage up lightning fast, it gets 97 Points in Google's Pagespeed and 100 @ Pingdom's. I used Varnish (proxies to nginx), NGINX (only locally available, proxies *.php to php-fpm (but I think about moving to HipHop PHP Compiler)). So as my page was fas...
IIRC varnish uses threads to handle connections, and is configured with a limit. So all an attacker has to do is open, say, 200 connections to the cache to block every thread (see also slowloris ). On the other hand, nginx (which will happily run as a caching reverse proxy ) is an event based server; the context switch...
1
4
3,367
2012-05-01T20:30:35.080
api_errors
serverfault.com
290,048
I get a message denying access when I try to delete a file that I created
OS client: Windows7 professional OS server: Windows 2003 I create a new file in my documents folder (on the server). When I try to delete the file later, I get the following error: [CODE] Why is that?
The problem was the C:\Windows\CSC folder, which is used for Offline files. I had changed some access rights there (because I had to retrieve a couple of files). To fix it, I restarted to safe mode, removed everything from the CSC folder, then rebooted. Now it's working again. Just make sure that you have synchronized ...
1
0
872
2011-07-13T18:46:55.957
infrastructure
serverfault.com
315,116
Forcing InnoDB to build the secondary index
When [CODE] ing, [CODE] defers the building of secondary indexes. For example, [CODE] After the first query, [CODE] [CODE] starts to rebuild the secondary index, [CODE] in background. Without this index, the second query is quite slow. First, how can we force [CODE] to rebuild the secondary index after the first query?...
I think you have some misunderstandings. When you insert a row, InnoDB doesn't rebuild the whole index. It just adds an entry to the existing index. It would be incredibly bad for performance if it had to rebuild the index on a large table after every INSERT. Another misunderstanding is about the deferred index update....
1
3
181
2022-08-02T00:59:34.877
database_errors
dba.stackexchange.com
502,993
Nameservers for Open SRS - who is accountable for my domain?
Context: I purchased the "release" of a domain from a domain provider who was also hosting the corresponding website. I was given an account to log-in to at opensrs.net. I pointed the domain to different nameservers to allow me to host it myself. The problem: Now, several months later, the client received a renewal dom...
Who is managing my domain? From the sounds of it, nobody. According to [CODE] , Tucows Domains is the registrar? Then Tucows Domains is the only company with permission to change the nameservers to "renewyourname.net". Tucows isn't a reseller of OpenSRS, they own it - OpenSRS is the domain wholesale reselling branch of...
0
2
731
2013-04-26T19:01:16.903
infrastructure
serverfault.com
34,683
Unable to find the element using XPath
XPath: [CODE] Exception: [CODE]
[CODE] is thrown by [CODE] when the selector which is used to find an element is invalid. It can be a query with syntax errors, e.g. [CODE] or [CODE] query with syntax errors, or a compound class name passed as an argument to [CODE] , or the expression does not select [CODE] (e.g. " [CODE] "). Now you can check what is...
-2
0
8,311
2018-07-10T07:43:45.840
data_quality
sqa.stackexchange.com
701,751
Persistent ESXi iSCSI datastore from guest VM based target?
I'm in the process of building a home lab environment for Cisco and VMware that will also double as a NAS. The system runs ESXi v6.0 bare metal. Part of my design is that I have a Lenovo TS440 with LSI2008, which I've used VT-d to give to a guest, and that guest runs ZFS with LIO providing a LUN that I can then use as ...
AFAIK you cannot make ESXi to wait for a VM to start before mounting the datastores. I may be wrong though. The datastores are mounted way before any VM can boot up. In general iSCSI connects right away if you do a rescan on the iSCSI sw adapter after your storage VM boots up (and rescan it works way better than NFS, w...
1
1
745
2015-06-26T03:47:14.333
infrastructure
serverfault.com
33,450
Why does cost function on a neural network increase?
I'm training a two layer neural network and outputting the cost function during iteration and noticed that the cost function increases dramatically with increasing iteration number. Initially I suspect it's because the learning rate of gradient descent is too high, so I changed from 0.05 to 0.005. However, this doesn't...
It turned out that my activation function is not well chosen. I chose a linear activation function for the output layer where indeed a ReLu should be chosen. The cost function decreases well after I changed the activation function. I guess this solution works case by case though. May it helps.
1
1
1,327
2018-06-21T03:02:37.777
data_quality
datascience.stackexchange.com
1,108,642
Disable the automatic adding of routes by DHCP
I have a Rapsberry Pi with PiOS. My idea is to install WireGuard on it and route all traffic through WireGuard. I have set the Allowed IPs to 0.0.0.0/0. I want the Pi to work on different networks and work as soon as I connect it without worrying about the network. That's why I can't set a static configuration and have...
If you want to override the [CODE] route you could try statically defining the more specific [CODE] and [CODE] with your wireguard IP as the gateway?
0
1
544
2022-08-19T23:34:37.367
infrastructure
serverfault.com
222,545
Windows 7 logon script net use fails
Our network PCs currently consists of Windows XP Professional on a mixed 2008/2003 domain, with exception to one machine, which is a new Windows 7 PC we have bought for testing before we deploy the operating system. But we have discovered a problem with our logon script which automatically maps network drives for our u...
Comparing the permissions of the drive mapping that worked, to the one that didn't, I found that if I looked at the advanced view of the permissions, that the share that worked actually had the following permissions on the directory (only): Traverse Folder / Execute File List Folder / Read Data Read Attributes Read Ext...
3
0
6,898
2011-01-14T16:24:44.420
api_errors
serverfault.com
230,650
Is it possible to use an EMC SAN in iscsi without starting any Powerwhatever dæmon?
I can't seem to get my iscsi targets working without starting the PowerPath module, even though I don't actually use it. Is it at all possible? Edit: Precision, I'm not currently even using multipathing. But if I don't start /etc/init.d/PowerPath, accessing the devices fail with I/O error. When I start this non-LSB com...
yes, device-mapper-multipath and open-iscsi can work without powerpath. read the dm-mp manpages and the guides for using iscsi initiator (man iscsiadm)
0
1
194
2011-02-03T14:55:31.930
infrastructure
serverfault.com
256,481
iptables v1.4.10: can't initialize iptables table `NAT': Table does not exist
[CODE] The previous kernel was 2.6.32, iptables 1.4.2 and the problem was the same. Current kernel was built manually from source.
It's case sensitive. It should be iptables -t nat -A PREROUTING -d xxx.xxx.xxx.xxx -j DNAT --to-destination 10.0.1.2
0
3
4,117
2011-04-06T17:19:47.193
infrastructure
serverfault.com
948,604
Strongswan site-to-site VPN connected/established but can't ping server
I need to create site-to-site VPN with one server (Not on "strong swan"). I did everything by this article https://blog.ruanbekker.com/blog/2018/02/11/setup-a-site-to-site-ipsec-vpn-with-strongswan-and-preshared-key-authentication/ [CODE] I have not any NAT rules configured, like MASQUERADE
does the IKE SA come up in the first instance? Probably not. If not then perform tcpdump on terminating interface to see if packets are arriving. if this is the case and there is some kind of failed negotiation, then you can check /var/log/ or /var/log/pluto and post what you find there
0
0
309
2019-01-11T09:41:57.263
api_errors
serverfault.com
483,201
IIS 8.0 500.19 error on only the first request
I am running IIS 8.0 locally on my machine for testing purposes. I have installed PHP through the web platform installer and everything is working correctly. The only issue I'm running into is the first request that's sent after the web server has started generates a 500.19 error. After the first initial request that g...
I figured this out. It was a silly mistake on my part. I didn't have the appropriate permissions on the directory. I needed to add the IIS_IUSRS group to the directory; I incorrectly had the IUSR user which allowed everything to work but not without throwing that initial error first.
2
2
2,702
2013-02-27T22:06:58.550
api_errors
serverfault.com
1,146,402
How to route all traffic going to specific address to localhost using nft?
I need intercept traffic going to external IP and reroute it to localhost. Its quite simple using iptables, but I could not understand how to make it work through nft. I create table and chain inside nft, but could not create rule, nft says Operation not supported. Tables [CODE] Rule [CODE] Kernel modules [CODE] What w...
Assign the IP address to the host. Routing all traffic is what the forwarding table is for, firewall can do it, but that is often not necessary. For example, assigning an IP address I made up to loopback on Linux: [CODE] As a one host route, it will take priority even if it normally exists elsewhere on the internet. On...
0
1
152
2023-10-23T13:37:53.420
infrastructure
serverfault.com
586,065
How to enable RDP drive sharing in Server 2012 Essentials Anywhere Access
I have configured my Server 2012 Essentials to perform Anywhere Access (a subset of RAS + IIS + SSL) with secure RDP to internal hosts. This all works very well. However, the predefined RDP connection files that are offered through the web interface have all of the optional resource checkboxes disabled when editing the...
Have you checked the Default Group Policy 'Default Domain policy" for the setting 'Do not allow drive redirection' @ Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection Reference: http://technet.microsoft.com/en-...
1
2
16,288
2014-04-02T04:26:37.667
infrastructure
serverfault.com
40,833
Sonicwall and Windows Update
For the last two weeks whenever I try to run an update on any of the machines in the network the Sonicwall firewall is logging an error "Probable TCP NULL scan dropped" with a source IP of the Windows Update servers, and the website never finishes loading. I've got a server which is connected to a second internet conne...
I ended up routing my WSUS traffic out through another internet connection that didn't have a sonicwall firewall.
0
1
1,665
2009-07-15T02:01:24.740
infrastructure
serverfault.com
222,722
SMTP server (IIS) is running but can't test it with telnet
I have a Windows 2003 web edition server that I can't seem to get the SMTP relay working. BT4 shows port 25 open. When I try use telnet to test it on my desktop I get: [CODE] From the server I get: [CODE] There isn't anything useful in the logs. Any ideas?
I have yet to connect using telnet. However I ruled out iis using smtpdiag .
2
0
4,894
2011-01-15T00:04:39.947
infrastructure
serverfault.com
212,113
Removal of old mail logs in ubuntu - rm or not?
I have a ubuntu server which handles mail via postfix. The server has recently been caned by spam emails and the mail logs are really large as a consequence. The logs are stored with timestamps and I was just wondering if I can just clear out the old logs without consequence to recover some disk space? Also, being none...
If you dont care about what you'll be missing, you have two ways of removing the content of logfiles. One, is of course, removing it, but if you do this, the file will still exist with its content (syslog daemon has it open, and appending content to it). [CODE] Depending on what syslog daemon you are using, just replac...
0
2
4,791
2010-12-13T18:06:37.807
infrastructure
serverfault.com
606
SQL Server Management Studio for a remote database
With a SQL Sever database which is on a remote hosted dedicated server I can work using SQL Server Management Studio installed either on the same server or on my local computer. I the first case I should work using Remote Desktop and this makes the work a little bit slower. In the second case I need to open additional ...
Opening the SQL server to direct outside connections is an idea to avoid if you can - you are significantly increasing your visible surface area for attack and any communication between you and the server (aside from login credentials in the authentication phase, perhaps) will not be encrypted. If you must open the por...
13
9
5,678
2011-01-14T05:26:26.613
database_errors
dba.stackexchange.com
22,344
Recommendation for free event monitoring software
I'm seeking recommendations for free / open event monitoring tools. HPOV costs continue to multiply like so many wet gremlins, and we've had enough. There are some interesting suggestions in this article and the subsequent comments, but before I set about trying many of these I'm sure you all have found a few that you ...
After exploring numerous possibilities, I've found a solution that meets all the requirements and more: Spiceworks Spiceworks is free. Spiceworks is an agentless solution. Nothing has to be loaded on the scanned instance. Spiceworks can send email alerts based on numerous conditions. Spiceworks can monitor logical volu...
5
1
1,022
2012-08-13T03:12:03.153
pipeline_ops
dba.stackexchange.com
159,887
Getting hp-snmp-agents on HP ProLiant DL360 on Lenny working
Possible Duplicate: System load by HP-SNMP-Agents is high After receiving our HP ProLiant DL360 I'd like to integrate the machine into our Munin system and thus enable ProLiant specific information to be exposed via SNMP. I'm running Debian Lenny with kernel 2.6.26-2-vserver-amd64 . I've followed http://downloads.linux...
I'm experiencing the same, my load also stays put at 1 after starting the agents. I've found a solution in this thread, which reduces the load back to at least 0.6: http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1295820132076+28353475&threadId=1332334 Also make sure you have different comm...
3
0
7,588
2010-07-13T10:04:41.987
data_quality
serverfault.com
244,415
How to handle concurrency during an INSERT-SELECT cycle?
The application should limit each user's access to a certain resource to a maximum number of accesses every 24 hours. To keep track of those, we have the following table: [CODE] Each time the resource is accessed, we record it in the table. However, we also need to check if the access limit was reached. To that end, we...
Not sure if that's the best approach, but it seems to be a quick and reliable as long as application[s] consistently uses it. Create a new table, [CODE] . Modify you workflow : [CODE] A brief description. First of all, a new transaction is started and we insert a user_id into the new table [CODE] which has just one col...
1
2
1,382
2019-08-02T12:48:23.107
warehouse_errors
dba.stackexchange.com
219,827
Temporal Table that doesn't use system time
We want to implement temporal tables in SQL Server 2016. We are creating a Datawarehouse and developing Type 2 Slowly changing Dimension Tables. For the BeginDate, we want it to be dependent on transaction date and not the current getdate time. We are reprocessing a history of transactions. Example below, customer has ...
Temporal tables are system -versioned 1 , so the only way to " manually set " the timestamp of a given history row is to alter the OS time at the moment the row is modified which... you probably don't want to do. If you want to " manually set " time bounds on a history table so that it supports temporal query syntax , ...
5
7
2,951
2018-10-11T06:32:48.180
warehouse_errors
dba.stackexchange.com
378,129
Options for PCI-DSS on AWS - file integrity monitoring and intrusion detection
I need to deploy some file integrity monitoring and intrusion detections software on AWS instances. I really wanted to use OSSEC, however it does not work well in an environment where servers can auto deploy and shut down based on load, because it requires server managed keys to be generated. Including the agent in the...
I think you can still use OSSEC. A while back i found a blog that seems to indicate that you can at least automate it with puppet, which would mean you could probably create a lot of excess keys, then just assign them as needed possibly. http://myrondavis.org/2010/12/how-to-completely-automate-ossec.html
5
3
2,894
2012-04-10T14:36:30.177
pipeline_ops
serverfault.com
1,062,780
AWS CloudFormation template with ConfigRule
I'm new to AWS but already tried looking everywhere for this, and couldn't find a proper answer. My aim is to create a CloudFormation template which forms a new stack, without assuming that AWS Config is already enabled. This template should define several more items, one of them should be a ConfigRule. In order to ach...
CloudFormation usually works out the correct order for deployment of components, but sometimes it gets it wrong. You can use the DependsOn attribute to give it a hint to say the Config Recorder must be created before the Config Rule. I'm not 100% sure this will help but it's worth a shot. [CODE] Looking at my own Confi...
0
1
1,607
2021-05-06T15:09:47.607
api_errors
serverfault.com
75,201
Reports from the front lines: VS Lab Management
I'm looking into Lab Management right now for our test environment for manual and automated testing. I'm just getting started on the process of putting together various servers to host/support it and then I'll be making some dummy projects and working through the process. Currently, we are using System Center Virtual M...
I just moved into a VS Lab Management shop from a heavy VMWare Lab Manager environment. Comparing the workflow and capabilities we had to the new environment, there is a tighter integration with VS Lab Management, being able to tie images to defects. That seems to help more on the house keeping side so we know when the...
4
1
89
2011-05-10T14:15:48.913
api_errors
softwareengineering.stackexchange.com
90,457
Is there a reason to use /dev/lognull instead of /dev/null when logging with syslog-ng?
At my office I recently wondered aloud to all, "Why shouldn't these logs be redirected to /dev/null instead of /dev/lognull?" I was told that there is (or was) a reason, but no one could remember it. I was told that the reasons is in the syslog-ng documentation somewhere, but so far I haven't been able to find it. Does...
I was just emailed this from my boss: Well, we named it lognull, but that was just our choice. I found the reason again. Syslog-ng wants to change the permissions on the file it uses for logging, including /dev/null. Lots of other things in the system (incl. things not running as root) depend on /dev/null being readabl...
2
4
2,093
2009-12-03T01:34:07.847
infrastructure
serverfault.com
202
Vagrantfile change with Ansible playbook to control file permission on Vagrant synced folder for Trellis
I use Trellis for my WordPress development. It works great, except I'm finding it hard to change file (or directory) permission within the synced folder. Generally I'm OK with the default permission setup. However, sometimes I need to give write permission to some of the sub-directories of the main (NFS) synced directo...
There are two parts of this Vagrantfile, one does the mounting for Windows hosts (the first half), the other one for UNIX hosts (the second half), but essentially the do the same - just with different plugins. You can see from the [CODE] and [CODE] commands where they set up the appropriate directories with the proper ...
8
4
705
2017-03-02T04:25:10.540
pipeline_ops
devops.stackexchange.com
776,399
cygwin sshd "getnameinfo failed"
I run an Openssh sshd service from Cygwin. When an RSA connection is established: [CODE] Last login: Wed May 11 13:58:50 2016 from 10.1.1.140 -- there is no error message. However, when I use an inline command: [CODE] hi -- the command works, but on ZETA the Windows Event Log now says: sshd: PID 7068: error: get_socket...
To resolve your cygrunsrv error while installing an [CODE] service, you also have to change the [CODE] and not only the [CODE] in: [CODE] where [CODE] is the windows internal service name [CODE] is the name displayed in [CODE] list OR you have to stop and remove the already defined service [CODE] first, before trying t...
2
1
1,010
2016-05-12T14:49:24.173
infrastructure
serverfault.com
335,480
Postgresql super slow on server - super fast locally?
I am hosting a Postgresql database on Heroku with a standard-0 plan. My database has a table called [CODE] which contains ~18 million rows: [CODE] Over the past months I've been noticing that the database is getting slower and slower. I am now at the point where I receive time-outs from my applications because (even si...
The "waste" looks like only 32 bytes per tuple, which doesn't seem particularly egregious. I wouldn't take any action or reach any conclusion based on that. Their own documentation says thing over 10 are worth looking into, you are only at 1.3. Their script for vacuum-stats seems obsolete. It doesn't include references...
1
1
109
2024-02-02T20:53:53.443
database_errors
dba.stackexchange.com
229,652
Is there something a `Promise` can do that `async` cannot?
Recently, I've spent a lot of time trying to dive into, and understand, Javascript Promises, especially those adhering to the Promises/A+ spec . What I'm trying to understand is whether or not [CODE] actually give developers additional tools specifically when compared to CPS based [CODE] , or whether it is mostly synta...
Some of the advantages of promises are that they make asynchronous operations a "first-class" entity. They can be transformed, they are composable, and their use also happens to reduce nesting and make handling of async code more analogous to sync code. To me, it is usually more readable to have a chain of promises tha...
5
4
3,309
2014-02-20T05:35:56.763
api_errors
softwareengineering.stackexchange.com
308,399
JavaScript & AngularJs Modules Implementation technique and structure
So Im building an app and I'm trying to implement the structure of the app so that its robust and scalable in future. My app is mostly divided into JavaScript Modules (revealing pattern) : [CODE] Now the main issue is that I want to use AngularJS within my app too and AngularJs has its own angular modules like so: [COD...
I would argue that, in the case of AngularJS, utilizing callbacks is a code smell. I say this for the pure simple fact that AngularJS includes the notion of promises that you can leverage for the same use-case, and in fact look extremely similar in practice to the code you have already developed. Consider your test met...
1
1
1,569
2016-01-26T14:04:28.767
api_errors
softwareengineering.stackexchange.com
531,739
Smartarray hpacucli command not showing individual drive status
Having a problem with the HPACUCLI cmd on linux, at boot a hp p600 card is reporting an error, but I'm unable to determine which drive it is. Instead of listing the separate drive status, I get one drive status repeated for the array Smart Array P600 in Slot 6 array A [CODE] => ctrl slot=6 pd all show detail Smart Arra...
This can happen in certain setups, especially with really disparate components. E.g. the Smart Array P600 RAID controller was never meant to be used with 2TB SATA disks; and probably not Western Digital disks. Either way, please output the result of [CODE] . Can you please share what enclosure the drives are in? Is thi...
1
1
1,588
2013-08-17T16:24:56.270
infrastructure
serverfault.com
289,118
Using a VM for testing, how to artifically reduce performance?
My workstation has VMWare Server, and I'm running a few VMs for mocked production environments. I'd like to artificially slow them down, which should make finding poorly-performing code easier. While only having 4GB of RAM on my Win7 box, juggling VMWare + VS2010 does a good enough job so far of slowing things down :|,...
WANem can slow down your network traffic, either as a virtual appliance or a bootable CD on a separate machine.
4
1
91
2011-07-11T16:43:29.910
infrastructure
serverfault.com
83,499
Tracing 'Invalid Number Error' from millions of rows using a large, complicated query
Background I am working on fixing a large query that I inherited. The query consists of over 200 lines of DML statements. The search queries the database restricting the data to a single month. Most months work just fine, but there are a few months that generate an [CODE] error. I suspect the problem is one of the foll...
Your suspect #2 cannot be true because null values do not cause ORA-01722. Q1: You might try [CODE] on all the alphanumeric columns whereever any one is used as a numeric value and later scan for the identifying numeric replacement value, which might even be null if still identifying, in the output to spot the offendin...
2
2
1,710
2014-11-24T17:11:45.247
database_errors
dba.stackexchange.com
1,010,044
Exchange 2010 - Moderate mails sent to Distribution Group "All employees" by sender manager
In Exchange 2010 we can moderate mails sent to a distribution list, directly from the distribution list parameters. It is the same moderators for all the senders. This is perfect except that wen cannot choose different moderators for different senders. There is a second option, with Transport Rules, but it cannot moder...
As you said, the email messages which are sent from all the senders to the distribution group will be moderated by the same moderators. There aren’t any other features to realize your requirement in the settings of distribution group, not being set different moderators for different senders in the distribution group is...
0
1
340
2020-03-30T09:47:04.590
infrastructure
serverfault.com
812,192
Advantage of Logs and DBs on separate SAS HDDs on dedicated server?
Is there any significant performance advantage of having log data (application + DB) and DB data on separate SAS drives (for a dedicated server running CentOS) because writes of logging and db will cause writes to be random while keeping things separate will allow more sequential writes (I might be wrong here!). Also, ...
One major advantage of having separate disks, is the ability to recover data in the event of a failure. If you take regular backups of the database, and record transaction logs to a different disk than the database, if either disk fails, you can quickly get up and running without any database data being lost (restore f...
0
0
37
2016-10-30T21:10:39.740
infrastructure
serverfault.com
44,419
pg_ctl start gives FATAL: role does not exist
On my system, [CODE] returns [CODE] . I run [CODE] with the [CODE] argument. Then as OS user [CODE] I run [CODE] on the newly-initialized cluster, and it gives this output: [CODE] The server appears to have started up normally. I believe the error occurs because it wants me to run [CODE] as the OS user named [CODE] . W...
This happens when you run [CODE] with the [CODE] (wait) option, because it will try a test connection with a user that does not exist (in your case). But that's not really a problem (except for the confusing error message), because that proves that the server is up.
1
2
1,633
2013-06-13T01:18:18.033
database_errors
dba.stackexchange.com
896,218
IIS on Server 2012 R2 serving very slowly to remote clients
We've been trying to debug very slow transfer rates for remote clients hitting our web server (IIS on 2k12 R2). The RTT to the client is about 150ms, and we're struggling to get more than about 500kbps out of our 100Mbps link. The client can speed-test download over 300MBit/s to a local speed test server, so we don't b...
We tracked down the problem for this case. It was a wrong port setting on our router facing our demarcation switch. The router interface was set to 1Gbit, but the fibre is 100Mbit. Flow control was also disabled on the port in the switch, so the router was flooding the switch causing it to drop packets. Forcing the rou...
1
0
506
2018-02-08T00:38:12.653
api_errors
serverfault.com
224,850
Benchmarking hosting providers IO with Bonnie
Ok, because of a bunch of projects I'm working on I've access to dedicated Servers on a 3 hosting providers. As an experiment and for educational purposes I decided to see if I could benchmark how good the IO is with each. Bit of research lead me to Bonnie++ So I installed it on the server and ran this simple command [...
These sites can help you with interpreting bonnie results: http://www.textuality.com/bonnie/advice.html http://www.issociate.de/board/post/478953/Understanding_bonnie++_results.html http://sourceforge.net/projects/witme/files/bonnie-to-chart/ First though - I'd like to address some inconsistency here: You've done three...
1
5
2,179
2011-01-20T20:09:02.260
infrastructure
serverfault.com
963,989
Kerberos - TCP client wants 1195725856 bytes, cap is 1048572
I'm having some difficulties debugging this error. I'm running nginx as an api gateway built to make a sub-request to kerberos whenever an endpoint gets called using the SPNEGO method. But whenever I attempt to make a requests with TGS ticket in the header I get the error [CODE] then the connection closes. I've tried [...
That's a protocol mismatch; at some point you're sending an HTTP request when the Kerberos server is expecting something else. The giveaway here is the number shown in the error, 1195725856. Converted to hexadecimal, that's 47 45 54 20. Converted to ASCII, it is [CODE] , [CODE] , [CODE] , space, or the first four chara...
1
1
647
2019-04-21T18:30:18.113
data_quality
serverfault.com
348,849
Unable to delete a folder? Read Only Attribute locked?
We have a Windows 2008 R2 with Oracle11g and I need to uninstall the server and to reinstall again. I was following this Oracle Uninstall guide here: http://www.oracle-base.com/articles/misc/ManualOracleUninstall.php Everything was going fine untill the step: Delete the "C:\Oracle" directory, or whatever directory is y...
My experience has been that box is checked and dimmed even on empty folders that are not read-only. I have always considered it a display anomaly. I would say that the problem is elsewhere. Perhaps resetting the permissions and owner on the folder to your account full control would be a good start. Using a tool like Sy...
1
1
3,690
2012-01-11T13:53:46.297
database_errors
serverfault.com
922,693
Windows 2012 R2 Website Hosting with SSL
I'm an apprentice at a small company who provide EPOS systems and create e-commerce websites for people. Two of my managers have left and i have been left in charge of everything web-related (including the server that the websites are hosted on), which you could imagine being a lot of stress. Now for the issue: The ser...
Okay, so I got this sorted out. For anyone interested, read how it was done below: The website plugin required no SNI for this particular website and I needed SNI enabled, however, I also needed to set up a default SSL website. I went to the bindings for the website that i was having trouble with and added the followin...
2
1
123
2018-07-19T14:04:44.393
api_errors
serverfault.com
748,769
Replication issue on all 3 domain controllers
We have 3 domain controllers in server 2012. Replication is failing miserably. Repadmin /replsummary dc1 rpc server not available dc 2 rpc server not available dc 3 "Insufficient attributes were given to create an object" I wll be coming with dcdiag output soon. But one thing still stuck in my mind is that during dcdia...
First 2 DC seems to be a network issue, are you able to connect the DC Check the role server (PDC) first and resolve the issue then check other 2 DC's to fix the replication issues If DC's are not replicated more then tombstone time period the need a rebuild to resolve the issue
0
0
2,667
2016-01-13T11:01:35.033
database_errors
serverfault.com
376,269
Best practice to add polymorphic attachments to a post
I'm currently trying to figure out how to solve following problem: I have a model called Post that has, among other attributes, [CODE] , [CODE] , [CODE] and [CODE] for users to add links to their posts and label them like: 'Find us here' / 'maps.google.com/something' 'Our Facebook' / 'facebook.com/example.com' So what ...
This is probably the most robust way: [CODE] [CODE] [CODE] Usage: [CODE] Maintain LSP of the classes. [CODE] should always be a safe fallback.
2
2
124
2018-08-01T15:34:48.057
api_errors
softwareengineering.stackexchange.com
334,224
Running Upstart user jobs on startup
I am running Ubuntu server 11.04. I have created an Upstart user job as described here . I have the following file at my [CODE] : [CODE] As [CODE] I can start, stop, and reload the job fine- it works perfectly: [CODE] The problem is that the job is not starting automatically at boot when [CODE] starts. After a fresh bo...
The problem is that user jobs aren't loaded into Upstart until the user creates an Upstart session by running one of the [CODE] commands. I've described it in more detail at http://bradleyayers.blogspot.com.au/2012/04/enabling-upstart-user-jobs-to-start-at.html and also written an Upstart job that works around the prob...
8
8
6,751
2011-11-23T20:27:24.477
infrastructure
serverfault.com
316,844
Transferring InnoDB database via rsync
We are in the process of switching to a new RAID array and need to copy our MySQL InnoDB database to the new RAID array while minimizing downtime (50GB database). I understand that using rsync on a running MySQL database will not produce a usable copy of the database. However, can I get an exact copy by using rsync on ...
What you are describing should work, however my advice for backing up any database using a filesystem-level backup is that unless the database vendor has approved procedures for doing otherwise you need to quiesce the database before performing a filesystem-level backup (That means "shut the damn thing down"). What you...
2
6
2,120
2011-09-29T14:43:45.837
database_errors
serverfault.com
20,388
many 'unauthenticated user', 'connecting host', in show full processlist (Mysql 5.1.5)
I have a mysql slave on AWS/EC2 that receives peak CPU randomally. I run show full processlits and I get many (few 100s) of processes like this: '1141944', 'unauthenticated user', 'connecting host', NULL, 'Connect', NULL, 'login', NULL What is it ? Any idea on how I can detect what causes the server to suddnely climb t...
Setting skip_name_resolve disables the MySQL server's ability to perform DNS lookups. DNS servers can be unavailable and for a production server it is usually better to specify and ip and not a hostname as the 'host' specifier of a username. However users must then be created as 'user'@’ip’ and not as 'user'@'host' (ex...
1
3
12,249
2012-07-04T12:58:38.773
database_errors
dba.stackexchange.com
960,548
Recently purchased domain name at SiteGround redirects to a GoDaddy parked page
I'm doing a freelance job and the client provided me with the account details of a recently purchased SiteGround account, I proceeded to put a test index.php in the public_html folder. But when I try to access the website through the domain name ( goldenbranch-dates.com ) it redirects me to a GoDaddy page that says : W...
The domain is indeed registered at GoDaddy: [CODE] The domain resolves to a GoDaddy IP address: [CODE] So it looks like you'll need to setup DNS to point to SiteGround. They provide instructions at https://www.siteground.com/tutorials/getting-started/initial-domain-setup/ . Essentially, you need to follow their instruc...
-2
0
377
2019-03-29T00:09:49.263
infrastructure
serverfault.com
558,081
Setup machines network in Windows Azure
I'm building a web application and I've decided to host it on Windows Azure. My application has three components: A front-end created with Play Framework (machine A) A back-end core written in Java that executes my business logic (machine B) A database (machine C) Since I have a free Bizspark account I created 3 free A...
Well, apart from the fact that you are exploiting the platform benefits, here are my thoughts. I would say the best way to interconnect VMs is to utilize the Azure Virtual Network. However, as of today (Dec. 5, 2013) you cannot span a Virtual Network across multiple accounts. Your only option is to access the machines ...
0
0
942
2013-11-28T16:24:47.593
database_errors
serverfault.com
494,697
CentOS 6 tftp server default boot menu
Edit: I figured it out. I just had to set permissions on my files properly which was causing problems (did not see how I missed that). Thanks everybody for the suggesstions. I am trying to install a TFTP Server on CentOS 6. The idea is that the machine I install it on is a server and it allows clients to boot over the ...
You're looking for the [CODE] setting and you need [CODE] to actually display the menu. This is the PXE config I've set up at work (with irrelevant details stripped out, it's actually autogenerated from a django template and a bit more complex): [CODE]
0
0
971
2013-03-30T05:52:54.593
infrastructure
serverfault.com
361,391
Term for refactoring looping logic for an event loop
Constrained by a main loop outside of my control (eg: UI event loop, game loop, etc...), I have a slow (relative to the main loop's expectations) algorithm involving a loop. Thus, I have to restructure the loop to be ___ (what is this term?) so that it can run partially each iteration (not 1:1) of the main loop (ie: sp...
The full concept I was looking for was similar to generators but less restricted/specific, and I didn't mention that since I felt use of the term "generator" would distract from the fundamental inquiry. Generators are also known as semi-co-routines. Co-routines are what I was ultimately looking for, and they are used t...
-5
1
228
2017-11-28T04:01:38.153
api_errors
softwareengineering.stackexchange.com
5,330
Webdriver Check if Checkbox is Set and Set it if Not
I am learning Webdriver with JUnit by going through Alan Richardson's Selenium Simplified book and taking translating the exercises/tests from Selenium RC to Webdriver. So far, this has proven to be an excellent learning experience. But recently I have hit an issue, and cannot solve it despite extensive searching. In S...
In the Selenium Simplified course the secret to the selector is really the 'value' not the 'type' as the 'value' identifies the WebElement uniquely on that page, coupled with a type 'just in case' [CODE] Or using [CODE] code. You could instead do: [CODE] Or iterate over them: [CODE] Hope that helps.
19
9
137,427
2012-12-12T17:55:13.070
data_quality
sqa.stackexchange.com
238,511
MVC4 : How to create model at run time?
In my project I am dynamically creating table by giving table name (ex. student) and adding fields to that table and then save table. Now, my table is created in SQL Server database. Assume table has data and I want to show the data of table (ex student) on WebGrid. But, the problem is I have no model for that table (e...
Don't do that You really shouldn't be modifying table schema at runtime. All sorts of things can go wrong. You could have someone try to create a column that turns out to be a reserved word. The access you are giving the user to be able to do these changes allows for things like dropping tables too. You really shouldn'...
3
8
8,720
2014-05-09T13:31:05.037
database_errors
softwareengineering.stackexchange.com
717,653
Potential of a server
I was wondering, if I use an old home machine as a server - how many connections will I be actually able to support. I was able to calculate the connection's capabilities myself as it is quite simple. 30 mbit/s = 3.75 MB/s, with average request size of 150 KB 3750/150 = 25. So theoretically my connection will support 2...
I wouldn't do this, but the reasons have nothing to do with capacity. In a server, I like to have a lot of uptime. This means you need things like redundant power supplies and RAID arrays or a SAN, and ECC RAM. It's rather nice to have some monitoring, too, using something like IPMI. This is why servers are usually mor...
-6
2
110
2015-08-29T07:39:42.653
api_errors
serverfault.com
49,565
Custom Framework for Writing a Test that Reads a CSV File into a HashMap
I am trying to complete a lab where we are asked to write a unit test that can read a csv file into a hashmap. So far I have this: [CODE] The .csv is like this: [CODE] My first problem is that it returns a [CODE] value. My second problem is probably in the way the test is set up. But I'm not sure. My question is how sh...
I think your biggest issue here, while not strictly test related, is your understanding of what the code you've written does (versus what it is supposed to do). What your code currently does If your only return statement is [CODE] you will always get null as a return value, which is usually not useful. With that out of...
-1
2
421
2021-12-26T09:20:35.690
data_quality
sqa.stackexchange.com
198,513
SQL beginner, need help with WHERE syntax error
I am having a problem with a sql query that is supposed to find authors that have published at least one book priced $13 or more. IT is supposed to display first and last name, sorted by last name as long as the author has published at least one book priced $13 or more. Below is my query so far: [CODE] The first pictur...
Strings are denoted with Single Quotes. [CODE] If your price column is an int/decimal/float (or any numeric) datatype, you don't have to use a string. [CODE] Probably better to use the second WHERE, as it is comparing the NUMERIC values, rather than the string values. Even if the price column IS a string, it will CONVE...
0
8
6,450
2018-02-21T22:12:50.540
warehouse_errors
dba.stackexchange.com
484,945
Is there any way to avoid copying a user's Terminal Server profile upon logoff/logon?
Currently, we have a TS with all user profiles stored locally. We have a DR server, which is synced by robocopying the C:\Users folder and performing manual configuration on the other end to update the links to the profiles (for new users). This is obviously cumbersome. What I want to do is configure the user account o...
This certainly isn't orthodox, but we ended up DFS replicating C:\Users on both servers and copying over the ProfileList registry key at regular intervals. If the main server fails, the other one will be ready to go with an up-to-date copy of all users' data.
0
0
1,549
2013-03-05T17:35:39.673
infrastructure
serverfault.com
494,833
DHCPREQUEST and DHCPACK spam in logs
I've recently noticed that my android phone (droid dna, although the thunderbolt that I had before did the same exact thing) is rapidly requesting dhcp info my dhcp server (isc-dhcp-server on debian squeeze). I had initially just thought it was the thunderbolt that was doing it, although I had recently noticed that the...
I can confirm the same issue exists with the Nexus 7 and the isc-dhcp-server. I was able to circumvent the problem to some degree by giving the device's MAC a reserved address. This doesn't help when you have guests connect to the network and they don't have a reservation, however. Following the request/response flow w...
4
1
3,006
2013-03-30T20:33:57.623
infrastructure
serverfault.com
517,711
Webserver load test
Is there any way to simulate 1000 or so visitors accessing our server? We have undergone a complete app re-write and re-structuring. We had a very optimized Tomcat server, and are moving to a Glassfish back-end server with an Apache front-end. We are in "beta" phase right now, but only have a few of our users actively ...
Just wanted to give you some pointers when doing your load testing (proper testing will reduce bad news in near future). What I have experienced is that - when simulating "real" web service users, use "real" tools for it. Such as Selenium , Watir or Robot framework . Why? Simply put: These tools will simulate actual br...
1
1
261
2013-06-21T23:41:38.847
infrastructure
serverfault.com
667,732
Creating javaroles in Oracle 11g XE
I have installed Oracle 11g Express Edition in my system.I want to create user who has got the role javauserpriv. After creating the user I ran the following command grant javauserpriv to dbuser(new user) and I got the below error. QL Error: ORA-01919: role 'JAVAUSERPRIV' does not exist 01919. 00000 - "role '%s' does n...
You can create the role by executiung [CODE] statement but anyway XE does NOT support Java stored procedures.
1
0
1,019
2015-02-15T04:14:34.227
api_errors
serverfault.com
563,241
iptables - Multiple IP's, only one is IP Prerouting correctly
I am trying to redirect all requests on port 80 to port 9000 across all my IP's I have 1 server hosting several IP addresses on eth0. For the sake of my problem, lets say they all use apache to listen to port 9000 Only the primary IP address (.106) is working correctly and redirecting traffic [CODE] Everything else tha...
If the default page is shown the redirect works (as you can also see since the bytes and packet counters are >0), this is a configuration issue in Apache.
2
3
952
2013-12-23T20:27:09.187
infrastructure
serverfault.com
629,318
NGINX Proxy Pass to NodeJS App: Returning 502 error
I'm trying to setup NGINX as the frontend of my NodeJS app, which is live on [CODE] , but i can't resolve this 502 error. NGINX is locally reachable at [CODE] or [CODE] dev.example (file in: /etc/nginx/sites-available and symlinked to sites-enabled) [CODE] error.log 2014/09/17 19:38:26 [error] 1679#0: *1 connect() fail...
It could also be SELinux that's preventing the connection being made as [CODE] is off by default. [CODE] Check if this is turned on. If not, turn it on by running [CODE] The [CODE] means persistent changes so the new boolean will still be in effect even after a reboot.
3
11
9,414
2014-09-17T20:15:01.527
api_errors
serverfault.com
56,847
choosing classifiers
For what I read the 5x2cv t test is "a procedure for comparing the performance of two models (classifiers or regressors) that was proposed by Dietterich to address shortcomings in other methods such as the resampled paired t test and the k-fold cross-validated paired t test" . I am currently making some experiments wit...
See, your conclusions appear to be correct, your statistical results explain your conclusions , i would say statistically speaking even with a P-value of 0.055 you still have an error rate of 15 to 25% that you may be accepting a wrong null hypothesis and maybe your alternate hypothesis is right , so combining knowledg...
2
1
69
2019-08-02T15:07:49.457
data_quality
datascience.stackexchange.com
890,845
Additional settings after installation of Apache Tomcat in Ubuntu 16.04?
I have a VM which runs [CODE] and [CODE] and currently is hosting some WordPress sites. I have implemented locally a web project which runs in [CODE] server and I want to deploy it in the VM. I am planning to install Apache Tomcat 8 and then deploy the war file of my project there. My question is : After the installati...
There are a couple of ways of doing this, either serve requests to the application using the [CODE] connector, or by configuring apache as a reverse proxy with [CODE] and sending requests to the tomcat web server. Both will work as a subdomain or as a Directory or Alias directive, so set up will be along these lines: T...
0
0
112
2018-01-05T10:14:29.790
infrastructure
serverfault.com
436,738
Why is inheritance bad in a Person-Student model?
I've just started learning about Inheritance vs Composition and it's kind of tricky for me to get my head around it for some reason. I have these classes: Person [CODE] Teacher [CODE] Student [CODE] And I've been told this: Protip: don't use class inheritance to model domain (real-world) relationships like people/human...
The problem I have with this model is that teacher & student are roles while person is a real entity. While this model will work in the short term, it will have problems if: a student becomes a teacher, or, if a teacher takes a course becoming a student (or also if a student graduates, and is no longer a student). Stud...
50
119
10,259
2022-02-14T15:31:07.117
api_errors
softwareengineering.stackexchange.com
238,557
Having a subquery somehow do the same group by as the outer query
i'm pretty decent with SQL but it's not my main experience of expertise. A colleague asked me a stumper of a question the other day. I was wondering if you guys could provide assistance. Basically we're doing an over all count and grouping these counts by days... but we'd also like to kind of subquery those counts to g...
It is legal, but confusing and a bad idea, that you use the same table aliases in different levels of the query. You could likely do what you want by adding the condition [CODE] in the subquery, but of course you would have to have one of the aliases be "d2" rather than "d" to do that. But it seems like you could get r...
2
0
1,655
2019-05-20T09:47:31.360
warehouse_errors
dba.stackexchange.com
229,580
Mail Server Caching
I'm currently working on a web mail client. When a user logs in, I'm fetching all the mails from the INBOX from the beginning of time. As expected this is pretty darn slow. I'm planning to implement some sort of a filtering/caching technique and was looking for some ideas. If I fetch all the message numbers, trim them ...
Why don't you reverse the order of your retrieval? Instead of starting at the beginning of time, start at the end of time (ie. most recent) and then go back in time. Users looking at mail want to see what's most recently come in, they don't care as much about what was sent to them last week or even last year. Another o...
0
1
148
2014-02-19T18:24:45.833
api_errors
softwareengineering.stackexchange.com
869,221
Apache VirtualHost with ProxyPass to node.js server refuses to work ('Could not resolve host name')
I'm running local Apache on my mac for development, and also have node.js server running at [CODE] . I use [CODE] domain for Apache projects and would like [CODE] domain to redirect to node.js server. I have virtual hosts set up as follows: [CODE] However, when I try to apply these settings, I get the error: [CODE] I s...
I fixed my own problem, and here’s what was being done wrong here: I should have made sure that the custom domain actually resolves to [CODE] . For homebrew dnsmasq on mac, this will do the trick: [CODE] And then OS X should be told to look up custom domain locally: [CODE] VirtualHost rule for proxy redirect should app...
3
0
3,851
2017-08-17T20:00:28.850
infrastructure
serverfault.com
836,082
ssh: connecting through localhost port 22
Hey so whenever I try connecting ssh through port 22 I get this error, ssh: connect to host localhost port 22: Connection refused The linux computers have a static IP of 192.168.2.128/129 I reinstalled ssh fresh and still get this error, I've been able to get access to my device but without privileges Can someone help ...
[CODE] This command would try to connect to your laptop if you run it on your laptop. [CODE] is always the machine you look this up on itself, so on your laptop, [CODE] is your laptop... If you want to connect as user [CODE] to [CODE] run [CODE] . And learn the fundamentals before running any kind of servers on the int...
-3
1
578
2017-03-03T11:43:39.357
api_errors
serverfault.com
616,713
Can't Access Computer Configuration > Preferences or user configuration > Preferences
After creating a new GPO in Windows Server 2008R2 Right click Edit on the newly created GPO Group policy Management Editor opens Clicking on Preferences shows this popup error After Clicking ok the preferences folder is blank. I tried on existing GPO's to see if i can access the Preferences and I was able to do so. Fol...
First, the error message makes me think this computer is having trouble communicating with your DC for some reason. You can change the DC you're running against in GPMC (Right click on domain name in GPMC > Change domain controller). Give this a shot first. Second, take a look at your event logs and see if there's any ...
2
0
339
2014-07-30T19:27:51.853
infrastructure
serverfault.com
295,596
WMI error on FDCC/USGCB domain
Our lab recent moved to a domain with FDCC/USGCB policies and we ran into a number of problems with our client / server configuration. Rather than outline everything, I point you to a link and simply say that the Windows Management Interface (WMI) was the failing point. From the researcher's client PC (Windows XP Pro) ...
If you want to prove whether WMI is working do the following. execute wmi query at the server. Something like "wmic os get name" will suffice. Take a Netmon/Wireshark network trace and do the same query remotely against server from the PC to make sure query is going to correct server. "wmic /node: os get name" I am not...
0
0
290
2011-07-29T17:53:09.960
data_quality
serverfault.com
283,758
CUBE and calculating the number of dimensions
if a data presented with [CODE] in which each dimension is dependent to hierarchical 3-level aggregate like (country, city, street), then we can summarize it into [CODE] ways! we know for cube with [CODE] dimension in which none of dimension is hierarchical we have [CODE] summarizing ways, but in this case that each di...
It seems like the "hierarchical dimension"s example given as (year, month, week) is treated really the same as 3 independent dimensions - all 8 possible combinations are allowed - that implies they are independent/orthogonal. So if you have 4 of these triplet dimensions, that's the same as 12 independent dimensions. Bu...
3
4
251
2021-01-21T23:14:54.423
warehouse_errors
dba.stackexchange.com
709,715
proftpd ignores HideGroup
I have an interesting problem when hosting a proftpd on a SL6 x86_64. When I compile from source, proftpd executable ignores the HideGroup feature. However, when I install an older version from epel via rpm, this HideGroup feature works just fine. Why does this feature from mod_core get ignored when installed from sour...
What does: [CODE] show for the [CODE] installed from epel via rpm(yum)? One of the things emitted by the above command is the list of compile-time options used for that [CODE] binary. By comparing your [CODE] command options with the ones used for the epel version, you might find the culprit.
1
1
235
2015-07-30T15:26:03.497
infrastructure
serverfault.com
153,075
Syntax checker working crazy with cisco
I'm trying to verify only two commands for cisco IOS ACL Extendend. They are: [CODE] For this i`m using a syntax checker avaliable on the internet located in http://techie.devnull.cz/aclcheck But when i execute the software for checking, it gives me a error in line 1 saying "destination specification ?". I've read many...
In your first line the error comes from /23, you can't write this ACL like that, you should use wildcard mask any after deny, this is the protocol field, any is not valid In the second line, host is missing before the IP address Right syntax is : [CODE] I will recommend you to use named access-list if possible, writing...
0
1
1,450
2010-06-21T02:08:42.787
infrastructure
serverfault.com
8,520
mysql replication deadlock slave stopped
I've a master and slave and got the slave stopped with the following error log in slave. I want to fix this and get the two servers on synch and get going again. 111128 8:42:24 [Note] Slave I/O thread: connected to master 'repl@masterIP:3306', replication started in log 'mysql-bin.000006' at position 169 111128 15:46:5...
This query fails on slave: 'insert into archieved(eid,at,rtime,scode) select id,at,avg(rtime),scode from tstatus where date(at)="2011-10-29" group by id' You report a strange Error_code: 0, but try to run this query on slave? When it run succesfully then run as root: [CODE]
2
1
2,622
2011-11-29T05:13:13.493
database_errors
dba.stackexchange.com
489,903
How to create an else statement with the expect command?
I have the follow expect script which adds a known host if a known host does not exist. [CODE] The script works fine the first time I ssh into a device however if I ssh into a device for a nth + 1 time, it throws an error [CODE] presumably because it continues to expect the string [CODE] How can I tell the script to ju...
Use [CODE] to match the "unknown host" question only if it comes before the command prompt: [CODE]
5
2
8,311
2013-03-21T02:14:03.257
infrastructure
serverfault.com
505,057
Monit 5.5 binding to localhost only, but should be on all
Using Centos 6.4, using a yum installed Monit 5.5. I have 2 servers with monit installed - same version, same config - but one binds on all addresses and the other only binds on the localhost. Problem server: [CODE] Good server: [CODE] The config is this: [CODE] I am guessing the issue is some network misconfiguration ...
If the Monit behavior does not match what is written in the configuration file, one possible cause may be that Monit actually uses a different configuration file. The [CODE] script in the [CODE] package starts [CODE] without specifying the configuration file name, therefore Monit tries to find the configuration file in...
4
4
1,761
2013-05-04T20:50:00.883
infrastructure
serverfault.com
257,771
Planning sysadmin group permissions in Windows network
I need to set up a plan for organizing permissions for sysadmins in a 200-server Windows 2003/2008 network. The servers exist in 5 separate forests that are connected via 2-way trusts. At the moment, I'm mostly focused on how best to organize the groups. All sysadmins have a single admin account in one of the forests (...
One benefit from doing things that way comes when you have personnel changes. Since everything is set up with groups, you create your new account, populate the global groups in Domain A, and you're set. I'm not sure what you were thinking as alternatives, but if you were thinking just directly putting the user objects ...
1
0
231
2011-04-09T19:32:32.997
infrastructure
serverfault.com
276,234
Blank page using Chrome but working on Safari or FF
We have a webpage (vimity.com) in php served by Apache on top of Ubuntu 9.04. The homepage looks great on FF and Safari but not on Chrome. The problem with Chrome is only on the Homepage, the rest of the page is looking good on all browsers. When we disable the cache the problem does not appear and Homepage looks also ...
It seems that the Content-Length header is wrong, as if its getting interrupted from the connection. If you're setting Content-Length somewhere in PHP for use with your cache, I would start by looking at debugging this.
1
0
473
2011-06-02T10:25:23.230
database_errors
serverfault.com
1,111,837
How does TCP (and other packet-based protocols) avoid conflicting bits?
Scott here. I was thinking about how packet-based protocols, like TCP, avoid conflicting packets. It must've worked somehow because in the early networking days before switches we had hubs, which are comparable to ethernet cables with multiple endpoints. I started thinking about how the TCP protocol would avoid multipl...
Turns out I'm just a little dumb and forgot my OSI model. For anyone else wondering, collision detection is handled by CSMA/CD , part of the L2 stack.
0
0
39
2022-09-29T01:15:49.810
infrastructure
serverfault.com
117,908
Scope_Identity() returns null after inserting first row in table
I have a stored procedure that is used for inserting values in two tables. The tables have a parent-child relationship i.e. the first table has an identity column, and the second table references the first table. In the following procedure, I am returning [CODE] value as a column: [CODE] The issue is when isFirstMSH is...
If you call the procedure multiple times, those are different scopes , so [CODE] is expected to be [CODE] . And you need to be careful about concepts - if you call the procedure multiple times, how is the second invocation really going to be sure that "the last generated value" was from the previous invocation from tha...
4
9
11,760
2015-10-13T16:27:06.813
database_errors
dba.stackexchange.com
142,750
T-SQL for autogrowth of multiple data files
I can't seem to figure out the problems with my script to alter SQL Server 2008 database and file growth. There are two data files and a log file, all which need to have Autogrowth ON. Does this look completely wrong? Thanks! [CODE]
The syntax looks ok, make sure the database name doesn't need to be [square-bracketed] and that the logical names match.
1
1
2,088
2010-05-17T20:25:30.337
database_errors
serverfault.com
153,564
Can I Configure a Majority and File Share Quorum Where the File Share is Accessed Over the Internet?
I have a 2-site geographically dispersed Cluster setup and have 1 node in each site. Both sites are connected with FC for large volume synchronous data replication and high-bandwidth network availability. As I understand the best quorum configuration for this setup is Majority and File Share Quorum, and the File Share ...
if it is w2k8r2 the the following is a good link, its for sql but applies to clustering in general. http://clusteringformeremortals.com/2009/09/15/step-by-step-configuring-a-2-node-multi-site-cluster-on-windows-server-2008-r2-%e2%80%93-part-1/
0
0
258
2010-06-22T12:16:22.930
database_errors
serverfault.com
936,367
PowerMTA Startup error: Error loading DNS configuration: Error parsing IP address "2a02:c207::2:53": syntax error
[CODE] Any idea how to fix this problem?
Many programs require IPv6 address literals to appear in brackets, e.g.: [CODE]
1
1
997
2018-10-19T18:11:19.620
infrastructure
serverfault.com
856,057
Can't send mail to certain address like iccloud.com or faswebnet.it
as described in title i can't send mails to iccloud.com or faswebnet.it. Mails reamins in queque on postfix and never sent. On postfix log i have: [CODE] Also i have some warnins like [CODE] Any ideas? Thanks
The message indicates that your connection is timing out. In most cases, then next thing that I would try is to determine why the connection is timing out by perhaps trying a ping and/or traceroute test. Then, because sometimes those are blocked, I might try to use netcat or maybe telnet to connect to port 25 to try to...
-1
0
55
2017-06-15T18:29:04.330
infrastructure
serverfault.com
10,988
Windows Server 2008 roaming profile data synchronisation issue with Vista
I have a Windows Server 2008 Standard server and a network of Windows XP machines and one Windows Vista machine. The Windows server is the primary Active Directory server for the network and all users have roaming profiles. All the Windows XP machines happily synchronise their profiles which includes the My Documents d...
Windows XP profiles are not compatible with Vista profiles out of the box. Microsoft has a whitepaper Managing Roaming User Data Deployment Guide which includes a section called 'Windows Vista and Windows XP Roaming User Profile Interoperability'. I haven't tested this, I hope it will be useful. I suggest you read the ...
0
1
1,607
2009-05-21T20:41:04.483
infrastructure
serverfault.com
269,592
Bash: Quotes getting stripped when a command is passed as argument to a function
I am trying to implement a dry run kind of mechanism for my script and facing the issue of quotes getting stripped off when a command is passed as an argument to a function and resulting in unexpected behavior. [CODE] Output is: [CODE] Expected: [CODE] With printf enabled instead of echo: [CODE] Result: [CODE] That sho...
Try using [CODE] instead of just [CODE] .
14
5
33,373
2011-05-13T22:00:18.277
infrastructure
serverfault.com
940,283
set apache as default server in ubuntu 16.04
first i installed apache on my local system, it working fine and then for some reason i installed nginx it also works fine, but now problem is each time when i start my system by default nginx is running on my system then i have to stop nginx using sudo service nginx stop and then start apache manually by using sudo se...
you can change the listen directives for apache to port 80 and nginx to port 8080 on your [CODE] [CODE] on your [CODE] [CODE]
-1
1
67
2018-11-16T06:17:40.747
infrastructure
serverfault.com
910,181
Exim (or postfix) different smarthost / authentication based on originating ip address
Is it possible use with Exim (or postfix) use different smarthost / user authentication based on originating ip address?
Exim allows any configuration at all. Refer to the chapters 33 and 43 for further details.
0
0
209
2018-05-01T16:25:44.193
api_errors
serverfault.com
837,753
Point a subdomain to a separate IP address using DNS/nginx
I'm trying to point a subdomain to a different IP address on a different server, but for some reason it's only working every once in awhile (say 1 out of 20 times). Browsing to http//galera.domain.com throws a "took to long to respond" error and changes the URL to https//galera.domain.com. Browsing directly to the IP a...
You need to coordinate with whoever sets the domain's security policy. This domain has opted to use strict transport security and you should not have been allowed to even create a subdomain for web server use until you coordinated.
0
1
779
2017-03-12T03:27:00.790
api_errors
serverfault.com
908,842
I am unable to access my website from the web (curl and wget return html of page)
I am having several issues trying to get my website to the world. I am very new to the notion of running a web server, so I followed many of the tutorials to help me get started. There is a likelihood I did something wrong (where likelihood >= 95%), and I would very much appreciate assistance correcting these errors. F...
You use self-signed SSL certificate. That's the reason. I add it to my Firefox and see standard Ubuntu Apache page. If you would like to have normal SSL certificate for free, you could use Let's Encrypt .
-1
0
713
2018-04-21T17:30:19.167
infrastructure
serverfault.com
147,886
Why does SQL Server Profiler trace not capture SELECT operator in execution plans?
When I run [CODE] queries in SSMS and choose Include Actual Execution Plan, it always includes the SELECT operator. Nice because I can see the full properties like memory grants, cached plan size, subtree cost, etc. When I run a trace with SQL Server Profiler and grab execution plans via the [CODE] event, I get all the...
Do not run profiler while grabbing execution plans (very expensive operation !), instead run a server side trace (modify as per your need) or sp_whoisactive and grab the tsql you are interested and then run the tsql separately using Plan explorer to get actual execution plan. The best way to get all the relevant data i...
2
1
840
2016-08-25T14:12:35.673
database_errors
dba.stackexchange.com
846,241
ZFS on Linux (ZoL) and realtime replication
I would like to understand what is the best solution for realtime replication between two ZFS on Linux (ZoL) boxes connected by a 10 GbE link. The goal is to use them for virtual machines; only one box at a time will run the virtual machines and the ZFS filesystem itself. Snapshot need to be possible on the first (acti...
I recommend a clustered dual-node shared SAS setup or continuous asynchronous replication on 15 or 30-second intervals. The latter is good for continuity, while the latter provides a way to obtain geographic separation. They can be used together. However, if you want to experiment, you can use Infiniband SRP or 100GbE ...
12
7
12,721
2017-04-24T14:16:47.817
database_errors
serverfault.com
663,295
Computer under domain gives req_timed_out in browser for application
I've Windows Server2008R2 with ADDS configured. Also the same server got the Java application running in Tomcat. So, when I open the particular service of that application from the computer which is under domain, it waits for 20-30 minutes then gives no results with err_timeout. When I run the same thing from the compu...
Domain security policy can intentionally or unwillingly limit some functionality of such applications. That is the most probably cause. So you should investigate domain secpol to see if anything is restricted/miss-configured there.
0
0
32
2015-01-29T06:20:56.537
infrastructure
serverfault.com
102,226
Dividing values from a single column into 2 based on a rule
I am trying to create an SQL query to divide into 2 separate columns based on a rule. My table is as follows [CODE] Is it possible to have the values in the [CODE] column be divided into 2 columns? e.g. if the value of the [CODE] is [CODE] , the value in [CODE] column be in column 1 and if the value of [CODE] is [CODE]...
Use a CASE statement in the column list to check if [CODE] is [CODE] or [CODE] . SQL Fiddle PostgreSQL 9.3 Schema Setup : [CODE] Query 1 : [CODE] Results : [CODE]
2
4
5,226
2015-05-22T03:06:43.087
warehouse_errors
dba.stackexchange.com
97,728
How to restore mdf file in sql server 2005?
I have a [CODE] file and no [CODE] files for a database created in SQL Server 2005. When I try to attach the [CODE] file to a different SQL Server, I get the following error message. I would like to accomplish any one of the following options: Attach the database without data loss (unlikely but would save me some time)...
You can use sp_attach_single_file_db or the newer version CREATE DATABASE database_name FOR ATTACH_REBUILD_LOG . In both cases it will create a new log file for you. Unfortunately because you have no log you will not be able to recover anything that has not been committed. It is also a good idea to run a DBCC CHECKDB a...
1
4
2,004
2015-04-13T16:49:52.210
database_errors
dba.stackexchange.com