Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File already exists error #121

Closed
ewpratten opened this issue Aug 5, 2020 · 5 comments
Closed

File already exists error #121

ewpratten opened this issue Aug 5, 2020 · 5 comments
Labels

Comments

@ewpratten
Copy link

Behaviour

When deploying a directory with this action, I am getting the error:

##[error]EEXIST: file already exists, symlink '/home/runner/.cache/bazel/_bazel_runner/17d8e9b30b69e9aeac686c3673f39b5a/execroot/highschool_notes/bazel-out/k8-fastbuild/bin' -> '/tmp/github-pages-vbZ3SF'

For clarification, I am using the bazel buildsystem and pandoc to generate some HTML outputs from LaTeX files. After running, Bazel creates the following symlinks in the workspace directory:

bazel-bin -> /home/runner/.cache/bazel/_bazel_runner/17d8e9b30b69e9aeac686c3673f39b5a/execroot/highschool_notes/bazel-bin
bazel-highschool_notes -> /home/runner/.cache/bazel/_bazel_runner/17d8e9b30b69e9aeac686c3673f39b5a/execroot/highschool_notes/bazel-highschool_notes
bazel-out -> /home/runner/.cache/bazel/_bazel_runner/17d8e9b30b69e9aeac686c3673f39b5a/execroot/highschool_notes/bazel-out
bazel-testlogs -> /home/runner/.cache/bazel/_bazel_runner/17d8e9b30b69e9aeac686c3673f39b5a/execroot/highschool_notes/bazel-testlogs

I would expect that this just deploys as per usual (I have no problems in many other projects)

Configuration

  • Repository URL (if public):
  • Build URL (if public):
name: Deploy docs

on:
  push:
    branches:
      - master
 
jobs:
  
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Install bazelisk
        run: |
          curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
          mkdir -p "${GITHUB_WORKSPACE}/bin/"
          mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
          chmod +x "${GITHUB_WORKSPACE}/bin/bazel"

      - name: Install pandoc
        run: |
          sudo apt install pandoc texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra -y

      - name: Build
        run: |
          "${GITHUB_WORKSPACE}/bin/bazel" clean
          "${GITHUB_WORKSPACE}/bin/bazel" build //:all

      - name: Check GitHub Pages status
        uses: crazy-max/ghaction-github-status@v1
        with:
          pages_threshold: major_outage

      - name: Deploy to GitHub Pages
        if: success()
        uses: crazy-max/ghaction-github-pages@v2
        with:
          target_branch: gh-pages
          build_dir: bazel-bin
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Logs

logs_7.zip

@ewpratten
Copy link
Author

If needed, I can invite you to the private repo where this build is being run

@ewpratten
Copy link
Author

I added a shell script that manually copies files from inside the symlink to a local folder, and fixed the issue. I'm guessing that the built-in copy function isn't set up to handle symlinks

@crazy-max
Copy link
Owner

Hi @ewpratten, yes indeed, symlinks are not handled properly. I will push a fix. Thanks for your feedback.

@ewpratten
Copy link
Author

Alright, thank you. I'll close this issue

crazy-max added a commit that referenced this issue Aug 6, 2020
@crazy-max
Copy link
Owner

@ewpratten Should be fixed now

smoak pushed a commit to smoak/teamcowboy-graphql that referenced this issue Nov 11, 2020
Deploying is failing with the error

`Error: EEXIST: file already exists, symlink ...`

According to
crazy-max/ghaction-github-pages#121
the issue is fixed in newer versions. Attempting to use v2 to see if it
fixes the issue.
smoak added a commit to smoak/teamcowboy-graphql that referenced this issue Nov 11, 2020
Deploying is failing with the error

`Error: EEXIST: file already exists, symlink ...`

According to
crazy-max/ghaction-github-pages#121
the issue is fixed in newer versions. Attempting to use v2 to see if it
fixes the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants