RandomNinjaAtk / docker-lidarr-extended

lidarr-extended :: Lidarr application packaged with multiple scripts to provide additional functionality
GNU General Public License v3.0
279 stars 25 forks source link

[Bug]: Audio Script cannot access cutoff-directory #232

Closed ginjugg closed 1 year ago

ginjugg commented 1 year ago

Describe the bug The Audio script tries to search for cutoff albums but runs into an issue because it cannot access /config/extended/cache/lidarr/list/*-cutoff

/config/extended/cache/lidarr/list has permissions: root:root 755

I tried repulling docker and on first run it actually sets the permission to lidarr:lidarr 777, but some time later it changes back to root.

To Reproduce Steps to reproduce the behavior:

  1. Setup docker-lidarr-extended with following config (see below)
  2. Start docker with root user ('docker compose create' and 'docker compose start')

version: "2.1" services: lidarr-extended: image: randomninjaatk/lidarr-extended:latest container_name: lidarr-extended volumes:

  • /opt/Lidarr:/config
  • /mnt/media1/musik:/musik1
  • /mnt/disk0/sabnzbd_finished:/downloads-lidarr-extended environment:
  • TZ=Europe/Berlin
  • PUID=1001
  • PGID=1002
  • USER_ID:1001
  • GROUP_ID:1002
  • enableAudioScript=true
  • enableVideoScript=false
  • scriptInterval=15m
  • configureLidarrWithOptimalSettings=true
  • searchSort=date
  • audioFormat=native
  • audioBitrate=lossless
  • requireQuality=true
  • enableReplaygainTags=true
  • audioLyricType=both
  • dlClientSource=deezer
  • arlToken=XXXX
  • tidalCountryCode=US
  • addDeezerTopArtists=false
  • addDeezerTopAlbumArtists=false
  • addDeezerTopTrackArtists=false
  • topLimit=10
  • addRelatedArtists=false
  • numberOfRelatedArtistsToAddPerArtist=5
  • lidarrSearchForMissing=true
  • addFeaturedVideoArtists=false
  • plexUrl=https://my.plex.domain
  • plexToken=XXX
  • youtubeSubtitleLanguage=en
  • enableQueueCleaner=true
  • matchDistance=5
  • enableBeetsTagging=true
  • beetsMatchPercentage=90
  • retryNotFound=90 ports:
  • 8686:8686 restart: unless-stopped

lidarr has user-id 1001 GroupID 1002 is a media group

Expected behavior /config/extended/cache/lidarr/list should have permissions so it can be accessed by the Audio script.

Log Data

2023-05-04 08:18:27 :: Audio :: 1.0.309 :: FINDING CUTOFF ALBUMS sorted by date 2023-05-04 08:18:27 :: Audio :: 1.0.309 :: 282 CutOff Albums Found Found! 2023-05-04 08:18:27 :: Audio :: 1.0.309 :: Getting CutOff Album IDs 2023-05-04 08:18:27 :: Audio :: 1.0.309 :: 1 :: cutoff :: Downloading page 1... (0 - 282 of 282 Results) 2023-05-04 08:18:29 :: Audio :: 1.0.309 :: 1 :: cutoff :: Filtering Album IDs by removing previously searched Album IDs (/config/extended/logs/notfound/) ls: cannot access '/config/extended/cache/lidarr/list/*-cutoff': No such file or directory 2023-05-04 08:18:31 :: Audio :: 1.0.309 :: 1 :: cutoff :: 0 ablums found to process!

RandomNinjaAtk commented 1 year ago

You can ignore this error. It is working as intended... I might possibly be able to suppress the message to prevent future confusion.

RandomNinjaAtk commented 1 year ago

The latest change should hide the error message.... Update and see if that resolves your issue.

ginjugg commented 1 year ago

Can confirm: it no longer appears

2023-05-05 08:36:40 :: Audio :: 1.0.311 :: FINDING CUTOFF ALBUMS sorted by date 2023-05-05 08:36:40 :: Audio :: 1.0.311 :: 282 CutOff Albums Found Found! 2023-05-05 08:36:40 :: Audio :: 1.0.311 :: Getting CutOff Album IDs 2023-05-05 08:36:40 :: Audio :: 1.0.311 :: 1 :: cutoff :: Downloading page 1... (0 - 282 of 282 Results) 2023-05-05 08:36:42 :: Audio :: 1.0.311 :: 1 :: cutoff :: Filtering Album IDs by removing previously searched Album IDs (/config/extended/logs/notfound/) 2023-05-05 08:36:44 :: Audio :: 1.0.311 :: 1 :: cutoff :: 0 ablums found to process!