NextCloud - Internal Server Error

  • 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

    Dell 3050 Micro, i5-6500T, 8GB Ram

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 512gb SSD Boot, 1tb nvme Data, 16TB (8tbx 2 merg) Media,

    Docker - dozzle, netdata, nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

  • I have deployed the following stack in Portainer :

  • Ah you are using Swag. I have no clue than sorry don't use swag. I use NPM.

    Dell 3050 Micro, i5-6500T, 8GB Ram

    Plugins - compose, cputemp, omv-extras, sharerootfs.

    Drives - 512gb SSD Boot, 1tb nvme Data, 16TB (8tbx 2 merg) Media,

    Docker - dozzle, netdata, nginx-proxy-manager, plex, prowlarr, qbittorrentvpn, radarr, sonarr, watchtower.

  • 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

  • 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:


    Deploy it, wait a while and post the output of (hide sensible data)

    docker logs swag

    • 09/09/2023 15:42:38 [migrations] started
    • 09/09/2023 15:42:38 [migrations] 01-nginx-site-confs-default: skipped
    • 09/09/2023 15:42:38 [migrations] done
    • 09/09/2023 15:42:39 ───────────────────────────────────────
    • 09/09/2023 15:42:39
    • 09/09/2023 15:42:39 ██╗ ███████╗██╗ ██████╗
    • 09/09/2023 15:42:39 ██║ ██╔════╝██║██╔═══██╗
    • 09/09/2023 15:42:39 ██║ ███████╗██║██║ ██║
    • 09/09/2023 15:42:39 ██║ ╚════██║██║██║ ██║
    • 09/09/2023 15:42:39 ███████╗███████║██║╚██████╔╝
    • 09/09/2023 15:42:39 ╚══════╝╚══════╝╚═╝ ╚═════╝
    • 09/09/2023 15:42:39
    • 09/09/2023 15:42:39 Brought to you by linuxserver.io
    • 09/09/2023 15:42:39 ───────────────────────────────────────
    • 09/09/2023 15:42:39
    • 09/09/2023 15:42:39 To support the app dev(s) visit:
    • 09/09/2023 15:42:39 Certbot: https://supporters.eff.org/donate/support-work-on-certbot
    • 09/09/2023 15:42:39
    • 09/09/2023 15:42:39 To support LSIO projects visit:
    • 09/09/2023 15:42:39 https://www.linuxserver.io/donate/
    • 09/09/2023 15:42:39
    • 09/09/2023 15:42:39 ───────────────────────────────────────
    • 09/09/2023 15:42:39 GID/UID
    • 09/09/2023 15:42:39 ───────────────────────────────────────
    • 09/09/2023 15:42:39
    • 09/09/2023 15:42:39 User UID: 1003
    • 09/09/2023 15:42:39 User GID: 100
    • 09/09/2023 15:42:39 ───────────────────────────────────────
    • 09/09/2023 15:42:39
    • 09/09/2023 15:42:39 using keys found in /config/keys
    • 09/09/2023 15:42:41 Variables set:
    • 09/09/2023 15:42:41 PUID=1003
    • 09/09/2023 15:42:41 PGID=100
    • 09/09/2023 15:42:41 TZ=Europe/Paris
    • 09/09/2023 15:42:41 URL=mydomain.duckdns.org
    • 09/09/2023 15:42:41 SUBDOMAINS=wildcard
    • 09/09/2023 15:42:41 EXTRA_DOMAINS=
    • 09/09/2023 15:42:41 ONLY_SUBDOMAINS=false
    • 09/09/2023 15:42:41 VALIDATION=duckdns
    • 09/09/2023 15:42:41 CERTPROVIDER=
    • 09/09/2023 15:42:41 DNSPLUGIN=
    • 09/09/2023 15:42:41 EMAIL=mydomain@gmail.com
    • 09/09/2023 15:42:41 STAGING=
    • 09/09/2023 15:42:41
    • 09/09/2023 15:42:45 the resulting certificate will only cover the subdomains due to a limitation of duckdns, so it is advised to set the root location to use http://www.subdomain.duckdns.org
    • 09/09/2023 15:42:45 Different validation parameters entered than what was used before. Revoking and deleting existing certificate, and an updated one will be created
    • 09/09/2023 15:42:49 Saving debug log to /var/log/letsencrypt/letsencrypt.log
    • 09/09/2023 15:42:49 No certificate found with name mydomain.duckdns.org (expected /etc/letsencrypt/renewal/mydomain.duckdns.org.conf).
    • 09/09/2023 15:42:49 Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
    • 09/09/2023 15:42:49 Using Let's Encrypt as the cert provider
    • 09/09/2023 15:42:49 SUBDOMAINS entered, processing
    • 09/09/2023 15:42:49 Wildcard cert for mydomain.duckdns.org will be requested
    • 09/09/2023 15:42:49 E-mail address entered: mydomain@gmail.com
    • 09/09/2023 15:42:49 dns validation via duckdns plugin is selected
    • 09/09/2023 15:42:49 Generating new certificate
    • 09/09/2023 15:42:52 Saving debug log to /var/log/letsencrypt/letsencrypt.log
    • 09/09/2023 15:42:53 Account registered.
    • 09/09/2023 15:42:53 Requesting a certificate for *.mydomain.duckdns.org
    • 09/09/2023 15:42:54 Unsafe permissions on credentials configuration file: /config/dns-conf/duckdns.ini
    • 09/09/2023 15:42:54 Unsafe permissions on credentials configuration file: /config/dns-conf/duckdns.ini
    • 09/09/2023 15:42:54 Waiting 30 seconds for DNS changes to propagate
    • 09/09/2023 15:43:29
    • 09/09/2023 15:43:29 Successfully received certificate.
    • 09/09/2023 15:43:29 Certificate is saved at: /etc/letsencrypt/live/mydomain.duckdns.org/fullchain.pem
    • 09/09/2023 15:43:29 Key is saved at: /etc/letsencrypt/live/mydomain.duckdns.org/privkey.pem
    • 09/09/2023 15:43:29 This certificate expires on 2023-12-08.
    • 09/09/2023 15:43:29 These files will be updated when the certificate renews.
    • 09/09/2023 15:43:29 NEXT STEPS:
    • 09/09/2023 15:43:29 - The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
    • 09/09/2023 15:43:29
    • 09/09/2023 15:43:29 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    • 09/09/2023 15:43:29 If you like Certbot, please consider supporting our work by:
    • 09/09/2023 15:43:29 * Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
    • 09/09/2023 15:43:29 * Donating to EFF: https://eff.org/donate-le
    • 09/09/2023 15:43:29 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    • 09/09/2023 15:43:31 New certificate generated; starting nginx
    • 09/09/2023 15:43:31 The cert does not expire within the next day. Letting the cron script handle the renewal attempts overnight (2:08am).
    • 09/09/2023 15:43:31 [custom-init] No custom files found, skipping...
    • 09/09/2023 15:43:31 [ls.io-init] done.
    • 09/09/2023 15:43:36 Server ready
  • 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 :

    • 09/09/2023 15:32:41 [migrations] started
    • 09/09/2023 15:32:41 [migrations] 01-nginx-site-confs-default: executing...
    • 09/09/2023 15:32:41 [migrations] 01-nginx-site-confs-default: succeeded
    • 09/09/2023 15:32:41 [migrations] 02-default-location: executing...
    • 09/09/2023 15:32:42 grep: /config/nginx/site-confs/default.conf: No such file or directory
    • 09/09/2023 15:32:42 [migrations] 02-default-location: succeeded
    • 09/09/2023 15:32:42 [migrations] done
    • 09/09/2023 15:32:44 ───────────────────────────────────────
    • 09/09/2023 15:32:44
    • 09/09/2023 15:32:44 ██╗ ███████╗██╗ ██████╗
    • 09/09/2023 15:32:44 ██║ ██╔════╝██║██╔═══██╗
    • 09/09/2023 15:32:44 ██║ ███████╗██║██║ ██║
    • 09/09/2023 15:32:44 ██║ ╚════██║██║██║ ██║
    • 09/09/2023 15:32:44 ███████╗███████║██║╚██████╔╝
    • 09/09/2023 15:32:44 ╚══════╝╚══════╝╚═╝ ╚═════╝
    • 09/09/2023 15:32:44
    • 09/09/2023 15:32:44 Brought to you by linuxserver.io
    • 09/09/2023 15:32:44 ───────────────────────────────────────
    • 09/09/2023 15:32:44
    • 09/09/2023 15:32:44 To support LSIO projects visit:
    • 09/09/2023 15:32:44 https://www.linuxserver.io/donate/
    • 09/09/2023 15:32:44
    • 09/09/2023 15:32:44 ───────────────────────────────────────
    • 09/09/2023 15:32:44 GID/UID
    • 09/09/2023 15:32:44 ───────────────────────────────────────
    • 09/09/2023 15:32:44
    • 09/09/2023 15:32:44 User UID: 1003
    • 09/09/2023 15:32:44 User GID: 100
    • 09/09/2023 15:32:44 ───────────────────────────────────────
    • 09/09/2023 15:32:44
    • 09/09/2023 15:32:45 Setting resolver to 127.0.0.11
    • 09/09/2023 15:32:45 Setting worker_processes to 2
    • 09/09/2023 15:32:45 generating self-signed keys in /config/keys, you can replace these with your own keys if required
    • 09/09/2023 15:32:46 ....+......+.........+.....+++++++++++++++++++++++++++++++++++++++*..+.........+......+....+...+......+..+++++++++++++++++++++++++++++++++++++++*....+.........+....+...+.......................+............+.............+..+....+...+.....+...+....+....................+.+............+..+.........+....+...+............+......+......+.....+......+...+.+...+...+..+...+..........+...+............+..+......+......+...+..........+........+............+.+......+...++++++
    • 09/09/2023 15:32:46 .....+.+..+.......+..+...+++++++++++++++++++++++++++++++++++++++*.+....+........+.......+........+...+....+++++++++++++++++++++++++++++++++++++++*.+.+...+........+.........+.+...............+..+.+......+.....+....+.........+....................................+..............+...+...+............+.......+..+.+...+..+....+.....+...+...+....+......+...+......+...+..+.........+.+.........+...........+...+......+.......+...+..+...+......+...+.+...........+.........+.+...+............+........+............+....+..+.........+...+............+....+.....+....+..+...+...+....+...+............+...+......+.....+....++++++
    • 09/09/2023 15:32:46 -----
    • 09/09/2023 15:32:48 Initializing nextcloud 27.0.2.1 (this can take a while) ...
    • 09/09/2023 15:34:39 Setting permissions
    • 09/09/2023 15:34:39 New nextcloud instance
    • 09/09/2023 15:34:39 Please run the web-based installer on first connect!
    • 09/09/2023 15:34:39 Initializing finished
    • 09/09/2023 15:34:43 After completing the web-based installer, restart the Nextcloud container to apply default memory caching and transactional file locking configurations.
    • 09/09/2023 15:34:43 Alternatively, you can apply your own configurations by editing /config/www/nextcloud/config/config.php following the documentation:
    • 09/09/2023 15:34:43 https://docs.nextcloud.com/ser…aching_configuration.html
    • 09/09/2023 15:34:43 https://docs.nextcloud.com/ser…ocking_transactional.html
    • 09/09/2023 15:34:46 # do daily/weekly/monthly maintenance
    • 09/09/2023 15:34:46 # min hour day month weekday command
    • 09/09/2023 15:34:46 */15 * * * * run-parts /etc/periodic/15min
    • 09/09/2023 15:34:46 0 * * * * run-parts /etc/periodic/hourly
    • 09/09/2023 15:34:46 0 2 * * * run-parts /etc/periodic/daily
    • 09/09/2023 15:34:46 0 3 * * 6 run-parts /etc/periodic/weekly
    • 09/09/2023 15:34:46 0 5 1 * * run-parts /etc/periodic/monthly
    • 09/09/2023 15:34:46 # nextcloud cron
    • 09/09/2023 15:34:46 */5 * * * * s6-setuidgid abc php -f /app/www/public/cron.php
    • 09/09/2023 15:34:46 cp: not replacing '/config/crontabs/root'
    • 09/09/2023 15:34:46 [custom-init] No custom files found, skipping...
    • 09/09/2023 15:34:46 [ls.io-init] done.
    • 09/09/2023 15:35:01 Exception: Not installed in /app/www/public/lib/base.php:285
    • 09/09/2023 15:35:01 Stack trace:
    • 09/09/2023 15:35:01 #0 /app/www/public/lib/base.php(712): OC::checkInstalled()
    • 09/09/2023 15:35:01 #1 /app/www/public/lib/base.php(1180): OC::init()
    • 09/09/2023 15:35:01 #2 /app/www/public/cron.php(43): require_once('...')
    • 09/09/2023 15:35:01 #3 {main}
    • 09/09/2023 15:40:01 Exception: Not installed in /app/www/public/lib/base.php:285
    • 09/09/2023 15:40:01 Stack trace:
    • 09/09/2023 15:40:01 #0 /app/www/public/lib/base.php(712): OC::checkInstalled()
    • 09/09/2023 15:40:01 #1 /app/www/public/lib/base.php(1180): OC::init()
    • 09/09/2023 15:40:01 #2 /app/www/public/cron.php(43): require_once('...')
    • 09/09/2023 15:40:01 #3 {main}
    • 09/09/2023 15:45:01 Exception: Not installed in /app/www/public/lib/base.php:285
    • 09/09/2023 15:45:01 Stack trace:
    • 09/09/2023 15:45:01 #0 /app/www/public/lib/base.php(712): OC::checkInstalled()
    • 09/09/2023 15:45:01 #1 /app/www/public/lib/base.php(1180): OC::init()
    • 09/09/2023 15:45:01 #2 /app/www/public/cron.php(43): require_once('...')
    • 09/09/2023 15:45:01 #3 {main}
  • 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.


    • Offizieller Beitrag

    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

    • Offizieller Beitrag

    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.

    • Offizieller Beitrag

    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.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!