Duplicati won't Launch on Mac Sierra


#1

When I double click on the Duplicati Icon in my /Applications directory nothing much happens. Running ‘ps -ef | grep -i dup’ confirms that it’s not running.

If I try to run it from the command line:

$ open /Applications/Duplicati.app/
LSOpenURLsWithRole() failed with error -10810 for the file /Applications/Duplicati.app.

I’m running Mac OS X 10.12.6 and mono is installed with Mac Ports:

$ mono --version
Mono JIT compiler version 3.12.1 (tarball Fri Dec 30 14:04:14 CST 2016)
Copyright © 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: normal
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

I see the same behavior from the latest beta version on the website and from the canary version on github. Any ideas?


#2

Have you tried running just the command line from a shell with something like this?
mono “/Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe”

If you don’t get something like this then there’s likely something either Duplicati is expecting that’s not on your system or there’s a permissions issue.

See duplicati.commandline.exe help for more information.
General: example, changelog
Commands: backup, find, restore, delete, compact, test, compare, purge
Reparing: repair, affected, list-broken-files, purge-broken-files
Debugging: debug, logging, create-report, test-filters, system-info,
send-mail
Targets: aftp, amzcd, azure, b2, box, cloudfiles, dropbox, file, ftp,
googledrive, gcs, hubic, jottacloud, mega, onedrive, openstack, s3, od4b,
mssp, ssh, tahoe, webdav
Modules: aes, gpg, zip, 7z, console-password-input, mssql-options,
hyperv-options, http-options, sendhttp, sendmail, runscript, sendxmpp,
check-mono-ssl
Formats: date, time, size, encryption, compression
Advanced: mail, advanced, returncodes, filter,
 
http://www.duplicati.com/ Version: - 2.0.2.1_beta_2017-08-01

Oh, and do you rcall what version of Duplicati are you installed?


#3
$ mono "/Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe"

Unhandled Exception:
System.ComponentModel.Win32Exception: ApplicationName='/Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe', CommandLine='', CurrentDirectory='', Native error= Cannot find the specified file
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <filename unknown>:0
  at Duplicati.Library.AutoUpdater.UpdaterManager.RunFromMostRecentSpawn (System.Reflection.MethodInfo method, System.String[] cmdargs, AutoUpdateStrategy defaultstrategy) [0x00000] in <filename unknown>:0
  at Duplicati.Library.AutoUpdater.UpdaterManager.RunFromMostRecent (System.Reflection.MethodInfo method, System.String[] cmdargs, AutoUpdateStrategy defaultstrategy) [0x00000] in <filename unknown>:0
  at Duplicati.CommandLine.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Exception: ApplicationName='/Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe', CommandLine='', CurrentDirectory='', Native error= Cannot find the specified file
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <filename unknown>:0
  at Duplicati.Library.AutoUpdater.UpdaterManager.RunFromMostRecentSpawn (System.Reflection.MethodInfo method, System.String[] cmdargs, AutoUpdateStrategy defaultstrategy) [0x00000] in <filename unknown>:0
  at Duplicati.Library.AutoUpdater.UpdaterManager.RunFromMostRecent (System.Reflection.MethodInfo method, System.String[] cmdargs, AutoUpdateStrategy defaultstrategy) [0x00000] in <filename unknown>:0
  at Duplicati.CommandLine.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

filename unknown?

From the download image names, I’m running duplicati-2.0.3.3_beta_2018-04-02 but I got the same error with duplicati-2.0.3.4_canary_2018-04-02.

Thanks!


#4

I have to admit, I haven’t actually tried a MacOS command line with the new beta (or a canary) version, but I doubt it’s changed that much.

However, since I don’t have access to a Mac for testing for a few more days I’m going to see if @Pectojin has any thoughts…


#5

Super odd. Running Duplicati.Commandline.exe just works on my machine.

This is my output:

$ mono "/Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe"

See duplicati.commandline.exe help <topic> for more information.
General: example, changelog
Commands: backup, find, restore, delete, compact, test, compare, purge,
vacuum
...
http://www.duplicati.com/              Version:  - 2.0.3.5_canary_2018-04-13

It kind of just looks like it’s something wrong with the installation.


#6

I installed a more up to date mono from the package on their website and it seems like it works. The file ‘run-with-mono.sh’ in the mac Duplicati bundle suggests that only mono 3.0 is required but maybe that’s not true anymore?

$ /Library/Frameworks/Mono.framework/Versions/Current/Commands/mono /Applications/Duplicati.app/Contents/Resources/Duplicati.CommandLine.exe

See duplicati.commandline.exe help <topic> for more information.
  General: example, changelog
  Commands: backup, find, restore, delete, compact, test, compare, purge,
  vacuum
  Reparing: repair, affected, list-broken-files, purge-broken-files
  Debugging: debug, logging, create-report, test-filters, system-info,
  send-mail
  Targets: aftp, amzcd, azure, b2, box, cloudfiles, dropbox, ftp, file,
  googledrive, gcs, hubic, jottacloud, mega, onedrive, openstack, rclone, s3,
  ssh, od4b, mssp, sia, tahoe, webdav
  Modules: aes, gpg, zip, 7z, console-password-input, mssql-options,
  hyperv-options, http-options, sendhttp, sendmail, runscript, sendxmpp,
  check-mono-ssl
  Formats: date, time, size, encryption, compression
  Advanced: mail, advanced, returncodes, filter, default-filter-sets, <option>

http://www.duplicati.com/              Version:  - 2.0.3.3_beta_2018-04-02




$ /Library/Frameworks/Mono.framework/Versions/Current/Commands/mono --version
Mono JIT compiler version 5.10.0.160 (2017-12/f3ac8fdeb37 Tue Mar  6 14:07:30 EST 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug
	Interpreter:   yes
	LLVM:          yes(3.6.0svn-mono-master/8b1520c8aae)
	GC:            sgen (concurrent by default)