Bug 1154359

Summary: [abrt] graphite-web: base.py:347:get_new_connection:OperationalError: unable to open database file
Product: [Fedora] Fedora Reporter: ssabchew <ssabcew>
Component: graphite-webAssignee: Jonathan Steffan <jonathansteffan>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: jamielinux, jonathansteffan
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/39eb59b55dfaaf5f649037c37d60f75c68d7b96f
Whiteboard: abrt_hash:930de6d57b00e131283e9efa1aad0954d376727c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-22 20:59:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description ssabchew 2014-10-19 09:15:11 UTC
Version-Release number of selected component:
graphite-web-0.9.12-5.fc20

Additional info:
reporter:       libreport-2.2.3
cmdline:        python /usr/lib/python2.7/site-packages/graphite/manage.py syncdb
dso_list:       python-django-1.6.7-1.fc20.noarch
executable:     /usr/lib/python2.7/site-packages/graphite/manage.py
kernel:         3.16.3-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
base.py:347:get_new_connection:OperationalError: unable to open database file

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/graphite/manage.py", line 13, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/usr/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 57, in handle_noargs
    cursor = connection.cursor()
  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 162, in cursor
    cursor = util.CursorWrapper(self._cursor(), self)
  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 132, in _cursor
    self.ensure_connection()
  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 127, in ensure_connection
    self.connect()
  File "/usr/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 127, in ensure_connection
    self.connect()
  File "/usr/lib/python2.7/site-packages/django/db/backends/__init__.py", line 115, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 347, in get_new_connection
    conn = Database.connect(**conn_params)
OperationalError: unable to open database file

Local variables in innermost frame:
conn_params: {u'detect_types': 3, u'check_same_thread': False, u'database': '/opt/graphite/storage/graphite.db'}
self: <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x21fcc90>

Comment 1 ssabchew 2014-10-19 09:15:14 UTC
Created attachment 948206 [details]
File: backtrace

Comment 2 ssabchew 2014-10-19 09:15:16 UTC
Created attachment 948207 [details]
File: environ

Comment 3 Jonathan Steffan 2014-11-22 20:59:53 UTC
Please see the README.fedora.

=========== README.fedora ===========

You must first run a syncdb to configure the webapp:

# python /usr/lib/python2.6/site-packages/graphite/manage.py syncdb