nextcloud compose.yml question

  • hi all,


    So i have created a new install on nextcloud on omv6 following macons guide. thanks macon


    so everything went well other than i can not load the page to finish the nextcloud setup.

    i have no errors in swag or cloudflare (checking logs from portainer), when i check the logs for nextcloud it's just this line over and over again.


    Code
    Exception: Not installed in /config/www/nextcloud/lib/base.php:277
          
    Stack trace:
    #0 /config/www/nextcloud/lib/base.php(649): OC::checkInstalled()
    #1 /config/www/nextcloud/lib/base.php(1087): OC::init()
    #2 /config/www/nextcloud/cron.php(43): require_once('/config/www/nex...')
          
    }

    i have read that this is because i have not finished the nextcloud setup. (I could be wrong).


    here is my compose file, i have compared it to the one from the post and i only have one line extra under swag (- DNSPLUGIN=cloudflare)

    does anything look out of line?

  • HackitZ

    Hat den Titel des Themas von „another nextcloud question“ zu „nextcloud compose.yml question“ geändert.
    • Offizieller Beitrag

    Well, to begin with PUID=998 is wrong. You need to create a user in the Users tab of OMV. It will have a PUID of 1000 if you haven’t created one already. You can find out what your user’s id is by ssh into your server and enter id <user-name>

    System Backup Typo alert: Under the Linux section the command should be sudo umount /dev/sda1 NOT sudo unmount /dev/sda1

    Backup Data Disk to Backup Disk on Same Machine: In a Scheduled Job:rsync -av --delete /srv/dev-disk-by-uuid-f8814ed9-9a5c-4e1c-8830-426968c20ea3/ /srv/dev-disk-by-uuid-e67439d5-00a3-4942-bd5f-b84ab86aa850/ Don't forget trailing slashes, and BE CAREFUL. (HT: Getting Started with OMV5)

    Equipment - Thinkserver TS140, NanoPi M4 (v.1), Odroid XU4 (Using DietPi): PiHole

  • Thanks, I'm not sure where i got 998 from, but i have updated it to my docker user id.

    i restarted docker in the cli.

    i was then able to load the page to finish setup but it looked like a text page. tried to reload but it was the same.

    i went ahead and filled in the fields, now the page wont load. the url, I had to use was my local as the 192.168.1.2:450

    i was unable to use my own url mine.media

    I've tried another browser and the page tries to load while using 192.168.1.2:450, page instantly says err_too_many_redirects


    I also still have this error in the nextcloud logs, it's the last item listed.

    Code
    Stack trace:
    #0 /config/www/nextcloud/lib/base.php(649): OC::checkInstalled()
    #1 /config/www/nextcloud/lib/base.php(1087): OC::init()
    #2 /config/www/nextcloud/cron.php(43): require_once('/config/www/nex...')
    • Offizieller Beitrag

    Did you get a cert from Swag when you ran docker logs -f swag?

  • Did you get a cert from Swag when you ran docker logs -f swag?

    yes

    • Offizieller Beitrag

    LOL, it's OK, we all know where you got it.

    yes

    That doesn't necessarily say you got a cert


    Also, if you just signed up for Cloudflare and added it to your domain, it can take up to 24hrs for it to become active.

    • Offizieller Beitrag

    Thanks for the help.

    i've had cloudflare for about 2 days, it says active.

    yes i added my api to dns-conf.

    Yeah I'm not that familiar w/ how cloudflare works to give you much help on it... The swag documentation has it pretty well documented I do believe...


    https://docs.linuxserver.io/general/swag

  • so i'm to the point where i can get to the nextcloud page but it says

    "Access through untrusted domain

    Please contact your administrator. If you are an administrator, edit the "trusted_domains" setting in config/config.php like the example in config.sample.php.

    Further information how to configure this can be found in the documentation."

    i have checked my config.php and have tried removing my local ip, but at this point my url wont work. so i'm focused on getting my local ip to work. when i edit my confog.php, before i check i stop, nextcloud, nexctclouddb then swag. i then start swag, nextclouddb then nextcloud. in that oder.

    but i still get the access through untrusted domain.

    here is my config.php, does it look right?

    • Offizieller Beitrag

    Well, you need to add your domain under trusted domain... it should look something like this. You seem to have a port on the end, which shouldn't be necessary. Here's mine (obviously I use subdomains, but I think it should be similar)


  • KM0201

    Saw this some time ago and wanted to ask you about this snippet, although I think I already know the answer:


    Why you don't have swag as trusted proxy?!? Is it because you use swag outside the composer stack?


    As per instructions on linuxserver/docker-swag, you only need:

    Code
    # located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
    #  'trusted_proxies' => ['swag'],


    And, as I see it, if you're using a external network on docker stacks to point other services to swag, they will see it as hostname==swag so:

    Doesn't it work (nextcloud config.php) if you do it as per the conf.sample, instead of how you do it?

    • Offizieller Beitrag

    Yes (but I set it up like that even when I used swag inside the nextcloud stack). I set it up like that for the first time years ago and it worked fine... so I've just always set it up like that and it continues to work.

    • Offizieller Beitrag

    Yep, one more case of:

    There's too many ways to kill flies...


    :D

    Couldn't agree more.


    Hell just look at installing Nextcloud. You can install on the host, install with snap, install in docker w/ docker compose, install in docker w/ a stack... probably some other way I'm missing..


    And the end result is essentially all the same... You have Nextcloud

  • quick question what dns service is everyone using?

    i have been using dyndns for over 10 years and it does not work with swag. i posted why in another thread.

    anyways i setup cloudflare and after alot of messsing around was unable to get it to function properly. was reading i also needed to use thier authoritative DNS servers.

    on top of that i'm unable to get my other server managing my IP cameras to use cloudflare.

    so i'm thinking it's easier to see what everyone else is using. I know not everyone is using the same service just trying to get some options.

    tnx

  • I use my own domain from https://www.inwx.com. They provide full control over DNS and dynamic dns.

    But I do not use swag, but traefik which works well with http validation.


    Can't you set swag to use http instead of DNS validation?

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

    • Offizieller Beitrag

    so i'm thinking it's easier to see what everyone else is using.

    I use my own domain. With this container I solve the dynamic IP problem.

    [How-To] Install DuckDNS. Automatic dynamic IP update.

    I then set up subdomains of my domain by setting the Cname to mydomain.duckdns.org. For example nextcloud.mydomain.com or jellyfin.mydomain.com pointing to mydomain.duckdns.org

  • I use my own domain from https://www.inwx.com. They provide full control over DNS and dynamic dns.

    But I do not use swag, but traefik which works well with http validation.


    Can't you set swag to use http instead of DNS validation?

    no about 2 to 3 months ago my isp has blocked port 80. that took me hours and a few days to figure that out.

    i ended up using this site to figure that out.

    https://www.portchecktool.com

  • Swag with duckdns validation only needs port 443


    https://github.com/linuxserver/docker-swag#parameters

Jetzt mitmachen!

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