From 8efdd2a590673f5c7a0847bc2832e4a38f9310e3 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Mon, 7 Jul 2025 23:14:44 +0900 Subject: [PATCH] Add detailed debugging steps for rsync permission issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Test directory access and permissions - Check user identity and current directory - Create target directory if not exists - Add verbose SSH logging (-vvv) to rsync - Troubleshoot permission denied error step by step 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/deploy.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a88aabc..b6097b1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,9 +31,19 @@ jobs: ssh -o StrictHostKeyChecking=no -p ${{ secrets.NAS_PORT }} \ ${{ secrets.NAS_USER }}@${{ secrets.NAS_HOST }} echo "SSH connection successful" - - name: Rsync to NAS + - name: Test directory access run: | - rsync -avz -e "ssh -p ${{ secrets.NAS_PORT }}" ./ \ + ssh -p ${{ secrets.NAS_PORT }} admin@${{ secrets.NAS_HOST }} \ + "ls -la /volume1/homes/admin/ && whoami && pwd" + + - name: Create target directory if not exists + run: | + ssh -p ${{ secrets.NAS_PORT }} admin@${{ secrets.NAS_HOST }} \ + "mkdir -p /volume1/homes/admin/nginx-infra && ls -la /volume1/homes/admin/nginx-infra" + + - name: Rsync to NAS (with verbose SSH) + run: | + rsync -avz -e "ssh -vvv -p ${{ secrets.NAS_PORT }}" ./ \ admin@${{ secrets.NAS_HOST }}:/volume1/homes/admin/nginx-infra/ - name: Remote docker-compose up