Pushing new hg repo to hg.sr.ht fails

Following Setting up your account & first Mercurial repository hg push ssh://hg@hg.sr.ht/~********/example gave initially remote: hg@hg.sr.ht: Permission denied (publickey,keyboard-interactive). abort: no suitable response from remote hg!

but after further attempts (and creation of repos on the server via https://hg.sr.ht/create)

pushing to ssh://hg@hg.sr.ht/~*******/example searching for changes remote: Permission denied remote: pretxnopen.hgsrht-shell hook failed abort: push failed on remote

Note I can create a new repo via the web interface at https://hg.sr.ht/create and then can push to it.

Assigned to
2 years ago
1 year, 1 month ago
No labels applied.

~ludovicchabant 2 years ago

Did you setup an SSH key in your meta.sr.ht profile?

~durian188 2 years ago

I followed the getting instructions and have an ssh key in my profile - I assume it is correctly setup as as I can create repos via the web page and then push to them.

Additionally I go the following message when I attempted to reply to your message via email

Mail Delivery System MAILER-DAEMON@sr.ht


12:39 PM (6 minutes ago)


to me This is the mail system at host mail.sr.ht.

I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can delete your own text from the attached returned message.

               The mail system

~sircmpwn/hg.sr.ht/36@todo.sr.ht: host todo.sr.ht[] said: 550 HTML emails are not permitted on SourceHut (in reply to end of DATA command)

~ludovicchabant 2 years ago

Mmmh I don't understand -- you say you can create repos and push to them. What is the situation where you get the errors on push then?

No idea about the email reply error. Make another ticket for the todo.sr.ht project or ask around on IRC.

~durian188 2 years ago

The problem is can't push a new repo that has not already been created on the server. When I follow the instructions problems happen at the point marked with ***** """ Creating a Mercurial repository

If you already have a Mercurial repository you want to push to hg.sr.ht, you can skip this step. If not, open up a shell and run the following commands to create a test repository for experimenting with:

mkdir example cd example hg init echo "Hello world!" >README.md hg add README.md hg commit -m "Initial commit"

This created a new Mercurial repository and added a README.md file to it, then created the initial commit. Pushing your repository to hg.sr.ht

Run the following command to push your changes to hg.sr.ht:

hg push ssh://hg@hg.sr.ht/~durian188/example

Since this repository didn't previously exist, you'll be prompted with a link to create the repository on hg.sr.ht - click that link and fill out the form on that page*****. You'll be redirected to your repository on hg.sr.ht: you're done!

""" at *** I don't get prompted with a link I get an error message saying the messages I submitted in my bug report.

~ludovicchabant 2 years ago

Oh I see, OK I'll take a look, thanks for the report.

~nprescott 1 year, 1 month ago

I can't point to when this was fixed, but this is working now.

I was able to hg push to a non-existent repository and received the expected "click here to create" prompt:

$ hg push ssh://hg@hg.sr.ht/~nprescott/example
pushing to ssh://hg@hg.sr.ht/~nprescott/example
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
remote: 	NOTICE
remote: 	We saved your changes, but this repository does not exist.
remote: 	Click here to create it:
remote: 	https://hg.sr.ht/create?name=example
remote: 	Your changes will be discarded in 20 minutes.

~sircmpwn REPORTED FIXED 1 year, 1 month ago

Good enough for me. Thanks!

Register here or Log in to comment, or comment via email.