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
343,407
Provide access through single IP
I've assigned a dedicated IP on my server to one of my customer via Plesk. But when he accesses any external content the IP reflected there as Host IP is the primary one of my server and not the dedicated one that is assigned to him. What could be the problem and how will I solve this.
The dafault behaviour in all TCP/IP stacks is that unless you specify otherwise, outgoing connections bind to the first address on the outgoing interface for the route the connection needs to take (and if there are two interfaces through which the connectino could be routed, the first in the routing table will be picke...
1
1
101
2011-12-22T10:15:21.527
infrastructure
serverfault.com
240,246
Attempted to edit MySQL service config and getting "Access Denied"
As a follow-up to this question , I'm attempting to edit the "my.ini" config file for the MySQL service. I've stopped the service, opened the file, made the edit, and attempt to save it -- at which point I get an error saying "Access Denied". On Windows 7. Questions, feedback, suggestions -- just comment, thanks!!
In Windows 7, Right click on NotePad, and select "Run as Administrator" Then from NotePad open the MySQL my.ini file Make edits as needed, and save
2
5
18,714
2011-02-25T13:16:41.447
database_errors
serverfault.com
335,118
question about using Insert where not exists instead of if not exists then
I have a procedure that insert data to table where the data doesn't exists. right now it's done in two steps : check if the data exists already, if not, insert it i want to change it to do INSERT where not exists as proposed in this article it should improve performance. https://devblogs.microsoft.com/azure-sql/the-ins...
If you want to go that route then you can use [CODE] The [CODE] in your original code is a mistake and explains why you get no rows inserted when the table is empty and too many rows inserted when it already has multiple rows. You can do a [CODE] without a [CODE] . In the case that the row does not exist when the subqu...
0
3
144
2024-01-23T16:23:34.047
data_quality
dba.stackexchange.com
811,688
Galera cluster - cannot start MariaDB (CentOS7)
I'm trying to install a Galera cluster with 3 mariadb VM's (all of them CentOS 7). I've never done this before, so I was following this guide: http://tunnelix.com/mariadb-galera-cluster-installation/ The problem is that after I enter my settings on the /etc/my.cnf.d/server.cnf file (step 6 on the guide), I can't start ...
Ok nevermind, everything is correct, the problem was Selinux. I changed it to permissive and it worked. Nothing to see here.
3
0
2,267
2016-10-27T15:05:08.960
database_errors
serverfault.com
950,425
How to deal with outgoing spam flooding with Postfix
I have one Postfix SMTP server with hundreds of users, which are using it to send e-mails as authenticated users. Sometimes one account is hacked and thousand e-mails become to go out from the SMTP server, starting a spam flooding to hundreds of e-mail addresses. This obviously make my server to be inserted into many b...
SASL-authenticated clients using your mail server to send out spam or malware are usually the result of botnets. You can catch most if not all of botnet-like behaviour using postfwd rules and the Postfwd Anti Geoip Spam Plugin which will check for both high rates of sending as well as logins from more than one country ...
2
1
1,070
2019-01-23T18:10:16.813
pipeline_ops
serverfault.com
53,122
apache2 - read configurations from MySQL
I'm trying to move away from nasty daemons that write config files and need root access to operate. I want to store vhosts/domains in an MySQL database, ideally with restricted access. I'm looking for some modules that will be able to dynamically generate vhost config retrieving them using queries. Some of what I found...
AFAIK there is no way to add virtual hosts to Apache without restarting it.
1
2
430
2009-08-12T08:49:36.557
database_errors
serverfault.com
164,230
Problems with windows user account permissions
Inherited the maintenance of an existing ASP.net (C#) web based system. It is running on Windows Server 2003 with IIS 6. PDF files are generated via a background process - Omniformat. It runs as a scheduled task and creates PDF files from html files. For some reason it doesn't inherit the permissions of the folder that...
The file should do that automatically, unless the OmniFormat is creating the files somewhere else, like say a temp folder they moving the files into place. The solution would be to either change the rights to the temp folder, or add a step to the process so that after the files are created to reset the rights.
0
0
194
2010-07-26T18:59:08.177
infrastructure
serverfault.com
769,496
s3cmd restore recursive not working right
I am running the following command to restore the data from Amazon S3 to the web server. [CODE] and getting this error: [CODE] On the other hand when I tried --dry-run it didn't show problems. I am using amazon s3, but not GLACIER and this command to sync: [CODE] to move data to Amazon s3.
The answer was very simple. The restore option is meant only for Glacier storage: ( http://s3tools.org/usage ) This little command with inverted parameters would do the job. [CODE]
0
0
1,443
2016-04-11T14:06:03.623
database_errors
serverfault.com
372,191
Clone a Xen instance but add memory to it
I have a machine that has a few Xen instances running on it. I'd like to clone one of them but allocate more RAM to the new clone. How can I do this?
By cloning it and changing its template file before booting? You will have to look at this entry: [CODE] Have a look at this xen pdf guide .
-2
3
101
2012-03-21T22:30:58.343
infrastructure
serverfault.com
135,134
Need help with this backup audit SQL Server script
I am using below backup script taken from http://www.ludovicocaldara.net/dba/sql-server-last-database-backup/ link to audit my servers for backups. This works great except when I have spilt backups. For splitbackups it gives lots of rows depending on no. of split backup files. For example, if I have 4 split FULL backup...
You need to add a new column to your subqueries to calculate the [CODE] in addition to the [CODE] , so that you can match rows with the same [CODE] . Moreover, you need to change the [CODE] s to [CODE] s: [CODE]
0
1
303
2016-04-13T09:37:43.560
data_quality
dba.stackexchange.com
349,548
Windows 2008 R2 64 bit multihomed. NTP time synching issue
I have a DMZ machine that i wish to sync to a time source ().pool.ntp.org. Perimeter Firewall is setup to allow relevant ports through. Obviously local FW on the server is on and configured to allow again, the relevant ports through for time sync. The configurations in the registry have been checked for the windows tim...
It looks like this a VMware VM, and it is set up to synchronize its time with the VMware host using the VMware tools time synchronization mechanism. You should disable that time synchronization option in VMware tools if you want to use NTP to synchronize time instead. Assuming you have disabled VMware's time sync, run ...
2
2
2,866
2012-01-13T05:42:25.977
infrastructure
serverfault.com
194,968
XID wraparound metrics are unclear
Recently, I had an issue with one of my database which got XID wraparound issue. So, I have started with [CODE] mode and ran [CODE] . Everything was fine. But, when I checked [CODE] its ~1.5billon where as my [CODE] is ~70billon. I feel like, its huge different and something is wrong. The below query, I have used to se...
So, the xidWarnLimit is 3.747 billon where my current txid_current>70 billion. And strange thing is txid_current is greater than xidWrapLimit which is 3.758 billon. You are presumably looking at the raw return of [CODE] , which is not a 32-bit value like the XID Limits you are looking at. Instead, it is a 64-bit format...
2
7
1,842
2018-01-09T10:55:23.380
warehouse_errors
dba.stackexchange.com
220,476
sparse column or DATA_COMPRESSION?
in one of my databases I have the following table: [CODE] which has 1 sparse column - [CODE] when I have to re-create my index: [CODE] I get the following error message: [CODE] How can I find out which one [CODE] should I keep?
In the MS documentation, there is a chart to estimate space savings for sparse columns. According to said chart, if at least 86% of the values are NULL, you will have an overall savings of at least 40% for this column. Each [CODE] value is going to take up 5 bytes versus the normal 1 byte in this scenario. You can comp...
2
3
1,073
2018-10-18T14:53:44.190
warehouse_errors
dba.stackexchange.com
541,888
WDS 2008 R2 / 2012 Discovery client not asking for the correct architecture
Background info: we're running on a network where we don't control DNS or DHCP, but we run a domain within it. We are trying to use WDS with a discovery image pointing to our WDS server. Odd issue -- we started with WDS running on Windows 2012, properly configured and verified working on our older test machines. The ma...
Have you tried changing from UEFI mode to legacy BIOS or BIOS-compatibility mode on the PC? The TechNet article ‘ Boot a PC in UEFI Mode or Legacy BIOS-compatibility mode ’ should help. You may also want to read more about UEFI Firmware , as more machines will be made with UEFI and you will want to incorporate this int...
0
0
1,087
2013-09-26T14:30:15.653
infrastructure
serverfault.com
245,595
gcc -S seems a bit misshapen with shifting and ANDing bits
Example: [CODE] gcc -S: [CODE] As you can see, GCC for some reason converted my code to: [CODE] Something fishy is going on here or I am missing something... It kinda made the operation backwards, although I had brackets around the [CODE] so it should've done it separately then AND it with [CODE] correct? Can someone e...
[CODE] The condition here is: "Is the 5th bit set in the variable p?" To achieve this test you can shift p right by 4 and ask "is the lowest bit set?" so your code has been converted to if((p>>4) & 0x1) Which is the same thing. run gcc -S -O3 and the same logic collapses to [CODE]
2
2
207
2014-06-20T15:51:21.670
api_errors
softwareengineering.stackexchange.com
1,151,311
Ping resolves hostname but takes 10 seconds before it starts sending packets
I have two Linux machines connected to a router, so they are on the same subnet. Machine A tries to ping machine B by its local IP, everything works fine. But when A tries to ping B via a DDNS enabled domain, it takes almost 10 seconds before ping starts printing out anything (same with [CODE] but takes 5 seconds). I'm...
I think it is not forward resolution at fault here, but reverse one - ping reports address, not name when showing responses. Try checking how much time it takes to resolve (or fail) 192.168.0.231 back to name. You can also try [CODE] to suppress DNS lookups. Side note: it is possible to resolve private IP space back to...
0
1
76
2024-01-11T13:57:37.530
infrastructure
serverfault.com
205,082
San Performance - Number of servers connected
Does anyone have any experience of the Ibm DS3400 san. Have found a system with about 30 servers connected to it (mostly virtual machines including all the operating system drives) including 2 sql servers (1 in very heavy use) and one exchange server. I have had a look at IBM's website but can't find any guidance on wh...
SAN performance has so many variables involved that I can understand why people don't get into them too much. Any given SAN has main components that contribute to it's limitations, they are; The controller/s - this/these take and process requests so both their overall computational and IO capabilities are key here - th...
0
3
217
2010-11-23T10:37:41.403
database_errors
serverfault.com
314,300
Understanding slow queries from mysqldumpslow
I'm maintaining a system which sporadically (no exact time) but only at night causes the entire server to crash for a few seconds and the users seeing "Error Connection Refused" until the system restores itself. The application server is running PHP and PHP-FPM with Nginx. I've enabled the slow log on the database serv...
[CODE] looks like a query from [CODE] . Increase the global timeout -- so that it won't crash. Meanwhile, you may not have any complete dumps for the last few months. Panic! [CODE] I annoying. It says that (for some unspecified reason) transactions are slow to finish. You can't do much other than stare at the code. And...
0
0
198
2022-07-12T08:01:18.237
api_errors
dba.stackexchange.com
11,614
SQL Server VARCHAR Column Width
Searching around the web, I have found conflicting advice on whether there is a performance impact when specifying overly-wide [CODE] columns, e.g. [CODE] , when [CODE] will probably do. I consistently see agreement that there's a performance hit if the entire row exceeds 8060 bytes. Other than that, I see disagreement...
The question might be better stated as: "What is the advantage of over-specifying the maximum length of a variable-length column?" In general, there is little advantage, and several disadvantages as the various linked answers point out. Aside from any other concerns, consider that SQL Server is not open-source: there a...
20
13
6,942
2012-01-25T19:36:16.687
database_errors
dba.stackexchange.com
26,980
Trying to install SQL Server 2008 Management Studio Express
On a Wndows Server 2008 R2 64 bits, I installed Visual Studio 2010 Express, which installed a SQL Server 2008 Express: Trying to install a SQL Server Management Studio, first I'm required to install Service Pack 1. But when trying to do so, I got the following error: There are validation errors on this page. Click OK t...
You need to install SQL Server 2008 first, then before running or rebooting install SQL Server 2008 Service Pack 1. You are attempting to install the service pack files first, without an existing base installation of SQL Server 2008. Since the Service Pack 1 package does not contain a full installation of SQL Server, y...
1
1
30,985
2012-10-15T17:55:42.437
database_errors
dba.stackexchange.com
458,739
Zimbra open source experiencing unexplained slowdowns that are resolved only by rebooting
Our zimbra server is experiencing unexplained slowdowns every couple of days that are only resolved after rebooting the server. From the end user's perspective, if they are using webmail and they send a message, then it will eventually timeout. From the system terminal, there are slowdowns logging in, switching users, ...
I've found that rsyslog, when forwarding logs via TCP to a remote host, will sometimes get hung up when it can't forward to the remote host. Even when the remote host comes back up, rsyslog remains hung and as a result slows down everything else on the system that tries to log. Restarting rsyslog does the trick when it...
1
1
1,320
2012-12-17T15:53:39.447
api_errors
serverfault.com
913,171
GKE Clusters not coming back after project restore
I deleted my GCP project (whoops!) and then restored it about 30 minutes later. GCE VM instances did not start automatically, but I started them. I also had to manually enable the compute API for some reason ( [CODE] ). My Kubernetes clusters appear in GKE but they are in error state and just say "The cluster has a pro...
Went through the GCP support channel and they were able to get my cluster back up and running. According to the support rep, this is not always necessary: Please note that it's not the expected behavior for the clusters to be in a problematic state after a project restore. It can happen from time-to-time though, but ar...
1
1
2,333
2018-05-22T00:00:07.260
pipeline_ops
serverfault.com
433,546
An effective database migration pattern for many instances of the same app over a long period of time
How do you handle migrations to your database after a long period of time? I'm using fluent migrator, and after some months or years, the number of migrations could be (and has been in previous projects) in the hundreds. This is a problem for new SaaS instances that only need to seed from the "latest" version. Currentl...
I don't know how fluent migrator handles it but the excellent Laravel documentation suggests "squashing" your migrations to one large SQL-file that takes precedence. Seeing as it is one of the most popular frameworks, I would imagine that they know what they are doing. So, for a process I would implement a kind of scri...
1
1
219
2021-11-15T07:00:02.183
pipeline_ops
softwareengineering.stackexchange.com
610,940
Apache mod_security crs blocking PDF files
I've just installed CRS for Apache mod_security and it's reporting all PDF files as possible attacks. Specificaly, it's the [CODE] that's causing the trouble saying those files begin with 0. When a user tries to download any PDF file I get this log (domain name changed): [CODE] I tried to whitelist PDF files by creatin...
Add this line on [CODE] file and restart apache. [CODE]
1
0
1,831
2014-07-08T13:12:23.383
infrastructure
serverfault.com
579,623
StartTime and EndTime params ignored in Set-MailboxAutoReplyConfiguration (Exchange 2013)
I'm using the following command: [CODE] ($ooomessage is set in another command.) The problem is that the start time always begins at the beginning of the current hour and the end time is always 24 hours later. According to [CODE] I am using the correct format. I've tried adding leading zeros and also using AM/PM format...
I would use [CODE] instead. The doc says : StartTime (...) To use this parameter, the AutoReplyState parameter must be set to Scheduled. EndTime (...) To use this parameter, the AutoReplyState parameter must be set to Scheduled. http://technet.microsoft.com/en-us/library/dd638217.aspx
1
4
8,415
2014-03-04T00:18:51.777
infrastructure
serverfault.com
151,916
How to get old DLL's running on 64bit server
I'm moving my company's websites from a windows 2003x86 server to windows 2008x64 which is running IIS 7.5. The problem that I've got is that all the DLL's which were running fine on the old server, now error out whenever they're called. All I get is a generic error like: Server object error 'ASP 0177 : 800401f3' Serve...
From here if found this: This error means "Invalid class string" -- in other words the call to CreateObject failed because the name object cannot be found by the OLE sub-system. Causes include: You really didn't run regsvr32 on the server after all. You ran regsvr32 but it reported an error. Someone modified security o...
0
1
10,756
2010-06-16T22:19:10.197
api_errors
serverfault.com
550,015
glusterfs mounts get unmounted when 1 of the 2 bricks goes offline
I have an odd case where 1 of the 2 replicated glusterfs bricks will go offline and take all of the client mounts down with it. As I understand it, this should not be happening. It should fail over to the brick that is still online, but this hasn't been the case. I suspect that this is due to configuration issue. Here ...
It appears you have a 'cluster/distribute' block in your config which I would think would cause Gluster to think the volume is striped. Try removing the volume and recreating it without the "stripe" option.
3
0
2,011
2013-10-31T21:18:26.637
infrastructure
serverfault.com
305,196
formating dot commands in sqlite3
My first SQL database im using sqlite3 in idle on linux. Everything is working fine but I want my table to display in an easier to read format in the terminal. been reading about dot commands eg [CODE] or [CODE] but not sure were to put it in my code, i think this is the closest: [CODE] but i get this error [CODE]
https://sqlite.org/cli.html says: Most of the time, sqlite3 just reads lines of input and passes them on to the SQLite library for execution. But input lines that begin with a dot (".") are intercepted and interpreted by the sqlite3 program itself. These "dot commands" are typically used to change the output format of ...
0
2
441
2021-12-20T12:04:21.367
warehouse_errors
dba.stackexchange.com
885,436
Can add only one windows machine to failover cluster, both are joined to same AD domain
I want to setup a failover cluster with 2 Windows EC2 instances, for which I'm following this link. One of the pre-reqs listed says that, [CODE] . In order to satisfy this requirement, I've setup an [CODE] . My AWS AD console shows that I've 2 domain controllers for HA in 2 different subnets and both of them are active...
Unjoining and rejoining the domain solved this issue (facepalm!)
1
0
757
2017-11-28T03:09:14.840
database_errors
serverfault.com
732,457
Send me mail on rsnapshot fail
I am using rsnapshot for daily/weekly backups which are triggered by anacron, that works nice. However instead of checking the logs by hand, I would like to receive a mail whenever a backup failed. This mail should consist of the full rsnapshot output. I did not find this feature in the rsnapshot.conf or man-page, so I...
Ok, here is what I did for now: First I installed "postfix" as mail-server. Than I added some lines to my shell-script: [CODE] Edit: Actually it is much more useful to just forward all local mails to my private mail-account. This can be done by changing just one line in [CODE] : [CODE] Like that, the output of all cron...
2
2
3,061
2015-10-29T10:04:22.763
database_errors
serverfault.com
337,006
.htaccess ignored, while apache.config says it's activated
edited for clarification, because all answers/comments where talking about other things then the topic until now I verified that my apache.conf (Ubuntu) says, that it looks for [CODE] and that it allows [CODE] to override everything: [CODE] Then I put the following [CODE] (with rights 755) into my [CODE] : [CODE] Then ...
[CODE] You should not do this; this references the filesystem root. Instead, only define permissive AllowOverrides from your documentroot on down. (And, optionally, in your UserDirs) the server looks for /var/www/ as his webdirectory and inside I linked to another folder in my home directory To allow symlinking, Follow...
0
3
165
2011-12-02T13:25:27.277
infrastructure
serverfault.com
220,777
Good guidelines and practices for mandatory code review
We are trying out mandatory code review on each commit -- nothing gets into master that hasn't been validated by at least 1 person not the author -- for a couple of sprints. We have buy in from both developers and management (which is an amazing situation to be in) and we want to get some of the benefits that it is kno...
Make reviews short. It's hard to stay concentrated, especially during code review, for a long time. Moreover, long code reviews may indicate either that there is too much to say on the code (see the next two points) or that the review becomes a discussion over larger issues, such as the architecture. Also, a review sho...
11
13
1,150
2013-12-09T18:47:04.210
pipeline_ops
softwareengineering.stackexchange.com
967,868
Show delegated ipv6 prefix at command line in OpenWRT
In OpenWRT’s gui “LuCI“ the delegated IPv6 Prefix provided by the ISP is diplayed in the status page in overview. Normally it will be shown under “IPv6 WAN Status“ in the “Network“ section like [CODE] However I would like to figure out the delegated prefix on the command line. I am aware I can get the addresses assigne...
The command providing such information is [CODE] [CODE]
3
3
2,836
2019-05-18T08:40:26.540
infrastructure
serverfault.com
152,055
Git clone/push/pull - where's that username comes from?
I've set up gitosis and able to pull/push through ssh. Gitosis is installed on Debian Lenny server, I'm using git from windows machine (msysgit). The strange thing, if I enable [CODE] in gitosis.conf, I see something like this when doing any actions with gitosis server: [CODE] Question is: why am I kurokikaze@example.c...
From Gitosis' point of view, your name is just the name, in [CODE] , of the public key that you authenticated with. No configuration on your local machine matters, except as it affects what public key you use, and the string at the end of the key doesn't matter -- just the filename. You've given your public key two nam...
1
1
1,747
2010-06-17T11:32:16.007
infrastructure
serverfault.com
25,250
Apache2 displaying root index.html instead of virtualhost's index.html
I've just set up a new apache 2 install and I'm adding my first virtualhost. I'm seeing some odd behaviour. The virtualhost seems to work, in that if I browse to a URL under the root of my virtualhost in a web browser I get what I expect to see, however if I just go to www.$myhost.com, I get the default apache "It work...
Have you refreshed your browsers cache?
2
1
1,404
2009-06-13T15:00:11.963
infrastructure
serverfault.com
153,748
How do I make a directory writable for the webserver?
Just got SQLite up and running on a new linode - but I couldn't make it work til I read some info that says the server must have write permissions for both the directory and the file -- okay fine. So I made the directory 0777 permissions -- which is probably bad. How do I go about doing this properly?
Basically, give ownership of that folder to the to the user the webserver is running as. (usually "nobody"). [CODE] is the command to do that. Then, only the first trio of permissions is useful. So 700 permissions would alow the webuser to access and write to the directory, and no one else to even read it. --Christophe...
1
3
4,985
2010-06-22T19:19:46.610
infrastructure
serverfault.com
399,024
innodb recovery from .ibd files
My website has crashed a few days ago. The hosting company says some innodb database crashed. They sent a MySql data folder. I tried to restore the database, but phpmyadmin is only showing MyISAM tables. I checked the database with navicat. When I click innodb table, I got this error table 'xyz.wp_posts' doesn't exist....
There are settings in my.cnf that can be set to allow innodb to try to recover it's own tables[1]. These might be able to get you part of the way.If this does not help you, you have to get your hands dirty. I have used the percona recovery tools[2] a few times, with great success. Documented here[3] And it might be a b...
1
1
6,585
2012-06-15T05:35:42.697
database_errors
serverfault.com
920,308
How to certify a domain that's used only for redirections and has no hosting?
I migrated a site from [CODE] to [CODE] . HTTPS was enforced all over, so most incoming links to oldsite are going to [CODE] . My [CODE] domain used to point to a host which had a certificate for it. However, the domain now redirects to [CODE] , and the host contains a certificate for that instead. So people using dire...
I have no idea what your question is supposed to mean. There is no such thing as "certify a domain that doesn't have a host attached to it". But you actually solve the problem by installing a TLS certificate for the old domain.
0
0
160
2018-07-10T14:36:54.587
infrastructure
serverfault.com
483,141
mdadm raid 1 grub only on sda
I just finished setting up a CentOS 6.3 64bit server with mdadm however a lightbulb went on and I realised grub would only be installed on the first drive which is about as much use and an ashtray on a motorbike. I had a look to confirm my suspicion: [CODE] So I updated my device map to look like: [CODE] (Note the (hd1...
This should be your problem [CODE] Take the following steps: Create the 2 /boot partitions on /dev/sda1 and /dev/sdb1 - type fd(Linux autodetect raid) - use your favorite tool(fdisk, cfdisk, gparted,...) (fd00 for GPT) Remember to turn on the bootable flag on both partitions, sda1 and sdb1 (not for GPT) Force the disks...
7
4
24,685
2013-02-27T18:33:38.793
infrastructure
serverfault.com
270,425
Dependency promotion strategies: siloed or orchestrated?
We have a lot of apps and web services (some public facing products, some internal and part of a private "backend") that are interdependent on one another. Each one of these components has 4 environments (clusters of servers/nodes serving specific purposes): Non-Production [CODE] - Integrated development environment wh...
If I'm reading your post right, it doesn't seem like this proposal actually solves either of the alleged problems. anytime I make a change to, say, myapp, this requires me to make changes to myws and mydb as well. But because each DEV environment points to its dependencies' DEV environments, it means I have to schedule...
10
7
537
2015-01-17T20:07:42.157
api_errors
softwareengineering.stackexchange.com
2,007
Select statement to retrieve xml output as below
Could someone provide me some clues or solution to retrieve record sets like below? Note: I read the msdn documentation but leads me no where but hair loss :( Just for the assumption think i have 2 tables connected via Rid field Table 1 columns: [CODE] Table 2 columns: [CODE] [CODE] and [CODE] are connected via the [CO...
Give this a try: [CODE] I have added a second code sample in response to your comment. I have no idea if this will work, or if it is even the best way to accomplish what you want it to. Please let me know. [CODE]
1
7
1,274
2011-03-31T06:30:33.400
database_errors
dba.stackexchange.com
248,900
How to list connections in Secondary Nodes
In my cluster on Atlas, have a many connections in secondary nodes. How to list this connections? When execute this command, list the current connections in primary node. [CODE] But, I have 700 connection in replicaSet. Thank's
Go to the command line tools Copy [CODE] command under Set Up Diagnostics section Update password and add [CODE] option at the end Run it in any command-line tool You should be able to see the number of connections as below for all primary and secondaries
0
1
1,072
2019-09-16T17:52:59.247
warehouse_errors
dba.stackexchange.com
901,244
Ansible:how to adapt the output format of map (with extract) filters
I am trying to extract the IP addresses of the hosts that are part of two groups and use them in a .xml config file. The problem I'm facing here is the output generated by the expression used into the jinja template. What I want to achieve is an output like [CODE] but instead of this I'm obtaining something like [CODE]...
[CODE] is a list, so you have a list (of hosts) with nested lists (with ip addresses). You probably want to flatten it before applying [CODE] and [CODE] : [CODE] This will make a flat list with single ip-address as element, than take unique items and join them with comma.
2
2
3,100
2018-03-12T16:34:16.593
pipeline_ops
serverfault.com
42,163
Do you store mysql exports in your version control tool for reverting to in event of error?
We run an internal web server with in-house software to run a manufacturing line. When new product features are to be added, either or both of the following occur: changes to the in-house server software may be required to support these - these are for significant changes in functionality, being code drive. changes to ...
Each of our branches has a private folder, inside there we store the patch files for any SQL changes, both the SQL script and a back out script in case the issue needs to be rolled back. Upon release the patches for all the development branches that are part of a release are tested together to ensure there are no confl...
1
2
124
2011-02-01T14:11:42.557
database_errors
softwareengineering.stackexchange.com
40,320
The client need 'SUPER' privileges to the reports DB in order to create and maintain my Functions
I have problem with one of my client Provided super privileges to the client James on 'Reports ' database , but the problem is the client need 'SUPER' privileges to the reports DB in order to create and maintain my Functions. So I'm still unable to move forward... BUT, I still need SUPER privileges to the reports DB in...
To modify functions and stored procedures, you need the ALTER ROUTINE privilege. If binary logging is enabled, you may also require the SUPER privilege.
2
1
135
2013-04-18T06:11:16.513
warehouse_errors
dba.stackexchange.com
558,997
ssh: id_rsa doesn't work, but if I rename it, it works
I have this id_rsa in my ~/.ssh folder. But it just doesn't authenticate. If I copy it and rename it to anything not id_rsa, it works. [CODE] Note that "ssh localhost -i id_rsa" fails and ssh starts to ask for regular password login. I used -vvv and here's the diff of the logs: [CODE] I also tried removing the passphra...
Found the reason. My [CODE] file in the same [CODE] folder is a public key that belongs to a different identity file. When [CODE] doesn't match [CODE] it fails automatically. Removing or moving the [CODE] file makes [CODE] work.
10
13
7,684
2013-12-03T19:09:10.580
infrastructure
serverfault.com
234,478
OS X (10.6) Apache Sudden Death, Nginx not working either
I turned on my computer today and apache wasn't working. This is weird as its been working for the last 6 months without issue. The only thing I did which may of caused a problem, is I uninstalled a bunch of gems. This shouldn't be the issue though as apache doesn't rely on gems. I decided to give nginx a try to see if...
http://hintsforums.macworld.com/showthread.php?t=83942 [CODE] reviled apache couldn't find the passenger gem, which makes sense as I was messing with the gems in [CODE] gemset. The solution was to reinstall the passenger gem with: [CODE] and restart apache.
0
0
374
2011-02-11T16:55:34.427
infrastructure
serverfault.com
63,539
ORA-12516 but max_utilization not reaching limit
Our app began to raise [CODE] errors, and I'm trying to diagnose why. The workload has not changed, so I think we might have introduced a bug in the application code, but I can't see why. The most obvious would be a connection leak, or unclosed idle transactions, but: we are using a jdbc pool (tomcat-jdbc-pool), and th...
I think [CODE] is a syntax error. Here's what happens on the wire: With [CODE] a connection's lifecycle is: Initial establishment First query (validation does not yet happen) Return to the pool Validation: the pool sends [CODE] The database answers: [CODE] Next query and so on. The connection is normally not closed. Wi...
1
1
3,719
2014-04-20T14:11:14.830
database_errors
dba.stackexchange.com
137,672
Communications regarding maintainability of code
I'm in search of good language or metaphors to discuss the maintainability of code with non-technical folks (PMs, business sponsors &c). In particular, I've recently created a few one-off, get-it-done-tonight, gets-the-job-done pieces of code. Everyone, including the internal sponsor, knew that we were saving a couple ...
Construction metaphors are often helpful when explaining software concepts to non-technical folks. You can say, for example, "This code was so jury-rigged, it was like using a 2x4 to prop open the garage door instead of installing a proper garage door opener." Construction metaphors lend themselves nicely to a continuu...
6
6
328
2012-02-29T22:50:57.517
api_errors
softwareengineering.stackexchange.com
840,558
Install nginx with http_v2_module flag enabled, via ap-get?
I'm really struggling to get a new Debian 8 server, with nginx and HTTP/2 configured I installed nginx with apt-get: [CODE] That all runs fine, and I get this with [CODE] ; configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --erro...
You can follow the dotdeb repos for Debian See here https://www.dotdeb.org/instructions/ Nginx with “full” HTTP2 support (with ALPN negotiation) on Debian 8 “Jessie”, activate the jessie-backports repository and add these two lines too :
0
1
2,071
2017-03-25T14:08:02.857
infrastructure
serverfault.com
352,722
How to debug missing enterprise root ca certificate?
We have a openssl offline root CA with a Windows 2008 R2 AD-integrated SubCA. The Openssl Root CA was published to ldap [CODE] using [CODE] Everything works ok, except for one thing. So far two clients (both XP) showed up which did not import the Root CA Cert to the trusted enterprise root certificate authorities store...
A few things to check: Has certificate autoenrollment been disabled on this client? Lack of autoenrollment would explain lack of import. Is the certificate in the trusted roots store, just not in the enterprise trust container, due to the manual import? Check the Trusted Roots store for the computer account in [CODE] ....
1
1
11,217
2012-01-23T14:11:22.657
infrastructure
serverfault.com
743,260
Package mysql-server-5.6 is not configured yet
I had an issue installing MySQL 5.6 on Ubuntu 15.10. Basically loading the db server failed for the mentioned reason. [CODE]
To overcome this I had to combine the solutions mentioned in the following two posts: upgrade-mysql-server-issue unable-to-install-mysql-server-in-ubuntu See also related: package-mysql-server-5-5-is-not-configured-yet Solution IMPORTANT: This process will destroy all existing databases as Michael Hampton correctly not...
3
9
6,739
2015-12-15T20:54:30.593
database_errors
serverfault.com
105,195
Conceptual ERD Multi-table many to many, or possibly recursive?
I'm creating a conceptual diagram [yes, I know I've included attributes and keys - but this is just for me to consolidate what I'm doing whilst learning] -- so please treat it as Conceptual with the focus on Relationships and tables and not how to diagram ;) My mind hurdle is: I'm trying to ascertain the best way to mo...
It is great that you are taking the time to understand, classify and model the data you are dealing with since, from my personal experiencie, all this makes the whole development process easier and very flexible for future changes. And I am quite sure that you are also aware of this already. Preliminary data model and ...
11
14
2,637
2015-06-26T04:21:44.170
warehouse_errors
dba.stackexchange.com
269,006
What are the benefits of a commercial distribution of Linux over a good sysadmin?
Possible Duplicate: What are the benefits of a commercial distribution of Linux over a good sysadmin? Some vendors provide commercial licenses of Linux, including support. What is the real benefit of these? Is it worth the money? Considering the incredible amount of information and support available on the net, and con...
I think of myself as a good sysadmin :) I actually use CentOS and Scientific Linux in many installations, keeping a token RHEL license every so often. I've rarely needed to call Red Hat for support (thrice in 8 years), but it was handy in order to confirm an odd compatibility or fringe issue. The other factor may be ve...
0
1
143
2011-05-12T13:02:08.110
data_quality
serverfault.com
241,637
Can I use SELECT statement for values in a list partition? Or do I need to explicitly state them?
So I have a table I would like to partition, and in creating the partitions I am trying to run a statement like this: [CODE] Unfortunately I keep getting an error: ERROR: syntax at or near "select". I don't understand if it's just not something that can be done in postgres10, or if I am totally missing some type of syn...
When in doubt, read the fine manual , which says about partition bounds: and partition_bound_spec is: [CODE] Nowhere does it say "subselect"; only literal values and special keywords that substitute literal values are allowed.
0
1
73
2019-06-28T15:11:43.920
warehouse_errors
dba.stackexchange.com
961,936
cannot run sudo apt install wireless-tools on ubuntu server
I am completely new to ubuntu server and I am having issues configuring the network on my ubuntu 18.10 live server to be able to connect on the wifi only. When I run the command [CODE] I get this output: [CODE] I tried both and it is still not working. I appreciate any suggestions about how to do that.
Temporary failure resolving 'archive.ubuntu.com' Your [CODE] command is doing exactly what it's supposed to do, the problem is that your computer is unable to resolve the domain name archive.ubuntu.com.
0
0
483
2019-04-07T20:49:53.967
infrastructure
serverfault.com
379,793
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
Server details: [CODE] Please see the link below for my # top preview: I can often see the error mentioned in title in my plesk panel and my /etc/my.cnf configuration are as below: [CODE] As my server httpd conf is set to [CODE] and the configuration is as below: at prefork.c: [CODE] If I run [CODE] then I can see ever...
Wow. With a [CODE] setting of 1536 and each Apache child using around 69MB of RAM, you need just over 100GB of RAM to avoid swapping out "hot" parts of Apache's memory. May I suggest you lower that value until it fits inside your available RAM? Swapping like that will make your server horrendously slow. Since you are r...
0
1
2,178
2012-04-16T09:09:28.807
database_errors
serverfault.com
892,153
CentOS with duplicated packages all over system?
I set up a CentOS 7.2 x64 server on DigitalOcean. Later I updated the kernel following the DigitalOcean directions to [CODE] . This is one of the simplest server setups imaginable. This is about all I did to get started: [CODE] I'm sure I did some other things, but that's the gist of it. I used [CODE] from time to time...
You end up with duplicated packages when [CODE] crashes during an installation. Since you apparently have a 512MB droplet, you should be aware that [CODE] frequently needs more memory than that to complete an upgrade of any significant number of packages. It's common on 512MB virtual machines for [CODE] to run out of m...
0
3
1,458
2018-01-14T16:36:58.600
data_quality
serverfault.com
223,290
Apache 2.0.55/PHP 5.3.5 Hangs
Recently inherited a Windows 2k3 server running XAMPP, including ancient copies of PHP, MySQL and Apache. I'm attempting to install a second, up-to-date PHP installation on the machine so I can reference that in future instead of XAMPP's old one. Apache starts up with this new PHP installation happily. Unfortunately, w...
Reverting to PHP 5.2 resolved the issue. No idea why, though.
0
0
275
2011-01-17T10:41:53.137
database_errors
serverfault.com
1,103,371
RHEL + can we improve disks performance by tuning kernel parameters?
we have Hadoop cluster and we are collection metrics collection data in order to investigate slowness behavior on spark applications after long investigation on our Hadoop cluster we noticed from Prometheus metrics point that node_disk_io_now is with high values more then normal , and its relevant for all HDFS disks on...
In your question I cant see what type of disk your are using, either SSD/SAS/NLSAS or hybrid. This is the most important part of your selection. To Answer your question, for kernel parameters, I would say yes there are some parameters that you can play with, to find the best fit to your cluster. The important part of I...
-1
1
259
2022-06-15T17:05:28.707
hadoop_errors
serverfault.com
535,544
Routing Issues on Exchange 2010 and 2003
I am working on the migration of exchange 2003 to exchange 2010, so far the 2010 is up and running, I move a test mailbox to 2010, and internal email works from 2010 to 2003, no problem, i can send emails from 2010 to the outside, my problem is receiving emails from the outside to the user on the 2010 box, we have a 3r...
Your question is too open to answer, there could be lots of reasons why you're not getting e-mails. A good place to start your troubleshooting is by using the Microsoft Remote Connectivity Analyzer : https://www.testexchangeconnectivity.com/ Hope this helps.
0
1
78
2013-09-02T03:38:43.610
infrastructure
serverfault.com
512,299
Exchange Retention Policy cannot be run manually
I am trying to test an Exchange 2010 retention policy that deleted items in the deleted items after 365 days. Exchange is fully patched. When I run [CODE] it runs successfully. If I run [CODE] to run this against the whole server, I am prompted to enter the server name and then get the below error. The same error occur...
The reason is that the required parameter [CODE] on the [CODE] cmdlet expects a Mailbox identity as input. If you want it to process all mailboxes on a given mailbox server, you can do it like this: [CODE]
1
1
3,269
2013-05-31T13:50:46.497
database_errors
serverfault.com
118,364
configure, if only newer version of the required lib available
I'd like to ./configure a software, that requires: libboost1.35-dev libboost-filesystem1.35-dev libboost-thread1.35-dev My distribution (Ubuntu 9.10) has only 1.40, and the configuration process fails with message: [CODE] Is it the expected behaviour or a bug? Is there a way to configure this program with v1.40 package...
There may be functionality differences between the libraries so I would make every effort to install the additional older libraries first(apt-file search libboost1.35). If that fails you can attempt to symlink the existing libboost libs to the older names and rebuild your ldcache and re-run ./configure.
0
1
144
2010-03-02T16:43:03.167
infrastructure
serverfault.com
360,616
Sharing common code when re-writing an application
I have an application 'A' that was over engineered using Amazon SWF to do jobs asynchronously. We are re-writing it to app 'B' to keep it simple and do the same jobs synchronously without using SWF. The actual code that does the job was kept clean and separate. Application 'A' will eventually be decommissioned - say li...
This ultimately depends on how complex your application logic is and what your commitment level and time period for decommissioning "A" is. Let's first discuss the latter. If there is a possibility that the decommissioning of "A" will be delayed/postponed for many years or if your organization or your successors will l...
1
3
100
2017-11-10T23:43:58.077
data_quality
softwareengineering.stackexchange.com
1,020,974
Doing nested SSH but getting Too many authentication failures?
This is my script that I have [CODE] I am able to enter the password for server1 successfully, but then it just freezes for a couple seconds and outputs an error saying "Too many authentication failures". Can anyone help? I want to have nested SSH'es to automate some stuff I'm doing.
In the comments you mention that you have a old version of openssh that doesn't support [CODE] yet. (Think about upgrading, that is already a really old openssh) As a replacement you can use [CODE] (Do not forget the [CODE] or your terminal input won't work)
0
0
336
2020-06-11T03:10:55.937
api_errors
serverfault.com
154,141
MySql service on Windows won't start after changing datadir
Tried to change the data directory for a default Windows installation of MySQL. Here's the steps I've taken. Stopped the MySql service. Located the data directory of MySql and moved it to another drive, ensuring the path name had no spaces. Made a copy of the my-default.ini file in C:\Program Files\MySQL\MySQL Server 5...
If You open Windows Services and check the service properties, You will find something like this: [CODE] not enough to change datadir in my.ini file, need also point windows to run service with proper my.ini file
3
4
13,283
2016-11-03T11:20:20.427
database_errors
dba.stackexchange.com
165,607
Cisco can't see any router or host except a host in the local
We have the following config in Cisco 2811: [CODE] Everything works. The host inside 10.90.11.0/24 and the hosts in 10.90.* networks connected via IPSec can see each others, the remote routers can see this Cisco 2811 as well. But Cisco can't see any router or host except a host in the local 10.90.11.0/24. Small but ann...
This is most probably because when you try to ping(?), .. remote host from the cisco device the source IP is not 10.90.11.1 If you run a ping, try doing an extended ping to only running "ping" you will be asked for the source internet/ip to use, put 10.90.11.1 and it should work
3
2
149
2010-07-30T13:44:05.853
infrastructure
serverfault.com
324,715
Varbinary update attempt
Is it possible to adapt this into update query which has to seek a free sequence of 3 bytes or (0x000000) and replace it with a new sequence if the data is split like this every 3 bytes? The issue is that cast/replace wont work with undefined data which is 0x00. The varbinary data is divided every 3bytes -> data(3bytes...
As I read the question, you want to replace the leftmost occurrence of three zero bytes with [CODE] : [CODE] db<>fiddle online demo
5
2
472
2023-03-13T21:01:49.497
warehouse_errors
dba.stackexchange.com
1,075,285
Kubernetes dashboard does not start
On my ESXi hypervisor I installed two PhotonOS VMs and made the first one a Kubernetes Master and the second one a Kubernetes Node according to this instructions from VMWare and the following two sites. Both servers The [CODE] file on both: [CODE] On the master [CODE] : [CODE] [CODE] : [CODE] On the node [CODE] : [CODE...
I have had a problem with the exact same symptoms. Perhaps it also has the same root cause. (Just for the record, I am using a cluster in VMware Tanzu.) Run [CODE] to get logs even if no pod could be started yet. For me, the following was logged in the K8s events: [CODE] If this is also your error, you should look into...
1
0
1,234
2021-08-21T17:02:52.750
bi_errors
serverfault.com
14,154
Hashing trick with random forest in scala
I am trying to perform a hashing trick and then a random forest with scala. I have the following code: [CODE] But I have the error found : Array[org.apache.spark.mllib.linalg.Vector] required: org.apache.spark.mllib.linalg.Vector in the bold line. Do you know how I can solve it? Thank you, Laia
Let's look at the error message: [CODE] "found" is the type of object that it came across, "required" is the type of the object that the function accepts. The types look mostly the same ( org.apache.spark.mllib.linalg.Vector ) but the first is Array[X] and the second is X. Why? Because trainingData.collect() gives you ...
3
4
553
2016-09-22T08:34:17.947
spark_errors
datascience.stackexchange.com
690,208
Mass updating Group Policy, may be with scripts
Sorry for long preamble and thanks in advance to one who could read it all. I have about 60 network printers. Some are in HQ, some are in distant locations (from 1 to 300 km away of HQ). Some locations have print-servers, some does not. Locations without PSs are served by HQ's printserver. Printers are assigned via GPO...
For bulk edits to the UNC's of printer shares: In GPMC backup the GPO. In the backup directory there will be a file named "printers.xml". Use notepad to Search/Replace "\\serverX\printer1" with "\\serverY\printer1". Back in GPMC, restore that GPO. It will read the modified XML and your changes will be made. Printer con...
1
1
1,937
2015-05-07T06:17:38.077
infrastructure
serverfault.com
131,500
Terminal server performance over high latency links
Our datacenter and head office is currently in Brisbane, Australia, and we have a branch office in the UK. We have a private WAN with a 768k link to our UK office and the latency is at about 350ms. The terminal server performance is reeeeealy bad. Applications that don't have too much animation or any images seem to be...
Yep Citrix is the way you probably want to head with this. RDP's vanilla implementations are great for low-cost solutions under most high-bandwidth, low-latency environments for general desktop/windows app distribution. But the whole thing kinda falls apart under specialist workloads and high latencies. I answered a re...
3
3
4,018
2010-04-12T04:14:50.687
infrastructure
serverfault.com
126,911
QoS for Cisco Router to Prioritize Voice and Interactive Traffic
I have a Cisco 891W NATing Voice and Data to the internet over a 10mbit/2mbit connection. Voice traffic gets degraded when I upload large files. Pings time out as well. I tried to configure a QoS policy but it's basically not doing anything. Voice traffic still degrades when upload bandwidth gets saturated. Here is my ...
If you do a [CODE] , you should see how the different QoS classes are being utilized. If you're seeing anything in the priority class, I'd say that [CODE] is doing its work.
4
1
13,214
2010-03-27T17:52:44.630
infrastructure
serverfault.com
327,799
Why recover database request archived log from the future
It suddenly throw error when I trying to do our monthly backup verification, it failed on recover database command with : [CODE] Which confuse me because the RMAN Backup that I'm trying to restore was from 05/30/2023, but it requesting an archived log from backup at 05/31/2023. The backup run daily and it is Online Ful...
Okay so in the end I ran [CODE] command without [CODE] until it output error regarding non-existing "future" archive log. [CODE] Then I noted the change number (in this case 26378396150 ), reduce it by 1, and supply it to [CODE] command with [CODE] . [CODE] The command managed to recover the database successfully witho...
2
0
412
2023-06-02T08:29:35.550
database_errors
dba.stackexchange.com
659,957
NGINX Not showing my index.html - Stays default
[CODE] Heres my index: [CODE] This is my config for sites available. Yet every time i go onto my website, it says the default nginx index.
Try this for server_name instead: [CODE]
1
1
8,113
2015-01-16T03:13:45.373
infrastructure
serverfault.com
650,534
CoreOs VM getting deleted after shutdown on libvirt
I installed CoreOs on libvirt using link https://coreos.com/docs/running-coreos/platforms/libvirt/ . The VM is also showing inside Virtual Machine Manager and working fine. The problem is once I shutdown the VM using Virtual Machine Manager, the instance of CoreOS is getting deleted and not showing under Virt-Manager. ...
I do not have enough time to inspect documents you've shared. But I need to tell you that it is the same situtation when you use [CODE] command instead of [CODE] command. So just better to define your kvm from .xml configuration.
1
1
613
2014-12-10T13:26:25.420
infrastructure
serverfault.com
4,341
Cheapest and easiest way to run a periodic Docker process
I have a dockerized Python process that a client would like to run once or twice a month. It calls a number of Google APIs and stores the results in a Google Sheet. It does not accept network requests. I want to provide one "magic button" that will spin up the Docker container and then shut everything down. Some backgr...
AWS offers fargate now, which is managed by them rather than being a service like ECS which you ran the servers for and they manage the control plane. Fargate is basically "serverless" ECS. You can use a cloudwatch scheduled even to run something occasionally on a schedule on a fargate ECS cluster. Therefore you're onl...
8
3
1,733
2018-06-19T19:57:12.377
pipeline_ops
devops.stackexchange.com
165,985
Serializing network messages
I am writing a network wrapper around [CODE] and was wondering what is a good and simple way to serialize my messages. I have a message factory which can take care of dispatching the data to the correct builder, but I want to know if there are any established solutions for getting the binary data on the sender side and...
Since you can't have your cake and eat it (see comment thread for the question), I've decided on the following solution: The network wrapper will keep a [CODE] , while serialization/deserialization will happen over [CODE] / [CODE] . This way the message builders don't have to deal with memory management, can use as muc...
3
2
2,086
2012-09-24T11:54:04.677
api_errors
softwareengineering.stackexchange.com
646,245
PHP-FPM Failed to connect to FastCGI server
Error log: [CODE] Well, this file [CODE] indeed is missing, and there's actually nothing in [CODE] folder. And when I restarts apache2 it seems to work all right: [CODE] /etc/apache2/conf.d/php-fpm.conf [CODE] So what do I do now?
In short I would bet that you are not using Unix Sockets in your php-fpm configuration. This is because by default php-fpm is using TCP ports. Closer look at your configuration You've decided to use Unix Sockets: FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization ...
8
9
43,030
2014-11-22T06:01:29.147
infrastructure
serverfault.com
79,640
What is correct syntax to verify a certificate in the certificate store using certutil.exe?
I have a client certificate in certstore. I try this: [CODE] but in get this error when I ping certutil.exe -ping it connect to pc. [CODE]
Instead of CertCommonName you need to give the filepath path to a certificate file i.e. certutil -verify examplecertificate.cer rather than certutil.exe -verify CertCommonName. The way you have its looking for a file called CertCommonname and cant find it.
1
1
14,004
2009-10-29T17:59:57.510
infrastructure
serverfault.com
485,172
Problems with multicasts in "iptables"
My question is related to multicasts and [CODE] . I want to allow ICMP and IGMP multicasts from the local VLAN [CODE] as well as from [CODE] on my CentOS machine, so I added the following rules to my inbound chain: # ACCEPT - Multicast 224.0.0.1 from current VLAN as well as 0.0.0.0 # -- ICMP iptables -A IP-INPUT -s 192...
You added your rules AFTER the rules which LOG and DROP your traffic. Those rules should be the last rules in the table. Just rearrange the lines so that they appear last.
0
1
10,681
2013-03-06T10:32:35.967
infrastructure
serverfault.com
333,705
What programming environments can be used to illustrate and benchmark the unoptimized space complexity of an algorithm?
What programming language along with implementation and compiler can I use to study the pure, unoptimized space complexity of an arbitrary algorithm? And what methods can I use to do so? For example, Scheme and Elixir implement tail call optimization. If the algorithm I wrote were recursive, whatever methods I could us...
Programming languages and implementations do not exist in a vacuum. They are the product of various optimizations that could be applied at any time without you even knowing it, and if they aren't, then you're dealing with a naïve language and implementation and their performance will be less than optimal anyway. In oth...
-1
0
114
2016-10-15T16:31:43.227
api_errors
softwareengineering.stackexchange.com
70,075
Why does lowering the MTU from 1500 to 1499 allow me to access most websites?
I had this issue where I was only able to connect to websites like google.com and ibm.com when the mtu was set at 1500, but if I tried to connect to anything else, it would just show a blank page. When the mtu was lowered to 1499, it started working. I am curious as to why this works and if having the mtu set at 1499 c...
That may mean some other device upstream from you has a smaller mtu and someone has mis-configured a firewall to block all ICMP preventing MTU discovery for the path. Many naive network administrators seem to believe that ICMP has no purpose and you can completely block it without any repercussions.
16
19
5,216
2009-09-30T18:23:03.693
api_errors
serverfault.com
275,193
Why won't Ubuntu Server 9.04 won't upgrade to 9.10?
I have a server running 9.04 and I'd like to upgrade it to 9.10 (on the way to getting to the latest version). However, despite following the nice documentation , I am unable to. Specifically, [CODE] fails: [CODE] My original /etc/apt/sources.list: [CODE] Changing [CODE] to [CODE] and [CODE] to [CODE] gives 404 errors ...
Probably too late but.... Changing jaunty to karmic and old-releases to releases gives 404 errors This should be old-releases to archive
4
4
2,670
2011-05-30T11:27:22.687
infrastructure
serverfault.com
615,621
Session Broker and Direct RDP Connections
So newer to managing RDS2012 along with using the MS RDS Web Interface. Can users just RDP directly to the session hosts like previous TS? If not, what happens when the broker is down?
You technically can RDP directly to the session hosts in a farm, by using the [CODE] switch, but this is considered emergency access mode, I.e., when your session broker is down. By using the [CODE] switch you're bypassing RDS CALs which means you're back to the two simultaneous administrative connections restriction. ...
1
1
3,157
2014-07-25T22:43:34.173
infrastructure
serverfault.com
602,369
CentOS (rel6) with default python 2.6, but seperate 3.3.5 installation
I have a CentOS server (rel6) that had python installed (2.6), but I needed a few features in 3.3+. I installed 3.3 into a seperate folder and made a symbolic link to execute it: I installed setup tools: yum install python-setuptools I installed a needed module"pandas" easy_install pandas I executed my pyton script, wh...
SOLUTION: To solve this issue I created a fresh virtualenv with a specified python (python 3.3), and used the correct installer (easy_install-3.3 which is apparently specific to that python version) to add the modules. As verified by the correction version of pip (pip3.3) it appears to be working now [CODE] My script n...
2
2
2,675
2014-06-06T14:03:12.587
database_errors
serverfault.com
360,738
Enum or dictionary for inmemory parameter
I have a table UserItems {ID, UserID, ItemID} Items must be in RAM (not in db table). What is better for this? As enum with attributes or as dictionary of items?: [CODE] OR [CODE]
If you're absolutely certain that the ids are not going to change and that the ids are and will be linear, the first would be preferable, since you can simply grab the enum by using the id as an ordinal. Though in my humble opinion, you would be doing yourself a favor to assume that ids can change if you're having to l...
1
2
705
2017-11-14T09:28:57.717
api_errors
softwareengineering.stackexchange.com
60,636
Ubuntu Gnome RAID GUI Tool
I have installed Ubuntu server ("Jaunty") onto a hardware RAID 1 setup. I have now (after successful install) added 2 new drives which I'd like to also have in hardware (or software) RAID 1. When I setup a hardware RAID array for the new drives, the next boot into Ubuntu failed miserably. During startup it hangs just a...
A bit web based, but you could try the tool: webmin
1
0
13,835
2009-08-31T02:01:36.313
infrastructure
serverfault.com
367,400
New Fiber Optic Internet Connection, want to use Sonicwall TZ200 as main router, WAN/VLAN
Key Facts: We have a new internet connection with Movistar. It is a 100/10 Mbit line. We want to use the TZ200 as our main router. The Fiber Optic router is a ONT I240 The internet router that movistar supplies you with is a Irouter 1104w We DO NOT want to use the "irouter 1104w". We want to use out router the Sonicwal...
Ok, after a lot of testing and research, a solution is here. A Mikrotik Routerboard RB250GS or a Smart Switch which allows you to create VLANS. Effectively Tested on a Netgear 724T Smart Switch & Mikrotik Routerboard RB250GS Login to your switch in the switch (Netgear 724T) and create a VLAN named "WAN" with an ID of 6...
4
1
6,091
2012-03-07T22:27:24.720
infrastructure
serverfault.com
214,464
Access is denied for SQLDumper.exe in MS SQL Server
I want to run SQLDumper.exe with process ID 6392 which is the ID of my Express edition. While running I get this error from the OS access is denied I've given full control to the SQL Express account name but still get the error. What access should I grant in order to make it work properly? Thanks for your time!
Try running CMD using administrative Privileges. Start->CMD->right Click on it and click run as administrator
2
1
180
2018-08-09T06:13:08.713
database_errors
dba.stackexchange.com
876,218
How could use an account "rsync" created on LDAP server to scp files between linux servers
I have a LDAP server which has an existing rsync account. I would like to use it to scp files among all of my servers. I added the public key of the rsync user to the /.ssh/authorized_keys file and tried to scp . The error is as below: [CODE] Is there a way I can make this possible.
[CODE] ssh-keyscan is a utility for gathering the public ssh host keys of a number of hosts. It was designed to aid in building and verifying ssh_known_hosts files. ssh-keyscan provides a minimal interface suitable for use by shell and perl scripts.
0
1
480
2017-09-29T22:13:04.157
infrastructure
serverfault.com
367,187
Why we use top== -1 for implementation of stack using simple array?
I am a newbie at data structures. I have read an implementation of a stack using a simple array. The algorithm for this implementation is presented below. Stack implementation in terms of an array Before implementing actual operations, first follow the below steps to create an empty stack. Include all the header files ...
In C, arrays are zero-based. So when top == 0 it means there is one element on the stack. By consequence, if the stack is empty, the top index is set to -1 so that when the first element is added, it is incremented to 0.
-3
7
10,891
2018-03-07T06:03:40.163
api_errors
softwareengineering.stackexchange.com
875,448
p4: No such file or directory - when in reality it exists
I have installed p4 command line client on the server, and something strange is happening. It exists, has executable rights, but I cannot execute it because I received an error message that it does not exists. I tried looking around, and everyone else who had this problem realized they picked the wrong binary for their...
ok I found a solution, I changed my provision script to this and it works fine. I have no idea why this fixed my problem... [CODE]
0
0
3,299
2017-09-25T22:30:02.793
infrastructure
serverfault.com
77,262
Can reducing the number of classes in multi-label classification increase performance?
This is more of an open question with people which have experience in this. I'm working on a multi-class multi-label classification for chest x-rays. I would like to know how much can reducing the number of classes increase performance for remaining classes before moving forward and making big changes to the training p...
Yes, merging / dropping classes will tend to increase performance. If you merge classes, there will be more examples per class which will tend to decrease the variance of a model. Reducing the total of number classes has the potential to allow the model better fit the data, reducing bias. Many models are constrained by...
4
1
430
2020-07-06T20:01:22.103
pipeline_ops
datascience.stackexchange.com
27,983
Broken SELECT in Sql Server Compact 3.5 SP2?
I'm looking for a cause of a really strange case of SQL Server Compact db corruption. The case is that in a .NET Compact Framework app that we are running every once in a while we get into a situation where the following statement returns no rows [CODE] while [CODE] returns one. Actually, when you select all rows from ...
I can only guess that the problem is related to some sort of index corruption - maybe it gets out of sync with the actual data store. You could isolate index issues by just dropping the index. That will slow down some or all of the queries that access that table, but if the problem goes away, you know for certain that ...
1
2
700
2012-10-31T14:46:43.373
data_quality
dba.stackexchange.com
646,653
nginx: Append to proxied URL with proxy_pass
I'm dealing with some legacy issues where I have to reconfigure servers hosting a PHP based application. One of the decisions was to move away from Apache onto Nginx. Now the application hosts two kinds of responses; [CODE] The application is based on Laravel. Now, I have two virtual hosts, [CODE] and [CODE] . What I'v...
A tip from https://serverfault.com/a/586607 : [CODE]
-1
0
2,740
2014-11-24T14:19:56.500
infrastructure
serverfault.com
762,801
How to use variables in access_log filename with Nginx (healthd)
I have a mutli-container setup in AWS. I'm trying to follow this: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-serverlogs.html However (using latest Nginx - 1.9.12) as soon as I try to use variables in the filename I start to see errors in the error log, and the file itself is not created. erro...
That's a common pitfall. Doc on [CODE] says: The file path can contain variables (0.7.6+), but such logs have some constraints: ... during each log write the existence of the request’s root directory is checked, and if it does not exist the log is not created . You didn't set root directory so nginx falls back to defau...
6
5
4,316
2016-03-10T06:01:56.310
pipeline_ops
serverfault.com
410,535
how to log terminal sservices sessions
i have several servers (VMs, if it makes any difference) running windows 2003 and 2008 server and multiple users that may be logged on to any of those servers at any given time. is it possible to somehow write user logon/logoff events to a log file in windows 2003 and 2008 servers so that i could keep track of it? than...
They already are (or should be) logged to the Security log. Event IDs 528 and 540 indicate a user logon, with type 10 indicating a terminal server/remote desktop session . Event 551 indicates a logoff, whereas Event 4779 indicates a disconnection, rather than a proper logoff. (All Security Log events.) Parsing the even...
2
6
487
2012-07-24T06:50:42.373
infrastructure
serverfault.com
1,070,695
GCP Firewall and IPv6 address support?
Although the GCP documentation claims that IPv6 addresses are supported when making firewall rules ( https://cloud.google.com/vpc/docs/firewalls ) I can't seem to make it happen. From this doc: Firewall rules support IPv4 connections. IPv6 connections are also supported in VPC networks that have IPv6 enabled. When spec...
The GUI doesn't work for me either, but I was able to successfully create the firewall rules with an equivalent gcloud command. To test, I created a new VPC, new subnet and new firewall rule: [CODE]
1
2
646
2021-07-26T17:51:20.717
infrastructure
serverfault.com
369,663
What happens if hardlinks are not preserved?
I evaluate backup solution for common linux servers. What happens if hard links are not preserved? The only draw back I see: After the restore some MB more space is required. But this is no problem for my case.
Leaving aside the space problem....In the past I've come across applications where a single program is accessed via different filenames (and gives different behaviour) based on hard links (a quick look in my /usr/bin, I see enscript, gcc, perl, pyhton, sudo, zipinfo and others with multiple links) which makes we wonder...
0
1
125
2012-03-14T15:54:46.337
database_errors
serverfault.com