drata / drata-agent

Apache License 2.0
11 stars 4 forks source link

JavaScript Error occurred in the main process ... agent not running #26

Open sclose-netexpat opened 3 weeks ago

sclose-netexpat commented 3 weeks ago

Hi there,

Several users are experiencing the same issue on Windows 10 and 11. The agent is not running, and when started manually, it displays the following error:

Uninstalling and reinstalling the agent does not resolve the issue. Any idea how to fix ?

image

Thank you for your support

mnrdrata commented 3 weeks ago

@sclose-netexpat Apologies for the issue. This is due to a permissions issue on a couple file locations. Our next maintenance release is planning to address this error message so that it's friendly and more informative.

In the meantime, please make sure the user running the Drata Agent (not administrator) can read and write to at least the following files on the Windows machines:

  1. Local storage location: %UserProfile%\AppData\Roaming\drata-agent\app-data.json
  2. Local log location: %UserProfile%\AppData\Roaming\drata-agent\logs\main.log

Also, to ensure automatic updates are successful upon the next release, you may also want to confirm that the user (not administrator) can install the upgrade at the Drata Agent installation location with read/write access to the install folder:

  1. Install location: %AppData%\Local\Programs\drata-agent\

Let me know if that helps.

Thanks!

sclose-netexpat commented 3 weeks ago

Thank you !