Missing 'version' in data/config/main.json. Please update your configuration to 3.3.0. #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
Getting error when launching spotizerr with docker:
.env:
docker-compose.yml:
same problem.
@fyksen as a workaround create a main.json in your /mnt/appdata/spotizerr/data/config/ folder
with the following content:
I had another issue later where I had to manually add my clientId clientSecret to data/creds/search.json.
Having same issue after switching to lavaforge.org/spotizerr/spotizerr:latest.
Error
2025-09-04 19:54:55 [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
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.
Docker Compose
Changed docker image to lavaforge.
name: spotizerr
services:
spotizerr:
image: lavaforge.org/spotizerr/spotizerr:latest
volumes:
- ./data:/app/data
- ./downloads:/app/downloads
- ./logs:/app/logs
ports:
- 7171:7171
container_name: spotizerr-app
restart: unless-stopped
env_file:
- .env
depends_on:
- redis
redis:
image: redis:alpine
container_name: spotizerr-redis
restart: unless-stopped
env_file:
- .env
volumes:
- redis-data:/data
command: sh -c 'redis-server --requirepass "$REDIS_PASSWORD" --appendonly yes'
volumes:
redis-data:
driver: local
.env
Unchanged
HOST=0.0.0.0
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD=CHANGE_ME
EXPLICIT_FILTER=false
PUID=1000
PGID=1000
UMASK=0022
SKIP_SET_PERMISSIONS=false
main.json
Added
"version": "3.3.0"to top of /data/config/main.json{
"version": "3.3.0"
"service": "spotify",
"spotify": "Personal Spotify Account",
"deezer": "Personal Deezer Account",
"fallback": true,
"spotifyQuality": "HIGH",
"deezerQuality": "FLAC",
"realTime": true,
"customDirFormat": "%ar_album%/%album%",
"customTrackFormat": "%tracknum%. %music%",
"tracknumPadding": true,
"saveCover": true,
"maxConcurrentDownloads": 3,
"maxRetries": 3,
"retryDelaySeconds": 5,
"retryDelayIncrease": 5,
"convertTo": "",
"bitrate": "",
"artistSeparator": "; ",
"recursiveQuality": false,
"spotifyMetadata": true,
"separateTracksByUser": false,
"watch": {
"enabled": true,
"watchPollIntervalSeconds": 3600,
"maxTracksPerRun": 50,
"watchedArtistAlbumGroup": [
"album",
"single"
],
"delayBetweenPlaylistsSeconds": 2,
"delayBetweenArtistsSeconds": 5,
"useSnapshotIdChecking": true
},
"explicitFilter": false,
"threads": 4,
"path": "/downloads",
"skipExisting": true,
"m3u": false,
"hlsThreads": 8,
"track": "{artist_name}/{album_name}/{track_number} - {track_name}",
"album": "{artist_name}/{album_name}",
"playlist": "Playlists/{playlist_name}",
"compilation": "Compilations/{album_name}"
}
reviving this project under spotizerr-phoenix: https://lavaforge.org/spotizerrphoenix/spotizerr-phoenix