02-23-2024 08:14 PM - edited 02-23-2024 08:17 PM
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
03-08-2024 10:31 PM
Hi @rawrcrush
I have the same issue, did you find a solution?
Thank you
03-09-2024 02:14 AM
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...
03-11-2024 06:31 AM
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.
03-11-2024 06:33 AM
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.
3 weeks ago
Heyo, did you ever find a solution? Having the same issue myself
3 weeks ago
I never did, haven't been able to get this one working. Might give it a shot again in January.
a week ago
I'm going to do the same, hopefully one of us will figure it out