Duplicati not launching on Mac OS Sierra 10.12.6

I’ve installed Duplicati and the mono frameworks, but when I go to launch it from the Applications folder in the finder, nothing happens.

I ensured that Gatekeeper is set to allow all software to run, regardless of publisher.

I tried running from the terminal and I get the following output…

juno:~ user$ /Applications/Duplicati.app/Contents/MacOS/duplicati
Server has started and is listening on 127.0.0.1, port 8200
Request error: System.Net.WebException: Error: NameResolutionFailure
  at Duplicati.Library.Utility.AsyncHttpRequest+AsyncWrapper.GetResponseOrStream () [0x0004d] in <1cb5198b00f34ae59d97ee7fe7a3a16c>:0 
  at Duplicati.Library.Utility.AsyncHttpRequest.GetResponse () [0x00044] in <1cb5198b00f34ae59d97ee7fe7a3a16c>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.PerformRequestInternal[T] (System.String method, System.String endpoint, System.Collections.Generic.Dictionary`2[TKey,TValue] queryparams) [0x001ca] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.PerformRequest[T] (System.String method, System.String urlfragment, System.Collections.Generic.Dictionary`2[TKey,TValue] queryparams) [0x00035] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.UpdateStatus () [0x00001] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection..ctor (System.Uri server, System.String password, System.Boolean saltedpassword, System.Boolean dbPasswordSourceDatabase, System.Collections.Generic.Dictionary`2[TKey,TValue] options) [0x000de] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.Program.RealMain (System.String[] _args) [0x003d7] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
Request error: System.Net.WebException: Error: NameResolutionFailure
  at Duplicati.Library.Utility.AsyncHttpRequest+AsyncWrapper.GetResponseOrStream () [0x0004d] in <1cb5198b00f34ae59d97ee7fe7a3a16c>:0 
  at Duplicati.Library.Utility.AsyncHttpRequest.GetResponse () [0x00044] in <1cb5198b00f34ae59d97ee7fe7a3a16c>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.PerformRequestInternal[T] (System.String method, System.String endpoint, System.Collections.Generic.Dictionary`2[TKey,TValue] queryparams) [0x001ca] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.PerformRequest[T] (System.String method, System.String urlfragment, System.Collections.Generic.Dictionary`2[TKey,TValue] queryparams) [0x00035] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.UpdateStatus () [0x00001] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection..ctor (System.Uri server, System.String password, System.Boolean saltedpassword, System.Boolean dbPasswordSourceDatabase, System.Collections.Generic.Dictionary`2[TKey,TValue] options) [0x000de] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.Program.RealMain (System.String[] _args) [0x003d7] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
Request error: System.Net.WebException: Error: NameResolutionFailure
  at Duplicati.Library.Utility.AsyncHttpRequest+AsyncWrapper.GetResponseOrStream () [0x0004d] in <1cb5198b00f34ae59d97ee7fe7a3a16c>:0 
  at Duplicati.Library.Utility.AsyncHttpRequest.GetResponse () [0x00044] in <1cb5198b00f34ae59d97ee7fe7a3a16c>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.PerformRequestInternal[T] (System.String method, System.String endpoint, System.Collections.Generic.Dictionary`2[TKey,TValue] queryparams) [0x001ca] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.PerformRequest[T] (System.String method, System.String urlfragment, System.Collections.Generic.Dictionary`2[TKey,TValue] queryparams) [0x00035] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection.UpdateStatus () [0x00001] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.HttpServerConnection..ctor (System.Uri server, System.String password, System.Boolean saltedpassword, System.Boolean dbPasswordSourceDatabase, System.Collections.Generic.Dictionary`2[TKey,TValue] options) [0x000de] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 
  at Duplicati.GUI.TrayIcon.Program.RealMain (System.String[] _args) [0x003d7] in <d07129d6974642b0bbdaa3ccc42fe89d>:0 

I’m not sure what the name resolution failure is referring to, so if there are any other diagnostics required to provide more information, let me know.

Mono version is:

juno:~ user$ /Library/Frameworks/Mono.framework/Commands/mono --version
Mono JIT compiler version 5.4.0.201 (2017-06/71277e78f6e Thu Sep 21 19:22:55 EDT 2017)
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 
	LLVM:          yes(3.6.0svn-mono-master/8b1520c8aae)
	GC:            sgen (concurrent by default)

…and Duplicati is version 2.0.2.1

This is just a guess, but I think that version had some issues with the generic usage reporting.

Do you get anything running the command-line with system-info added? If so, you may need to disable usage reporting (I forget the parameter right now, sorry it’s setting an environment variable of USAGEREPORTER_Duplicati_LEVEL=none - and if that doesn’t work you could also try setting an environment variable of AUTOUPDATER_Duplicati_SKIP_UPDATE=1).

I can’t see a --system-info switch for the command line when using the --help switch. Is that what you mean, or is that system-info tag used elsewhere?

Is it worth having a go of the 1.3.4 version?

FWIW … I have Duplicati 2.0.2.1 running fine on Mac’s with 10.12.6
However, the Mono version is different.

Mono JIT compiler version 5.2.0.224 (d15-3/14f2c81 Thu Aug 24 10:33:52 EDT 2017)

It’s a “command” not a parameter so there’s no “–” needed.

Duplicati.CommandLine.exe system-info

Mostly I’m just trying to see if Duplicati will run at all if NOT trying to start the server - so since it seems the Duplicati.CommandLine.exe help call worked OK for you then it’s likely not an installation issue.

Can you try running the tray icon with the parameter, so something like Duplicati.GUI.TrayIcon.exe --no-hosted-server?

It’s certainly possible there’s an issue with mono 5.4.0.201, but I don’t have that available for testing - perhaps somebody else with that version can chime in…

I wouldn’t go to 1.3.4 as that’s an entirely different code base and no longer being maintained.

The lookup that it is doing here is calling the Duplicati server and attempting to get the current status of the server (to display the right icon), and this is the name lookup that fails.

If you have not set anything special up, then I am guessing that there is a problem resolving localhost to 127.0.0.1 on your machine (I have seen that on my Mac at some point).

1 Like

Not that I expect this to actually be the case anywhere, but in theory an SSH connection could route 127.0.0.1:8200 away from the local box, right?

Yes, but that would not give a NameResolutionFailure that indicates that the DNS system is botched.

1 Like

@griptype, I don’t recall asking before but did you try Duplicati again after a restart of the machine?

If not, you could try that or just restarting the MacOS DNS service as described in the 2nd post here:

It basically says unless you’re on OSX 10.10.0 - 10.10.3, use:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist`

Otherwise with OSX 10.10.0 - 10.10.3 Yosemite use:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist

Note that this isn’t necessarily a fix so much as a confirmation of the source of the issue.

You got it. nslookup localhost failed so I double checked that I had a localhost mapped to 127.0.0.1 in my /etc/hosts, and lo and behold, it was commented out. Not sure why or when that happened - if it was me troubleshooting or maybe some other software package - but adding it in fixed the issue.

1 Like

Glad to hear you figured it out! :smiley:

I went ahead and flagged your post as the solution, please let me know if you disagree.

All good. I agree that this is the solution.