Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

" quotes in field values causing issues #2

Open
beastarman74 opened this issue May 19, 2022 · 0 comments
Open

" quotes in field values causing issues #2

beastarman74 opened this issue May 19, 2022 · 0 comments

Comments

@beastarman74
Copy link

beastarman74 commented May 19, 2022

Out of the blue Portainer-Backup stopped being able to connect to the Portainer server and subsequently read the Cron settings correctly when they are encased in " quotes.

I haven't made any changes to the install, but as part of troubleshooting I checked the docker network settings for the container (it shares the same docker network as Portainer and Portainer Agent). Also tried changing Portainer to localhost/127.0.0.1 etc. Then the host IP instead. Still no joy.

As a last gasp I removed the quotes " from the URL. Tried it again and this time it complained about the Cron format instead. Partial success. I removed the " from the Cron schedule entry. Tried again, everything looked like it was ok but the backup failed. So remove the " quotes from the backup token and finally got a successful backup.

I don't know if this issue is local to just me, I just wanted to flag what I have experienced in case it hits wider.

Working configuration (backup token blanked). It is almost a carbon copy of your example but now with the quotes " removed.

version: '3.8'
services:
  portainer-backup:
    container_name: portainer-backup
    image: savagesoftware/portainer-backup:latest
    hostname: portainer-backup
    restart: unless-stopped
    command: schedule
    environment:
      - TZ=Europe/London
      - PUID=1000
      - PGID=1000
      - stdin_open=true # docker run -i
      - tty=true # docker run -t      0
      - PORTAINER_BACKUP_URL=http://portainer:9000
      - PORTAINER_BACKUP_TOKEN=ptr_=
      - PORTAINER_BACKUP_PASSWORD=
      - PORTAINER_BACKUP_OVERWRITE=1
      - PORTAINER_BACKUP_SCHEDULE=0 0 0 * * *
      - PORTAINER_BACKUP_STACKS=1
      - PORTAINER_BACKUP_DRYRUN=0
      - PORTAINER_BACKUP_CONCISE=1
      - PORTAINER_BACKUP_DIRECTORY=/backup
      - PORTAINER_BACKUP_FILENAME=portainer-backup.tar.gz
    volumes:
      - portainer-backup:/backup
    networks:
      - portainer

networks:
  portainer:
   external: true

volumes:
  portainer-backup:
   external: true

Error with URL:
Portainer-Backup - URL error

Error with Cron
Portainer-Backup - Cron error

Backup error:
backup running with access code in speech marks

Successful backup:
successful backup with speech marks removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant