You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docker RC - Fails to start at entrypoint 'PCAP: parameter not set' #8567
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionskip-changelogBugs that have never been in a released stable version, and as such excluded from the release notes
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.
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.
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?
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionskip-changelogBugs that have never been in a released stable version, and as such excluded from the release notes
Activity
AudriusButkevicius commentedon Oct 1, 2022
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!
calmh commentedon Oct 1, 2022
This is either wrong or legit, but it's related to a recent change and merits investigation.
calmh commentedon Oct 1, 2022
Legit:
calmh commentedon Oct 1, 2022
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.DavidFair commentedon Oct 1, 2022
So this can be easily reproduced with this one-liner:
set -u; if [ "$PCAP" == "" ] ; then echo foo; fiIt's the
set -euat the start of the shell script, I'm keen to leave it as it's a nice sanity check for unset variablesWe could set the fallback like this:
set -u; if [ "${PCAP-}" == "" ] ; then echo foo; fiWhich 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
-uor use substitution?calmh commentedon Oct 1, 2022
Yeah I'm on a fix as well currently, will file it shortly.
docker: Fix handling of PCAP variable (fixes syncthing#8567)
docker: Fix handling of PCAP variable (fixes #8567) (#8568)
Merge branch 'main' into dockerpool
Merge branch 'release'