Codewort Eule - Teddycloud - Failed to connect to HTTP server

Hi, somehow Teddycloud is not connecting to Boxine. Here is the log from Docker, would appreciate your help :slight_smile:

2025-01-24 16:44:34 INFO |server.c:0959:server_init| 2 open HTTPS API connections
2025-01-24 16:44:35 INFO |server.c:0430:httpServerRequestCallback| UA=toniebox-esp32-eu/v5.233.0, ESPFW=eu/v5.233.0
2025-01-24 16:44:35 INFO |handler_cloud.c:0448:handleCloudContent| >> client requested content for rUID ee96900f500123e0, auth 8512E8A5…
2025-01-24 16:44:35 INFO |handler_cloud.c:0724:handleCloudContent| Serve cloud content from /v2/content/ee96900f500123e0
2025-01-24 16:44:35 INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
2025-01-24 16:44:35 INFO |cloud_request.c:0252:web_request| trying IP: 3.69.182.181
2025-01-24 16:44:35 ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Not Modified error=End of file reached [304]

When I restarted Docker, I had a similar entry in the log file:

025-01-24 16:55:20 INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
2025-01-24 16:55:20 INFO |cloud_request.c:0252:web_request| trying IP: 18.156.186.144
2025-01-24 16:55:20 ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Not Modified error=End of file reached [304]
2025-01-24 16:55:20 INFO |handler_cloud.c:0941:handleCloudFreshnessCheck| Freshness check response: size=14, content=

The light on the webinterface for Boxine is green though.

Does the TeddyCloud container have access to internet?

Looks like your Toniebox might request a firmware update (as it‘s outdated).

Could you please restart teddyCloud within the GUI and post the complete log during startup?

The Toniebox is maybe two weeks old and was updated right away during the setup on my mobile phone.

Hi, here is the Logfile:
https://pastebin.com/DTL3ni0T

Would really appreciate if you can look into it and share your thoughts. Thank you in advance!

Why aren’t you using the latest version?

Besides that I can’t see any connection from your box in the logs. So I would assume the box does not try to access teddycloud

Hello.
Could anyone help me. I’ve the same problem and can’t find any solution.
I’m running TeddyCloud in a Docker under Unraid. The container seems to have acess to the internet. It connects to github and apt-get update is possible. But TeddyCloud don’t have acess to the Toniecloud.
My sons brithday is in a few days and I hope to get it running until then.

Please help me.

Here the log form the last restart. The button from Boxine/Toniecloud is till red.

INFO |settings.c:0860:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
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
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/teddy-cert.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/ca.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/client.der' assumed PEM style
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/private.der' detected as DER style CERTIFICATE
INFO |settings.c:0860:settings_load_ovl| Load settings from /teddycloud/config/config.ini
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
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/teddy-cert.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/ca.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/client.der' assumed PEM style
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/private.der' detected as DER style CERTIFICATE
INFO |settings.c:0860:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
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
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/teddy-cert.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/ca.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/client.der' assumed PEM style
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/private.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0390:tls_adapter_init| Loading certificates...
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
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/teddy-cert.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/ca.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/client.der' assumed PEM style
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/f0XXXXXXX78/private.der' detected as DER style CERTIFICATE
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.custom.json with size 2
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.json with size 5661890
INFO |toniesJson.c:0100:tonies_update| Updating tonies.json from api.revvox.de...
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server api.revvox.de:443...
INFO |cloud_request.c:0252:web_request|   trying IP: 157.90.183.226
INFO |cloud_request.c:0389:web_request| Redirecting to: https://raw.githubusercontent.com/toniebox-reverse-engineering/tonies-json/release/tonies.json
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server raw.githubusercontent.com:443...
INFO |cloud_request.c:0252:web_request|   trying IP: 185.199.111.133
INFO |toniesJson.c:0124:tonies_update| ... success updating tonies.json from api.revvox.de, reloading
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.custom.json with size 2
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.json with size 5661890
INFO |toniesJson.c:0211:tonieboxes_update| Updating tonies.json from api.revvox.de...
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server api.revvox.de:443...
INFO |cloud_request.c:0252:web_request|   trying IP: 157.90.183.226
INFO |cloud_request.c:0389:web_request| Redirecting to: https://raw.githubusercontent.com/toniebox-reverse-engineering/tonies-json/release/tonieboxes.json
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server raw.githubusercontent.com:443...
INFO |cloud_request.c:0252:web_request|   trying IP: 185.199.111.133
INFO |toniesJson.c:0238:tonieboxes_update| ... success updating tonieboxes.json from api.revvox.de, reloading
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.custom.json with size 2
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.json with size 5661890
Running teddycloud...

INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
INFO |cloud_request.c:0252:web_request|   trying IP: 3.74.99.150
ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Not Modified error=End of file reached [304]
ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
INFO |cloud_request.c:0252:web_request|   trying IP: 3.74.99.150
ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Not Modified error=End of file reached [304]
ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
INFO |cloud_request.c:0252:web_request|   trying IP: 3.74.99.150
ERROR|cloud_request.c:0262:web_request| Failed to connect to HTTP server! HTTP=Not Modified error=End of file reached [304]
ERROR|handler_reverse.c:0029:handleReverse| cloud_request_get() failed