I tried to install NextCloud over OpenMediaVault and NextcloudPi via Docker but in both cases I wasn’t able to make it work. Anybody could share a recent working guide for Raspberry Pi?
I tried another time this tutorial but give this error:
Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused in the driver: SQLSTATE[HY000] [2002] Connection refused
I really don’t know what can I do.
it sounds your DB doesn’t accept credentials you provided.
Did you adopt user/password values in both services (db and app)?
Hi wwe! The problem was related to the volumes I created, now it’s ok. I need to solve another thing… I want to change the NextCloud default folder location in the external hdd from /nextcloud/files/admin/files to /documents. Furthermore I need copy/erase folders and files from Samba.
This is my stack:
version: '2'
services:
db:
image: yobasystems/alpine-mariadb:latest
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- /srv/dev-disk-by-uuid-2f9dc745-0f9b-413a-b2bf-794d3f087f59/nextcloud/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=PASSWORD
- MYSQL_PASSWORD=PASSWORD
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
restart: always
ports:
- 80:80
links:
- db
volumes:
- /srv/dev-disk-by-uuid-2f9dc745-0f9b-413a-b2bf-794d3f087f59/nextcloud/files:/var/www/html/data
- /srv/dev-disk-by-uuid-2f9dc745-0f9b-413a-b2bf-794d3f087f59/nextcloud/config:/var/www/html/config
- /srv/dev-disk-by-uuid-2f9dc745-0f9b-413a-b2bf-794d3f087f59/nextcloud/custom_apps:/var/www/html/custom_apps
- /srv/dev-disk-by-uuid-2f9dc745-0f9b-413a-b2bf-794d3f087f59/nextcloud/themes:/var/www/html/themes
environment:
- MYSQL_PASSWORD=
- MYSQL_DATABASE=PASSWORD
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
I don’t really get the question…
assume you want to move the data folder, please follow this how-to:
I have no idea what do you mean by
it looks you want to migrate some existing storage to your new Nextcloud… then I recommend you to look around this forum, make you comfortable with backup/restore procedures, upgrades, hardening before you move all you important data to Nextcloud instance you just installed (with lot of pain)…