[FATAL tini (16)] exec ./start.sh failed: Exec format error when using synology docker image


(fanlessfan) #1
  • Platform information:
    • Hardware: synology DS1816+
    • OS: synology docker 17.05.0-0395
    • Java Runtime Environment: part of offical docker image
    • openHAB version: 2.4.0-amd64-alpine
  • can’t start following the docker official instruction
  • no configuration yet
  • below is a full log from start to end in reverse order generated by docker. I don’t understand what’s the start.sh and what should be in the file. It didn’t mentioned in the openhab docker document. I just put the " Running the Container as a Service Managed by Docker" in it.
    https://www.openhab.org/docs/installation/docker.html

thx

2019-03-11 13:36:37 stdout [FATAL tini (16)] exec ./start.sh failed: Exec format error
2019-03-11 13:36:37 stdout + exec su-exec openhab tini -s ./start.sh
2019-03-11 13:36:37 stdout + ‘[’ true == false ‘]’
2019-03-11 13:36:37 stdout + sync
2019-03-11 13:36:37 stdout + chown -R openhab:openhab /openhab
2019-03-11 13:36:37 stdout + ‘[’ -d /etc/cont-init.d ‘]’
2019-03-11 13:36:37 stdout transform’ ‘]’
2019-03-11 13:36:37 stdout things
2019-03-11 13:36:37 stdout sounds
2019-03-11 13:36:37 stdout sitemaps
2019-03-11 13:36:37 stdout services
2019-03-11 13:36:37 stdout scripts
2019-03-11 13:36:37 stdout rules
2019-03-11 13:36:37 stdout persistence
2019-03-11 13:36:37 stdout items
2019-03-11 13:36:37 stdout icons
2019-03-11 13:36:37 stdout + ‘[’ -z 'html
2019-03-11 13:36:37 stdout ++ ls -A /openhab/conf
2019-03-11 13:36:37 stdout + ‘[’ ‘!’ -z ‘]’
2019-03-11 13:36:37 stdout cmp: /openhab/userdata.dist/etc/version.properties: No such file or directory
2019-03-11 13:36:37 stdout ++ cmp /openhab/userdata/etc/version.properties /openhab/userdata.dist/etc/version.properties
2019-03-11 13:36:37 stdout tmp’ ‘]’
2019-03-11 13:36:37 stdout logs
2019-03-11 13:36:37 stdout jsondb
2019-03-11 13:36:37 stdout etc
2019-03-11 13:36:37 stdout config
2019-03-11 13:36:37 stdout + ‘[’ -z 'cache
2019-03-11 13:36:37 stdout ++ ls -A /openhab/userdata
2019-03-11 13:36:37 stdout + case ${OPENHAB_VERSION} in
2019-03-11 13:36:37 stdout + id -u openhab
2019-03-11 13:36:37 stdout Starting with openhab user id: 9001 and group id: 9001
2019-03-11 13:36:37 stdout + echo ‘Starting with openhab user id: 9001 and group id: 9001’
2019-03-11 13:36:37 stdout + NEW_GROUP_ID=9001
2019-03-11 13:36:37 stdout + NEW_USER_ID=9001
2019-03-11 13:36:37 stdout + rm -f /openhab/userdata/tmp/instances/instance.properties
2019-03-11 13:36:37 stdout + rm -f /openhab/runtime/instances/instance.properties
2019-03-11 13:36:37 stdout + ‘[’ limited = unlimited ‘]’
2019-03-11 13:36:37 stdout
2019-03-11 13:36:37 stdout + IFS=’
2019-03-11 13:36:37 stdout + set -euo pipefail
2019-03-11 13:36:37 stdout + interactive=true
2019-03-11 13:36:37 stdout ++ echo true
2019-03-11 13:36:37 stdout ++ test -t 0

start.sh

docker run
–name openhab
–net=host
-v /etc/localtime:/etc/localtime:ro
-v /etc/timezone:/etc/timezone:ro
-v /volume1/docker/openhab:/openhab
-d
-e USER_ID=9001
-e GROUP_ID=9001
–restart=always
openhab/openhab:2.4.0-amd64-alpine


(fanlessfan) #2

bump up