Skip to content

[Bug]: Invalid Argument Error on Startup #581

Description

@DariusRDev

Please confirm the following before submitting your bug report:

  • I searched existing issues for duplicates.
  • I have read the README and followed all applicable troubleshooting steps.

What happened? What did you expect to happen? Is it reproducible every time?

I get an Error on startup clean install tryed downgradig to 0.20.0 but still same error:

What OS are you seeing the problem on?

Windows

How do you run the Syncer?

Installed

Relevant log output

C:\Program Files\usdb_syncer>USDB_Syncer-0.20.0-Windows-install.exe
qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 7.1.2 LGPL version 2.1 or later
2026-06-01 22:16:29 [WARNING] USDB Syncer v0.21.0 is available! (You have 0.20.0). Please download the latest release from https://github.com/bohning/usdb_syncer/releases/latest.
2026-06-01 22:16:31 [DEBUG] Connected to database at 'C:\Users\Darius Rohde\AppData\Local\bohning\usdb_syncer\usdb_syncer.db' on thread MainThread.
2026-06-01 22:16:34 [DEBUG] Retrieving cookies from Chrome with yt-dlp.
2026-06-01 22:16:34 [DEBUG] None
Traceback (most recent call last):
  File "yt_dlp\cookies.py", line 324, in _extract_chrome_cookies
  File "yt_dlp\cookies.py", line 1115, in _open_database_copy
  File "shutil.py", line 489, in copy
  File "shutil.py", line 313, in copyfile
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Darius Rohde\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Network\\Cookies'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "usdb_syncer\settings.py", line 459, in cookies
  File "yt_dlp\cookies.py", line 122, in extract_cookies_from_browser
  File "yt_dlp\cookies.py", line 365, in _extract_chrome_cookies
yt_dlp.utils.DownloadError: Could not copy Chrome cookie database. See  https://github.com/yt-dlp/yt-dlp/issues/7271  for more info
2026-06-01 22:16:34 [ERROR] Failed to retrieve Chrome cookies.
2026-06-01 22:16:36 [INFO] Successfully logged in to USDB with user 'fkxnn'.
2026-06-01 22:16:36 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:36 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:36 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:36 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:36 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:36 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:36 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:36 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:37 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:38 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:38 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:38 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:38 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:38 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:38 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:38 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:38 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:38 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:38 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:39 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:39 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:39 [DEBUG] Post request for https://usdb.animux.de/index.php
2026-06-01 22:16:39 [INFO] Fetched 3230 updated song(s) from USDB.
2026-06-01 22:16:39 [ERROR] Uncaught exception:
    Traceback (most recent call last):
      File "__init__.py", line 373, in <module>
      File "__init__.py", line 173, in main
      File "__init__.py", line 160, in run_main
      File "__init__.py", line 202, in _run_main
      File "__init__.py", line 257, in _load_main_window
      File "usdb_syncer\song_routines.py", line 42, in load_available_songs_and_sync_meta
      File "usdb_syncer\song_routines.py", line 205, in synchronize_sync_meta_folder
      File "usdb_syncer\song_routines.py", line 160, in process
      File "usdb_syncer\song_routines.py", line 179, in _process_path
      File "usdb_syncer\song_routines.py", line 188, in _process_changed_or_new_file
      File "usdb_syncer\sync_meta.py", line 165, in try_from_file
      File "json\__init__.py", line 298, in load
    OSError: [Errno 22] Invalid argument

C:\Program Files\usdb_syncer>

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions