Author name: Dan Langille

I've been playing with computers since I read an Elementary Electronics magazine way back in the 1970s. I started contributing to open source projects in 1998. After that, I gradually moved from being a software developer to being a systems administrator.

InnoDB: Error: log file ./ib_logfile0 is of different size 0 50331648 bytes

This blog is powered by WordPress. When I first start blogging, few had heard the term blog. I hadn’t. I recall being asked, why don’t you use blogging software for The FreeBSD Diary. The answer was simple: it didn’t exist when I started. I am making headway on converting the diary to WordPress, and that might happen before the end of the year. Today, this blog got its very own FreeBSD jail. There […]

InnoDB: Error: log file ./ib_logfile0 is of different size 0 50331648 bytes Read More »

Postfix SMTP server: errors – TLS not available due to local problem

Postfix has been trying to tell me something: your configuration is wrong. Most cleverly, Postfix has been emailing me about this. The first email came on 22 Oct 2014. I ignored it. The second email arrived five days later on 27 October 2014: I recall looking around, but I didn’t do anything. I think I found an error in the logs but didn’t have time to fix it. A few days ago, another

Postfix SMTP server: errors – TLS not available due to local problem Read More »

Wireless Diagnostics on OSX – check your wifi

I wanted to know how many wireless access points (WAPs) were using what channels near my place. I googled and found a reference to the built-in OSX tool, Wireless Diagnostics. But to be fair, the app is hidden. To access the app, hold the Command key while clicking on the WIFI icon. This will change what usually appears: Now click on Wireless Diagnostics. The following should appear. This is the boring part. Not

Wireless Diagnostics on OSX – check your wifi Read More »

Getting openconnect & tuntap working on Yosemite OSX

I upgraded to Yosmite today. It was not without pain. I use openconnect, which in turn, uses tuntap. After upgrading, my connection attempts resulted in: Failed to open tun device: No such file or directory Set up tun device failed I was also seeing this in /var/log/system.log: Oct 28 15:39:39 snorty.example.org com.apple.kextd[19]: ERROR: invalid signature for foo.tap, will not load Oct 28 15:39:40 snorty.example.org com.apple.kextd[19]: ERROR: invalid signature for foo.tun, will not load

Getting openconnect & tuntap working on Yosemite OSX Read More »

Getting snmpwalk to talk to snmpd on FreeBSD

NOTE: If you are looking to configure net-mgmt/net-snmp for the first time, the latest article is Configuration of net-mgmt/net-snmp on FreeBSD. Contrary to all the examples I found, it’s not easy to get snmpwalk to communicate with snmpd. I am using the net-mgmt/net-snmp port with the default configuration options. It was installed with: pkg install net-mgmt/net-snmp This is the minimal configuration file, which should be placed at /usr/local/etc/snmp/snmpd.conf: rocommunity public When starting snmpd

Getting snmpwalk to talk to snmpd on FreeBSD Read More »

Bacula restore using a regex

Short version: I used this regex when restoring to a jail on the slocum server: !/\.zfs/snapshot/snapshot-for-backup/!/! Background Today I did this when setting up an ssh-key on a new host: ssh-add -L > ~/.ssh/authorized_keys Oh. That should have been >>. Restoring During the Bacula restore, I need to change this path: /usr/jails/mydev/.zfs/snapshot/snapshot-for-backup/usr/home/dan/.ssh/ to /usr/jails/mydev/usr/home/dan/.ssh/ That is, I need to remove this from the path: .zfs/snapshot/snapshot-for-backup For background on this backup strategy using jails,

Bacula restore using a regex Read More »

rndc: neither /usr/local/etc/rndc.conf nor /usr/local/etc/rndc.key was found

In this post, I’m using bind98-9.8.8 from ports on FreeBSD 9.3, in case that helps you. Today, I was adjusting the pgcon.org domain as part of the move from the old server to the new server. This move would also see the website updated to PGCon 2015 and the use of Ansible for configuring that new server. Reloading named When I restarted named, this error appeared: $ sudo service named reload rndc: neither

rndc: neither /usr/local/etc/rndc.conf nor /usr/local/etc/rndc.key was found Read More »

gelt

For future reference. This server formed the backbone of just about everything I did. It hosted about 13 domains. Sadly, it was i386 and would not do for ZFS. Copyright (c) 1992-2014 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.3-RELEASE-p2 #0: Mon Sep 15 16:23:12

gelt Read More »

When ssh and ansible play poorly together

Last night, this worked fine. This morning, it fails: # ansible-playbook jail-mailjail.yml PLAY [mailjails] ************************************************************** GATHERING FACTS *************************************************************** failed: [mailjail.example.org] => {“failed”: true, “parsed”: false} invalid output was: Sorry, try again. Sorry, try again. Sorry, try again. sudo: 3 incorrect password attempts TASK: [pkg | install pkg] ***************************************************** FATAL: no hosts matched or all hosts have already failed — aborting PLAY RECAP ******************************************************************** to retry, use: –limit @/root/jail-mailjail.retry mailjail.example.org : ok=0 changed=0 unreachable=0

When ssh and ansible play poorly together Read More »

Cunning plan for upgrading jails

After a lengthy Twitter discussion this afternoon, and a post to the forums, I decided to alter my ezjail basejail. The issue: when you update the basejail, /etc/rc.d and /etc/periodic do not get updated. This is by design. I wanted those directories to get updated. So I have changed the basejail. I will outline first, and go into more detail after I have changed all the jails On the jail host: NOTE: I

Cunning plan for upgrading jails Read More »

Scroll to Top