AppiumTestDistribution / appium-device-farm

This is an Appium 2.0 plugin designed to manage and create driver sessions on available devices.
https://devicefarm.org
Other
345 stars 104 forks source link

Old harness video not showing up #1151

Closed erdncyz closed 5 months ago

erdncyz commented 5 months ago

Old harness video not showing up

I provide the necessary automation run with device farm, I can watch my run in the build area, but I cannot watch my run after it is finished. ı uploaded picture. can you help me please. (Picture 1)

Moreover when I click on the ones listed in the Build field, the page opens blank. (Picture 2)

Picture 1 image

Picture 2

image

sudharsan-selvaraj commented 5 months ago

@erdncyz Thanks for reporting the issue. Could you share which version of device farm are you using along with the full appium server logs as gist that appears when you open the build view(as shown in Picture 2)?

erdncyz commented 5 months ago

@sudharsan-selvaraj Thank you for your answer.

Also can ı added screen recording.

Uploading WhatsApp Video 2024-06-06 at 16.40.32.mp4…

My appium server logs : https://gist.github.com/erdncyz/ad20c5404112029fdea7b0ed274cf8a0

ilendemli commented 5 months ago

@sudharsan-selvaraj this happens with the current release with iOS devices

erdncyz commented 5 months ago

@ilendemli It doesn't just happen on iOS, the problem is the same on Android, do you have any results on how I can solve it?

ilendemli commented 5 months ago

he asked about the second page, that happens with iOS devices on my end that there is no recording available after the session ends happens with android

sudharsan-selvaraj commented 5 months ago

@ilendemli @erdncyz Looks like some regression. I will take a look shortly and come back with my findings.

erdncyz commented 5 months ago

Hi again @sudharsan-selvaraj have you any finding?

saikrishna321 commented 5 months ago

@erdncyz Please try the latest version - [8.4.7-rc.37]

erdncyz commented 5 months ago

Hi @saikrishna321

I updated it but now I'm getting the error in the image.

image

saikrishna321 commented 5 months ago

@erdncyz Can you navigate to the path /Users/techqaautomation2/.appium/node_modules/appium-device-farm and run the command npm run run-db-migration

Please share logs as gist next time.

erdncyz commented 5 months ago

Thanks for your answer @saikrishna321 ,

The error continues, I did what you said.

npm run run-db-migration error

cd /Users/techqaautomation2/.appium/node_modules/appium-device-farm techqaautomation2@techs-mac-mini appium-device-farm % npm run run-db-migration

appium-device-farm@8.4.7-rc.37 run-db-migration path-exists lib/src/scripts/initialize-database.js && node lib/src/scripts/initialize-database.js || ts-node src/scripts/initialize-database.ts

Deploying the database migrations

Downloading Prisma engines for Node-API for darwin [ ] 0%Error: request to https://binaries.prisma.sh/all_commits/12e25d8d06f6ea5a0252864dd9a03b1bb51f3022/darwin/libquery_engine.dylib.node.sha256 failed, reason: unable to get local issuer certificate Error initializing database: Error: Command failed: prisma migrate deploy at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at checkExecSyncError (node:child_process:890:11) at execSync (node:child_process:962:15) at executeCmd (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/src/scripts/initialize-database.js:17:43) at /Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/src/scripts/initialize-database.js:30:9 at Generator.next () at /Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/src/scripts/initialize-database.js:8:71 at new Promise () at __awaiter (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/src/scripts/initialize-database.js:4:12) { status: 1, signal: null, output: [ null, null, null ], pid: 1288, stdout: null, stderr: null } Generating prisma client Downloading Prisma engines for Node-API for darwin [ ] 0%Error: request to https://binaries.prisma.sh/all_commits/12e25d8d06f6ea5a0252864dd9a03b1bb51f3022/darwin/schema-engine.gz.sha256 failed, reason: unable to get local issuer certificate Error initializing database: Error: Command failed: prisma generate at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at checkExecSyncError (node:child_process:890:11) at execSync (node:child_process:962:15) at executeCmd (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/src/scripts/initialize-database.js:17:43) at /Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/src/scripts/initialize-database.js:32:9 at Generator.next () at /Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/src/scripts/initialize-database.js:8:71 at new Promise () at __awaiter (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/src/scripts/initialize-database.js:4:12) { status: 1, signal: null, output: [ null, null, null ], pid: 1289, stdout: null, stderr: null } techqaautomation2@techs-mac-mini appium-device-farm %

open the appium error ---

techqaautomation2@techs-mac-mini ~ % appium server -ka 800 --use-plugins=device-farm -pa /wd/hub --plugin-device-farm-platform=both [Appium] Attempting to load plugin device-farm... [Appium] Requiring plugin at /Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/src/main.js [Appium] Could not load plugin 'device-farm', so it will not be available. Error in loading the plugin was: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again. [Appium] Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again. [Appium] at new PrismaClient (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/node_modules/.prisma/client/default.js:43:11) [Appium] at Object.webpack_modules (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/prisma.js:6:18) [Appium] at w (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/webpack/bootstrap:19:2) [Appium] at Object.webpack_modules (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/CapabilityManager.js:18:18) [Appium] at w (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/webpack/bootstrap:19:2) [Appium] at Object.webpack_modules (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/device-utils.js:25:29) [Appium] at w (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/webpack/bootstrap:19:2) [Appium] at Object.webpack_modules (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/data-service/device-service.js:25:24) [Appium] at w (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/webpack/bootstrap:19:2) [Appium] at Object.webpack_modules (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/commands/handle.js:12:26) [Appium] at w (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/webpack/bootstrap:19:2) [Appium] at Object.webpack_modules (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/commands/index.js:6:34) [Appium] at w (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/webpack/bootstrap:19:2) [Appium] at Object.__webpack_modules__ (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/plugin.js:41:33) [Appium] at w (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/webpack/bootstrap:19:2) [Appium] at plugin_1 (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/index.js:4:18) [Appium] at plugin_1 (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/index.js:12:19) [Appium] at factory (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/lib/src/index.js:12:19) [Appium] at /Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/webpack/universalModuleDefinition:3:20 [Appium] at Object. (/Users/techqaautomation2/.appium/node_modules/appium-device-farm/lib/webpack:/appium-device-farm/webpack/universalModuleDefinition:1:1) [Appium] at Module._compile (node:internal/modules/cjs/loader:1358:14) [Appium] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1416:10) [Appium] Welcome to Appium v2.6.0 [Appium] Non-default server args: [Appium] { [Appium] basePath: '/wd/hub', [Appium] keepAliveTimeout: 800, [Appium] usePlugins: [ [Appium] 'device-farm' [Appium] ] [Appium] } [Appium] The autodetected Appium home path: /Users/techqaautomation2/.appium [Appium] Attempting to load driver xcuitest... [Appium] Attempting to load driver uiautomator2... [Appium] Requiring driver at /Users/techqaautomation2/.appium/node_modules/appium-xcuitest-driver/build/index.js [Appium] XCUITestDriver has been successfully loaded in 0.595s [Appium] Requiring driver at /Users/techqaautomation2/.appium/node_modules/appium-uiautomator2-driver/build/index.js [Appium] AndroidUiautomator2Driver has been successfully loaded in 0.914s [Appium] Appium REST http interface listener started on http://0.0.0.0:4723/wd/hub [Appium] You can provide the following URLs in your client code to connect to this server: [Appium] http://127.0.0.1:4723/wd/hub (only accessible from the same host) [Appium] http://172.28.5.10:4723/wd/hub [Appium] http://169.254.22.157:4723/wd/hub [Appium] Available drivers: [Appium] - xcuitest@7.17.2 (automationName 'XCUITest') [Appium] - uiautomator2@3.5.2 (automationName 'UiAutomator2') [Appium] Available plugins: [Appium] - device-farm@8.4.7-rc.37 [Appium] No plugins activated. Use the --use-plugins flag with names of plugins to activate

saikrishna321 commented 5 months ago

@erdncyz

Downloading Prisma engines for Node-API for darwin [ ] 0%Error: request to https://binaries.prisma.sh/all_commits/12e25d8d06f6ea5a0252864dd9a03b1bb51f3022/darwin/schema-engine.gz.sha256 failed, reason: unable to get local issuer certificat`e

Looks like network not able to reach it..

Can you try npm config set strict-ssl false Uninstall the plugin and reinstall