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

stf 3.6.4 not detecting devices #1340

Open
PhaniKashyap opened this issue Dec 28, 2022 · 0 comments
Open

stf 3.6.4 not detecting devices #1340

PhaniKashyap opened this issue Dec 28, 2022 · 0 comments

Comments

@PhaniKashyap
Copy link

Yes

What is the issue or idea you have? Unable to see the devices listing in server url. I see them being read in the log stream as attached in the below stf local logs.

Does it only happen on a specific device? No - All the devices
Please run adb devices -l and paste the corresponding row.

List of devices attached
f4bc1ddf device usb:338898944X product:haydn_in model:M2012K11I device:haydnin transport_id:91

Please provide the steps to reproduce the issue.

image

Tried looking at the console errors and I see the below error
ReqlDriverCompileError: Cannot wrap undefined with r.expr().
at ReqlDriverCompileError.ReqlError [as constructor] (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/errors.js:23:13)
at ReqlDriverCompileError.ReqlCompileError [as constructor] (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/errors.js:35:51)
at new ReqlDriverCompileError (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/errors.js:46:57)
at Function. (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/ast.js:4225:11)
at Function.expr (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/util.js:43:16)
at /usr/local/lib/node_modules/@devicefarmer/stf/lib/db/api.js:1300:14
at new Func (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/ast.js:3644:17)
at Function. (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/ast.js:4235:12)
at Function.expr (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/util.js:43:16)
at funcWrap (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/ast.js:34:19)
at Function. (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/ast.js:657:35)
at Function.filter (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/rethinkdb/util.js:64:16)
at dbapi.loadDevices (/usr/local/lib/node_modules/@devicefarmer/stf/lib/db/api.js:1299:36)
at getGenericDevices (/usr/local/lib/node_modules/@devicefarmer/stf/lib/units/api/controllers/devices.js:31:3)
at getDevices (/usr/local/lib/node_modules/@devicefarmer/stf/lib/units/api/controllers/devices.js:213:7)
at swagger_router (/usr/local/lib/node_modules/@devicefarmer/stf/node_modules/swagger-node-runner/fittings/swagger_router.js:104:13)

What is the expected behavior?

Do you see errors or warnings in the stf local output? If so, please paste them or the full log here.
I see the below error in console but also able to see the device data

"Tracking devices
2022-12-28T15:48:10.648Z INF/provider 33547 [*] Found device "d16ccc5e" (device)
2022-12-28T15:48:10.710Z ERR/processor 33544 [proc001] Unable to save the initial state of Device "d16ccc5e" TypeError: Cannot read properties of undefined (reading 'email')
at /usr/local/lib/node_modules/@devicefarmer/stf/lib/units/processor/index.js:106:40"
"2022-12-28T15:48:13.115Z WRN/device:plugins:data 33557 [d16ccc5e] Unable to find device data {
serial: 'd16ccc5e',
platform: 'Android',
manufacturer: 'XIAOMI',
operator: 'Vodafone IN,Idea',
model: 'Mi A2',
version: '10',
abi: 'arm64-v8a',
sdk: '29',
product: 'jasmine',
cpuPlatform: 'sdm660',
openGLESVersion: '3.2',
marketName: 'Mi A2',
display: {
id: 0,
width: 1080,
height: 2160,
xdpi: 403.4110107421875,
ydpi: 403.4110107421875,
fps: 60.000003814697266,
density: 3,
rotation: 0,
secure: true,
size: 5.98633490755939,
url: 'ws://localhost:7400'
},
phone: [Object: null prototype] { network: 'UNKNOWN' }
}"

Please run stf doctor and paste the output here.
stf doctor
2022-12-28T15:46:38.365Z INF/cli:doctor 33359 [] OS Arch: x64
2022-12-28T15:46:38.367Z INF/cli:doctor 33359 [
] OS Platform: darwin
2022-12-28T15:46:38.367Z INF/cli:doctor 33359 [] OS Platform: 21.6.0
2022-12-28T15:46:38.367Z INF/cli:doctor 33359 [
] Using Node 17.9.0
2022-12-28T15:46:38.382Z INF/cli:doctor 33359 [] Using ZeroMQ 4.2.2
2022-12-28T15:46:38.396Z INF/cli:doctor 33359 [
] Using GraphicsMagick 1.3.39
2022-12-28T15:46:38.400Z INF/cli:doctor 33359 [] Using ProtoBuf 3.21.12
2022-12-28T15:46:38.423Z INF/cli:doctor 33359 [
] Using ADB 1.0.41
2022-12-28T15:46:38.717Z INF/cli:doctor 33359 [*] Using RethinkDB 2.4.2

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

1 participant