When I try https://192.168.1.23:450/ I get the following error message :
how did you install nextcloud docker? if so can you show the compose give as much information as possable
When I try https://192.168.1.23:450/ I get the following error message :
how did you install nextcloud docker? if so can you show the compose give as much information as possable
I have deployed the following stack in Portainer :
version: "2"
services:
nextcloud:
image: ghcr.io/linuxserver/nextcloud
container_name: nextcloud
environment:
- PUID=1003
- PGID=100
- TZ=Europe/Paris
volumes:
- /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/nextcloud/config:/config
- /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/nextcloud/data:/data
depends_on:
- mariadb
ports:
- 450:443
restart: unless-stopped
mariadb:
image: ghcr.io/linuxserver/mariadb
container_name: mariadb
environment:
- PUID=1003
- PGID=100
- MYSQL_ROOT_PASSWORD=mariadbpassword
- TZ=Europe/Paris
volumes:
- /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/nextclouddb:/config
restart: unless-stopped
swag:
image: ghcr.io/linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1003
- PGID=100
- TZ=Europe/Paris
- URL=mydomain.duckdns.org
- SUBDOMAINS=wildcard
- VALIDATION=duckdns
- DUCKDNSTOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- EMAIL=mydomain@gmail.com
volumes:
- /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/swag:/config
- /etc/localtime:/etc/localtime:ro
ports:
- 444:443
- 81:80
restart: unless-stopped
And now when I have a look at the log :
thrown in /app/www/public/cron.php on line 192
PHP Fatal error: Uncaught Error: Typed static property OC::$server must not be accessed before initialization in /app/www/public/cron.php:192
Stack trace:
Alles anzeigen
Ah you are using Swag. I have no clue than sorry don't use swag. I use NPM.
How can I have the right owner for the folder as I create it by Portainer ?
It is a fresh install but I try it several time.
That's all I need to know. That way I can guide you through by first, removing the old folders and recreate them on launch time of the stack.
If you're using portainer, first bring down the STACK and remove/delete it on the portainer GUI.
After it's cleared:
sudo rm -r /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/nextcloud
sudo rm -r /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/nextclouddb
sudo rm -r /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/swag
Post the output of:
sudo ls -al /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata
Thank you for your Help
Done !
Container and stack are remove.
Now either use portainer again or better use openmediavault-compose.
On portainer, just create a new STACK and paste the CODE below.
If compose plugin, goto FILES, create new, name it nextcloud and PASTE the CODE below on the FILES box:
version: "2.1"
services:
nextcloud:
image: ghcr.io/linuxserver/nextcloud:latest
container_name: nextcloud
environment:
- PUID=1003
- PGID=100
- TZ=Europe/Paris
volumes:
- /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/nextcloud/config:/config
- /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/nextcloud/data:/data
depends_on:
- mariadb
ports:
- 450:443
restart: unless-stopped
mariadb:
image: ghcr.io/linuxserver/mariadb:latest
container_name: mariadb
environment:
- PUID=1003
- PGID=100
- MYSQL_ROOT_PASSWORD=mariadbpassword
- TZ=Europe/Paris
volumes:
- /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/mariadb/config:/config
restart: unless-stopped
swag:
image: ghcr.io/linuxserver/swag:latest
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1003
- PGID=100
- TZ=Europe/Paris
- URL=mydomain.duckdns.org
- SUBDOMAINS=wildcard
- VALIDATION=duckdns
- DUCKDNSTOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- EMAIL=mydomain@gmail.com
volumes:
- /srv/dev-disk-by-uuid-c8a4644c-e22d-4b2c-924b-456dc4b1a801/appdata/swag/config:/config
- /etc/localtime:/etc/localtime:ro
ports:
- 444:443
- 81:80
restart: unless-stopped
Alles anzeigen
Deploy it, wait a while and post the output of (hide sensible data)
docker logs swag
You did edited the mydomainwith your own, correct?
Can you now, see the SWAG park page when:
https://www.mydomain.duckdns.org?
I have errors in nextcloud log :
have errors in nextcloud log :
Pls, one step at a time.
If you can't reach the SWAG page, then either your duck domain isn't pointing to your WAN IP, your portforward on the router is wrong/fail or you are behind a CGNAT.
Until you correct it, there's nothing that can be done.
As for Nextcloud, access it locally with:
https://Lan_ip:450
Accept the warning and do the initial install.
Last case, you can try Nextcloud AIO since chente seems to get a good hang of it now.
can reach nextcloud install page :
Follow what is on the guide:
You need to change the database to MySQL/mariaDB and use the password that you put on the YML.
Last case, you can try Nextcloud AIO since chente seems to get a good hang of it now.
I wish I had tried it sooner. It all works through its own GUI. Installs all containers automatically. You can schedule backups and AIO takes care of stopping containers, making the backup and starting them up. Updates are automatic.
It is a true delight. No need to write anything in CLI.
You install it and completely forget about maintenance.
Here is an example configuration:
wish I had tried it sooner
Until now, I have no reason to drop linuxserver.
Just upgraded my stack, with new images for all services: redis, mariaDB, Nextcloud and SWAG.
It was flawless.
As for the issue with TonyNGUYEN
Redoing everything from scratch and SWAG is still not showing so I think going AIO is the solution.
"You need to change the database to MySQL/mariaDB and use the password that you put on the YML."
This is what I did, select MySQL/mariaDB and fill the password.
I am going to try chente guide
Until now, I have no reason to drop linuxserver.
I didn't have a real reason either, except for the problems with the updates. Nothing serious, but time spent on it every time. I got tired. BernH and BlueCoffee were to blame for that actually, I only tried it because of the comments they made about Nextcloud AIO And the truth is that it was a success.
I am going to try chente guide
It is a guide to setting up a server from scratch, so you will have to adapt it to your system, folders, users, etc.
ZitatIt is a guide to setting up a server from scratch
I don't want to restart from scratch because I will lost my data.
I will go on trying to solve my problem
Thank you all for your help
I don't want to restart from scratch because I will lost my data.
I didn't tell you to restart from scratch. I just said that you should adapt the guide to the configuration you already have on your server. I didn't say that you adapt your server to the guide, but rather the guide to the server.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!