Database locked error after moving from 6.2.4 to 6.3.2
Please assist. I can't revert back either as it throws a db error as well. This error occurs after I get a list of all my subs and I choose "0" to scrape all.
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
Renaming files.
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: database is locked
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "I:\OnlyFans-6.3.2\start_ofd.py", line 40, in <module>
main_datascraper.start_datascraper(json_config, site_name_lower)
File "I:\OnlyFans-6.3.2\datascraper\main_datascraper.py", line 87, in start_datascraper
names = main_helper.process_names(
File "I:\OnlyFans-6.3.2\helpers\main_helper.py", line 602, in process_names
result = module.start_datascraper(
File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 155, in start_datascraper
results = prepare_scraper(
File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 720, in prepare_scraper
w = process_metadata(metadata_path, formatted_directories, new_metadata,
File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 590, in process_metadata
new_metadata_object = ofrenamer.start(
File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 145, in start
fixed, new_directories = fix_directories(
File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 101, in fix_directories
pool.starmap(fix_directories, product(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 97, in fix_directories
database_session.commit()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 1046, in commit
self.transaction.commit()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 504, in commit
self._prepare_impl()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 483, in _prepare_impl
self.session.flush()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2540, in flush
self._flush(objects)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2682, in _flush
transaction.rollback(_capture_exception=True)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\langhelpers.py", line 68, in __exit__
compat.raise_(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_
raise exception
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2642, in _flush
flush_context.execute()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 422, in execute
rec.execute(self)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 586, in execute
persistence.save_obj(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 230, in save_obj
_emit_update_statements(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 994, in _emit_update_statements
c = cached_connections[connection].execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1011, in execute
return meth(self, multiparams, params)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\sql\elements.py", line 298, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1124, in _execute_clauseelement
ret = self._execute_context(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1316, in _execute_context
self._handle_dbapi_exception(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1510, in _handle_dbapi_exception
util.raise_(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_
raise exception
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
[SQL: UPDATE medias SET directory=? WHERE medias.id = ?]
[parameters: ('I:\\OnlyFans-6.3.2\\.sites\\OnlyFans\\nataliemonroe\\Posts\\Videos', 828)]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
Please assist. I can't revert back either as it throws a db error as well. This error occurs after I get a list of all my subs and I choose "0" to scrape all.
INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. Renaming files. Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context self.dialect.do_execute( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute cursor.execute(statement, parameters) sqlite3.OperationalError: database is locked The above exception was the direct cause of the following exception: Traceback (most recent call last): File "I:\OnlyFans-6.3.2\start_ofd.py", line 40, in <module> main_datascraper.start_datascraper(json_config, site_name_lower) File "I:\OnlyFans-6.3.2\datascraper\main_datascraper.py", line 87, in start_datascraper names = main_helper.process_names( File "I:\OnlyFans-6.3.2\helpers\main_helper.py", line 602, in process_names result = module.start_datascraper( File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 155, in start_datascraper results = prepare_scraper( File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 720, in prepare_scraper w = process_metadata(metadata_path, formatted_directories, new_metadata, File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 590, in process_metadata new_metadata_object = ofrenamer.start( File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 145, in start fixed, new_directories = fix_directories( File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 101, in fix_directories pool.starmap(fix_directories, product( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap return self._map_async(func, iterable, starmapstar, chunksize).get() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get raise self._value File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar return list(itertools.starmap(args[0], args[1])) File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 97, in fix_directories database_session.commit() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 1046, in commit self.transaction.commit() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 504, in commit self._prepare_impl() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 483, in _prepare_impl self.session.flush() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2540, in flush self._flush(objects) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2682, in _flush transaction.rollback(_capture_exception=True) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\langhelpers.py", line 68, in __exit__ compat.raise_( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_ raise exception File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2642, in _flush flush_context.execute() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 422, in execute rec.execute(self) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 586, in execute persistence.save_obj( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 230, in save_obj _emit_update_statements( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 994, in _emit_update_statements c = cached_connections[connection].execute( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1011, in execute return meth(self, multiparams, params) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\sql\elements.py", line 298, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1124, in _execute_clauseelement ret = self._execute_context( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1316, in _execute_context self._handle_dbapi_exception( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1510, in _handle_dbapi_exception util.raise_( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_ raise exception File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context self.dialect.do_execute( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked [SQL: UPDATE medias SET directory=? WHERE medias.id = ?] [parameters: ('I:\\OnlyFans-6.3.2\\.sites\\OnlyFans\\nataliemonroe\\Posts\\Videos', 828)] (Background on this error at: http://sqlalche.me/e/13/e3q8)
Usually works when you restart the script
I've fully opened a closed it multiple times
Just delete the metadata folder and rescrape it should fix the DB problem.
Please assist. I can't revert back either as it throws a db error as well. This error occurs after I get a list of all my subs and I choose "0" to scrape all.
INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. Renaming files. Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context self.dialect.do_execute( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute cursor.execute(statement, parameters) sqlite3.OperationalError: database is locked The above exception was the direct cause of the following exception: Traceback (most recent call last): File "I:\OnlyFans-6.3.2\start_ofd.py", line 40, in <module> main_datascraper.start_datascraper(json_config, site_name_lower) File "I:\OnlyFans-6.3.2\datascraper\main_datascraper.py", line 87, in start_datascraper names = main_helper.process_names( File "I:\OnlyFans-6.3.2\helpers\main_helper.py", line 602, in process_names result = module.start_datascraper( File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 155, in start_datascraper results = prepare_scraper( File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 720, in prepare_scraper w = process_metadata(metadata_path, formatted_directories, new_metadata, File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 590, in process_metadata new_metadata_object = ofrenamer.start( File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 145, in start fixed, new_directories = fix_directories( File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 101, in fix_directories pool.starmap(fix_directories, product( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap return self._map_async(func, iterable, starmapstar, chunksize).get() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get raise self._value File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar return list(itertools.starmap(args[0], args[1])) File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 97, in fix_directories database_session.commit() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 1046, in commit self.transaction.commit() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 504, in commit self._prepare_impl() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 483, in _prepare_impl self.session.flush() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2540, in flush self._flush(objects) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2682, in _flush transaction.rollback(_capture_exception=True) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\langhelpers.py", line 68, in __exit__ compat.raise_( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_ raise exception File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2642, in _flush flush_context.execute() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 422, in execute rec.execute(self) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 586, in execute persistence.save_obj( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 230, in save_obj _emit_update_statements( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 994, in _emit_update_statements c = cached_connections[connection].execute( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1011, in execute return meth(self, multiparams, params) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\sql\elements.py", line 298, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1124, in _execute_clauseelement ret = self._execute_context( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1316, in _execute_context self._handle_dbapi_exception( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1510, in _handle_dbapi_exception util.raise_( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_ raise exception File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context self.dialect.do_execute( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked [SQL: UPDATE medias SET directory=? WHERE medias.id = ?] [parameters: ('I:\\OnlyFans-6.3.2\\.sites\\OnlyFans\\nataliemonroe\\Posts\\Videos', 828)] (Background on this error at: http://sqlalche.me/e/13/e3q8)
Is this a network drive? I'm getting the same error also, so I'm in the process of fixing it.
Please assist. I can't revert back either as it throws a db error as well. This error occurs after I get a list of all my subs and I choose "0" to scrape all.
INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. Renaming files. Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context self.dialect.do_execute( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute cursor.execute(statement, parameters) sqlite3.OperationalError: database is locked The above exception was the direct cause of the following exception: Traceback (most recent call last): File "I:\OnlyFans-6.3.2\start_ofd.py", line 40, in <module> main_datascraper.start_datascraper(json_config, site_name_lower) File "I:\OnlyFans-6.3.2\datascraper\main_datascraper.py", line 87, in start_datascraper names = main_helper.process_names( File "I:\OnlyFans-6.3.2\helpers\main_helper.py", line 602, in process_names result = module.start_datascraper( File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 155, in start_datascraper results = prepare_scraper( File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 720, in prepare_scraper w = process_metadata(metadata_path, formatted_directories, new_metadata, File "I:\OnlyFans-6.3.2\modules\onlyfans.py", line 590, in process_metadata new_metadata_object = ofrenamer.start( File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 145, in start fixed, new_directories = fix_directories( File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 101, in fix_directories pool.starmap(fix_directories, product( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap return self._map_async(func, iterable, starmapstar, chunksize).get() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get raise self._value File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar return list(itertools.starmap(args[0], args[1])) File "I:\OnlyFans-6.3.2\extras\OFRenamer\start.py", line 97, in fix_directories database_session.commit() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 1046, in commit self.transaction.commit() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 504, in commit self._prepare_impl() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 483, in _prepare_impl self.session.flush() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2540, in flush self._flush(objects) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2682, in _flush transaction.rollback(_capture_exception=True) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\langhelpers.py", line 68, in __exit__ compat.raise_( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_ raise exception File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2642, in _flush flush_context.execute() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 422, in execute rec.execute(self) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 586, in execute persistence.save_obj( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 230, in save_obj _emit_update_statements( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 994, in _emit_update_statements c = cached_connections[connection].execute( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1011, in execute return meth(self, multiparams, params) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\sql\elements.py", line 298, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1124, in _execute_clauseelement ret = self._execute_context( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1316, in _execute_context self._handle_dbapi_exception( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1510, in _handle_dbapi_exception util.raise_( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_ raise exception File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context self.dialect.do_execute( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked [SQL: UPDATE medias SET directory=? WHERE medias.id = ?] [parameters: ('I:\\OnlyFans-6.3.2\\.sites\\OnlyFans\\nataliemonroe\\Posts\\Videos', 828)] (Background on this error at: http://sqlalche.me/e/13/e3q8)Is this a network drive? I'm getting the same error also, so I'm in the process of fixing it.
Nope. Not network.
I've managed to do a full run without getting the "database is locked" issue. You can try the latest commit.
I received the error again with the latest commit.
INFO [alembic.runtime.migration] Running upgrade 2c36fcc0b921 -> d0118d8ec0b4, content
Renaming files.
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: database is locked
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "I:\OnlyFans-6.3.3\start_ofd.py", line 40, in <module>
apis = main_datascraper.start_datascraper(json_config, site_name_lower)
File "I:\OnlyFans-6.3.3\datascraper\main_datascraper.py", line 113, in start_datascraper
paid_content = module.paid_content_scraper(apis, identifiers)
File "I:\OnlyFans-6.3.3\modules\onlyfans.py", line 356, in paid_content_scraper
w = process_metadata(metadata_path, formatted_directories, new_metadata,
File "I:\OnlyFans-6.3.3\modules\onlyfans.py", line 581, in process_metadata
new_metadata_object = ofrenamer.start(
File "I:\OnlyFans-6.3.3\extras\OFRenamer\start.py", line 146, in start
fixed, new_directories = fix_directories(
File "I:\OnlyFans-6.3.3\extras\OFRenamer\start.py", line 102, in fix_directories
pool.starmap(fix_directories, product(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "I:\OnlyFans-6.3.3\extras\OFRenamer\start.py", line 98, in fix_directories
database_session.commit()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 1046, in commit
self.transaction.commit()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 504, in commit
self._prepare_impl()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 483, in _prepare_impl
self.session.flush()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2540, in flush
self._flush(objects)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2682, in _flush
transaction.rollback(_capture_exception=True)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\langhelpers.py", line 68, in __exit__
compat.raise_(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_
raise exception
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2642, in _flush
flush_context.execute()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 422, in execute
rec.execute(self)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 586, in execute
persistence.save_obj(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 230, in save_obj
_emit_update_statements(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 994, in _emit_update_statements
c = cached_connections[connection].execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1011, in execute
return meth(self, multiparams, params)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\sql\elements.py", line 298, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1124, in _execute_clauseelement
ret = self._execute_context(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1316, in _execute_context
self._handle_dbapi_exception(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1510, in _handle_dbapi_exception
util.raise_(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_
raise exception
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
[SQL: UPDATE medias SET directory=? WHERE medias.id = ?]
[parameters: ('I:\\OnlyFans-6.3.3\\.sites\\OnlyFans\\kimmygrangerxxx\\Messages\\Images', 689)]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
It appears to be related to the metadata files. I kept getting that 'SQL: UPDATE medias SET directory=? WHERE' error and it bouncing between "medias" and "posts." I ended up nuking my onlyfans site directory. Overlooking the irritation of downloading my entire library again, it ran fine.
You can try the latest commit
Still same thing on latest commit too :/
Renaming files.
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: database is locked
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "I:\OnlyFans-6.3.4\start_ofd.py", line 40, in <module>
apis = main_datascraper.start_datascraper(json_config, site_name_lower)
File "I:\OnlyFans-6.3.4\datascraper\main_datascraper.py", line 113, in start_datascraper
paid_content = module.paid_content_scraper(apis, identifiers)
File "I:\OnlyFans-6.3.4\modules\onlyfans.py", line 356, in paid_content_scraper
w = process_metadata(metadata_path, formatted_directories, new_metadata,
File "I:\OnlyFans-6.3.4\modules\onlyfans.py", line 581, in process_metadata
new_metadata_object = ofrenamer.start(
File "I:\OnlyFans-6.3.4\extras\OFRenamer\start.py", line 147, in start
fixed, new_directories = fix_directories(
File "I:\OnlyFans-6.3.4\extras\OFRenamer\start.py", line 103, in fix_directories
pool.starmap(fix_directories, product(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "I:\OnlyFans-6.3.4\extras\OFRenamer\start.py", line 99, in fix_directories
database_session.commit()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 1046, in commit
self.transaction.commit()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 504, in commit
self._prepare_impl()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 483, in _prepare_impl
self.session.flush()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2540, in flush
self._flush(objects)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2682, in _flush
transaction.rollback(_capture_exception=True)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\langhelpers.py", line 68, in __exit__
compat.raise_(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_
raise exception
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2642, in _flush
flush_context.execute()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 422, in execute
rec.execute(self)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 586, in execute
persistence.save_obj(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 230, in save_obj
_emit_update_statements(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 994, in _emit_update_statements
c = cached_connections[connection].execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1011, in execute
return meth(self, multiparams, params)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\sql\elements.py", line 298, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1124, in _execute_clauseelement
ret = self._execute_context(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1316, in _execute_context
self._handle_dbapi_exception(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1510, in _handle_dbapi_exception
util.raise_(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_
raise exception
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
[SQL: UPDATE medias SET directory=? WHERE medias.id = ?]
[parameters: ('I:\\OnlyFans-6.3.4\\.sites\\OnlyFans\\kimmygrangerxxx\\Messages\\Images', 623)]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
Try the latest commit .-.
Try the latest commit .-.
Got same error again
Renaming files.
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: database is locked
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "I:\OnlyFans-6.3.5\start_ofd.py", line 40, in <module>
apis = main_datascraper.start_datascraper(json_config, site_name_lower)
File "I:\OnlyFans-6.3.5\datascraper\main_datascraper.py", line 113, in start_datascraper
paid_content = module.paid_content_scraper(apis, identifiers)
File "I:\OnlyFans-6.3.5\modules\onlyfans.py", line 356, in paid_content_scraper
w = process_metadata(metadata_path, formatted_directories, new_metadata,
File "I:\OnlyFans-6.3.5\modules\onlyfans.py", line 581, in process_metadata
new_metadata_object = ofrenamer.start(
File "I:\OnlyFans-6.3.5\extras\OFRenamer\start.py", line 147, in start
fixed, new_directories = fix_directories(
File "I:\OnlyFans-6.3.5\extras\OFRenamer\start.py", line 103, in fix_directories
pool.starmap(fix_directories, product(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "I:\OnlyFans-6.3.5\extras\OFRenamer\start.py", line 100, in fix_directories
Session.commit()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\scoping.py", line 163, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 1046, in commit
self.transaction.commit()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 504, in commit
self._prepare_impl()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 483, in _prepare_impl
self.session.flush()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2540, in flush
self._flush(objects)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2682, in _flush
transaction.rollback(_capture_exception=True)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\langhelpers.py", line 68, in __exit__
compat.raise_(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_
raise exception
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 2642, in _flush
flush_context.execute()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 422, in execute
rec.execute(self)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\unitofwork.py", line 586, in execute
persistence.save_obj(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 230, in save_obj
_emit_update_statements(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\orm\persistence.py", line 994, in _emit_update_statements
c = cached_connections[connection].execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1011, in execute
return meth(self, multiparams, params)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\sql\elements.py", line 298, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1124, in _execute_clauseelement
ret = self._execute_context(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1316, in _execute_context
self._handle_dbapi_exception(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1510, in _handle_dbapi_exception
util.raise_(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 182, in raise_
raise exception
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 609, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
[SQL: UPDATE medias SET directory=? WHERE medias.id = ?]
[parameters: ('I:\\OnlyFans-6.3.5\\.sites\\OnlyFans\\kimmygrangerxxx\\Messages\\Images', 989)]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
Pretty sure the latest commit works since it's now single-threaded.
Pretty sure the latest commit works since it's now single-threaded.
It seems i've gotten past the place it was failing on. So far so good. But will it be slower now that it is single-threaded?
Pretty sure the latest commit works since it's now single-threaded.
It seems i've gotten past the place it was failing on. So far so good. But will it be slower now that it is single-threaded?
Much slower. Especially for accounts with 1000s of posts.
https://onlyfans.com/mspalomares takes 20 minutes just to scrape messages, this isn't even accounting for posts, etc, and that's multithreading with 32 threads.
I'm working on something to speed it up.
Pretty sure the latest commit works since it's now single-threaded.
It seems i've gotten past the place it was failing on. So far so good. But will it be slower now that it is single-threaded?
Much slower. Especially for accounts with 1000s of posts.
https://onlyfans.com/mspalomares takes 20 minutes just to scrape messages, this isn't even accounting for posts, etc, and that's multithreading with 32 threads.
I'm working on something to speed it up.
Okay. I was having no issue on 6.2.4 with multithread. I'm guessing multi-thread has to be re-done for SQL or something.
Pretty sure the latest commit works since it's now single-threaded.
It seems i've gotten past the place it was failing on. So far so good. But will it be slower now that it is single-threaded?
Much slower. Especially for accounts with 1000s of posts. https://onlyfans.com/mspalomares takes 20 minutes just to scrape messages, this isn't even accounting for posts, etc, and that's multithreading with 32 threads. I'm working on something to speed it up.
Okay. I was having no issue on 6.2.4 with multithread. I'm guessing multi-thread has to be re-done for SQL or something.
The latest commit is now multithreaded without any database locking I hope.
The problem was that I was trying to do multithreaded queries.
It seems to be chugging along. I will post back if any issues. Thanks