Content Download not possible

Hello,

i had to reinstall teddycloud (I failed to update the docker … dont ask, when not necessary :upside_down_face: )

The Box connects to Teddycloud, Teddycloud connects to Boxine. But it’s not anymore possible to download content from the Boxine Server. On the Webpage I get the message: “ResponseError: Response returned an error code”

This is the log output, when I put a original tonie on the box

WARN |platform_linux.c:0292:socketReceive| buffer does not contain null terminator

WARN |platform_linux.c:0292:socketReceive| buffer does not contain null terminator

WARN |platform_linux.c:0292:socketReceive| buffer does not contain null terminator

WARN |platform_linux.c:0292:socketReceive| buffer does not contain null terminator

WARN |platform_linux.c:0292:socketReceive| buffer does not contain null terminator

INFO |server.c:0430:httpServerRequestCallback| UA=TB/1620325289 SP/34471936 HW/1048921, FW=1620325289, SP=34471936, HW=1048921

INFO |handler_cloud.c:0346:handleCloudClaim| >> client claim requested rUID 32ea5b1c500304e0, auth 00000000…

INFO |handler_cloud.c:0276:checkCustomTonie| Found possible custom tonie by password

INFO |handler_cloud.c:0377:handleCloudClaim| >> custom tonie detected, nothing forwarded

INFO |handler_cloud.c:0292:markCustomTonie| Marked custom tonie /teddycloud/data/content/default/32EA5B1C/500304E0

INFO |server.c:0959:server_init| 1 open HTTPS API connections

WARN |platform_linux.c:0292:socketReceive| buffer does not contain null terminator

WARN |platform_linux.c:0292:socketReceive| buffer does not contain null terminator

And this is the log output if I try to download the content from the server:

WARN |platform_linux.c:0292:socketReceive| buffer does not contain null terminator

WARN |platform_linux.c:0292:socketReceive| buffer does not contain null terminator

INFO |handler_cloud.c:0448:handleCloudContent| >> client requested content for rUID c9b84812500304e0, auth 00000000…

INFO |handler_cloud.c:0276:checkCustomTonie| Found possible custom tonie by password

INFO |handler_cloud.c:0724:handleCloudContent| Serve cloud content from /v2/content/c9b84812500304e0

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

INFO |cloud_request.c:0363:web_request| HTTP code: 401

INFO |cloud_request.c:0479:web_request| Response: ‘{“error”:{“title”:“Unauthorized”,“status”:401}}’

INFO |server.c:0959:server_init| 1 open HTTPS API connections

Hopefully its not a Certs Problem, because (yes I am dumb) I struggled with my backups. I did a lot and mixed it around.

Please check your port mapping. It may be the case, that the toniebox and or the webinterface uses the wrong port. (buffer does not contain null terminator)

Response: ‘{“error”:{“title”:“Unauthorized”,“status”:401}}’ could indicate a missing client certificate to connect to the boxine cloud

1 Like

Thank you for your reply.
I set the DNS entries prod.revvox and rtnl.revvox to the teddyCloud servers ip-address via adblock home. I did not changed any ports.

It looks like I messed up with the ca.der file and lost the original one :frowning:
I have a cc3200 box, so I flashed HackieboxNG. Is it possible to extract the original ca.der file from ofw1.bin?

You cannot extract it from the ofw1. You’ll have to extract it from you flash based or file based backup of the box.

I fixed it!
I always used the right ca.der file but, but in all my content.json files “cloud_auth”: was filled with zeros. I had to delete them, place the tonies on the box and volá its fixed. Downloading from boxine server works again.

This warning still remain when I reload the webpage.
WARN |platform_linux.c:0292:socketReceive| buffer does not contain null terminator

It looks like you have used the cc3200 with unsupported patches for non SLIX-L Tags.

@0xbadbee regarding the buffer warning?

I even got this before I even flashed my box just from firing up Teddycloud. Although so far everything worked perfectly so I didn’t investigate for now.