Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sclose-netexpat opened this issue Aug 21, 2024 · 2 comments

Comments

@sclose-netexpat
Copy link

sclose-netexpat commented Aug 21, 2024

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

@sclose-netexpat sclose-netexpat changed the title JavaScript Error occurred inthe main process ... agent not running JavaScript Error occurred in the main process ... agent not running Aug 21, 2024
@mnrdrata
Copy link
Contributor

mnrdrata commented Aug 21, 2024

@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
Copy link
Author

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants