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/[email protected], [email protected], [email protected], emulator, build-tools/[email protected]
Xamarin.VisualStudio.Android.Setup.AutoSdk|Warning|0|androidsdksetup: AutoSdk cannot resolve dependencies: [email protected]
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
I have reinstalled VS both on Windows and Mac and it still does not work.
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: https://github.com/sshnet/SSH.NET/pull/515
However, we should understand what is different on your Mac to cause this problem.
@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.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.<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.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.<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/[email protected], [email protected], [email protected], emulator, build-tools/[email protected]
Xamarin.VisualStudio.Android.Setup.AutoSdk|Warning|0|androidsdksetup: AutoSdk cannot resolve dependencies: [email protected]
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.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.<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.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.
--- End of inner exception stack trace ---
at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.
--- 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.
--- 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.
--- 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.
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.
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.
--- 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.
--- 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.
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...
```
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/[email protected], [email protected], [email protected]
Xamarin.VisualStudio.Android.Setup.AutoSdk|Warning|0|androidsdksetup: AutoSdk cannot resolve dependencies: [email protected]
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
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.
What macOS version do you have?
@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
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?
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.
@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)
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
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
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 ?
I also ran into this issue after upgrading to macOS 10.15.4 today.
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
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 LineRestart 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"
Same here, after Mac update!
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
B- Backup old SCP
C- Replace SCP
Try now connection and it should work now.
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
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.
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
Thanks! Workaround fixes it.
sudo mount -uw / Operation not permitted. Mount failed with 77.
sudo mount -uw /Operation not permitted. Mount failed with 77.
sudo mount -uw /Operation not permitted. Mount failed with 77.
That's the correct answer man :)
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.
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 77I 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.
You can even re-enable it after and it still works..
Getting a VM to respond to Command-R upon start/re-start is challenging :) after managing to get into recovery mode the workaround above (https://github.com/xamarin/xamarin-macios/issues/7882#issuecomment-604330852) works. Thanks.
The steps provided by @eslamo to replace scp seemed to make progress but I was still getting errors. After further troubleshooting this is what got it working (though I really don't know which of these steps is the key):
scp%LOCALAPPDATA%\Xamarin\MonoTouch directory (leave the directory itself)~/.ssh/authorized_keys file~/Library/Caches/Xamarin/XMA directorychmod og-w "$HOME"At least something in there got it working for me.
Hi @mauroa , I am getting same error - "Broker initialization exceeded the timeout of 60000 millisecs without receiving confirmation from the Broker process. " after upgrading mac to 10.15.4
Can someone please help us ?
Hi @mauroa , I am getting same error - "Broker initialization exceeded the timeout of 60000 millisecs without receiving confirmation from the Broker process. " after upgrading mac to 10.15.4
Can someone please help us ?
use @eslamo solution.
@eslamo solution works fine for me thanks.
I don't have physical access to the Mac to disable SIP so I'm dead in the water until this is fixed
I also got this error after upgrading my Mac to Catalina 10.15.4
Running VS 2019 w/ latest on my PC.
Will try advices above but think it is bad programming by Mac people.
I also got this error after upgrading my Mac to Catalina 10.15.4
Running VS 2019 w/ latest on my PC.
Will try advices above but think it is bad programming by Mac people.
Let's hope Xamarin.iOS team helps us out quickly with some patch (without us requiring MacOS expertise) before the major resolution is packaged in the next VS service release. From my past experience, they will definitely help us out quickly.
4 Hours later this workaround saved me. Thanks
@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 ?
@NehaLOsamaFahmy You have to find the file first on the mac, namely authroized_keys. On your mac, In Finder, select Go and then Go To Folder. In that search option that appears paste ~/.ssh/
Now this will take you to that file. You have to open the file with a proper text editor like Text Mate and on a new line paste the content of the id_rsa.pub file (that you also open on windows with NotePad++ and copy that one line by selecting and CTRL+C. On windows you find this file similarly by navigating to C:\Users\YourUserName\AppData\Local\Xamarin\MonoTouch\ I think this file should only contain that one line ). Also make sure that the authorized_keys file on Mac doesn't already include that line, in my case it was already there so I did not have to paste it.That should do it.
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
- Please refer to this link to disable SIP first as @Greg767 suggested
https://support.studionetworksolutions.com/hc/en-us/articles/115003839246-How-to-disable-Systems-Integrity-Protection-SIP-in-macOSsudo 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!
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?
@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...
@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.
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.
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.
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.
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.
Visual Studio 16.5.2 which got published today fixed that issue for me.
Hi Guys, With this latest version, it has broken the iOS ListView OnItemSelected - does anyone else have this issue?
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 ?
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 ?
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
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.
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 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.
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
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.
@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.
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.
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.
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.
--- End of inner exception stack trace ---
at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.
--- 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.
--- 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.
--- 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.
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.
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.
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.
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.
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
Hello all
The following scenario worked for me:
I too am back up and running. Thanks Xamarin Team for getting this issue resolved 😊
From: Marek Otulakowski notifications@github.com
Sent: April 1, 2020 11:23 AM
To: xamarin/xamarin-macios xamarin-macios@noreply.github.com
Cc: robertwood62 robertwood62@hotmail.com; Comment comment@noreply.github.com
Subject: Re: [xamarin/xamarin-macios] Broker error (#7882)
Hello all
The following scenario worked for me:
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fxamarin%2Fxamarin-macios%2Fissues%2F7882%23issuecomment-607314335&data=02%7C01%7C%7Ce4f127b224e546a20b3608d7d6508534%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637213513620603509&sdata=GGaakGZj8X3BXZgpEu9yUuJpku8bBuILd%2BbkbNjRwmk%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACYKMNMM54XZ74ZVFPB7EMDRKNL4DANCNFSM4KUPVODQ&data=02%7C01%7C%7Ce4f127b224e546a20b3608d7d6508534%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637213513620613490&sdata=AA%2BFTflfSIUEgS9hjXU1nDAsaTXZovDeMFmOcVHHKCo%3D&reserved=0.
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
When you'll fix this issue?
@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.
Most helpful comment
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
https://support.studionetworksolutions.com/hc/en-us/articles/115003839246-How-to-disable-Systems-Integrity-Protection-SIP-in-macOS
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.