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

drata-agent popping up EPIPE errors on Ubuntu 22.04 #31

Open
hanwen-flow opened this issue Sep 23, 2024 · 2 comments
Open

drata-agent popping up EPIPE errors on Ubuntu 22.04 #31

hanwen-flow opened this issue Sep 23, 2024 · 2 comments

Comments

@hanwen-flow
Copy link

I have been asked by my employer to run drata-agent.

I downloaded drata-agent from your website, and was served a .deb file.

$ ls -l ~/Downloads/Drata-Agent-linux.deb 
-rw-rw-r-- 1 hanwen hanwen 96036216 Sep 23 10:35 /home/hanwen/Downloads/Drata-Agent-linux.deb

I installed it, and am regularly greeted by an error-popup about EPIPE. (see image)
drata

The drata-agent can't tell me which version it is,

$ drata-agent --version
menubar:  Error: ERR_FAILED (-2) loading 'file:///opt/Drata%20Agent/resources/app.asar/dist/index.html'
    at rejectAndCleanup (node:electron/js2c/browser_init:2:84559)
    at WebContents.stopLoadingListener (node:electron/js2c/browser_init:2:84946)
    at WebContents.emit (node:events:514:28) {
  errno: -2,
  code: 'ERR_FAILED',
  url: 'file:///opt/Drata%20Agent/resources/app.asar/dist/index.html'
}
@mnrdrata
Copy link
Contributor

This is due to the executing context not having permissions to the folders, files, or endpoints required to run the Drata Agent. The website link is the latest (version 3.6.1), AppImage is also available and may be downloaded directly at https://github.com/drata/agent-releases/releases/latest.

Typically, the user will need access to the following at default installs:
(local storage) RW: ~/.config/drata-agent/app-data.json
(local logging) RW: ~/.config/drata-agent/logs/main.log
(library) RWX: /opt/Drata Agent/resources/lib/linux/bin/osqueryi
(auto updates) RW: /opt/Drata Agent

Endpoints
https://agent.drata.com/ or https://agent.eu.drata.com/
https://*.datadoghq.com/

You may also contact our Support Team to get assistance with installation where we assist more directly with your specific setup and private machine/network details. We do have a ticket for the next release to make this error message more friendly and explicit.

Note: There is not a --version parameter nor CLI for the drata-agent application.

@hanwen-flow
Copy link
Author

(library) RWX: /opt/Drata Agent/resources/lib/linux/bin/osqueryi

hanwen@hanwen-flow:~/vc/engflow$ ls -l  /opt/Drata\ Agent/resources/lib/linux/bin/osqueryi 
-rwxr-xr-x 1 root root 86097376 Mär 26 17:56 '/opt/Drata Agent/resources/lib/linux/bin/osqueryi'

so should I make this file mode 0777 then?

(auto updates) RW: /opt/Drata Agent

this is owned by root as well; please advise how to change the install.

Note: There is not a --version parameter nor CLI for the drata-agent application.

I gathered as much. I was trying to suggest you might want to add it.

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