i tried to set up my Nextcloud Server using my Raspberrypi 3b+ (The Guide i followed)
the first start of nextcloud (the Admin page where you can set up the database) worked perfectly fine, Created my account and set up the postgres Database. now i wanted to mount an external Hard drive to Nextcloud. so i stopped and removed the docker, formated my hard drive (dev/sda2) and mounted it to a folder /media/usbdrive.
after that i used this commands:
sudo chown -R www-data:www-data /media/usbdrive
then i started the docker again with this command:
docker run --name nextcloud -d -p 8080:80 -v /media/usbdrive:/data --network nextcloud-net -v /home/pi/nextcloud:/var/www/html nextcloud
now i am looped back at the Admin page where i can set up the database. but cant create my account and get this Error:
Error while trying to initialise the database: An exception occured while executing a query: SQLSTATE[42P07]:Duplicate table: 7 ERROR: relation “oc_migrations” already exists
next day i cant even access the admin page anymore.
when i try to access the site: