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

Exception when installing plugins on 8.x #32

Open
Guerteltier opened this issue Oct 1, 2023 · 0 comments
Open

Exception when installing plugins on 8.x #32

Guerteltier opened this issue Oct 1, 2023 · 0 comments

Comments

@Guerteltier
Copy link

Guerteltier commented Oct 1, 2023

https://github.com/asozialesnetzwerk/an-website/blob/8b5b301575416fe475e3bb88c760c54cd4c5c1fb/.github/workflows/release.yml#L129-L143
https://github.com/asozialesnetzwerk/an-website/actions/runs/6369096572/job/17289014819

-> Installing analysis-icu
-> Downloading analysis-icu from elastic
-> Failed installing analysis-icu
-> Rolling back analysis-icu
-> Rolled back analysis-icu
Exception in thread "main" java.nio.file.AccessDeniedException: /usr/share/elasticsearch/plugins/.installing-11365180841595527243
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:438)
	at java.base/java.nio.file.Files.createDirectory(Files.java:699)
	at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:134)
	at java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:171)
	at java.base/java.nio.file.Files.createTempDirectory(Files.java:975)
	at org.elasticsearch.plugins.cli.InstallPluginAction.stagingDirectory(InstallPluginAction.java:824)
	at org.elasticsearch.plugins.cli.InstallPluginAction.unzip(InstallPluginAction.java:771)
	at org.elasticsearch.plugins.cli.InstallPluginAction.execute(InstallPluginAction.java:252)
	at org.elasticsearch.plugins.cli.InstallPluginCommand.execute(InstallPluginCommand.java:89)
	at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
	at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:[94](https://github.com/asozialesnetzwerk/an-website/actions/runs/6369096572/job/17289014819#step:6:95))
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
	at org.elasticsearch.cli.Command.main(Command.java:50)
	at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)
9toon added a commit to 9toon/elastic-github-actions that referenced this issue Jul 26, 2024
- Add --user 0:0 option to docker run command for plugin installation.
- This change ensures the docker container runs with root privileges, resolving the java.nio.file.AccessDeniedException error.
- Reference issue: elastic#32
9toon added a commit to 9toon/elastic-github-actions that referenced this issue Jul 26, 2024
9toon added a commit to 9toon/elastic-github-actions that referenced this issue Jul 26, 2024
9toon added a commit to 9toon/elastic-github-actions that referenced this issue Jul 26, 2024
- Add `--user=0:0` option to docker run command for plugin installation.
- This change ensures the docker container runs with root privileges, resolving the java.nio.file.AccessDeniedException error.
- Reference issue: elastic#32
picandocodigo pushed a commit that referenced this issue Aug 27, 2024
- Add `--user=0:0` option to docker run command for plugin installation.
- This change ensures the docker container runs with root privileges, resolving the java.nio.file.AccessDeniedException error.
- Reference issue: #32
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

1 participant