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

Bun setup fails when other bun apps are running on the background. #49

Open
Kochiyama opened this issue Jan 15, 2024 · 0 comments
Open

Comments

@Kochiyama
Copy link

Kochiyama commented Jan 15, 2024

I've set up the ci/cd using Github actions as following:

name: Deploy on Test Server
run-name: ${{ github.actor }} is deploying to test server

on:
  push:
    branches:
      - development

jobs:
  deploy:
    runs-on: test

    steps:
      - name: Checkout Project
        uses: actions/checkout@v4

      - name: Create env file
        run: cp ../.env .env.local

      - name: Setup bun
        uses: oven-sh/setup-bun@v1

      - name: Install dependencies
        run: bun install

      - name: Generate Build
        run: bun run build

      - name: Restart process
        run: pm2 restart myapp

But, when the setup-bun action can't setup bun without stopping every other process running bun, ci error:

Run oven-sh/setup-bun@v1
  with:
    bun-version: latest
Downloading a new version of Bun: https://bun.sh/download/latest/linux/x64?avx[2](https://github.com/whatstalk/whatstalk-web/actions/runs/7533224581/job/20505337934#step:5:2)=true&profile=false
/usr/bin/unzip -o -q /usr/apps/_temp/bd9fb8b4-08[3](https://github.com/whatstalk/whatstalk-web/actions/runs/7533224581/job/20505337934#step:5:3)e-[4](https://github.com/whatstalk/whatstalk-web/actions/runs/7533224581/job/20505337934#step:5:5)7f[5](https://github.com/whatstalk/whatstalk-web/actions/runs/7533224581/job/20505337934#step:5:6)-9e[6](https://github.com/whatstalk/whatstalk-web/actions/runs/7533224581/job/20505337934#step:5:7)d-0c4d8cc2430a
Error: Error: ETXTBSY: text file is busy, copyfile '/usr/apps/_temp/3625e59f-8c63-4659-90a9-ede291cca2fc/bun-linux-x64-baseline/bun' -> '/home/marcelokochiyama/.bun/bin/bun'

It is an expected behaviour or it should work even with other apps running with bun on the background?

@Kochiyama Kochiyama changed the title setup-bun can't setup bun when a bun process ir running Bun setup fails when other bun apps are running on the background. Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant