HACS Sidebar Missing

I am currently on HASS 110.2 and when i tried to update HACS to 1.0.3 i get errors in my log and the icon doesn’t show up in my sidebar

Errors:

2020-05-25 15:27:42 ERROR (SyncWorker_13) [homeassistant.util.json] JSON file reading failed: /config/.storage/hacs/120370503.hacs
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 31, in load_json
    with open(filename, encoding="utf-8") as fdesc:
NotADirectoryError: [Errno 20] Not a directory: '/config/.storage/hacs/120370503.hacs'
2020-05-25 15:27:42 CRITICAL (MainThread) [hacs.data] [[Errno 20] Not a directory: '/config/.storage/hacs/120370503.hacs'] Restore Failed!
2020-05-25 15:27:42 WARNING (MainThread) [homeassistant.config_entries] Config entry for hacs not ready yet. Retrying in 5 seconds.
2020-05-25 15:27:48 ERROR (SyncWorker_12) [homeassistant.util.json] JSON file reading failed: /config/.storage/hacs/120370503.hacs

any suggestions?

I’m also having this exact same issue, right after updating HACS.

Edit - Here is my log:

-------------------------------------------------------------------
HACS (Home Assistant Community Store)
Version: 1.0.3
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/hacs/integration/issues
-------------------------------------------------------------------
2020-05-25 18:50:49 INFO (MainThread) [hacs.data] Restore started
2020-05-25 18:50:49 ERROR (SyncWorker_21) [homeassistant.util.json] JSON file reading failed: /config/.storage/hacs/120370503.hacs
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 31, in load_json
    with open(filename, encoding="utf-8") as fdesc:
NotADirectoryError: [Errno 20] Not a directory: '/config/.storage/hacs/120370503.hacs'
2020-05-25 18:50:49 CRITICAL (MainThread) [hacs.data] [[Errno 20] Not a directory: '/config/.storage/hacs/120370503.hacs'] Restore Failed!
2020-05-25 18:50:49 INFO (MainThread) [hacs] Disabling HACS
2020-05-25 18:50:49 INFO (MainThread) [hacs] Removing recuring tasks
2020-05-25 18:50:49 INFO (MainThread) [hacs] Removing sidepanel
2020-05-25 18:50:49 INFO (MainThread) [hacs] HACS is now disabled
2020-05-25 18:50:49 WARNING (MainThread) [homeassistant.config_entries] Config entry for hacs not ready yet. Retrying in 80 seconds.

Mine is missing as well.

Here also.

2020-05-26 08:33:14 ERROR (SyncWorker_11) [homeassistant.util.json] JSON file reading failed: /config/.storage/hacs/120370503.hacs Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/util/json.py", line 31, in load_json with open(filename, encoding="utf-8") as fdesc: NotADirectoryError: [Errno 20] Not a directory: '/config/.storage/hacs/120370503.hacs' 2020-05-26 08:33:14 CRITICAL (MainThread) [hacs.data] [[Errno 20] Not a directory: '/config/.storage/hacs/120370503.hacs'] Restore Failed!

FOUND it. (https://github.com/hacs/integration/issues/1250)
Remove this file /config/.storage/hacs.

7 Likes

Thanks. Fixed mine

Worked for me too! Thank you!

Hi guys,

I have the same issue but I don’t have that file in my folder.
All I have is this

grab 2020-06-10 alle 20.25.19

what do I have to remove?

I’d like to know which file to remove also. HACS has disappeared but I have a few hacs. files.

So on my case I solved the issue requesting a new github token, removing hass integration from HA integration panel and re-adding it with the new token

Thanks, I did as you said and all working again.

I case you are not sure how to do this , here is the link

I believe they mean folder, not file. When in doubt, rename. I renamed the folder to hacs-old, refreshed the screen, and HACS was back. Now I can delete the folder.

For me HACS was missing because I had downloaded/installed but hadn’t gone through the initial configuration steps as listed here Initial Configuration | HACS make sure you do that and then it will show on your sidebar.