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

[Bug]: Installing dashboard plugin repository-s3 -> AccessDenied #3799

Closed
raulpuente opened this issue Jul 18, 2023 · 6 comments
Closed

[Bug]: Installing dashboard plugin repository-s3 -> AccessDenied #3799

raulpuente opened this issue Jul 18, 2023 · 6 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@raulpuente
Copy link

Describe the bug

I'm trying to install plugin repository-s3 with command bin/opensearch-dashboards-plugin install repository-s3 but says

v16.20.0
Attempting to transfer from repository-s3
Attempting to transfer from https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/2.8.0/latest/linux/x64/tar/builds/opensearch-dashboards/plugins/repository-s3-2.8.0.zip
Plugin installation was unsuccessful due to error "No valid url specified."

If i try the url with curl:

curl -fsSLI https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/2.8.0/latest/linux/x64/tar/builds/opensearch-dashboards/plugins/repository-s3-2.8.0.zip
HTTP/2 302
content-length: 0
server: CloudFront
date: Tue, 18 Jul 2023 20:29:33 GMT
location: /ci/dbc/distribution-build-opensearch-dashboards/2.8.0/6182/linux/x64/tar/builds/opensearch-dashboards/plugins/repository-s3-2.8.0.zip
cache-control: max-age=3600
x-cache: Hit from cloudfront
via: 1.1 fe41458437820e017e1a964e74df0578.cloudfront.net (CloudFront)
x-amz-cf-pop: MAD56-P2
x-amz-cf-id: MzqYueet5gZwjk8_zCu7HmKKW1V2YJ4RVNgZV90_Uil7UdGVYd3ayw==
age: 60

HTTP/2 403
content-type: application/xml
date: Tue, 18 Jul 2023 20:30:33 GMT
server: AmazonS3
x-cache: Error from cloudfront
via: 1.1 fe41458437820e017e1a964e74df0578.cloudfront.net (CloudFront)
x-amz-cf-pop: MAD56-P2
x-amz-cf-id: g3lM2tGqt6alIbBKSJNrlII99Nm3eJ3IH06zUIVnfx4aD50P2x6Hsg==

curl: (22) The requested URL returned error: 403

And if i user a browser the result is

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>CD6WGVT0V32S9B62</RequestId>
<HostId>
5MRfScVgm7YbJTXyKOjpfFQ7EJrXsbLBqkT1FOkj1VYTz6J/5rLbpX67pTwrOXrEnERAO10vrQ0=
</HostId>
</Error>

To reproduce

bin/opensearch-dashboards-plugin install repository-s3

Expected behavior

To be repository-s3 installed in opensearch dashboard

Screenshots

If applicable, add screenshots to help explain your problem.

Host / Environment

kubernetes with opster opensearch operator

Additional context

No response

Relevant log output

No response

@raulpuente raulpuente added bug Something isn't working untriaged Issues that have not yet been triaged labels Jul 18, 2023
@prudhvigodithi
Copy link
Member

Hey @raulpuente this is an OpenSearch plugin please try with opensearch-plugin cli.
bin/opensearch-plugin install repository-s3

This was tested for 2.8.0 release.
#3434 (comment)
@bbarani @peterzhuamazon

https://opensearch.org/docs/latest/install-and-configure/plugins/

@prudhvigodithi prudhvigodithi added question Further information is requested and removed untriaged Issues that have not yet been triaged labels Jul 21, 2023
@bbarani
Copy link
Member

bbarani commented Jul 21, 2023

Please use bin/opensearch-plugin install repository-s3 within OpenSearch distribution to install this plugin.

@raulpuente
Copy link
Author

Thank you but there is not this binary on the image docker.io/opensearchproject/opensearch-dashboards:2.8.0 , i only find "opensearch-dashboards-plugin"

$ ls -lsa
total 28
4 drwxr-xr-x 2 opensearch-dashboards opensearch-dashboards 4096 Jun  3 03:10 .
8 drwx------ 1 opensearch-dashboards opensearch-dashboards 4096 Jul 23 18:28 ..
4 -rwxr-xr-x 1 opensearch-dashboards opensearch-dashboards  902 Jun  3 03:10 opensearch-dashboards
4 -rwxr-xr-x 1 opensearch-dashboards opensearch-dashboards  840 Jun  3 03:10 opensearch-dashboards-keystore
4 -rwxr-xr-x 1 opensearch-dashboards opensearch-dashboards  880 Jun  3 03:10 opensearch-dashboards-plugin
4 -rwxr-xr-x 1 opensearch-dashboards opensearch-dashboards 3491 Jun  3 03:10 use_node

@prudhvigodithi
Copy link
Member

prudhvigodithi commented Jul 24, 2023

The repository-s3 is an OpenSearch plugin (not OpenSearch Dashboards), so you should be able to find the plugin inside the OpenSearch docker image. Please check this link for more information https://opensearch.org/docs/latest/install-and-configure/plugins/

@raulpuente
Copy link
Author

Thank you, you are right. Know it works.

@prudhvigodithi prudhvigodithi self-assigned this Jul 24, 2023
@prudhvigodithi
Copy link
Member

prudhvigodithi commented Jul 24, 2023

Thanks for the update @raulpuente, closing this issue, please re-open if required.

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

No branches or pull requests

3 participants