hilt86
(Hilt86)
September 8, 2021, 3:57am
1
Me again..I'm trying to enroll a macOS agent and when I run the enroll command I get the following :
Error: fail to enroll: fail to execute request to fleet-server: fail to decode enrollment response: context canceled
Error: enroll command failed with exit code: 1
I've tried enrolling on multiple installs (7.14.1 and 7.14.0) with the same issue...
It seems to contact the fleet server but it leaves it in a state of updating :
blaker
(Blake Rouse)
September 8, 2021, 6:24pm
2
Can you please provide the command you are using to enroll?
hilt86
(Hilt86)
September 9, 2021, 9:57am
3
Just the one that fleet gives you when you use the add agent dialogue
hilt86
(Hilt86)
September 9, 2021, 11:16am
4
for example :
sudo ./elastic-agent install -f --url=https://something.azure.elastic-cloud.com:443 --enrollment-token=secret
hilt86
(Hilt86)
September 9, 2021, 11:17am
5
Another team mate gets the following on her Mac :
panic: getwd: invalid argument
goroutine 1 [running]:
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application/paths.retrieveExecutablePath(0x28, 0x0)
/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/paths/common.go:157 +0x1aa
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application/paths.initialTop(0x10aa72a67, 0x10b9c9245)
/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/paths/common.go:146 +0x26
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application/paths.init.0()
/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/paths/common.go:36 +0x26
blaker
(Blake Rouse)
September 13, 2021, 3:43pm
7
I second @zx8086 knowing the OSX version would be great? Also what is the execution directory you are running from? Seems that its having trouble getting its current work directory.
hilt86
(Hilt86)
September 23, 2021, 1:42am
8
10.15.7 - I was running it from ~/Downloads/elastic-agent-x.y.z
zx8086
October 13, 2021, 8:23pm
10
@ledge39
ledge39:
I have the same issue
What OS are you using ?
What command are you running and do you have the error from the logs ?
ledge39
(Ledger)
October 13, 2021, 8:25pm
11
sudo ./elastic-agent install -f --url=http://192.168.1.11:8220 --enrollment-token=secret
panic: getwd: invalid argument
goroutine 1 [running]:
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application/paths.retrieveExecutablePath (0x28, 0x0)
/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/paths/common.go:187 +0x1aa
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application/paths.initialTop (0x10286e327, 0x1038694a4)
/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/paths/common.go:176 +0x26
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application/paths.init.0()
/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/paths/common.go:38 +0x26
zx8086
October 13, 2021, 9:05pm
12
Are you running it from the installation directory ?
Have you tried with HTTPS ?
system
(system)
Closed
November 10, 2021, 9:05pm
13
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.