-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to install but getting error 'No such image: ghcr.io/sabeechen/hassio-google-drive-backup-amd64:0.112.1' #952
Comments
@sabeechen any suggestions/ideas? I am now running: Still getting the same error message when trying to install from the repo (https://github.com/sabeechen/hassio-google-drive-backup): Can't install ghcr.io/sabeechen/hassio-google-drive-backup-amd64:0.112.1: 404 Client Error for http+docker://localhost/v1.43/images/ghcr.io/sabeechen/hassio-google-drive-backup-amd64:0.112.1/json: Not Found ("No such image: ghcr.io/sabeechen/hassio-google-drive-backup-amd64:0.112.1") Thanks |
I've had people periodically report this error for the addon. In the latest verison I switched away from using dockerhub to store the addon image and its now stored on github (ghcr.io). I was hoping it would solve this issue, but apparently it didn't help. For some context, this error is coming from Home Assistant's Supervisor when it attempts to download the addon from GitHub. Its strange to get a 404 error, which means "Not found" because I'm 100% positive the image is there and accessible. This is where the error is being thrown in the supervisor.
I've had no success trying to figure out why this happens for some users, and I've never been able to reproduce it on one of my test machines. I've spent hours trying. It seems to just go away sometimes by itself, and sometimes gets resolved by restarting the host machine. Home Assistant's supervisor uses the docker-py library under the hood to make docker requests, and I just ran into this bug report suggesting that this error can be caused by running out of space. Is it possible your machine is low on disk? |
Thanks for the response @sabeechen. |
Sadly pushing the OS from 11.1 to 11.2 hasn’t worked |
I suspect the issue is actually with docker-py, since at least some of the errors it runs in to come back miscategorized as "404". The problem is I'm not just trying to sort out a problem outside the addon, its on someone elses machine in a dependent library of a project I don't have any control over. I'd make a new issue for it in the supervisor, but I'm at a loss for how to reproduce it. You open to some debugging? If I were you I'd do the following:
|
Sure. I will give that a go to see if the repair works from the OS. Thankfully before upgrading/moving to 112 I selected to backup the addon which I restored tonight. |
:( Can't install ghcr.io/sabeechen/hassio-google-drive-backup-amd64:0.112.1: 404 Client Error for http+docker://localhost/v1.43/images/ghcr.io/sabeechen/hassio-google-drive-backup-amd64:0.112.1/json: Not Found ("No such image: ghcr.io/sabeechen/hassio-google-drive-backup-amd64:0.112.1") Just a thought, I know why you have switched the repo to GitHub, but any chance the Docker Hub repo could be updated and made available with 112 for testing? I appreciate you wouldn't want to maintain 2 repos going forward but it might help rule out the repo location? |
Bummer. This problem has been around for years, I've never been able to crack it. This addon has over 100k users, and this has been reported at least 20 times.
We can try it in a bit of a roundabout way, I can have you install the previous version (v0.111.1) as a "Local Addon" to see if the old repo on dockerhub works. Instructions are below, this is the process someone would use if they wanted to develop an addon:
If you're able to install it, then we know dockerhub is working for you. I'm not sure what I'd do if I knew it worked, but its another bit of evidence. |
Any luck fixing this? I have the same issue :( |
@sabeechen because that worked for dockerhub install of the old version, is there much overhead to maintain both GitHub and DockerHub? |
Sorry it took me a bit to get back to you, I've had trouble finding time. I switched from DockerHub to GitHub because this problem was already present when using Dockerhub. I was hoping it was only a problem with Dockerhub, that isn't the root of the issue. Switching back would just cause the problem for another (seemingly) random subset of users. I could publish this addon in parallel to multiple repos but it would be ... a bit difficult to maintain if this problem is ever resolved. The issue doesn't seem to be related to either repo. With every update, some number of people are unable to download it. I hadn't realized until now, but Home Assistant gives you access to its docker environment through the ssh addon, and that might give us a clue as to whats going wrong. Could I have you do the following?
If someone is able to do this for me, it might provide the information I need to figure out whats wrong. If any part of those instructions are unclear, let me know and I can elaborate. Right now I basically have nothing to work off of, its just been a mysterious problem around for years that I've never been abel to reproduce. Is suspect it affects a very small number of people, since I've had it reported maybe 20 times and have over 100k unique users. |
@sabeechen no worries, thank you for looking into this. So I ran through the steps, nothing printed out with the first 2 command, however when running the 3rd command to pull the image etc it did fail: Error message: If I do a |
Well that explains it. Looks like whats happening is:
For the curious, there is an interesting discussion about why this is such a tricky problem here. Its made more tricky because Home Assistant goes out of its way to keep you from having ssh access to the host (ssh addon runs in a docker container too, for example), and that broken directory is only on the host. To my knowledge, this is the only way to get Host SSH Access, and its honestly probably simpler to just reinstall. You aren't able to directly delete anything in To fix this, I think the easiest course of action available is to reinstall Home Assistant. If you're feeling adventurous and willing to risk currupting your install further, I'd be curious to know what happens if you enable host SSH and delete that directory. I'm going to create a writeup for this and make an issue on the supervisor github to see if they have a better recommendation, they're much more familiar with docker's internals than I am. |
Because I have my HA instance in Proxmox, I think I can access the host easily from the terminal so might give that a go. I have a full backup and a complete rebuild of HA would be a royal pain in the butt |
It depends on how you installed in proxmox. If you installed a flavor of Home Assistant OS (which is typical) then I believe the proxmox console will just be the reduced privileged 'ha' command line. If you installed the supervisor manually you will get a real shell. I do the latter on my home's instance, because I'm philosophically opposed to having a linux machine on my network without root. |
It looks like this issue and its root cause are already pretty well reported in the HA supervisor. I could have saved us a lot of debugging if I'd looked at the HA supervisor issues made in recent months. Whats worse, this doesn't just affect addons, it can come up when updating anything with Docker including Home Assistant and the supervisor itself, rendering an install very broken. I don't see any direct indication of a fix in the works, though things may be happening behind the scenes. Unfortunately I don't find that surprising, I'm not really sure myself how this could be fixed except perhaps to provide a clearer error message. Current workaround seems to be to reinstall from a backup if this happens to you. Its not great. If you're able to get real ssh access and try deleting that directory, I don't think you have much to lose so long as you have a good backup. |
Thanks for looking into it. |
@sabeechen so bit of an update. I sorted out the SSH keys today (didn't want to risk blowing up HA with the family home from school). Managed to SSH in to HA with root. I have:
|
I have been using the addin for a long time on HA and it has been working very well. I went to upgrade today to 0.112.1 however it kept erroring on me (same error as below). I then uninstalled the version I was running, removed the repo from the list, restarted HA, added the repo back and went to try installing again. However now I dont have the addin at all and still get the following error:
Can't install ghcr.io/sabeechen/hassio-google-drive-backup-amd64:0.112.1: 404 Client Error for http+docker://localhost/v1.43/images/ghcr.io/sabeechen/hassio-google-drive-backup-amd64:0.112.1/json: Not Found ("No such image: ghcr.io/sabeechen/hassio-google-drive-backup-amd64:0.112.1")
I am running:
Core - 2023.12.0b1
Supervisor - 2023.11.6
Operating System - 11.1
Frontend - 20231130.0
The text was updated successfully, but these errors were encountered: