Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Recreating whatsfreshapi_postgis_1...
- Recreating whatsfreshapi_web_1...
- Attaching to whatsfreshapi_postgis_1, whatsfreshapi_web_1
- web_1 | Traceback (most recent call last):
- web_1 | File "manage.py", line 10, in <module>
- web_1 | execute_from_command_line(sys.argv)
- web_1 | File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
- web_1 | utility.execute()
- web_1 | File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute
- web_1 | django.setup()
- web_1 | File "/usr/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
- web_1 | apps.populate(settings.INSTALLED_APPS)
- web_1 | File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
- web_1 | app_config.import_models(all_models)
- web_1 | File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
- web_1 | self.models_module = import_module(models_module_name)
- web_1 | File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
- web_1 | __import__(name)
- web_1 | File "/usr/lib/python2.7/site-packages/django/contrib/auth/models.py", line 40, in <module>
- web_1 | class Permission(models.Model):
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 124, in __new__
- web_1 | new_class.add_to_class('_meta', Options(meta, **kwargs))
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 299, in add_to_class
- web_1 | value.contribute_to_class(cls, name)
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/models/options.py", line 166, in contribute_to_class
- web_1 | self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/__init__.py", line 40, in __getattr__
- web_1 | return getattr(connections[DEFAULT_DB_ALIAS], item)
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/utils.py", line 243, in __getitem__
- web_1 | conn = backend.DatabaseWrapper(db, alias)
- web_1 | File "/usr/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/base.py", line 14, in __init__
- web_1 | self.ops = PostGISOperations(self)
- web_1 | File "/usr/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py", line 166, in __init__
- web_1 | if self.spatial_version < (1, 3, 4):
- web_1 | File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 55, in __get__
- web_1 | res = instance.__dict__[self.func.__name__] = self.func(instance)
- web_1 | File "/usr/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py", line 260, in spatial_version
- web_1 | vtup = self.postgis_version_tuple()
- web_1 | File "/usr/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py", line 434, in postgis_version_tuple
- web_1 | version = self.postgis_lib_version()
- web_1 | File "/usr/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py", line 414, in postgis_lib_version
- web_1 | return self._get_postgis_func('postgis_lib_version')
- web_1 | File "/usr/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py", line 404, in _get_postgis_func
- web_1 | with self.connection.temporary_connection() as cursor:
- web_1 | File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
- web_1 | return self.gen.next()
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 543, in temporary_connection
- web_1 | cursor = self.cursor()
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 165, in cursor
- web_1 | cursor = self.make_debug_cursor(self._cursor())
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 138, in _cursor
- web_1 | self.ensure_connection()
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 133, in ensure_connection
- web_1 | self.connect()
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
- web_1 | six.reraise(dj_exc_type, dj_exc_value, traceback)
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 133, in ensure_connection
- web_1 | self.connect()
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 122, in connect
- web_1 | self.connection = self.get_new_connection(conn_params)
- web_1 | File "/usr/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 134, in get_new_connection
- web_1 | return Database.connect(**conn_params)
- web_1 | File "/usr/lib64/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect
- web_1 | conn = _connect(dsn, connection_factory=connection_factory, async=async)
- web_1 | django.db.utils.OperationalError: could not connect to server: Connection refused
- web_1 | Is the server running on host "postgis" (172.17.0.24) and accepting
- web_1 | TCP/IP connections on port 5432?
- web_1 |
- whatsfreshapi_web_1 exited with code 1
- Gracefully stopping... (press Ctrl+C again to force)
- Stopping whatsfreshapi_postgis_1...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement