Friday, August 19, 2016

SOLVED: FreeBSD + pip + virtualenv = file not found

We love python virtual environments, but under FreeBSD we occasionally see issues where pip is not correctly using the /usr/local/include and /usr/local/lib paths to compile installable modules. The Problem This can produce errors such as the below, which we saw when doing a ‘pip install pycrypto’ operation: src/_fastmath.c:36:11: fatal error: ‘gmp.h’ file not found Even… Read more »

Friday, July 22, 2016

NginX “service nginx upgrade” / kill SIGUSR2 results in shutdown() failed (54: Connection reset by peer)

Huge thanks to Ganbold Tsagaankhuu who finally got to the bottom of this issue. NginX is a great web server, and is built from the ground up for high volume, zero down time environments. One of the most basic features of such a service is the ability to restart completely (not just child processes, which… Read more »

Friday, April 8, 2016

FreeBSD Hangs on “Trying to mount root from zfs:zroot”

There are many reasons this can happen, but this one I believe is unique in terms of searching the internet for the error. We’d see a newly imaged (or restored from backup) ZFS-based server boot fine then hang here: Trying to mount root from zfs:zroot After banging my head into it for some time thinking… Read more »

Sunday, January 10, 2016

Poudriere “Error: Invalid port origin ‘/usr/local/sbin/pkg’ not found”

This was quite the random error I ran across this week and could not find anything similar or a solution. After years of faithfully building our FreeBSD pkg repository poudriere started reporting these weird errors and refused to build anything: ====>> Error: Invalid port origin ‘/usr/local/sbin/apxs’ not found. ====>> Error: Invalid port origin ‘/usr/local/sbin/pkg’ not… Read more »

Wednesday, December 23, 2015

Logentries ( Under FreeBSD

Logentries is a SaaS service which lets you stream logs (and lots of other things) from multiple locations and servers for review and processing on their platform. They provide out-of-the-box installers and packages for a number of Linux and UNIX operating systems but don’t directly support FreeBSD (yet). However their agent consists of a few… Read more »

Monday, September 21, 2015

MySQL RBR (Row Based Replication) /w GTID halts with Error_code: 1032; handler error HA_ERR_END_OF_FILE

I want to start off by saying that there are a lot of causes for the error in the title of this article, most of which are easy to fix conditions centering around misconfiguration. However none of them applied to our situation here. After weeks/months of troubleshooting and isolating on a customer’s (unfortunately production) servers… Read more »

Thursday, September 3, 2015

FreeBSD Hardware RAID vs. GMIRROR vs. ZFS

The ultimate storage shootout! With years of building and testing servers in various configurations we have always suspected hardware RAID was not all that it’s cracked up to be. FreeBSD’s GMIRROR and ZFS are great, but up until now it’s been a gut feeling combined with anecdotal evidence. Today, we change that. The Test Setup… Read more »

Tuesday, July 28, 2015

NginX Add Trailing Slash With 301 Redirect Without If Statements

We had a situation where a client using Joomla wanted to have trailing slashes added to URLs, not just processed behind the scenes as the ‘correct’ URL but 301ed to the resulting URL with the trailing slash. This makes sense from a SEO standpoint as you don’t want two URLs with the same content. Joomla… Read more »

A-Team Systems