Error: AddressSanitizer: CHECK failed

Dear all,

I tried to setup Teddy Cloud on my Rasperberry Pi 5 using Home Assistant OS.

I used the following compose.yaml to add the stack in Portainer:

Blockquote
services:
teddycloud:
container_name: teddycloud
hostname: teddycloud
image: Package teddycloud · GitHub
# ports:
# - 80:80 #optional (for the webinterface)
# - 8443:8443 #optional (for the webinterface)
# - 443:443 #Port is needed for the connection for the box, must not be changed!
volumes:
- certs:/teddycloud/certs #certificates of the server
- config:/teddycloud/config config file for the server and the boxes
- content:/teddycloud/data/content #microSD representation for the boxes
- library:/teddycloud/data/library #library to manage content
- custom_img:/teddycloud/data/www/custom_img #location to store custom images for custom tonies json
- firmware:/teddycloud/data/firmware #firmware backups
- cache:/teddycloud/data/cache #img cache for content images
restart: unless-stopped
volumes:
certs:
config:
content:
library:
custom_img:
firmware:
cache:

Also tried with image Package teddycloud · GitHub.

Stack is setup successfully , but in container log I see the following repeating issue:

Blockquote
Running teddycloud…

AddressSanitizer: CHECK failed: sanitizer_allocator_primary64.h:131 “((kSpaceBeg)) == ((address_range.Init(TotalSpaceSize, PrimaryAllocatorName, kSpaceBeg)))” (0x500000000000, 0xfffffffffffffff4) (tid=8)

<empty stack>

Do you have any idea to solve this issue?
Thanks!

Switch to the debian image

Hi I tried with
…ghcr.io/toniebox-reverse-engineering/teddycloud:latest_debian

Okay. Switching to debian solide that Problem recently. But maybe there is a new Problem.

You might try the develop_debian image. But you might want a few minutes as it’s Building just now.

thanks henryk. with develop version it was working:

Blockquote
Running teddycloud…
TeddyCloud vX.X.X (609d131) - 2025-07-14 12:31:41 +0000 debian linux-aarch64(64)
INFO |settings.c:0862:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
WARN |settings.c:0870:settings_load_ovl| Config file does not exist, creating it…
INFO |settings.c:0758:settings_save_ovl| Save settings to /teddycloud/config/config.overlay.ini
INFO |settings.c:0862:settings_load_ovl| Load settings from /teddycloud/config/config.ini
WARN |settings.c:0870:settings_load_ovl| Config file does not exist, creating it…
INFO |settings.c:0758:settings_save_ovl| Save settings to /teddycloud/config/config.ini
INFO |settings.c:0862:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
INFO |tls_adapter.c:0390:tls_adapter_init| Loading certificates…
ERROR|tls_adapter.c:0189:read_certificate| Failed to open ‘/teddycloud/certs/server/ca-root.pem’ for cert type detection
ERROR|tls_adapter.c:0376:load_cert| Loading cert ‘/teddycloud/certs/server/ca-root.pem’ failed
INFO |settings.c:1679:settings_load_certs_id| ********************************************
INFO |settings.c:1680:settings_load_certs_id| No certificates found. Generating.
INFO |settings.c:1681:settings_load_certs_id| This will take several minutes…
INFO |settings.c:1682:settings_load_certs_id| ********************************************
ERROR|tls_adapter.c:0189:read_certificate| Failed to open ‘/teddycloud/certs/server/ca-root.pem’ for cert type detection
ERROR|tls_adapter.c:0376:load_cert| Loading cert ‘/teddycloud/certs/server/ca-root.pem’ failed
ERROR|tls_adapter.c:0189:read_certificate| Failed to open ‘/teddycloud/certs/server/ca-key.pem’ for cert type detection
ERROR|tls_adapter.c:0376:load_cert| Loading cert ‘/teddycloud/certs/server/ca-key.pem’ failed
INFO |cert.c:0434:cert_generate_default| Generating CA certificate…
INFO |cert.c:0042:cert_generate_rsa| Generating RSA Key… (slow, very slow!!!)
INFO |tls_adapter.c:0204:read_certificate| File ‘/teddycloud/certs/server/ca-root.pem’ assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File ‘/teddycloud/certs/server/ca-key.pem’ detected as DER style RSA PRIVATE KEY
ERROR|tls_adapter.c:0189:read_certificate| Failed to open ‘/teddycloud/certs/server/teddy-cert.pem’ for cert type detection
ERROR|tls_adapter.c:0376:load_cert| Loading cert ‘/teddycloud/certs/server/teddy-cert.pem’ failed
INFO |cert.c:0468:cert_generate_default| Generating Server certificate…
INFO |cert.c:0079:cert_load_ca| Load CA certificate…
INFO |cert.c:0103:cert_load_ca| Load CA key…
INFO |cert.c:0042:cert_generate_rsa| Generating RSA Key… (slow, very slow!!!)