Raspberry Pi - peer to peer connection with an IP camera

Hi @TJvV
I’ve tested it again, and found the issues.
Once I run the start.sh file, it loses the connection, and I can’t connect to the RPi.

root@fbcd8e5:~# bash start.sh
Error: static_eth0 - no such connection profile.
Adding connection
Connection ‘static_eth0’ (245b6574-e62e-4ea1-83ce-a11f3683544b) successfully added.
client_loop: send disconnect: Connection reset by peer
SSH: Process exited with non-zero status code “255”

Are the SSH keys correctly configured in balenaCloud? See:

Are you accidentally using sudo?

If you have time, could you please check it for me? Thanks.

Hi,

I will see if I can find something after work today.
It’s a little weird, because it seems to work fine on my device.

I just ran a few tests, but have not been able to reproduce the issue of my Raspberry Pi not coming back online.

One thing I did notice, is that when the device boots up for the first time, it will try to create an automatic network connection on eth0 before the container is started and has had the chance to configure the static connection.
This lasts only for a little while (30 seconds tops?), and then gets fixed by the container.

@emollergren can you try to run it with a completely fresh fleet and device?
Just to make sure we’re looking at the same thing.

You can copy these commands, just fill in the <user> and <uuid>

USER=<user>
DEVICE_UUID=<uuid>
NEW_FLEET=dhcp_test

git clone git@github.com:TJvV/balena_dhcp_cam.git
cd balena_dhcp_cam
balena login --web
balena fleet create ${NEW_FLEET} --organization ${USER} --type raspberrypi4-64
balena push ${USER}/${NEW_FLEET}
balena device move ${DEVICE_UUID} ${NEW_FLEET}

Hi, if possible could we have a zoom meeting at 19:00 UTC? The meeting link is the same. Thanks

Hi, I’ve already set up the IP camera as a dhcp mode, however, the RPi can’t assign the IP address to it. Any suggestions? Thanks