Hey Robert,
It seems to be a real mish-mash of errors for me to be honest.
I’m running Docker on a Ubuntu box but I can’t imagine that would result in any material difference given this is all containerised anyway?
It’s been a while since I’ve played around with this again but I did a fresh git clone and docker-compose up just now but got as far as this:
OperationalError at /
could not translate host name "postgres" to address: No address associated with hostname
Request Method: GET
Request URL: http://192.168.1.170:8000/
Django Version: 1.5.12
Exception Type: OperationalError
Exception Value: could not translate host name "postgres" to address: No address associated with hostname
Exception Location: /usr/local/lib/python2.7/site-packages/psycopg2/__init__.py in connect, line 164
Python Executable: /usr/local/bin/python
Python Version: 2.7.15
Python Path:
['/opt/newsblur',
'/usr/local/bin',
'/opt/newsblur',
'/usr/local/lib/python27.zip',
'/usr/local/lib/python2.7',
'/usr/local/lib/python2.7/plat-linux2',
'/usr/local/lib/python2.7/lib-tk',
'/usr/local/lib/python2.7/lib-old',
'/usr/local/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/site-packages',
'/opt/newsblur/utils',
'/opt/newsblur/vendor',
'/srv/newsblur']
Server time: Sun, 23 Dec 2018 18:59:37 +0000
Assuming you did a clone of the latest master, it’s rather odd that we get two very different (broken) outcomes
So why the error? Turns out the postgres container is down. Looking at the logs for the postgres container reveals the following:
postgres_1 | REVOKE
postgres_1 | ERROR: role "postgres" does not exist
postgres_1 | STATEMENT: REVOKE ALL ON SCHEMA public FROM postgres;
postgres_1 | ERROR: role "postgres" does not exist
newsblur_postgres_1 exited with code 3
That would explain why I’m getting errors about unresolved hostnames.
I suspect the reason for this is that the database dump that it’s trying to import is either outdated/incorrect, hence postgres falls over.
But again, this doesn’t explain why we’ve got such different errors! It seems that you’ve had more luck on the postgres front than I have?