Duplicati failing to see content - [SOLVED]

  • I'm finding now that my luck has run out as Crashplan is no longer honoring their little free 1 year license cards they used to give out. I was using these, and have about 5 yrs worth of cards left. But alas the site is now gone, and sending a note to support indicated they are no longer honoring those cards. Based on this info and the cost comparison between Crashplan and Amazon Cloud Drive - I've decided it's time to move over to ACD. Not to mention I trust the infrastructure much better since Crashplan basically uses CoLo's.


    Anyhow, problem I've found is I can't see the content in my data folders with the Duplicati plugin. Duplicati seems to be the answer I need to get the system backed up securely to Amazon Cloud Drive. When I start up the Duplicati interface, I can browse to the top level folders, but after that I can't see the subfolders and content within. Is there a way to alter the permissions or the user that the Duplicati plugin runs at? In this case, based on some of the content needing to be backed up, I'd like to be able to run this as root. I know not always recommended, but I want to be backing up some system files (like OMV backups) as well. Running as root with alleviate this issue as permissions can be a hassle due to all the different data types being used.


    PS - This is speculative as I have no idea what permission level the Duplicati service is running, but I'm guessing based on what I see that it's not running as root.

    • Offizieller Beitrag

    This is speculative as I have no idea what permission level the Duplicati service is running, but I'm guessing based on what I see that it's not running as root.

    The service does run as root. On my test VM, I can even see files in /root/. Not sure why you can't see some files.
    root 7024 1.8 3.4 1058876 70840 ? Ssl 09:30 0:01 DuplicatiServer /usr/lib/duplicati/Duplicati.Server.exe --webservice-port=8200 --webservice-interface=0.0.0.0

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Where can I find the Duplicati plugin?
    Or is it manual install?

    The plugin is in the omv-extras testing repo. You have to be on OMV 3.x though.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Ah, it is a pitty.
    Failure of installation


    BananaPi mit ARMBIAN.

    • Offizieller Beitrag

    BananaPi mit ARMBIAN.

    This is probably why. Armbian is not exactly Debian Wheezy or Jessie. And Duplicati uses mono as well. I'm not sure if it works with the omv-extras mono repos enabled.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • The service does run as root. On my test VM, I can even see files in /root/. Not sure why you can't see some files.

    You are correct! Sorry, it turns out I was being foolish. When I was doing the first browse, it seems duplicate hadn't finished crawling the system, so it was only showing me a blank top level folder. I came back to it now recently and noticed all the subfolders and content starting to show. The second issue I found, and I'm going to call this out for others as it's easy to overlook, I didn't alter the FILTER section. Apparently the default filter was set for Exclude *. So essentially it was making a nice backup of the folder structure it seems and thats about it. LoL. Now that I flipped that to an Include *, everything seems to be tracking and it's busy chugging along to count up all the files and start the upload.


    On a side note - anyone have some basic raw stats to share of how much they're backing up? Just curious if we've found a choke point yet where I may need to break this down into backup sets due to the massive amount of content being protected.

    • Offizieller Beitrag

    This is probably why. Armbian is not exactly Debian Wheezy or Jessie. And Duplicati uses mono as well. I'm not sure if it works with the omv-extras mono repos enabled.

    sorry for hijacking this thread


    Just want to confirm that Duplicati works on ARMBIAN on BananaPi. Just removed the Duplicati plug-in, enabled mono repos and installed Duplicati plug-in again. Now it seems to work.
    Thanks ryecoaaron!!!!

  • @ryecoaaron - just wanted to revive this to ask one thing - as you mentioned it requires mono. In my case, I did not enable the mono or mono testing repos. I believe these are if I wanted to install mono directly and use it for other purposes. But knowing that Duplicati uses it, is there somewhere that I can edit or alter configs for the mono that is installed?


    The reason I ask, is that I am constantly running into the Certificate not trusted errors with Duplicati. The reason is that the plugin is trying to connect to the Amazon API servers and receiving a certificate root that is for some reason or another trusted in the Mono cert chain. It has been suggested in other places, to avoid this, to simply run a command to allow an update to the trusted roots which can grab the roots being used by Amazon for my cloudDrive target in Duplicati.


    Any idea how one can achieve this? I think I even saw a GitHub issue listed with the same issue that you had commented on, but you had done like many and accepted the one-off hash. Unfortunately this problem continues to creep up and likely will due to the sheer number of Amazon front end systems we may encounter and their rotation, we need to be able to get the Chain into trust by getting the higher root in.

    • Offizieller Beitrag

    as you mentioned it requires mono. In my case, I did not enable the mono or mono testing repos. I believe these are if I wanted to install mono directly and use it for other purposes.

    Yep it uses mono but it can use the mono packages in the regular debian repo or the mono-project repos. I removed both mono repos from the latest omv-extras since there was nothing using them.



    is there somewhere that I can edit or alter configs for the mono that is installed?

    Not really. You would have to change the dependencies of the duplicati package (not the plugin) itself. It probably can use any version as long as it is new enough. So, if you install a different version before installing the plugin, it will probably use that version. The question is why?


    I just updated the plugin to run the mozroots command to download/update the certs. Maybe that will fix it.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I just updated the plugin to run the mozroots command to download/update the certs. Maybe that will fix it.

    Aha, ok so it seems then perhaps you have solved the issue I'm running into. Kept having the cert error show up with untrusted cert chain. If you've got it to use the mozroots now, I think that should resolve the issue.


    I'll try to keep an eye on it now that I've updated. Thanks for being on top of these plugins, you are the man!

  • No,
    this is not fixing this issue.
    There is some issue with the TLS/SSL package Mono currently uses on debian.
    The current workaround is to set the following environment variable:
    MONO_TLS_PROVIDER=legacy

  • The current workaround is to set the following environment variable:
    MONO_TLS_PROVIDER=legacy

    I was just coming in to make a comment about this not solving the issue for me either. I'm happy to hear there is a workaround. Forgive my ignorance, but where would I be inputting this environment variable? Is this something I need to login to the console? Or am I able to set this somewhere in the OMV GUI?


    EDIT: I did google OMV environment variables, but I found some QUITE outdated information in a Wiki from 2014 about version 0.4 and 0.5. Want to have myself validated before I try making changes as outlined there. And has this been tried/tested to work? All the env var I see start with OMV, and after googling the provided solution, I find Mono issues across the board using this vs OMV specifically.

    • Offizieller Beitrag

    No,
    this is not fixing this issue.

    That is why I said "maybe". I don't use this plugin so it is extremely difficult to test. Feedback on how to fix it is very helpful.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Touche @ryecoaaron - I over read that and didn't pick up the Maybe. My fault. 8| I thought it included that and was planned to fix it. Either way, I was hopeful. I'd like to give the suggestion from @cds a go, but I'm not 100% on it being used in OMV vs regular debian based install. I don't want to hose my system in it's current state for the sake of possibly fixing, until I know it fixed OMV specifically. I'm almost done with a 2TB backup, so I'd like to at least hope it finishes before I interrupt it ... again. ;)

    • Offizieller Beitrag

    I thought it included that

    It did include the mozroots command but the not the tls legacy environment variable.


    but I'm not 100% on it being used in OMV vs regular debian based install. I don't want to hose my system in it's current state for the sake of possibly fixing, until I know it fixed OMV specifically.

    In 1.0.2 in the repo now, I added the environment variable to the /etc/default/duplicati file which is included as an EnvironmentFile setting in the duplicati unit file. So, that *should* work for setting the environment variable but once again, I don't have any way to test but it does seem to be set according to this output:


    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    Einmal editiert, zuletzt von ryecoaaron ()

  • Alright, so I've got good/bad news to report.


    Good - It worked!! Bad - I can't tell for sure which fix actually did the trick.


    I went through and updated to the latest plugin version with the EnvVar entry. It didn't work at first. I decided especially being that it was an environment variable, it may need to reload something under the covers first. So I finally decided to shut down my docker host relying on this temporarily, to restart the OMV box. Upon restart, I validated Duplicati. This time it worked. So I can say one of those 2 things fixed it, but I can't target 1 or the other as the specific fix, as I didn't restart last time with the mozroots update which could have possibly fixed it. I guess for now it doesn't hurt to have both items in there. But more importantly, Duplicati isn't complaining about certs anymore!

    • Offizieller Beitrag

    mozroots runs when the plugin is installed. The environment variable would only be added when the duplicati service was started. So, rebooting works too. You could just restart the service too.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Apparently, I spoke too soon. I'll keep an eye on it, but it crept up again. Went back to check on current status after successful test of connection, and saw the same error out message again. Requested a new token, and added in the first cert to the "accept" list manually. Going to start a separate thread for this though as this one is building, when obviously the original problem isn't correlated.

Jetzt mitmachen!

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