Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Getting a "version unknown" error #13

Open
ChrisMpitzios opened this issue Mar 22, 2021 · 5 comments
Open

Getting a "version unknown" error #13

ChrisMpitzios opened this issue Mar 22, 2021 · 5 comments

Comments

@ChrisMpitzios
Copy link

Hi, we are getting a "version unknown" error when trying to perform
bundle exec stf-client -t $1 -u http://$2 connect -fnotes:marathon --all -v verbose
any ideas?

@Malinskiy
Copy link
Owner

Can you please post the stacktrace?
Thanks

@ChrisMpitzios
Copy link
Author

Of course, i am getting the following

No stf-client processes are running
I, [2021-03-23T16:08:02.322195 #25788] INFO -- : Device added 988627304339544648
I, [2021-03-23T16:08:02.457471 #25788] INFO -- : Debug started 988627304339544648
E, [2021-03-23T16:08:32.870810 #25788] ERROR -- : Failed to connect to 988627304339544648: Could not execute shell test
I, [2021-03-23T16:08:33.378322 #25788] INFO -- : Device added 2b5ac6da09057ece
I, [2021-03-23T16:08:33.541941 #25788] INFO -- : Debug started 2b5ac6da09057ece
E, [2021-03-23T16:09:03.963095 #25788] ERROR -- : Failed to connect to 2b5ac6da09057ece: Could not execute shell test
I, [2021-03-23T16:09:04.530247 #25788] INFO -- : Device added 988627304339544648
I, [2021-03-23T16:09:04.654541 #25788] INFO -- : Debug started 988627304339544648
E, [2021-03-23T16:09:35.114174 #25788] ERROR -- : Failed to connect to 988627304339544648: Could not execute shell test
I, [2021-03-23T16:09:35.914534 #25788] INFO -- : Device added 988627304339544648
I, [2021-03-23T16:09:36.058293 #25788] INFO -- : Debug started 988627304339544648
E, [2021-03-23T16:10:06.504755 #25788] ERROR -- : Failed to connect to 988627304339544648: Could not execute shell test
I, [2021-03-23T16:10:06.791145 #25788] INFO -- : Exception "Connect loop timeout reached" during initial connect loop
No stf-client processes are running
error: Connect failed

@Malinskiy
Copy link
Owner

The error log here describes that the devices you're trying to connect are unable to pass basic adb shell command execution test.
Can you double check that adb shell actually is responsive? Your devices might not work or the transport layer can be broken. I'd start by verifying if device is actually responding to adb commands

@ChrisMpitzios
Copy link
Author

Finally, the main reason for this issue was network issues from our side (and bundler incompatibilities since you declare 1.16.a).
More specifically the machine running the stf server lost its ipv4 and this caused stf-client to be unable to connect to it. The point is that i tried to resolve it as ipv6 and retried to connect to it but this did not seem to work (for some reason i think stf-client does not like ipv6). After restoring ipv4 i retried and received the same error 'version unknown' which did not make sense and then i tried to remove
-v verbose
and it worked so apart from the ipv4 issue my command syntax may be wrong or the v argument may be not working

@ChrisMpitzios
Copy link
Author

ChrisMpitzios commented Mar 26, 2021

(also ignore my previously posted logs since they were generated from a local installation and they may be disorientating)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants