Synology -- container unexpectedly stops with message `/entrypoint: line 123: exec: "": not found`

Hi, I tried to run openHAB on my Synology NAS using the tutorial. The first problem I ran into (ignoring the mismatch between the tutorial and the docker app’s ux-flow) were the mandatory configuration fields EXTRA_JAVA_OPTS and EXTRA_SHELL_OPTS. With inspiration from the documentation of the docker image I set them as posted below. When I try to run the container it stops after about 30s. I posted the details below.

Please help. I have no idea how to continue.

  • Platform information:
    • Hardware: Synology DS 916+
    • OS: DSM 7.1.1-42962 Update 1
    • Java Runtime Environment: Docker openhab/openhab-latest
    • openHAB version: 3.4.2
  • Issue of the topic: Container unexpectedly stops with message /entrypoint: line 123: exec: "": not found
  • Configurations:
    • EXTRA_JAVA_OPTS set to "-Duser.timezone=Europe/Berlin"
    • EXTRA_SHELL_OPTS set to ""
  • The log output of the container:
openhab-openhab
date,stream,content
2023-02-26T12:43:53.714958890Z,stdout,/entrypoint: line 123: exec: "": not found

2023-02-26T12:43:53.714848913Z,stdout,+ exec '""'

2023-02-26T12:43:53.375571020Z,stdout,+ '[' true == false ']'

2023-02-26T12:43:52.980019127Z,stdout,+ sync

2023-02-26T12:43:52.979821174Z,stdout,+ '[' -d /etc/cont-init.d ']'

2023-02-26T12:43:52.419565690Z,stdout,+ sync

2023-02-26T12:43:52.419509014Z,stdout,+ chown -R openhab:openhab /openhab

2023-02-26T12:43:52.419461463Z,stdout,

2023-02-26T12:43:52.419404087Z,stdout,SUCCESS: openHAB updated from 3.3.0 to 3.4.2

2023-02-26T12:43:52.419356274Z,stdout,

2023-02-26T12:43:52.419305698Z,stdout,

2023-02-26T12:43:52.419156420Z,stdout,Performing post-update tasks for version 3.4.0:

2023-02-26T12:43:51.239301601Z,stdout,

2023-02-26T12:43:51.168041601Z,stdout,Clearing cache...

2023-02-26T12:43:50.922005796Z,stdout,Replacing userdata system files with newer versions...

2023-02-26T12:43:50.888236557Z,stdout,

2023-02-26T12:43:50.887910364Z,stdout,  e[31mWarning:e[m  Xiaomi Wifi devices (Mi IO) Binding: Channel Type change for some yeelights. The brightness channels with the Number type now have the Dimmer type. This affects only nightlight and ambilight channels for some models.

2023-02-26T12:43:50.869859263Z,stdout,  e[31mWarning:e[m  Velux Binding: On window things the semantic category of the position channel has been corrected from 'blinds' to 'window'. Window things with such channels that had been created via the UI will need to be deleted and re-created.

2023-02-26T12:43:50.852240269Z,stdout,"  e[31mWarning:e[m  Systeminfo Binding: The default state description for DataAmount channels is now MiB. If you relied on MB, you may need to adjust.
"
2023-02-26T12:43:50.834185069Z,stdout,  e[31mWarning:e[m  Systeminfo Binding: Multiple Number channels now have a dimension added. You may need to remove and create your things again in case your things were previously created using UI and you want to use these channels. Linked items need to be recreated.

2023-02-26T12:43:50.816202394Z,stdout,  e[31mWarning:e[m  Resol Binding: Item Type of solar controllers channels using time and weekday format changed from Date to String. Items need to be adjusted accordingly.

2023-02-26T12:43:50.798108280Z,stdout,"  e[31mWarning:e[m  Miele@home Binding: The channels 'duration', 'elapsed' and 'finish' are now Number:Time. You may need to remove and create your things again in case your things were previously created using UI and you want to use these channels. Linked items need to be recreated.
"
2023-02-26T12:43:50.779404594Z,stdout,  e[31mWarning:e[m  Miele@home Binding: The channel 'start' now contains date and time for start of scheduled program. Previously it was counting down duration until the program would start.

2023-02-26T12:43:50.761373831Z,stdout,  e[31mWarning:e[m  LG webOS Binding: The undocumented action "sendRCButton" was removed while it is possible to achieve the same action with "sendButton"

2023-02-26T12:43:50.743867889Z,stdout,  e[31mWarning:e[m  Konnected Binding: Things needs to be recreated because of added Konnected Pro panel support and manual configuration of things.

2023-02-26T12:43:50.726092342Z,stdout,"  e[31mWarning:e[m  JRuby Scripting Automation: The default `RUBYLIB` directory has changed to OPENHAB_CONF/automation/ruby/lib. Either explicitly configure the add-on to use the previous value, or move any files to the new location.
"
2023-02-26T12:43:50.707469282Z,stdout,"  e[31mWarning:e[m  JavaScript Scripting Automation: openHAB JavaScript library versions < 3.1.2 are not fully compatible anymore. If you have manually installed the JS library, please upgrade to a version >= 3.1.2.
"
2023-02-26T12:43:50.689148090Z,stdout,  e[31mWarning:e[m  JavaScript Scripting Automation: ItemHistory min/max between/since returns now a number instead of a string.

2023-02-26T12:43:50.671356343Z,stdout,  e[31mWarning:e[m  JavaScript Scripting Automation: 'setTimeout' and 'setInterval' return a timerId (a positive integer value) as in standard JS instead of an openHAB Timer.

2023-02-26T12:43:50.653548946Z,stdout,"  e[31mWarning:e[m  Automower Binding: Due to Husqvarna Authentication API change, bridge now requires application secret instead of username and password. Delete any existing bridge and re-add it, please make sure to update all automower things to use the newly added bridge.
"
2023-02-26T12:43:50.635769537Z,stdout,  e[31mWarning:e[m  CORE: Default units have been added for all dimensions. A state description defining the unit should be added to each item that uses a different unit.

2023-02-26T12:43:50.617502183Z,stdout,Important notes for version 3.4.0:

2023-02-26T12:43:50.617331943Z,stdout,

2023-02-26T12:43:50.540176248Z,stdout,Please read the following e[32mnotese[m and e[31mwarningse[m:

2023-02-26T12:43:50.539982145Z,stdout,The script will attempt to update openHAB to version 3.4.2

2023-02-26T12:43:50.522430689Z,stdout,

2023-02-26T12:43:50.522382739Z,stdout,################################################

2023-02-26T12:43:50.522324863Z,stdout,          openHAB Docker update script          

2023-02-26T12:43:50.522275474Z,stdout,################################################

2023-02-26T12:43:50.522185823Z,stdout,

2023-02-26T12:43:50.511928459Z,stdout,+ tee -a /openhab/userdata/logs/update.log

2023-02-26T12:43:50.511340150Z,stdout,+ exec /openhab/runtime/bin/update

2023-02-26T12:43:50.510677527Z,stdout,You can find backup of userdata in /openhab/userdata/backup/userdata-2023-02-26T12-43-50.tar

2023-02-26T12:43:50.508832860Z,stdout,+ tee -a /openhab/userdata/logs/update.log

2023-02-26T12:43:50.508583931Z,stdout,+ echo 'You can find backup of userdata in /openhab/userdata/backup/userdata-2023-02-26T12-43-50.tar'

2023-02-26T12:43:50.454165912Z,stdout,tar: Removing leading `/' from member names

2023-02-26T12:43:50.419132927Z,stdout,+ tar --exclude=/openhab/userdata/backup -c -f /openhab/userdata/backup/userdata-2023-02-26T12-43-50.tar /openhab/userdata

2023-02-26T12:43:50.404790936Z,stdout,+ mkdir /openhab/userdata/backup

2023-02-26T12:43:50.404720109Z,stdout,+ '[' '!' -d /openhab/userdata/backup ']'

2023-02-26T12:43:50.404496768Z,stdout,+ backup_file=userdata-2023-02-26T12-43-50.tar

2023-02-26T12:43:50.401363968Z,stdout,++ date +%FT%H-%M-%S

2023-02-26T12:43:50.400442016Z,stdout,Image and userdata versions differ! Starting an upgrade.

2023-02-26T12:43:50.384812466Z,stdout,+ tee /openhab/userdata/logs/update.log

2023-02-26T12:43:50.384378872Z,stdout,+ echo 'Image and userdata versions differ! Starting an upgrade.'

2023-02-26T12:43:50.383796888Z,stdout,"+ '[' '!' -z '/openhab/userdata/etc/version.properties /openhab/dist/userdata/etc/version.properties differ: byte 267, line 8' ']'
"
2023-02-26T12:43:50.357457755Z,stdout,++ cmp /openhab/userdata/etc/version.properties /openhab/dist/userdata/etc/version.properties

2023-02-26T12:43:50.356390650Z,stdout,tmp' ']'

2023-02-26T12:43:50.356339337Z,stdout,logs

2023-02-26T12:43:50.356274811Z,stdout,+ '[' -z 'etc

2023-02-26T12:43:50.353728983Z,stdout,++ ls -A /openhab/userdata

2023-02-26T12:43:50.353660219Z,stdout,+ source=/openhab/dist/userdata

2023-02-26T12:43:50.353609031Z,stdout,+ volume=/openhab/userdata

2023-02-26T12:43:50.353539742Z,stdout,+ initialize_volume /openhab/userdata /openhab/dist/userdata

2023-02-26T12:43:50.353362227Z,stdout,transform' ']'

2023-02-26T12:43:50.353300701Z,stdout,things

2023-02-26T12:43:50.353234987Z,stdout,sounds

2023-02-26T12:43:50.353155861Z,stdout,sitemaps

2023-02-26T12:43:50.353102085Z,stdout,services

2023-02-26T12:43:50.353046634Z,stdout,scripts

2023-02-26T12:43:50.352974633Z,stdout,rules

2023-02-26T12:43:50.352922832Z,stdout,persistence

2023-02-26T12:43:50.352825543Z,stdout,items

2023-02-26T12:43:50.352772617Z,stdout,icons

2023-02-26T12:43:50.352675716Z,stdout,+ '[' -z 'html

2023-02-26T12:43:50.349388901Z,stdout,++ ls -A /openhab/conf

2023-02-26T12:43:50.349097771Z,stdout,+ source=/openhab/dist/conf

2023-02-26T12:43:50.349040120Z,stdout,+ volume=/openhab/conf

2023-02-26T12:43:50.348856442Z,stdout,+ initialize_volume /openhab/conf /openhab/dist/conf

2023-02-26T12:43:50.346234013Z,stdout,Done.

2023-02-26T12:43:49.199713739Z,stdout,Adding user openhab to group uucp3

2023-02-26T12:43:49.195626686Z,stdout,Adding user `openhab' to group `uucp3' ...

2023-02-26T12:43:49.112770013Z,stdout,+ adduser openhab uucp3

2023-02-26T12:43:49.112342606Z,stdout,Done.

2023-02-26T12:43:48.443266433Z,stdout,Adding user openhab to group uucp2

2023-02-26T12:43:48.439228781Z,stdout,Adding user `openhab' to group `uucp2' ...

2023-02-26T12:43:48.356455946Z,stdout,+ adduser openhab uucp2

2023-02-26T12:43:48.356108691Z,stdout,Done.

2023-02-26T12:43:48.111564560Z,stdout,Adding user openhab to group uucp

2023-02-26T12:43:47.215864905Z,stdout,Adding user `openhab' to group `uucp' ...

2023-02-26T12:43:47.132869242Z,stdout,+ adduser openhab uucp

2023-02-26T12:43:47.132556012Z,stdout,Done.

2023-02-26T12:43:46.378601995Z,stdout,Adding user openhab to group gpio

2023-02-26T12:43:46.375057451Z,stdout,Adding user `openhab' to group `gpio' ...

2023-02-26T12:43:46.292637272Z,stdout,+ adduser openhab gpio

2023-02-26T12:43:46.290163208Z,stdout,Done.

2023-02-26T12:43:45.879056654Z,stdout,Adding user openhab to group dialout4

2023-02-26T12:43:45.878980215Z,stdout,Adding user `openhab' to group `dialout4' ...

2023-02-26T12:43:45.878874864Z,stdout,+ adduser openhab dialout4

2023-02-26T12:43:45.354353187Z,stdout,Done.

2023-02-26T12:43:44.485559648Z,stdout,Adding user openhab to group dialout3

2023-02-26T12:43:44.481528996Z,stdout,Adding user `openhab' to group `dialout3' ...

2023-02-26T12:43:44.396056719Z,stdout,+ adduser openhab dialout3

2023-02-26T12:43:44.395845978Z,stdout,Done.

2023-02-26T12:43:43.611864382Z,stdout,Adding user openhab to group dialout2

2023-02-26T12:43:43.611800068Z,stdout,Adding user `openhab' to group `dialout2' ...

2023-02-26T12:43:43.611653791Z,stdout,+ adduser openhab dialout2

2023-02-26T12:43:43.376397909Z,stdout,Done.

2023-02-26T12:43:42.611272239Z,stdout,Adding user openhab to group dialout

2023-02-26T12:43:42.607729607Z,stdout,Adding user `openhab' to group `dialout' ...

2023-02-26T12:43:42.524442039Z,stdout,+ adduser openhab dialout

2023-02-26T12:43:42.522091264Z,stdout,Done.

2023-02-26T12:43:41.786117360Z,stdout,Adding user openhab to group audio5

2023-02-26T12:43:41.782027620Z,stdout,Adding user `openhab' to group `audio5' ...

2023-02-26T12:43:41.738886143Z,stdout,+ adduser openhab audio5

2023-02-26T12:43:41.696617168Z,stdout,Done.

2023-02-26T12:43:40.884260631Z,stdout,Adding user openhab to group audio4

2023-02-26T12:43:40.880468183Z,stdout,Adding user `openhab' to group `audio4' ...

2023-02-26T12:43:40.797089427Z,stdout,+ adduser openhab audio4

2023-02-26T12:43:40.796521767Z,stdout,Done.

2023-02-26T12:43:40.093613016Z,stdout,Adding user openhab to group audio3

2023-02-26T12:43:40.089758742Z,stdout,Adding user `openhab' to group `audio3' ...

2023-02-26T12:43:40.004469630Z,stdout,+ adduser openhab audio3

2023-02-26T12:43:40.003815732Z,stdout,Done.

2023-02-26T12:43:38.915891606Z,stdout,Adding user openhab to group audio2

2023-02-26T12:43:38.912056270Z,stdout,Adding user `openhab' to group `audio2' ...

2023-02-26T12:43:38.828935218Z,stdout,+ adduser openhab audio2

2023-02-26T12:43:38.828519861Z,stdout,Done.

2023-02-26T12:43:38.050837803Z,stdout,Adding user openhab to group audio

2023-02-26T12:43:38.022192058Z,stdout,Adding user `openhab' to group `audio' ...

2023-02-26T12:43:37.938496446Z,stdout,+ adduser openhab audio

2023-02-26T12:43:37.026500818Z,stdout,+ groupadd -g 997 gpio

2023-02-26T12:43:36.546742644Z,stdout,+ groupadd -g 492 audio5

2023-02-26T12:43:35.862349175Z,stdout,+ groupadd -g 490 dialout4

2023-02-26T12:43:35.082612684Z,stdout,+ groupadd -g 63 audio4

2023-02-26T12:43:34.409902865Z,stdout,+ groupadd -g 32 uucp3

2023-02-26T12:43:33.810647232Z,stdout,+ groupadd -g 18 dialout3

2023-02-26T12:43:32.658527844Z,stdout,+ groupadd -g 17 audio3

2023-02-26T12:43:32.154300028Z,stdout,+ groupadd -g 16 dialout2

2023-02-26T12:43:31.182790475Z,stdout,+ groupadd -g 14 uucp2

2023-02-26T12:43:30.506084930Z,stdout,+ groupadd -g 11 audio2

2023-02-26T12:43:29.180406057Z,stdout,adduser: Warning: The home directory `/openhab' does not belong to the user you are currently creating.

2023-02-26T12:43:29.180218091Z,stdout,The home directory `/openhab' already exists.  Not copying from `/etc/skel'.

2023-02-26T12:43:27.816946918Z,stdout,Adding new user `openhab' (1033) with group `openhab' ...

2023-02-26T12:43:27.816846991Z,stdout,Adding user `openhab' ...

2023-02-26T12:43:27.582527837Z,stdout,Warning: The home dir /openhab you specified already exists.

2023-02-26T12:43:27.007329762Z,stdout,+ adduser -u 1033 --disabled-password --gecos '' --home /openhab --gid 65537 openhab

2023-02-26T12:43:27.007271211Z,stdout,Create user openhab with id 1033

2023-02-26T12:43:27.007082821Z,stdout,+ echo 'Create user openhab with id 1033'

2023-02-26T12:43:26.343553086Z,stdout,+ groupadd -g 65537 openhab

2023-02-26T12:43:26.343500660Z,stdout,Create group openhab with id 65537

2023-02-26T12:43:26.343430972Z,stdout,+ echo 'Create group openhab with id 65537'

2023-02-26T12:43:26.343248794Z,stdout,+ '[' -z '' ']'

2023-02-26T12:43:26.340105306Z,stdout,++ getent group 65537

2023-02-26T12:43:26.326721192Z,stdout,+ id -u openhab

2023-02-26T12:43:26.326645004Z,stdout,Starting with openhab user id: 1033 and group id: 65537

2023-02-26T12:43:26.326577578Z,stdout,+ echo 'Starting with openhab user id: 1033 and group id: 65537'

2023-02-26T12:43:26.326518639Z,stdout,+ NEW_GROUP_ID=65537

2023-02-26T12:43:26.326331674Z,stdout,+ NEW_USER_ID=1033

2023-02-26T12:43:26.323772508Z,stdout,+ rm -f /openhab/userdata/tmp/instances/instance.properties

2023-02-26T12:43:26.321498034Z,stdout,+ rm -f '/var/lock/LCK..*'

2023-02-26T12:43:26.305483666Z,stdout,"+ grep -E Current:.+,cap_net_admin,cap_net_raw,.+
"
2023-02-26T12:43:26.305289100Z,stdout,+ capsh --print

2023-02-26T12:43:26.304187220Z,stdout,/etc/ssl/certs/adoptium/cacerts successfully populated.

2023-02-26T12:43:26.024185561Z,stdout,+ /etc/ca-certificates/update.d/adoptium-cacerts

2023-02-26T12:43:26.024092384Z,stdout,+ '[' limited = unlimited ']'

2023-02-26T12:43:26.023851918Z,stdout,+ JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64

2023-02-26T12:43:26.023665515Z,stdout,+ export JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64

2023-02-26T12:43:25.953528820Z,stdout,++ ls -d /usr/lib/jvm/temurin-11-jdk-amd64

2023-02-26T12:43:25.953406368Z,stdout,	'

2023-02-26T12:43:25.952530904Z,stdout,+ IFS='

I solved the issue by deleting the fields EXTRA_JAVA_OPTS and EXTRA_SHELL_OPTS. There is a button in the configuration UI that allows to do this. Once removed I was able to save and the container started up properly.