Puzzling ssh fail
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with the deploy.yml snippet and the deployphp/action@v1 entry point, then compare how its private-key input is passed to the SSH agent with the failing deploy log. Reproduce the authentication failure in GitHub Actions and verify that the deployment succeeds using the configured secrets.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This is the deploy snippet in my github deploy.yml
- name: Deploy
uses: deployphp/action@v1
with:
private-key: ${{ secrets.PRIVATE_KEY }}
dep: deploy ${{ secrets.SSH_HOST }} -o branch=main -o keep_releases=3 -vvv
PRIVATE_KEY and SSH_HOST are defined in my github actions secrets
However, I keep seeing this error in teh deploy log
Run deployphp/action@v1
$ ssh-agent -a /tmp/ssh-auth.sock
SSH_AUTH_SOCK=/tmp/ssh-auth.sock; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3422; export SSH_AGENT_PID;
echo Agent pid 3422;
Using "vendor/bin/dep".
Invalid JSON in options
$ php vendor/bin/dep deploy *** -o branch=main -o keep_releases=3 -vvv --no-interaction --ansi -v
task deploy:info
task deploy:setup
[***] /usr/bin/php8.1 /home/runner/work/laravel-api/laravel-api/vendor/***/***/dep worker --port 40175 --task deploy:setup --host *** --option branch=main --option keep_releases=3 --ansi --no-interaction --decorated -vvv
[***] ssh '-A' '-o' 'ControlMaster=auto' '-o' 'ControlPersist=60' '-o' 'ControlPath=/dev/shm/***@113.30.151.149' '***@113.30.151.149' ': 0f89c0c962742bac1f0b; bash -ls'
[***] run [ -d /var/www/html ] || mkdir -p /var/www/html;
cd /var/www/html;
[ -d .dep ] || mkdir .dep;
[ -d releases ] || mkdir releases;
[ -d shared ] || mkdir shared;
[***] Warning: Permanently added '113.30.151.149' (ED25519) to the list of known hosts.
[***] Permission denied, please try again.
[***] Permission denied, please try again.
[***] ***@113.30.151.149: Permission denied (publickey,password).
[***] error in setup.php on line 7:
[***] exit code -1 (Unknown error)
ERROR: Task deploy:setup failed!
task deploy:failed
task deploy:unlock
ERROR: Task deploy:unlock failed!
Error: Failed: dep deploy,***,-o,branch=main,-o,keep_releases=3,-vvv
using sshpass-action I have confirmed it can actually login from teh deploy, and I've also tested locally using teh private key and it has no problems logging in..
Any suggestions as to where to look?
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
- Ngôn ngữ chính
- TypeScript
- Star
- 269
- Fork
- 56
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của deployphp/action
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
-
`options` is not working Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Tất cả issue của deployphp/action
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
copse-dev/agent-pane#2953 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Đang mởbug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Client support matrix inclusion Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
calcite-components needs triage refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Esri/calcite-design-system#15203 ·