Closed alexanderek closed 5 months ago
Does Lidarr have access to lidarr-deemix? Is lidarr-deemix even running?
Oh wait, just saw it's from lidarr-deemix... does it have access to Lidarr? is the API key valid?
Yeah, it's from lidarr-deemix. API and access to Lidarr ok.
lidarr-deemix log:
`==> /root/nohup_server.txt <==
> lidarr-deemix@ start /app
> tsc && ts-node --project tsconfig.tsnode.json dist/index
Lidarr++Deemix running at http://0.0.0.0:7171
200 GET /api/v0.4/search?type=all&query=a
200 GET /api/v0.4/search?type=all&query=at
200 GET /api/v0.4/search?type=all&query=atv
200 GET /api/v0.4/search?type=all&query=atb
200 GET /api/v0.4/artist/22a096ef-c70d-4d70-ae19-4fc2412d4986
200 GET /api/v0.4/artist/22a096ef-c70d-4d70-ae19-4fc2412d4986
200 GET /api/v0.4/album/230e59e6-a028-3935-b41d-405140d84213
200 GET /api/v0.4/album/d83a3f5d-a548-35a9-850f-7a85fdd4fe15
{ "level": 50, "time": 1716991464340, "pid": 21, "hostname": "76b85199ce4b", "reqId": "req-9", "req": { "method": "GET", "url": "/api/v0.4/album/bbbbbbbb-bbbb-bbbb-bbbb-bbbb40423151", "hostname": "127.0.0.1:7171", "remoteAddress": "127.0.0.1", "remotePort": 60340 }, "res": { "statusCode": 500 }, "err": { "type": "TypeError", "message": "Failed to parse URL from \"http://lidarr:8686\"/api/v1/artist: Invalid URL", "stack": "TypeError: Failed to parse URL from \"http://lidarr:8686\"/api/v1/artist\n at node:internal/deps/undici/undici:12502:13\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getAllLidarrArtists (file:///app/dist/lidarr.js:15:17)\n at async getAlbum (file:///app/dist/deemix.js:114:27)\n at async doApi (file:///app/dist/index.js:100:22)\n at async Object.<anonymous> (file:///app/dist/index.js:122:30)\ncaused by: TypeError: Invalid URL\n at new URL (node:internal/url:797:36)\n at new Request (node:internal/deps/undici/undici:4853:25)\n at fetch (node:internal/deps/undici/undici:9662:25)\n at fetch (node:internal/deps/undici/undici:12500:10)\n at value (node:internal/bootstrap/web/exposed-window-or-worker:72:12)\n at getAllLidarrArtists (file:///app/dist/lidarr.js:15:23)\n at getAlbum (file:///app/dist/deemix.js:114:33)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async doApi (file:///app/dist/index.js:100:22)\n at async Object.<anonymous> (file:///app/dist/index.js:122:30)" }, "msg": "Failed to parse URL from \"http://lidarr:8686\"/api/v1/artist" }
`
Lidarr log:
`[Info] AddArtistService: Adding Artist [22a096ef-c70d-4d70-ae19-4fc2412d4986][ATB] Path: [/media/music/ATB]
[Info] RefreshArtistService: Updating Info for ATB
[Info] RefreshAlbumService: Updating Info for Trilogy
[Info] MediaCoverService: Downloading Cover for [230e59e6-a028-3935-b41d-405140d84213][Trilogy] http://assets.fanart.tv/fanart/music/22a096ef-c70d-4d70-ae19-4fc2412d4986/albumcover/trilogy-5a636f4d4948c.jpg
[Info] RefreshAlbumService: Updating Info for Movin’ Melodies
[Info] MediaCoverService: Downloading Cover for [d83a3f5d-a548-35a9-850f-7a85fdd4fe15][Movin’ Melodies] http://assets.fanart.tv/fanart/music/22a096ef-c70d-4d70-ae19-4fc2412d4986/albumcover/movin-melodies-5d05964150e76.jpg
[Info] RefreshAlbumService: Updating Info for Next
[Error] RefreshArtistService: Couldn't refresh info for [22a096ef-c70d-4d70-ae19-4fc2412d4986][ATB]
[v2.3.3.4203] NzbDrone.Common.Http.HttpException: HTTP request failed: [500:InternalServerError] [GET] at [https://api.lidarr.audio/api/v0.4/album/bbbbbbbb-bbbb-bbbb-bbbb-bbbb40423151]
at NzbDrone.Core.MetadataSource.SkyHook.SkyHookProxy.GetAlbumInfo(String foreignAlbumId) in ./Lidarr.Core/MetadataSource/SkyHook/SkyHookProxy.cs:line 171
at NzbDrone.Core.Music.RefreshAlbumService.GetRemoteData(Album local, List`1 remote) in ./Lidarr.Core/Music/Services/RefreshAlbumService.cs:line 91
at NzbDrone.Core.Music.RefreshEntityServiceBase`2.RefreshEntityInfo(TEntity local, List`1 remoteList, Boolean forceChildRefresh, Boolean forceUpdateFileTags, Nullable`1 lastUpdate) in ./Lidarr.Core/Music/Services/RefreshEntityServiceBase.cs:line 121
at NzbDrone.Core.Music.RefreshAlbumService.RefreshAlbumInfo(List`1 albums, List`1 remoteAlbums, Boolean forceAlbumRefresh, Boolean forceUpdateFileTags, Nullable`1 lastUpdate) in ./Lidarr.Core/Music/Services/RefreshAlbumService.cs:line 342
at NzbDrone.Core.Music.RefreshArtistService.RefreshChildren(SortedChildren localChildren, List`1 remoteChildren, Boolean forceChildRefresh, Boolean forceUpdateFileTags, Nullable`1 lastUpdate) in ./Lidarr.Core/Music/Services/RefreshArtistService.cs:line 266
at NzbDrone.Core.Music.RefreshEntityServiceBase`2.SortChildren(TEntity entity, List`1 remoteChildren, Boolean forceChildRefresh, Boolean forceUpdateFileTags, Nullable`1 lastUpdate) in ./Lidarr.Core/Music/Services/RefreshEntityServiceBase.cs:line 287
at NzbDrone.Core.Music.RefreshEntityServiceBase`2.RefreshEntityInfo(TEntity local, List`1 remoteList, Boolean forceChildRefresh, Boolean forceUpdateFileTags, Nullable`1 lastUpdate) in ./Lidarr.Core/Music/Services/RefreshEntityServiceBase.cs:line 184
at NzbDrone.Core.Music.RefreshArtistService.RefreshSelectedArtists(List`1 artistIds, Boolean isNew, CommandTrigger trigger) in ./Lidarr.Core/Music/Services/RefreshArtistService.cs:line 338
{"statusCode":500,"error":"Internal Server Error","message":"Failed to parse URL from \"http://lidarr:8686\"/api/v1/artist"}
[Info] TrackGroupingService: Grouping 0 tracks
[Info] ImportApprovedTracks: Importing 0 tracks
[Info] DiskScanService: Completed scanning disk for ATB
[Info] ArtistScannedHandler: [ATB] was recently added, performing post-add actions
[Info] MetadataService: Artist folder does not exist, skipping metadata creation
`
docker compose
` lidarr-deemix:
image: ghcr.io/ad-on-is/lidarr-deemix
container_name: lidarr-deemix
networks:
- traefik
environment:
- DEEMIX_ARL="1234567890"
- OVERRIDE_MB=false # set to true to override MusicBrainz completely !!! CAUTION !!! will delete all artists/albums imported from MB
- PRIO_DEEMIX=true # set to true to prioritize Deemix albums over Lidarr (adds dupliactes on existing albums, needs cleanup and rescan)
- LIDARR_URL=http://lidarr:8686
- LIDARR_API_KEY=1234567890
restart: unless-stopped`
can you curl
or ping
from lidarr-deemix to Lidarr?
It seems that the problem was that I used quotation marks in the variables: LIDARR_URL = """ and LIDARR_API_KEY = """. After removing them, it works fine.
ooh glad you found the issue
Hi
I get an error when adding an artist, in the log:
200 GET /api/v0.4/artist/727486aa-c906-48f8-b3c2-2f212a274913 200 GET /api/v0.4/artist/727486aa-c906-48f8-b3c2-2f212a274913 {"level":50,"time":1716989817562,"pid":21,"hostname":"521b58db8427","reqId":"req-6","req":{"method":"GET","url":"/api/v0.4/album/bbbbbbbb-bbbb-bbbb-bbbb-bbb587749022","hostname":"127.0.0.1:7171","remoteAddress":"127.0.0.1","remotePort":48528},"res":{"statusCode":500},"err":{"type":"TypeError","message":"Failed to parse URL from \"http://lidarr:8686\"/api/v1/artist: Invalid URL","stack":"TypeError: Failed to parse URL from \"http://lidarr:8686\"/api/v1/artist\n at node:internal/deps/undici/undici:12502:13\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getAllLidarrArtists (file:///app/dist/lidarr.js:15:17)\n at async getAlbum (file:///app/dist/deemix.js:114:27)\n at async doApi (file:///app/dist/index.js:100:22)\n at async Object.<anonymous> (file:///app/dist/index.js:122:30)\ncaused by: TypeError: Invalid URL\n at new URL (node:internal/url:797:36)\n at new Request (node:internal/deps/undici/undici:4853:25)\n at fetch (node:internal/deps/undici/undici:9662:25)\n at fetch (node:internal/deps/undici/undici:12500:10)\n at value (node:internal/bootstrap/web/exposed-window-or-worker:72:12)\n at getAllLidarrArtists (file:///app/dist/lidarr.js:15:23)\n at getAlbum (file:///app/dist/deemix.js:114:33)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async doApi (file:///app/dist/index.js:100:22)\n at async Object.<anonymous> (file:///app/dist/index.js:122:30)"},"msg":"Failed to parse URL from \"http://lidarr:8686\"/api/v1/artist"}
What can cause this error?
Lidar 2.3.3.4203, pr-b6e23c0 by [hotio]