portainer-backup icon indicating copy to clipboard operation
portainer-backup copied to clipboard

Connection to portainer server failed!

Open KTac opened this issue 8 months ago • 0 comments

I am trying to set up portainer-backup as a Docker container for scheduled backups on a Raspberry Pi 4. I have changed my Portainer host name to controller. The command I am running is:

docker run \
  -d \
  --name remoteit \
  --hostname controller \
  -v $PWD/remoteit:/etc/remoteit \
  -e R3_REGISTRATION_CODE="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" \
  --restart unless-stopped \
  remoteit/remoteit-agent:latest

However, this is what I get when I run it:

image

Pinging 'controller' on the device gets a response from 127.0.0.1 as expected and Portainer is using port 9000 so I'm not sure why it can't be found. If I change the hostname value to localhost or 127.0.0.1 the error changes to connection refused.

image

I've set up portainer-backup before and it went very smoothly. I can't figure out why I'm running into trouble this time. Please help.

KTac avatar Jun 09 '24 01:06 KTac