CodeIgniter4 icon indicating copy to clipboard operation
CodeIgniter4 copied to clipboard

Dev: Cannot update the official User Guide

Open kenjis opened this issue 10 months ago • 8 comments

Since v4.4.6 we cannot update the official User Guide. See #8757

The following workflow does not work. https://github.com/codeigniter4/userguide/blob/master/.github/workflows/deploy.yml

Run entrypoint.sh
Will download drone-ssh-1.7.4-linux-amd64 from https://github.com/appleboy/drone-ssh/releases/download/v1.7.4
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 5580k  100 5580k    0     0  ***.6M      0 --:--:-- --:--:-- --:--:-- ***.6M
======CMD======
/opt/userguide/.github/scripts/deploy
======END======
2024/04/07 10:07:58 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Error: Process completed with exit code 1.

https://github.com/codeigniter4/userguide/actions/runs/8587951528/job/23532221115

kenjis avatar Apr 07 '24 11:04 kenjis

@kenjis I have some Linux knowledge, do you need specific help with that?

helmerdavila avatar Apr 12 '24 22:04 helmerdavila

@helmerdavila Thank you! I don't know about administration situation for the official server at all. @lonnieezell and @MGatner know.

kenjis avatar Apr 13 '24 00:04 kenjis

======CMD======
/opt/userguide/.github/scripts/deploy
======END======
2024/04/14 04:19:56 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Error: Process completed with exit code 1.

https://github.com/codeigniter4/userguide/actions/runs/8678283370/job/23795012255

kenjis avatar Apr 14 '24 04:04 kenjis

@kenjis it might be the that the type of the SSH key is not supported.

Here the docs about the GitHub action says something about it https://github.com/appleboy/ssh-action?tab=readme-ov-file#if-you-are-using-openssh

helmerdavila avatar Apr 15 '24 01:04 helmerdavila

@kenjis I reached out on a forum thread.

I also have workaround ideas. Possibly the website could redirect to the github hosted documentation if that is less complex & more manageable. this is assuming Github is not billing for website usage, of course.

bwosborne2 avatar May 08 '24 10:05 bwosborne2

Now I've got the server admin privilege, and am trying to update the deployment workflows.

Does anyone know how to configure fingerprint with appleboy/ssh-action?

 ======CMD======
/opt/website/.github/scripts/***.sh
======END======
2024/05/18 10:53:48 ssh: handshake failed: ssh: host key fingerprint mismatch

https://github.com/codeigniter4projects/website/actions/runs/9139334282/job/25131504353

kenjis avatar May 18 '24 11:05 kenjis

Since you just received the server admin privilege, are you running the original Docker container image? Are you running it from a different computer? The error seems to indicate a mismatch between the ssh key used and the one GitHub expects.

The ssh-action README seems t tell how to generate keys. https://github.com/appleboy/ssh-action/blob/master/README.md

I am just throwing out ideas to consider since I have done much troubleshooting but an not very familiar with GitHub actions.

bwosborne2 avatar May 18 '24 12:05 bwosborne2

@bwosborne2 I just use appleboy/ssh-action. See https://github.com/codeigniter4projects/website/blob/develop/.github/workflows/deploy.yml This is for deployment of the official site, but we use the same appleboy/ssh-action for deployment of the user guide.

It is an issue in appleboy/ssh-action or my setting for it. I configured the fingerprint according to the README. But if I set the fingerprint, SSH handshake fails. So I removed the fingerprint configuration for now.

kenjis avatar May 18 '24 13:05 kenjis

Fixed. https://github.com/codeigniter4/userguide/actions/workflows/deploy.yml

kenjis avatar Jun 10 '24 08:06 kenjis