Error while loading page

Hi everyone

the only page im able to access is the main overview page. ive restarted my Pi, cleared my cache, and tried on 3 different devices, and all have the same error

any page i click on, apart from overview, says ‘error while loading page ***’ and a link underneath that says Go back

most of my cards are missing on pages i have setup on dashboards (cctv, history, maps, etc)

Does anyone have any ideas on what i could try please

ok, so i started again. reflashed the SD card, Let it to its thing, set up my new user, and im still having the same issues

ive cleared the cache on my laptop, and even installed the app on a new phone, so the issue is with my Pi HA installation

with it being a fresh install, i dont know what to do next

can anyone offer any advise please

Im getting the same issue on a complete fresh install using the 64 or 32 bit image on SD card on Pi4 4Gb

i did manage to install HACS, and still had the file explorer window open while also installing another addon, when i got an error, telling me the configuration.yaml file was missing, so, i checked in the file explorer, and EVERY file and folder was missing

I managed to copy some error log, which i also had open in another window, just in case

Error in database connectivity during commit: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8). (retrying in 3 seconds)
9:54:54 PM – Recorder (ERROR) - message first occurred at 9:27:27 PM and shows up 8 times
Error executing query: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8)
9:54:54 PM – Recorder (ERROR) - message first occurred at 9:27:27 PM and shows up 8 times
Error in database connectivity during keepalive: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8)
9:54:28 PM – Recorder (ERROR) - message first occurred at 9:26:58 PM and shows up 56 times
Received message for unregistered webhook 3ec246e3eae3be2367cc799e509b754c5cbb01008be2e941a977c5a40053718c from 192.168.1.17
9:48:51 PM – Webhook (WARNING) - message first occurred at 8:56:19 PM and shows up 14 times
Error doing job: Task exception was never retrieved
9:47:27 PM – helpers/storage.py (ERROR) - message first occurred at 9:32:27 PM and shows up 3 times
Can't read last version:
9:42:29 PM – Hass.io (WARNING)
Client error on /info request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed ('172.30.32.2', 80)]
9:42:29 PM – Hass.io (ERROR)
Client error on api app/entrypoint.js request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed ('172.30.32.2', 80)]
9:39:18 PM – Hass.io (ERROR) - message first occurred at 9:30:34 PM and shows up 3 times
Error handling request
9:39:14 PM – components/http/static.py (ERROR) - message first occurred at 9:28:44 PM and shows up 46 times
JSON file reading failed: /usr/src/homeassistant/homeassistant/components/rpi_power/translations/en-GB.json
9:39:14 PM – util/json.py (ERROR) - message first occurred at 9:39:14 PM and shows up 2 times
[2847911864] Error handling message: [Errno 5] I/O error: '/usr/src/homeassistant/homeassistant/components/rpi_power/translations/en-GB.json'
9:39:14 PM – Home Assistant WebSocket API (ERROR)
Unhandled exception
9:29:15 PM – /usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py (ERROR) - message first occurred at 9:29:05 PM and shows up 20 times
Component error: sonoff - Integration 'sonoff' not found.
9:25:01 PM – Hass.io (ERROR)

I have the same issue. Only the Overview page works. The rest shows: “Error while loading page …”
When I disconnect/connect my RPi 4 again it works correct. After a while I get the same error. So I’m also interested in a possible root cause/solution.

1 Like

after spending a few days getting everything back up and running, overnight, the issue has returned


Error in database connectivity during keepalive: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8)
9:32:31 AM – Recorder (ERROR) - message first occurred at 1:11:26 AM and shows up 1003 times
Error in database connectivity during commit: (sqlite3.OperationalError) disk I/O error (Background on this error at: http://sqlalche.me/e/13/e3q8). (retrying in 3 seconds)
9:32:28 AM – Recorder (ERROR) - message first occurred at 1:11:08 AM and shows up 594 times
Error executing query: (sqlite3.OperationalError) disk I/O error (Background on this error at: http://sqlalche.me/e/13/e3q8)
9:32:28 AM – Recorder (ERROR) - message first occurred at 1:11:08 AM and shows up 594 times
Error handling request
9:32:22 AM – components/image/__init__.py (ERROR) - message first occurred at 9:31:15 AM and shows up 6 times
Error handling request
9:31:21 AM – components/recorder/util.py (ERROR) - message first occurred at 9:30:44 AM and shows up 3 times
Error executing query: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8)
9:31:21 AM – Recorder (ERROR) - message first occurred at 4:12:00 AM and shows up 4 times
Error executing query: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8)
9:31:21 AM – Recorder (ERROR) - message first occurred at 4:12:00 AM and shows up 12 times
Error trying to serve config-template-card/config-template-card.js
9:31:16 AM – HACS (ERROR) - message first occurred at 9:23:06 AM and shows up 2 times
Error doing job: Task exception was never retrieved
9:30:43 AM – helpers/storage.py (ERROR) - message first occurred at 1:13:15 AM and shows up 43 times
Error doing job: Task exception was never retrieved
9:22:29 AM – util/json.py (ERROR) - message first occurred at 1:22:29 AM and shows up 17 times
JSON file reading failed: /config/.storage/hacs.critical
9:22:29 AM – util/json.py (ERROR) - message first occurred at 1:22:29 AM and shows up 17 times
Can't read last version:
9:18:47 AM – Hass.io (WARNING) - message first occurred at 1:57:27 AM and shows up 9 times
Timeout on /info request
9:18:47 AM – Hass.io (ERROR) - message first occurred at 1:57:27 AM and shows up 9 times
Lamp switch: Already running
6:46:10 AM – Automation (WARNING) - message first occurred at December 27, 2020, 9:28:50 PM and shows up 5 times
Error purging history: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8)
4:12:00 AM – Recorder (WARNING)
Error writing config for mobile_app: [Errno 30] Read-only file system: '/config/.storage/tmp06q2b6rh'
1:11:08 AM – helpers/storage.py (ERROR)
Saving JSON file failed: /config/.storage/mobile_app
1:11:08 AM – util/json.py (ERROR)

Hi everyone,

I’m new to HA. However, I could set up everything including duckdns and google assistant support and the system ran without issues the last two weeks.

Now, I’m facing the same issue here since yesterday. It came out of the sudden. Using HA release 2020.12.2. After restarting my RPi4 it works for about an hour, then it crahes again.

Here is what I can see in my logs:

Error doing job: Future exception was never retrieved

16:25:51 – components/tado/__init__.py (ERROR) - Die Nachricht ist zum ersten Mal um 15:53:21 aufgetreten und erscheint 131 mal

Error in database connectivity during keepalive: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8)

16:25:48 – Recorder (ERROR) - Die Nachricht ist zum ersten Mal um 15:01:57 aufgetreten und erscheint 169 mal

Unhandled exception

16:25:47 – /usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py (ERROR) - Die Nachricht ist zum ersten Mal um 16:25:47 aufgetreten und erscheint 2 mal

Error doing job: Task exception was never retrieved

16:25:39 – helpers/storage.py (ERROR) - Die Nachricht ist zum ersten Mal um 15:12:48 aufgetreten und erscheint 11 mal

Error in database connectivity during commit: (sqlite3.OperationalError) disk I/O error (Background on this error at: http://sqlalche.me/e/13/e3q8). (retrying in 3 seconds)

16:24:59 – Recorder (ERROR) - Die Nachricht ist zum ersten Mal um 15:01:54 aufgetreten und erscheint 173 mal

Error executing query: (sqlite3.OperationalError) disk I/O error (Background on this error at: http://sqlalche.me/e/13/e3q8)

16:24:59 – Recorder (ERROR) - Die Nachricht ist zum ersten Mal um 15:01:54 aufgetreten und erscheint 173 mal

Can't read last version:

16:18:03 – Hass.io (WARNING) - Die Nachricht ist zum ersten Mal um 15:22:53 aufgetreten und erscheint 2 mal

Timeout on /info request

16:18:03 – Hass.io (ERROR) - Die Nachricht ist zum ersten Mal um 15:22:53 aufgetreten und erscheint 2 mal

Error handling request

16:15:52 – components/http/static.py (ERROR) - Die Nachricht ist zum ersten Mal um 16:13:08 aufgetreten und erscheint 42 mal

Error doing job: Task exception was never retrieved

15:59:05 – requirements.py (ERROR)

Unable to install package spotipy==2.16.1: Python path configuration: PYTHONHOME = (not set) PYTHONPATH = (not set) program name = '/usr/local/bin/python3' isolated = 0 environment = 1 user site = 1 import site = 1 sys._base_executable = '/usr/local/bin/python3' sys.base_prefix = '/usr/local' sys.base_exec_prefix = '/usr/local' sys.executable = '/usr/local/bin/python3' sys.prefix = '/usr/local' sys.exec_prefix = '/usr/local' sys.path = [ '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 971, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 914, in _find_spec File "<frozen importlib._bootstrap_external>", line 1342, in find_spec File "<frozen importlib._bootstrap_external>", line 1314, in _get_spec File "<frozen importlib._bootstrap_external>", line 1443, in find_spec File "<frozen importlib._bootstrap_external>", line 1483, in _fill_cache OSError: [Errno 5] I/O error: '/usr/local/lib/python3.8'

15:59:05 – util/package.py (ERROR)

Error fetching openweathermap data: HTTPSConnectionPool(host='api.openweathermap.org', port=443): Max retries exceeded with url: /data/2.5/onecall?APPID=027fa759f74bb77525ca35154d4e7edc&lang=de&lon=10.106673001064339&lat=53.66045336211196 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xaa5a5598>: Failed to establish a new connection: [Errno -3] Try again'))

15:57:49 – OpenWeatherMap (ERROR)

Error handling request

15:50:36 – components/media_player/__init__.py (ERROR)

Error handling request

15:50:31 – components/recorder/util.py (ERROR)

Error executing query: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8)

15:50:31 – Recorder (ERROR)

Error executing query: (sqlite3.OperationalError) unable to open database file (Background on this error at: http://sqlalche.me/e/13/e3q8)

15:50:31 – Recorder (ERROR) - Die Nachricht ist zum ersten Mal um 15:50:31 aufgetreten und erscheint 3 mal

[KD-55XF9005(192.168.178.36):8009] Failed to connect to service BRAVIA-4K-GB-ATV3-45e9a95cfb75c443bb27d7b46ed0c414._googlecast._tcp.local., retrying in 5.0s

14:57:08 – /usr/local/lib/python3.8/site-packages/pychromecast/socket_client.py (ERROR)

[KD-55XF9005(192.168.178.36):8009] Heartbeat timeout, resetting connection

14:56:38 – /usr/local/lib/python3.8/site-packages/pychromecast/socket_client.py (WARNING)

Can anyone help?
Thanks in advance!

Also started getting these errors ever since upgrading to 5.8 and 2020.12.1 a couple of weeks ago. Running on a Pi 4 (SD Card, no SSD). Logging in via SSH, the terminal prompt changes to “bash-5.0#” and none of the ha commands work (not found). Logging in via SCP shows all files/directories are gone/missing. Checking the Configuration from Server Controls returns a missing configuration.yaml. Once I power off/on the Pi it tends to work fine for several days. A couple of times it crashed again within a few minutes.

Popup when trying to access Supervisor… “Client timeout error on API request app/entrypoint.js”

Messages that were in the visible logs. Clicking on “Load full Home Assistant Log” would not load.

10:29:14 PM – Hass.io (ERROR)
Disconnected from MQTT server core-mosquitto:1883 (1)
10:25:39 PM – MQTT (WARNING) - message first occurred at 10:24:38 PM and shows up 3 times
Error doing job: Task exception was never retrieved
10:24:53 PM – helpers/storage.py (ERROR) - message first occurred at 8:39:38 PM and shows up 28 times
Can't read last version:
10:09:56 PM – Hass.io (WARNING) - message first occurred at 9:14:46 PM and shows up 2 times
Timeout on /info request
10:09:56 PM – Hass.io (ERROR) - message first occurred at 9:14:46 PM and shows up 2 times

I downgraded the HA OS to version 4.20 (“ha os update --version 4.11” via SSH). Since then the system is working again without crashing.

FWIW I just had this issue and did a ctrl F5 to clear the cache
just upgraded to 2021.12.0

10 Likes

I had the same thing after migrating my Pi 3b SD card to a pi 4 SSD. Turns out my issue was the SSD - USB adapter I bought didn’t play well with USB 3. Plugging into USB 2 solved my problem.

This worked for me too - CTRL-F5, re-logged in, and it showed up?

4 Likes

Thanks for the clearing the cache recommendation… this worked for me on version 2022.08.5

worked for me as well.
Thank you.

And me too. Running on RPi3.

Worked for me too on a RPi4, but WHY is it necessary with this hack/fix. It shouldn’t be necessary!!