Hello, Nextcloud community
I am writing directly to you because OMV community cannot help me with my problems anymore
I am runing:
- OpenMediaVault version 5.6.16-1 with kernel 5.10.0-0.bpo.8-amd64,
- Portainer 2.6.3,
For a short time I have working Nextcloud instance on my server, I was deployed it in Portainer using below compose file:
version: ‘2’
volumes:
nextcloud:
db:services:
db:
image: mariadb
container_name: nextcloud-database
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
volumes:
- /srv/dev-disk-by-uuid-1234/Config/nextcloud/database:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=PASSWORD
- MYSQL_PASSWORD=PASSWORD #the same as above
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=USERapp:
image: nextcloud
container_name: nextcloud
restart: always
ports:
- 4141:80
links:
- db
volumes:
- /srv/dev-disk-by-uuid-1234/NEXTCLOUD/data:/var/www/html/data #PATH WHERE USER’S DATA ARE STORED
- /srv/dev-disk-by-uuid-1234/Config/nextcloud/main:/var/www/html
- /srv/dev-disk-by-uuid-1234/Config/nextcloud/config:/var/www/html/config
- /srv/dev-disk-by-uuid-1234/Config/nextcloud/apps:/var/www/html/custom_apps
environment:
- MYSQL_PASSWORD=PASSWORD
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=USER
- MYSQL_HOST=db
I have a one hard drive in my OMV machine. The NEXTCLOUD folder is placed on the root of my OMV hd machine (/NEXTCLOUD), the Config/nextcloud/ folder is also placed on the root of my hard drive (/Config/nextcloud/) and it also contains (Config folder) some folders for other apps running on my server.
So I have managed do deploy below compose file correctly (of course all passwords and user entires are filled with my own data) and Nextcloud was running correctly when using it locally, but when trying to access via address set in my nginx configuration I am stuck on the login screen - I am able to enter login data but after pressing “Log in” button nothing happens (the loading image on the button keeps spinning and spinning). Bypassing this problem was available by refreshing the page - in this case I was taken directly to the nextcloud screen, but overall conenction was very slow, GUI have problems with load completely, etc. And I am also unable to login to it via Android app.
So I was looking for the solution to fix that problem in the internet and found some stuff to update in the config.php file. Unfortunately I was messed the config file completely and does not have a copy of it I was decided to undeploy whole nextcloud installation in Portainer. I have removed everything from there and after completing it I have removed both folders created while deploying compose file from my hard drive manually (using SMB connection; I need to update the privileges to the root/user user because these folders have their own privileges).
From this point my problems with installation have begun…
Right now I am able deploy nextcloud container but it can’t configure itself completely and get redy to work.
In nextcloud container log below information appears again and again now:
Initializing nextcloud 22.1.1.2 …,
rsync: [generator] delete_file: rmdir(data#302#240#302#240#302#240#302#240#302#240#302#240#302#240#302#240#302#240#302#240#302#240#302#240#302#240#302#240#302#240#302#240#PATH WHERE USER’S DATA ARE STORED) failed: Device or resource busy (16),
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3],
The paths are 100% correct.
Restart of the machine didn’t help.
I’ve even changed the port to other - didn’t help.
I’ve changed the paths to /Config/nxtcld and /NXTCLD - did’t help.
And I hear constant work of my hard drive while this process is in progress.
Folders Config/nextcloud (with all data created while deploying container) and /NEXTCLOUD/data are created and are accessible, but permissions for these folders are changed - I need to restore permissions of my root folder to delete these folders.
Previously for correct installation these folders are also created with changed permissions but not accessible from SMB.
PLEASE HELP