Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev: Cannot update the official User Guide #8725

Open
kenjis opened this issue Apr 7, 2024 · 8 comments
Open

Dev: Cannot update the official User Guide #8725

kenjis opened this issue Apr 7, 2024 · 8 comments
Labels

Comments

@kenjis
Copy link
Member

kenjis commented Apr 7, 2024

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

@helmerdavila
Copy link

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

@kenjis
Copy link
Member Author

kenjis commented Apr 13, 2024

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

@kenjis
Copy link
Member Author

kenjis commented Apr 14, 2024

======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

@helmerdavila
Copy link

@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

@bwosborne2
Copy link

@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.

@kenjis
Copy link
Member Author

kenjis commented May 18, 2024

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

@bwosborne2
Copy link

bwosborne2 commented May 18, 2024

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.

@kenjis
Copy link
Member Author

kenjis commented May 18, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants