vs xamarin.ios broker connection issue - xamarin

It connects sometimes, sometime it fails, partially successful or fully successful. See log file bellow.
I have tried these hints: https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/
Starting Broker 4.1.1.3 in port 52919...
Couldn't connect to 192.168.67.128. Please try again.
Disconnected from Mac 192.168.67.128 (192.168.67.128)
The operation has timed out.
Downloading /Users/ibolaji/Library/Logs/Xamarin-4.1/2016-06-29__18-42-39.6984.Broker.stderr.log...
Starting Broker 4.1.1.3 in port 51080...
Disconnected from Mac 192.168.67.128 (192.168.67.128)
Couldn't connect to 192.168.67.128. Please try again.
There was an error while trying to connect the client vs6984bolaj to the server.
Installing Broker 4.1.1.3...
Uploading Broker 4.1.1.3 (512/4998 KB) 10%...
Uploading Broker 4.1.1.3 (1008/4998 KB) 20%...
Uploading Broker 4.1.1.3 (1504/4998 KB) 30%...
Uploading Broker 4.1.1.3 (2000/4998 KB) 40%...
Uploading Broker 4.1.1.3 (2512/4998 KB) 50%...
Uploading Broker 4.1.1.3 (3008/4998 KB) 60%...
Uploading Broker 4.1.1.3 (3504/4998 KB) 70%...
Uploading Broker 4.1.1.3 (4000/4998 KB) 80%...
Uploading Broker 4.1.1.3 (4512/4998 KB) 90%...
Uploaded Broker 4.1.1.3 100%
Starting Broker 4.1.1.3 in port 50337...
Couldn't connect to 192.168.67.128. Please try again.
Disconnected from Mac 192.168.67.128 (192.168.67.128)
The operation has timed out.
Downloading /Users/ibolaji/Library/Logs/Xamarin-4.1/2016-06-29__18-42-39.6984.Broker.log...
Downloading /Users/ibolaji/Library/Logs/Xamarin-4.1/2016-06-29__18-42-39.6984.Broker.stderr.log...
Installing Broker 4.1.1.3...
Uploading Broker 4.1.1.3 (512/4998 KB) 10%...
Uploading Broker 4.1.1.3 (1008/4998 KB) 20%...
Uploading Broker 4.1.1.3 (1504/4998 KB) 30%...
Uploading Broker 4.1.1.3 (2000/4998 KB) 40%...
Uploading Broker 4.1.1.3 (2512/4998 KB) 50%...
Uploading Broker 4.1.1.3 (3008/4998 KB) 60%...
Uploading Broker 4.1.1.3 (3504/4998 KB) 70%...
Uploading Broker 4.1.1.3 (4000/4998 KB) 80%...
Uploading Broker 4.1.1.3 (4512/4998 KB) 90%...
Uploaded Broker 4.1.1.3 100%
Starting Broker 4.1.1.3 in port 56200...
Couldn't connect to 192.168.67.128. Please try again.
Disconnected from Mac 192.168.67.128 (192.168.67.128)
The operation has timed out.
Downloading /Users/ibolaji/Library/Logs/Xamarin-4.1/2016-06-29__18-42-39.6984.Broker.log...
Downloading /Users/ibolaji/Library/Logs/Xamarin-4.1/2016-06-29__18-42-39.6984.Broker.stderr.log...
Starting Broker 4.1.1.3 in port 53605...
Disconnected from Mac 192.168.67.128 (192.168.67.128)
Couldn't connect to 192.168.67.128. Please try again.
There was an error while trying to connect the client vs6984bolaj to the server.
Starting Broker 4.1.1.3 in port 56304...
Couldn't connect to 192.168.67.128. Please try again.
Disconnected from Mac 192.168.67.128 (192.168.67.128)
There was an error while trying to connect the client vs6984bolaj to the server.

Do you use another VPN client application? Disconnect in VPN application and try to connect in Xamarin Mac Agent. And mayby this help to you.
Connection Troubleshooting
I hope its help for you.

Related

Xamarin Xcode couldn't be found

I just updated my MacOS to 12.4 and installed Xcode 13.1 but when I try to connect from my PC using VS2022 I get nothing. In the Xamarin output window I get this message Xcode couldn't be found so I am not sure what I need to do to get this running?
Broker 17.2.0.175 started successfully
Successfully connected to Local Broker
Starting IDB Local Agent...
Checking IDB.Local 17.2.0.175 installation...
Starting IDB.Local 17.2.0.175 in port 51028...
IDB.Local 17.2.0.175 started successfully
Successfully started IDB Local Agent
iTunes has not been found. Please ensure to have a valid iTunes installation in order to communicate with Apple devices in Windows
Checking host configuration for connecting to 'User Support - MacBook Pro'...
Checking SSH configuration...
Current SSH Key File: C:\Users\mcdevitt\AppData\Local\Xamarin\MonoTouch\id_rsa.pub
Initializing environment...
Checking available disk space...
Checking Mono installation...
Checking Xamarin iOS installation...
Checking host configuration for connecting to 'User Support - MacBook Pro'...
Host 'User Support - MacBook Pro' is configured correctly
Starting connection to 'User Support - MacBook Pro'...
Checking Broker 17.2.0.175 installation...
Installing Broker 17.2.0.175...
Uploading Broker.zip (160/1533 KB) 10%...
Uploading Broker.zip (320/1533 KB) 20%...
Uploading Broker.zip (464/1533 KB) 30%...
Uploading Broker.zip (624/1533 KB) 40%...
Uploading Broker.zip (768/1533 KB) 50%...
Uploading Broker.zip (928/1533 KB) 60%...
Uploading Broker.zip (1088/1533 KB) 70%...
Uploading Broker.zip (1232/1533 KB) 80%...
Uploading Broker.zip (1392/1533 KB) 90%...
Uploaded Broker.zip 100%
Starting Broker 17.2.0.175 in port 59780...
Broker 17.2.0.175 started successfully
Starting connection to 'User Support - MacBook Pro'...
SSH connection to 'User Support - MacBook Pro' has been established...
Starting registered Agents: IDB 17.2.0.175...
Starting IDB 17.2.0.175...
Checking IDB 17.2.0.175 installation...
Installing IDB 17.2.0.175...
Uploading IDB.zip (1552/15404 KB) 10%...
Uploading IDB.zip (3088/15404 KB) 20%...
Uploading IDB.zip (4624/15404 KB) 30%...
Uploading IDB.zip (6176/15404 KB) 40%...
Uploading IDB.zip (7712/15404 KB) 50%...
Uploading IDB.zip (9248/15404 KB) 60%...
Uploading IDB.zip (10784/15404 KB) 70%...
Uploading IDB.zip (12336/15404 KB) 80%...
Uploading IDB.zip (13872/15404 KB) 90%...
Uploaded IDB.zip 100%
Starting IDB 17.2.0.175 in port 59780...
A remote error occurred in the connected Mac
Xcode couldn't be found at /Applications/Xcode.app. Please specify the right location in Visual Studio under 'Tools > Options > Xamarin > iOS Settings' or ensure that it is installed properly at the default location ('/Applications/Xcode.app')
I just ran into the same error - for me the solution was to open Xcode->Preferences and on the Locations tab the "Command Line Tools" field was empty. Just needed to click on the Command Line Tools drop down and select an Xcode version.
Restarted Visual Studio and reconnected and was able to connect successfully.

"UnresolvedAddressException" - Confluent kafka server start

I have downloaded confluent kafka in windows machine. Zookeeper is running successfully while running kafka server i am getting below exception.
INFO Opening socket connection to server localhost/<unresolved>:2181. Will not attempt to
authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)
WARN Session 0x0 for server localhost/<unresolved>:2181, unexpected error, closing socket
connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
java.nio.channels.UnresolvedAddressException
at java.base/sun.nio.ch.Net.checkAddress(Net.java:149)
at java.base/sun.nio.ch.Net.checkAddress(Net.java:157)
at java.base/sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:815)
at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:837)
at org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:277)
at org.apache.zookeeper.ClientCnxnSocketNIO.connect(ClientCnxnSocketNIO.java:287)
at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1021)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1064)
Below options i tried to solve the issue but it didn't work.
1.Added listeners=PLAINTEXT://127.0.0.1:9092,advertised.listeners=PLAINTEXT://127.0.0.1:9092
in server.properties file
2.Added localhost ip address in hosts file
Below are properties in server.properties file
num.network.threads=3
num.io.threads=8
socket.send.buffer.bytes=102400
socket.receive.buffer.bytes=102400
socket.request.max.bytes=104857600
log.dirs=C:\KafkaLog
num.partitions=1
num.recovery.threads.per.data.dir=1
offsets.topic.replication.factor=1
transaction.state.log.replication.factor=1
transaction.state.log.min.isr=1
log.retention.hours=168
log.segment.bytes=1073741824
log.retention.check.interval.ms=300000
zookeeper.connect=localhost:2181
zookeeper.connection.timeout.ms=6000
confluent.support.metrics.enable=true
confluent.support.customer.id=anonymous
group.initial.rebalance.delay.ms=0
Zookeeper properties are
dataDir=C:\ZookeeperLog
clientPort=2181
maxClientCnxns=0

Can testcontainers be used without internet access?

Good day!
Can testcontainers be used without internet access? I downloaded the required containers. They start and run. In this case, when running tests, an error occurs. I have no internet access
Code
container = new BrowserWebDriverContainer<>().withCapabilities(Capabilities.getFirefoxOptions()).withRecordingMode(
webDriverForm.get().isVideoError() ? VncRecordingMode.RECORD_FAILING : VncRecordingMode.RECORD_ALL,
new File(webDriverForm.get().getVideoPath()), VncRecordingFormat.MP4);
ontainer.start();
WebDriver driver = container.getWebDriver();
Error
2021-09-27 17:54:47 INFO Connected to docker:
Server Version: 20.10.8
API Version: 1.41
Operating System: Docker Desktop
Total Memory: 12700 MB
2021-09-27 17:54:47 INFO Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
2021-09-27 17:54:48 INFO Credential helper/store (docker-credential-desktop) does not have credentials for index.docker.io
2021-09-27 17:54:49 ERROR Error during callback
com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"Get \"https://registry-1.docker.io/v2/\": dial tcp: lookup registry-1.docker.io on 192.168.65.5:53: no such host"}
at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:247)
at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:269)
at java.lang.Thread.run(Thread.java:748)
Когда пользователь открывает страницу по параметру "https://confluence.ca.sbrf.ru/pages/viewpage.action?pageId=240980441" # CommonStepDefinitionsGUI.loginInFs(String)
com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"Get \"https://registry-1.docker.io/v2/\": dial tcp: lookup registry-1.docker.io on 192.168.65.5:53: no such host"}
at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:247)
at org.testcontainers.shaded.com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:269)
at java.lang.Thread.run(Thread.java:748)
at ✽.пользователь открывает страницу по параметру "https://confluence.ca.sbrf.ru/pages/viewpage.action?pageId=240980441"(file:src/test/resources/features/CSA-T1405_Проверка_отображения_Соответствует.feature:6)
Only saved containers can be run in docker.
Containers in Docker
alpine 3.14 14119a10abf4 about 1 month ago 5.6 MB
docker/getting-started latest 083d7564d904 4 months ago 27.99 MB
hello-world latest feb5d9fea6a5 4 days ago 13.26 KB
hello-world <none> d1165f221234 7 months ago 13.34 KB
redis 5.0.3-alpine 3d2a373f46ae over 2 years ago 50.83 MB
selenium/standalone-chrome-debug 2.45.0 d7852787b42a over 6 years ago 750.74 MB
selenium/standalone-firefox-debug 2.45.0 a86fa79ad0c8 over 6 years ago 594.67 MB
testcontainers/ryuk 0.3.2 b24c56207c68 about 2 months ago 11.95 MB
testcontainers/vnc-recorder 1.1.0 e51c318c86f4 over 1 year ago 306.86 MB
If there is no internet access from your network you have to setup your own docker hub. And you have to upload docker containers there via:
docker tag
docker push
commands

Zookeeper or Kafka connection Error, Showing Kazoo::VersionNotSupported Error

I am using Kafka and zookeeper, and creating connection between them but the connection is getting dropped again and again when I try to create new Kafka::Consumer
ZOOKEEPER = '127.0.0.1:2181'
CLIENT_ID = '************'
TOPICS = ['*****']
#consumer = Kafka::Consumer.new(CLIENT_ID, TOPICS, zookeeper: ZOOKEEPER, logger: nil)
I also checked the zookeeper and kafka log file and got that my kafka to zookeeper connection is dropped when I try to create new Kafka::Consumer
Kafka Log:
...
[2016-03-04 16:14:47,553] INFO [Group Metadata Manager on Broker 0]: Removed 0 expired offsets in 0 milliseconds. (kafka.coordinator.GroupMetadataManager)
[2016-03-04 16:16:11,419] INFO Unable to read additional data from server sessionid 0x1533ff65f850003, likely server has closed socket, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
[2016-03-04 16:16:11,520] INFO zookeeper state changed (Disconnected) (org.I0Itec.zkclient.ZkClient)
[2016-03-04 16:16:13,128] INFO Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)
[2016-03-04 16:16:13,129] WARN Session 0x1533ff65f850003 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
...
Zookeeper Log:
...
2016-04-04 10:30:30,577 - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer#839] - Client attempting to establish new session at /127.0.0.1:51152
2016-04-04 10:30:30,579 - INFO [SyncThread:0:FileTxnLog#199] - Creating new log file: log.725
2016-04-04 10:30:30,668 - INFO [SyncThread:0:ZooKeeperServer#595] - Established session 0x153df9fc2a70000 with negotiated timeout 6000 for client /127.0.0.1:51152
2016-04-04 10:30:31,714 - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor#627] - Got user-level KeeperException when processing sessionid:0x153df9fc2a70000 type:delete cxid:0x26 zxid:0x728 txntype:-1 reqpath:n/a Error Path:/admin/preferred_replica_election Error:KeeperErrorCode = NoNode for /admin/preferred_replica_election
2016-04-04 10:30:31,883 - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor#627] - Got user-level KeeperException when processing sessionid:0x153df9fc2a70000 type:create cxid:0x2d zxid:0x729 txntype:-1 reqpath:n/a Error Path:/brokers Error:KeeperErrorCode = NodeExists for /brokers
...
Installed Gems
Using ione 1.2.3
Using json 1.8.3
Using thor 0.19.1
Using zookeeper 1.4.11
Using poseidon 0.0.5
Using bundler 1.11.2
Using cassandra-driver 2.1.5
Using kazoo-ruby 0.4.0
Using kafka-consumer 0.1.2
I am exactly not able to get where is the version problem
Getting error:
~/../kazoo-ruby-0.4.0/lib/kazoo/broker.rb:83:in `from_json': Kazoo::VersionNotSupported
~/../kazoo-ruby-0.4.0/lib/kazoo/cluster.rb:38:in `block (3 levels) in brokers'
Got the solution, I was using Kafka version 0.9.0.1 or 0.8.0 Beta which is creating some version issue. Now, I downloaded and installed Kafka 0.8.2.2 with scala version 2.11 Release which is working for me.

Spark Script for Hadoop EC2 Installation: IPC client connection refused

I was trying to use distcp to copy between Hadoop and Amazon S3 on a EC2 cluster setup by the spark scripts for EC2
[root]# bin/hadoop distcp s3n://bucket/f1 hdfs:///user/root/
The error I got was
INFO ipc.Client: Retrying connect to server: .. Already tried n time(s).
Copy failed: java.net.ConnectException: Call to ..my_server failed on connection excep\
tion: java.net.ConnectException: Connection refused
Spark EC2 scripts, perhaps intentionally, do not start JobTracker and TaskTracker services.
So after running the Spark EC2 installation scripts, to start the services, I ran
{HADOOP_HOME}/bin/start-all.sh
Reference: Thanks Brock Noland at https://groups.google.com/a/cloudera.org/forum/#!topic/cdh-user/H6wAfdeLIJo

Resources