-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fails to publish: "This login method is not longer supported" #28
Comments
Is this fixed with snapcore@7fe468c ? |
We just changed our workflow to:
We're no longer getting the
|
The fix did not yet make it into a new release. Maybe try |
- uses: snapcore/action-publish@master
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_TOKEN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: candidate We're seeing:
https://github.com/digitalocean/doctl/runs/6909286518?check_suite_focus=true#step:5:13 |
So it looks like the credential format has changed as well. After regenerating them with |
Thanks for the pointers @bjorn @andrewsomething . Using the Just a suggestion: if possible it might be a good idea to pin the version of |
See snapcore/action-publish#28 for details.
See snapcore/action-publish#28 for details.
Run snapcore/action-publish@v1
Publishing snap "google-chat-electron_2.16.2_amd64.snap"...
/snap/bin/snapcraft login --with /tmp/login-data-bbcgfG/login.txt
--with is no longer supported, export the auth to the environment variable 'SNAPCRAFT_STORE_CREDENTIALS' instead
Login successful
(node:34047) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
/snap/bin/snapcraft upload google-chat-electron_2.16.2_amd64.snap --release stable
This login method is not longer supported craft-store error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Full execution log: '/home/runner/.cache/snapcraft/log/snapcraft-20220623-060624.601932.log'
/snap/bin/snapcraft logout
This login method is not longer supported
Credentials cleared
Error: The process '/snap/bin/snapcraft' failed with exit code 1 This is scary that the this action is always going to install latest version of |
When i tried to generate new token today, i see another error > snapcraft --version
snapcraft 7.0.7
> snapcraft export-login --snaps=google-chat-electron \
--acls package_access,package_push,package_update,package_release \
exported.txt
This login method is not longer supported
Enter your Ubuntu One e-mail address and password.
If you do not have an Ubuntu One account, you can create one at https://snapcraft.io/account
Email: pro.ankurk1[at]gmail.com
Password:
Traceback (most recent call last):
File "/snap/snapcraft/7717/bin/snapcraft", line 8, in <module>
sys.exit(run())
File "/snap/snapcraft/7717/lib/python3.8/site-packages/snapcraft/cli.py", line 188, in run
dispatcher.run()
File "/snap/snapcraft/7717/lib/python3.8/site-packages/craft_cli/dispatcher.py", line 406, in run
return self._loaded_command.run(self._parsed_command_args)
File "/snap/snapcraft/7717/lib/python3.8/site-packages/snapcraft/commands/account.py", line 217, in run
credentials = store.StoreClientCLI(ephemeral=True).login(**kwargs)
File "/snap/snapcraft/7717/lib/python3.8/site-packages/snapcraft/commands/store/client.py", line 187, in login
credentials = self.store_client.login(
File "/snap/snapcraft/7717/lib/python3.8/site-packages/snapcraft/commands/store/_legacy_account.py", line 149, in login
raise NotImplementedError("Cannot login with legacy")
NotImplementedError: Cannot login with legacy This is not developer friendly :( I can ensure that i entered correct password (ubuntu one). P.S. |
I updated my workflow yml according to readme.md Run snapcore/action-publish@v1
with:
snap: google-chat-electron_[2](https://github.com/ankurk91/google-chat-electron/runs/7022740556?check_suite_focus=true#step:12:2).16.[3](https://github.com/ankurk91/google-chat-electron/runs/7022740556?check_suite_focus=true#step:12:3)_amd6[4](https://github.com/ankurk91/google-chat-electron/runs/7022740556?check_suite_focus=true#step:12:4).snap
release: stable
env:
SNAPCRAFT_STORE_CREDENTIALS: ***
Publishing snap "google-chat-electron_2.1[6](https://github.com/ankurk91/google-chat-electron/runs/7022740556?check_suite_focus=true#step:12:6).3_amd64.snap"...
Error: login_data is empty Then i got this error, I have been struggling from past 4 hours. |
The fix has only been released 2 hours ago, and you referred to |
@bjorn |
I still get a |
I already spend many hours in the last few days with this. The last thing I tried is to manually write a "secret" file snapcraft would expect, but the token doesn't work with it. I'll get a I'm giving up on snap too now. |
@pbek Did you read this comment? You need to adjust both the use of this action to use the |
…ubuntu.com]`. Related to https://github.com/snapcore/action-publish/issues/28, the login data produced by using `snapcraft export-login` is no longer a multi-line file starting with `[login.ubuntu.com]`. User's following the README may be confused if they are expecting that.
@bjorn, thank you for your advice! I did all, but the |
I thought after your comment...
... it would work with v1 two month later. 😅 |
And what did you put into |
Ah, I missed that question. Yes, just the string that |
Using the master branch directly did work! Thank you very much! |
How strange. Switching to master was the only thing I did to make it work in the end. I'll try v1 again next time |
v1 did indeed work for me! |
I use this action in a github worflow to publish a built snap, and (presumably) with the update of snapcraft to 7.0.4 the action started failing with the following error:
The text was updated successfully, but these errors were encountered: