Hi there,
It looks as if your MySQL configuration is pointing to your local machine.
Have you configured your app to point to your ClearDB instance?

Also, be sure to remove the reconnect query string parameter from the
database URL if you're using ClearDB, as that is for rails users.

Best,
Cashton

On Saturday, June 2, 2012, psychok7 <[email protected]> wrote:
> i , i am doing a push to heroku and no problems. when i got to the site
it says it has an error. but when i do heroku logs i get a :
> 2012-06-02T19:43:54+00:00 app[web.1]: Validating models...
> 2012-06-02T19:43:54+00:00 app[web.1]: Traceback (most recent call last):
> 2012-06-02T19:43:54+00:00 app[web.1]:   File "keepitsafesite/manage.py",
line 10, in <module>
> 2012-06-02T19:43:54+00:00 app[web.1]:
execute_from_command_line(sys.argv)
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py",
line 443, in execute_from_command_line
> 2012-06-02T19:43:54+00:00 app[web.1]:     utility.execute()
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py",
line 382, in execute
> 2012-06-02T19:43:54+00:00 app[web.1]:
self.fetch_command(subcommand).run_from_argv(self.argv)
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py",
line 196, in run_from_argv
> 2012-06-02T19:43:54+00:00 app[web.1]:     self.execute(*args,
**options.__dict__)
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py",
line 232, in execute
> 2012-06-02T19:43:54+00:00 app[web.1]:     output = self.handle(*args,
**options)
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/gunicorn/management/commands/run_gunicorn.py",
line 76, in handle
> 2012-06-02T19:43:54+00:00 app[web.1]:
self.validate(display_num_errors=True)
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/base.py",
line 266, in validate
> 2012-06-02T19:43:54+00:00 app[web.1]:     num_errors =
get_validation_errors(s, app)
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/validation.py",
line 103, in get_validation_errors
> 2012-06-02T19:43:54+00:00 app[web.1]:
connection.validation.validate_field(e, opts, f)
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/django/db/backends/mysql/validation.py",
line 14, in validate_field
> 2012-06-02T19:43:54+00:00 app[web.1]:     db_version =
self.connection.get_server_version()
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/django/db/backends/mysql/base.py",
line 411, in get_server_version
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/django/db/backends/__init__.py",
line 306, in cursor
> 2012-06-02T19:43:54+00:00 app[web.1]:     self.cursor()
> 2012-06-02T19:43:54+00:00 app[web.1]:     cursor =
self.make_debug_cursor(self._cursor())
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/django/db/backends/mysql/base.py",
line 387, in _cursor
> 2012-06-02T19:43:54+00:00 app[web.1]:     self.connection =
Database.connect(**kwargs)
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/MySQLdb/__init__.py", line
81, in Connect
> 2012-06-02T19:43:54+00:00 app[web.1]:     return Connection(*args,
**kwargs)
> 2012-06-02T19:43:54+00:00 app[web.1]:   File
"/app/.heroku/venv/lib/python2.7/site-packages/MySQLdb/connections.py",
line 187, in __init__
> 2012-06-02T19:43:54+00:00 app[web.1]: _mysql_exceptions.OperationalError:
(2002, "Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)")
> 2012-06-02T19:43:54+00:00 app[web.1]:     super(Connection,
self).__init__(*args, **kwargs2)
> 2012-06-02T19:43:55+00:00 heroku[web.1]: Process exited with status 1
> 2012-06-02T19:43:55+00:00 heroku[web.1]: State changed from starting to
crashed
>
> i added mysql-python to the requirements.txt and no luck.
> i also installed the clearDB app and it didnt work also. i am using
django 1.4
> Please help
>
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en
>

-- 
*Cashton Coleman, CEO*
*SuccessBricks, Inc.*
[email protected]
Office: 1 469 828 3439 x500
Website: www.cleardb.com

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

Reply via email to