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.

Github workspace no such file or directory

See original GitHub issue

Describe the bug I was running my build just fine as usual and all of a sudden in the subsequent build as my action was doing it’s job all of a sudden it’s now throwing an error.

** (ErlangError) Erlang error: :enoent Shows that the the command being run is

sudo chown -R builder:abuild /github/workspace (which I got from GITHUB_WORKSPACE env variable) 

To Reproduce Steps to reproduce the behavior:

  1. Run action one day and pass
  2. Next day action is failing
  3. See error

Expected behavior Execute task successfully

Runner Version and Platform

Version of your runner?

Hosted Runner Current runner version: ‘2.276.1’

OS of the machine running the runner? OSX/Windows/Linux/…

ubuntu-latest

What’s not working?

Screen Shot 2021-01-27 at 8 25 59 PM Screen Shot 2021-01-27 at 8 26 42 PM

I have already tried upgrading checkout action to v2 and doesn’t seem to help

https://github.com/artellectual/helipad

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

20reactions
kopporcommented, Aug 17, 2021

For the googlers coming here (because of a similar issue)

wrong:

      - run: ls -la
        working-directory: $GITHUB_WORKSPACE/tmp

right:

      - run: ls -la
        working-directory: ${{ github.workspace }}/tmp
0reactions
zacksiricommented, Jan 28, 2021

@TingluoHuang Thank you for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Github Actions - No Such File or Directory on Any Run Step
I had an issue where a step was failing with the following, no matter how I configured it: Error: No such file or...
Read more >
github actions: debugging 'no such file or directory'
The answer, it turns out, is to ensure that the repository itself is checked out. The easiest way I found to do this...
Read more >
GitHub action fails with No such file or directory
I am trying a very basic GitHub CI actions with my PlatformIO project. I am using almost the official Workflow provided by the...
Read more >
Cannot Deploy Site Via GitHub - Help
Hi there, So I've installed jekyll on my computer, enabled github ... 18 No such file or directory @ dir_chdir - /github/workspace/docs.
Read more >
elgohr/Publish-Docker-Github-Action@2.6: unable to ...
Hello - im trying to use the CI/CD via a GH workflow but getting the below error: Run elgohr/Publish-Docker-Github-Action@2.6 with: name: ...
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