Skip to content

Docker RC - Fails to start at entrypoint 'PCAP: parameter not set'  #8567

Closed

Description

@DavidFair

On startup Docker Swarm now gives the following error with the latest release candidate:
/bin/entrypoint.sh: line 7: PCAP: parameter not set

This looks like it comes from #8552 as the latest (non-rc) tag works correctly (albeit unhappy about the config downgrade as expected)

Include required information

Version: Latest syncthing/syncthing:rc
Attached below is my compose which I'm deploying using Swarm:

version: "3"

services:
  syncthing:
    image: "syncthing/syncthing:rc"
    ports:
      - 8384:8384
      - 22000:22000
      - 22000:22000/udp
      - 21027:21027/udp
    environment:
      - PUID=1200
      - PGID=1200
      - DOMAIN=<domain>
      - STGUIADDRESS=0.0.0.0:8384
    volumes:
      - /pool/docker_volumes/syncthing/config:/var/syncthing/config
      - /pool/syncthing/Data:/data
    networks:
      - traefik
    deploy:
      placement:
        constraints:
          - node.hostname==zfs-server
      labels:
        - "traefik.enable=true"
        - "traefik.docker.network=traefik"
        - "traefik.http.routers.syncthing.rule=Host(`<domain>`)"
        - "traefik.http.services.syncthing.loadbalancer.server.port=8384"
        - "traefik.http.routers.syncthing.middlewares=authelia@file"

networks:
  traefik:
    external: true

Activity

  1. added
    bug
    needs-triage
    on Oct 1, 2022
  2. AudriusButkevicius commented on Oct 1, 2022

    @AudriusButkevicius
    Member

    This looks more like a support request than a clear bug or feature request. Please use the forum - https://forum.syncthing.net/ - for support, first by searching for any similar issues and then by posting a new one when required. The forum has a lot more eyes and friendly people on it than the issue tracker.

    Thanks!

  3. reopened this on Oct 1, 2022
  4. calmh commented on Oct 1, 2022

    @calmh
    Member

    This is either wrong or legit, but it's related to a recent change and merits investigation.

  5. calmh commented on Oct 1, 2022

    @calmh
    Member

    Legit:

    jb@sep:~ % docker run syncthing/syncthing:rc
    Unable to find image 'syncthing/syncthing:rc' locally
    rc: Pulling from syncthing/syncthing
    9b18e9b68314: Already exists
    e73d203541b1: Already exists
    096a2f4f4c93: Pull complete
    7c7f4293d97e: Pull complete
    Digest: sha256:f3f5e15c83f8b8f28a70f3d0f350294dd73a06a77082c0f3652567e83432d70e
    Status: Downloaded newer image for syncthing/syncthing:rc
    /bin/entrypoint.sh: line 7: PCAP: parameter not set
    
  6. removed
    needs-triage
    on Oct 1, 2022
  7. calmh commented on Oct 1, 2022

    @calmh
    Member

    It's interesting though because I intended to prevent precisely this with the ENV PCAP= in the Dockerfile, and that works for me when testing locally, but it doesn't work in the actual published docker image. I suppose it may be because it gets built with an older Docker or something like that.

  8. DavidFair commented on Oct 1, 2022

    @DavidFair
    Author

    So this can be easily reproduced with this one-liner:
    set -u; if [ "$PCAP" == "" ] ; then echo foo; fi

    It's the set -eu at the start of the shell script, I'm keen to leave it as it's a nice sanity check for unset variables
    We could set the fallback like this:

    set -u; if [ "${PCAP-}" == "" ] ; then echo foo; fi
    Which correctly defaults the variable to an empty string (which is just parameter substitution)

    I can throw up a PR depending on which you'd like to do, remove -u or use substitution?

  9. calmh commented on Oct 1, 2022

    @calmh
    Member

    Yeah I'm on a fix as well currently, will file it shortly.

  10. added a commit that references this issue on Oct 1, 2022
    0bc4fea
  11. added 3 commits that reference this issue on Oct 2, 2022
    7e848a1
    69cbd9b
    5744380
  12. added this to the v1.22.1 milestone on Oct 17, 2022
  13. added
    skip-changelog
    on Oct 17, 2022
  14. removed this from the v1.22.1 milestone on Oct 17, 2022
  15. added
    frozen-due-to-age
    on Oct 12, 2023
  16. locked and limited conversation to collaborators on Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-ageskip-changelog

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions