cancel
Showing results for 
Search instead for 
Did you mean: 

Build Deployment Automation Failing on Server Side using ovr-platform-tool.exe

rawrcrush
Explorer

Hi,

I've been working on a bash script that deploys to the app lab using the ovr-platform-tool.exe, the idea is to hook it up in my build automation machine and for specific targets (like a release) deploy it automatically from Unity Cloud Build to the App Lab.

I referenced a lot of the code provided in the Unity SDK, particularly the content of OVRPlatformTool.cs

I'm getting a server side error:

 

[error]  ERROR: An unexpected error occurred
[error] 2024-02-24T03:02:04.219Z [ERROR] Server log: {"app_id":6906526809465140,"client":"COMMAND_LINE","log_level":"ERROR","event_name":"UNEXPECTED_ERROR","stack_trace":"TypeError: Cannot read properties of undefined (reading 'eventStart')\n    at y (C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js)\n    at Function.from (<anonymous>)\n    at Object.genUploadChunksConcurrently (C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js)\n    at C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js","extra":"{\"caught\":true,\"os\":\"{\\\"platform\\\":\\\"win32\\\",\\\"arch\\\":\\\"x64\\\",\\\"type\\\":\\\"Windows_NT\\\"}\",\"cli_version\":\"1.96.0.000001\",\"compatibility_version\":2,\"session_id\":\"6906526809465140_2024-02-24T03:01:58.650Z\",\"command\":\"upload-quest-build\",\"app_id\":6906526809465140,\"platform\":\"ANDROID_6DOF\"}","platform":"ANDROID_6DOF","cli_version":"1.96.0.000001","session_id":"6906526809465140_2024-02-24T03:01:58.650Z","binary_id":"","duration":null,"is_patch_upload":0,"duration_since_session_start":5569}
[error] 2024-02-24T03:02:04.242Z [ERROR] Server log: {"app_id":6906526809465140,"client":"COMMAND_LINE","log_level":"ERROR","event_name":"COMMAND_FAILED","stack_trace":"TypeError: Cannot read properties of undefined (reading 'eventStart')\n    at y (C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js)\n    at Function.from (<anonymous>)\n    at Object.genUploadChunksConcurrently (C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js)\n    at C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async C:\\snapshot\\D_Zfull-fbsource\\edenfs\\redirections\\arvr\\js\\temp\\build-ovr-platform-util\\lib\\ovr_platform_util.js","extra":"{\"caught\":true,\"os\":\"{\\\"platform\\\":\\\"win32\\\",\\\"arch\\\":\\\"x64\\\",\\\"type\\\":\\\"Windows_NT\\\"}\",\"cli_version\":\"1.96.0.000001\",\"compatibility_version\":2,\"session_id\":\"6906526809465140_2024-02-24T03:01:58.650Z\",\"command\":\"upload-quest-build\",\"app_id\":6906526809465140,\"platform\":\"ANDROID_6DOF\"}","platform":"ANDROID_6DOF","cli_version":"1.96.0.000001","session_id":"6906526809465140_2024-02-24T03:01:58.650Z","binary_id":"","duration":null,"is_patch_upload":0,"duration_since_session_start":5592}
[error] [2024-02-24T03:02:05.869Z] - 7.3.35.2.7.4 - ERROR: User script exited with status 1. Aborting. 
[error] [2024-02-24T03:02:05.995Z] - 7.3.35.2.7.4 - ERROR: Build of 'release' failed. 783: unexpected token at '' 

 

Any idea about whether it's a bug or something I'm missing on my end?

This is my current deployment script:

https://gist.github.com/hector-yumebau/2611b0c094de90231ab1be461bf5e5e6 

4 REPLIES 4

Vizzent
Honored Guest

Hi @rawrcrush 
I have the same issue, did you find a solution?

Thank you

Asyns
Honored Guest

I'm randomly getting the same error when dropping an apk manually on the Meta Quest Developer Hub.

Retrying to upload the exact same build usually works by the third or fourth attempt...

Hey @Vizzent, not yet. I'm pinging a few other people that might be able to help but hoping to get someone on Meta's side to take a look at it.

I might have a few cycles to try a few other things later this month so will update here if I crack it.

Yeah, that's not really feasible for me since it's a build machine that is running the code and at the end of the automated build step it would fail, so I'd have to re-run the build.

I guess I could not fail it the first time and just try to execute the command a few times and see if that makes it?, I'll give that a shot but does not sound ideal.