# OH3 portainer ./start.sh failed: No such file or directory

**URL:** <https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232>\
**Category:** Beginners\
**Tags:** docker, openhab3, portainer\
**Created:** [May 12, 2021, 10:21am UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232 "2021-05-12T10:21:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snubbeke](https://community.openhab.org/user_avatar/community.openhab.org/snubbeke/32/77619_2.png) [@Snubbeke](https://community.openhab.org/u/Snubbeke)\
**Post date:** [May 12, 2021, 10:21am UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232/1 "2021-05-12T10:21:44Z")

</div>

Upgrading hardware from RPi (running fine) to NUC where installed Ubuntu 20.04.2 LTS (GNU/Linux 5.8.0-50-generic x86\_64) + OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04) with Docker 20.10.2 and Portainer 1.24.2.

Managed to get all working even openhab container is “running” but [http://localhost:8080](http://localhost:8080) returns via Firefox on Ubuntu machine “unable to connect”.

See full log further below where it ends with:

```auto
++ echo gosu openhab tini -s ./start.sh
+ '[' 'gosu openhab tini -s ./start.sh' == 'gosu openhab tini -s ./start.sh' ']'
+ command=($@ server)
+ exec gosu openhab tini -s ./start.sh server
**[FATAL tini (24)] exec ./start.sh failed: No such file or directory**

```

Please find attached pictures of the portainer configuration where I have followed the instructions from the OH3 documentation.  
Also I have seen a similar post at “[not-able-to-start-a-new-installation-of-opernhab-on-synology-dsm-6-2-with-docker-and-portainer](https://community.openhab.org/t/not-able-to-start-a-new-installation-of-opernhab-on-synology-dsm-6-2-with-docker-and-portainer/120273)” but I could not derive a solution from here.

 ![portainer-1](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/6/2/6214df0785a49c415600f97c97c9bb071ce4c1d9.jpeg)  
 ![portainer-2](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/f/0/f0d0a0624e6e272fd2ac688fb9845f8d13255956.jpeg)  
 ![portainer-3](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/9/c/9c9528dc9cc0ea329a925c66bee8a837fde13000.jpeg)  
 ![portainer-4](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/0/c/0c49ccbf422df4305a289dbc7928bf38c1b957ef.jpeg)  
 ![portainer-5](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/7/d7e2d9cc045f5fd0c8beb31dcf12a93a723712a4.jpeg)  
 ![portainer-6](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/6/0/60e213123e87fb985b3182f81b9e8cf6df82ba27.jpeg)  
 ![portainer-7](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/8/e/8e087ac3bd88b1a2eadcd79dbf2e43be6eba28f5.jpeg)

Can anyone assist? Feels I am almost there 😉

Full log:

```auto
+ echo 'Configuring Zulu JDK 11 unlimited strength cryptography policy...'
Configuring Zulu JDK 11 unlimited strength cryptography policy...
+ '[' 11 = 8 ']'
+ '[' 11 = 11 ']'
+ java_security_file=/usr/lib/jvm/default-jvm/conf/security/java.security
+ sed -i 's/^crypto.policy=limited/crypto.policy=unlimited/' /usr/lib/jvm/default-jvm/conf/security/java.security
+ rm -f /openhab/runtime/instances/instance.properties
+ rm -f /openhab/userdata/tmp/instances/instance.properties
+ NEW_USER_ID=998
+ NEW_GROUP_ID=998
+ echo 'Starting with openhab user id: 998 and group id: 998'
Starting with openhab user id: 998 and group id: 998
+ id -u openhab
+ initialize_volume /openhab/conf /openhab/dist/conf
+ volume=/openhab/conf
+ source=/openhab/dist/conf
++ ls -A /openhab/conf
+ '[' -z 'html
icons
items
persistence
rules
scripts
services
sitemaps
sounds
things
transform' ']'
+ initialize_volume /openhab/userdata /openhab/dist/userdata
+ volume=/openhab/userdata
+ source=/openhab/dist/userdata
++ ls -A /openhab/userdata
+ '[' -z 'etc
logs
tmp' ']'
++ cmp /openhab/userdata/etc/version.properties /openhab/dist/userdata/etc/version.properties
+ '[' '!' -z ']'
+ chown -R openhab:openhab /openhab
+ sync
+ '[' -d /etc/cont-init.d ']'
+ sync
+ '[' false == false ']'
++ IFS=' '
++ echo gosu openhab tini -s ./start.sh
+ '[' 'gosu openhab tini -s ./start.sh' == 'gosu openhab tini -s ./start.sh' ']'
+ command=($@ server)
+ exec gosu openhab tini -s ./start.sh server
[FATAL tini (24)] exec ./start.sh failed: No such file or directory

```

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [May 12, 2021, 10:29am UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232/2 "2021-05-12T10:29:54Z")

</div>

What I see is you are assuming start.sh is in whatever directory Portainer chooses. The error indicates it is some place else.

Looking at the thread it appears to be related to using the Portainer settings defined by somebody in the community instead of using the developer supported docker software.

---

<div class="post-metadata">

**Author:** ![Snubbeke](https://community.openhab.org/user_avatar/community.openhab.org/snubbeke/32/77619_2.png) [@Snubbeke](https://community.openhab.org/u/Snubbeke)\
**Post date:** [May 12, 2021, 11:50am UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232/4 "2021-05-12T11:50:50Z")

</div>

This is with “find”:

 ![portainer-find](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/5/a/5a984e0ed50980c66d0ca6bd3b3f2b86ab0c7928.jpeg)

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [May 12, 2021, 11:51am UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232/5 "2021-05-12T11:51:19Z")

</div>

I have tested using Docker. I prefer using `docker run` myself but `docker-compose` should work too. They are both somewhat documented on the Docker Hub page.

> **[openhab/openhab - Docker Image](https://hub.docker.com/r/openhab/openhab/)**

Here are the website docs.

> **[Docker](https://www.openhab.org/docs/installation/docker.html)**
>
> a vendor and technology agnostic open source automation software for your home

---

<div class="post-metadata">

**Author:** ![Christian\_Brosius](https://community.openhab.org/user_avatar/community.openhab.org/christian_brosius/32/73683_2.png) [@Christian\_Brosius](https://community.openhab.org/u/Christian_Brosius)\
**Post date:** [May 12, 2021, 12:02pm UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232/6 "2021-05-12T12:02:41Z")

</div>

On my pure OpenHAB-Container using Portainer, the Working-Dir is **/openhab** and not **/opt/openhab**

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/2/8/287d54cd9e088c7c989992e5e135d29497ae89be.png)

Maybe that is something you can check.

Kindest regards,  
Christian…

---

<div class="post-metadata">

**Author:** ![Snubbeke](https://community.openhab.org/user_avatar/community.openhab.org/snubbeke/32/77619_2.png) [@Snubbeke](https://community.openhab.org/u/Snubbeke)\
**Post date:** [May 12, 2021, 12:46pm UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232/7 "2021-05-12T12:46:54Z")

</div>

Yaml worked! THANKS!

 ![portainer-yaml](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/8/5/85883014867678d45aa58293b6622dfca17d76ca.jpeg)  
Now I have to find the differences in Portainer …

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [May 12, 2021, 12:50pm UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232/8 "2021-05-12T12:50:24Z")

</div>

> [@Christian\_Brosius](#):
>
> On my pure OpenHAB-Container using Portainer, the Working-Dir is **/openhab** and not **/opt/openhab**

That could very well be the issue for them

---

<div class="post-metadata">

**Author:** ![Snubbeke](https://community.openhab.org/user_avatar/community.openhab.org/snubbeke/32/77619_2.png) [@Snubbeke](https://community.openhab.org/u/Snubbeke)\
**Post date:** [May 12, 2021, 12:54pm UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232/9 "2021-05-12T12:54:36Z")

</div>

I will try later with another one. First difference I see is the volumes and the “ID” is different.

 ![portainer-volumes](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/e/c/ecaa856d0e35baaf7d28a8676823365cdf7dda6e.jpeg)

---

<div class="post-metadata">

**Author:** ![Snubbeke](https://community.openhab.org/user_avatar/community.openhab.org/snubbeke/32/77619_2.png) [@Snubbeke](https://community.openhab.org/u/Snubbeke)\
**Post date:** [May 12, 2021, 12:56pm UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232/10 "2021-05-12T12:56:03Z")

</div>

Next challenge is to get the backup from RPi in here. I am gonna miss the config tool 😂

---

<div class="post-metadata">

**Author:** ![Snubbeke](https://community.openhab.org/user_avatar/community.openhab.org/snubbeke/32/77619_2.png) [@Snubbeke](https://community.openhab.org/u/Snubbeke)\
**Post date:** [May 15, 2021, 9:24am UTC](https://community.openhab.org/t/oh3-portainer-start-sh-failed-no-such-file-or-directory/122232/11 "2021-05-15T09:24:47Z")

</div>

You were right. Changing the Working Dir as suggested worked. No more errors.
