You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Jan Lehnardt <ja...@apache.org> on 2020/07/26 11:05:08 UTC

CI errors, host key update

Hey all,

we are getting CI fails on master because the host key for repo-nightly changed.

I’m not sure how to fix this:

   https://ci-couchdb.apache.org/blue/organizations/jenkins/jenkins-cm1%2FFullPlatformMatrix/detail/master/209/pipeline


[2020-07-26T10:55:22.484Z] + rsync -avz -e ssh -o StrictHostKeyChecking=no -i **** ****@repo-nightly.couchdb.org:/var/www/html/master .

[2020-07-26T10:55:28.535Z] Warning: Permanently added 'repo-nightly.couchdb.org,209.188.14.151' (ECDSA) to the list of known hosts.

[2020-07-26T10:55:28.880Z] ****@repo-nightly.couchdb.org: Permission denied (publickey).

[2020-07-26T10:55:28.880Z] rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]

[2020-07-26T10:55:28.880Z] rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.3]

[2020-07-26T10:55:28.880Z] + mkdir -p master

[2020-07-26T10:55:28.880Z] + rm -rf master/debian/* master/el6/* master/el7/* master/el8/*

[2020-07-26T10:55:28.880Z] + mkdir -p master/debian master/el6 master/el7 master/el8 master/source

[2020-07-26T10:55:28.880Z] + rsync -avz -e ssh -o StrictHostKeyChecking=no -i **** ****@repo-nightly.couchdb.org:/var/www/html/js .

[2020-07-26T10:55:34.924Z] ****@repo-nightly.couchdb.org: Permission denied (publickey).

[2020-07-26T10:55:34.924Z] rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]

[2020-07-26T10:55:34.924Z] rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.3]

script returned exit code 255

Best
Jan

Re: CI errors, host key update

Posted by Joan Touzet <wo...@apache.org>.
Fixed.

For future reference, these ASF VMs don't allow home directory
~/.ssh/id_rsa.pub keys. You have to have root and stick the authorized 
keys in at /etc/ssh/ssh_keys/<username>.pub .

root@couchdb-vm:/etc/ssh/ssh_keys# ls -la
total 24
drwxr-xr-x 2 root    root 4096 Jul 26 20:57 .
drwxr-xr-x 5 root    root 4096 Jul  1 14:43 ..
-rw-r----- 1 asf999  root 3494 Jul  1 14:43 asf999.pub
-rw------- 1 backup  root  677 Jul  1 14:43 backup.pub
-rw-r--r-- 1 jenkins root  757 Jul 26 20:57 jenkins.pub

That last file (copied from the old VM) fixed the problem.

On 2020-07-26 4:34 p.m., Joan Touzet wrote:
> Ah, that's a missing pubkey in the jenkins user on repo-nightly, not 
> that the hostkey changed. I thought I got that, but apparently not. I'll 
> fix it today.
> 
> -Joan
> 
> On 2020-07-26 7:05 a.m., Jan Lehnardt wrote:
>> Hey all,
>>
>> we are getting CI fails on master because the host key for 
>> repo-nightly changed.
>>
>> I’m not sure how to fix this:
>>
>>     
>> https://ci-couchdb.apache.org/blue/organizations/jenkins/jenkins-cm1%2FFullPlatformMatrix/detail/master/209/pipeline 
>>
>>
>>
>> [2020-07-26T10:55:22.484Z] + rsync -avz -e ssh -o 
>> StrictHostKeyChecking=no -i **** 
>> ****@repo-nightly.couchdb.org:/var/www/html/master .
>>
>> [2020-07-26T10:55:28.535Z] Warning: Permanently added 
>> 'repo-nightly.couchdb.org,209.188.14.151' (ECDSA) to the list of known 
>> hosts.
>>
>> [2020-07-26T10:55:28.880Z] ****@repo-nightly.couchdb.org: Permission 
>> denied (publickey).
>>
>> [2020-07-26T10:55:28.880Z] rsync: connection unexpectedly closed (0 
>> bytes received so far) [Receiver]
>>
>> [2020-07-26T10:55:28.880Z] rsync error: unexplained error (code 255) 
>> at io.c(235) [Receiver=3.1.3]
>>
>> [2020-07-26T10:55:28.880Z] + mkdir -p master
>>
>> [2020-07-26T10:55:28.880Z] + rm -rf master/debian/* master/el6/* 
>> master/el7/* master/el8/*
>>
>> [2020-07-26T10:55:28.880Z] + mkdir -p master/debian master/el6 
>> master/el7 master/el8 master/source
>>
>> [2020-07-26T10:55:28.880Z] + rsync -avz -e ssh -o 
>> StrictHostKeyChecking=no -i **** 
>> ****@repo-nightly.couchdb.org:/var/www/html/js .
>>
>> [2020-07-26T10:55:34.924Z] ****@repo-nightly.couchdb.org: Permission 
>> denied (publickey).
>>
>> [2020-07-26T10:55:34.924Z] rsync: connection unexpectedly closed (0 
>> bytes received so far) [Receiver]
>>
>> [2020-07-26T10:55:34.924Z] rsync error: unexplained error (code 255) 
>> at io.c(235) [Receiver=3.1.3]
>>
>> script returned exit code 255
>>
>> Best
>> Jan
>>

Re: CI errors, host key update

Posted by Jan Lehnardt <ja...@apache.org>.
Oh that explains why it didn’t make sense to me. Thanks!

Jan
—

> On 26. Jul 2020, at 22:34, Joan Touzet <wo...@apache.org> wrote:
> 
> Ah, that's a missing pubkey in the jenkins user on repo-nightly, not that the hostkey changed. I thought I got that, but apparently not. I'll fix it today.
> 
> -Joan
> 
> On 2020-07-26 7:05 a.m., Jan Lehnardt wrote:
>> Hey all,
>> we are getting CI fails on master because the host key for repo-nightly changed.
>> I’m not sure how to fix this:
>>    https://ci-couchdb.apache.org/blue/organizations/jenkins/jenkins-cm1%2FFullPlatformMatrix/detail/master/209/pipeline
>> [2020-07-26T10:55:22.484Z] + rsync -avz -e ssh -o StrictHostKeyChecking=no -i **** ****@repo-nightly.couchdb.org:/var/www/html/master .
>> [2020-07-26T10:55:28.535Z] Warning: Permanently added 'repo-nightly.couchdb.org,209.188.14.151' (ECDSA) to the list of known hosts.
>> [2020-07-26T10:55:28.880Z] ****@repo-nightly.couchdb.org: Permission denied (publickey).
>> [2020-07-26T10:55:28.880Z] rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
>> [2020-07-26T10:55:28.880Z] rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.3]
>> [2020-07-26T10:55:28.880Z] + mkdir -p master
>> [2020-07-26T10:55:28.880Z] + rm -rf master/debian/* master/el6/* master/el7/* master/el8/*
>> [2020-07-26T10:55:28.880Z] + mkdir -p master/debian master/el6 master/el7 master/el8 master/source
>> [2020-07-26T10:55:28.880Z] + rsync -avz -e ssh -o StrictHostKeyChecking=no -i **** ****@repo-nightly.couchdb.org:/var/www/html/js .
>> [2020-07-26T10:55:34.924Z] ****@repo-nightly.couchdb.org: Permission denied (publickey).
>> [2020-07-26T10:55:34.924Z] rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
>> [2020-07-26T10:55:34.924Z] rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.3]
>> script returned exit code 255
>> Best
>> Jan


Re: CI errors, host key update

Posted by Joan Touzet <wo...@apache.org>.
Ah, that's a missing pubkey in the jenkins user on repo-nightly, not 
that the hostkey changed. I thought I got that, but apparently not. I'll 
fix it today.

-Joan

On 2020-07-26 7:05 a.m., Jan Lehnardt wrote:
> Hey all,
> 
> we are getting CI fails on master because the host key for repo-nightly changed.
> 
> I’m not sure how to fix this:
> 
>     https://ci-couchdb.apache.org/blue/organizations/jenkins/jenkins-cm1%2FFullPlatformMatrix/detail/master/209/pipeline
> 
> 
> [2020-07-26T10:55:22.484Z] + rsync -avz -e ssh -o StrictHostKeyChecking=no -i **** ****@repo-nightly.couchdb.org:/var/www/html/master .
> 
> [2020-07-26T10:55:28.535Z] Warning: Permanently added 'repo-nightly.couchdb.org,209.188.14.151' (ECDSA) to the list of known hosts.
> 
> [2020-07-26T10:55:28.880Z] ****@repo-nightly.couchdb.org: Permission denied (publickey).
> 
> [2020-07-26T10:55:28.880Z] rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
> 
> [2020-07-26T10:55:28.880Z] rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.3]
> 
> [2020-07-26T10:55:28.880Z] + mkdir -p master
> 
> [2020-07-26T10:55:28.880Z] + rm -rf master/debian/* master/el6/* master/el7/* master/el8/*
> 
> [2020-07-26T10:55:28.880Z] + mkdir -p master/debian master/el6 master/el7 master/el8 master/source
> 
> [2020-07-26T10:55:28.880Z] + rsync -avz -e ssh -o StrictHostKeyChecking=no -i **** ****@repo-nightly.couchdb.org:/var/www/html/js .
> 
> [2020-07-26T10:55:34.924Z] ****@repo-nightly.couchdb.org: Permission denied (publickey).
> 
> [2020-07-26T10:55:34.924Z] rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
> 
> [2020-07-26T10:55:34.924Z] rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.3]
> 
> script returned exit code 255
> 
> Best
> Jan
>