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.

EEXIST: file already exists

See original GitHub issue

Behaviour

When I am deploying a directory I am getting this error:

EEXIST: file already exists, mkdir '/tmp/github-pages-3fqEIE/lib/absinthe/priv'

I am using mix (elixir’s build tool) to build a release. After running, mix will create a _build/prod directory with all the files needed to run the app.

Expected behaviour

Deploys as usual

Actual behaviour

Error: EEXIST: file already exists, mkdir '/tmp/github-pages-3fqEIE/lib/absinthe/priv'

Configuration

name: Deploy
on:
  push:
    branches:
      - master
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - name: Setup Elixir
        uses: actions/setup-elixir@v1.0.0
        with:
          otp-version: 22.x
          elixir-version: 1.9.x
      - name: Install Deps
        run: mix deps.get
      - name: Lint
        run: |
          mix format --check-formatted
          mix credo --ignore readability --strict
      - name: Test
        run: mix test --cover
        env:
          MIX_ENV: test
      - name: Build Relase
        if: success()
        run: mix release
        env:
          TC_PUBLIC_API_KEY: ${{ secrets.TC_PUBLIC_API_KEY }}
          TC_PRIVATE_API_KEY: ${{ secrets.TC_PRIVATE_API_KEY }}
          MIX_ENV: prod
      - name: Deploy
        if: success()
        uses: crazy-max/ghaction-github-pages@v2
        with:
          target_branch: production
          build_dir: _build/prod
          keep_history: true
          allow_empty_commit: false
          commit_message: "Production deploy"
          jekyll: false
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Logs

logs_9.zip

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
crazy-maxcommented, Nov 11, 2020

@smoak

Unable to resolve action crazy-max/ghaction-github-pages@master, unable to find version master

Oh sorry it’s crazy-max/ghaction-github-pages@dev

0reactions
smoakcommented, Nov 12, 2020

@crazy-max Thanks! I’ll look into what’s going on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm error on every command: EEXIST: file already exists ...
I'm just new to node and npm and this is frustrating. Well it's almost all said in the title. On a Windows 10...
Read more >
Error: EEXIST: file already exists when output directory ...
I have verified this doesn't have anything to do with Jest or the particular structure of the reports folder - changing the junit...
Read more >
TypeScript: file already exists, symlink & tsc command not ...
Let's see how it works by installing TypeScript again. But things are not that simple. npm ERR! code EEXIST npm ERR! path /Users/username/.npm ......
Read more >
Yarn install fails with 'EEXIST: file already exists, symlink ...'
error An unexpected error occurred: "EEXIST: file already exists, symlink '../../../../core/nuxt-theme-module' ...
Read more >
Unable to setup stencil-cli - BigCommerce Support
npm ERR! code EEXIST ... EEXIST: file already exists, ... File exists: C:\Users\junaidahmed\AppData\Roaming\npm\stencil.ps1. npm ERR!
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