lejacobroy / Tidalrr

Self-hosted Tidal library sync
Apache License 2.0
30 stars 4 forks source link

getting error when trying to pull image #6

Closed guycobb2 closed 6 months ago

guycobb2 commented 6 months ago

im no docker guru, so this is likely something i'm doing incorrectly. but i keep getting a pull access denied. can anyone shed some light on what im likely doing wrong?

docker run -d --name='Tidalrr' --net='bridge' -e TZ="America/Chicago" -e HOST_OS="Unraid" -e HOST_HOSTNAME="BitLord" -e HOST_CONTAINERNAME="Tidalrr" -e 'PUID'='99' -e 'PGID'='100' -l net.unraid.docker.managed=dockerman -p '3010:3001/tcp' -v '/mnt/user/appdata/tidalrr/config':'/app/tidalrr/database/config':'rw' -v '/mnt/cache_nvme/downloads/tidal-dl/':'/app/download':'rw' -v '/mnt/user/appdata/tidalrr/import':'/app/import':'rw' -v '/mnt/user/media/music/':'/path/to/lidarr/folders':'rw' 'lejacobroy/tidalrr' Unable to find image 'lejacobroy/tidalrr:latest' locally docker: Error response from daemon: pull access denied for lejacobroy/tidalrr, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.

The command failed.

mangocat1 commented 6 months ago

Try - jacobroyquebec/tidalrr https://hub.docker.com/r/jacobroyquebec/tidalrr

guycobb2 commented 6 months ago

Try - jacobroyquebec/tidalrr https://hub.docker.com/r/jacobroyquebec/tidalrr

Thanks. That did the trick. Now to figure everything else out. No webgui loading when I point to it…..but again, likely my fault. Will have to mess with it when I get a minute.

sickify1 commented 6 months ago

Try - jacobroyquebec/tidalrr https://hub.docker.com/r/jacobroyquebec/tidalrr

Thanks. That did the trick. Now to figure everything else out. No webgui loading when I point to it…..but again, likely my fault. Will have to mess with it when I get a minute.

See: https://github.com/lejacobroy/Tidalrr/issues/5#issuecomment-1942141419

That seemed to fix it for mangocat, there might be other issues if the database schema doesn't have all the changes that are made in the update from V1 -> V4, but it'll get you started at least.

guycobb2 commented 6 months ago

Thanks. I'll see if i can make heads or tails out of this. I'm sure I have something set wrong in the container profile. Educated guessing on my part.

Image 2-14-24 at 5 28 PM Image 2-14-24 at 5 29 PM

coldiak commented 6 months ago

Hi, i have the same problem with the docker image any help? thanks

sickify1 commented 6 months ago

Thanks. I'll see if i can make heads or tails out of this. I'm sure I have something set wrong in the container profile. Educated guessing on my part.

Image 2-14-24 at 5 28 PM Image 2-14-24 at 5 29 PM

Docker setup looks okay, it should just be editing the database init script, deleting the database file and restarting the docker container.

sickify1 commented 6 months ago

Hi, i have the same problem with the docker image any help? thanks

Same issue with the docker image not pulling, or same issue with it not starting? If it's the issue not starting, see my earlier comments.

guycobb2 commented 6 months ago

Docker setup looks okay, it should just be editing the database init script, deleting the database file and restarting the docker container.

where should the init.py file reside? I'm not seeing it anywhere that I think it should be. any ideas what i'm doing wrong?

Screenshot 2024-02-14 at 8 45 14 PM

Image 2-14-24 at 9 10 PM

guycobb2 commented 6 months ago

ok, didn't realize the init.py for me had double underscores for the leading and trailing.... i thought it was just a single. so, was able to nano in after try the doubles and changed line 110 as mentioned. and lo and behold we have a webui now. will see if any other issues arise, but thanks for the help thus far.

Screenshot 2024-02-14 at 10 00 45 PM
guycobb2 commented 6 months ago

Ok. Progress made but I’m either not fully understanding the intended usage, I’m not going about the proper workflow or I still need some tweaking on the setup. I have lidarr ip and api setup and let it sync. My assumption was that after that took place it would create a queue of missing content to be pulled from tidal. Here’s some shots of where I’m currently at.

IMG_3603

IMG_3604

IMG_3605

IMG_3606

sickify1 commented 6 months ago

Ok. Progress made but I’m either not fully understanding the intended usage, I’m not going about the proper workflow or I still need some tweaking on the setup. I have lidarr ip and api setup and let it sync. My assumption was that after that took place it would create a queue of missing content to be pulled from tidal. Here’s some shots of where I’m currently at.

Have you gone to the Downloads page and started Downloads? I believe when you sync from Lidarr it does not do an Artist match, just matches albums / tracks, which is why you have no Artists in the DB. If you start downloads it should try and grab all the albums in the DB from Tidal.

guycobb2 commented 6 months ago

Ok. Progress made but I’m either not fully understanding the intended usage, I’m not going about the proper workflow or I still need some tweaking on the setup. I have lidarr ip and api setup and let it sync. My assumption was that after that took place it would create a queue of missing content to be pulled from tidal. Here’s some shots of where I’m currently at.

Have you gone to the Downloads page and started Downloads? I believe when you sync from Lidarr it does not do an Artist match, just matches albums / tracks, which is why you have no Artists in the DB. If you start downloads it should try and grab all the albums in the DB from Tidal.

I should have included a screenshot of that too. Yeah, I’ve clicked pretty much every button in attempt to see what it did and to try to get downloads started. Here what I get after hitting the download button.

IMG_3607

sickify1 commented 6 months ago

Ok. Progress made but I’m either not fully understanding the intended usage, I’m not going about the proper workflow or I still need some tweaking on the setup. I have lidarr ip and api setup and let it sync. My assumption was that after that took place it would create a queue of missing content to be pulled from tidal. Here’s some shots of where I’m currently at.

Have you gone to the Downloads page and started Downloads? I believe when you sync from Lidarr it does not do an Artist match, just matches albums / tracks, which is why you have no Artists in the DB. If you start downloads it should try and grab all the albums in the DB from Tidal.

I should have included a screenshot of that too. Yeah, I’ve clicked pretty much every button in attempt to see what it did and to try to get downloads started. Here what I get after hitting the download button.

Huh, I will try a fresh copy of it when I have a chance and see what I get. If you add a Tidal Artist link directly via Add from URL, then do a scan, then do a download, does it actually download anything?

guycobb2 commented 6 months ago

Huh, I will try a fresh copy of it when I have a chance and see what I get. If you add a Tidal Artist link directly via Add from URL, then do a scan, then do a download, does it actually download anything?

Yeah, that seems to be doing something. Things are being pulled. Will have to see if it completes them and what it does with them afterwards.

IMG_3608 IMG_3609 IMG_3610 IMG_3611 IMG_3612 IMG_3613 IMG_3614

guycobb2 commented 6 months ago

ok, all downloads look to have taken place for the artist that was added manually via the "add from url" method. what do i need to do to automate them to being moved into my library? they appear to just be hanging out in the download folder designated by tidalrr. also, it still doesn't seem to by syncing with lidarr. hope i can get this sqared away........ so close.

Screenshot 2024-02-15 at 7 57 23 PM

Screenshot 2024-02-15 at 7 57 43 PM
sickify1 commented 6 months ago

ok, all downloads look to have taken place for the artist that was added manually via the "add from url" method. what do i need to do to automate them to being moved into my library? they appear to just be hanging out in the download folder designated by tidalrr. also, it still doesn't seem to by syncing with lidarr. hope i can get this sqared away........ so close.

I tested the Lidarr integration on a fresh install of the newest version, and it does appear to be broken. The albums get added to the database, but do not show up on the albums page. I'm not sure if it worked for me previously because I manually added all my artists to Tidalrr first, or if something has broken along the way.

As for adding the music to Lidarr, I have been doing manual imports to Lidarr. You could have Tidalrr download to your Lidarr directory, and set the same naming scheme in Tidalrr as what Lidarr uses and they should automatically be detected. However, I have found that lots of the tracks in Tidal do not correspond to an album that Lidarr has, even with all metadata boxes ticked in my lidarr preferences. So unless you want a bunch of "Unknown" tracks in Lidarr, manual import is probably the best bet.

Maybe there is a better way to do it that that, but i've gotten approx ~12,000 tracks processed so far, and likely would have been able to do it faster If i had set up Tidalrr to name the tracks in the way that Lidarr expects them to be.

guycobb2 commented 6 months ago

know of any way to redownload already downloaded files? even after deletion, it still shows them as downloaded.

lejacobroy commented 6 months ago

The "Sync Lidarr" page is only to match the missing Lidarr albums to Tidal and add them to the Tidalrr DB in "monitored" state. Then, you should do a scan of monitored content on the "Scans" page. Once every monitored content is scanned (In this case, missing albums), you can start the download process on the "Downloads" page.

I recommend you previously set the Tidalrr download folder to the Lidarr Library folder, so that the downloads get picked up by Lidarr. Furthermore, you can tweak the naming convention to follow the same principles.

As for redownloading files, you can just open the Sqlite DB and set every row to downloaded = 0 in tidal_tracks.

lejacobroy commented 6 months ago

I've fixed the problem with starting a DB from scratch in https://github.com/lejacobroy/Tidalrr/commit/8b9d92ee2232b50628ef5149c89f8cd7c33d397c

mclaughj commented 6 months ago

@lejacobroy can you publish an updated docker image with the DB fix?

tecbeat commented 6 months ago

@lejacobroy Same for me the docker image is broken. And on an local installation the download does not work too.

lejacobroy commented 6 months ago

Sorry about that, my build server was down for a few days and I completely forgot to push a new image.

tecbeat commented 6 months ago

Nice! but I also found an error in the UI. I built the Docker image with the database fix and then the UI also worked. However, the "Add" function (http://localhost:3001/actions/add) unfortunately does not work.

Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

I haven't gotten any further than adding a playlist (that works), but even with a "start download" and "scan" nothing is triggered.

Logs
2024-02-25 11:47:51 Starting downloads
LOG: Running job "startDownloads"
2024-02-25 11:47:51 startDownloads
Non-Empty Access Token, logging in
LOG: Job "startDownloads" completed in 0 seconds

Have I misunderstood something else or is this actually a mistake?

lejacobroy commented 6 months ago

I see the problem. I tested some more and you were right, there was a problem in the scanning of playlists since the recent refactoring, which resulted in tracks not being downloaded. I've fixed the root problem and added a migration step to fix all your databases (@tecbeat @mclaughj) The fixes are included in the commits https://github.com/lejacobroy/Tidalrr/commit/649f37f468fd9ff2e785872e97e844e6fe03f678 https://github.com/lejacobroy/Tidalrr/commit/27026466dd398592ad4396f3c6705895705b3fb4 and pushed to the image.

I've also discovered that the example docker-compose file still referenced a local tidalrr image and not the dockerHub one, So I recommend you all to change your docker-compose.yml file similar to the commit https://github.com/lejacobroy/Tidalrr/commit/4b8e8ea6cab0fb3d852b846660605494bf79b77a

tecbeat commented 6 months ago

Ich habe das neue image geladen und es funktioniert perfekt, habe jedoch noch auf der startseite einen kaputten link gefunden unter "Add". Vielen dank fürs fixen.

lejacobroy commented 6 months ago

Since the root issue is solved and we diverted quite a bit, I will mark this one a closed, but feel free to open other issues concerning your specific cases.

Thank you all for your work and ideas!