Error while cloning Thunderbird's Mercurial repository - repository

I wanted to clone the Mozilla Thunderbird repository to my PC.
I used the official guide (here) and tried to clone several times, but after a few minutes it always throws an error.
there is always the same following error message:
abort: An existing connection was forcibly closed by the remote host
transaction abort!
rollback completed
[Code 255]
I used this command for cloning:
hg clone --verbose https://hg.mozilla.org/mozilla-central "C:\Users\...\source\"
(userpath shortened)

Related

Connection to SSH from a pipeline in Azure DevOps is still not working

I saw few other posts (in particular this one) about it but there are from last year. I still have this issue right now. I opened the Preview features from the User settings but I can't turn off this feature.
My pipelines use SSH connection to run some commands on a virtual machine (basically, pull a Docker image).
All my pipelines are failing. How can I fix it or update the SSH connections?
Update
I set up the Service connection
and I use it in my pipelines with this YAML code:
- task: SSH#0
displayName: 'SSH: stop shinyproxy'
inputs:
sshEndpoint: $(server)
commands: |
echo $(pwd) | sudo -S docker stop shinyproxy
failOnStdErr: false
continueOnError: true
All pipelines, new and old, get the same error
##[error]Failed to connect to remote machine. Verify the SSH service connection details. Error: Error: All configured authentication methods failed
at doNextAuth (/home/vsts/work/_tasks/SSH_91443475-df55-4874-944b-39253b558790/0.213.0/node_modules/ssh2/lib/client.js:803:21)
at tryNextAuth (/home/vsts/work/_tasks/SSH_91443475-df55-4874-944b-39253b558790/0.213.0/node_modules/ssh2/lib/client.js:993:7)
at USERAUTH_FAILURE (/home/vsts/work/_tasks/SSH_91443475-df55-4874-944b-39253b558790/0.213.0/node_modules/ssh2/lib/client.js:373:11)
at 51 (/home/vsts/work/_tasks/SSH_91443475-df55-4874-944b-39253b558790/0.213.0/node_modules/ssh2/lib/protocol/handlers.misc.js:337:16)
at Protocol.onPayload (/home/vsts/work/_tasks/SSH_91443475-df55-4874-944b-39253b558790/0.213.0/node_modules/ssh2/lib/protocol/Protocol.js:2025:10)
at AESGCMDecipherNative.decrypt (/home/vsts/work/_tasks/SSH_91443475-df55-4874-944b-39253b558790/0.213.0/node_modules/ssh2/lib/protocol/crypto.js:987:26)
at Protocol.parsePacket [as _parse] (/home/vsts/work/_tasks/SSH_91443475-df55-4874-944b-39253b558790/0.213.0/node_modules/ssh2/lib/protocol/Protocol.js:1994:25)
at Protocol.parse (/home/vsts/work/_tasks/SSH_91443475-df55-4874-944b-39253b558790/0.213.0/node_modules/ssh2/lib/protocol/Protocol.js:293:16)
at Socket. (/home/vsts/work/_tasks/SSH_91443475-df55-4874-944b-39253b558790/0.213.0/node_modules/ssh2/lib/client.js:713:21)
at Socket.emit (node:events:527:28) {
level: 'client-authentication'
I have never had this issue before.
Based on the other post, highlighted by Antonia, the solution has to be applied on the Ubuntu machine.
To fix it, open Terminal and edit /etc/ssh/sshd_config and, at the end of it, add this line
/etc/ssh/sshd_config
After that, restart. It is working for me.

Q: Sourcetree error : 'git status' failed with code -1"

Sourcetree showing this error 'git status' failed with code -1" while trying access project from bookmark, also I can't clone any other project from remote list or manual by url.
SSH connection is good. Command
ssh -T git#github.com showing - Hi "name"! You've successfully authenticated, but GitHub does not provide shell access.
Command git clone also works fine and fetch project.
Resolved by clicking options > git > Use System Git and set to use System Git Version.

How to use ssh for gitlab scheduled jobs

We recently changed our repo to use SSH and now our scheduled jobs wont run
This is the error we are seeing
Running with gitlab-runner 10.2.0 (0a75cdd1)
on ff (4b9268cd)
Using Shell executor...
Running on pro1.staging.cardstream.net...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/4b9268cd/0/Graham/QA_TEST'...
fatal: repository 'http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx#dev.cardstream.com/Graham/QA_TEST.git/' not found
ERROR: Job failed: exit status 1
I would be grateful if someone could shed some light on this
Thanks
It seems that I have misunderstood after being misled by various internet postings.
It not possible to have gitlab use ssh when cloning a project within a job

Jenkins workspace error on ssh&Mercurial plugin

I met this problem when I was trying to config Jenkins to fetch the repository on the server of a fellow(university course).
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/TEST1/workspace
$ hg clone --rev default --noupdate ssh://XXX#partch.anu.edu.au/XXX/XXX /var/lib/jenkins/jobs/TEST1/workspace
remote: Host key verification failed.
abort: no suitable response from remote hg!
ERROR: Failed to clone ssh://XXX#partch.anu.edu.au/XXX/XXX
ERROR: Failed to clone ssh://XXX#partch.anu.edu.au/XXX/XXX
Finished: FAILURE
Then I tried to do the same command in terminal, with the different error
abort: Permission denied: /var/lib/jenkins/jobs/TEST1/workspace
I tried to change the location for the command:
hg clone --rev default --noupdate ssh://XXX#partch.anu.edu.au/XXX/XXX /home/administrator/TEST
And it works
According to all these, and the fact that this is no workspace(Error: no workspace)--I know it's because of no successful build ever.
Is it a problem with the workspace configuration of Jenkins? but don't know what to do.
Thank you very much if anyone gives me some advice!
Your error doesn't mention anything about a workspace. There error clearly states that it comes from remote hg and it is an authentication failure.
Also, are you using the Mercurial Plugin to perform the SCM checkout or trying to replicate it with a Build Shell build step?

git svn clone: fatal: Reference has invalid format

I'm using git svn clone to convert an svn repo to git and am facing issues with that. My first issue was -
fatal: Not a valid object name refs/remotes/Customer Assistance
cat-file commit refs/remotes/Customer Assistance: command returned error: 128
I tried the solution mentioned here but now it gives me the following error -
fatal: Reference has invalid format: 'refs/remotes/Customer Assistance'
for-each-ref --format=%(refname) refs/: command returned error: 128
PS: I'm doing this on a Windows machine and I'm using git 1.8.3.