[SOLVED] Attempt to write a readonly database

Hi! I’m trying to refresh games available for my Origin account. Here’s lutris -d log

2022-07-18 18:28:39,561: Starting Lutris 0.5.10.1
2022-07-18 18:28:39,575: No folder at /home/sv-cheats-1/.local/share/lutris/runners/retroarch/
2022-07-18 18:28:39,638: Using NVIDIA drivers 515.57 for x86_64
2022-07-18 18:28:39,638: GPU: NVIDIA GeForce GTX 1080
2022-07-18 18:28:39,638: GPU: 10DE:1B80 10DE:1B80 (nvidia drivers)
INFO     2022-07-18 18:28:51,823 [startup.init_lutris:173]:Starting Lutris 0.5.10.1
INFO     2022-07-18 18:28:51,833 [startup.check_driver:57]:Using NVIDIA drivers 515.57 for x86_64
INFO     2022-07-18 18:28:51,833 [startup.check_driver:61]:GPU: NVIDIA GeForce GTX 1080
INFO     2022-07-18 18:28:51,833 [startup.check_driver:77]:GPU: 10DE:1B80 10DE:1B80 (nvidia drivers)
INFO     2022-07-18 18:28:51,857 [startup.update_runtime:213]:Startup complete
DEBUG    2022-07-18 18:28:51,954 [lutriswindow.update_store:437]:Showing 0 games
DEBUG    2022-07-18 18:28:53,991 [lutriswindow.update_store:437]:Showing 0 games
DEBUG    2022-07-18 18:28:54,390 [base.wipe_game_cache:297]:Deleting origin cache /home/sv-cheats-1/.cache/lutris/origin/cache/
DEBUG    2022-07-18 18:28:54,390 [base.wipe_game_cache:121]:Deleting games from service-games for origin
DEBUG    2022-07-18 18:28:54,391 [lutriswindow.update_store:437]:Showing 0 games
ERROR    2022-07-18 18:28:54,391 [jobs.target:36]:Error while completing task <bound method BaseService.reload of <origin.OriginService object at 0x7fc36933b1c0 (lutris+services+origin+OriginService at 0x564b80726620)>>: <class 'sqlite3.OperationalError'> attempt to write a readonly database
  File "/usr/lib/python3.10/site-packages/lutris/util/jobs.py", line 34, in target
    result = self.function(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/lutris/services/base.py", line 95, in reload
    self.wipe_game_cache()
  File "/usr/lib/python3.10/site-packages/lutris/services/base.py", line 302, in wipe_game_cache
    super().wipe_game_cache()
  File "/usr/lib/python3.10/site-packages/lutris/services/base.py", line 122, in wipe_game_cache
    sql.db_delete(PGA_DB, "service_games", "service", self.id)
  File "/usr/lib/python3.10/site-packages/lutris/database/sql.py", line 71, in db_delete
    cursor_execute(cursor, "delete from {0} where {1}=?".format(table, field), (value, ))
  File "/usr/lib/python3.10/site-packages/lutris/database/sql.py", line 34, in cursor_execute
    results = cursor.execute(query, params)

I haven’t been able to find an answer for this error, any idea how can I fix it?

1 Like

IDK how the bug originally came to be, I just nuked everything Lutris-related, reinstalled and it seems to be refreshing again.

1 Like