tunneling socket could not be established: 500

Hello! Could you please help me? I have this error:

Error: " Request error: tunneling socket could not be established, statusCode=500" when trying to reboot or restart container.

diagnostics tab : Some networking issues detected:
test_dockerhub: Could not query Docker Hub
test_balena_registry: Could not communicate with for authentication

Hi there,
regarding the 500 error, how do you get it? Do you try to reboot the device or does it appear on a different way?

The test_dockerhub is a false alarm from our side, and we are working on it. You can find the relevant GH issue here https://github.com/balena-io/device-diagnostics/issues/249.

Moreover could you please let me know about the balenaOS and supervisor version you are running in your device?

Host OS version: balenaOS 2.58.3+rev1 Supervisor version: 11.14.0

I tried following the public device url. Also, I tried to reboot the device.

Hello Anton, Im sorry I am not sure I understand what you mean about the public url, did you see that error when trying to reach the device publics URL? One thing which would help us understand what is happening is navigating to the diagnostic page and downloading the diagnostic report for the device. That should contain logs for the supervisor and other services which can help us debug these kind of issues

Here it is a diagnostic report:
fc7fbc7105b45d186b091a46c86638bb_2020.10.12_11.49.17+0000.pdf (339.2 KB)

So, I solved trouble and get a picture:

What do I need to do next? How can I make settings for camera?

Hey Anton! good to hear that it works for you! what project are you using? For the image it looks like the Hello World?

Great! It works! Thanks for your issue. It helped me to understand what should I do next))

I am having the same error. I am using the balena cloud and motioneye to get this working but when I click on public device url and then the url it generates, I get this error.
How to fix that? Below is the message I get.

Error accessing device

We encountered an error when reaching this balena.io device:

UUID 7e3ca05ece739bcb2d0xxxxxxxxxxxxxxx

tunneling socket could not be established: 500

One possible reason is because nothing is listening on port 80 on the device.

thanks.

Please try the procedure in the following link
How to control motionEye CCTV system on a Raspberry Pi 3 remotely using balenaCloud

Hey Javed,

One possible reason is because nothing is listening on port 80 on the device

Yes, this is the reason. You will need a service listening to port 80, for the device URL to show anything.

Phil

1 Like

Javed - could you let me know what code you are running? Is it your own or did you deploy from hub.balena.io or a motionEye GitHub repository?

I used the instructions as mentioned by bkjaya1952 above.
I am using pizerow instead of pi3.
I used the motioneye and pulled from docker per the instructions.
I get this error when I run it using the device public url.

Thanks,

Hi Friend
I didn’t try for pi zero . When creating an application and device , select the correct balena image compatible with pi zero. I have downloaded the balena image compatible with raspberry pi 3 .If the correct image can’t open the public device url , It is better to seek the assistance of balena team.To start the motionEye ,You will have to start motioneye container by running
balena start motioneye
or

balena restart motioneye

On the balina terminal .

1 Like

Hi there, take a look at this thread for additional inspiration. the project it refers to is a little out of date, but it should give you a hint on how to make the software listen on port 80 so that device URLs will work automatically.

Alternatively, you can try this project, which is more up to date.