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
326,378
Finding the best combination of sets that gives the maximum number of unique items
A couple of months ago I went to a Bruce Springsteen concert. I hadn't heard much of his songs before that, but really liked the concert and bought the live recording of it afterwards (which he sells via live.brucespringsteen.net ). A bit later I even bought another live recording of a different concert and after liste...
You can use genetic algorithms with a simple binary representation for the individuals: [CODE] Every locus of an individual is related to the recordings of a specific show. If: [CODE] then you're going to buy the [CODE] album. You should code two / three functions: [CODE] The fitness function is something like: [CODE] ...
6
4
2,130
2016-08-02T09:08:48.757
data_quality
softwareengineering.stackexchange.com
1,088,964
Postfix emails error, loops back to myself
I'm struggling with Postfix to send out emails from a form on my website: Google Domain, hosting provided by DigitalOcean with a LAMP droplet; this is my DNS config: Mail function on my .php file wants to send an email from: [CODE] to: [CODE] all goes succesfully except emails are not actually sent. [CODE] mentions tha...
Unless you have [CODE] [CODE] records defined, the mail to [CODE] will be delivered to an [CODE] from [CODE] [CODE] record for [CODE] , which (as I can guess) is the same as your web application. As your application is attempting to send an email to [CODE] through [CODE] it loops back to itself. You need to configure y...
0
0
275
2022-01-04T15:26:16.150
infrastructure
serverfault.com
216,073
Problems of having DR as Synchronous Commit
In our always on set up we have One Primary and One Secondary as Synchronous Commit and the DR as asynchronous commit. If i want to change the DR to Synchronous Commit will there be any performance issues ?
If i want to change the DR to Synchronous Commit will there be any performance issues ? Well, it will take longer to commit transactions, as the primary will wait for the log records to be saved on both sync replicas during each commit. Whether that causes a "performance issue" depends on the transaction throughput, ne...
1
3
285
2018-08-28T13:53:44.703
warehouse_errors
dba.stackexchange.com
1,099,426
OpenSSH on Windows always binds sockets used for Remote Forwarding to LOOPBACK
Like the title says. Host A acts as a server (bastion-host, call it whatever you will). Now, host B performs: ssh -R 2222:localhost:22 user@A as a result a TCP socket gets spawned at A, but it is bound to 2222@ Loopback i.e. preventing remote connections to it. How to change 127.0.0.1 to 0.0.0.0 or anything else more s...
You're missing the optional [CODE] part of the [CODE] specification. In the [CODE] documentation (as linked by Microsoft ) it writes, By default, TCP listening sockets on the server will be bound to the loopback interface only. This may be overridden by specifying a [CODE] . An empty [CODE] , or the address [CODE] , in...
0
2
846
2022-04-25T15:58:12.797
infrastructure
serverfault.com
988,640
Nginx conf duplicate issues
I'm very new to server admin. Using Digital Ocean, I recently upgrades Ubuntu from v14 to v16 and now I seem to have issues with Nginx when running [CODE] . Here is the start of my [CODE] which was preserved during the upgrade. [CODE] Can someone advise on how to get around these issues. Extra Info Not entirely sure if...
The problem is these directives are actually duplicated. One is in main configuration file [CODE] and the other in [CODE] . You need to change one or the other so it stops complaining. It must be unique to a given [CODE] context.
1
1
6,722
2019-10-19T06:26:29.140
api_errors
serverfault.com
846,811
CentOS 7 behind VPN tunnel can't be pinged or accessed without IP forward turned on but rest of machines are fine
Not sure if its the fact its behind router to router tunnel or something different in Centos 7. but I have 30 machines at a remote location I'm using a site to site tunnel from the local office to the remote office. Now all the Cent OS 6.2 systems are fine you can ping them over the tunnel, connect to them over the tun...
OK I found the problem on pfsense forums so if anyone else has this wierd issue its a bug in PFSense's IPSec routing. PFsense sees the other end of the tunnel as a second router on the same lan segment, so what happens is it sends an icmp redirect thinking that the other router is a better route and this of coarse fail...
0
0
789
2017-04-27T05:19:54.550
infrastructure
serverfault.com
388,306
Run munin and all dependencies in userspace on AIX 6.1
Summary: I would like to have a portable munin in user space without installing anything at all on the client system, (like portable Firefox, without root tasks). I've downloaded all the dependencies: [CODE] Finally I've installed gcc from an rpm. Also bash from Bull freeware. They are in [CODE] . I'm trying to compile...
You can't build it without the dependencies. So the hint is, either find someone else who has built it for AIX, or install the dependencies. Or, and your question isn't clear, if you're trying to run a munin installation somewhere temporarily, use a Linux VM either on your workstation, or depending on your pSeries hard...
1
0
389
2012-05-11T17:00:59.837
pipeline_ops
serverfault.com
713,298
multithreading a single threaded application worker
I have a server which I want to dedicate for converting [CODE] files to [CODE] via LibreOffice. The server has 6 cores and LibreOffice is single threaded. This means that generating a single pdf uses 16.666% of my total CPU power. Converting a file can be done from the console and is a blocking task, i.e it waits until...
You might want to check out GNU parallel : GNU parallel is a shell tool for executing jobs in parallel using one or more computers. There are plenty of examples in the docs, including GNU Parallel as dir processor which you should probably have a look at. Of course you will need to do quite some scripting for this, and...
3
5
763
2015-08-11T10:32:50.460
infrastructure
serverfault.com
122,540
Project Server 2010 Beta - can't connect Project client to projects hosted on server
We have a Project 2010 Beta installed on SharePoint 2010 Beta as test set-up whilst we wait for the release versions. Whilst the installation seemed to complete without any issues we're unable to open any projects within the Project 2010 client app. Project pops up an error 'Could not retrieve server initialization dat...
Well - the answer in my case was to chalk this off as a quirk of the Beta. Both Project Server and the underlying SharePoint were the Beta 1 versions. I've since re-installed with the RTMs of each product and whilst I've still had smaller headaches during the install (and a couple still outstanding) this specific probl...
0
0
1,797
2010-03-15T11:02:54.457
infrastructure
serverfault.com
145,998
ODBC Linked Server in SQL 2014 Express Server Data Truncated
I have been trying to collect data from ODBC Server into my SQL Server 2014 Express. I am successfully able to run the query: [CODE] Result is as shown in image: But as you can see, as marked in red, my Data is cut off / truncated. [CODE] whereas in original source it's [CODE] why data is being cut off / truncated? Ple...
Have you tried querying the columns in a qualified manner instead of using SELECT *? This would give you an opportunity to cast a particular value as a high(ish) limit NVARCHAR: [CODE] Also, the table you have open in the explorer is 'data', but you're searching for [current]. Why not fully qualify the table name you'r...
-1
0
241
2016-08-05T12:24:57.897
database_errors
dba.stackexchange.com
420,274
Possible? OpenVPN server requiring both certificate- AND password-based login (via Tomato router firmware)
I've been using Shibby's build of Tomato (64k NVRAM version) on my Asus N66U router in order to run an OpenVPN server. I'm curious whether it's possible to setup this OpenVPN server to require both a certificate AND a username/password before a user is allowed access. I noticed there's a "challenge password" entry when...
The OpenVPN feature you're looking for, which will allow the server to authenticate clients based on both their certificate and a credential, is [CODE] . This feature allows the server to pass the username/password provided by the remote user to a script that performs the authentication. At that point you can validate ...
9
4
31,657
2012-08-23T03:41:42.730
api_errors
serverfault.com
123,055
sudoer scheme to allow useful access to another web developer yet retain future control of a virtual server?
Background: Virtual Private Server I have a virtual private server that I'm looking to host multiple websites on, and provide access to another web developer. I don't care about putting too many constraints on him, though I wouldn't mind isolating the site that he'll be developing from other sites on the server that I ...
Depending on the amount of applications you want to allow him to perform, an option would be to allow him to execute commands withou even having to sudo. This could prevent you from giving him a root access, while still allowing him to perform his tasks: To do this, add in the sudoers file a line like this one for each...
5
1
529
2010-03-16T17:04:47.573
database_errors
serverfault.com
441,715
IIS permission configuration issue
Sorry the title of this question is a little ambiguous but I don't really have any idea where the issue lies - I'm seeking some clarification of the server error logs. Basically, I had a dedicated server running Windows 2003 and Plesk (v8 I think). Last week the server hardware failed and the entire thing had to be reb...
Looks like someone worked on folder permissions? I actually fight with an equal error. Recently i changed some folder permission and for this moment my plesk parallels panel stops working. Just make sure nobody works on permissions specially in the folder C:\inetpub. little changes can make big differences! sorry for m...
0
1
2,283
2012-10-24T10:38:35.313
api_errors
serverfault.com
313,401
Optimal Indexing Strategy for Datawarehouse and Data Lake Updates
We have a sql server database we use as a data lake and a datawarehouse. Each table in the database has some standardized definition as we are at 600 or so tables now, so maintenance needs to be somewhat automated. The general process for loading each table is to first load a copy of the table into a hash table in the ...
Answering in reverse because it makes more linguistic sense: Is VARBINARY(MAX) the proper data type or can I safely bring it down to a smaller size? As I mentioned in the comments, [CODE] it hashes an output to 256 bits aka 32 bytes (8 bits in 1 byte) in length, meaning the max [CODE] size you'll ever need is [CODE] . ...
2
1
443
2022-06-15T14:38:44.150
warehouse_errors
dba.stackexchange.com
201,180
Batch rename via command line?
I have a Media Temple (dv) server which I am setting Magento up on. I have uploaded a few thousand images to the /media/import directory that the client has provided me with. The problem is, some images are .jpg and others are .JPG. Is there a way of batch renaming them on the server? I really don't want to have to do ...
A bash suggestion: [CODE] It loops over all the files with a .JPG extension, and for each of them it uses sed to construct the new filename by turning a terminal .JPG into a terminal .jpg, and performs the mv. The [CODE] is just in case you have a fred.JPG and a fred.jpg already. Don't forget to distinguish between sin...
2
3
337
2010-11-12T14:54:17.967
infrastructure
serverfault.com
957,101
Can I set different IP to second level sub-domain?
I'm trying to set a A records to this domain: [CODE] That will be different from this sub-domain: [CODE] But it's not working for me. And I always get the first IP when I ping it. We're using AWS route 53 DNS Thanks
DNS wildcards are discussed in RFCs 1034 and 4592 . While neither document explicitly calls out the case of multiple wildcards, most interpretations seem to conclude that multiple wildcards are not permitted. Beyond that, you'll have to ask AWS Route 53 for clarification of how they choose to interpret DNS wildcards.
-1
1
151
2019-03-06T22:42:38.917
infrastructure
serverfault.com
333,779
postgres trouble with systemd service not starting
we do custom installation of postgres on rhel. At present I installed 2 machines simultaeneously with Ansible (so they shoudl receive the exact same things) on rhel9 machines but fail starting postgres with systemd on some of then (not all). the error I am getting [CODE] but that is not relly logical given the below [C...
You could try to run the command manually as user [CODE] : [CODE] You should encounter the same error. Look at the permissions of both the executable and the data directory. Then look at the permissions of all the containing directories. Something should be missing there. The command is pretty useless to run before sta...
0
0
89
2023-12-06T11:15:54.203
pipeline_ops
dba.stackexchange.com
388,119
Alternative to a utility class for extension methods in C#?
I understand that in OOP languages like C#, it is generally viewed as bad practice to create utility classes, and it's preferable to put methods in the classes in which they will be used. To that end, I wanted to create a [CODE] extension method for [CODE] types; however, it told me that extension methods must be decla...
Best Practices and Good Design are things you should strive to follow, but there's always an exception or valid reason to violate them. This is one of the necessary exceptions to "No Utility Classes". The importance of the class being a Non-Generic Static is deep in the guts of C#, this is how a class is able to find t...
3
6
1,375
2019-03-05T22:51:04.157
api_errors
softwareengineering.stackexchange.com
305,598
execute cgi script from directory that is a symbolic link
I have a script that is available through Apache that modifies parent directory. Ew. mybin/a.pl, which modifies ../data/ directory. I would like to create various aliases eg. localhost/www/mybin/a.pl localhost/zzz/mybin/a.pl that would modify different directories - like www/data and zzz/data. I would like to keep one ...
I don't think the answer is going to be found in Apache but rather in the CGI itself. Apache will follow symlinks provided the owner is the same, that said I would look at your CGI script which you haven't provided. My guess is that you're using relative path when referencing the data directory you're script modifies. ...
3
3
1,890
2011-08-27T15:31:31.757
infrastructure
serverfault.com
783,190
Uncompress an SQL file give a binary file
I created and compressed (with bzip2) a SQL dump from a production server on Linux. I want to create a shell script to automatically import it in the database of my development environment (on Mac OS). The file dump.sql.bz2 is well uncompressed manually with Mac OS Archive Utility. But when I'm using command line such ...
Well, I found why. My SQL dump was compressed two times, but name was not dump.sql.bz2.bz2 , just dump.sql.bz2 . Binary file was the decompression result of only first layer. Mac OS Archive Utility is more intelligent because it recognized this double compression and had restored the original SQL dump file.
0
0
643
2016-06-10T10:47:50.777
database_errors
serverfault.com
174,362
Why is sql server changing the value of the minimum and maximum memory?
I have a SQL Server 2008 R2 x64 instance. I tried to change the Minimum and Maximum memory to 60 MB and 2000 MB using Management Studio (Server Properties->Memory). When I close and reopen Management Studio I see those values still there. However, when I restart the SQL service, I go back to the Server Properties in Ma...
SQL doesn't change those values for you. Just to rule out the obvious, are you sure you're looking at the same SQL instance where you're looking at it the second time? On the SQL instance in question, run this and see what the values are for in the [CODE] column for [CODE] and [CODE] [CODE]
0
0
146
2010-08-25T13:53:40.963
database_errors
serverfault.com
1,064,368
Can I forward content from one Azure Log Analytics Workspace to another?
Question Is it possible to forward content from one Azure Log Analytics Workspace to another? Note that I am not asking about multihoming the Log Analytics agent, such that it writes to two Workspaces. Rather, I would like to know whether, in the case where I already have two Workspaces, if one of them can send its con...
Azure Log Analytics Workspace Limitations Unfortunately, this is not currently possible. Azure does not yet support the following: Send logs from one Workspace to another Migrate logs from one Workspace to another For cost-cutting purposes, we wanted to migrate a Workspace from a certain region, to East US region, beca...
3
3
5,110
2021-05-21T22:26:35.760
database_errors
serverfault.com
5,785
How much memory is needed to keep a table cached? (SQL Server 2008)
I run long and complex queries which mostly use one big table - 8GB, 40M rows. AFAIK, all/most rows are used in each query. I'm seeing lots of IO in the activity monitor - for the first query and for every subsequent one. The server is currently using 6.5GB of memory and I want to upgrade. Question is, how much memory ...
what is the nature of your queries? SELECTs only? Or a mixture of DUI (DELETE, UPDATE, INSERTs)? and what is your recovery model? are you using the default transaction isolation level? If you want to put all those pages in memory, then you will need to get more memory (but you knew that already). You want to know 'how ...
6
3
4,576
2011-09-14T21:51:25.240
database_errors
dba.stackexchange.com
786,090
Docker : container by app with LAMP included or LAMP container only?
I have server with 20/30 sites to hosts and I would like to use Docker containers for scalability, maintenability and security. After few searches, I found 2 approaches : one container per application, (with all included such as LAMP), one container per "service", such as Apache, Mysql... And apps. Regarding my goal (2...
The preferred solution in a greenfield is to have one container per service, so an Apache container and a separate Mysql container. Since Apache will spawn and communicate with the app directly in most LAMP stacks, I wouldn't separate these. Place both of these containers inside a docker-compose.yml definition and star...
1
0
315
2016-06-24T15:01:57.303
data_quality
serverfault.com
267,433
slow http connection in LAN
I have a weird problem I'm trying to solve, but can't find out how. I found that problem when trying to access a php page and only the basic html and css were loaded but the flash didn't. when I tried to download the swf file directly, I encountered an http timeout error. In order to find the problem I ran some tests: ...
It sounds more like some sort of LAN issue, either the network itself, the client machine, or the server. This is supported by you mentioning you are getting corrupted data in the middle of the file assumably over the LAN but not localhost/PPP. I would try and narrow down the issue. A few things you can check: Is it ju...
0
1
1,331
2011-05-08T08:21:06.533
data_quality
serverfault.com
329,759
Hour-long shutdown duration "shutting down hyper-v virtual machine management service"
I have a Windows 2008 R2 server that is a Hyper-V host (Dell PowerEdge T300). Today for the first time I encountered an odd situation; i lost connection with one of the guest machines but logging on physically it seems the guest OS is still running but no longer contactable via the network. I tried to shut down the gue...
The hotfix in Microsoft KB2263829 might solve this problem.
5
2
43,764
2011-11-10T15:07:04.190
pipeline_ops
serverfault.com
633,852
Is there such a thing as unbuffered registered DIMM memory?
I thought the two (registered and buffered, and the same for the negations) are synonymous. Are there any ECC unbuffered but registered modules out there?
After a little more researching I have convinced myself that they are as good as synonymous. All buffered memory is registered and vice versa.
0
0
119
2014-10-06T13:31:36.963
infrastructure
serverfault.com
133,289
Re-downloading Microsoft SQL Server 2008 Standard because of license issues?
I have many clients who have purchased Microsoft SQL Server 2008 Standard. Unlike other Microsoft software, there is not a serial number provided for each customer to install the software. Furthermore, Microsoft's TechNet website lists this information about SQL Server instead of providing a key: "This product is pre-p...
1) The Technet version of SQL server is not meant to be used for your customer deployment (because of the pre-PIDding) - the SQL Server Small Business Edition is the same. 2) SQL Server does not require any kind of activation, and does not "phone home", so the key you are using will be valid forever, nomatter how many ...
2
4
1,438
2010-04-17T03:07:17.150
database_errors
serverfault.com
95,729
Difference of running scripts manually or with a cronjob
I have a PHP script that I want to run every 10 minutes, going through database records and creating/editing movies through MEncoder. I've set up cron job to accomplish this, but it doesn't work very well. I have my PHP script, call it document.php. I also have a bash script (document.sh) to call this PHP script; [CODE...
Running from cron doesn't pull in your shell configuration files (~/.bashrc or ~/.profile or /etc/profile) Is it possible there are environment variables defined there that are affecting your job? Try sourcing your profile files manually at the start of your script. ( [CODE] )
3
8
6,047
2009-12-18T16:34:58.227
data_quality
serverfault.com
563,767
SELinux: denied { execute } for pid=2174 comm="httpd" path="/etc/httpd/lib/libaprutil-1.so.0.5.3"
I have problem with SELinux. [CODE] suggested to enable [CODE] with [CODE] so apache could run. after I run the suggested command, I'm keep getting: [CODE]
The below indicates to me you have a relabelling problem. [CODE] Is [CODE] a symlink to somewhere else? Normally you wouldn't put your libraries here, but only as a symlink. If so running [CODE] might be beneficial here. For the second issue reported below to work you need to ensure SELinux is aware what kind of behavi...
5
6
14,830
2013-12-27T15:31:16.163
infrastructure
serverfault.com
383,051
MSSQL Server Express: How to reclaim unused space
At our company we are using a proprietary third party custom application that uses SQL Server Express as its backend. As you are aware SQL Server Express 2008 has a hard 10GB limit. For the “old” data in this database, we have a separate database offsite to which we store the data. I am aware that purchasing SQL Server...
You will need to shrink the database if you want to reclaim the free space.
0
1
2,470
2012-04-25T16:02:02.303
database_errors
serverfault.com
812,457
linux redhat + hung + reason for hung
I have linux redhat machine - 6.8 and from the /var/log/message file I see the following lines: from my point is seems that linux is hung because the bad connection to the server - 100.1.93.7 , is it correct ? [CODE]
That could be just coincidence Your real issue is this [CODE] So you should check your Oracle alert log file.
1
1
813
2016-11-01T08:22:04.043
infrastructure
serverfault.com
630,442
Encrypting/Decrypting a file using openssl through an autorun script
So I am trying to encrypt/decrypt a file using openssl. I am running it through a script that is automatically run when I mount a USB, and decrypts the file. However, it doesn't work quite right, so here are my steps. I encrypt the text file using... [CODE] I then have a script on the usb, which is automatically run wh...
The difference might be the directory it's executed from. Maybe (probably) the system executes it not from inside the mount point with [CODE] , but from somewhere else using an absolute path like [CODE] . To make the script work when executed from a different directory, using absolute path, write this way: [CODE] Inste...
3
1
1,918
2014-09-22T23:58:24.980
infrastructure
serverfault.com
694,226
incrond Error - access denied on /home/*/abc/ events will be discarded silently
I am getting following error on Ubuntu in the logs. incrond Error - access denied on /home/*/abc/ events will be discarded silently I am trying to monitor [CODE] can be anything. Any ideas how to fix?
incron does not support glob on path expression. From the man page: where path is a directory or a file. Please note that incron is not able to watch files in sub directories of the directory that you have set, so only files in that directory will be observed.
2
1
2,178
2015-05-25T10:02:00.100
infrastructure
serverfault.com
699,600
Application Virtualization Risk Through WAN / Internet
I was weighing pros and cons about the new mission critical system that through application virtualization, will allow my colleagues from 3 different countries to access it. Here are some background information. 1) The new mission critical system contain two servers. The system server which will host the SQL database w...
The communication over the Internet may, or may not, be encrypted. It all depends on the protocol which it uses. Even if it is encrypted, unless it's a widely used, heavily scrutinised protocol that is maintained and adapted according to new cryptographic findings, there's a good chance that it is horribly, horribly br...
0
0
22
2015-06-17T09:37:35.697
infrastructure
serverfault.com
1,092,067
Bot detection by fail2ban
I want to know if it is possible to use in fail2ban some rule / script that detects the bots, not just by maxretry in a given amount in seconds, but through identifying some patterns for every IP: for example, let's say that an IP accesses a page every from 10 to 15 seconds, but another IP accesses it every 30-45 secon...
fail2ban is good at detecting known bad patterns that happen repeatedly. Multiple ssh authentication failures match a regex, and banned. fail2ban is bad at detecting unknown patterns, and has no obvious mechanism for triggering based only on timing. Flagging everything as failed and sorting it out in actions (that you ...
0
0
280
2022-02-01T12:02:10.223
infrastructure
serverfault.com
108,508
Failed Backup Job With Backup Exec 12 and AOFO
I am backing up a Windows 2003 Small Business Server with SP2. We are running Backup Exec 12 with SP4. Recently the backup job started failing on backing up the system state with the following error: V-79-57344-34110 - AOFO: Initialization failure on: "System?State". Advanced Open File Option used: Microsoft Volume Sha...
I resolved this issue finally. Symantec changed something is SP4 for BackupExec 12 that requires that you predicate the service account being used for backups to include the domain (i.e. domainname\service account). Changed to this topology and backups function properly
0
2
1,263
2010-02-01T21:55:51.477
database_errors
serverfault.com
854,615
monit - "else if succeeded then exec"
I have a problem with monit executing script on success. [CODE] : [CODE] It appears to run the script if there's an error, but not when there's no error. Log shows that the tests are ran and succeed, [CODE] : [CODE] I have checked that running [CODE] works as expected (creating relevant status file in relevant dir). OS...
Succeed action is only executed after a fail event is solved (i.e. when going from state fail to state success ), not when things behave as expected.
2
3
2,327
2017-06-08T10:35:20.860
infrastructure
serverfault.com
241,338
Windows Activation in Amazon EC2
I'm trying to activate Windows 2008 Server in Amazon EC2 as described here: https://forums.aws.amazon.com/message.jspa?messageID=185874#185874 I'm trying these two amazon addresses, for my server's region: [CODE] [CODE] I get success when I run: [CODE] The I get a [CODE] error upon running: [CODE] [CODE] shows: [CODE] ...
Are you running a local DNS server? I found that even if you tell IPv4 to use DHCP for its DNS server, Windows will prefer the IPv6 server on ::1. Check by running 'nslookup'. After making that change, I changed the EC2WindowsActivate plugin and restarted the service, and it activated correctly.
2
1
1,070
2011-02-28T21:14:45.967
infrastructure
serverfault.com
4,101
Cannot connect to server running on host from Dockerfile / image build
I have a server running on localhost:3440 on the host machine. In a Dockerfile I have: [CODE] I've read that using [CODE] with [CODE] will allow a running container to connect to a server running on the host. But my question is - when building an image , how can I connect to a server on localhost? The error I get is si...
First you have to start netcat listening in the background. $ netcat -l 3440 & Then build your Dockerfile. [CODE]
1
1
362
2018-05-15T01:34:09.503
pipeline_ops
devops.stackexchange.com
419,695
What design/component principle did I apply? How can I further improve it?
I recently refactored a program for code feasibility and maintainability; however, I am totally unaware of what software principle I did implement. I just followed my feeling. The purpose for this post is that I want to know what software principle I did implement so that I'm capable of referencing books or websites. B...
Candied Orange is correct in that this is an application of Replace Conditional with Polymorphism . But I don't think that quiet explains why your result from this approach is so powerful. It might be hard to see but the dispatch table is a fairly crude DSL (Domain Specific Language) which clearly expresses the problem...
-1
1
154
2020-12-05T22:43:11.740
api_errors
softwareengineering.stackexchange.com
501,700
Strange behaviour starting process with init script
I'm seeing some strange behaviour when starting a process with an init script. Most likely I am doing something stupid, but perhaps someone could let me know what might cause this behaviour: [Background: the process is mongodb's monogod running as a config server (2.4), and I'm running on Debian 6. The process runs und...
If you have more than one instance running on that server, or something else that might be putting another value here: [CODE] That would cause the problem you are seeing here, it will be looking for the process with the ID that is in that file to determine if [CODE] and what PID to stop when shutting it down. You shoul...
1
1
1,088
2013-04-22T21:37:20.140
database_errors
serverfault.com
1,065,485
Google Cloud Monitoring storage dashboard not showing Object Count or Object size for bucket
I'm trying to see Object Count and Object Size in the Cloud Monitoring dashboard for Cloud Storage. For some buckets, the Object Count and Object size data are not populating. All I'm seeing is "No data is available for the selected time frame". I've tried different time frames and have waited 24 hours for data to show...
This seems to be related to an internal issue with the Google Cloud Storage that occurred throughout the time you opened this question. This was internally fixed and your metrics should now show the correct information. Please let me know if it still doesn't work.
1
0
750
2021-06-02T19:09:12.483
pipeline_ops
serverfault.com
408,148
Algorithm for subjective ranking by many people
My friends and I are trying to figure out which one of our professor's would win in a fist fight. (ie, 2 profs would fight at a time, and the victors of those fights would then fight, etc. until there is only 1 winner). We have not asked, but we suspect they will be unwilling to cooperate with us, so we want to compare...
You're probably looking for a Condorcet method . They are used for example to elect governing boards in open source projects. The main mechanism is that each voter ranks candidates (with the option of not ranking some condidates at all, or assigning the same rank to multiple candidates.)
-1
1
55
2020-03-30T14:16:22.610
api_errors
softwareengineering.stackexchange.com
1,061,814
How to make domain user for backup be part of backup operators group on one client?
I'm using WBADMIN to backup multiple clients to a share published by some Synology NAS using SMB. That NAS is integrated in my Server 2019 AD as well as the backed up Windows clients are part of that same domain. My approach is to create one special backup user per client in the AD and configure access to the share for...
Yes - it is well known and by design that the domain's "Backup Operators" group is not the same as each machine's "Backup Operators" group. Just as the domain's "Administrators" group or "Remote Desktop Users" group does not automatically "sync" with the correlated local groups. They are objects with the same name exis...
0
3
2,724
2021-04-28T08:14:04.867
database_errors
serverfault.com
48,967
Whats the best approach to select elements for automated testing?
I read following in cypress's best practices . Anti-Pattern: Using highly brittle selectors that are subject to change. Best Practice: Use [CODE] attributes to provide context to your selectors and isolate them from CSS or JS changes. But I also came across following points: The reason using the actual text/role is bet...
The best practices are a good guide but implementation always "depends" Generally you want to use ID and data- attributes. It's that simple. The complications arise from real world implementation where its rarely ideal and compromise has to be made. That said... The example that 'button' as a locator needs context. May...
3
2
1,247
2021-09-01T11:53:49.440
bi_errors
sqa.stackexchange.com
198,142
Out of memory in MySQL error log
What should I check to solve this error that appears in the error log? Do I need to add RAM to the server or adjust some configuration variable? I copy part of the log: 180102 10:45:53 InnoDB: Started; log sequence number 0 267632652 mysql3: Out of memory (Needed 2299002880 bytes) 180102 10:45:54 [Note] mysql3: ready f...
A 32-bit MySQL on a 64-bit OS in 8GB of RAM: The OS can access all 8GB. The 32-bit MySQL is given no more than 4GB; it is impossible for it to use more than that. Actually, it can't quite use all 4GB. You could (should) reconfigure MySQL (via [CODE] ) as if it were on a 4GB machine. You could get a 64-bit version of My...
2
0
1,876
2018-02-16T21:15:26.683
database_errors
dba.stackexchange.com
362,647
CentOS server doesn't allow more than one FTP connection at a time
I'm still exploring server administration and networking (I'm an intern) and I've set up an FTP server at our company and set up a user account for all the workers here. Problem is I can connect one person every 15 minutes. I connect one user then disconnect that user. Then if I try to reconnect(even using the same use...
Glad it's working (somewhat) Are you connecting via Hostname or IP? Is the connection time the same for both? If it's different for hostname, could be a DNS issue. Also try using the regular FTP command line utility and see if you're getting the same behavior. Could just be something funky with Filezilla
3
0
1,630
2012-02-22T14:11:38.123
infrastructure
serverfault.com
1,081,377
Make an outgoing network connection via a specific outgoing IP address on linux
I have a Ubuntu (18.04) linux server with a main network interface [CODE] , which has 2 IP addresses assigned to it (via [CODE] ). The [CODE] routing details are pretty simple, just send all outgoing stuff over IP1. However sometimes I need to make outgoing connections (i.e. ssh connections) that come out from the othe...
Recent enough versions of [CODE] have the [CODE] and [CODE] options. Ubuntu 18.04's ssh might only have the [CODE] option which is the one needed here anyway. So to use IP2 as source IP address when connecting instead of the default IP address hinted by the routes, one can do: [CODE]
2
4
1,875
2021-10-22T09:23:08.533
infrastructure
serverfault.com
83,410
MySQL rapid Data Replication from multiple Databases
I am a Freelance Web Developer but not a Database Administrator at all except basic Database Operations like DML etc. Today I got a client asking me to develop a Web based application but there is a Problems concerning Databases and I don't know what strategy would best suit. Problem Explanation My Client got 6 differe...
Some might say depends how big the databases are; I think regardless of the size, accessing the databases directly instead of having a "local" mySQL database to query would be best, for the following reasons: No need for disk/memory/maintenance of the mySQL database If the updates to the various databases happen every ...
0
1
85
2014-11-23T16:13:45.510
database_errors
dba.stackexchange.com
48,778
mysqladmin not taking inline password
I am trying to set a cron job for taking backup from my slave machine. So I need to stop the slave I issued a command [CODE] But it is throwing error: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: YES)' Now I tried with the command [CODE] It promp...
Command line arguments are subject to interpretation by the system's command shell, changing the behavior of the command or changing the value of the arguments before they are passed into the called program. When an argument (such as the value for [CODE] ) contains an character that the shell may interpret, they need t...
10
21
18,693
2013-08-27T04:50:31.627
database_errors
dba.stackexchange.com
229,707
Failover Cluster Problem
We have a problem with our Hyper-v Failover Cluster.Failover Cluster gives me MSDTC error. I am receiving the following these errors. Cluster resource 'DTC' in clustered service or application 'Cluster Group' failed. The Cluster service failed to bring clustered service or application 'Cluster Group' completely > onlin...
a clustered hyper-v system does not need a msdtc resource to work!
2
1
3,131
2011-02-01T15:47:11.627
data_quality
serverfault.com
180,142
In Search of FILESTREAM Insider Information
When the FILESTREAM feature is activated on Microsoft SQL Server 2012 then SQL Server will create a "hidden" share on the system. The share is defined as follows: [CODE] The name is the name of the share you provide when initially configuring FILESTREAM in the SQL Server Configuration Manager . But what is it for? So f...
When the FILESTREAM feature is activated on Microsoft SQL Server 2012 then SQL Server will create a "hidden" share on the system. It does not do this by default, you have to CHOOSE to enable the share. This is done via SQL Server Configuration Manager. If you deselect the [CODE] the share will be removed. It's nice to ...
14
5
2,376
2017-07-18T15:20:21.100
database_errors
dba.stackexchange.com
188,287
How do you track third party services SSL certificates?
Recently Windows Azure Storage SSL certificate unexpectedly expired and since a lot of dependent services defaulted to "refuse to connect to a site with expired SSL certificate" that became a serious problem. Now the SSL certificate of any web service can be retrieved by anyone at any time for validation. The picture i...
If you are one such user, and run a Nagios/Icinga installation already anyway, there's a check to warn before a certificate expires . This is what we use at work. You'll “just” have to enumerate (by virtual host / server hostname) all those external services your things depend on (and keep that list up-to-date, which m...
2
2
454
2013-02-25T06:48:46.647
data_quality
softwareengineering.stackexchange.com
822,380
Reroute LAN HTTP traffic to node.js proxy using iptables
I'm trying to redirect all http traffic generated in my LAN to a node.js proxy running on a specific machine. I'm using: [CODE] (Testing one source machine at the moment. The proxy is on 192.168.1.2:8080). Unfortunately the traffic doesn't make it to the proxy. I can see the packet counter incrementing on the rule, and...
You did set up only a half of rules for the proper packet flow. What your rule does, it changes the destination address upon packet's entry to iptables gateway. Next, this packet is forwarded to your proxy, but it's source IP remains the same. So your proxy thinks it receives TCP SYN request from the client machine, an...
0
2
715
2016-12-23T01:35:51.930
infrastructure
serverfault.com
133,950
How to index for inequality queries?
I have query that is excluding data based on the value of a float column [CODE] I don't want to index a float type if I can help it. Would the execution plan be clever enough to use a filtered index like the below (Where I am only indexing the 0 and null values) to increase performance? [CODE]
Would the execution plan be clever enough to use a filtered index like the below (Where I am only indexing the 0 and null values) to increase performance? No. There's no direct support in SQL Server for the sort of single-operator row-rejection you seem to have in mind. Speaking more generally, the filtered index is no...
13
13
6,656
2016-03-31T11:58:38.013
data_quality
dba.stackexchange.com
204,796
How do I test this?
I've attempted test first in Ruby on Rails using Test Unit and RSpec. I'm wondering how to do test first in situations that are more closely tied to the OS/filesystem. Problem: Building a USB stick of MP4 files. Inputs: List of mp4 file name, destination directory pairs. List of source directories List of destination d...
You have asked two questions: How to test drive code which touches the filesystem Should you junk your existing untested code. Re: How to test drive code which touches the file system: The best way to do this is to put the filesystem calls behind an interface which will be mocked out for unit testing of the rest of the...
3
2
337
2013-07-14T13:23:37.793
api_errors
softwareengineering.stackexchange.com
871,096
iostat reports significantly different '%util' and 'await' for two identical disks in mdadm RAID1
I have a server running CentOS 6 with two Crucial M500 SSDs configured in mdadm RAID1. This server is also virtualized with Xen. Recently, I started seeing [CODE] percentages creep up in the [CODE] stats of our production VM. I decided to investigate and ran iostat on the dom0 so I could inspect activity on the physica...
I eventually discovered that this system was not being TRIMed properly and was also partitioned with insufficient overprovisioning (even though the Crucial M500 has 7% level 2 overprovisioning built-in). The combination of the two led to a severe case of write amplification . Furthermore, this system houses a database ...
1
2
1,215
2017-08-29T17:16:14.120
api_errors
serverfault.com
23,973
Clustering customer dataset to find customer patterns
Say I have a dataset, which consists of [CODE] [CODE] . A [CODE] is represented by a [CODE] , an [CODE] , an [CODE] and a [CODE] (time of day) for when the order was placed. It could look like this: [CODE] What I'm interested in is clustering these customers, so it would be possible for me to clearly differentiate betw...
Suggestion: use an indicator variable for your "order"+"orderAmount" data. The table would look like this, which seems more suitable for distance metrics: [CODE] If you do so, then I'd also suggest to normalize those indicator variables (make sure they are in the interval [0, 1], otherwise you could have a order of 100...
1
2
148
2017-10-22T10:42:28.143
data_quality
datascience.stackexchange.com
822,059
CentOS 7 Service User at Startup
I'm trying to get the noip linux client to run at boot on my system running CentOS 7. To do this i've tried configuring it a service with the following file in /usr/lib/systemd/system/noip.service [CODE] I ran [CODE] and rebooted the system to test. When I run [CODE] I get the following: [CODE] It doesn't update the no...
You need run service (Noip) after network start. Try the folowing: [CODE] REF: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
3
2
1,386
2016-12-21T14:46:27.773
infrastructure
serverfault.com
254,225
Which *light* ubuntu to use as a git central server?
At my company we're currently using a self-deployed copy of the http://gitorious.org code to manage our repositories.. It's an absolute monster!! Gitorious is a very heavy ruby on rails app and the server crashes about every 2 weeks.. It's running Ubuntu Server 10.04 And it has 1GB of RAM!! Were a team of about 5 devel...
I would definitely advice gitolite. We use gitosis in house, manage a bunch of repositories that are about 20G in size compressed and have a lot of developers accessing them 24/7. The server usage is very light, never had an issue. Gitolite only improves upon gitosis and provides much finer grain of access control. I t...
3
4
397
2011-03-31T16:55:03.277
infrastructure
serverfault.com
116,669
How to know if the processor is 64bit capable or not?
Is there any straight forward say ? I am running the 32bit version of Kubuntu. Here is my cpuinfo. [CODE]
The [CODE] flag indicates support for x86-64. For comparison, the flags of an older Intel Xeon: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pebs bts cid xtpr
3
5
826
2010-02-25T10:12:39.410
infrastructure
serverfault.com
225,831
phpize command not found
I was installing memcache on my Cent OS 5 server and I am following this guide > http://www.howtoforge.com/php_memcache_centos5.0 And now, when I enter, [CODE] the server says [CODE] So, I tried this command [CODE] and following is the answer from the server [CODE] So... any clue?
Where did you install php-devel to? The default directory? It seems that phpize either isn't installed or itsn't not in your path. Can you run a find for phpize? Once located, you can either add this to you path, or call it directly.
1
2
11,276
2011-01-23T17:17:49.387
infrastructure
serverfault.com
2,159
org.jenkinsci.lib.envinject.EnvInjectException: java.io.IOException: remote file operation failed
I've the following error in Jenkins console when running job which uses Windows slave: [CODE] which stops the job at the very start. I've no idea why EnvInject plugin would want to remove some Java files (such as [CODE] ). Any idea how to solve this problem?
The EnvInject plugin is basically attempting to load the build environment which uses configuration of JDK tools in Jenkins which fails during reinstallation of Java JDK library on the Windows slave (as per given configuration). This JDK configuration can be found in Global Tool Configuration (at [CODE] ) for the given...
5
5
2,229
2017-09-26T19:01:19.823
pipeline_ops
devops.stackexchange.com
107,250
Query: How to get both Question and multi Answers in one query
For this question, [CODE] and [CODE] are just my example tables for one-many relationship. For example: [CODE] and [CODE] In one query, I want to get one question and all answers of this question by QuestionID: How to write a query like that In case that, I "think" will have each rows is an answer with additional field...
You could make it with a simple [CODE] , the question is: Are you going to have others tables?. That could make that you have to redo your design. I suggest EAV if you're going to use more tables with some configuration between [CODE] and [CODE] . With your actual design the query would be like: [CODE] Related: To EAV ...
3
2
4,201
2015-07-16T19:20:40.530
warehouse_errors
dba.stackexchange.com
595,061
SCCM 2012 R2 - How to specify custom SCCM server IP / name using MDT in PE
I am attempting to automate OS installations using SCCM 2012 R2 (MDT). Clients are failing when the PE attempts to contact the SCCM server as the address is being specified as [CODE] instead of [CODE] . If I press F8 when PE gets the error I can see the SCCM server as [CODE] so I know it's available via this path. How ...
There isn't a way to change this setting in the task sequence or on the fly in PE. When PE is created it will look to see how the MP/SCCM server is publishing its name to AD. What you could do is enter a static IP and give PE the DNS Suffix. Even if you're running DHCP you can boot to PE, hit F8, do an ipconfig /all, r...
2
0
1,308
2014-05-14T13:55:19.420
infrastructure
serverfault.com
3,347
Terraform: Delay the MySQL Provider
I have a Terraform project which uses the MySQL provider. Because of the way Terraform works, the MySQL provider will fail to load correctly because the AWS_RDS instance doesn't exist. Is there a way for me to delay or split my project so that the MySQL provider doesn't load during the main "apply"? I've examined works...
I think you could achieve something similar by first running Terraform against your RDS resources, and then running Terraform again on all resources. On your first pass, you can use [CODE] option to target only a subset of the resources. (ie. RDS resources). Be aware that using this option is not recommended in Terrafo...
5
1
746
2018-02-14T02:40:41.837
pipeline_ops
devops.stackexchange.com
746,894
Memory problems in a Wordpress Multisite Ubuntu Server
I have a server with 512MB RAM and 512MB swap file hosting a Wordpress multisite (8 websites). Not many visitors per day (about 50-100 per site per day). Right now, everything is working fine, and my memory is like this: [CODE] But about twice per day the sites are down and I cannot even ssh the server during several/m...
Your server is exhausting the memory you've allocated to it. You will need to either reduce memory usage (ditch apache for nginx, move MySQL to a different host, etc) or add more RAM to this server.
1
1
333
2016-01-05T16:54:20.997
database_errors
serverfault.com
355,840
Two local networks, but Windows Web Server 2008 chooses wrong connection for accessing the internet
We have some servers running Windows Web Server 2008. They have two network cards. One with a private IP of the 172.X address space and one with the 10.X address space. The one with the 10.X address space is deactivated. Both have their own switch and both are connected to a pfesense server. The network with the 172.X ...
You'll want to add a persistent route to the routing table for the default gateway of the 172. interface with a lower metric than the route that was added for the 10. interface. Example: [CODE] I would type the command [CODE] Source Re Edit 3: You need to make the metric lower, not equal. When your routing table has 2 ...
3
4
4,668
2012-02-01T15:45:07.357
infrastructure
serverfault.com
188,380
After inserting the character ñ in a table the character will be converted like ñ
when we are inserting the character ñ from application in a table the character will be converted like ñ. I have verified general log and binlog the charecter is showing correctly ñ but when reading from table the charecter looks like ñ. But when we are doing insert directly on table by logging in to DB the charecter...
Before answering your question about how to get ñ (and any other latin character) properly inserted via the application, let's take a step back and review what has happened so far. Id_name uses the Latin1_bin collation. When you login directly to the database and insert ñ, code point 241 from the Windows-1252 code page...
-1
1
5,970
2017-10-13T06:34:36.490
warehouse_errors
dba.stackexchange.com
74,863
Number of TempDB files if we can't use parallelism
Currently we have 4 cores and 4 tempdb files. I just came on as the DBA about 2 months ago and, for some reason, 3 of the tempDB files are 2GB and 1 is 1GB. Obviously, that is not best practice. Being the OCD and proactive person that I am, I want to resize that file to match up with the other 3. But wait, there's more...
Individual queries don't use parallelism? So what? If you have two completely different users running different queries at the same time, they too can make use of different tempdb files. Of course it doesn't help all that much if you have four tempdb files all on the same volume - the real gain is when you can spread i...
0
4
450
2014-08-25T15:51:17.620
database_errors
dba.stackexchange.com
414,661
Dell PowerConnect Console connection via Ethernet
When you buy a Dell PowerConnect (In my case it's a 5548) you are given a console cable that is serial to ethernet. Let's say you don't have a serial port on your laptop and but you still want to run the setup wizard via the terminal. Is there settings to connect to the console port using an ethernet cable to run that ...
Do yourself a favor and purchase a USB to serial adapter . You never know when you may need it in addition to connecting to your Dell switch.
0
6
13,846
2012-08-06T13:02:39.243
infrastructure
serverfault.com
1,023,301
init.d kills my mongod process due to respawning
I'm using Ansible to start the mongod service on a Centos 6.8 VM. The task is pretty straightforward: [CODE] However the service fails to start, and in [CODE] I see [CODE] In [CODE] I see that the process received a SIGTERM [CODE] But I don't know what is sending this to the process, presumably init? Now the really str...
Unless you already log in as the [CODE] user from Ansible you probably need to include the [CODE] option in the task for privilege escalation. [CODE]
0
0
143
2020-06-29T08:26:50.867
pipeline_ops
serverfault.com
106,567
Product attribute schema design, mixing solutions
I am working on a product database in MySQL and the products can be multiple types with different attributes. The number of attributes and there datatype vary. I read about some design patterns ( post ) used in this situation, but none of them looks promising. I am thinking about mixing them somehow. Lets say, I have t...
Put common things (price, SKU) in MySQL columns; index them if needed. Put the rest in a JSON column. Do not try to use [CODE] to search that. Instead, first filter on what you can from the other columns, then use your application language to finish the filtering. To save on space and bandwidth, compress (in the client...
3
2
1,017
2015-07-10T08:43:47.803
database_errors
dba.stackexchange.com
1,015,885
How to block direct access to backend when frontend has nginx reverse proxy
I have a frontend with an nginx reverse-proxy. Any get request made from it starting with the prefix "api" gets routed to the backend. However I've noticed that this also leads to direct calls to the backend being allowed. For example, if I click on a button in the frontend (located at "frotend-url") that makes a get r...
the solution I can give is to use iptables to limit access to the backend server directly, here is an example: [CODE] It make port 80 only can accessed for frontend IP.
0
0
1,164
2020-05-06T07:39:28.083
infrastructure
serverfault.com
869,096
LDAP multiple values attributes filter
Can't find same question, but I think it's regular issue. I have LDAP user: [CODE] I need to return mail attribute, but filtered by domain. For example if I search: [CODE] I get: [CODE] But I need something like: [CODE] I can't simply use | grep domain1.tld cause I use LDAP search in Postfix I really don't want to sepa...
A search term like this should help: [CODE] LDAP search terms get combined like this: [CODE] with [CODE] being [CODE] (AND), [CODE] (OR) and [CODE] (NOT).
3
4
15,447
2017-08-17T07:59:31.623
infrastructure
serverfault.com
206,327
"SHOW EVENTS" fails with "Error Code: 1545. Failed to open mysql.event"
I have a MariaDB 5.5.56 install (The default CentOS 7 package). The VM was running on a host that had some problems reaching its storage. This resulted in the OS remounting some filesystems read-only. The database is a replication slave and was rebuilt by importing a backup from the master. (After a reboot and [CODE] ,...
Firstly, get the [CODE] table working. (Consider it working if [CODE] works). Try these in this order (check after each step) [CODE] [CODE] [CODE] # Path is installation and configuration dependant. Repair options needed when it finds issues. DROPping and recreating mysql.event (get the statement with [CODE] on a worki...
3
1
3,854
2018-05-10T07:45:18.357
database_errors
dba.stackexchange.com
1,108,563
Spamhaus is blocking several customers since a couple of days?
I received a couple of complaints from customers that got their emails rejected. I haven't changed my config, so this must be an issue with spamhaus. I'm running Postfix with these settings for spamhaus: [CODE] Here are a couple of my logs where customers get blocked: [CODE] Anybody knows how I can fix this (without ex...
Your configuration is dangerously wrong. You must filter the DNS return codes , as instructed . Not every response from spamhaus indicates a listing, some indicate lookup errors (usually: querying via a shared open DNS server, thus exceeding lookup rates). Your configuration blocks clients on all results, including [CO...
1
6
2,667
2022-08-19T08:19:55.913
infrastructure
serverfault.com
891,020
Window Server Domain DNS
I have setup a Windows server, installed an Active Directory domain, but I am unable to add my other office computers to the domain due to this error: "An attempt to resolve the DNS name of domain controller in the domain being joined has failed. Please verify this client is configured to reach a DNS Server that can re...
All computers in an Active Directory domain must use domain controllers as their DNS servers, and only them. In your case, this means the server must use 192.168.2.8 (or 127.0.0.1) as ist DNS server, but not 66.28.0.61. All other computers must use 192.168.2.8, and only that .
0
1
3,125
2018-01-06T15:37:55.287
infrastructure
serverfault.com
24,822
Is there a workaround for using the Virtual Server 2005 Administration Website with Internet Explorer 8?
Since upgrading to Internet Explorer 8 I've been getting JavaScript errors when performing certain functions (like "Turn On") on the Virtual Server 2005 Enterprise R2 SP1 Administration Website: [CODE] Are there any workarounds to this problem other than using another browser?
I have found the solution to this problem in another question's answer but thought it was worth keeping my question up as, for the exact problem above, this question is easier to find. The Microsoft Virtual Server 2005 R2 web admin page needs to be displayed in "Compatibility View" mode in IE8 Source: Accessing Virtual...
2
7
2,719
2009-06-12T14:52:02.803
infrastructure
serverfault.com
70,317
Dual WAN port on a WRT54GL
Is it possible to reconfigure one of the LAN ports on a WRT54GL (running Tomato firmware) to act as a second WAN port? I have the following networks: PPOE connection to ADSL modem (works fine on the normal WAN port) WiFi neighbourhood network (in 178.X.X.X range), via a Mikrotik routerboard which I'd like to put on the...
You would need to re-flash the firmware with something like DD-WRT which can get you full access to the underlying Linux OS. From there you can configure the iptables, etc. to do whatever you wish on the different interfaces. You will need a firm understanding of Linux routing, this is not for the casual end-user. The ...
2
2
6,824
2009-10-01T10:19:38.597
infrastructure
serverfault.com
309,838
Apple Server - how to exclude a subdomain?
A client has an internal Apple Server setup in their office that manages their domain (let's say it is example.com). I have setup a subdomain of example.com (test.example.com) on Google Apps as I want to use email addresses under test.example.com for an app that I am building. The reasons for needing GMail aren't impor...
If the server's configured as authoritative for [CODE] , it's authoritative for everything under [CODE] , too - working as designed. Sounds like you're saying they have separate DNS records out on the internet that they want to be used for the [CODE] lookups? Then their internal server needs to have [CODE] record(s) de...
1
0
129
2011-09-09T10:25:28.393
infrastructure
serverfault.com
370,948
Best way to debug and edit third party library in java?
In javascript, python, golang or rust usually you have the third party source code available in your development environment such that you can edit it and debug it. I am a beginner in java. What is the best recommended work flow to debug third party library?
If you're using any kind of package management, instruct it to download the source jar along with the binary jars. Your IDE should then be able to use the downloaded source to debug the library. Using this method, you aren't really able to modify the library, but you shouldn't be doing that anyway.
-1
5
4,424
2018-05-15T00:23:42.903
api_errors
softwareengineering.stackexchange.com
55,828
Aria engine - changing block size
It's possible to change aria_block_size from default 8192 without recreating tables? I want try 1024 or 2048 but after change in my.cnf and restart mariadb I got this errors on aria tables: [CODE] My db have about 120Gb and many tables, so export/delete/import will cause many hours of outage and this is not possible.
I found solution: change engine from aria to myisam stop mysql, add aria_block_size = 1024 to my.cnf delete aria_log_control file in mysql directory start mysql convert myisam tables back to aria This process is safe for data, can be done without outage (only one fast mysql restart) and much faster then re-create table...
0
1
682
2013-12-30T18:32:56.867
database_errors
dba.stackexchange.com
508,670
Can I safely remove all disks of a synology NAS while its turned off?
I have a Synology 4-bay NAS (RS409RP+) with a RAID 5 installed on 4 hard disks. Now I need to upgrade the NAS to a bigger set of hard disks, and because these hard disks are 3TB each, I cannot use the normal RAID upgrade function. Of course I am going to make a backup and migrate the data over to the new disks, but I w...
This is the response from the Synology Support: [CODE] So it should be no problem, unfortunately I have not yet had a chance to try this myself.
3
2
18,987
2013-05-17T14:36:45.837
database_errors
serverfault.com
1,066,188
Is it possible to deploy an AllUsers VPN connection to Windows 10 via Group Policy
We currently deploy a per user VPN connection to our Windows 10 clients by running a login PowerShell script to add a user context VPN. We would like to deploy the same connection as an AllUsers connection, so it is available on the login screen before users sign in. Is it possible to do this via Group Policy only? Wil...
We have gone with an approach of: Create the VPN as we need it Copy the [CODE] from [CODE] Use Group Policy Preferences to copy this file from a central location to the same folder on target computers. This works perfectly in our scenario, but the only thing to bear in mind, is that this will overwrite any existing sys...
0
1
1,185
2021-06-09T15:25:32.480
infrastructure
serverfault.com
376,165
puppet - missing openjdk-6-jdk
I am trying to run a script with puppet. I have absolutely no idea about how puppet works When I run the following command: facter_user=nbui facter_group=staff puppet apply --node_name_value=mac_local --modulepath=/foobar/sysops/aws/puppet/modules /foobar/sysops/aws/puppet/manifests/nodes.pp I get the following error: ...
Disclaimer: I am one of the developers of Puppet. So, the error is that the specific package named "openjdk-6-jdk" can't be installed on your machine, and isn't already there. Given that you are on a Mac, as indicated, that isn't a great surprise - you wouldn't use that package anyhow. So, the manifest - the Puppet cod...
0
1
402
2012-04-03T05:41:30.307
pipeline_ops
serverfault.com
34,167
What is fault bucket and should I care?
As part of our regular preventative maintenance, we check the event logs on the workstations in our network for serious issues (e.g. diskperf errors). Some workstations commonly have a critical error where the explanation is "Fault bucket" followed by some number. Can anybody explain what this means? Does it really poi...
A fault bucket identification number is a number assigned by the system to identify specific types of errors. This number is used by Microsoft to identify a particular program error when you send an error report. If you get a "this program has encountered a problem and needs to close" type error, click the 'Send error ...
5
6
25,439
2009-06-30T23:26:40.557
infrastructure
serverfault.com
334,612
MongoDB upgrade on Ubuntu causing "Low Disk Space" error message
I am trying to upgrade MongoDB from version 1.6.5 to version 2.0.1 on an Ubuntu machine. I have tried many ways of updating, including replacing the binaries with the more recent ones, to adding mongodb-10gen to my sources list and installing from apt-get. However, each time I start mongodb after the upgrade I get a me...
Are you running a 64-bit system? Journaling is automatically enabled on 64-bit systems as of Mongo 1.9.2, and this can take up quite a bit of space. You can safely disable journaling and clear out the old journal files (which can be quite big). To disable from config file, you will need to COMMENT OUT or DELETE the lin...
2
3
1,500
2011-11-24T21:42:40.373
database_errors
serverfault.com
867,511
PHP FastCGI - How PHPRC works
I have a weird situation here in my configuration of Apache. I have decided to use FastCGI and multiple versions of PHP. Below are my configuration files. If I check [CODE] I can see that on domain [CODE] it is loading [CODE] from folder [CODE] . This is OK. What I don't understand, why on domain [CODE] it is loading [...
I'm so ashamed :( Please, check your paths twice (or more times), problem is always there. If you check it, I had path to php-cgi.exe [CODE] but to PHPRC it is [CODE] . And this is only reason. And correct php.ini was loaded, because it is default behaviour. Here is order of places, where PHP is searching for php.ini f...
0
0
2,161
2017-08-08T13:46:53.497
infrastructure
serverfault.com
289,423
When to use Prototypes & the correct usage of Prototypes ( Javascript )
I have been programming in Javascript for a while and I am quite comfortable with it. And I know the basic concept of prototypes and I have also used them a few times. But one thing I can't figure out is that when should a prototype be used. And what is the correct usage of prototypes. For example: Currently I am creat...
The correct usage of prototypes in JavaScript depends on what you want to achieve. The understanding of what a prototype is and why it exists is a very good question. Prototype exists in JavaScript, because objects do not have classical inheritance based on a Class, like in traditional languages. In JavaScript, objects...
4
1
2,282
2015-07-11T13:38:14.750
database_errors
softwareengineering.stackexchange.com
539,099
three-way handshake & sequence number
Looking at the image below, taken from the book of Ilya Grigorik - High Performance Browser Networking, I can understand that the SYN packet picks a random sequence number which is incremented in SYN ACK packet (N+1). Finally, in the ACK packet both sequence (N+1) and acknowledge (N+1) numbers are incremented. When tes...
RFC 793 states repeatedly that the acknowledgement number is the sequence number of the next packet that end expects to receive . Thus it will always be higher than the sequence number. For instance, in section 2.6: Segments also carry an acknowledgment number which is the sequence number of the next expected data octe...
3
5
1,395
2013-09-15T21:02:55.063
infrastructure
serverfault.com
234,967
Speeds of << >> multiplication and division
You can use [CODE] to multiply and [CODE] to divide numbers in python when I time them I find using the binary shift way of doing it is 10x faster than dividing or multiplying the regular way. Why is using [CODE] and [CODE] a lot faster than [CODE] and [CODE] ? What are the behind the scene processes going on to make [...
Lets look at two little C programs that do a bit shift and a divide. [CODE] [CODE] These are then each compiled with [CODE] to see what the actual assembly will be. With the bit shift version, from the call to [CODE] to return: [CODE] While the divide version: [CODE] Just by looking at this there are several more instr...
13
21
41,071
2014-04-05T23:03:42.193
api_errors
softwareengineering.stackexchange.com
376,341
network latency, TCP and UDP packets
Hello recently my network has started to cause me lots of problems. I have a cable modem, connected to a tp-link router (with some port forwarding). Everything was working fine then i started to get lots of udp (port 53) "UNREPLIED" logs in the router. Now there are tcp UNREPLIED logs too. This is causing lots of laten...
In my opinion, all your symptoms looks like hijack. Generally, your adsl router would send all dns request to your ISP Dns, not directly to target. From your screenshot, the one i tried do not looks like true dns server. Same for the http one i tried, no webserver. If it's windows based, do a spybot scan, and housecall...
0
0
1,015
2012-04-03T15:45:17.433
spark_errors
serverfault.com
483,465
Import of PEM certificate chain and key to Java Keystore
There are plenty of resources out there about this topic, but none I found which covers this slightly special case. I have 4 files; privatekey.pem certificate.pem intermediate_rapidssl.pem ca_geotrust_global.pem And I wish to import them into a fresh keystore. Some site suggest to use DER-format, and import them one by...
This may not be perfect, but I had some notes on my use of [CODE] that I've modified for your scenario. Import a root or intermediate CA certificate to an existing Java keystore: [CODE] Combine the certificate and private key into one file before importing. [CODE] This should result in a file resembling the below forma...
37
31
210,340
2013-02-28T16:17:40.447
infrastructure
serverfault.com
845,739
nginx: multiple websites on one server
Ive got three websites I wish to have served from one server. The server is an Ubuntu droplet on digitalocean, the websites are in my home directory in [CODE] [CODE] and [CODE] . I have nginx with stock [CODE] . I have three files in [CODE] ( [CODE] [CODE] & [CODE] ) In each file they have the following structure accor...
The solution to this was not on the setup of the server itself, but was actually two things, they are: On the godaddy interface to add custom name servers pointing to ns1.digitalocean.com, ns2.digitalocean.com and ns3.digitalocean.com godaddy_screenshot On the digitalocean interface, under the networking tab add domain...
2
0
5,163
2017-04-21T12:11:42.457
infrastructure
serverfault.com
931,562
Dovecot Sieve and :output variable for execute adding invalid character
I'm trying to get blow Sieve filter to work [CODE] Where [CODE] is an extprogram which calls API and verify user based on email address then returns boolean (as an output to the console). Everything works fine when I will remove [CODE] statement other way it looks like is not recognizing [CODE] variable. When I pipe [C...
In that case "True" is followed by a newline, which Sieve happily reads and includes in the variable value. To have it fixed [CODE] script must to output it without a new line.
0
0
393
2018-09-18T19:39:02.780
infrastructure
serverfault.com
157,714
Is there a way to construct a PIVOT's IN clause using a SELECT?
I want to build a [CODE] table, but I may have to use dynamic SQL unless the [CODE] clause can be constructed in regular SQL. I want to do something like this: [CODE] So when I [CODE] unique [CODE] s from [CODE] and prefix [CODE] , that gives me a table whose row values equal the names of the columns I want. This is in...
The T-SQL documentation of the FROM clause has this for the specification: [CODE] [CODE] [CODE] So no, it doesn't allow you to select the column names with a SELECT statement, and yes, you have to "hard-code" the [CODE] column names.
1
1
870
2016-12-09T18:49:56.170
warehouse_errors
dba.stackexchange.com
212,863
Even out disk i/o
We noticed that when a few of our Microsoft SQL server jobs run disk I/O goes from a background of 1-5 disk queue length to 100-700 disk queue length. The thing is the jobs only run for 1-2 minutes so its a huge spike in I/O. We'd much rather have the job run for 10-15 or even 30 minutes and reduce the impact of I/O on...
"these jobs are quite simple - they're deleting old records so there's not much to optimize short of running them more slowly." [CODE] tune value 5000 and '00:00:01' depend your hardware
0
1
115
2018-07-21T15:30:05.967
database_errors
dba.stackexchange.com
365,289
Can you detect partition misalignment from a VM?
First of all the back story - All of a sudden (literally overnight) an instance starts throwing CPU utilization alerts. This is a rather lowly VM (1 vCPU, 2GB RAM) but all it does is very low NFS serving and Cacti polling and serving for a handful of systems. This VM is hosted at an IaaS provider on vSphere 4.x and sit...
The only way to see alignment issues is to measure the master boot record. If you can do that from your VM, you can see whether you're misaligned. That said, alignment problems magnify the number of IOs you do to the storage, but there would have to be some limitation in place to prevent you from doing this increased n...
2
1
921
2012-03-01T13:34:02.280
database_errors
serverfault.com