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

WASME cli doesnt work with oracle open cloud initiative compliant repository. #264

Open
sumitaneja opened this issue Jun 4, 2021 · 6 comments

Comments

@sumitaneja
Copy link

Using Oracle cloud infra repository which is compliant with OCI registry https://docs.oracle.com/en-us/iaas/Content/Registry/Concepts/registryoverview.htm

cli fails in login with not found.

for wasme push gves below error
oras push failed: no scope specified for token auth challenge

@Sodman
Copy link
Member

Sodman commented Jun 4, 2021

Wasme falls back to using the docker credentials when it's talking to a non-wasmhub registry. If you use docker login to log into the registry first, then wasme push will use those credentials.

@sumitaneja
Copy link
Author

sumitaneja commented Jun 6, 2021

@Sodman this is not working

docker login iad.ocir.io/<repo>
Authenticating with existing credentials...
Login Succeeded

wasme push iad.ocir.io/<repo>/<image>:v1
INFO[0000] Pushing image iad.ocir.io/<repo>/<image>:v1
Error: All attempts fail:
#1: oras push failed: no scope specified for token auth challenge

@sumitaneja
Copy link
Author

wasme --version
wasme version 0.0.33

@Sodman
Copy link
Member

Sodman commented Jun 7, 2021

Looks like this would be solved by implementing #241 - for now it looks like that user managed a workaround, see this comment for more details.

@sumitaneja
Copy link
Author

@Sodman no luck

oras login iad.ocir.io/<repo> 
Username: <uname>
Password: <pwd>
Login Succeeded

 wasme push iad.ocir.io/<repo>/<image>:v1
INFO[0000] Pushing image iad.ocir.io/<repo>/<image>:v1
Error: All attempts fail:
#1: oras push failed: no scope specified for token auth challenge

@sumitaneja sumitaneja changed the title WASME cli doesnt work with open cloud initiative compliant repository. WASME cli doesnt work with oracle open cloud initiative compliant repository. Jun 8, 2021
@sumitaneja
Copy link
Author

fyi #129 (comment) helps

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