Forum Visual Studio
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Mac Agent Not Connecting

Hi,

As of today I've been unable to get the Mac Agent to connect to my Mac - yesterday everything was fine. There were some updates installed on the Mac from the Stable channel - however I don't Xamarin Studio to develop, plus these didn't cause an issue yesterday. I'm using Visual Studio 2015 on a Windows 10 Surface Book. Xamarin and VS are update to date, as in Windows. The log file for today shows:

Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-02-17 07:58:08.1292] MacServer State transition from DisconnectedState to SshConnectingState on Marks-MacBook-Pro-2.local (192.168.0.3)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2017-02-17 07:58:10.4118] Starting connection to Mac 192.168.0.3...
Xamarin.Messaging.Client.Ssh.XmaCommands Error: 0 : [2017-02-17 07:58:11.9778] Local checksum of C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin\Xamarin\4.2.2.11\Broker.zip couldn't be verified
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2017-02-17 07:58:12.1368] Installing Broker 4.2.2.11...
Xamarin.Messaging.VisualStudio.MessagingFileManager+UploadFileLogger Information: 0 : [2017-02-17 07:58:12.3952] Uploading Broker 4.2.2.11 (544/5404 KB) 10%...
Xamarin.Messaging.VisualStudio.MessagingFileManager+UploadFileLogger Information: 0 : [2017-02-17 07:58:12.5738] Uploading Broker 4.2.2.11 (1088/5404 KB) 20%...
Xamarin.Messaging.VisualStudio.MessagingFileManager+UploadFileLogger Information: 0 : [2017-02-17 07:58:12.7373] Uploading Broker 4.2.2.11 (1632/5404 KB) 30%...
Xamarin.Messaging.VisualStudio.MessagingFileManager+UploadFileLogger Information: 0 : [2017-02-17 07:58:12.8993] Uploading Broker 4.2.2.11 (2176/5404 KB) 40%...
Xamarin.Messaging.VisualStudio.MessagingFileManager+UploadFileLogger Information: 0 : [2017-02-17 07:58:13.0753] Uploading Broker 4.2.2.11 (2704/5404 KB) 50%...
Xamarin.Messaging.VisualStudio.MessagingFileManager+UploadFileLogger Information: 0 : [2017-02-17 07:58:13.2428] Uploading Broker 4.2.2.11 (3248/5404 KB) 60%...
Xamarin.Messaging.VisualStudio.MessagingFileManager+UploadFileLogger Information: 0 : [2017-02-17 07:58:13.4172] Uploading Broker 4.2.2.11 (3792/5404 KB) 70%...
Xamarin.Messaging.VisualStudio.MessagingFileManager+UploadFileLogger Information: 0 : [2017-02-17 07:58:13.5882] Uploading Broker 4.2.2.11 (4336/5404 KB) 80%...
Xamarin.Messaging.VisualStudio.MessagingFileManager+UploadFileLogger Information: 0 : [2017-02-17 07:58:13.7672] Uploading Broker 4.2.2.11 (4880/5404 KB) 90%...
Xamarin.Messaging.VisualStudio.MessagingFileManager+UploadFileLogger Information: 0 : [2017-02-17 07:58:14.0385] Uploaded Broker 4.2.2.11 100%
Xamarin.Messaging.Client.Ssh.XmaCommands Error: 0 : [2017-02-17 07:58:15.1169] Local checksum of C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin\Xamarin\4.2.2.11\Broker.zip couldn't be verified
Xamarin.Messaging.VisualStudio.MessagingService Error: 0 : [2017-02-17 07:58:15.3259] Unable to install the Broker
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2017-02-17 07:58:15.5584] Couldn't connect to Marks-MacBook-Pro-2.local. Please try again.
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-02-17 07:58:15.7484] MacServer State transition from SshConnectingState to DisconnectedState on Marks-MacBook-Pro-2.local (192.168.0.3)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-02-17 07:58:15.9134] Disconnected from Mac Marks-MacBook-Pro-2.local (192.168.0.3)

As sample from yesterday shows everything is ok.

Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-02-15 12:20:34.7510] MacServer State transition from DisconnectedState to SshConnectingState on Marks-MacBook-Pro-2.local (192.168.0.11)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2017-02-15 12:20:36.9778] Starting connection to Mac 192.168.0.11...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2017-02-15 12:20:39.5857] Starting Broker 4.2.2.11 in port 57376...
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2017-02-15 12:20:41.9067] MacServer State transition from SshConnectingState to SshConnectedState on Marks-MacBook-Pro-2.local (192.168.0.11)

I always run VS in Admin mode. I've read the following, however I haven't been able to find a solution:

http://stackoverflow.com/questions/36577546/i-cant-connect-to-mac-with-xamarin-mac-agent-from-visual-studio-2015
https://bugzilla.xamarin.com/show_bug.cgi?id=35971
https://forums.xamarin.com/discussion/55970/mac-agent-not-working-cant-connect

I've also repaired the Xamarin 4.2.2 installation.

Nothing has changed - can anyone offer any advice?

Best Answer

Answers

Sign In or Register to comment.