Fork this blog on GitHub Fork this blog on GitHub

Archives 2013

DatabaseError: permission denied errors on Heroku

DatabaseError: permission denied errors on Heroku

If you are seeing this error while investigating Heroku logs, it might be because your write permissions have been taken away!

Whoops! How do I know that? This blog was down for a couple of days because I had exceeded the maximum number of Postgres database rows on my Heroku free account. Conveniently, Heroku now makes it easy to directly interact with Postgres data via psql.

I fixed the issue and waited 24 hours, but I was still receiving HTML 500 errors. This time the errors were limited to my django admin login page. Upon inspection of the traceback, it ...

Continue reading

How to Restore an Append-Only Redis Master With a dump.rdb

How to Restore an Append-Only Redis Master With a dump.rdb

Follow these steps to restore a dump.rdb into a Redis master that is running in append-only mode. For some reason this is not documented very well. The master in this case had an issue and was unable to write to disk. I was able to get the dump.rdb from a slave.

Step 1 - Obtain a dump.rdb & check the size for later comparison

redis-cli -p $PORT save
redis-cli -p $PORT dbsize

Step 2 - Stop the master & all slaves

/etc/init.d/redis stop

Step 3 - Update the Redis working directory

Remove any old dump.rdb files and any ...

Continue reading

Beer of the day: Volume 01 - What is your beer/time quotient?

Beer of the day: Volume 01 - What is your beer/time quotient?

Do you know how much beer you are drinking over the course of a year? Wanna know? Keg homebrew & count! It's easy. Start here.

Step 01 - Buy some stuff.

Yep, you gotta spend some money to get into this hobby. But, ya know what? It is totally worth it. And you can start small, so just buy the 160 dollar kit at the local homebrewden and get started.

Step 02 - Follow their directions.

I'm not going to explain how to brew beer, that'd be silly! There are tons of great resources out there and when you know ...

Continue reading

Monthly archives