ronaldm
(Ronald Munjoma)
November 11, 2022, 12:05pm
1
Hi,
running, ./start-demo.sh Odoo container is not starting and throwing the below error
⠼ Container ozone-docker-odoo-1 Starting 62.4s
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting “/home/ronald/Documents/GitHub/ozone-docker/ozone/ozone-distro-1.0.0-SNAPSHOT/odoo_config/config/odoo.conf” to rootfs at “/etc/properties/odoo.conf”: mount /home/ronald/Documents/GitHub/ozone-docker/ozone/ozone-distro-1.0.0-SNAPSHOT/odoo_config/config/odoo.conf:/etc/properties/odoo.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
mksd
(Dimitri R)
November 11, 2022, 2:48pm
2
@ronaldm thanks for trying out Ozone, and for providing feedback, much appreciated.
While working on the 1.0.0-alpha release we have discovered that the quick start script needs to be fixed, so we (@achachiez ) are working on it.
@enochb is currently QA-ing the manual steps to run Ozone FOSS and shall be able to assist you spinning things up that way.
Alternatively you can try out Ozone Pro through the WIP dev server, see here: 📣 Ozone 1.0.0-alpha Sprint Update - #4 by mksd
achachiez
(Emmanuel Nyachoke)
November 11, 2022, 3:15pm
3
@ronaldm could you share your environment details like Operating System and Java version
ronaldm
(Ronald Munjoma)
November 12, 2022, 7:39am
4
Hi @achachiez
OS: Ubuntu 22.04.1 LTS (Desktop - Gnome)
java -version
openjdk version “18.0.2-ea” 2022-07-19
OpenJDK Runtime Environment (build 18.0.2-ea+9-Ubuntu-222.04)
OpenJDK 64-Bit Server VM (build 18.0.2-ea+9-Ubuntu-222.04, mixed mode, sharing)
ronald@x200:~/Documents/GitHub/ozone-docker $ ./start-demo.sh
Warning: JAVA_HOME environment variable is not set.
[INFO] Disabling enhanced local repository: using legacy is strongly discouraged to ensure build reproducibility.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.2.0:get (default-cli) @ standalone-pom ---
[INFO] Resolving net.mekomsolutions:ozone-distro:zip:1.0.0-SNAPSHOT
Downloading from temp: https://nexus.mekomsolutions.net/repository/maven-public/net/mekomsolutions/ozone-distro/1.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from temp: https://nexus.mekomsolutions.net/repository/maven-public/net/mekomsolutions/ozone-distro/1.0.0-SNAPSHOT/maven-metadata.xml (783 B at 438 B/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.144 s
[INFO] Finished at: 2022-11-12T09:34:55+02:00
[INFO] ------------------------------------------------------------------------
Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.2.0:unpack (default-cli) @ standalone-pom ---
[INFO] Configured Artifact: net.mekomsolutions:ozone-distro:1.0.0-SNAPSHOT:zip
[INFO] ozone-distro-1.0.0-SNAPSHOT.zip already unpacked.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.237 s
[INFO] Finished at: 2022-11-12T09:34:58+02:00
[INFO] ------------------------------------------------------------------------
WARN[0000] The "PROXY_TLS" variable is not set. Defaulting to a blank string.
[+] Building 3.5s (10/10) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/httpd:2.4-alpine 3.3s
=> [1/5] FROM docker.io/library/httpd:2.4-alpine@sha256:9272d0752a5830b8 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 275B 0.0s
=> CACHED [2/5] RUN apk add curl iproute2 iputils less nano tree ca-cert 0.0s
=> CACHED [3/5] COPY resources/httpd.conf /usr/local/apache2/conf/httpd. 0.0s
=> CACHED [4/5] COPY resources/proxy-rules /usr/local/apache2/conf/proxy 0.0s
=> CACHED [5/5] COPY resources/tls/cert.pem resources/tls/privkey.pem re 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:0d0035165a303ff3dc616dffd215f9e9798e61fa7d21f 0.0s
=> => naming to docker.io/library/ozone-docker-proxy 0.0s
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 12/13
⠿ Container ozone-docker-env-substitution-1 Exited 2.3s
⠿ Container ozone-docker-appointments-1 Running 0.0s
⠿ Container ozone-docker-senaite-1 Running 0.0s
⠿ Container ozone-docker-frontend-1 Running 0.0s
⠿ Container ozone-docker-mysql-1 Running 0.0s
⠿ Container ozone-docker-redis-1 Running 0.0s
⠿ Container ozone-docker-openmrs-1 Started 4.0s
⠿ Container ozone-docker-proxy-1 Running 0.0s
⠿ Container ozone-docker-postgresql-1 Healthy 6.8s
⠿ Container ozone-docker-superset-init-1 Exited 51.0s
⠦ Container ozone-docker-odoo-1 Starting 46.6s
⠿ Container ozone-docker-superset-worker-1 Started 1.1s
⠿ Container ozone-docker-superset-1 Started 1.0s
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/ronald/Documents/GitHub/ozone-docker/ozone/ozone-distro-1.0.0-SNAPSHOT/odoo_config/config/odoo.conf" to rootfs at "/etc/properties/odoo.conf": mount /home/ronald/Documents/GitHub/ozone-docker/ozone/ozone-distro-1.0.0-SNAPSHOT/odoo_config/config/odoo.conf:/etc/properties/odoo.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ronald@x200:~/Documents/GitHub/ozone-docker $ ./start-demo.sh
Warning: JAVA_HOME environment variable is not set.
[INFO] Disabling enhanced local repository: using legacy is strongly discouraged to ensure build reproducibility.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.2.0:get (default-cli) @ standalone-pom ---
[INFO] Resolving net.mekomsolutions:ozone-distro:zip:1.0.0-SNAPSHOT
Downloading from temp: https://nexus.mekomsolutions.net/repository/maven-public/net/mekomsolutions/ozone-distro/1.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from temp: https://nexus.mekomsolutions.net/repository/maven-public/net/mekomsolutions/ozone-distro/1.0.0-SNAPSHOT/maven-metadata.xml (783 B at 475 B/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.601 s
[INFO] Finished at: 2022-11-12T09:37:03+02:00
[INFO] ------------------------------------------------------------------------
Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.2.0:unpack (default-cli) @ standalone-pom ---
[INFO] Configured Artifact: net.mekomsolutions:ozone-distro:1.0.0-SNAPSHOT:zip
[INFO] ozone-distro-1.0.0-SNAPSHOT.zip already unpacked.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.522 s
[INFO] Finished at: 2022-11-12T09:37:06+02:00
[INFO] ------------------------------------------------------------------------
WARN[0000] The "PROXY_TLS" variable is not set. Defaulting to a blank string.
[+] Building 2.0s (10/10) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/httpd:2.4-alpine 1.8s
=> [1/5] FROM docker.io/library/httpd:2.4-alpine@sha256:9272d0752a5830b8d1f1a8db0604b26be504f4536b851e76cc931f9ac569d7db 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 275B 0.0s
=> CACHED [2/5] RUN apk add curl iproute2 iputils less nano tree ca-certificates lsof --no-cache 0.0s
=> CACHED [3/5] COPY resources/httpd.conf /usr/local/apache2/conf/httpd.conf 0.0s
=> CACHED [4/5] COPY resources/proxy-rules /usr/local/apache2/conf/proxy-rules 0.0s
=> CACHED [5/5] COPY resources/tls/cert.pem resources/tls/privkey.pem resources/tls/chain.pem /etc/tls/ 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:0d0035165a303ff3dc616dffd215f9e9798e61fa7d21f3062fe80c595637a79f 0.0s
=> => naming to docker.io/library/ozone-docker-proxy 0.0s
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 12/13
⠿ Container ozone-docker-env-substitution-1 Exited 1.7s
⠿ Container ozone-docker-frontend-1 Running 0.0s
⠿ Container ozone-docker-redis-1 Running 0.0s
⠿ Container ozone-docker-appointments-1 Running 0.0s
⠿ Container ozone-docker-mysql-1 Running 0.0s
⠿ Container ozone-docker-postgresql-1 Healthy 0.5s
⠿ Container ozone-docker-senaite-1 Running 0.0s
⠿ Container ozone-docker-openmrs-1 Started 2.9s
⠿ Container ozone-docker-superset-init-1 Exited 35.2s
⠿ Container ozone-docker-superset-worker-1 Running 0.0s
⠿ Container ozone-docker-proxy-1 Running 0.0s
⠿ Container ozone-docker-superset-1 Running 0.0s
⠇ Container ozone-docker-odoo-1 Starting 34.7s
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/ronald/Documents/GitHub/ozone-docker/ozone/ozone-distro-1.0.0-SNAPSHOT/odoo_config/config/odoo.conf" to rootfs at "/etc/properties/odoo.conf": mount /home/ronald/Documents/GitHub/ozone-docker/ozone/ozone-distro-1.0.0-SNAPSHOT/odoo_config/config/odoo.conf:/etc/properties/odoo.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ronald@x200:~/Documents/GitHub/ozone-docker $
1 Like
zotis
(Jacob S)
December 4, 2022, 4:52am
5
@ronaldm - try again from scratch, it should (hopefully) work for you. I had issues before, but got a clean installation working
2 Likes
achachiez
(Emmanuel Nyachoke)
December 5, 2022, 5:16am
6
@ronaldm this look like something is not being exported correctly. Are you working with manual instructions? Could pull the latest from main an try the quick start script.