docker icon indicating copy to clipboard operation
docker copied to clipboard

Error creating New nextcloud instance

Open epma01 opened this issue 7 years ago • 8 comments

Caused by Compatibility with docker secrets (Fix #560) #729

+ echo 'New nextcloud instance'
New nextcloud instance
+ file_env NEXTCLOUD_ADMIN_PASSWORD
+ local 'var=NEXTCLOUD_ADMIN_PASSWORD'
+ local 'fileVar=NEXTCLOUD_ADMIN_PASSWORD_FILE'
+ local 'def='
./entrypoint.sh: line 171: syntax error: bad substitution

Introduced code is using bash indirect expansion but entrypoint.sh is not using bash and it is not supported

file_env() {
    local var="$1"
    local fileVar="${var}_FILE"
    local def="${2:-}"
>>>    if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then    <<< this line is causing the issue
        echo >&2 "error: both $var and $fileVar are set (but are exclusive)"
        exit 1
    fi

epma01 avatar Apr 30 '19 08:04 epma01

cc @J0WI

tilosp avatar Apr 30 '19 10:04 tilosp

When I try to instantiate the Nextcloud docker image from docker-compose I get an error "entrypoint.sh: 30: /entrypoint.sh: Bad substitution"

After that point it seems to fail to apply my environment variables. Looks like it should be fixed now however I was wondering if it were posted to docker hub at this time as I haven't seen the change work yet from my docker-compose pull.

OhioVR avatar Apr 30 '19 12:04 OhioVR

Hi, I experience the same issue ... on top the linked git tree on docker hub is for sure NOT the one currently published ... as the "changes" in the entrypoint.sh are NOT reflected. That is a real blocker. as we are trying to get a zero touch nextcloud installation with configs and apps and therefor we heavily rely on a "stable" release of your image

dassbj01 avatar Apr 30 '19 13:04 dassbj01

i have same issue, please update docker hub image.

AEPKILL avatar Apr 30 '19 14:04 AEPKILL

this is expected, the new image will be published to docker hub once https://github.com/docker-library/official-images/pull/5834 is merged

tilosp avatar Apr 30 '19 15:04 tilosp

An update is scheduled, I'll investigate to fix the docker secrets feature.

J0WI avatar Apr 30 '19 15:04 J0WI

Same probleme here. Reproduce steps are as easy as : docker pull nextcloud:latest docker run -d -ti --name test nextcloud:latest docker logs test

Thanks all for your work here.

conanedogawa2 avatar Apr 30 '19 17:04 conanedogawa2

Containers are now rebuilt and I just added some tests to ensure that we catch such regressions before they are committed. Apologize for the inconvenience.

J0WI avatar Apr 30 '19 23:04 J0WI