Posts by UKnau22

    I haven't had a chance to test the command yet (I choose not to restart my Odroid purposefully because of its strange issues with HDD detection), but I'll remember to try :)


    Untested, but here's what I'd try:

    • Login to the OMV's Linux shell
    • sudo nano /etc/systemd/system/remount-nfs-on-unlock.service
    • In the editor, paste this:
    Code
    [Unit]
    Description=Remount NFS shares once LUKS volumes are unlocked
    After=default.target
    
    [Service]
    ExecStart=/usr/local/bin/remount-nfs-on-unlock.sh
    
    [Install]
    WantedBy=default.target
    • sudo nano /usr/local/bin/remount-nfs-on-unlock.sh
    • In the editor, paste this: (you may need to refer to "Storage > Encryption" in OMV panel and replace the path in the 5th line of the script below with what you see in the "Decrypted Device" column)

    (thank you DimaKompot for this script)

    • sudo chmod a+x /usr/local/bin/remount-nfs-on-unlock.sh
    • sudo systemctl enable remount-nfs-on-unlock.service

    Great write-up! I just stumbled across the same issue and found this thread. Took 5 minutes to implement and works!!!

    THANK YOU! :D

    OK, I figured it out just by hunch.... Had to add the full path to the /docker/volumes/.... directory in the docker compose file.


    However... And this is what I've been dealing with all day... I can not access NextCloud through either the local IP:8080 nor NGINX...

    I give up

    This is the docker compose from the guide. I used it without any changes. The nextcloud_aio_mastercontainer directory was created but nothing inside it. The /_data folder doesn't exist


    I used the docker compose file for NextCloud AIO with reverse proxy option , but when I try deploy that container I get an error and it doesn't start.

    I checked in the docker/volumes directory and it did create the nextcloud_aio_mastercontainer directory. It's empty though..

    Quote


    Error response from daemon: error evaluating symlinks from mount source "/srv/dev-disk-by-uuid-06b2b88f-d787-4fa0-abe6-8bebfcc3ac56/docker/volumes/nextcloud_aio_mastercontainer/_data": lstat /srv/dev-disk-by-uuid-06b2b88f-d787-4fa0-abe6-8bebfcc3ac56/docker/volumes/nextcloud_aio_mastercontainer/_data: no such file or directory in /usr/share/openmediavault/engined/rpc/compose.inc:613

    OK, I got that setup working in a test container. Made the necessary adjustments for a wildcard certificate and was able to setup the nginx for my HomeAssistant instance. Now both, NextCloud test server and HomeAssistant are accessible...


    Now I just gotta figure out how to migrate NextCloud from my previous installation. ||


    Thank you for helping out with this part! I'm still a work in progress...

    I reinstalled NextCloud and Swag in a new OMV/Docker setup and can not figure out why NextCloud throws the 502 error.


    I followed the guides available everywhere, copying the Swag nextcloud.subdomain.conf.sample to nextcloud.subdomain.conf and editing the NextCloud config.php file, using a copy from my previous setup as a template.


    Swag is working fine, it pulled my wildcard certificate which I'm using for HomeAssistant (homeassistant.xxxxxxxx.duckdns.org). I also want to use it for nextcloud.xxxxxxxduckdns.org, which is what I did in my previous setup. When I attach to the console and ping the NextCloud container it gets a response.


    Can't find anything in the NextCloud container logs


    Any help, pointing me in the right direction would be appreciated. I spent hours on this already and can't figure it out...


    Here is the subdomain.conf :

    And here the config.php:


    OMG! That did the trick!


    So I deleted the swag container, removed the volume with all data and then reinstalled swag with all the same settings. The container immediately downloaded a new certificate!


    Obviously after all that I had to re-write the subdomain.conf files. To reconnect the containers and now everything is up and running again!


    Thank you again for your time!

    I searched that linuxserver forum as well. Haven't posted anything, because I had to sign up and figure that one out...

    I'm about to completely delete the Swag container including volumes and everything and see if I can start from scratch.

    Code
    root@2e4515103cf0:/#certbot renew
    bash: certbot: command not found

    Yeah, I did that... It's the exact same response and the log shows the same thing.


    Certbot doesn't even start. The command is not known. That is the problem. It has been trying to do the renewal, but can't because (it seems to me) that certbot is not installed.

    Code
    root@raspberrypi:/home/udo# docker exec -it swag bash
    root@2e4515103cf0:/#certbot-renew
    bash: certbot-renew: command not found
    root@2e4515103cf0:/#certbot renew
    bash: certbot: command not found
    root@2e4515103cf0:/#

    It does not know the command certbot. Above is the response I get...

    Seems to me as if the certbot portion of that container doesn't exist...

    nginx portion works fine

    I just noticed the SSL certificate for my duckdns domain is expiring tomorrow.

    I'm using SWAG, previously installed in Portainer but reinstalled as per the guide with the new Compose plugin. Currently everything works as expected, 3 subdomains get proxied to the correct containers. However after tomorrow I will lose access to Nextcloud, Homeassistant and Motioneye from the outside world.

    OMV6 and all my dockers are updated. I've been searching EVERYWHERE all day to find a solution but can not find a hint to make it work!


    How can I renew the certificate?! Any ideas what the issue might be? Above is the Swag container log output


    I opened a new thread because the other one I've been posting this issue on is marked as solved....

    If motioneye works, what is the output of:


    Code
    docker inspect motioneye | grep NetworkMode
    Code
     docker inspect swag | grep NetworkMode
                "NetworkMode": "docker-build_default",
     docker inspect nextcloud | grep NetworkMode
                "NetworkMode": "nextcloud_default",
     docker inspect MotionEye | grep NetworkMode
                "NetworkMode": "bridge",
     docker inspect homeassistant | grep NetworkMode
                "NetworkMode": "host",

    All 3 containers that use Swag work fine. That's MotionEye, HomeAssistant and Nextcloud. They're all on different networks. Again, I don't understand how that affects the certbot renewal. I thought that happens within Swag and then nginx forwards https requests to the appropriate container... Am I misunderstanding the whole concept here?

    Code
    docker: 'ls' is not a docker command.
    See 'docker --help'

    That's the output of that.


    However, I don't see how the Network Mode is relevant to the cert renewal. I haven't made any changes there and it was working last time the renewal was due...


    When I access HomeAssistant, MotionEye, and Nextcloud from outside the local network that all works fine (for now). The current cert expires next week, I believe...

    This is the output.