Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broker error #7882

Closed
marinasundstrom opened this issue Feb 13, 2020 · 65 comments
Closed

Broker error #7882

marinasundstrom opened this issue Feb 13, 2020 · 65 comments
Labels
external-xamarin-vs Issues affecting the Xamarin in Visual Studio and are not specific to Xamarin.iOS or Xamarin.Mac

Comments

@marinasundstrom
Copy link

marinasundstrom commented Feb 13, 2020

I don't know where to report this.

Install fails in VS on Windows due to there being no /tmp/Broker-16.5.000.400-b7161529-ddc5-403c-a2f5-d9cfb785533f/Broker.zip

I have tried to clean my installation (both Windows and macOS) but the problem remains.

Microsoft Visual Studio Community 2019 Preview
Version 16.5.0 Preview 2.0

Xamarin.iOS SDK 13.14.1.17

Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
Xamarin|Information|0|Xamarin - 16.5.000.400-d16-5+4a7a7df
Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
Xamarin.VisualStudio.Android.XamarinAndroidPackage|Warning|0|Initializing Xamarin.VisualStudio.Android.XamarinAndroidPackage
Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
Xamarin.VisualStudio.IOS.Messaging.LocalMessagingInitializer|Information|0|Connecting to Local Broker...
Xamarin.VisualStudio.IOS.XamarinIOSPackage|Warning|0|Initializing Xamarin.VisualStudio.IOS.XamarinIOSPackage.
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing AndroidStarted event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready
System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory|Error|0|An error occurred while connecting via TCP to the endpoint address 127.0.0.1 and port 54168, to establish an MQTT connection
System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 127.0.0.1:54168
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
System.Net.Mqtt.Sdk.MqttClientImpl|Error|0|System.Net.Mqtt.MqttException: An error occurred while connecting via TCP to the endpoint address 127.0.0.1 and port 54168, to establish an MQTT connection ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:54168
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.PacketChannelFactory.<CreateAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.MqttClientImpl.<InitializeChannelAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.MqttClientImpl.<ConnectAsync>d__29.MoveNext()
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Checking Broker 16.5.000.400 installation...
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Starting Broker 16.5.000.400 in port 54168...
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Broker 16.5.000.400 started successfully
Xamarin.VisualStudio.IOS.Messaging.LocalMessagingInitializer|Information|0|Starting IDB Local Agent...
Xamarin.Messaging.Ssh.AgentCommands|Information|0|Checking Agent IDB.Local 16.5.000.400 installation...
Xamarin.Messaging.Ssh.MessagingService|Information|0|Starting Agent IDB.Local 16.5.000.400...
Xamarin.Messaging.Ssh.AgentCommands|Information|0|Starting Agent IDB.Local 16.5.000.400 in port 54168...
Xamarin.Messaging.Ssh.AgentCommands|Information|0|Agent IDB.Local 16.5.000.400 started successfully
Xamarin.Messaging.Ssh.MessagingService|Information|0|Agent IDB.Local 16.5.000.400 is running
Xamarin.Messaging.Ssh.MessagingService|Information|0|Agent IDBLocal 16.5.000.400 is running
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkValidation|Information|0|androidsdksetup: verify android sdk installed
Xamarin.VisualStudio.Android.Setup.AndroidSdkValidation|Information|0|androidsdksetup: removing android sdk errors
Xamarin.HotReload|Information|0|2020-02-13 11:44:03.9 Hot Reload IDE Extension Loaded
Xamarin.VisualStudio.ProjectSystem.PackageServices|Warning|0|Failed to Restore Nuget packages for project C:\Users\robert\source\repos\MobileBlazorApp\MobileBlazorApp.Android\MobileBlazorApp.Android.csproj.
Xamarin.VisualStudio.Android.Setup.AutoSdk|Information|0|androidsdksetup: AutoSdk tries to resolve dependencies: platforms/android-28, build-tools/28.0.3@28.0.3, platform-tools@28.0.0, tools@26.1.1, emulator, build-tools/29.0.2@29.0.2
Xamarin.VisualStudio.Android.Setup.AutoSdk|Warning|0|androidsdksetup: AutoSdk cannot resolve dependencies: platform-tools@28.0.0
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify error: 
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to ConfiguringState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'Robert’s MacBook Pro'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking SSH configuration...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Initializing environment...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking available disk space...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Mono installation...
Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'which mono64': ExitStatus = 1
Xamarin.Messaging.Ssh.SshCommands|Information|0|A valid Mono installation has been found at '/Library/Frameworks/Mono.framework/Versions/Current/bin/mono64'
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Xamarin iOS installation...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'Robert’s MacBook Pro'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to ConfiguredState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Host 'Robert’s MacBook Pro' is configured correctly
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguredState to ConnectingState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to 'Robert’s MacBook Pro'...
System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory|Error|0|An error occurred while connecting via TCP to the endpoint address 192.168.1.84 and port 58178, to establish an MQTT connection
System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 192.168.1.84:58178
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
System.Net.Mqtt.Sdk.MqttClientImpl|Error|0|System.Net.Mqtt.MqttException: An error occurred while connecting via TCP to the endpoint address 192.168.1.84 and port 58178, to establish an MQTT connection ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.84:58178
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.PacketChannelFactory.<CreateAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.MqttClientImpl.<InitializeChannelAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.MqttClientImpl.<ConnectAsync>d__29.MoveNext()
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Checking Broker 16.5.000.400 installation...
Xamarin.Messaging.Ssh.MessagingCommands{System.String}|Warning|0|Server checksum couldn't be verified because there were problems analyzing the content of: /Users/robert/Library/Caches/Xamarin/XMA/Broker/16.5.000.400
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Installing Broker 16.5.000.400...
Xamarin.Messaging.Ssh.MessagingCommands{System.String}|Warning|0|Server checksum couldn't be verified because there were problems analyzing the content of: /Users/robert/Library/Caches/Xamarin/XMA/Broker/16.5.000.400
Xamarin.Messaging.Ssh.MessagingScpClient|Warning|0|An error occurred while using SCP Client. Trying again with a new SCP connection...
Renci.SshNet.Common.ScpException: scp: error: unexpected filename: 
   at Renci.SshNet.ScpClient.CheckReturnCode(Stream input)
   at Renci.SshNet.ScpClient.UploadFileModeAndName(IChannelSession channel, Stream input, Int64 fileSize, String serverFileName)
   at Renci.SshNet.ScpClient.Upload(Stream source, String path)
   at Xamarin.Messaging.Ssh.MessagingScpClient.<>c__DisplayClass16_0.<Upload>b__0() in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 73
   at Xamarin.Messaging.Ssh.MessagingScpClient.Execute(Action action, Boolean retry) in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 166
Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute '/bin/bash -c 'md5 -q "/tmp/Broker-16.5.000.400-b7161529-ddc5-403c-a2f5-d9cfb785533f/Broker.zip"'': ExitStatus = 1
Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|md5: /tmp/Broker-16.5.000.400-b7161529-ddc5-403c-a2f5-d9cfb785533f/Broker.zip: No such file or directory

Xamarin.Messaging.Ssh.MessagingFileManager|Error|0|An error occurred while uploading files
Xamarin.Messaging.Ssh.Exceptions.SshCommandException: md5: /tmp/Broker-16.5.000.400-b7161529-ddc5-403c-a2f5-d9cfb785533f/Broker.zip: No such file or directory

   at Renci.SshNet.SshCommandExtensions.ThrowIfError(SshCommand command) in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\Extensions\SshCommandExtensions.cs:line 34
   at Xamarin.Messaging.Ssh.SshCommands.<RunBashCommandAsync>d__8.MoveNext() in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\SshCommands.cs:line 93
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Ssh.SshCommands.<GetFileChecksumAsync>d__13.MoveNext() in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\SshCommands.cs:line 150
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Xamarin.Messaging.Ssh.MessagingFileManager.<UploadFileAsync>d__13.MoveNext() in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingFileManager.cs:line 162
Xamarin.Messaging.Ssh.MessagingService|Error|0|Unable to install the Broker
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to 'Robert’s MacBook Pro'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConnectingState to DisconnectingState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from Robert’s MacBook Pro...
System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs9300rober - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from Robert’s MacBook Pro...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectingState to DisconnectedState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|The connection to 'Robert’s MacBook Pro' has been finished
Xamarin.Messaging.Integration.State.ServerStateContext|Error|0|An error occurred while trying to start the Broker...

VS bug #1068333

@marinasundstrom
Copy link
Author

marinasundstrom commented Feb 13, 2020

I have reinstalled VS both on Windows and Mac and it still does not work.

@chamons chamons added the external-xamarin-vs Issues affecting the Xamarin in Visual Studio and are not specific to Xamarin.iOS or Xamarin.Mac label Feb 13, 2020
@mauroa
Copy link
Contributor

mauroa commented Feb 13, 2020

Looks like there is a problem with SCP in your Mac, possibly due to the SSH version. What's strange is that it comes with macOS and I haven't seen this error before with XMA. See the logs:

Xamarin.Messaging.Ssh.MessagingScpClient|Warning|0|An error occurred while using SCP Client. Trying again with a new SCP connection...
Renci.SshNet.Common.ScpException: scp: error: unexpected filename: 
   at Renci.SshNet.ScpClient.CheckReturnCode(Stream input)
   at Renci.SshNet.ScpClient.UploadFileModeAndName(IChannelSession channel, Stream input, Int64 fileSize, String serverFileName)
   at Renci.SshNet.ScpClient.Upload(Stream source, String path)

I found a PR to fix this in the SSH.NET library: sshnet/SSH.NET#515

However, we should understand what is different on your Mac to cause this problem.

@marinasundstrom
Copy link
Author

marinasundstrom commented Feb 13, 2020

@mauroa I tried updating SSH but that did not resolve it either. When I search the Internet I find old posts about broken user profiles. This is so annoying. Do I really have to reinstall all OS:es?

As I wrote, there is no broker in the temp folder in macOS:

To me it seems that the installer is broken.

Here is my updated log:

Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
Xamarin|Information|0|Xamarin - 16.5.000.400-d16-5+4a7a7df
Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
Xamarin.VisualStudio.Android.XamarinAndroidPackage|Warning|0|Initializing Xamarin.VisualStudio.Android.XamarinAndroidPackage
Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
Xamarin.VisualStudio.IOS.Messaging.LocalMessagingInitializer|Information|0|Connecting to Local Broker...
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing AndroidStarted event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready
Xamarin.VisualStudio.IOS.XamarinIOSPackage|Warning|0|Initializing Xamarin.VisualStudio.IOS.XamarinIOSPackage.
System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory|Error|0|An error occurred while connecting via TCP to the endpoint address 127.0.0.1 and port 56432, to establish an MQTT connection
System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 127.0.0.1:56432
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
System.Net.Mqtt.Sdk.MqttClientImpl|Error|0|System.Net.Mqtt.MqttException: An error occurred while connecting via TCP to the endpoint address 127.0.0.1 and port 56432, to establish an MQTT connection ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:56432
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.PacketChannelFactory.<CreateAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.MqttClientImpl.<InitializeChannelAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.MqttClientImpl.<ConnectAsync>d__29.MoveNext()
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Checking Broker 16.5.000.400 installation...
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Installing Broker 16.5.000.400...
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Starting Broker 16.5.000.400 in port 56432...
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Broker 16.5.000.400 started successfully
Xamarin.VisualStudio.IOS.Messaging.LocalMessagingInitializer|Information|0|Starting IDB Local Agent...
Xamarin.Messaging.Ssh.AgentCommands|Information|0|Checking Agent IDB.Local 16.5.000.400 installation...
Xamarin.Messaging.Ssh.MessagingService|Information|0|Installing Agent IDB.Local 16.5.000.400...
Xamarin.Messaging.Ssh.AgentCommands|Information|0|Installing Agent IDB.Local 16.5.000.400...
Xamarin.Messaging.Ssh.MessagingService|Information|0|Starting Agent IDB.Local 16.5.000.400...
Xamarin.Messaging.Ssh.AgentCommands|Information|0|Starting Agent IDB.Local 16.5.000.400 in port 56432...
Xamarin.Messaging.Ssh.AgentCommands|Information|0|Agent IDB.Local 16.5.000.400 started successfully
Xamarin.Messaging.Ssh.MessagingService|Information|0|Agent IDB.Local 16.5.000.400 is running
Xamarin.Messaging.Ssh.MessagingService|Information|0|Agent IDBLocal 16.5.000.400 is running
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to ConfiguringState on Robert’s MacBook Pro (192.168.50.135)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'Robert’s MacBook Pro'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking SSH configuration...
Xamarin.HotReload|Information|0|2020-02-13 19:31:09.9 Hot Reload IDE Extension Loaded
Xamarin.VisualStudio.Android.Setup.AndroidSdkValidation|Information|0|androidsdksetup: verify android sdk installed
Xamarin.VisualStudio.Android.Setup.AndroidSdkValidation|Information|0|androidsdksetup: removing android sdk errors
Xamarin.VisualStudio.ProjectSystem.PackageServices|Warning|0|Failed to Restore Nuget packages for project C:\Users\robert\source\repos\Commuter\App1\App1.Android\App1.Android.csproj.
Xamarin.VisualStudio.Android.Setup.AutoSdk|Information|0|androidsdksetup: AutoSdk tries to resolve dependencies: platforms/android-28, build-tools/28.0.3@28.0.3, platform-tools@28.0.0, tools@26.1.1, emulator, build-tools/29.0.2@29.0.2
Xamarin.VisualStudio.Android.Setup.AutoSdk|Warning|0|androidsdksetup: AutoSdk cannot resolve dependencies: platform-tools@28.0.0
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify error: 
System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs5320rober - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'Robert’s MacBook Pro'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to DisconnectingState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from Robert’s MacBook Pro...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from Robert’s MacBook Pro...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectingState to DisconnectedState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|The connection to 'Robert’s MacBook Pro' has been finished
Xamarin.Messaging.Integration.State.ServerStateContext|Error|0|An unexpected error occurred while checking the SSH configuration of 'Robert’s MacBook Pro'
System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
   at Renci.SshNet.Abstractions.SocketAbstraction.Connect(IPEndPoint remoteEndpoint, TimeSpan connectTimeout)
   at Renci.SshNet.Session.SocketConnect(String host, Int32 port)
   at Renci.SshNet.Session.Connect()
   at Renci.SshNet.BaseClient.Connect()
   at Xamarin.Messaging.Ssh.SshMessagingConnection.ConnectSsh(Boolean forwardTcpPort) in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\SshMessagingConnection.cs:line 151
   at Xamarin.Messaging.Integration.State.ConfiguringState.<CheckHostConfigurationAsync>d__15.MoveNext() in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Integration\State\ConfiguringState.cs:line 150
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to ConfiguringState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'Robert’s MacBook Pro'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking SSH configuration...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Initializing environment...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking available disk space...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Mono installation...
Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'which mono64': ExitStatus = 1
Xamarin.Messaging.Ssh.SshCommands|Information|0|A valid Mono installation has been found at '/Library/Frameworks/Mono.framework/Versions/Current/bin/mono64'
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Xamarin iOS installation...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'Robert’s MacBook Pro'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to ConfiguredState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Host 'Robert’s MacBook Pro' is configured correctly
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguredState to ConnectingState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to 'Robert’s MacBook Pro'...
System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory|Error|0|An error occurred while connecting via TCP to the endpoint address 192.168.1.84 and port 52494, to establish an MQTT connection
System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 192.168.1.84:52494
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
System.Net.Mqtt.Sdk.MqttClientImpl|Error|0|System.Net.Mqtt.MqttException: An error occurred while connecting via TCP to the endpoint address 192.168.1.84 and port 52494, to establish an MQTT connection ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.1.84:52494
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.PacketChannelFactory.<CreateAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.MqttClientImpl.<InitializeChannelAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Mqtt.Sdk.MqttClientImpl.<ConnectAsync>d__29.MoveNext()
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Checking Broker 16.5.000.400 installation...
Xamarin.Messaging.Ssh.MessagingCommands{System.String}|Warning|0|Server checksum couldn't be verified because there were problems analyzing the content of: /Users/robert/Library/Caches/Xamarin/XMA/Broker/16.5.000.400
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Installing Broker 16.5.000.400...
Xamarin.Messaging.Ssh.MessagingCommands{System.String}|Warning|0|Server checksum couldn't be verified because there were problems analyzing the content of: /Users/robert/Library/Caches/Xamarin/XMA/Broker/16.5.000.400
Xamarin.Messaging.Ssh.MessagingScpClient|Warning|0|An error occurred while using SCP Client. Trying again with a new SCP connection...
Renci.SshNet.Common.ScpException: scp: error: unexpected filename: 
   at Renci.SshNet.ScpClient.CheckReturnCode(Stream input)
   at Renci.SshNet.ScpClient.UploadFileModeAndName(IChannelSession channel, Stream input, Int64 fileSize, String serverFileName)
   at Renci.SshNet.ScpClient.Upload(Stream source, String path)
   at Xamarin.Messaging.Ssh.MessagingScpClient.<>c__DisplayClass16_0.<Upload>b__0() in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 73
   at Xamarin.Messaging.Ssh.MessagingScpClient.Execute(Action action, Boolean retry) in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 166
Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute '/bin/bash -c 'md5 -q "/tmp/Broker-16.5.000.400-b8f6c642-904f-457a-ab8c-6ccce4b9de88/Broker.zip"'': ExitStatus = 1
Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|md5: /tmp/Broker-16.5.000.400-b8f6c642-904f-457a-ab8c-6ccce4b9de88/Broker.zip: No such file or directory

Xamarin.Messaging.Ssh.MessagingFileManager|Error|0|An error occurred while uploading files
Xamarin.Messaging.Ssh.Exceptions.SshCommandException: md5: /tmp/Broker-16.5.000.400-b8f6c642-904f-457a-ab8c-6ccce4b9de88/Broker.zip: No such file or directory

   at Renci.SshNet.SshCommandExtensions.ThrowIfError(SshCommand command) in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\Extensions\SshCommandExtensions.cs:line 34
   at Xamarin.Messaging.Ssh.SshCommands.<RunBashCommandAsync>d__8.MoveNext() in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\SshCommands.cs:line 93
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Ssh.SshCommands.<GetFileChecksumAsync>d__13.MoveNext() in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\SshCommands.cs:line 150
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Xamarin.Messaging.Ssh.MessagingFileManager.<UploadFileAsync>d__13.MoveNext() in E:\A\_work\414\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingFileManager.cs:line 162
Xamarin.Messaging.Ssh.MessagingService|Error|0|Unable to install the Broker
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to 'Robert’s MacBook Pro'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConnectingState to DisconnectingState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from Robert’s MacBook Pro...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from Robert’s MacBook Pro...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectingState to DisconnectedState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|The connection to 'Robert’s MacBook Pro' has been finished
Xamarin.Messaging.Integration.State.ServerStateContext|Error|0|An error occurred while trying to start the Broker...
```

@marinasundstrom
Copy link
Author

So I recreated my account on my Windows 10 VM and tried connecting:

Now I get this:

Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
Xamarin|Information|0|Xamarin - 16.4.000.311-d16-4+ddfd842
Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
Xamarin.VisualStudio.Android.XamarinAndroidPackage|Warning|0|Initializing Xamarin.VisualStudio.Android.XamarinAndroidPackage
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing AndroidStarted event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing AndroidSdkChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready
Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
Xamarin.VisualStudio.IOS.XamarinIOSPackage|Warning|0|Initializing Xamarin.VisualStudio.IOS.XamarinIOSPackage.
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event
Xamarin.HotReload|Information|0|2020-02-14 10:20:16.9 Hot Reload IDE Extension Loaded
Xamarin.VisualStudio.Android.Setup.AndroidSdkValidation|Information|0|androidsdksetup: verify android sdk installed
Xamarin.VisualStudio.Android.Setup.AndroidSdkValidation|Information|0|androidsdksetup: removing android sdk errors
Xamarin.VisualStudio.ProjectSystem.PackageServices|Warning|0|Failed to Restore Nuget packages for project C:\Users\Robert\source\repos\App1\App1\App1.Android\App1.Android.csproj.
Xamarin.VisualStudio.Telemetry.BuildProjectSettings|Information|0|Settings successfully saved.
Xamarin.VisualStudio.Android.Setup.AutoSdk|Information|0|androidsdksetup: AutoSdk tries to resolve dependencies: platforms/android-28, build-tools/28.0.3@28.0.3, platform-tools@28.0.0, tools@26.1.1
Xamarin.VisualStudio.Android.Setup.AutoSdk|Warning|0|androidsdksetup: AutoSdk cannot resolve dependencies: platform-tools@28.0.0
Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify error: 
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to ConfiguringState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'Robert’s MacBook Pro'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking SSH configuration...
Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'grep "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbklvw2mxUoIqADzGulyC3Qd7oV9OKGYlwRIQ7m9LNejWXFSC2jMTIzPhjqvfPBWwSplwvbumhiQb1agsWIRfijNhoAPdrEyRG7HHSWcwjvd7C++/XggUBj16OuH5e0pvbUyjvdjJeHVCtagfr6GiDlDtXKbNOPN8GBPxmpUlU7rRFbtColN1eW6uMQmztLf4JzHL0Drbu2t5Q+Xpi+p8D9ZISyIllq4WF71j+xyh44OyWu/lliNWbcodxHFJNMQ6spGNbrBXYimijPhQjU2a1iHFr8WI3mPyNULYB1bjIAwSh/zBEM+vu8kKs9RwTAiNMdyPPofeW62+7bZM1qJvv robert@Roberts-MBP" "/Users/robert/.ssh/authorized_keys"': ExitStatus = 1
Xamarin.Messaging.Ssh.MessagingScpClient|Warning|0|An error occurred while using SCP Client. Trying again with a new SCP connection...
Renci.SshNet.Common.ScpException: scp: error: unexpected filename: 
   at Renci.SshNet.ScpClient.CheckReturnCode(Stream input)
   at Renci.SshNet.ScpClient.UploadFileModeAndName(IChannelSession channel, Stream input, Int64 fileSize, String serverFileName)
   at Renci.SshNet.ScpClient.Upload(FileInfo fileInfo, String path)
   at Xamarin.Messaging.Ssh.MessagingScpClient.<>c__DisplayClass17_0.<Upload>b__0() in E:\A\_work\471\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 85
   at Xamarin.Messaging.Ssh.MessagingScpClient.Execute(Action action, Boolean retry) in E:\A\_work\471\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 166
Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'cat "/Users/robert/Library/Caches/Xamarin/XMA/Keys/e79c5e63-103d-4f84-904d-36853453ab53" >> "/Users/robert/.ssh/authorized_keys"': ExitStatus = 1
Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|cat: /Users/robert/Library/Caches/Xamarin/XMA/Keys/e79c5e63-103d-4f84-904d-36853453ab53: No such file or directory

Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'Robert’s MacBook Pro'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to DisconnectingState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from Robert’s MacBook Pro...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from Robert’s MacBook Pro...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectingState to DisconnectedState on Robert’s MacBook Pro (192.168.1.84)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|The connection to 'Robert’s MacBook Pro' has been finished
Xamarin.Messaging.Integration.State.ServerStateContext|Error|0|An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: cat: /Users/robert/Library/Caches/Xamarin/XMA/Keys/e79c5e63-103d-4f84-904d-36853453ab53: No such file or directory

Xamarin.Messaging.Ssh.Exceptions.SshKeysGenerationException: An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: cat: /Users/robert/Library/Caches/Xamarin/XMA/Keys/e79c5e63-103d-4f84-904d-36853453ab53: No such file or directory

   at Xamarin.Messaging.Ssh.SshCommands.<AddAuthorizedKeyAsync>d__33.MoveNext() in E:\A\_work\471\s\External\messaging\src\Xamarin.Messaging.Ssh\SshCommands.cs:line 450
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Ssh.SshKeysGenerator.<CheckSshKeysAsync>d__4.MoveNext() in E:\A\_work\471\s\External\messaging\src\Xamarin.Messaging.Ssh\SshKeysGenerator.cs:line 49
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Integration.State.ConfiguringState.<ConfigureSshKeysAsync>d__16.MoveNext() in E:\A\_work\471\s\External\messaging\src\Xamarin.Messaging.Integration\State\ConfiguringState.cs:line 221
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Xamarin.Messaging.Integration.State.ConfiguringState.<CheckHostConfigurationAsync>d__15.MoveNext() in E:\A\_work\471\s\External\messaging\src\Xamarin.Messaging.Integration\State\ConfiguringState.cs:line 147

@mauroa
Copy link
Contributor

mauroa commented Feb 14, 2020

Hi,
SCP is the protocol we use to copy files to the Mac, it's part of the SSH protocol. Everything we do against the Mac, we do trough an SSH tunnel.
According to the logs, here the real problem is not Windows but the SSH installation on the Mac. That sounds really strange because the SSH daemon on the Mac comes as part of the macOS installation, so it's strange to have issues like this.

The reason why the Broker is not in the Mac is because we copy the Broker and Agents from Windows to the Mac (if not already copied) as part of the connection process. So, because SCP fails in your case, the copy couldn't be completed and then when we try to start the Broker process it fails complaining that the Broker is not there (which is correct).

The focus here should be on trying to understand why SCP is not working on your Mac and what is causing it. The link I pointed to you about SSH.NET shows that this is a know problem. but they just fixed the way they handle that error on the client side.

I'll continue investigating and let you know If I find something.

@mauroa
Copy link
Contributor

mauroa commented Feb 14, 2020

What macOS version do you have?

@marinasundstrom
Copy link
Author

@mauroa macOS Catalina Beta 10.15.4

I recreated my users both in macOS and Windows 10 (Preview) in Parallels.

when I try now, I get a message telling that my environment has not been properly configured.

An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: cat: /Users/robert/Library/Caches/Xamarin/XMA/Keys/f1cb8a00-7cf0-407f-b8a9-657288dfbe05: No such file or directory

@marinasundstrom
Copy link
Author

marinasundstrom commented Feb 14, 2020

Observe that I run Stable VS 2019 now:

Tried to run the grepcommand manually through SSH from Windows.

It failed in PowerShell due to the syntax, and in Git Bash it executed did not do anything.

So then I copied the key manually to authorized_keys on my Mac.

There are no keys to copy from /Users/robert/Library/Caches/Xamarin/XMA/Keys when I check the directory. They do not get generated.

How can I troubleshoot this?

@marinasundstrom
Copy link
Author

I finally reinstalled macOS without losing my data and apps. Now I can connect again.

I just think it is bad that you cannot fix the problem manually.

@horiadm
Copy link

horiadm commented Feb 20, 2020

@RobertSundstrom I have exactly the same problem.
An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: cat: /Users/robert/Library/Caches/Xamarin/XMA/Keys/f1cb8a00-7cf0-407f-b8a9-657288dfbe05: No such file or directory
I tried all the things possible but none of them worked. I really don't like the idea of reinstalling the macOS again. There should be something else to be done.
@mauroa Any ideas? I'm using the same OS version. On my Windows machine I have VS Entreprise 2019 (16.4.5)

@Rabosa616
Copy link

I have the same issue
Mac version: 10.15.4 Beta (19E234g)
Visual Studio Windows: Microsoft Visual Studio Enterprise 2019 Preview Version 16.5.0 Preview 3.0
Visual Studio Mac: Visual studio for mac community version: 8.5 preview (8.5 build 2987)
I've also followed the instruction for Clearing the Broker, IDB, Build, and Designer Agents on the Mac in:
https://docs.microsoft.com/en-us/xamarin/ios/get-started/installation/windows/connecting-to-mac/troubleshooting
Didn't work.

I do not want to try to reinstall Mac Os

Here by I attach the Xamarin log files from windows
2020-02-21_20-31-20.20336.Ide.log
2020-02-21__20-31-22.20336.IDBLocal.log

@mohsen-mohamed
Copy link

i have the same error
i'm running macOS catalina 10.15.4 in VM Ware
windows 10 version 1809
Microsoft Visual Studio Enterprise 2019 Version 16.4.5
Visual studio for mac community version: 8.4.6 (build 36)
Error message on VS windows version while trying to add mac:

An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: cat: /Users/mohsen/Library/Caches/Xamarin/XMA/Keys/69277951-3d5f-44e0-abeb-e76fdee999b9: No such file or directory

and also tried to delete cashes from windows and mac but didn't help
i think this happen after i've updated mac version to latest

@mohsen-mohamed
Copy link

I finally reinstalled macOS without losing my data and apps. Now I can connect again.

I just think it is bad that you cannot fix the problem manually.

what version of macOS did you just reinstalled ?
is it 10.15.3 or 10.15.4 beta ?

@Magendanz
Copy link

I also ran into this issue after upgrading to macOS 10.15.4 today.

@eslamo
Copy link

eslamo commented Mar 26, 2020

There is a workaround you can do to connect:

1- copy the content of file C:\Users\xx\AppData\Local\Xamarin\MonoTouch\id_rsa.pub
2- paste it into mac ~/.ssh/authorized_keys in a New Line

Restart Visual studio and Enjoy

@kalprajkakani
Copy link

There is a workaround you can do to connect:

1- copy the content of file C:\Users\xx\AppData\Local\Xamarin\MonoTouch\id_rsa.pub
2- paste it into mac ~/.ssh/authorized_keys in a New Line

Restart Visual studio and Enjoy

It worked, But now i am getting this error.

"The Broker initialization exceeded the timeout of 60000 millisecs without receiving confirmation from the Broker process"

@krisam987
Copy link

Same here, after Mac update!

@eslamo
Copy link

eslamo commented Mar 26, 2020

Addressing the issue:
This issue is caused by an update in macOS, from 10.15.4. It causes a bug in our SSH layer which makes the SCP usage to not work.
We use SCP to copy the Mac Agent files to the Mac so we end up being unable to copy the files and hence initializing the Mac Agent.
We have already implemented a fix for this and it’s being included in the next VS d16.5 Service Release and also in the next VS d16.6 P2.

For all who face the same issue The full temporary workaround finally is here [Until microsoft release the new update]:

1- Copy the content of file C:\Users\xx\AppData\Local\Xamarin\MonoTouch\id_rsa.pub

2- Paste it into mac ~/.ssh/authorized_keys in a New Line

3- Download the attached scp binary that I attached and replace it in your os x and decompress it
scp.zip
A- Disable read-only security on os x Volume this is temporary until restart

sudo mount -uw /

B- Backup old SCP

sudo cp /usr/bin/scp /usr/bin/scp.bak

C- Replace SCP

sudo cp ~/Downloads/scp /usr/bin/scp

Try now connection and it should work now.

@Cybrosys
Copy link

Cybrosys commented Mar 26, 2020

Hello @eslamo , do you perhaps have any indication of when an update of Visual Studio for Windows might be available with the fix?

I'm getting this error:
Xamarin.Messaging.Ssh.Exceptions.SshCommandException: md5: /tmp/Broker-16.5.000.521-7f62903b-843d-4333-bbf0-991675716158/Broker.zip: No such file or directory

@eslamo
Copy link

eslamo commented Mar 26, 2020

Hello @eslamo , do you perhaps have any indication of when an update of Visual Studio for Windows might be available with the fix?

I'm getting this error:
Xamarin.Messaging.Ssh.Exceptions.SshCommandException: md5: /tmp/Broker-16.5.000.521-7f62903b-843d-4333-bbf0-991675716158/Broker.zip: No such file or directory

I don't know the timeline of release actually but as I explained you can change the scp file temporarily and it should fix this error.

@krisam987
Copy link

krisam987 commented Mar 26, 2020

Thanks, but access to /usr/bin is not allowed, same with "sudo mount -uw /" we have to wait for your release and meantime we can't do any work

@Greg767
Copy link

Greg767 commented Mar 26, 2020

Thanks! Workaround fixes it.

@edmlbox
Copy link

edmlbox commented Mar 26, 2020

sudo mount -uw / Operation not permitted. Mount failed with 77.

@Greg767
Copy link

Greg767 commented Mar 26, 2020

sudo mount -uw / Operation not permitted. Mount failed with 77.

https://support.studionetworksolutions.com/hc/en-us/articles/115003839246-How-to-disable-Systems-Integrity-Protection-SIP-in-macOS

@eslamo
Copy link

eslamo commented Mar 26, 2020

sudo mount -uw / Operation not permitted. Mount failed with 77.

https://support.studionetworksolutions.com/hc/en-us/articles/115003839246-How-to-disable-Systems-Integrity-Protection-SIP-in-macOS

That's the correct answer man :)

@carlclarke
Copy link

On a new OSX 10.15.4 VM Pasting the key gets a bit further, some pkg files get updated on OSX and then an error in VS 2019 states 'Error - An error occured while trying to start the Broker...'. Attempting to execute 'sudo mount -uw / generates the error message:

'mount_apfs: volume could not be mounted: Operation not permitted
mount: / failed with 77

I was going to try to disable SIP to be able to replace scp by going into recover mode etc. - A bit horrible though.

I can confirm that a Mac mini running 10.15.3 does not have the problem.

@eslamo
Copy link

eslamo commented Mar 26, 2020

On a new OSX 10.15.4 VM Pasting the key gets a bit further, some pkg files get updated on OSX and then an error in VS 2019 states 'Error - An error occured while trying to start the Broker...'. Attempting to execute 'sudo mount -uw / generates the error message:

'mount_apfs: volume could not be mounted: Operation not permitted
mount: / failed with 77

I was going to try to disable SIP to be able to replace scp by going into recover mode etc. - A bit horrible though.

I can confirm that a Mac mini running 10.15.3 does not have the problem.

I'm sure after disabling SIP everything will work as expected.

@LeonSweden
Copy link

Addressing the issue:
This issue is caused by an update in macOS, from 10.15.4. It causes a bug in our SSH layer which makes the SCP usage to not work.
We use SCP to copy the Mac Agent files to the Mac so we end up being unable to copy the files and hence initializing the Mac Agent.
We have already implemented a fix for this and it’s being included in the next VS d16.5 Service Release and also in the next VS d16.6 P2.

For all who face the same issue The full temporary workaround finally is here [Until microsoft release the new update]:

1- Copy the content of file C:\Users\xx\AppData\Local\Xamarin\MonoTouch\id_rsa.pub

2- Paste it into mac ~/.ssh/authorized_keys in a New Line

3- Download the attached scp binary that I attached and replace it in your os x and decompress it
scp.zip
A- Disable read-only security on os x Volume this is temporary until restart

sudo mount -uw /

B- Backup old SCP

sudo cp /usr/bin/scp /usr/bin/scp.bak

C- Replace SCP

sudo cp ~/Downloads/scp /usr/bin/scp

Try now connection and it should work now.

Thanks! Oh, yes - it works - u-r-gold!

@Magendanz
Copy link

Magendanz commented Mar 29, 2020

This worked to get up and debugging on iOS again, but I can't build a release for distribution to the Apple Store because it's not syncing the Manual Provisioning settings (Signing Authority and Provisioning Profile). I've downloaded the manual profile for our team in Xcode 11.4, so I'm not sure why Xamarin isn't picking it up, and this is needed to Distribute the archive to the App Store. Any suggestions?

@pinkysek
Copy link

@Magendanz I have same problem. I think actual version VS 2019 16.5.1 is totally bugged for iOS development... for example when I opened project in VS 2017 pair with Mac worked well before @eslamo things. Now in VS 2017 I have my provisioning profiles but in VS 2019 not...

@pinkysek
Copy link

@Magendanz btw I tried now in VS 2019 on PC in "Tools -> Options -> Xamarin -> Apple accounts" sign in to my Apple ID and download manual my profiles there and it works.

@Magendanz
Copy link

Thanks for the pointer, @pinkysek! I was unable to download the provisioning profiles because VS 2019 said that the certificate status was "Not In Keychain". In the past, it's just pulled these automatically from the Mac's Keychain Access app, but now I had to export the certificate as a .p12 from the Mac and then hit Import Certificate in VS 2019. After that was complete, I was back in business and successfully able to publish to the App Store.

@robertwood62
Copy link

I re-imaged my MAC and also uninstalled and reinstalled VS 2019 on my PC and the error persists.

An error occurred while generating the SSH keys. Please check that the environment is properly configured. Details: cat: /Users/robertwood/Library/Caches/Xamarin/XMA/Keys/e7ed6a6d-0283-4ce1-84fe-1c297229411b: No such file or directory

I'm looking for an actual fix here... Not a workaround.

@RhomGit
Copy link

RhomGit commented Mar 31, 2020

This issue is marked as Closed. Other than the long-winded workaround, is the issue actually fixed?
Can someone comment if there is going to be a preview build of Visual Studio soon with this fix?

I'm not going to lie, after reading this thread I am not too keen on trying the workaround (I don't have the time) and this is critical functionality to some of us.

@IngweLand
Copy link

For those who are using Mac OS inside virtual machine and have troubles starting the system in recovery mode. You can enable next boot in recovery mode by running following command in the terminal
sudo nvram "recovery-boot-mode=unused"
sudo reboot
https://apple.stackexchange.com/a/367367/190245
After you finish in recovery mode, just reboot the system - it will automatically start in normal mode.

@AndreKraemer
Copy link

Visual Studio 16.5.2 which got published today fixed that issue for me.

@adha-admin
Copy link

Hi Guys, With this latest version, it has broken the iOS ListView OnItemSelected - does anyone else have this issue?

@npagare
Copy link

npagare commented Apr 1, 2020

I am finding issues with navigation. My App uses Prism 7.2, XF 4.5 latest stable, Xcode 11.4
My navigation via nav bar buttons ( hamburger menu ) is working on Android but not on iOS 13.4.
I also did reset on my iOS simulator.
@mauroa , @chamons, @spouliot .. any clue ? Can we get the mono framework versions in synch on both VS and VSMac ?

@npagare
Copy link

npagare commented Apr 1, 2020

Hi Guys, With this latest version, it has broken the iOS ListView OnItemSelected - does anyone else have this issue?

Are you experiencing the issue of command for OnItemSelected not getting fired ? Nothing happens when you select the item ?

@wouterst79
Copy link

wouterst79 commented Apr 1, 2020

I got issues with Tap Gestures iOS (started after upgrading to 16.5.2 which did fix the connect to mac issue, Xamarin.iOS is at 13.16.0.11).
EDIT: looks like the issue is only in the simulator, not on the actual device :S

@adha-admin
Copy link

I got issues with Tap Gestures iOS (started after upgrading to 16.5.2 which did fix the connect to mac issue, Xamarin.iOS is at 13.16.0.11).

the 16.5.2 fixed the deployment, but has broken the Tap Gesture in a ListView.

I had an app which did work which was previously deployed in the simulator and that now does not work. So it seems when I synced by Windows machine with my mac, it pushed a Xamarin/Mono library which broke the simulator.

@npagare
Copy link

npagare commented Apr 1, 2020

I got issues with Tap Gestures iOS (started after upgrading to 16.5.2 which did fix the connect to mac issue, Xamarin.iOS is at 13.16.0.11).

the 16.5.2 fixed the deployment, but has broken the Tap Gesture in a ListView.

I had an app which did work which was previously deployed in the simulator and that now does not work. So it seems when I synced by Windows machine with my mac, it pushed a Xamarin/Mono library which broke the simulator.

did you try it after resetting and cleaning the simulator ? I did - but no success. I think the mono framework version could also be the culprit. Are you finding this issue on iPhone device as well or just on the simulator?

@npagare
Copy link

npagare commented Apr 1, 2020

I finally reinstalled macOS without losing my data and apps. Now I can connect again.

I just think it is bad that you cannot fix the problem manually.

Please this issue open until we get to validate the functionality fully after this fix is released.

@adha-admin
Copy link

I got issues with Tap Gestures iOS (started after upgrading to 16.5.2 which did fix the connect to mac issue, Xamarin.iOS is at 13.16.0.11).

the 16.5.2 fixed the deployment, but has broken the Tap Gesture in a ListView.
I had an app which did work which was previously deployed in the simulator and that now does not work. So it seems when I synced by Windows machine with my mac, it pushed a Xamarin/Mono library which broke the simulator.

did you try it after resetting and cleaning the simulator ? I did - but no success. I think the mono framework version could also be the culprit. Are you finding this issue on iPhone device as well or just on the simulator?

I am getting this on both Simulator and Device

@rolfbjarne
Copy link
Member

Please file new issues if you have a new and different problem than the one described here, otherwise it's unlikely we'll investigate it.

@Benny56
Copy link

Benny56 commented Apr 1, 2020

@eslamo
please can you help me , i want to copy C:\Users\xx\AppData\Local\Xamarin\MonoTouch\id_rsa.pub
into mac ~/.ssh/authorized_keys , how can i do that ?

I'm using WinSCP to make things easy.

@Benny56
Copy link

Benny56 commented Apr 1, 2020

Visual Studio 16.5.2 which got published today fixed that issue for me.

Helped me, too. Had to clear contents of directory "%LOCALAPPDATA%\Xamarin\MonoTouch" before.

@dleinius
Copy link

dleinius commented Apr 1, 2020

Visual Studio 16.5.2 which got published today fixed that issue for me.

Did the update and still having trouble to install the Broker:

Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Xamarin iOS installation...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'xxx.macincloud.com'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to ConfiguredState on xxx.macincloud.com (xxx.xxx.xxx.xxx)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Host 'xxx.macincloud.com' is configured correctly
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguredState to ConnectingState on xxx.macincloud.com (xxx.xxx.xxx.xxx)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to 'xxx.macincloud.com'...
System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory|Error|0|An error occurred while connecting via TCP to the endpoint address xxx.xxx.xxx.xxx and port 55380, to establish an MQTT connection
System.Net.Sockets.SocketException (0x80004005): Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte xxx.xxx.xxx.xxx:55380
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.d__4.MoveNext()
System.Net.Mqtt.Sdk.MqttClientImpl|Error|0|System.Net.Mqtt.MqttException: An error occurred while connecting via TCP to the endpoint address xxx.xxx.xxx.xxx and port 55380, to establish an MQTT connection ---> System.Net.Sockets.SocketException: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte xxx.xxx.xxx.xxx:55380
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.d__4.MoveNext()
--- End of inner exception stack trace ---
at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Mqtt.Sdk.PacketChannelFactory.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Mqtt.Sdk.MqttClientImpl.d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Mqtt.Sdk.MqttClientImpl.d__29.MoveNext()
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Checking Broker 16.5.000.528 installation...
Xamarin.Messaging.Ssh.MessagingCommands{System.String}|Information|0|Server directory /Users/ssh_development/Library/Caches/Xamarin/XMA/Broker/16.5.000.528 doesn't exist, hence the checksum can't be verified
Xamarin.Messaging.Ssh.BrokerCommands|Information|0|Installing Broker 16.5.000.528...
Xamarin.Messaging.Ssh.MessagingCommands{System.String}|Information|0|Server directory /Users/ssh_development/Library/Caches/Xamarin/XMA/Broker/16.5.000.528 doesn't exist, hence the checksum can't be verified
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (192/1824 KB) 10%...
Xamarin.Messaging.Ssh.MessagingScpClient|Warning|0|An error occurred while using SCP Client. Trying again with a new SCP connection...
Renci.SshNet.Common.SshConnectionException: Client not connected.
at Renci.SshNet.Session.SendPacket(Byte[] packet, Int32 offset, Int32 length)
at Renci.SshNet.Session.SendMessage(Message message)
at Renci.SshNet.Session.Renci.SshNet.ISession.SendMessage(Message message)
at Renci.SshNet.Channels.Channel.SendData(Byte[] data, Int32 offset, Int32 size)
at Renci.SshNet.ScpClient.SendData(IChannel channel, Byte[] buffer, Int32 length)
at Renci.SshNet.ScpClient.UploadFileContent(IChannelSession channel, Stream input, Stream source, String remoteFileName)
at Renci.SshNet.ScpClient.Upload(Stream source, String path)
at Xamarin.Messaging.Ssh.MessagingScpClient.<>c__DisplayClass16_0.b__0() in C:\A\vs2019mb-000014-1_work\15\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 73
at Xamarin.Messaging.Ssh.MessagingScpClient.Execute(Action action, Boolean retry) in C:\A\vs2019mb-000014-1_work\15\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 166
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (16/1824 KB) 0%...
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (192/1824 KB) 10%...
Xamarin.Messaging.Ssh.MessagingFileManager|Warning|0|Failed to upload 'Broker.zip' to the Server becasue the checksum did not match
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (192/1824 KB) 10%...
Xamarin.Messaging.Ssh.MessagingScpClient|Warning|0|An error occurred while using SCP Client. Trying again with a new SCP connection...
Renci.SshNet.Common.SshConnectionException: Client not connected.
at Renci.SshNet.Session.SendPacket(Byte[] packet, Int32 offset, Int32 length)
at Renci.SshNet.Session.SendMessage(Message message)
at Renci.SshNet.Session.Renci.SshNet.ISession.SendMessage(Message message)
at Renci.SshNet.Channels.Channel.SendData(Byte[] data, Int32 offset, Int32 size)
at Renci.SshNet.ScpClient.SendData(IChannel channel, Byte[] buffer, Int32 length)
at Renci.SshNet.ScpClient.UploadFileContent(IChannelSession channel, Stream input, Stream source, String remoteFileName)
at Renci.SshNet.ScpClient.Upload(Stream source, String path)
at Xamarin.Messaging.Ssh.MessagingScpClient.<>c__DisplayClass16_0.b__0() in C:\A\vs2019mb-000014-1_work\15\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 73
at Xamarin.Messaging.Ssh.MessagingScpClient.Execute(Action action, Boolean retry) in C:\A\vs2019mb-000014-1_work\15\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 166
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (16/1824 KB) 0%...
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (192/1824 KB) 10%...
Xamarin.Messaging.Ssh.MessagingFileManager|Warning|0|Failed to upload 'Broker.zip' to the Server becasue the checksum did not match
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (192/1824 KB) 10%...
Xamarin.Messaging.Ssh.MessagingScpClient|Warning|0|An error occurred while using SCP Client. Trying again with a new SCP connection...
Renci.SshNet.Common.SshConnectionException: Client not connected.
at Renci.SshNet.Session.SendPacket(Byte[] packet, Int32 offset, Int32 length)
at Renci.SshNet.Session.SendMessage(Message message)
at Renci.SshNet.Session.Renci.SshNet.ISession.SendMessage(Message message)
at Renci.SshNet.Channels.Channel.SendData(Byte[] data, Int32 offset, Int32 size)
at Renci.SshNet.ScpClient.SendData(IChannel channel, Byte[] buffer, Int32 length)
at Renci.SshNet.ScpClient.UploadFileContent(IChannelSession channel, Stream input, Stream source, String remoteFileName)
at Renci.SshNet.ScpClient.Upload(Stream source, String path)
at Xamarin.Messaging.Ssh.MessagingScpClient.<>c__DisplayClass16_0.b__0() in C:\A\vs2019mb-000014-1_work\15\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 73
at Xamarin.Messaging.Ssh.MessagingScpClient.Execute(Action action, Boolean retry) in C:\A\vs2019mb-000014-1_work\15\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 166
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (16/1824 KB) 0%...
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (192/1824 KB) 10%...
Xamarin.Messaging.Ssh.MessagingFileManager|Warning|0|Failed to upload 'Broker.zip' to the Server becasue the checksum did not match
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (192/1824 KB) 10%...
Xamarin.Messaging.Ssh.MessagingScpClient|Warning|0|An error occurred while using SCP Client. Trying again with a new SCP connection...
Renci.SshNet.Common.SshConnectionException: Client not connected.
at Renci.SshNet.Session.SendPacket(Byte[] packet, Int32 offset, Int32 length)
at Renci.SshNet.Session.SendMessage(Message message)
at Renci.SshNet.Session.Renci.SshNet.ISession.SendMessage(Message message)
at Renci.SshNet.Channels.Channel.SendData(Byte[] data, Int32 offset, Int32 size)
at Renci.SshNet.ScpClient.SendData(IChannel channel, Byte[] buffer, Int32 length)
at Renci.SshNet.ScpClient.UploadFileContent(IChannelSession channel, Stream input, Stream source, String remoteFileName)
at Renci.SshNet.ScpClient.Upload(Stream source, String path)
at Xamarin.Messaging.Ssh.MessagingScpClient.<>c__DisplayClass16_0.b__0() in C:\A\vs2019mb-000014-1_work\15\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 73
at Xamarin.Messaging.Ssh.MessagingScpClient.Execute(Action action, Boolean retry) in C:\A\vs2019mb-000014-1_work\15\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingScpClient.cs:line 166
Xamarin.Messaging.Ssh.MessagingFileManager|Information|0|Uploading Broker.zip (16/1824 KB) 0%...
Xamarin.Messaging.Ssh.MessagingFileManager|Warning|0|Failed to upload 'Broker.zip' to the Server becasue the checksum did not match
Xamarin.Messaging.Ssh.MessagingService|Error|0|Unable to install the Broker

@MarekOtulakowski
Copy link

Hello all
The following scenario worked for me:

  1. VS2019 update to 16.5.2
  2. Mac connection from VS2017 completed successfully (install Mono etc.)
  3. Connection to Mac from VS2019 completed correctly (install Broker etc.)

@robertwood62
Copy link

robertwood62 commented Apr 1, 2020 via email

@adha-admin
Copy link

Please file new issues if you have a new and different problem than the one described here, otherwise it's unlikely we'll investigate it.

Added new issue

#8266

@Midnayt
Copy link

Midnayt commented Oct 30, 2020

When you'll fix this issue?

@chamons
Copy link
Contributor

chamons commented Oct 30, 2020

@Midnayt - As you can see this issue is currently closed.

If you are seeing this with the latest Xamarin.iOS and Xcode please feel free to open a new issue filled out with details.

@ghost ghost locked as resolved and limited conversation to collaborators May 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external-xamarin-vs Issues affecting the Xamarin in Visual Studio and are not specific to Xamarin.iOS or Xamarin.Mac
Projects
None yet
Development

No branches or pull requests