Note that there are some explanatory texts on larger screens.

plurals
  1. POHeroku postgres connection: "Is the server running locally and accepting connections on Unix domain socket"
    primarykey
    data
    text
    <p>I am setting up a new dev environment, followed the django setup tutorial and am having issues. Here is what I get when I try to run syncdb</p> <pre><code>Running `python doccal/manage.py syncdb` attached to terminal... up, run.1 Traceback (most recent call last): File "doccal/manage.py", line 14, in &lt;module&gt; execute_manager(settings) File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__i nit__.py", line 459, in execute_manager utility.execute() File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__i nit__.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/bas e.py", line 196, in run_from_argv self.execute(*args, **options.__dict__) File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/bas e.py", line 232, in execute output = self.handle(*args, **options) File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/bas e.py", line 371, in handle return self.handle_noargs(**options) File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/com mands/syncdb.py", line 57, in handle_noargs cursor = connection.cursor() File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/backends/__init_ _.py", line 306, in cursor cursor = self.make_debug_cursor(self._cursor()) File "/app/.heroku/venv/lib/python2.7/site-packages/django/db/backends/postgre sql_psycopg2/base.py", line 177, in _cursor self.connection = Database.connect(**conn_params) File "/app/.heroku/venv/lib/python2.7/site-packages/psycopg2/__init__.py", lin e 179, in connect connection_factory=connection_factory, async=async) psycopg2.OperationalError: could not connect to server: No such file or director y Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? </code></pre> <p>I have setup this same project before using the same steps and have never had a problem. I did, a few weeks ago, get an email that Heroku was migrating away from shared databases and assume this is somehow involved.</p> <p>Also, I did notice two NEW steps in the tutorial, namely, installing dj-database-url and adding these lines to settings.py</p> <pre><code>import dj_database_url DATABASES = {'default': dj_database_url.config(default='postgres://localhost')} </code></pre> <p>I have tried to run this both with and without these lines and get the same issue regardless.</p> <p>Another post suggested the fix was to do this</p> <pre><code>heroku addons:add shared-database </code></pre> <p>Tried, get a message that shared-database is deprecated and to use heroku-postgresql, but that had no effect.</p> <p>Thanks for any help</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload