KB-2DAF
GIT-SYNC-WEBTEST — Blocked (auth)
2 min read Revision 1
reportgit-syncweb-testblocked2026-04-05
GIT-SYNC-WEBTEST — Báo cáo
Date: 2026-04-05 | Status: ⚠️ BƯỚC 1+2 XONG, BƯỚC 3 BLOCKED
Bước 1 — GH-only files: ✅
18 files only on GH, all safe (DOT tools + report + Vue component).
Bước 2 — Checkout to VPS: ✅
Commit: df739c6f0ee03af2eba4422f434e2d3a8c1939d5
Message: S167: add 18 GH-only files to VPS
Files: 18 added, 3,970 insertions
Verify before push:
| Check | Value |
|---|---|
| git status | 0 dirty ✅ |
| tracked files | 1,154 (was 1,136 + 18) ✅ |
| .env on GH | only .env.example/.template ✅ |
| diff from freeze | 18 files, +3,970 lines |
Bước 3 — Push VPS→GH: ❌ BLOCKED
fatal: could not read Username for 'https://github.com': No such device or address
Root cause: VPS repo uses HTTPS remote, no GH credentials configured:
- No git credential helper
- No GITHUB_TOKEN in env
- No deploy key for push
- No .netrc
VPS state is SAFE: commit df739c6 created locally. Tag freeze-20260405 intact. Rollback available.
Cách giải quyết (user chọn 1)
Option A: Thêm GH token trên VPS
ssh contabo
cd /opt/incomex/docker/nuxt-repo
git remote set-url origin https://<GH_TOKEN>@github.com/Huyen1974/web-test.git
git push --force origin main
Option B: Push từ macbook
cd ~/Documents/Manual\ Deploy/web-test
git remote add vps ssh://contabo/opt/incomex/docker/nuxt-repo
git fetch vps main
git checkout vps/main
git push --force origin main
Option C: Deploy key
ssh-keygen -t ed25519 -f ~/.ssh/gh_deploy_web-test -N ""
# Add public key to GH repo Settings → Deploy Keys (write access)
git remote set-url origin git@github.com:Huyen1974/web-test.git
git push --force origin main
Bước 1+2 ✅ | Bước 3 blocked (no auth) | VPS safe | Freeze intact