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

Elastic agent install error #23

Open
awnyshaheen opened this issue Nov 8, 2021 · 1 comment
Open

Elastic agent install error #23

awnyshaheen opened this issue Nov 8, 2021 · 1 comment

Comments

@awnyshaheen
Copy link

elastic-agent | /usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'kibana'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
elastic-agent | warnings.warn(
elastic-agent | Traceback (most recent call last):
elastic-agent | File "/install.py", line 19, in
elastic-agent | agent.install(version=os.environ.get('ELK_VERSION'), preflight_check=preflight)
elastic-agent | File "/usr/local/lib/python3.8/dist-packages/elastic_agent_setup/elastic_agent.py", line 46, in install
elastic-agent | return self.__platform_run('install')
elastic-agent | File "/usr/local/lib/python3.8/dist-packages/elastic_agent_setup/elastic_agent.py", line 31, in __platform_run
elastic-agent | return Linux().run(subcommand=subcommand)
elastic-agent | File "/usr/local/lib/python3.8/dist-packages/elastic_agent_setup/platform/platform.py", line 39, in run
elastic-agent | return subprocess.run(command, shell=True, check=True, capture_output=True)
elastic-agent | File "/usr/lib/python3.8/subprocess.py", line 516, in run
elastic-agent | raise CalledProcessError(retcode, process.args,
elastic-agent | subprocess.CalledProcessError: Command 'cd /elastic-agent-7.15.0-linux-x86_64 && ./elastic-agent install --force --kibana-url="https://kibana:5601" --enrollment-token="cXNjLV8zd0JBeUdtcFJPMmlqWHQ6SGFrVXd6VVlSaENsTldlNTBxOUJsQQ==" --certificate-authorities="/ca.crt" ' returned non-zero exit status 1.

@Und3rf10w
Copy link

Are you using a self-signed certificate? If so, add --insecure to the elastic-agent command. Also, you may want to view the output of the command, I'd also add 1>/proc/1/fd/1 2>/proc/1/fd/2 so that you can view the logs of the elastic-agent with sudo docker-compose logs --tail 100 elastic-agent

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