Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to a corrupt DB throws an exception #1994

LefterisJP opened this issue Jul 29, 2018 · 0 comments

Connecting to a corrupt DB throws an exception #1994

LefterisJP opened this issue Jul 29, 2018 · 0 comments


Copy link

Problem Definition

If the DB is corrupt for some reason then raiden will throw an exception when trying to connect to it.

Traceback (most recent call last):                                                                                                                                                                                                                                              
  File "/usr/lib64/python3.6/", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.6/", line 85, in _run_code
    exec(code, run_globals)
  File "/home/lefteris/ew/raiden/raiden/", line 15, in <module>
  File "/home/lefteris/ew/raiden/raiden/", line 11, in main
  File "/home/lefteris/.virtualenvs/raiden/lib/python3.6/site-packages/click/", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/lefteris/.virtualenvs/raiden/lib/python3.6/site-packages/click/", line 697, in main
    rv = self.invoke(ctx)
  File "/home/lefteris/.virtualenvs/raiden/lib/python3.6/site-packages/click/", line 1043, in invoke
    return Command.invoke(self, ctx)
  File "/home/lefteris/.virtualenvs/raiden/lib/python3.6/site-packages/click/", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/lefteris/.virtualenvs/raiden/lib/python3.6/site-packages/click/", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/lefteris/.virtualenvs/raiden/lib/python3.6/site-packages/click/", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/lefteris/ew/raiden/raiden/ui/", line 969, in run
    NodeRunner(kwargs, ctx).run()
  File "/home/lefteris/ew/raiden/raiden/ui/", line 825, in run
    app = self._run_app()
  File "/home/lefteris/ew/raiden/raiden/ui/", line 843, in _run_app
    app_ = run_app(**self._options)
  File "/home/lefteris/ew/raiden/raiden/ui/", line 671, in run_app
  File "/home/lefteris/ew/raiden/raiden/", line 119, in __init__
  File "/home/lefteris/ew/raiden/raiden/", line 216, in __init__
  File "/home/lefteris/ew/raiden/raiden/", line 228, in start
    storage = sqlite.SQLiteStorage(self.database_path, serialize.PickleSerializer())
  File "/home/lefteris/ew/raiden/raiden/storage/", line 22, in __init__
sqlite3.DatabaseError: file is not a database                                                                                                                                                                                                                                   
Exception ignored in: <bound method SQLiteStorage.__del__ of < object at 0x7f7c5ba5af28>>                                                                                                                                                    
Traceback (most recent call last):
  File "/home/lefteris/ew/raiden/raiden/storage/", line 244, in __del__
AttributeError: 'SQLiteStorage' object has no attribute 'conn'


Print a proper error and quit Raiden. This is a Fatal error and will need manual intervention from the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

1 participant