Missing docs for mysql????? django.db.utils.OperationalError: (1049, "Unknown database '/etc/sentry.db'")

905 views
Skip to first unread message

David Montgomery

unread,
Feb 17, 2015, 11:37:06 PM2/17/15
to gets...@googlegroups.com
Hi,

I use mysql...and due to the docs I am stuck on this

# If you're using Postgres, and kept the database ``NAME`` as ``sentry``
$ createdb -E utf-8 sentry


What is the mysql version of the above?


If I run sentry --config=/etc/sentry.conf.py upgrade I get the below errors. 

  return self.handle_noargs(**options)
  File "/usr/local/lib/python2.7/dist-packages/South-1.0.1-py2.7.egg/south/management/commands/syncdb.py", line 89, in handle_noargs
    db.connection_init()
  File "/usr/local/lib/python2.7/dist-packages/South-1.0.1-py2.7.egg/south/db/mysql.py", line 183, in connection_init
    cursor = self._get_connection().cursor()
  File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/db/backends/__init__.py", line 162, in cursor
    cursor = util.CursorWrapper(self._cursor(), self)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/db/backends/__init__.py", line 132, in _cursor
    self.ensure_connection()
  File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/db/backends/__init__.py", line 127, in ensure_connection
    self.connect()
  File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/db/backends/__init__.py", line 127, in ensure_connection
    self.connect()
  File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/db/backends/__init__.py", line 115, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.6.10-py2.7.egg/django/db/backends/mysql/base.py", line 435, in get_new_connection
    conn = Database.connect(**conn_params)
  File "/usr/local/lib/python2.7/dist-packages/MySQL_python-1.2.5-py2.7-linux-x86_64.egg/MySQLdb/__init__.py", line 81, in Connect
  File "/usr/local/lib/python2.7/dist-packages/MySQL_python-1.2.5-py2.7-linux-x86_64.egg/MySQLdb/connections.py", line 193, in __init__
django.db.utils.OperationalError: (1049, "Unknown database '/etc/sentry.db'")

David Cramer

unread,
Feb 17, 2015, 11:38:52 PM2/17/15
to gets...@googlegroups.com
To be honest, if you can’t figure out how to create the MySQL database, you probably shouldn’t run Sentry. That’s the easiest item on the list of some complex dependencies and operational issues, and a lot of Sentry makes assumptions that you know how to monitor its dependencies/etc.

That said, you need to create whatever database name you’ve put in the configuration, and you need to do that however you do it with MySQL. I’ll leave that exercise to the reader.
--
You received this message because you are subscribed to the Google Groups "sentry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getsentry+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Montgomery

unread,
Feb 17, 2015, 11:55:48 PM2/17/15
to gets...@googlegroups.com
Wow....quite the respose....and kinda rude. and yes..I did create the mysql database and updated the conf settings

David Cramer

unread,
Feb 17, 2015, 11:57:31 PM2/17/15
to gets...@googlegroups.com
You need to look at the setup documentation. You haven’t filled out any of the database settings so its trying to connect to the defaults.

I’m serious when I say that Sentry is not a simple application. You might think it’s rude, but really it’s an attempt to save you a lot of headaches that you’re going to have going into unfamiliar territory.

David Cramer

unread,
Feb 17, 2015, 11:58:59 PM2/17/15
to gets...@googlegroups.com
Also as an aside, and we mention this in the docs several times, you should use Postgres instead of MySQL if possible. MySQL isn’t fully supported and you will have to worry about optimization of many things yourself.
Reply all
Reply to author
Forward
0 new messages