Issue Connecting to Mac Agent from Windows - xamarin

I got the following issue while connecting to Mac Agent.
Previously when using Xcode 9.2 i got no such issues but later when updated to Xcode 9.3 the following log was showed.
Getting this error even when the Mac credentials are correct.
Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter
Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished
Xamarin|Information|0|Xamarin - 4.8.0.760-d15-5+fc93f3f5b
Xamarin.VisualStudio.Activation.AccountManager|Information|0|VS2017 Community
Xamarin.VisualStudio.Activation.ActivationManager|Information|0|No license found for iOS
Xamarin.VisualStudio.Activation.ActivationManager|Information|0|Running license sync for iOS
Xamarin.VisualStudio.Activation.ActivationManager|Information|0|Not logged in, using iOS Community
Xamarin.VisualStudio.Activation.ActivationManager|Information|0|No license found for Android
Xamarin.VisualStudio.Activation.ActivationManager|Information|0|Running license sync for Android
Xamarin.VisualStudio.Activation.ActivationManager|Information|0|Not logged in, using Android Community
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.Inspector|Information|0|Inspector extension loaded
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.ProjectFixerRunner|Information|0|Solution loaded: 'App1'
Xamarin.VisualStudio.ProjectFixerRunner|Information|0|running fixup on project 'F:\Bharath\Project Materials\App1\App1\App1.Android\App1.Android.csproj'
Xamarin.VisualStudio.ProjectFixerRunner|Information|0|running fixup on project 'F:\Bharath\Project Materials\App1\App1\App1.iOS\App1.iOS.csproj'
Xamarin.VisualStudio.Android.ContinuousPlayerDeviceProvider|Information|0|Start()
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to ConfiguringState on 192.168.XXX.XX (192.168.XXX.XX)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to '192.168.XXX.XX'...
Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'grep "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJ0uNVUuKpZY5t3ea5q5JjTFn7AGfrSHeyDGJ0S83Plh05t4neDyk8jtt7WSqFM8FeY31i5N55FaYOnxwRvzcYJxo01PWuudNKtB6L4pk0PxN1cYTG8RqCLw0DM9GVL4cULgENsofpkxCu648qpIbbXl+Bwj7ScP8JV8b9vMFART59iWYlF1iuzFoLt4NE3uX24m7R/W2G9ypxDRHRB5YAAeVXPm9j5BlHzLHaCmIQezJr7T/d0PEr/09IV1CrQ56Q11RPMH7YHXILzHKhmYO+gwEUrgwvYo68/9P7E3nbzCVEikOHIdxAYHjd59Ma7y/u2iicEjfzwXXoMbkhuyZB GD#GD-MacBook-Pro.local" /Users/GD/.ssh/authorized_keys': ExitStatus = 1
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to '192.168.XXX.XX'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to ConfiguredState on 192.168.XXX.XX (192.168.XXX.XX)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Host '192.168.XXX.XX' is configured correctly
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguredState to ConnectingState on 192.168.XXX.XX (192.168.XXX.XX)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to '192.168.XXX.XX'...
Xamarin.Messaging.Ssh.MessagingService|Information|0|Starting connection to 192.168.XXX.XX...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to '192.168.XXX.XX'...
Xamarin.Messaging.Integration.State.ServerStateContext|Error|0|Unable to authenticate with SSH keys. Please try to log in with credentials first
Xamarin.Messaging.Ssh.Exceptions.MessagingAuthenticationException: Could not authenticate the user 'GD'R with SSH keys. Please check that both $HOME folder and ~/.ssh/authorized_keys have the appropiate permissions to use SSH. More details: Permission denied (publickey). ---> Renci.SshNet.Common.SshAuthenticationException: Permission denied (publickey).
at Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session)
at Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory)
at Renci.SshNet.Session.Connect()
at Renci.SshNet.BaseClient.Connect()
at Xamarin.Messaging.Ssh.SshMessagingConnection.ConnectSsh(Boolean forwardTcpPort) in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\External\messaging\src\Xamarin.Messaging.Ssh\SshMessagingConnection.cs:line 138
at Xamarin.Messaging.Ssh.MessagingService.<ConnectAsync>d__66.MoveNext() in C:\d\lanes\5409\fc93f3f5\source\xamarinvs\External\messaging\src\Xamarin.Messaging.Ssh\MessagingService.cs:line 225
--- End of inner exception stack trace ---
Xamarin.Messaging.Ssh.SshMessagingConnection|Error|0|An unexpected error occurred with the current SSH Session
Renci.SshNet.Common.SshConnectionException: An established connection was aborted by the server.
at Renci.SshNet.Session.SocketRead(Int32 length, Byte[] buffer)
at Renci.SshNet.Session.ReceiveMessage()
at Renci.SshNet.Session.MessageListener()

You always have to open XCode after you have updated it. It the most case it will install additional components and sometimes you have to accept new terms.

Related

Google Assistant Hotword Detection Not Working

I'm new to Google Assistant SDK. Recently I embedded Assistant to Raspberry Pi 3 B. I used the googlesamples-assistant-hotword sample. It worked fine. But next time I run the command I got some errors. I reinstall the sdk and tried, but got the same error. However googlesamples-assistant-pushtotalk still works. But googlesamples-assistant-hotword gives errors. How can I fix this. The errors I got are as follows;
(env) pi#raspberrypi:~$ googlesamples-assistant-hotword
ON_MUTED_CHANGED:
{u'is_muted': False}
ON_START_FINISHED
E0922 08:01:19.189206804 9868 handshake.c:128] Security handshake failed: {"created":"#1506047479.189164282","description":"Handshake read failed","file":"../../third_party/grpc/src/core/lib/security/transport/handshake.c","file_line":237,"referenced_errors":[{"created":"#1506047479.189160249","description":"FD shutdown","file":"../../third_party/grpc/src/core/lib/iomgr/ev_epoll_linux.c","file_line":1045}]}
E0922 08:01:20.189959242 9868 handshake.c:128] Security handshake failed: {"created":"#1506047480.189916251","description":"Handshake read failed","file":"../../third_party/grpc/src/core/lib/security/transport/handshake.c","file_line":237,"referenced_errors":[{"created":"#1506047480.189911706","description":"FD shutdown","file":"../../third_party/grpc/src/core/lib/iomgr/ev_epoll_linux.c","file_line":1045}]}
E0922 08:01:21.190931499 9868 handshake.c:128] Security handshake failed: {"created":"#1506047481.190904069","description":"Handshake read failed","file":"../../third_party/grpc/src/core/lib/security/transport/handshake.c","file_line":237,"referenced_errors":[{"created":"#1506047481.190900454","description":"FD shutdown","file":"../../third_party/grpc/src/core/lib/iomgr/ev_epoll_linux.c","file_line":1045}]}
[9782:9800:ERROR:speech_recognition_activity.cc(550)] S3 connection has timed out: No data from S3

RabbitMQ (OSX) : ERROR: epmd error for host x1-6-20-0c-c8-19-6b-bd: timeout (timed out)

I'm working on OSX 10.10.5 and installed RabbitMQ using the tarball.
Running it via the script :
bash sbin/rabbitmq-server
The first time it ran, but after a restart, it is giving out this error :
ERROR: epmd error for host x1-6-20-0c-c8-19-6b-bd: timeout (timed out)
sbin/rabbitmqctl status returns this :
Status of node 'rabbit#x1-6-20-0c-c8-19-6b-bd' ...
Error: unable to connect to node 'rabbit#x1-6-20-0c-c8-19-6b-bd': nodedown
DIAGNOSTICS
===========
attempted to contact: ['rabbit#x1-6-20-0c-c8-19-6b-bd']
rabbit#x1-6-20-0c-c8-19-6b-bd:
* unable to connect to epmd (port 4369) on x1-6-20-0c-c8-19-6b-bd: timeout (timed out)
current node details:
- node name: 'rabbitmq-cli-25#x1-6-20-0c-c8-19-6b-bd'
- home dir: /Users/mohit
- cookie hash: FOxL2w3eJGpNkenIS5ebSw==
Please help me resolve this, thanks!
Update : Interestingly it works when i switch back to my personal network from the office network. Possibly something to do with port / network firewall?
Add a configuration file:
/etc/rabbitmq/rabbitmq-env.conf
Add a line as below:
NODENAME=rabbit#localhost

VirtualBox And Genymotion launch from command line issue

I have installed latests Genymotion version 2.4.0 and Virtual Box 4.3.26 r98988.
When i run genymotion from Jenkins or command line on MacOSX Yosemite:
/Applications/Genymotion.app/Contents/MacOS/player --vm-name "Google Nexus 5 - 4.4.4 - API 19 - 1080x1920"
i have this issues:
Logging activities to file: .Genymobile/genymotion.log
Logging activities to file: .Genymobile/Genymotion/deployed/Google Nexus 5 - 4.4.4 - API 19 - 1080x1920/genymotion-player.log
OpenGL connected to 192.168.56.101:25000
Port 22468 will be used for OpenGL data connections
Unknown TCPCLI command 1003
Jenkins waits indefinitely and the calabash tests are not running.
Logs of genymotion have no particular errors, but virtualbox's log (VBoxSVC.log) have this error:
00:00:00.130196 nspr-2 HostDnsMonitorProxy::notify
00:00:00.130211 nspr-2 HostDnsMonitorProxy: Host's DNS information updated:
00:00:00.130214 nspr-2 server 1: 10.10.0.30
00:00:00.130217 nspr-2 server 2: 10.10.0.31
00:00:00.130221 nspr-2 no search string entries
00:00:00.130223 nspr-2 no domain set
00:00:00.134010 nspr-2 failed to create vboxnet0, error (0x80004005)
00:00:00.134189 nspr-2 VDInit finished
You may want to try "--quiet" while running the player.
I have the same error "Unknown TCPCLI command 1003" but it still seems to work fine.
This is how I run mine.
File: run.sh
vboxmanage snapshot "Google Nexus S - 2.3.7 - API 10 - 480x800" restore "factory"
/Applications/Genymotion.app/Contents/MacOS/player --quiet --vm-name "Google Nexus S - 2.3.7 - API 10 - 480x800" &
echo "going to sleep"
sleep 30
echo "wake up"

mobilefirst native ios keychain wrapper issue

I am working on a project for a native iOS app using xcode to develop the project, but including both MobileFirst Platform Foundation capabilities and mobile data capabilities from Bluemix. We are using a shared git repository on IBM DevOps services (jazzhub) to share project source code and work collaboratively on it.
Most of the native apps I have built in the past have been on my own, so this is my first attempt to collaborate using git/xcode working together.
All that is just context for the issue, which is a project using the above environment on my collegues mac build/runs fine. Once I git clone the project and try to run it on my mac I am getting the following error:
*** Assertion failure in -[KeychainItemWrapper writeToKeychain], /tmp/builds/bld-00-20141218-1823-2824648/worklight-ios/framework-xcode-project/NativeSDK-Sources/WorkLight/KeychainItemWrapper.m:311
2015-01-31 13:16:27.657 IBMBankNativeApp[88827:11348297] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't add the Keychain Item.'
Above this message in the xcode log I see a secussful initialization of the Bluemix and the call to initialize the MFP connection:
2015-01-31 13:16:27.439 NativeApp[88827:11348297] INFO: IBMBluemix initialization successful.
IBMBluemix SDK Version: 1.0.1.20141124-1240
BlueMix Target: https://mybank.mybluemix.net
applicationId: ea36d23f-....
2015-01-31 13:16:27.530 NativeApp[88827:11348297] IBMData SDK initialization successful.
2015-01-31 13:16:27.580 NativeApp[88827:11348297] ViewController - connectToServer - Initializing ...
2015-01-31 13:16:27.591 NativeApp[88827:11348297] [DEBUG] [WL_CONFIG] -[WLConfig init] in WLConfig.m:68 :: {
"application id" = NativeiOSApi;
"application version" = "1.0";
environment = iOSnative;
host = "192.168.0.17";
platformVersion = "6.3.0.00.20141218-1823";
port = 10080;
protocol = http;
wlServerContext = "/MFProject/";
wlUid = "wY/mbnwKTDDYQUvuQCdSgg==";
}
Before the MFP callback for initialization of the connection the application terminates with the keychain error.
I did not add the keychain access to the project, I'm using cocoapods to set-up bluemix support and wonder if that somehow is adding the keychain support?
I tried removing and running, removing then re-adding they keychain support in the project capabilities, all with the same error.
Is there something checked in and replicated by git that shouldn't be?
Thanks in advance!
Verify that the following Key exists under the Root key in both entitlements-debug.plist and entitlements-release.plist:
Key: keychain-access-groups
Type: Array
Inside the above Key:
Key: Item 0
Type: String
Value: $(AppIdentifierPrefix)worklight.group

Socket.IO flashsocket security sandbox error

I have been playing around with node.js and socket.io for the past few days. Everything works fine on my local machine (windows using iss for a webserver), but when uploading it to my remote server (ubuntu box), I get security errors.
[trace] Warning: Failed to load policy file from http://localhost:8000/crossdomain.xml
[trace] *** Security Sandbox Violation ***
[trace] Connection to http://localhost:8000/socket.io/1/ halted - not permitted from http://****/virtualcinema/VirtualCinema.swf
[trace] Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://****/virtualcinema/VirtualCinema.swf cannot load data from http://localhost:8000/socket.io/1/.
The AS3 code it's erroring on is:
Security.loadPolicyFile("xmlsocket://localhost:10843");
socket = new FlashSocket("localhost:8000");
The policy file is being served correctly on port 10843 and I can receive the policy file fine at http://**:10843/ in my browser. Why is it trying to load the policy file on port 8000. That warning does not appear on my local build.
The socket.io code:
socket = io.listen(8000);
socket.configure(function()
{
socket.set("transports", ["flashsocket"]);
socket.set("log level", 2);
});
I'm confused as to why it gets resolved fine when I test it on a localmachine but not on a remote one. Any help would be much appreciated :)
The crossdomain.xml I am using:
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*"/>
</cross-domain-policy>
Fixed. I changed it from pointing to localhost to my servers externalIP.
I had tried this before, but unfortunately the server had cached my swf file and I did not realise it was fixed.
Security.loadPolicyFile("xmlsocket://****.com:10843");
socket = new FlashSocket("****.com:8000");

Resources