Created
December 23, 2012 18:39
-
-
Save natea/4365146 to your computer and use it in GitHub Desktop.
psycopg2.OperationalError: could not connect to server: No such file or directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dotcloud deploy --application mediathread9 latest | |
==> Submitting a deployment request for revision latest of application mediathread9 | |
==> Deployment of revision rsync-1356287081260 scheduled for mediathread9 | |
- 2012-12-23 (mediathread9 deployment, deploy_id=efb24b35-55be-4933-89f6-eb0af54516a9) | |
12:30:44: --> Deployment scheduled for application (mediathread9) at revision rsync-1356287081260 | |
12:31:15: [www.0] Running postinstall script... | |
12:31:17: [www.0] + python createdb.py | |
12:31:18: [www.0] create_dbs start | |
12:31:18: [www.0] create_dbs: let's go. | |
12:31:18: [www.0] create_dbs: got settings. | |
12:31:18: [www.0] creating database mediathread9 on mediathread9-natea.azva.dotcloud.net | |
12:31:18: [www.0] database "mediathread9" already exists | |
12:31:18: [www.0] | |
12:31:18: [www.0] moving right along... | |
12:31:18: [www.0] + mkdir -p /home/dotcloud/data/media /home/dotcloud/volatile/static | |
12:31:18: [www.0] + python mediathread/manage.py syncdb --noinput | |
12:31:19: [www.0] Syncing... | |
12:31:19: [www.0] Traceback (most recent call last): | |
12:31:19: [www.0] File "mediathread/manage.py", line 14, in <module> | |
12:31:19: [www.0] execute_manager(settings_appsembler) | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager | |
12:31:19: [www.0] utility.execute() | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute | |
12:31:19: [www.0] self.fetch_command(subcommand).run_from_argv(self.argv) | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv | |
12:31:19: [www.0] self.execute(*args, **options.__dict__) | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute | |
12:31:19: [www.0] output = self.handle(*args, **options) | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/django/core/management/base.py", line 351, in handle | |
12:31:19: [www.0] return self.handle_noargs(**options) | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 90, in handle_noargs | |
12:31:19: [www.0] syncdb.Command().execute(**options) | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute | |
12:31:19: [www.0] output = self.handle(*args, **options) | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/django/core/management/base.py", line 351, in handle | |
12:31:19: [www.0] return self.handle_noargs(**options) | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 56, in handle_noargs | |
12:31:19: [www.0] cursor = connection.cursor() | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 252, in cursor | |
12:31:19: [www.0] cursor = util.CursorWrapper(self._cursor(), self) | |
12:31:19: [www.0] File "/opt/ve/2.7/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 140, in _cursor | |
12:31:19: [www.0] self.connection = Database.connect(**conn_params) | |
12:31:19: [www.0] psycopg2.OperationalError: could not connect to server: No such file or directory | |
12:31:19: [www.0] Is the server running locally and accepting | |
12:31:19: [www.0] connections on Unix domain socket "/tmp/.s.PGSQL.5432"? | |
12:31:19: [www.0] | |
12:31:20: [www.0] deployment aborted due to unexpected command result: "chmod +x postinstall ; ./postinstall" failed with return code 1 | |
12:31:20: [www.0] Installation failed for service (www) instance #0 | |
12:31:20: --> Deployment of application (mediathread9) failed with 1 installation error(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment