OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[vika][Windows] Source deployment: bundled lark-cli failure and unsafe PM2 restart workflow

Open openviking-superagent opened this issue 3 weeks ago • 0 comments

Windows source deployment blockers

Reported in native Windows 11 x64 acceptance (Node 24.19.0, PM2 6.0.14, ordinary non-elevated terminal). Downstream report: https://github.com/openviking-superagent/OpenViking/issues/16 . These deployment dependencies/instructions are also present in upstream feat/vika@36d7c8d9ad5b9891738edb9a064d102cf267a5d1; the new durable PowerShell tool is not the source of these failures.

Pinned lark-cli

Upstream daemon package and lockfile pin @larksuite/cli 1.0.94. On the reporter's host its event consumer fails to create events/bus lock paths with Access is denied; the Lark connector does not start. Manual directory creation and an alternate home did not solve it. The same account/profile with 1.0.99 works via LARK_CLI_BIN. The reporter also observed a profile/keychain creation failure with 1.0.94 but not 1.0.99.

Please update and validate the bundled dependency so a default source install does not depend on a global override. Version comparison is real-host evidence, not proof of the upstream CLI's exact root cause. The 1.0.99 Windows x64 archive and npm checksum were verified separately on Linux; that does not replace Windows execution.

PM2 restart

pm2 restart can enter a restart storm, then show online with PID 0 while an actual daemon still holds its instance lock. In this report pm2 stop <the named apps> followed by pm2 start ecosystem.config.cjs --only <the named apps> --update-env was reliable. The source deployment guide should explicitly use this supported procedure instead of leaving restart semantics implicit, until PM2's Windows behavior is fixed/verified.

Do not use broad pm2 kill, modify another running instance's lock, or patch installed PM2 as an acceptance workaround. Test the named instance's readiness and real PID as well as PM2 status.

The full Windows test-suite problem is tracked separately in #7207. No claim that all supported platforms have been re-tested.

openviking-superagent avatar Nov 08 '26 11:11 openviking-superagent