-
Hi guys, Quick contextI'm hosting Navidrome on a Synology NAS via Docker and I did a quick diagnostic to understand why the disk never spin down. I use More context
Questions
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
If not disabled, the Scan can cause Navidrome to read the music library file structure every minute, but not write. It should not write that amount of data in any situation, unless it is a first time scan or a forced scan. Can you share debug logs from the Navidrome container? |
Beta Was this translation helpful? Give feedback.
-
Oh sorry I forgot to mention some details:
Let me get back to you with the debug logs. PS: Thank you so much for such a quick answer! |
Beta Was this translation helpful? Give feedback.
-
Here is the docker-compose.yml I'm using to start Navidrome: version: "3.8"
services:
navidrome:
image: deluan/navidrome:latest
container_name: navidrome
environment:
- PUID=1029
- PGID=100
- TZ=Europe/Paris
- ND_LOGLEVEL=debug
- ND_ENABLEUSEREDITING=true # Allow users to edit their password
- ND_ENABLESTARRATING=false
- ND_SCANSCHEDULE=0 12 * * *
- ND_SPOTIFY_ID=REDACTED
- ND_SPOTIFY_SECRET=REDACTED
volumes:
- /volume1/docker/navidrome:/data
- /volume1/data/media/music:/music
ports:
- 4533:4533
network_mode: synobridge
restart: unless-stopped And here is the complete logs of the _ _ _ _
| \ | | (_) | |
| \| | __ ___ ___ __| |_ __ ___ _ __ ___ ___
| . ` |/ _` \ \ / / |/ _` | '__/ _ \| '_ ` _ \ / _ \
| |\ | (_| |\ V /| | (_| | | | (_) | | | | | | __/
\_| \_/\__,_| \_/ |_|\__,_|_| \___/|_| |_| |_|\___|
Version: 0.49.3 (8b93962f)
Loaded configuration from '': &conf.configOptions{
ConfigFile: "",
Address: "0.0.0.0",
Port: 4533,
MusicFolder: "/music",
DataFolder: "/data",
DbPath: "/data/navidrome.db?cache=shared&_busy_timeout=15000&_journal_mode=WAL&_foreign_keys=on",
LogLevel: "debug",
ScanInterval: -1,
ScanSchedule: "0 12 * * *",
SessionTimeout: 86400000000000,
BaseURL: "",
UILoginBackgroundURL: "/backgrounds",
UIWelcomeMessage: "",
MaxSidebarPlaylists: 100,
EnableTranscodingConfig: false,
EnableDownloads: true,
EnableExternalServices: true,
EnableMediaFileCoverArt: true,
TranscodingCacheSize: "100MB",
ImageCacheSize: "100MB",
EnableArtworkPrecache: true,
AutoImportPlaylists: true,
PlaylistsPath: ".:**/**",
AutoTranscodeDownload: false,
DefaultDownsamplingFormat: "opus",
SearchFullString: false,
RecentlyAddedByModTime: false,
IgnoredArticles: "The El La Los Las Le Les Os As O A",
IndexGroups: "A B C D E F G H I J K L M N O P Q R S T U V W X-Z(XYZ) [Unknown]([)",
SubsonicArtistParticipations: false,
FFmpegPath: "",
CoverArtPriority: "cover.*, folder.*, front.*, embedded, external",
CoverJpegQuality: 75,
EnableGravatar: false,
EnableFavourites: true,
EnableStarRating: false,
EnableUserEditing: true,
EnableSharing: false,
DefaultTheme: "Dark",
DefaultLanguage: "",
DefaultUIVolume: 100,
EnableReplayGain: true,
EnableCoverAnimation: true,
GATrackingID: "",
EnableLogRedacting: true,
AuthRequestLimit: 5,
AuthWindowLength: 20000000000,
PasswordEncryptionKey: "[REDACTED]",
ReverseProxyUserHeader: "Remote-User",
ReverseProxyWhitelist: "",
Prometheus: conf.prometheusOptions{Enabled:false, MetricsPath:"/metrics"},
Scanner: conf.scannerOptions{Extractor:"taglib", GenreSeparators:";/,"},
Agents: "lastfm,spotify",
LastFM: conf.lastfmOptions{Enabled:true, ApiKey:"[REDACTED]", Secret:"[REDACTED]", Language:"en"},
Spotify: conf.spotifyOptions{ID:"[REDACTED]", Secret:"[REDACTED]"},
ListenBrainz: conf.listenBrainzOptions{Enabled:true, BaseURL:"https://api.listenbrainz.org/1/"},
DevLogSourceLine: false,
DevLogLevels: {},
DevAutoCreateAdminPassword: "",
DevAutoLoginUsername: "",
DevActivityPanel: true,
DevSidebarPlaylists: true,
DevEnableBufferedScrobble: true,
DevShowArtistPage: true,
DevArtworkMaxRequests: 2,
DevArtworkThrottleBacklogLimit: 100,
DevArtworkThrottleBacklogTimeout: 60000000000,
DevArtistInfoTimeToLive: 86400000000000,
DevAlbumInfoTimeToLive: 604800000000000,
}
time="2023-03-21T14:44:56Z" level=debug msg="Opening DataBase" dbPath="/data/navidrome.db?cache=shared&_busy_timeout=15000&_journal_mode=WAL&_foreign_keys=on" driver=sqlite3
time="2023-03-21T14:44:56Z" level=info msg="goose: no migrations to run. current version: 20230209181414\n"
time="2023-03-21T14:44:56Z" level=info msg="Starting signaler"
time="2023-03-21T14:44:56Z" level=info msg="Configuring Media Folder" name="Music Library" path=/music
time="2023-03-21T14:44:56Z" level=info msg="Starting scheduler"
time="2023-03-21T14:44:56Z" level=info msg="Scheduling periodic scan" schedule="0 12 * * *"
time="2023-03-21T14:44:56Z" level=info msg="Setting Session Timeout" value=24h
time="2023-03-21T14:44:56Z" level=info msg="Creating Image cache" maxSize="100 MB" path=/data/cache/images
time="2023-03-21T14:44:56Z" level=info msg="Login rate limit set" requestLimit=5 windowLength=20s
time="2023-03-21T14:44:56Z" level=info msg="Found ffmpeg" path=/usr/bin/ffmpeg
time="2023-03-21T14:44:56Z" level=debug msg="Last.fm integration is ENABLED"
time="2023-03-21T14:44:56Z" level=debug msg="ListenBrainz integration is ENABLED" ListenBrainz.BaseURL="https://api.listenbrainz.org/1/"
time="2023-03-21T14:44:56Z" level=debug msg="Spotify integration is ENABLED"
time="2023-03-21T14:44:56Z" level=info msg="Mounting Native API routes" path=/api
time="2023-03-21T14:44:56Z" level=debug msg="Throttling Subsonic getCoverArt endpoint" backlogLimit=100 backlogTimeout=1m maxRequests=2
time="2023-03-21T14:44:56Z" level=info msg="Mounting Subsonic API routes" path=/rest
time="2023-03-21T14:44:56Z" level=debug msg="Throttling public images endpoint" backlogLimit=100 backlogTimeout=1m maxRequests=2
time="2023-03-21T14:44:56Z" level=info msg="Mounting Public Endpoints routes" path=/share
time="2023-03-21T14:44:56Z" level=info msg="Mounting LastFM Auth routes" path=/api/lastfm
time="2023-03-21T14:44:56Z" level=info msg="Mounting ListenBrainz Auth routes" path=/api/listenbrainz
time="2023-03-21T14:44:56Z" level=debug msg="Scheduler: start"
time="2023-03-21T14:44:56Z" level=info msg="Mounting Background images routes" path=/backgrounds
time="2023-03-21T14:44:56Z" level=debug msg="Scheduler: schedule" entry=1 next="2023-03-22 12:00:00 +0000 UTC" now="2023-03-21 14:44:56.13412551 +0000 UTC"
time="2023-03-21T14:44:56Z" level=info msg="Mounting WebUI routes" path=/app
time="2023-03-21T14:44:56Z" level=info msg="Navidrome server is ready!" address="0.0.0.0:4533" startupTime=18.9ms
time="2023-03-21T14:44:56Z" level=info msg="Creating Transcoding cache" maxSize="100 MB" path=/data/cache/transcoding
time="2023-03-21T14:44:56Z" level=debug msg="Loaded cache" dir=/data/cache/transcoding numItems=0
time="2023-03-21T14:44:56Z" level=info msg="Finished initializing cache" cache=Transcoding elapsedTime=2.3ms maxSize=100MB
time="2023-03-21T14:44:56Z" level=debug msg="Loaded background images from image service" elapsed=71.1ms total=102
time="2023-03-21T14:44:56Z" level=debug msg="Loaded cache" dir=/data/cache/images numItems=634
time="2023-03-21T14:44:56Z" level=info msg="Finished initializing cache" cache=Image elapsedTime=202.8ms maxSize=100MB
time="2023-03-21T14:44:58Z" level=debug msg="Executing initial scan"
time="2023-03-21T14:44:58Z" level=debug msg="Scanning folder" folder=/music lastModifiedSince="2023-03-21 14:44:09.065 +0000 UTC"
time="2023-03-21T14:44:58Z" level=debug msg="Directory tree loaded from DB" elapsed=18.4ms total=33
time="2023-03-21T14:44:58Z" level=debug msg="Finished deleted folders check" elapsed="9.034µs" total=0
time="2023-03-21T14:44:58Z" level=debug msg="No changes found in Music Folder" elapsed=38.9ms folder=/music
time="2023-03-21T14:44:58Z" level=debug msg="Finished reading directories from filesystem" elapsed=19ms
time="2023-03-21T14:44:58Z" level=debug msg="Finished initial scan" |
Beta Was this translation helpful? Give feedback.
-
Just found out about |
Beta Was this translation helpful? Give feedback.
-
Does anyone reading this reproduce? |
Beta Was this translation helpful? Give feedback.
-
@deluan I found the source of my problem. I disabled the healthcheck in my docker-compose.yml which solves my problem completely and it doesn't seem to cause any problems down the line. healthcheck:
disable: true |
Beta Was this translation helpful? Give feedback.
@deluan I found the source of my problem.
Your Docker image contains a healthcheck which generates disk usage periodically, which in turns prevents the disks of a NAS from spinning down.
I disabled the healthcheck in my docker-compose.yml which solves my problem completely and it doesn't seem to cause any problems down the line.