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

Failed to parse int from \"0: strconv.Atoi: parsing \"\\\"0\": invalid syntax" #1919

Open
knuurr opened this issue Feb 4, 2024 · 4 comments

Comments

@knuurr
Copy link

knuurr commented Feb 4, 2024

Describe the bug

Upon starting container, I get error from title in logs.

Below you'll find my docker-compose file.

Some context: I try to use my internal apprise-api container as notification sinkhole together with Shoutrrr generic handler, this is why You'll se it configured.

Steps to reproduce

  1. Prepare docker-compose with my config
  2. Launch it and observe logs

Expected behavior

Watchtower container launches and additionaly sends notification to endpoint.

Screenshots

No response

Environment

  • Platform
    Ubuntu 22.04.3 LTS
  • Architecture
    x64
  • Docker Version
    Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1

Your logs

watchtower  | time="2024-02-04T03:37:04+01:00" level=error msg="Failed to parse int from \"0: strconv.Atoi: parsing \"\\\"0\": invalid syntax"
watchtower  | time="2024-02-04T03:37:54+01:00" level=error msg="Failed to parse int from \"0: strconv.Atoi: parsing \"\\\"0\": invalid syntax"
watchtower  | time="2024-02-04T03:39:13+01:00" level=error msg="Failed to parse int from \"0: strconv.Atoi: parsing \"\\\"0\": invalid syntax"
watchtower  | time="2024-02-04T03:40:42+01:00" level=error msg="Failed to parse int from \"0: strconv.Atoi: parsing \"\\\"0\": invalid syntax"

Additional context

Docker compose I use for launching:

version: '3.7'


networks:
  backend:
    external: true 


services:
  watchtower:
    container_name: watchtower
    image: containrrr/watchtower
    volumes:
      # Ensure proper timezones
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro
      # Docker Socket
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      - WATCHTOWER_SCHEDULE="0 0 19 * * *"
      # Will only monitor for new images, send notifications and invoke the pre-check/post-check hooks, but will not update the containers.
      - WATCHTOWER_INCLUDE_STOPPED=true
      - WATCHTOWER_INCLUDE_RESTARTING=true
      - WATCHTOWER_MONITOR_ONLY=true
      # Gotify notifications
      - WATCHTOWER_NOTIFICATIONS=shoutrrr
      # Apprise workaround shenanigans
      - WATCHTOWER_NOTIFICATION_URL=generic+http://apprise-api:8000/notify/apprise?messageKey=body&$$tag=watchtower
    networks:
      - backend
      
  
Copy link

github-actions bot commented Feb 4, 2024

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

@miguesan01
Copy link

I’ve just had that error in my compose file, try removing quotes in WATCHTOWER_SCHEDULE string so it looks like this:

  • WATCHTOWER_SCHEDULE=0 0 19 * * *

This worked for me.

@nicklutt
Copy link

@knuurr , did ever get it to work? I have trouble with shoutrrr generic to my apprise-api. invalid json..

@knuurr
Copy link
Author

knuurr commented May 3, 2024

@knuurr , did ever get it to work? I have trouble with shoutrrr generic to my apprise-api. invalid json..

Hi, no I gave up tbh. I switched to using Renovate via GH Actions to utiliza GitOps.

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

No branches or pull requests

3 participants