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.

File already exists error

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
crazy-maxcommented, Aug 6, 2020

@Ewpratten Should be fixed now

0reactions
ewprattencommented, Aug 6, 2020

Alright, thank you. I’ll close this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Exception codes, or detecting a "file already exists" type ...
I am therefore left wondering how to determine if the IOException is the result of an existing file, or some other IO error....
Read more >
Fix File Already Exists
The error message "File Already Exists" or "File Already in Use" indicates that a file CTI Navigator Desktop is attempting to use is...
Read more >
Message - The file already exists. Do you want to overwrite it?
TestComplete displays this message when it needs to save data to a file and the target file already exists. This may happen, for...
Read more >
SFTP write fail - error is incorrect, file doesn't exist.
txt' because it already exists and write mode 'CREATE_NEW' was selected. Use a different write mode or point to a path which doesn't...
Read more >
Error: File already exists - Sawtooth Software
When starting SSI Web, the error "File already exists - 58" is displayed. ... We've seen this problem with installations in a lab...
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