Unable to Connect CC3200-Box to TeddyCloud

Like others, I’m pretty much at the end of my rope when it comes to connecting the CC3200 to TeddyCloud.

TC runs in a Docker container on an Ubuntu server.
The connection with Boxine and TC itself is online (green).

The Toniebox and the TeddyCloud are currently the only participants in a separate VLAN and communicate or can be pinged to each other.

I can’t find the error at the moment, but I suspect that I’m having problems with the configurations/patches.

As soon as I switch to “ofw2”, I get the error message “EULE/OWL”.
However, I have also not understood which hostname I have to enter in the altUrl.custom.305, as the hostname cannot be resolved via DockerContainer and cannot be pinged.

Here is an excerpt from the container log

2025-02-20T15:12:47.593746600Z INFO |settings.c:0747:settings_save_ovl| Save settings to /teddycloud/config/config.ini
2025-02-20T15:12:47.593753764Z INFO |settings.c:0747:settings_save_ovl| Save settings to /teddycloud/config/config.overlay.ini
2025-02-20T15:12:47.761208027Z INFO |settings.c:1513:settings_loop| Settings file changed. Reloading.
2025-02-20T15:12:47.761229755Z INFO |settings.c:0851:settings_load_ovl| Load settings from /teddycloud/config/config.ini
2025-02-20T15:12:47.761236592Z INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/ca-root.pem' assumed PEM style
2025-02-20T15:12:47.761242839Z INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
2025-02-20T15:12:47.761248617Z INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/teddy-cert.pem' assumed PEM style
2025-02-20T15:12:47.761254506Z INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
2025-02-20T15:12:47.761260282Z INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/ca.der' detected as DER style CERTIFICATE
2025-02-20T15:12:47.761266280Z INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/client.der' detected as DER style CERTIFICATE
2025-02-20T15:12:47.761272317Z INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/client/private.der' detected as DER style RSA PRIVATE KEY
2025-02-20T15:12:47.761278106Z INFO |settings.c:0851:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
2025-02-20T15:12:58.288195931Z INFO |handler_api.c:2375:handleApiTonieboxJson| Trying to read /teddycloud/config/tonieboxes.json with size 3022
2025-02-20T15:13:11.233327698Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:13:11.233377669Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:13:11.233388094Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:13:11.233944701Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:13:11.831512900Z INFO |cloud_request.c:0479:web_request| Response: '1740064391'
2025-02-20T15:14:11.402345085Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:14:11.402374653Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:14:11.402382573Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:14:16.606966216Z INFO |cloud_request.c:0252:web_request|   trying IP: 3.69.182.181
2025-02-20T15:14:17.223294774Z INFO |cloud_request.c:0479:web_request| Response: '1740064457'
2025-02-20T15:15:12.248034497Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:15:12.248071266Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:15:12.248095473Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:15:17.458919444Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:15:18.041181301Z INFO |cloud_request.c:0479:web_request| Response: '1740064518'
2025-02-20T15:16:13.048384678Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:16:13.048420516Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:16:13.048430477Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:16:13.048439203Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:16:13.640273694Z INFO |cloud_request.c:0479:web_request| Response: '1740064573'
2025-02-20T15:17:13.718307931Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:17:13.718337636Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:17:13.718345111Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:17:13.731866736Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:17:14.333392830Z INFO |cloud_request.c:0479:web_request| Response: '1740064634'
2025-02-20T15:18:06.732624437Z INFO |server.c:0931:server_init| 3 open HTTPS Web connections
2025-02-20T15:18:13.487272563Z INFO |server.c:0931:server_init| 2 open HTTPS Web connections
2025-02-20T15:18:14.703994489Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:18:14.704019137Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:18:14.704026700Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:18:19.963417454Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:18:20.552481678Z INFO |cloud_request.c:0479:web_request| Response: '1740064700'
2025-02-20T15:19:15.696033100Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:19:15.696070560Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:19:15.696080832Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:19:20.969844269Z INFO |cloud_request.c:0252:web_request|   trying IP: 3.74.99.150
2025-02-20T15:19:21.573328183Z INFO |cloud_request.c:0479:web_request| Response: '1740064761'
2025-02-20T15:24:19.728707558Z INFO |server.c:0931:server_init| 1 open HTTPS Web connections
2025-02-20T15:25:07.010215923Z INFO |server.c:0931:server_init| 0 open HTTPS Web connections
2025-02-20T15:27:59.623516931Z INFO |server.c:0931:server_init| 1 open HTTPS Web connections
2025-02-20T15:28:01.124856235Z INFO |server.c:0931:server_init| 2 open HTTPS Web connections
2025-02-20T15:28:31.896244068Z INFO |server.c:0931:server_init| 6 open HTTPS Web connections
2025-02-20T15:28:31.959242284Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:28:31.959533568Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:28:31.959786790Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:28:32.052583176Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:28:32.052851026Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:28:32.053018587Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:28:35.455357552Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:28:35.455709795Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:28:36.399539554Z INFO |server.c:0931:server_init| 8 open HTTPS Web connections
2025-02-20T15:28:36.549653274Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:28:36.549926894Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:28:36.550182971Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:28:36.589934956Z INFO |handler_cloud.c:0041:handleCloudTime|  >> respond with current time
2025-02-20T15:28:36.590250499Z INFO |mqtt.c:0690:mqtt_init_box| Skipping client 'Toniebox' (cn: 'default')
2025-02-20T15:28:36.590497724Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:28:37.308744639Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:28:37.309056433Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:28:37.309335647Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:28:37.309606817Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:28:37.310279968Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:28:37.310919905Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:28:40.319306566Z INFO |cloud_request.c:0479:web_request| Response: '1740065320'
2025-02-20T15:28:40.320882143Z INFO |cloud_request.c:0479:web_request| Response: '1740065320'
2025-02-20T15:28:40.322161295Z INFO |cloud_request.c:0479:web_request| Response: '1740065320'
2025-02-20T15:28:40.323700236Z INFO |cloud_request.c:0479:web_request| Response: '1740065320'
2025-02-20T15:28:40.324664243Z INFO |cloud_request.c:0479:web_request| Response: '1740065320'
2025-02-20T15:28:40.330965322Z INFO |cloud_request.c:0479:web_request| Response: '1740065320'
2025-02-20T15:28:40.401893152Z INFO |server.c:0931:server_init| 6 open HTTPS Web connections
2025-02-20T15:28:40.624069974Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:28:40.625909260Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:28:40.626859067Z INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443...
2025-02-20T15:28:40.628506009Z INFO |cloud_request.c:0252:web_request|   trying IP: 18.156.186.144
2025-02-20T15:28:41.698296776Z INFO |cloud_request.c:0479:web_request| Response: '1740065321'
2025-02-20T15:28:41.702116991Z INFO |cloud_request.c:0479:web_request| Response: '1740065321'
2025-02-20T15:30:35.728353210Z INFO |server.c:0931:server_init| 4 open HTTPS Web connections
2025-02-20T15:33:37.598406631Z INFO |server.c:0931:server_init| 2 open HTTPS Web connections
2025-02-20T15:34:00.612944895Z INFO |server.c:0931:server_init| 0 open HTTPS Web connections
2025-02-20T15:37:59.766992827Z INFO |server.c:0931:server_init| 1 open HTTPS Web connections
2025-02-20T15:38:01.268308430Z INFO |server.c:0931:server_init| 2 open HTTPS Web connections
2025-02-20T15:46:33.358439709Z INFO |server.c:0931:server_init| 0 open HTTPS Web connections
2025-02-20T15:57:15.275131740Z INFO |server.c:0931:server_init| 3 open HTTPS Web connections
2025-02-20T16:02:16.474606571Z INFO |server.c:0931:server_init| 0 open HTTPS Web connections
2025-02-20T16:07:30.430354477Z INFO |server.c:0931:server_init| 3 open HTTPS Web connections
2025-02-20T16:07:30.870464382Z INFO |handler_api.c:2375:handleApiTonieboxJson| Trying to read /teddycloud/config/tonieboxes.json with size 3022
2025-02-20T16:07:33.182224897Z INFO |server.c:0931:server_init| 6 open HTTPS Web connections

The box has to reach teddyCloud with that hostname (or IP) like your browser would do.

In my json i already entered IP-Adress, but no Connection possible.

You entered the IP address? How your json looks like?

Yes, i tested it with ip, because the Hostname from Docker (“d88a2ced6077”) is not routable…or maybe just a DNS-Problem?

ngCfg.json

{
    "general": {
        "activeImg": "ofw2",
        "_descWaitForPress": "Waits for an earpress on startup",
        "waitForPress": false,
        "_descWaitForBoot": "Waits for an earpress before firmware boot",
        "waitForBoot": false,
        "waitTimeoutInS": 60,
        "_descMinBatteryLevel": "Divide through 2785 to get voltage",
        "minBatteryLevel": 8869,
        "ofwFixFlash": "/sys/pre-img.bin",
        "_descSerialLog": "Logging only works with the debug build!",
        "serialLog": false,
        "_descLogLevel": "0:Trace - 5:Fatal",
        "logLevel": 0,
        "_descLogColor": "Use colors in log output",
        "logColor": false
    },
    "ofw1": {
        "checkHash": false,
        "hashFile": false,
        "watchdog": true,
        "bootFlashImg": true,
        "flashImg": "/sys/pre-img.bin"

    },
    "ofw2": {
        "checkHash": true,
        "hashFile": false,
        "watchdog": true,
        "ofwFix": true,
        "ofwSimBL": true,
        "patches": ["altCa.305", "altUrl.custom.305"]

So you did not entered the ip in your ngcfg.json (what’s correct) in contrast to your reply.

I assume you meant you entered the ip in the alturl.custom patch. Can you show that one?

I hope you know and understand what you are doing if you created a separated clan for your toniebox/teddycloud setup. (What is the reason for you to separate this?)

Each of my Docker containers has its own IP address using macvlan.
However, the respective devices are pingable with each other and can communicate even if they are in different networks.

I only put the Toniebox in the same VLAN as TC out of desperation so that I can rule out any problems with the network.

Default network: 172.20.10.x\24 - everything, incl. Tonieboxes
Network- Grandparents: 172.20.20.x\24 - separate VLAN wit separate WIFI
Network Docker container: 172.20.30.x\24

{
    "general": {
        "_desc": "Changes Boxine URLs to custom ones.",
        "_memPos": "",
        "_fwVer": "3.0.5+"
    },
    "searchAndReplace": [{
        "_desc": "prod.de.tbs.toys to 172.20.30.3",
        "search":  ["70", "72", "6f", "64", "2e", "64", "65", "2e", "74", "62", "73", "2e", "74", "6f", "79", "73", "00"],
        "replace": ["31", "37", "32", "2e", "32", "30", "2e", "33", "30", "2e", "33", "00", "??", "??", "??", "??", "??"]
    }, {
        "_desc": "rtnl.bxcl.de to 172.20.30.3",
        "search":  ["72", "74", "6e", "6c", "2e", "62", "78", "63", "6c", "2e", "64", "65", "00"],
        "replace": ["31", "37", "32", "2e", "32", "30", "2e", "33", "30", "2e", "33", "00", "??"]
    }]
}

Looks Fine.

I assume the box does not appear in teddycloud?

What happens if you try to access teddycloud using https and port 443?

I always had only access via https. Bevore i started with Bottloader and stuff TC was correctly setup include certs.

At the moment i started new from scratch with docker in same network.

The web Ui uses port 8443 for https.

I am asking for port 443 which is used exclusively by toniebox

I´ve read that in the wiki…but traffic was clean and port open and not doubled.

Anyway, i do a clean setup, writing only fresh “c2.der” to the box and voilá - it works!!!

:joy:

I still dont know the reason, but much thx for your input.