"cannot write to log file pg_upgrade_internal.log" when upgrading from Postgresql 9.1 to 9.3
Make sure that you run this command from a directory that is writable by the postgres
user, like /tmp
or /var/lib/postgresql
:
$ cd /tmp$ usr/lib/postgresql/9.3/bin/pg_upgrade ...