I also found there is a fourth subdirectory in addons/git . It is from esphome and does not have a repository.json file. ?
Are you saying that a clean install also shows this problem?
Yup, fresh out of the box install on a VM does exactly the same thing. At that point I stopped fiddling with my system and turned to the forums.
Thank you @bucksbass. Very odd.
So this would be a general hassio problem which potentially affects all users.
Maybe @frenck or @balloob can shed a light on this issue? It looks kinda big.
Both Franck and Paulus are currently doing a livestream on Youtube, so I guess we have to wait for that to end at the very least.
Also experiencing this, didn’t change anything.
Any timeline for this getting fixed?
All, simply make sure you have a repository.json in all subfolders located in usr/share/hassio/addons/git.
ESPhome was missing it, so I manually created the file with the following:
{
“name”: “ESPhome”,
“url”: “https://github.com/esphome/esphome”,
“maintainer”: “Ottowinter”
}
You then have to reboot completely (not just home assistant).
Looking at https://github.com/esphome/esphome vs https://github.com/haruny/adt-pulse-mqtt, you can see that adt-pulse-mqtt contains the file, while esphome doesn’t.
Once I added the file the hass.io addons store worked again.
I’m a bit of a noob - when I look in my \hassio\addons it is completely empty. Do I need to make a folder there, or am I looking at the work place? (looking through Samba Share)
I’m not using ResinOS, maybe your solution / path is different!
You must have ssh access to your systems root account (not hassio docker)!
- Find the missing repository.yaml . In my case, the esphome one was missing as well.
ls /usr/share/hassio/addons/git
Folders with numbers were listed. I tried both folders and looked for the one containing esphome.
cd /usr/share/hassio/addons/git/NUMBER
The full path in my case is:
/usr/share/hassio/addons/git/7bce6681/repository.json - Once you are inside the right folder type
sudo nano repository.json
and copy paste the following code. (In damiens code is a slight failure in the path)
{
“name”: “ESPhome”,
“url”: “https://github.com/esphome/esphome”,
“maintainer”: “Ottowinter”
}
Hit CTRL + X and save.
3. Reboot System (whole system, not only hassio)
Attention: In my first attempt i was not successful. Somehow the file disappeared after reboot. So i copied over the repository.json from the other repository, just to make sure i got the rights correct. I replaced only the strings, not the entire block. Another reboot later everything was working agan.
I did about that yesterday actually. But I didn’t restart HA.
Today I just did:
cd /usr/share/hassio/addons/git/7bce6681
sudo wget https://raw.githubusercontent.com/esphome/hassio/master/repository.json
I think that is content the actual file should have. You have a different URL in your self created file, perhaps this will cause issues later on when you want to update the add on.
The above 2 commands fixed it for me.
Nevertheless thank you very much for investigating further.
Thank you for this elegant solution
How do I find the maps? I tried searching the ssh acces for root, but couldn’t find anything.
In IDE, I tried to acces the map:
But it won’t find the hassio or addons map…
You are not able to reach /usr/share/hassio/addons/git/7bce6681 from the IDE.
You need to be outside the container. So you should SSH into the system itself and then execute the commands I posted above.
I need to ask this. I have SSHed into the system, got hassio > prompt, executed login changed to directory /usr/share/ and I don’t see hassio subdirectory. What am I doing wrong ???
That’s odd. But you can just search the whole /usr for repository,json files like so:
find /usr -name repository.json | grep addons
(this search won’t show you the exact directory you should add the file into because, well, it doesn’t have the repository.json which is the whole problem. But at least you should find the path to the addons dir.
I’m on raspberry pi … /bin/ash: find: not found. thx
Error message: “Can’t read json from /data/addons/git/18c35ad6/repository.json”
I don’t have a pi at hand to check it myself. Can you do just a rude ls -R /usr | grep addons
For Raspberry Pi folders are located under:
/mnt/data/supervisor/addons/git/
Weird thing is that repository.json is not to be located on my system…
I dont have the addons/git folder neither (??)
EDIT: I restored a previous snapshot prior to adding the custom URL, then resolved.