# Gladys HS, need help!

**URL:** <https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736>\
**Category:** Configuration\
**Created:** [October 5, 2025, 6:04pm UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736 "2025-10-05T18:04:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [October 5, 2025, 6:04pm UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/1 "2025-10-05T18:04:51Z")

</div>

Good evening everyone,

I’m left without an assistant tonight: Gladys won’t start anymore, and I don’t really know why. I have these entries in the logs:

\u003e 2025-10-05T20:02:51+0200 \u003cerror\u003e index.js:16 (process.\u003canonymous\u003e) [Error: Connection Error:

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 6, 2025, 7:19am UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/2 "2025-10-06T07:19:10Z")

</div>

Hi @jean_bruder, do you have the rest of the logs?

This log indicates that DuckDB closed the connection to the file on disk, but in my opinion that’s not the underlying issue in your case.

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [October 6, 2025, 3:11pm UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/3 "2025-10-06T15:11:58Z")

</div>

Hello @pierre-gilles

Can you remind me how to provide you with the full support log?

Thanks,  
Jean

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 6, 2025, 3:14pm UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/4 "2025-10-06T15:14:43Z")

</div>

You can do:

```auto
docker logs gladys

```

If you want to limit to the last 1000 logs, for example:

```auto
docker logs gladys --tail=1000

```

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [October 6, 2025, 9:20pm UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/5 "2025-10-06T21:20:13Z")

</div>

Good evening @pierre-gilles

The only lines I have are the following when I display the logs via `docker-compose logs gladys` :

\u003e Gladys | 2025-10-06T23:17:08+0200 \u003cerror\u003e index.js:15 (process.\u003canonymous\u003e) unhandledRejection catched: Promise {  
Gladys | \u003crejected\u003e [Error: Connection Error: Connection was never established or has been closed already] {  
Gladys | errno: -1,  
Gladys | code: ‹&nbsp;DUCKDB\_NODEJS\_ERROR&nbsp;›,  
Gladys | errorType: ‹&nbsp;Connection&nbsp;›  
Gladys | }  
Gladys | }  
Gladys | 2025-10-06T23:17:08+0200 \u003cerror\u003e index.js:16 (process.\u003canonymous\u003e) [Error: Connection Error: Connection was never established or has been closed already] {  
Gladys | errno: -1,  
Gladys | code: ‹&nbsp;DUCKDB\_NODEJS\_ERROR&nbsp;›,  
Gladys | errorType: ‹&nbsp;Connection&nbsp;›  
Gladys | }  
Gladys | 2025-10-06T23:17:38+0200 \u003cerror\u003e index.js:15 (process.\u003canonymous\u003e) unhandledRejection catched: Promise {  
Gladys | \u003crejected\u003e [Error: Connection Error: Connection was never established or has been closed already] {  
Gladys | errno: -1,  
Gladys | code: ‹&nbsp;DUCKDB\_NODEJS\_ERROR&nbsp;›,  
Gladys | errorType: ‹&nbsp;Connection&nbsp;›  
Gladys | }  
Gladys | }  
Gladys | 2025-10-06T23:17:38+0200 \u003cerror\u003e index.js:16 (process.\u003canonymous\u003e) [Error: Connection Error: Connection was never established or has been closed already] {  
Gladys | errno: -1,  
Gladys | code: ‹&nbsp;DUCKDB\_NODEJS\_ERROR&nbsp;›,  
Gladys | errorType: ‹&nbsp;Connection&nbsp;›  
Gladys | }

Could this help? Thanks in advance,  
Jean

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [October 6, 2025, 9:36pm UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/6 "2025-10-06T21:36:05Z")

</div>

Good evening @pierre-gilles

I just fixed the error by recreating the file `gladys-production.duckdb.wal` on Gladys startup. Well, I lost the sensors’ state history, a shame for the temperature and humidity statistics 😉

Sorry for the disturbance/noise …

Have a nice evening,  
Jean

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 7, 2025, 6:50am UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/7 "2025-10-07T06:50:40Z")

</div>

What kind of hardware are you running Gladys on?

Unless you did something wrong, it’s not normal to have database problems like that.

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [October 7, 2025, 9:08am UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/8 "2025-10-07T09:08:40Z")

</div>

Hello @pierre-gilles

I think this was due to a power outage that occurred at the beginning of the week… Of course, that doesn’t help…

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 7, 2025, 3:32pm UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/9 "2025-10-07T15:32:10Z")

</div>

DuckDB is an ACID-compliant database, so it’s supposed to work correctly even with a power outage that interrupts your system while in use.

> **[Changing Data with Confidence and ACID](https://duckdb.org/2024/09/25/changing-data-with-confidence-and-acid)**
>
> Transactions are key features in database management systems and are also beneficial for data analysis workloads. DuckDB supports fully ACID transactions, confirmed by the TPC-H benchmark's test suite.

However, if you’re using a storage medium that can be corrupted in that kind of situation (e.g., a microSD), then DuckDB can’t do anything about it.

You’re on a mini-PC with a reliable SSD, right?

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [October 7, 2025, 6:27pm UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/10 "2025-10-07T18:27:10Z")

</div>

Good evening @pierre-gilles

Gladys (and my home automation ecosystem) runs on a Rock64 (equivalent to a Raspberry Pi 4), hosted on an SSD. I’ll dig through the available logs, but since it’s resolved, I won’t spend too much time…

Have a nice evening,  
Jean

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [October 8, 2025, 11:04am UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/11 "2025-10-08T11:04:51Z")

</div>

I think you’ll need to invest in a UPS or a battery HAT for your Rock64 so you don’t have this kind of problem during power outages.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 8, 2025, 5:45pm UTC](https://community.gladysassistant.com/t/gladys-hs-besoin-daide/9736/12 "2025-10-08T17:45:07Z")

</div>

Normally, none of that is needed, Gladys uses robust technologies (SQLite and DuckDB) which are both ACID-compliant (in French → [Propriétés ACID — Wikipédia](https://fr.wikipedia.org/wiki/Propri%C3%A9t%C3%A9s_ACID)).

A power outage usually has no impact on the reliability of these database systems, which are designed for that.

I had a power cut this morning (first time in a very long time 😂), and everything resumed smoothly even though I have a heavily loaded database.

If @jean_bruder has to invest in something, it would rather be a robust mini-PC, I’d say 😛

The Beelink mini S13 is a very good model that I recommend (16 GB of RAM, low-power Intel N150 CPU, 512 GB SSD). That’s what I offer via the [starter kit](https://gladysassistant.com/fr/starter-kit/) but it can be found on plenty of other sites 😉
