Advertisement
Guest User

Docker compose exited

a guest
Jan 22nd, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. return func(*args, **kwargs)
  8.  
  9. File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 260, in cursor
  10.  
  11. return self._cursor()
  12.  
  13. File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 236, in _cursor
  14.  
  15. self.ensure_connection()
  16.  
  17. File "/usr/local/lib/python3.8/site-packages/django/utils/asyncio.py", line 26, in inner
  18.  
  19. File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
  20.  
  21. self.connect()
  22.  
  23. File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
  24.  
  25. raise dj_exc_value.with_traceback(traceback) from exc_value
  26.  
  27. File "/usr/local/lib/python3.8/site-packages/django/db/backends/base/base.py", line 197, in connect
  28.  
  29. self.connection = self.get_new_connection(conn_params)
  30.  
  31. File "/usr/local/lib/python3.8/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
  32.  
  33. connection = Database.connect(**conn_params)
  34.  
  35. File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 126, in connect
  36.  
  37. conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  38.  
  39. django.db.utils.OperationalError: could not connect to server: Connection refused
  40.  
  41. Is the server running on host "db" (172.19.0.2) and accepting
  42.  
  43. TCP/IP connections on port 5432?
  44.  
  45.  
  46. Traceback (most recent call last):
  47.  
  48. psycopg2.OperationalError: could not connect to server: Connection refused
  49.  
  50. Is the server running on host "db" (172.19.0.3) and accepting
  51.  
  52. The above exception was the direct cause of the following exception:
  53.  
  54. File "/app/server/manage.py", line 15, in <module>
  55.  
  56. execute_from_command_line(sys.argv)
  57.  
  58. File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
  59.  
  60. utility.execute()
  61.  
  62. File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
  63.  
  64. self.fetch_command(subcommand).run_from_argv(self.argv)
  65.  
  66. File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
  67.  
  68. self.execute(*args, **cmd_options)
  69.  
  70. File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
  71.  
  72. output = self.handle(*args, **options)
  73.  
  74. File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 83, in wrapped
  75.  
  76. res = handle_func(*args, **kwargs)
  77.  
  78. File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 86, in handle
  79.  
  80. executor = MigrationExecutor(connection, self.migration_progress_callback)
  81.  
  82. File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in __init__
  83.  
  84. self.loader = MigrationLoader(self.connection)
  85.  
  86. File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 49, in __init__
  87.  
  88. self.build_graph()
  89.  
  90. File "/usr/local/lib/python3.8/site-packages/django/db/migrations/loader.py", line 212, in build_graph
  91.  
  92. self.applied_migrations = recorder.applied_migrations()
  93.  
  94. File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 76, in applied_migrations
  95.  
  96. if self.has_table():
  97.  
  98. File "/usr/local/lib/python3.8/site-packages/django/db/migrations/recorder.py", line 56, in has_table
  99.  
  100. return self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement