I’m not able to run the Duplicati package on my brand new DS415+. I’ve been running Duplicati on my private Windows server for years now so I was keen te get it on my NAS too.
I’ve installed the Mono package, version 3.10.0-4. I’ve installed the latest Duplicati package. The package will not run, rebooted the NAS to be sure, no effect.
I checked the post ‘Package for Synology doesn’t launch on DS416’ but it didn’t provide an answer that works for me hence this new post.
FYI: I’m an experienced Sys Admin but on M$/Citrix/RES. My Linux skills leave a lot to be desired…
I’ve found that post. It starts with a situation where some communication is possible with duplicati, wich doesn’t apply of course…
I found the bit were ppl we’re trying to start Duplicati manually interresting so I followed your instructions.
System.Exception: Failed to create, open or upgrade the database.
Error message: Access to the path "/var/services/homes" is denied.
at Duplicati.Server.Program.GetDatabaseConnection (System.Collections.Generic.Dictionary`2 commandlineOptions) [0x00000] in <filename unknown>:0
at Duplicati.Server.Program.RealMain (System.String[] args) [0x00000] in <filename unknown>:0
So it seems that it’s an access error. Wich makes sense because the requested folder doesn’t exist:
/var/services$ ls -l
total 0
lrwxrwxrwx 1 root root 24 Aug 1 18:10 pgsql -> /volume1/@database/pgsql
lrwxrwxrwx 1 root root 13 Aug 15 14:28 tmp -> /volume1/@tmp
lrwxrwxrwx+ 1 root root 12 Aug 1 20:59 web -> /volume1/web
To make a long story short (I actually deleted a long answer before typing this (creating folders and all manually):
I tried the http group, but that did not work for me. What I actually noticed could maybe help: for me it does not work when I use the quickconnect.to . So when I remotely access my NAS (using quickconnect.to) and run duplicati in the console, it gives the errors as described. When I access the NAS on a local machine, using the IP address instead of quickconnect, it does work (first had an XSRV (?) error, but that disapeared when i did a reload). I did not try a backup, still have to setup an SFTP server on my linux machine.
System.Net.WebException: Error: TrustFailure (The authentication or decryption has failed.) —> System.IO.IOException: The authentication or decryption has failed. —> System.IO.IOException: The authentication or decryption has failed. —> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a
at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00040] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
— End of inner exception stack trace —
at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x0003b] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
— End of inner exception stack trace —
at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x00057] in <1d0bb82c94e7435eb09324cf5ef20e36>:0
at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) [0x00011] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
at Mono.Net.Security.Private.LegacySslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000e] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte buffer) [0x0006a] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
— End of inner exception stack trace —
at System.Net.WebClient.DownloadFile (System.Uri address, System.String fileName) [0x000c9] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
at System.Net.WebClient.DownloadFile (System.String address, System.String fileName) [0x00019] in <5071a6e4a4564e19a2eda0f53e42f9bd>:0
at (wrapper remoting-invoke-with-check) System.Net.WebClient:DownloadFile (string,string)
at Duplicati.Library.AutoUpdater.UpdaterManager.CheckForUpdate (Duplicati.Library.AutoUpdater.ReleaseType channel) [0x000ee] in <2e3a1be277654a188f84e503094300c3>:0
not sure what to make of it. This was probably during one of my tries when using Quickconnect (based on timestamp)
For the record, Duplicati should be able to work with mono 3.0 - and I know some people have had it working with mono 4.5. That being said, I think I read somewhere (sorry, can’t find it right now) that the Synology provided mono package had some issue and “manually” installing it resolved the problem.
Out of curiosity, are you having the problem as well or were you just offering help. I ask because this is a fairly old issue so if you yourself need assistance we might want to break this off to it’s own topic.
I know the OP personal and came across his messsage.
I had a different issue (missing token and missing options, like storage type, when adding a new backup), when looking closer into the issue, I’m having the same problem.
What I can do is uninstall mono and install it manually.
I got this same error (Failed to run the package service) and after a few hours of debugging it turns out the service script tries to source /root/.profile. On my DS412+ I didn’t have this file. It might just have been something on my particular NAS because I’ve had it for years and I use the CLI on the synology extensively and use all sort of CLI tools. I might have deleted this file at some point setting up my shell environment. Once I logged in as root (“sudo -i” as admin) and touch this file it finally started. I have the same problem as others that if I try to stop the service it’s left running and I need to kill it manually from the shell before I can start it again. Posting this reply in case someone else has the same error shown in the screenshot above and might have the same problem as myself.