Open Source

nrpe: Could not read request from client, bailing out…

I recently upgraded a jail server from FreeBSD 8.2 to 8.4, and part of that process involved recompiling all of the applications. Along the way, nrpe on one jail stopped working. Nagios was reporting: CHECK_NRPE: Socket timeout after 10 seconds. Trying from the command line gave: $ /usr/local/libexec/nagios/check_nrpe2 -H -H dbclone.example.org -c check_pgsql -t 1 CHECK_NRPE: Socket timeout after 1 seconds. Other jails worked just fine: $ /usr/local/libexec/nagios/check_nrpe2 -H building.unixathome.org -c check_pgsql -t […]

nrpe: Could not read request from client, bailing out… Read More »

discard frame w/o leading ethernet header

The other day, I disconnected the ethernet cable from my gateway to reroute the cable. Then, perhaps coincidentally, I started seeing these entries: Jul 2 15:19:57 bast kernel: fxp0: discard frame w/o leading ethernet header (len 4294967294 pkt len 4294967294) Jul 2 15:28:01 bast kernel: fxp0: discard frame w/o leading ethernet header (len 4294967294 pkt len 4294967294) Jul 2 15:28:02 bast kernel: fxp0: discard frame w/o leading ethernet header (len 4294967294 pkt len

discard frame w/o leading ethernet header Read More »

viewvc errors after upgrading subversion

After upgrading subversion on my svn server, I started seeing this errors from viewvc: An Exception Has Occurred Python Traceback Traceback (most recent call last): File “/usr/local/viewvc/lib/viewvc.py”, line 4827, in main request.run_viewvc() File “/usr/local/viewvc/lib/viewvc.py”, line 251, in run_viewvc self.rootpath = vclib.svn.canonicalize_rootpath(rootpath) File “/usr/local/viewvc/lib/vclib/svn/__init__.py”, line 39, in canonicalize_rootpath rootpath = _canonicalize_path(rootpath) File “/usr/local/viewvc/lib/vclib/svn/__init__.py”, line 23, in _canonicalize_path import svn.core File “/usr/local/lib/python2.7/site-packages/svn/core.py”, line 26, in from libsvn.core import * File “/usr/local/lib/python2.7/site-packages/libsvn/core.py”, line 26, in _core

viewvc errors after upgrading subversion Read More »

pg_restore: [custom archiver] could not read from input file: end of file

I’ve been a fan of PostgreSQL since 2000 when I switched to it from MySQL. I wanted stored procedures and functions. I got that with PostgreSQL. I was used to having such features from my years working with other big databases such as DB2, Oracle, and Sybase. I’ve been moving towards using the custom format of pg_dump. In conjunction with that, I’ve been using pg_restore for testing those dumps. As part of my

pg_restore: [custom archiver] could not read from input file: end of file Read More »

Authentication tried for dan with correct key but not from a permitted host

I kept seeing these messages: Jun 12 04:09:18 nyi sshd[94523]: Authentication tried for dan with correct key but not from a permitted host (host=dbclone.example.org, ip=10.6.0.9). Jun 12 04:09:18 nyi sshd[94523]: Authentication tried for dan with correct key but not from a permitted host (host=dbclone.example.org, ip=10.6.0.9). I’ve been seeing them for a long time. How long? Three years. I didn’t think it was that long. But back in July 2010 I mentioned it. After

Authentication tried for dan with correct key but not from a permitted host Read More »

sshd: error: key_read: uudecode failed

I started seeing this error: Jun 10 19:12:38 nyi sshd[92208]: error: key_read: uudecode AAAAB3NzaC1yc2EAAAABJQAAAIBdX/USEtxnO91Vpujney8gwkq2sRrcU9R6nKAoGv1eNMWrMD9a93kZMjR4fFMAH87g+zyHBftxCsyE0wJX2A0UFgIQsiuOOINkTJMyk\n failed I couldn’t figure it out. Then I searched ~/.ssh/authorized_keys for that string. I found it in there. But the line was incomplete. It looked like I’d deleted the last part of the line. It should end with something like this: … onsnJNGeljjf9i8U3aorbSZj3jiEuTYMoTi9XK2dvGh5bbEQggw47jQg= dan@bigtimes.example.org Solution: I deleted that line. Then I copy/pasted the public key back into the file

sshd: error: key_read: uudecode failed Read More »

Converting from cvs to svn

I started playing with cvs2svn, a tool for migrating a CVS repository to Subversion. cvs2svn does more than just Subversion. It also handles git and Bazaar. Why am I moving from cvs? I couldn’t get my existing cvsupd server to run on a new server. Attempts to start cvsupd gave: $ sudo /usr/local/etc/rc.d/cvsupd onestart Starting cvsupd. 2013.06.10 15:35:22 UTC [35995]: CVSup server started 2013.06.10 15:35:22 UTC [35995]: Software version: SNAP_16_1h 2013.06.10 15:35:22 UTC

Converting from cvs to svn Read More »

Using compression with PostgreSQL’s pg_dump

I attended a few of the talks at PGCon 2013 last month. One talk, for which I took several notes and made a few choice tweets. The main one I’m following up on is using the -Fc option on pg_dump. It was during Magnus Haganders’ talk on PostgreSQL Backup Strategies that I posted that tweet. In the two weeks since that talk, I managed to do some testing. Let’s have a look at

Using compression with PostgreSQL’s pg_dump Read More »

Bacula – AfterJob: Host key verification failed

I’ve been moving services from one server to another. Manually. My Bacula server is now running in a FreeBSD jail. I just got ready to copy backups from disk to tape. But one aspect was failing: updating my statistics. After each tape job, I collect statistics on that tape, with respect to tape errors. That is done via SSH. The job error was: 05-Jun 13:52 bacula-dir JobId 132208: shell command: run AfterJob “/home/dan/bin/dlt-stats-kraken”

Bacula – AfterJob: Host key verification failed Read More »

nagios – check_ping CRITICAL – You need more args!!! Could not open pipe:

I’ve been moving some services around lately. A server is dying and I need to move stuff off it. Today I managed to move Bacula and Nagios onto a new server. After a short bit of struggle, I had just one service check that was failing: check_ping. Here’s the example: $ /usr/local/libexec/nagios/check_ping -H bast.example.org -w 3000.0,80% -c 5000.0,100% -p 1 CRITICAL – You need more args!!! Could not open pipe: Google searches did

nagios – check_ping CRITICAL – You need more args!!! Could not open pipe: Read More »

Scroll to Top