Nexcloud installation on raspberry-pi failing with docker compose

Viewed 1073

Trying to install nextcloud on rpi4.

I'm getting below error when trying to install nextcloud on rpi4 running buster

Initializing nextcloud 23.0.4.1 ...,
touch: setting times of '/var/www/html/nextcloud-init-sync.lock': Operation not permitted,
Initializing nextcloud 23.0.4.1 ...,
Another process is initializing Nextcloud. Waiting 10 seconds...,

My docker-compose looks like this

version: '2'
services:
  db:
    image: yobasystems/alpine-mariadb:latest
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
    volumes:
      - /nextcloud:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=YOURROOTPASSWORD
      - MYSQL_PASSWORD=YOURPASSWORD
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
  app:
    image: nextcloud
    ports:
      - 8181:80
    links:
      - db
    volumes:
      - /nextcloud:/var/www/html
    restart: always

Please help!

2 Answers

Remove /var/www/html/nextcloud-init-sync.lock to unlock the installation process

I had the same issue and I could fixed it by mounting /var/www/html to a separate nextcloud volume. On the same level like service add this:

volumes:
  nextcloud:

in your app volumes set the volume like this:

- nextcloud:/var/www/html
Related