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

Current Heartbeat/Synthetics Docker image (snapshot) not working #312

Closed
paulb-elastic opened this issue Jun 21, 2021 · 0 comments · Fixed by elastic/beats#26393
Closed
Assignees
Labels
bug Something isn't working v7.14.0

Comments

@paulb-elastic
Copy link
Contributor

Getting the following error with the beta.3 version of Synthetics in the heartbeat:8.0.0-SNAPSHOT Heartbeat image:

2021-06-17T19:53:25.437Z    INFO    synthexec/synthexec.go:224    stderr: Failed to run the test Error: EACCES: permission denied, mkdir '/usr/share/heartbeat/.synthetics/35/screenshots'
2021-06-17T19:53:25.437Z    INFO    synthexec/synthexec.go:224    stderr:     at Object.mkdirSync (fs.js:921:3)
2021-06-17T19:53:25.437Z    INFO    synthexec/synthexec.go:224    stderr:     at Runner.init (/usr/share/heartbeat/.node/node/lib/node_modules/@elastic/synthetics/src/core/runner.ts:357:5)
2021-06-17T19:53:25.438Z    INFO    synthexec/synthexec.go:224    stderr:     at Runner.run (/usr/share/heartbeat/.node/node/lib/node_modules/@elastic/synthetics/src/core/runner.ts:367:10)
2021-06-17T19:53:25.438Z    INFO    synthexec/synthexec.go:224    stderr:     at Object.run (/usr/share/heartbeat/.node/node/lib/node_modules/@elastic/synthetics/src/index.ts:45:25)
2021-06-17T19:53:25.438Z    INFO    synthexec/synthexec.go:224    stderr:     at /usr/share/heartbeat/.node/node/lib/node_modules/@elastic/synthetics/src/cli.ts:175:25
2021-06-17T19:53:25.438Z    INFO    synthexec/synthexec.go:224    stderr:     at processTicksAndRejections (internal/process/task_queues.js:97:5) {
2021-06-17T19:53:25.438Z    INFO    synthexec/synthexec.go:224    stderr:   errno: -13,
2021-06-17T19:53:25.438Z    INFO    synthexec/synthexec.go:224    stderr:   syscall: 'mkdir',
2021-06-17T19:53:25.438Z    INFO    synthexec/synthexec.go:224    stderr:   code: 'EACCES',
2021-06-17T19:53:25.438Z    INFO    synthexec/synthexec.go:224    stderr:   path: '/usr/share/heartbeat/.synthetics/35/screenshots'
2021-06-17T19:53:25.438Z    INFO    synthexec/synthexec.go:224    stderr: }
2021-06-17T19:53:25.444Z    INFO    synthexec/synthexec.go:176    Command has completed(1): /usr/share/heartbeat/.node/node/bin/elastic-synthetics --inline --rich-events --outfd 3
2021-06-17T19:53:25.444Z    WARN    synthexec/synthexec.go:183    Error executing command '/usr/share/heartbeat/.node/node/bin/elastic-synthetics --inline --rich-events --outfd 3': exit status 1

Discussion with @andrewvc and this should be writing to /tmp in the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v7.14.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants