question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with rsync and build file path

See original GitHub issue

Describe the bug

Please provide a clear and concise description of what the bug is.

While the action is processing, everything goes fine until near the end of the process it says:

rsync: change_dir "/home/runner/work/documentation/documentation//build" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
The deployment encountered an error. ❌
##[error]The process 'rsync' failed with exit code 23

Similar to issue #84

Reproduce

Steps to reproduce the behavior.

I’m not sure the exact steps to reproduce this, but my workflow files can be found here: 🔗

Expected behavior

Please provide a clear and concise description of what you expected to happen.

I expected it to move into the folder .../documentation/build then deploy as expected

Screenshots

If applicable, add screenshots to help explain your problem.

Error is same as #84 but I can provide screen shots if necessary, too.

Additional Comments

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
gingerchewcommented, Jan 2, 2020

I was just about to post about that, haha That was exactly the answer! thanks for all your help!

2reactions
JamesIvescommented, Jan 2, 2020

Aha, I think I know the issue here. This is because you have two jobs named build and deploy. You’re building the site to deploy in the build job, but the deploy job is almost as-if it’s a fresh start and doesn’t have access to the project. If you need to build your site using a different operating system you can pass the built directory from one to another using artifacts (see docs here), but if not you can just combine the two to fix this.

name: Publish
on:
  push:
    branches:
      - master
jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Set up Node
      uses: actions/setup-node@v1
      with:
        node-version: 10.x 
    - name: Set email
      run: git config --global user.email "${{ secrets.adminemail }}"
    - name: Set username
      run: git config --global user.name "${{ secrets.adminname }}"
    - name: NPM install command
      run: cd website && npm install
    - name: check package.json
      run: cat package.json
    - name: Run build command
      run: npm run build

    - name: Checkout
      uses: actions/checkout@v1

    - name: Deploy
      uses: JamesIves/github-pages-deploy-action@releases/v3
      with:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        BASE_BRANCH: master
        BRANCH: gh-pages
        FOLDER: website/build

Additionally if you see the site deploy correctly but you don’t see your changes you may need to use the ACCESS_TOKEN key instead: https://github.com/JamesIves/github-pages-deploy-action#configuration-

Read more comments on GitHub >

github_iconTop Results From Across the Web

rsync does not recognize windows path - Stack Overflow
Rsync has a problem with absolute paths in Windows. I had the exact same problem when using rsync on Windows (Windows 10 64-bit)....
Read more >
How we tackle rsync no such file or directory - Bobcares
1. First, ensure that the file or folder that is mentioned is available. 2. Also, we check whether the path or the location...
Read more >
Rsync path with () - linux - Super User
Check the file paths to make sure they are correct. It's saying /cygdrive/etc doesn't exist. – Ben M. Jul 28, 2017 at 16:56....
Read more >
rsync - Linux Man Pages Online
Rsync finds files that need to be transferred using a "quick check" algorithm ... --temp-dir=DIR create temporary files in directory DIR -y, --fuzzy...
Read more >
rsync - Synchronize content of two buckets/directories
This can cause various problems: If you use gsutil rsync as a simple way to backup a directory to a bucket, restoring from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found