T_K
June 25, 2019, 1:42pm
1
I’m starting owncloud on docker exactly as described here in the documentation: https://doc.owncloud.com/server/admin_manual/installation/docker/
Though it’s not starting and causing a “format exec error” in the docker logs.
I’m running it on Ubuntu 18.04 LTS (bionic) and docker version 18.09.5, build e8ff056.
Hi,
Can you paste your docker-compose.yml
and your .env
file? You can remove any sensitive information.
Something must have gotten mangled inside there, because I just set up an ownCloud docker on 18.04 before and when I double checked the instructions on 19.04 it worked as well.
Cheers,
Erik
1 Like
Thanks, I’m using ubuntu without GUI, just terminal version on an Odroid armv71 .
The docker compose looks like:
version: '2.1'
volumes:
files:
driver: local
mysql:
driver: local
backup:
driver: local
redis:
driver: local
services:
owncloud:
image: owncloud/server:${OWNCLOUD_VERSION}
restart: always
ports:
- ${HTTP_PORT}:8080
depends_on:
- db
- redis
environment:
- OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN}
- OWNCLOUD_DB_TYPE=mysql
- OWNCLOUD_DB_NAME=owncloud
- OWNCLOUD_DB_USERNAME=owncloud
- OWNCLOUD_DB_PASSWORD=owncloud
- OWNCLOUD_DB_HOST=db
- OWNCLOUD_ADMIN_USERNAME=${ADMIN_USERNAME}
- OWNCLOUD_ADMIN_PASSWORD=${ADMIN_PASSWORD}
- OWNCLOUD_MYSQL_UTF8MB4=true
- OWNCLOUD_REDIS_ENABLED=true
- OWNCLOUD_REDIS_HOST=redis
healthcheck:
test: ["CMD", "/usr/bin/healthcheck"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- files:/mnt/data
db:
image: webhippie/mariadb:latest
restart: always
environment:
- MARIADB_ROOT_PASSWORD=owncloud
- MARIADB_USERNAME=owncloud
- MARIADB_PASSWORD=owncloud
- MARIADB_DATABASE=owncloud
- MARIADB_MAX_ALLOWED_PACKET=128M
- MARIADB_INNODB_LOG_FILE_SIZE=64M
healthcheck:
test: ["CMD", "/usr/bin/healthcheck"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- mysql:/var/lib/mysql
- backup:/var/lib/backup
redis:
image: webhippie/redis:latest
restart: always
environment:
- REDIS_DATABASES=1
healthcheck:
test: ["CMD", "/usr/bin/healthcheck"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- redis:/var/lib/redis
The envvars:
#set owncloud envvars
cat << EOF > .env
OWNCLOUD_VERSION=10.0
OWNCLOUD_DOMAIN=localhost
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
HTTP_PORT=8082
EOF
sudo docker-compose up -d
Sorry for the late answer… I created an new account but the answers needed to be allowed by mods so…
T_K:
format exec error
What’s your docker-compose version, perhaps for arm there is only an older, not compatible, version available?
dpkg -l | grep docker-compose
Did you clip anything off the error message? Does it show any additional, potentially helpful details, like a file or a module path?
1 Like
Just a reminder: make sure to redeploy ownCloud with modified username and password once you have it running.
2 Likes