~sircmpwn/hg.sr.ht#36: 
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.

Status
REPORTED
Submitter
~durian188
Assigned to
No-one
Submitted
9 months ago
Updated
9 months ago
Labels
No labels applied.

~ludovicchabant 9 months ago

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

~durian188 9 months 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[173.195.146.145] said: 550 HTML emails are not permitted on SourceHut (in reply to end of DATA command)

~ludovicchabant 9 months 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 9 months 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 9 months ago

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

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