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

Cannot connect to Portainer

Open ThorPrez opened this issue 9 months ago • 2 comments

Hi.

I´ve tried a lot, but cannot connect to Portainer. It´s not working with localhost, name and IP. Credentials for token and password are correct.

Image

services: portainer-backup: image: dockurr/portainer-backup:latest container_name: portainer-backup command: schedule environment: TZ: "Europe/Berlin" PORTAINER_BACKUP_URL: "http://<IP of portainer>:9443" PORTAINER_BACKUP_TOKEN: "xxx" PORTAINER_BACKUP_PASSWORD: "xxx" PORTAINER_BACKUP_OVERWRITE: 1 PORTAINER_BACKUP_SCHEDULE: "00 32 13 * * *" PORTAINER_BACKUP_STACKS: 1 PORTAINER_BACKUP_DRYRUN: 0 PORTAINER_BACKUP_CONCISE: 1 PORTAINER_BACKUP_DIRECTORY: "/backup" PORTAINER_BACKUP_FILENAME: "portainer-backup.tar.gz" volumes: - ./backup:/backup restart: always

Can it be that hard to make it run or I´m just stupid?

ThorPrez avatar Mar 19 '25 12:03 ThorPrez

Looking through other issues, I found this workaround that worked for me: https://github.com/SavageSoftware/portainer-backup/issues/5#issuecomment-2395270547

jhedfors avatar Apr 11 '25 12:04 jhedfors

Hi Jeff. NODE_TLS_REJECT_UNAUTHORIZED: 0 makes no difference, same fault. But with using https instead of http for the portainer´s IP make it working. Thanks a lot.

ThorPrez avatar Apr 11 '25 15:04 ThorPrez