Nextcloud with Letsencrypt using OMV and docker-compose - Q&A

    • Offizieller Beitrag

    I use one swag (letsencrypt) certificate (Zertikate) for four separate services, from one docker-compose.

  • Hello, can i use with GUIDE without the Debian 10 backport stack?


    Zitat

    I use one swag (letsencrypt) certificate (Zertikate) for four separate services, from one docker-compose.

    Hello.can i get templates from your domain?

    Did you use a free dynDNS service?


    Zitat

    Then in docker you do the port mapping (forwarding) from 444 LAN to 443 in docker

    and 81 LAN to 80 in docker

    Hello macon, did you have a screenshot for me?


    My sunday problem, i only get this error if i use the OpenMediaVault-Plugin-Developers/installScript:


    Installation GitHub, (ryecoaaron, votdev): https://github.com/OpenMediaVa…-Developers/installScript


    docker-compose


    Code
    sudo docker-compose --version   
    sudo: docker-compose: command not found


    Zitat

    aadd the following to your resolve.conf file /etc/resolv.conf

    nameserver 8.8.8.8

    nameserver 8.8.4.4


    https://serverfault.com/questi…-get-update/771826#771826


    Code
    sudo apt install docker-compose
    sudo docker-compose --version
    
    docker-compose version 1.21.0, build unknown
  • Hi, I am new to omv and try to set nextcloud up. I have follow the guide on

    [How-To] Nextcloud with Letsencrypt using OMV and docker-compose

    I am using cloudflare to set A record point to omv and with cname nextcloud. I deploy nextcloud stack under portainer.


    I have two problem and need help :


    1)Nextcloud website error message : The page isn’t redirecting properly


    2) Inside swag log - shall i download the OpenResty's versions?

    nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html).


    My docker-compose file is below :


    I hope someone able to guide me through this step by step as i am new to this NAS System.


    Thank you


    _nextcloud_logs.txt_nextclouddb_logs.txt_swag_logs (1).txt

    • Offizieller Beitrag

    openmedianer i can do that later today. I am away from the computer right now. I’m sorry but I use duckdns, so you will have to adjust accordingly.

  • Are you sure

    nextcloud.sunmarch.co.in is a valid URL?


    You can ignore the LUAJit error.

    Hi macom , i have add cname nextcloud.sunmarch.co.in in cloudflare and point to a A record which is toward omv server IP. To track my omv server IP, i do setup a stack under portainer using API token and keep updates on IP if have changes. Sorry, yesterday i do turn off my omv server as i have run this server for 5 days non stop and try to resolve this issue. I hope you can help and appreciate for your guidance.

    • Offizieller Beitrag

    openmedianer here you go:

    After you deploy you will have to set up a proxy for each of the services you have in the yml file, using the subdomains you registered in duckdns and in the yml. The various proxy files are found in appdata/swag/nginx/proxy-confs/ with a .sample appended to each file. Find the file corresponding to the different services you are deploying in the yml file. In each of those xxx.subdomain.conf.sample files there is a line where it reads server_name airsonic.*;. That needs to be changed to server_name huey.*; and so on for each service. Save each proxy file without the .sample.


    Obviously other services can be swapped out for the ones I have used here. Look through the proxy files provided in the folder mentioned above to see what is possible. It's probably easier to stay within the linuxserver family of dockers. I was able to include Navidrome because there just happened to be a proxy file included in the samples. If you feel adventurous there is even a generic version of the proxy files available.


    • macom 's [How-To] on Nextcloud, along with the accompanying Q &A, is a foundational must-read regarding the details of the correct implementation of this docker-compose.yml file. If you can deploy Nextcloud using this [How-To] you can deploy ANYTHING using docker-compose (or Stacks.) Thanks macom .
    • I would also like to give a hat tip to TechnoDadLife for his two Nextcloud videos [1] & [2] that started me wondering (a long time ago) why one would list five subdomains claimed with duckdns, and then only use one when setting up Nextcloud. Finally, a couple of months ago I patched together the above yml file and amazingly ... it worked! Thanks TDL.
  • Thanks for the HowTo! I have one question at the end. How do i use the "occ" command inside the container? do i have to use

    Code
    sudo -u www-data php occ

    or

    Code
    sudo -u abc php occ

    abc is the owner of the files inside the container but i only get this error:

    Code
    abc is not in the sudoers file.  This incident will be reported.

    what am i doing wrong? do i have to add abc to the group "sudo"?

    • Offizieller Beitrag

    Did you see any problems if i use for learning VirtualBox?

    Well, it has nothing to do with VirtualBox.


    I would suggest that for testing purposes you stick as much as possible to the guide. Once you got that running move on and try to change things until you are where you want to be.

  • Hello macom, i can reach from the internet my Nextcloud.

    Thank you.


    I would now like to access my nextcloud from the internal network, without internet.


    http://192.168.178.88/nextcloud


    Zitat

    Software Failure. Press left mouse button to continue.

    Die angeforderte Seite wurde nicht gefunden.

    How can i solved this problem?


    Why we doen't use the UUID for the HDD? --->

    Code
    dev-disk-by-label-SSD_Data
  • macom

    Hello macom, i didn't "docker-compose" with OMV 5 if use this script to install OMV 5:


    https://github.com/OpenMediaVa…-Developers/installScript


    I can solved this problem this:


    Code
    apt install docker-compose
    
    docker-compose --version
    docker-compose version 1.21.0, build unknown


    Hello, i get every day another ip adress.

    DuckDNS doesn't update the new ip adress i my case.

    Did we need the follow container?

    https://fleet.linuxserver.io/image?name=linuxserver/duckdns

  • Let me come back to my question in #446.

    In nextcloud now 20.0.7 I get the following warning in Settings->Overview:

    Zitat

    MariaDB version "10.1.47-MariaDB-0ubuntu0.18.04.1" is used. Nextcloud 21 will no longer support this version and requires MariaDB 10.2 or higher.

    My hardware (see signature) is an arm32 device.

    Even the newest mariadb image https://github.com/linuxserver…/110.4.17mariabionic-ls10 ("Bump to 10.4 ...") doesn't suppress the warning message.

    Why? "Inside" the nextclouddb (=mariadb) container we have 10.1.47:

    Code
    root@7f6f464c863c:~# apt list --installed | grep maria
    
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    
    mariadb-client-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local]
    mariadb-client-core-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local]
    mariadb-common/now 1:10.1.47-0ubuntu0.18.04.1 all [installed,local]
    mariadb-server/now 1:10.1.47-0ubuntu0.18.04.1 all [installed,local]
    mariadb-server-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local]
    mariadb-server-core-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local]

    What can I do?


    Remark: I also started a corresponding thread in armbian forum:

    https://forum.armbian.com/topi…iadb-docker-version-102ff


    EDIT:

    In https://discourse.linuxserver.io I found two posts which bring some light into the topic.


    1. From Nov 2020: https://discourse.linuxserver.…adb-on-raspberry-pi3/2221

    Mariadb dont push newer binaries for armhf


    2. From Mar 2020: https://discourse.linuxserver.…db-on-arm-still-v10-1/944

    arm one pulls from the ubuntu bionic repo: https://packages.ubuntu.com/bionic-updates/mariadb-server

    either that will be updated, or we’ll update the baseimage to ubuntu focal after it is released


    And the problem is: ubuntu focal doesn't support 32bit. So what to do with nextcloud 21?

    OMV 7.0.5 Sandworm | omvextrasorg 7.0 | compose 7.1 | Linux 6.6.16-current-mvebu | Armbian 24.2.1 Bookworm | Hardware Helios4 | RAID5 with 4 * 8TB WD Red

    Einmal editiert, zuletzt von FredK () aus folgendem Grund: Additional infos

  • macom

    Thank you for this great guide, I always keep coming back to this one, as this gets me the furthest.


    I am running on a raspberry pi 4, on the latest OMV5, afaik.

    In swag logging I get to


    Code
    Cleaning up challenges
    IMPORTANT NOTES:
    - Congratulations! Your certificate and chain have been saved at:
    /etc/letsencrypt/live/xxxx.duckdns.org/fullchain.pem
    Your key file has been saved at:
    /etc/letsencrypt/live/xxxx.duckdns.org/privkey.pem


    nextcloud logging keeps producting this however:

    Code
    nginx: [emerg] cannot load certificate "/config/keys/cert.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/config/keys/cert.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)


    How is that certificate generated by swag in /etc/letsencrypt/live/xxxx.duckdns.org/ supposed to make it to a folder nextcloud monitors (which is /config/keys/, right)?

    I might not be making any sense, at all. I am a total newb to docker and omv.

  • ...

    This would mean that you perform a sql dump of your nextcloud database (activate nextcloud maintenance before exporting and also take a backup) and import it into the new MariaDB. Are you able to do that?

    A few details would be gratefully accepted.

    OMV 7.0.5 Sandworm | omvextrasorg 7.0 | compose 7.1 | Linux 6.6.16-current-mvebu | Armbian 24.2.1 Bookworm | Hardware Helios4 | RAID5 with 4 * 8TB WD Red

Jetzt mitmachen!

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