Help setting up TeddyCloud

Hello,

I created a docker container on my Asustor NAS with the standard yaml but I am unable to proceed.

In the wiki it is stated that:
## Generate certificates #

On first run teddyCloud will generate the CA and certificates with the starting date 2015-11-03. Those will be placed in /certs/server/. This also generates the replacement CA for the toniebox certs/server/ca.der.

## Dump certificates of your toniebox #

You’ll need the flash:/cert/ca.der (Boxine CA), flash:/cert/client.der (Client Cert) and flash:/cert/private.der (Client private key). Place those files under /certs/client/*. You can either power the box with the battery (be sure it is not empty) or with the power supply. (recommended)

Keep a backup of the certificates, especially the client.der and private.der. Without it you won’t be able to connect to the cloud anymore!

What does CA stand for and where is /certs/server/? The folders created on my file systems with teddycloud are empty.

Thanks.

CA → https://www.security-insider.de/was-ist-eine-ca-a-696169/

The CERTs/server folder should be within your docker container.

—> sudo docker exec -it teddycloud bash

And then

cd teddycloud/certs/server

And then

Is

Can you have a look into your docker logs and post them here?

—> sudo docker logs teddycloud

?

Thank you for your comment.

You are right, the files are there. I am just unable to see them through the explorer I guess.

root@teddycloud:/teddycloud/certs/server# ls
ca-key.pem ca-root.pem ca.der teddy-cert.pem teddy-key.pem

The last command does not work (command not found)

The last one must be done outside the docker. Forgot to mention that.

INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections //many many lines of the first two in the beginning and in the end

INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |server.c:0673:server_init| 2 open HTTPS connections
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |handler_api.c:0388:handleApiTrigger| Triggered ReloadConfig
INFO |settings.c:0770:settings_load_ovl| Load settings from /teddycloud/config/config.ini
INFO |tls_adapter.c:0208:read_certificate| File ‘/teddycloud/certs/server/ca-root.pem’ assumed PEM style
INFO |tls_adapter.c:0205:read_certificate| File ‘/teddycloud/certs/server/ca-key.pem’ detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0208:read_certificate| File ‘/teddycloud/certs/server/teddy-cert.pem’ assumed PEM style
INFO |tls_adapter.c:0205:read_certificate| File ‘/teddycloud/certs/server/teddy-key.pem’ detected as DER style RSA PRIVATE KEY
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/ca.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/ca.der’ failed
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/client.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/client.der’ failed
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/private.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/private.der’ failed
INFO |settings.c:0770:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
INFO |handler_api.c:0394:handleApiTrigger| Triggered WriteConfig
INFO |settings.c:0670:settings_save_ovl| Save settings to /teddycloud/config/config.ini
INFO |settings.c:0670:settings_save_ovl| Save settings to /teddycloud/config/config.overlay.ini
INFO |settings.c:1420:settings_loop| Settings file changed. Reloading.
INFO |settings.c:0770:settings_load_ovl| Load settings from /teddycloud/config/config.ini
INFO |tls_adapter.c:0208:read_certificate| File ‘/teddycloud/certs/server/ca-root.pem’ assumed PEM style
INFO |tls_adapter.c:0205:read_certificate| File ‘/teddycloud/certs/server/ca-key.pem’ detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0208:read_certificate| File ‘/teddycloud/certs/server/teddy-cert.pem’ assumed PEM style
INFO |tls_adapter.c:0205:read_certificate| File ‘/teddycloud/certs/server/teddy-key.pem’ detected as DER style RSA PRIVATE KEY
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/ca.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/ca.der’ failed
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/client.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/client.der’ failed
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/private.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/private.der’ failed
INFO |settings.c:0770:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
INFO |handler_api.c:0381:handleApiTrigger| Triggered Restart
INFO |server.c:0698:server_init| Exiting TeddyCloud with returncode -2
INFO |handler_api.c:0374:handleApiTrigger| Triggered Exit

=================================================================
==9==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 465 byte(s) in 17 object(s) allocated from:
#0 0x55d9f4f0c927 in __interceptor_malloc (/usr/local/bin/teddycloud+0x650927)
#1 0x55d9f5001151 in custom_asprintf src/server_helpers.c:39
#2 0x55d9f4ff0b60 in mqtt_init src/mqtt.c:947
#3 0x55d9f4e76da0 in main src/main.c:566
#4 0x7f24da05dd8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 384 byte(s) in 17 object(s) allocated from:
#0 0x55d9f4f0c927 in __interceptor_malloc (/usr/local/bin/teddycloud+0x650927)
#1 0x55d9f4fe7f9b in mqtt_topic_str src/mqtt.c:86
#2 0x55d9f4ff0bc2 in mqtt_init src/mqtt.c:949
#3 0x55d9f4e76da0 in main src/main.c:566
#4 0x7f24da05dd8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 367 byte(s) in 17 object(s) allocated from:
#0 0x55d9f4f0c927 in __interceptor_malloc (/usr/local/bin/teddycloud+0x650927)
#1 0x55d9f4fe7f9b in mqtt_topic_str src/mqtt.c:86
#2 0x55d9f4ff0b91 in mqtt_init src/mqtt.c:948
#3 0x55d9f4e76da0 in main src/main.c:566
#4 0x7f24da05dd8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 197 byte(s) in 17 object(s) allocated from:
#0 0x55d9f4f0c927 in __interceptor_malloc (/usr/local/bin/teddycloud+0x650927)
#1 0x55d9f4fe7e11 in mqtt_settingname_clean src/mqtt.c:58
#2 0x55d9f4ff0add in mqtt_init src/mqtt.c:945
#3 0x55d9f4e76da0 in main src/main.c:566
#4 0x7f24da05dd8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 130 byte(s) in 10 object(s) allocated from:
#0 0x55d9f4eb3a67 in strdup (/usr/local/bin/teddycloud+0x5f7a67)
#1 0x55d9f4f9c4cb in handleApiFileIndex src/handler_api.c:771
#2 0x55d9f4ff7a99 in httpServerRequestCallback src/server.c:326
#3 0x55d9f518cbd6 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
#4 0x7f24da0c8ac2 (/lib/x86_64-linux-gnu/libc.so.6+0x94ac2)

Direct leak of 38 byte(s) in 1 object(s) allocated from:
#0 0x55d9f4f0c927 in __interceptor_malloc (/usr/local/bin/teddycloud+0x650927)
#1 0x55d9f5001151 in custom_asprintf src/server_helpers.c:39
#2 0x55d9f50418d7 in tonies_init src/toniesJson.c:53
#3 0x55d9f4fffdcf in server_init src/server.c:624
#4 0x55d9f4e76dcd in main src/main.c:567
#5 0x7f24da05dd8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 35 byte(s) in 1 object(s) allocated from:
#0 0x55d9f4f0c927 in __interceptor_malloc (/usr/local/bin/teddycloud+0x650927)
#1 0x55d9f5001151 in custom_asprintf src/server_helpers.c:39
#2 0x55d9f50418f8 in tonies_init src/toniesJson.c:54
#3 0x55d9f4fffdcf in server_init src/server.c:624
#4 0x55d9f4e76dcd in main src/main.c:567
#5 0x7f24da05dd8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 33 byte(s) in 1 object(s) allocated from:
#0 0x55d9f4f0c927 in __interceptor_malloc (/usr/local/bin/teddycloud+0x650927)
#1 0x55d9f5001151 in custom_asprintf src/server_helpers.c:39
#2 0x55d9f50418b6 in tonies_init src/toniesJson.c:52
#3 0x55d9f4fffdcf in server_init src/server.c:624
#4 0x55d9f4e76dcd in main src/main.c:567
#5 0x7f24da05dd8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

Direct leak of 18 byte(s) in 18 object(s) allocated from:
#0 0x55d9f4f0c927 in __interceptor_malloc (/usr/local/bin/teddycloud+0x650927)
#1 0x55d9f5001151 in custom_asprintf src/server_helpers.c:39
#2 0x55d9f501aad5 in settings_save_ovl src/settings.c:733
#3 0x55d9f501cebb in settings_save src/settings.c:656
#4 0x55d9f4f95e57 in handleApiTrigger src/handler_api.c:396
#5 0x55d9f4ff7a99 in httpServerRequestCallback src/server.c:326
#6 0x55d9f518cbd6 in httpConnectionTask src/cyclone/cyclone_tcp/http/http_server.c:541
#7 0x7f24da0c8ac2 (/lib/x86_64-linux-gnu/libc.so.6+0x94ac2)

SUMMARY: AddressSanitizer: 1667 byte(s) leaked in 99 allocation(s).
TeddyCloud v0.5.2 (454631f) - 2024-05-13 12:12:26 +0000 ubuntu linux-x86_64(64)

INFO |settings.c:0770:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
INFO |settings.c:0770:settings_load_ovl| Load settings from /teddycloud/config/config.ini
INFO |tls_adapter.c:0208:read_certificate| File ‘/teddycloud/certs/server/ca-root.pem’ assumed PEM style
INFO |tls_adapter.c:0205:read_certificate| File ‘/teddycloud/certs/server/ca-key.pem’ detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0208:read_certificate| File ‘/teddycloud/certs/server/teddy-cert.pem’ assumed PEM style
INFO |tls_adapter.c:0205:read_certificate| File ‘/teddycloud/certs/server/teddy-key.pem’ detected as DER style RSA PRIVATE KEY
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/ca.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/ca.der’ failed
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/client.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/client.der’ failed
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/private.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/private.der’ failed
INFO |settings.c:0770:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
INFO |tls_adapter.c:0394:tls_adapter_init| Loading certificates…
INFO |tls_adapter.c:0208:read_certificate| File ‘/teddycloud/certs/server/ca-root.pem’ assumed PEM style
INFO |tls_adapter.c:0205:read_certificate| File ‘/teddycloud/certs/server/ca-key.pem’ detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0208:read_certificate| File ‘/teddycloud/certs/server/teddy-cert.pem’ assumed PEM style
INFO |tls_adapter.c:0205:read_certificate| File ‘/teddycloud/certs/server/teddy-key.pem’ detected as DER style RSA PRIVATE KEY
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/ca.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/ca.der’ failed
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/client.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/client.der’ failed
ERROR|tls_adapter.c:0193:read_certificate| Failed to open ‘/teddycloud/certs/client/private.der’ for cert type detection
ERROR|tls_adapter.c:0380:load_cert| Loading cert ‘/teddycloud/certs/client/private.der’ failed
INFO |toniesJson.c:0279:tonies_readJson| Trying to read /teddycloud/config/tonies.custom.json with size 2
INFO |toniesJson.c:0279:tonies_readJson| Trying to read /teddycloud/config/tonies.json with size 4850003
INFO |toniesJson.c:0099:tonies_update| Updating tonies.json from api.revvox.de
INFO |cloud_request.c:0162:web_request| Connecting to HTTP server api.revvox.de:443
INFO |cloud_request.c:0212:web_request| trying IP: 157.90.183.226
INFO |cloud_request.c:0038:httpClientTlsInitCallbackBase| Initializing TLS…
cyclone/cyclone_crypto/cipher/aes.c:268:55: runtime error: left shift of 208 by 24 places cannot be represented in type ‘int’
cyclone/cyclone_crypto/cipher/aes.c:260:47: runtime error: left shift of 134 by 24 places cannot be represented in type ‘int’
cyclone/cyclone_crypto/cipher/aes.c:385:34: runtime error: left shift of 226 by 24 places cannot be represented in type ‘int’
cyclone/cyclone_crypto/cipher/aes.c:400:34: runtime error: left shift of 143 by 24 places cannot be represented in type ‘int’
INFO |cloud_request.c:0073:httpClientTlsInitCallbackBase| Initializing TLS done
cyclone/cyclone_crypto/cipher/aes.c:395:34: runtime error: left shift of 232 by 24 places cannot be represented in type ‘int’
src/cyclone/cyclone_crypto/mpi.c:792:48: runtime error: left shift of 154 by 24 places cannot be represented in type ‘int’
cyclone/cyclone_crypto/cipher/aes.c:390:34: runtime error: left shift of 201 by 24 places cannot be represented in type ‘int’
INFO |cloud_request.c:0317:web_request| HTTP code: 302
INFO |cloud_request.c:0330:web_request| Redirecting to: https://raw.githubusercontent.com/toniebox-reverse-engineering/tonies-json/release/tonies.json
INFO |cloud_request.c:0162:web_request| Connecting to HTTP server raw.githubusercontent.com:443
INFO |cloud_request.c:0212:web_request| trying IP: 185.199.111.133
INFO |cloud_request.c:0038:httpClientTlsInitCallbackBase| Initializing TLS…
INFO |cloud_request.c:0073:httpClientTlsInitCallbackBase| Initializing TLS done
INFO |cloud_request.c:0317:web_request| HTTP code: 200
INFO |cloud_request.c:0380:web_request| Content-Type is text/plain; charset=utf-8
INFO |cloud_request.c:0458:web_request| Connection closed
INFO |toniesJson.c:0123:tonies_update| … success updating tonies.json from api.revvox.de, reloading
INFO |toniesJson.c:0279:tonies_readJson| Trying to read /teddycloud/config/tonies.custom.json with size 2
INFO |toniesJson.c:0279:tonies_readJson| Trying to read /teddycloud/config/tonies.json with size 4851934
INFO |toniesJson.c:0210:tonieboxes_update| Updating tonies.json from api.revvox.de
INFO |cloud_request.c:0162:web_request| Connecting to HTTP server api.revvox.de:443
INFO |cloud_request.c:0212:web_request| trying IP: 157.90.183.226
INFO |cloud_request.c:0038:httpClientTlsInitCallbackBase| Initializing TLS…
INFO |cloud_request.c:0073:httpClientTlsInitCallbackBase| Initializing TLS done
INFO |cloud_request.c:0317:web_request| HTTP code: 302
INFO |cloud_request.c:0330:web_request| Redirecting to: https://raw.githubusercontent.com/toniebox-reverse-engineering/tonies-json/release/tonieboxes.json
INFO |cloud_request.c:0162:web_request| Connecting to HTTP server raw.githubusercontent.com:443
INFO |cloud_request.c:0212:web_request| trying IP: 185.199.111.133
INFO |cloud_request.c:0038:httpClientTlsInitCallbackBase| Initializing TLS…
INFO |cloud_request.c:0073:httpClientTlsInitCallbackBase| Initializing TLS done
INFO |cloud_request.c:0317:web_request| HTTP code: 200
INFO |cloud_request.c:0380:web_request| Content-Type is text/plain; charset=utf-8
INFO |cloud_request.c:0458:web_request| Connection closed
INFO |toniesJson.c:0237:tonieboxes_update| … success updating tonieboxes.json from api.revvox.de, reloading
INFO |toniesJson.c:0279:tonies_readJson| Trying to read /teddycloud/config/tonies.custom.json with size 2
INFO |toniesJson.c:0279:tonies_readJson| Trying to read /teddycloud/config/tonies.json with size 4851934
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |cloud_request.c:0140:web_request| Cloud requests generally blocked in settings
ERROR|handler_reverse.c:0034:handleReverse| cloud_request_get() failed
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 0 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |server.c:0673:server_init| 1 open HTTPS connections
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0684:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
WARN |server_helpers.c:0792:httpServerUriNotFoundCallback| >> 404 /shelly
WARN |server_helpers.c:0792:httpServerUriNotFoundCallback| >> 404 /shelly
WARN |server_helpers.c:0792:httpServerUriNotFoundCallback| >> 404 /shelly
WARN |server_helpers.c:0792:httpServerUriNotFoundCallback| >> 404 /shelly
WARN |server_helpers.c:0792:httpServerUriNotFoundCallback| >> 404 /shelly
INFO |server.c:0673:server_init| 0 open HTTPS connections
WARN |server_helpers.c:0792:httpServerUriNotFoundCallback| >> 404 /shelly
WARN |server_helpers.c:0792:httpServerUriNotFoundCallback| >> 404 /shelly

Ok. Teddycloud is running, you have to extract the certificates from the box and place it in teddycloud in the settings section of the new web gui.

Currently cloud seems to be disabled also.

Which type of box do you have?

I have the CC3200 chip (??? special edition box).

I have two questions:

  1. How can I save a backup of the existing certificates?
  2. How can I copy the newly made certificates onto the box? In another thread a way via chrome was described. (Teddycloud ESP32 newbie documentation)

Just follow the wiki step by step for cc3200 variant.

https://tonies-wiki.revvox.de/docs/tools/teddycloud/

You will need some additional equipment (uart, tag connector or thin wires (0.35mm resistor wires as Tag Connect alternative - TC2050)).

Join the telegram group for more support if necessary.