Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Flexget clean install - Failed to upgrade database - RuntimeError

$
0
0

@KingHawk wrote:

Background info:
Flexget was working quite fine with Transmission till I wanted to switch over to Deluge, Made a new config file for Deluge this tested successfully but wanted the daemon working too. Since I got errors running it I decided on an clean install for Python and Flexget.

Problem:
The result of my third clean Python 2.7.13+Flexget installation you can see below. Flexget doesn't generate a database or log file, it just all fails. I've found many related topics with several solutions, tried them all none changed the situation. That's also why I've done several clean installs by now so these other "solutions" I've tried won't create another problem.
This is all running on Windows Server 2012 R2.

I hope someone knows how I can fix this situation.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>flexget check
2017-06-29 10:08 VERBOSE  check                         Pre-checked 4 configuration lines
2017-06-29 10:08 INFO     manager                       Database upgrade is required. Attempting now.
2017-06-29 10:08 INFO     archive                       Creating new index (may take a while) ...
2017-06-29 10:08 ERROR    schema                        Failed to upgrade database for plugin archive: (sqlite3.OperationalError) index ix_archive_title_url already exists [SQL: u'CREATE INDEX ix_archive_title_url ON archive_entry (title, url)']
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\flexget\db_schema.py", line 150, in upgrade_wrapper
    new_ver = upgrade_func(current_ver, session)
  File "c:\python27\lib\site-packages\flexget\plugins\generic\archive.py", line 125, in upgrade
    new_index.create(bind=session.connection())
  File "c:\python27\lib\site-packages\sqlalchemy\sql\schema.py", line 3406, in create
    bind._run_visitor(ddl.SchemaGenerator, self)
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 1538, in _run_visitor
    **kwargs).traverse_single(element)
  File "c:\python27\lib\site-packages\sqlalchemy\sql\visitors.py", line 121, in traverse_single
    return meth(obj, **kw)
  File "c:\python27\lib\site-packages\sqlalchemy\sql\ddl.py", line 791, in visit_index
    self.connection.execute(CreateIndex(index))
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 945, in execute
    return meth(self, multiparams, params)
  File "c:\python27\lib\site-packages\sqlalchemy\sql\ddl.py", line 68, in _execute_on_connection
    return connection._execute_ddl(self, multiparams, params)
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 1002, in _execute_ddl
    compiled
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 1189, in _execute_context
    context)
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 1402, in _handle_dbapi_exception
    exc_info
  File "c:\python27\lib\site-packages\sqlalchemy\util\compat.py", line 203, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 1182, in _execute_context
    context)
  File "c:\python27\lib\site-packages\sqlalchemy\engine\default.py", line 470, in do_execute
    cursor.execute(statement, parameters)
OperationalError: (sqlite3.OperationalError) index ix_archive_title_url already exists [SQL: u'CREATE INDEX ix_archive_title_url ON archive_entry (title, url)']
Traceback (most recent call last):
  File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Scripts\flexget.exe\__main__.py", line 9, in <module>
  File "c:\python27\lib\site-packages\flexget\__init__.py", line 42, in main
    manager.start()
  File "c:\python27\lib\site-packages\flexget\manager.py", line 326, in start
    self.initialize()
  File "c:\python27\lib\site-packages\flexget\manager.py", line 214, in initialize
    fire_event('manager.upgrade', self)
  File "c:\python27\lib\site-packages\flexget\event.py", line 106, in fire_event
    result = event(*args, **kwargs)
  File "c:\python27\lib\site-packages\flexget\event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "c:\python27\lib\site-packages\flexget\db_schema.py", line 158, in upgrade_wrapper
    manager.shutdown(finish_queue=False)
  File "c:\python27\lib\site-packages\flexget\manager.py", line 910, in shutdown
    raise RuntimeError('Cannot shutdown manager that was never initialized.')
RuntimeError: Cannot shutdown manager that was never initialized.

C:\Windows\system32>

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles