Hi,
thanks for all the great work and the guides but somehow I’m stuck and feel lost.
Managed to flash the box, got the certs and setup a docker container in Unraid.
TeddyCloud got an dedicated IP: 192.168.1.45
Web UI on port 80
SSL-Certs on port 443
Configured the security settings in my Ubiquiti router to allow traffic.
Web UI can be reached via browser and the SSL certs port as well.
simon@MBP-von-Simon ~ % nc -zv 192.168.1.45 443
Connection to 192.168.1.45 port 443 [tcp/https] succeeded!
Logs from router show that the Toniebox tries to reach 192.168.1.45:443.
TeddyCloud shows established connection to Boxine.
But everytime I do a freshness check the reply is code word owl and also I cannot find the box with TeddyCloud.
Any ideas?
Log from TeddyCloud
INFO |handler_api.c:0501:handleApiSettingsSet| Setting: 'core.host_url' to 'http://192.168.1.45'
INFO |settings.c:0860:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
INFO |handler_api.c:0407:handleApiTrigger| Triggered WriteConfig
INFO |settings.c:0756:settings_save_ovl| Save settings to /teddycloud/config/config.ini
INFO |settings.c:0756:settings_save_ovl| Save settings to /teddycloud/config/config.overlay.ini
INFO |settings.c:1521:settings_loop| Settings file changed. Reloading.
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/ca.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/client.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/client/private.der' detected as DER style RSA PRIVATE KEY
INFO |settings.c:0860:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |handler_sse.c:0045:handleApiSse| SSE Client connected in slot 0 in total 1 clients
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |handler_api.c:2389:handleApiTonieboxJson| Trying to read /teddycloud/config/tonieboxes.json with size 3022
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |handler_api.c:2389:handleApiTonieboxJson| Trying to read /teddycloud/config/tonieboxes.json with size 3022
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |handler_sse.c:0070:handleApiSse| SSE Client disconnected from slot 0, 0 clients left
ERROR|handler_sse.c:0073:handleApiSse| SSE Client with error Write failed [521]
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
TeddyCloud v0.6.4 (f13703a) - 2025-03-05 08:01:37 +0000 ubuntu linux-x86_64(64)
INFO |settings.c:0860:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
INFO |settings.c:0860:settings_load_ovl| Load settings from /teddycloud/config/config.ini
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:1670:settings_load_certs_id| ********************************************
INFO |settings.c:1671:settings_load_certs_id| No certificates found. Generating.
INFO |settings.c:1672:settings_load_certs_id| This will take several minutes...
INFO |settings.c:1673: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:0437:cert_generate_default| Generating CA certificate...
INFO |cert.c:0042:cert_generate_rsa| Generating RSA Key... (slow, very slow!!!)
Running teddycloud...
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:0471: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!!!)
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/ca.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/client.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/client/private.der' detected as DER style RSA PRIVATE KEY
INFO |settings.c:1675:settings_load_certs_id| ********************************************
INFO |settings.c:1676:settings_load_certs_id| FINISHED
INFO |settings.c:1677:settings_load_certs_id| ********************************************
INFO |settings.c:0860:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
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/ca.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/client.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/client/private.der' detected as DER style RSA PRIVATE KEY
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 5303264
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 5303264
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.108.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 5303264
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |server.c:0961:server_init| 1 open HTTPS API connections
WARN |tls_server_fsm.c:0260:tlsPerformServerHandshake| TLS handshake failure!
WARN |tls_server_fsm.c:0260:tlsPerformServerHandshake| TLS handshake failure!
WARN |tls_server_fsm.c:0260:tlsPerformServerHandshake| TLS handshake failure!
WARN |tls_server_fsm.c:0260:tlsPerformServerHandshake| TLS handshake failure!
INFO |server.c:0961:server_init| 0 open HTTPS API connections
WARN |tls_server_fsm.c:0260:tlsPerformServerHandshake| TLS handshake failure!
WARN |tls_server_fsm.c:0260:tlsPerformServerHandshake| TLS handshake failure!
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: 18.156.186.144
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: 18.156.186.144
INFO |cloud_request.c:0486:web_request| Response: '1748271123'
INFO |cloud_request.c:0486:web_request| Response: '1748271123'
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
INFO |handler_api.c:2389:handleApiTonieboxJson| Trying to read /teddycloud/config/tonieboxes.json with size 3022
INFO |server.c:0961:server_init| 1 open HTTPS API connections
INFO |server.c:0961:server_init| 0 open HTTPS API connections
I created the certs once more cause I read somewhere that that might solve the issue.
altUrl.custom.305.json
{
"general": {
"_desc": "Changes Boxine URLs to custom ones.",
"_memPos": "",
"_fwVer": "3.0.5+"
},
"searchAndReplace": [{
"_desc": "prod.de.tbs.toys to 192.168.1.45",
"search": ["70", "72", "6f", "64", "2e", "64", "65", "2e", "74", "62", "73", "2e", "74", "6f", "79", "73", "00"],
"replace": ["31", "39", "32", "2e", "31", "36", "38", "2e", "31", "2e", "34", "35", "00", "??", "??", "??", "??"]
}, {
"_desc": "rtnl.bxcl.de to 192.168.1.45",
"search": ["72", "74", "6e", "6c", "2e", "62", "78", "63", "6c", "2e", "64", "65", "00"],
"replace": ["31", "39", "32", "2e", "31", "36", "38", "2e", "31", "2e", "34", "35", "00"]
}]
}