Missing 'version' in data/config/main.json #1

Closed
opened 2025-11-28 03:44:46 +00:00 by Krunox · 5 comments

Is there a fix? Or do I need to manually update the version in main.json?

2025-11-28 03:41:39 [ERROR] Configuration file not found at data/config/main.json
2025-11-28 03:41:39 [ERROR] Error during migration: Missing 'version' in data/config/main.json. Please update your configuration to 3.3.0.
Traceback (most recent call last):
  File "/app/routes/migrations/runner.py", line 51, in run_migrations_if_needed
    MigrationV3_3_0.assert_config_version_is_3_3_0()
  File "/app/routes/migrations/v3_3_0.py", line 44, in assert_config_version_is_3_3_0
    raise RuntimeError(
RuntimeError: Missing 'version' in data/config/main.json. Please update your configuration to 3.3.0.
2025-11-28 03:41:39 [ERROR] Database migration step failed early in startup: Missing 'version' in data/config/main.json. Please update your configuration to 3.3.0.
Traceback (most recent call last):
  File "/app/app.py", line 35, in <module>
    run_migrations_if_needed()
  File "/app/routes/migrations/runner.py", line 51, in run_migrations_if_needed
    MigrationV3_3_0.assert_config_version_is_3_3_0()
  File "/app/routes/migrations/v3_3_0.py", line 44, in assert_config_version_is_3_3_0
    raise RuntimeError(
RuntimeError: Missing 'version' in data/config/main.json. Please update your configuration to 3.3.0.
Is there a fix? Or do I need to manually update the version in main.json? ``` 2025-11-28 03:41:39 [ERROR] Configuration file not found at data/config/main.json 2025-11-28 03:41:39 [ERROR] Error during migration: Missing 'version' in data/config/main.json. Please update your configuration to 3.3.0. Traceback (most recent call last): File "/app/routes/migrations/runner.py", line 51, in run_migrations_if_needed MigrationV3_3_0.assert_config_version_is_3_3_0() File "/app/routes/migrations/v3_3_0.py", line 44, in assert_config_version_is_3_3_0 raise RuntimeError( RuntimeError: Missing 'version' in data/config/main.json. Please update your configuration to 3.3.0. 2025-11-28 03:41:39 [ERROR] Database migration step failed early in startup: Missing 'version' in data/config/main.json. Please update your configuration to 3.3.0. Traceback (most recent call last): File "/app/app.py", line 35, in <module> run_migrations_if_needed() File "/app/routes/migrations/runner.py", line 51, in run_migrations_if_needed MigrationV3_3_0.assert_config_version_is_3_3_0() File "/app/routes/migrations/v3_3_0.py", line 44, in assert_config_version_is_3_3_0 raise RuntimeError( RuntimeError: Missing 'version' in data/config/main.json. Please update your configuration to 3.3.0. ```

oh interesting is this for a fresh install? i haven't tried it yet. i did change the version so not sure if that's affecting it. works fine for me on an existing instance.

are you pulling the latest image?

thanks for reporting this, i'll have to check it out

oh interesting is this for a fresh install? i haven't tried it yet. i did change the version so not sure if that's affecting it. works fine for me on an existing instance. are you pulling the latest image? thanks for reporting this, i'll have to check it out
Author

oh interesting is this for a fresh install? i haven't tried it yet. i did change the version so not sure if that's affecting it. works fine for me on an existing instance.

@spotizerrphoenix Yes, fresh install on another machine. My existing instance still works fine after switching to your image.

There is a similar issue at the spotizerr repo (spotizerr/spotizerr#2), but you can bypass it using the fix suggested here spotizerr/spotizerr#2 (comment)

are you pulling the latest image?

I am now using spotizerrphoenix/spotizerr:latest

> oh interesting is this for a fresh install? i haven't tried it yet. i did change the version so not sure if that's affecting it. works fine for me on an existing instance. @spotizerrphoenix Yes, fresh install on another machine. My existing instance still works fine after switching to your image. There is a similar issue at the spotizerr repo (https://lavaforge.org/spotizerr/spotizerr/issues/2), but you can bypass it using the fix suggested here https://lavaforge.org/spotizerr/spotizerr/issues/2#issuecomment-158 > are you pulling the latest image? I am now using `spotizerrphoenix/spotizerr:latest`

got it, if memory serves me correctly i believe there was an issue with directory permissions before when switching to rootless.

seems like manually making the directories first is needed (to inherit correct permissions):

  • mkdir -p data logs downloads (in linux/mac)
  • touch .cache
  • create the .env depending on your setup
  • related to: spotizerr/spotizerr#4

can you give that a try and see if that works?

got it, if memory serves me correctly i believe there was an issue with directory permissions before when switching to rootless. seems like manually making the directories first is needed (to inherit correct permissions): - `mkdir -p data logs downloads` (in linux/mac) - `touch .cache` - create the `.env` depending on your setup - related to: https://lavaforge.org/spotizerr/spotizerr/pulls/4 can you give that a try and see if that works?
can you give that a try and see if that works?

Just tried that. No dice, getting the same error Krunox is getting above.

``` can you give that a try and see if that works? ``` Just tried that. No dice, getting the same error Krunox is getting above.

@Krunox @middaymoon

new fix for this just merged/built: #4

  • repull image with the latest tag with: spotizerrphoenix/spotizerr:latest or just spotizerrphoenix/spotizerr
  • should fix this issue for new instances of spotizerr (existing instances remain unaffected)

will close this issue for now but give it a try and reopen if you run into anything 👍🏻

@Krunox @middaymoon new fix for this just merged/built: https://lavaforge.org/spotizerrphoenix/spotizerr-phoenix/pulls/4 - repull image with the latest tag with: `spotizerrphoenix/spotizerr:latest` or just `spotizerrphoenix/spotizerr` - should fix this issue for **new instances** of spotizerr (existing instances remain unaffected) will close this issue for now but give it a try and reopen if you run into anything 👍🏻
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
spotizerrphoenix/spotizerr-phoenix#1
No description provided.