Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Mac host: 10.11.1 Beta (15B22c), Xamarin Studio 184.108.40.2061, Xcode 7.1 beta (7B75)
Windows VM using VMware Fusion 8.0.0
Windows: 10.0.10547, Visual Studio 14.0.23107.0, Xamarin 220.127.116.116, Xamarin.iOS 18.104.22.168
My Mac is immediately found in "Select a Mac to use it as a Xamarin Mac Agent". The public host key is displayed as well. After trying to log in, however, I get "Couldn't connect to <Mac's host name>. Please try again." If I try incorrect credentials, I get a different error, so that's presumably not the issue.
While that is happening, the VS Output window shows:
Installing Broker 22.214.171.1246...
Uploading Broker 126.96.36.1996 (352/3494 KB) 10%...
Uploading Broker 188.8.131.526 (704/3494 KB) 20%...
Uploading Broker 184.108.40.2066 (1056/3494 KB) 30%...
Uploading Broker 220.127.116.116 (1408/3494 KB) 40%...
Disconnected from Mac insilico.local (192.168.2.100)
Uploading Broker 18.104.22.1686 (1760/3494 KB) 50%...
Uploading Broker 22.214.171.1246 (2112/3494 KB) 60%...
Uploading Broker 126.96.36.1996 (2448/3494 KB) 70%...
Uploading Broker 188.8.131.526 (2800/3494 KB) 80%...
Uploading Broker 184.108.40.2066 (3152/3494 KB) 90%...
Uploaded Broker 220.127.116.116 100%
Checksum failed for '/Users/chucker/Library/Caches/Xamarin/XMA/Broker/18.104.22.1686'
Unable to install the Broker
Couldn't connect to insilico.local. Please try again.
Oddly enough, the upload continues even after the dialog box already shows the "Couldn't connect" error.
In addition, on the host Mac, sshd apparently forcibly disconnects the session:
06/10/15 11:47:02,554 sshd: error: connect_to 127.0.0.1 port 55460: failed.
I'm also getting these odd errors, so maybe the cause is something related to OS X (or, specifically, this OS X pre-release build):
06/10/15 11:48:15,621 com.apple.xpc.launchd: (com.openssh.sshd.F60C08A6-3CC5-4056-B212-41016D1825A5) Service exited with abnormal code: 1
Here's what /var/log/system.log says:
Oct 6 11:50:06 SNK-L-4 sshd: Accepted keyboard-interactive/pam for chucker from 192.168.222.138 port 1926 ssh2
Oct 6 11:50:07 SNK-L-4 sshd: Accepted keyboard-interactive/pam for chucker from 192.168.222.138 port 1927 ssh2
Oct 6 11:50:09 SNK-L-4 sshd: error: connect_to 127.0.0.1 port 59965: failed.
See also my earlier post at http://forums.xamarin.com/discussion/comment/155541/#Comment_155541, where I experienced the same issue with build 1505.
I think I see the problem now. In %localappdata%\Xamarin\Logs\14.0:
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2015-10-09 23:45:44.7451] MacServer State transition from DisconnectedState to SshConnectingState on SNK-L-4.local (192.168.2.21)
Xamarin.Messaging.Client.Ssh.SshCommandRunner Warning: 0 : [2015-10-09 23:45:48.0910] Failed to execute 'find /Users/chucker/Library/Caches/Xamarin/XMA/Broker/22.214.171.1246/ | while read line ; do md5 -q $line ; done': ExitStatus=127
Xamarin.Messaging.Client.Ssh.SshCommandRunner Warning: 0 : [2015-10-09 23:45:48.2540] Missing end to balance this while loopfish: find /Users/chucker/Library/Caches/Xamarin/XMA/Broker/126.96.36.1996/ | while read line ; do md5 -q $line ; done
Specifically, the bug here appears to be that you're running a shell script with bash-like syntax, whereas my account uses fish as its shell.
Temporarily setting /bin/bash as my default shell seems to do the trick. Thus, changing the summary to be more specific.
Fixed in version 188.8.131.520 (cycle6)
Author: Adrian Alonso
Commit: 1a6165e593ea20c5ab676a137a5bd1af2418d755 (xamarin/XamarinVS)
I have checked this issue with XVS 184.108.40.2063 and observed that this issue does not exist now, I have installed Fishshell on mac and set it as default. After that I am able to connect my windows VS with mac build host and also able to build deploy application on mac without any error.
Using XVS 220.127.116.113 + monotouch-18.104.22.168_39f1950d94912e5b86e6793bb850340efd3cc2fa.
Fixed in version 22.214.171.124 (cycle6)
Author: Adrian Alonso
Commit: 81e952a00dfbd7cf1c9a1e4c1970f9eb64544a38 (xamarin/XamarinVS)
So looks like this issue is back. I'm using Fish shell and this same issue continues to happen. Xamarin Mac Agent cannot connect unless I change the default shell back to BASH for debugging.
=== Xamarin Studio Community ===
Version 6.1.1 (build 17)
Installation UUID: 8cf23d23-2b12-412e-8a05-78915207b21d
Mono 4.6.1 (mono-4.6.0-branch-c8sr0/ef43c15) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 406010005
=== NuGet ===
=== Xamarin.Profiler ===
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Apple Developer Tools ===
Xcode 7.3.1 (10188.1)
=== Xamarin.iOS ===
Version: 10.2.0.4 (Xamarin Studio Community)
Build date: 2016-10-25 14:38:48-0400
=== Xamarin.Android ===
Version: 126.96.36.199 (Xamarin Studio Community)
Android SDK: /Users/<username>/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
4.0.3 (API level 15)
4.4 (API level 19)
5.0 (API level 21)
6.0 (API level 23)
SDK Tools Version: 25.2.2
SDK Platform Tools Version: 24.0.3
SDK Build Tools Version: 23.0.2
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
Android Designer EPL code available here:
=== Xamarin Android Player ===
Location: /Applications/Xamarin Android Player.app
=== Xamarin.Mac ===
Version: 188.8.131.52 (Xamarin Studio Community)
=== Build Information ===
Release ID: 601010017
Git revision: 44d481a9be9cf2bf7c01bfb99c59b77dfa08e712
Build date: 2016-10-25 14:27:24-04
Xamarin addins: 19cdb28081bf28d9688698030abb96e04e391f69
Build lane: monodevelop-lion-cycle8-sr0
=== Operating System ===
Mac OS X 10.12.0
Darwin cphs-mac-003.local 16.0.0 Darwin Kernel Version 16.0.0
Mon Aug 29 17:56:20 PDT 2016
=== Enabled user installed addins ===
Show in Github 1.0.3
Confirmed this is still a problem - same results as @Michael
Windows 10 Pro x64
Visual Studio 2015 Enterprise (v 14.0.25431.01 Update 3)
OS X 10.11.6
Xamarin Studio 184.108.40.206
Can this bug be reopened?
What's the protocol here - will this bug be reopened, or should I submit a new bug for this reappearing issue?
Hi Michael and Conrad,
This issue is already fixed in Xamarin for VS 4.3. You can give it a try already, as it's currently available in the Beta and Alpha channels.
If for some reason you are still facing it with that version, please feel free to reopen this bug report and it would be very helpful if you can provide the Xamarin logs and environment information.
I saw this on the latest VS 2017:
Xamarin 220.127.116.118 (95cf4d3)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
I have now filed a follow-up bug to track issues with using alternate shells on the Mac with XamarinVS versions higher than 18.104.22.168:
I will set this bug back to "verified" based on the original verification for Cycle 6 in Comment 7. Investigation of similar symptoms in versions higher than 22.214.171.124 can be tracked on the new bug.