-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 install hangs sporadically #5831
Comments
Having done some probing with Wireshark, bun doesn't even appear to be hitting the network, so maybe it's hanging before even making the request? |
I suspect its caused by an error causing the install to fail, but still waiting for the pending tasks to complete. I've seen this happen when the same dependencies are declared in |
If left for long enough, the install will either fail with |
I suspect this may be to do with IPv6 issues on my machine - will wait and see if it still happens after fixing those. If that is the issue, it may be that bun may be locking in to using IPv6 too early, without also trying IPv4 in parallel like |
I think it was due to not handling 304 Not Modified with an unspecified Content-Length while fetching cached manifest entries If you still see it though, lmk |
The same problem with Bun 1.0.6, it hangs for minutes: $bun x github:piuccio/cowsay |
I had this issue too, disabled IPv6, and it worked again. |
Having this issue all the sudden... latest version of Bun trying to make a SvelteKit app. |
this is still alive.... at least it takes a long long time to install any stuff (still sporadically and already made sure it wasn't any other thing) |
Also having this issue but the process stucks not on the |
every time the I’ve struggled with this, however, it ends up self healing
after a `pkill bun` or a reboot
…On Thu 4 Jul 2024 at 15:42 Alexander Orlov ***@***.***> wrote:
Also having this issue but the process stucks not on the 🔍 Resolving
[1/1] but on dependency install(each time random dependency)
Versions I've tried on: 1.1.6, 1.1.17, 1.1.18, 1.1.18-canary
Clearing cache and even full bun reinstall haven't solve the problem
—
Reply to this email directly, view it on GitHub
<#5831 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALP4QRLJVEDJAHU6LNBTWADZKXFWTAVCNFSM6AAAAAA5ARWMWCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBZGYYTQOJRGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
My colleague running on intel (x64) macbook reported the same issue. I haven't faced anything like that running on m1 macbook. Though recently it was working fine for both of us |
If you’re still running into this issue can you run the following
that will install a copy of bun from #12357 as can you try running |
|
Are you on Linux? Can you set GOMAXPROCS=1 and run And can you include the package.json + bun.lockb (if it exists. If we can see the system calls then we can It would be helpful to find out which system calls are being run. GOMAXPROCS=1 sets the maximum number of threads to 1 which will make it more deterministic. |
We found dependency that causing this issue and it's not from npm but in format |
This and other unreachable assets could be the root cause. I say this because I’ve experienced the Behavior in both cases: Not found assets or bad links, And
being nothing at all... it could be maybe a hanging process because a reboot fixes it when you have no broken stuff to fix. Something that needs a reset that makes bun get stuck (yes, deeper than a simpler process kill).
…On Fri 5 Jul 2024 at 9:50 Alexander Orlov ***@***.***> wrote:
Are you on Linux? Can you set GOMAXPROCS=1 and run perf trace bun install?
Might need sudo.
And can you include the package.json + bun.lockb (if it exists. If we can
see the system calls then we can It would be helpful to find out which
system calls are being run. GOMAXPROCS=1 sets the maximum number of threads
to 1 which will make it more deterministic.
We found dependency that causing this issue and it's not from npm but in
format github:{organization}/{repo}#master
If I remove this dependency bun install works ok
I'm on macbook x64
—
Reply to this email directly, view it on GitHub
<#5831 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALP4QROUC74CCRY4ODANC6LZK3FFRAVCNFSM6AAAAAA5ARWMWCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRGE3DCNBUGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Link is ok because my teammate doesn't experiencing any problems with it |
I can't even try that because that also hangs and doesn't exit |
Have the same issue
just wondering, what are those 2 tasks on the log ? |
Also facing the same error, running ubuntu 20 here |
Facing the same issue with Debian with version > |
For me I was using a VPN, and disabling that worked. Might be the same issue for some here. |
I'm still facing this issue in ubuntu 22.04 |
Issue was resolved for me, I was using docker:19-dind instead of the latest version. |
I came across this issue on |
Ran into this problem today on PopOs 22.04. |
It also happens when I try to install on Linux with the To fix it, just delete |
I'm sorry @jhaemin, but this isn't true. I tried with and without bun.lockb in project, also with and without VPN turned on. Nothing in the thread so far fixed the issue for me. |
@nemanjamitric Yeah, unfortunately sometimes it works and sometimes not. Do you still have problem after deleting both |
@jhaemin unfortunately yes. I've been trying to fix it for a week now... I just wanted to mention that it's not a definitive fix to keep the thread open. |
@nemanjamitric I agree that deleting lockb is not a definitive fix. The issue should be reopened. |
I've not been using bun for a while; today tried to install a package and Bun was hanging 100% of the time. |
Ran into this problem on Windows 11. In case someone have the same issue on Windows, the solution was to disable Ethernet in Advanced network settings, and then re-enable it. |
Same here, wsl and Cloudflare Warp was lead to hangs on Reslolving |
Wasted ~3 hours on this, eventually migrated my Dockerfile to |
This issue should be reopened. |
I’m having the issue right now on MacOS and I’ve tried already to delete lock files. It didn’t work. But what has worked is to re-connect internet connection. Someone above mentioned it for Windows and Ethernet. I have reconnected my WiFi and I solved the issue. Pretty weird error and fix as well. |
I'm having this issue on MacOS too, I deleted the folder |
Yeah, i also have this issue, usually i would stop the running process and restart but it's kinda inconvenient. |
#4066 Is this issue related? |
I'm on Bun v1.1.33, Ubuntu 24.04.1 LTS I am still facing this issue. I'm not using any proxy. |
I'm on Bun v1.1.33 on Arch btw. I've tried restarting my pc, downgrading and reinstalling. I'm not using any vpn or warp. Sounds like something on my side maybe? ❯ bun i --verbose
[0.01ms] ".env"
bun install v1.1.33 (247456b6)
info: cannot move files from tempdir: RenameAcrossMountPoints, using fallback
Enqueue package manifest for download: @biomejs/biome
Enqueue package manifest for download: @remix-run/dev
Enqueue package manifest for download: @types/react
Enqueue package manifest for download: @types/react-dom
Enqueue package manifest for download: autoprefixer
Enqueue package manifest for download: drizzle-kit
Enqueue package manifest for download: postcss
Enqueue package manifest for download: remix-flat-routes
Enqueue package manifest for download: tailwindcss
Enqueue package manifest for download: typescript
Enqueue package manifest for download: vite
Enqueue package manifest for download: vite-tsconfig-paths
Enqueue package manifest for download: @radix-ui/react-avatar
Enqueue package manifest for download: @radix-ui/react-scroll-area
Enqueue package manifest for download: @radix-ui/react-slot
Enqueue package manifest for download: @remix-run/node
Enqueue package manifest for download: @remix-run/react
Enqueue package manifest for download: @remix-run/serve
Enqueue package manifest for download: class-variance-authority
Enqueue package manifest for download: clsx
Enqueue package manifest for download: drizzle-orm
Enqueue package manifest for download: drizzle-zod
Enqueue package manifest for download: isbot
Enqueue package manifest for download: lucide-react
Enqueue package manifest for download: postgres
Enqueue package manifest for download: react
Enqueue package manifest for download: react-dom
Enqueue package manifest for download: tailwind-merge
Enqueue package manifest for download: tailwindcss-animate
🔍 Resolving [1/29] [PackageManager] waiting for 29 tasks
🔍 Resolving [1/29] [PackageManager] waiting for 29 tasks
🔍 Resolving [1/29] [PackageManager] waiting for 29 tasks
🔍 Resolving [1/29] [PackageManager] waiting for 29 tasks
[PackageManager] waiting for 29 tasks |
The bun install step in my Dockerfile hangs every time. Here is the Dockerfile: FROM oven/bun:1.1.34
WORKDIR /app
RUN apt-get update && apt-get install -y \
python3 \
python-is-python3 \
make \
g++ \
curl
COPY package.json turbo.json ./
COPY apps/frontend/package.json ./apps/frontend/
COPY apps/backend/package.json ./apps/backend/
# This step always hangs
RUN bun install --production --frozen-lockfile
COPY apps ./apps
EXPOSE 8000 5050 4000
ENV NODE_ENV=production
WORKDIR /app/apps/backend
CMD ["bun", "run", "dev"]
And here are the logs: Step 17/27 : RUN bun install --production --frozen-lockfile
---> Running in f56105ef21df
bun install v1.1.34 (5e5e7c60)
Resolving dependencies
Resolved, downloaded and extracted [7718] It never reaches step 18. No errors, it just freezes. |
same issue here... |
experiencing the same thing, very frustrating the amount of time I have wasted |
same here,
edit: turn off ipv6 and it works |
Same problem. Disabling ipv6 fixed it. Also on
|
Switching to the FROM node:20.18.0
WORKDIR /app
# Install Bun and other dependencies
RUN apt-get update -qq && apt-get install -y -qq \
python3 \
python-is-python3 \
make \
g++ \
bash \
curl \
build-essential \
node-gyp \
python3-pip && \
curl -fsSL https://bun.sh/install | bash
# Add Bun to PATH
ENV PATH="/root/.bun/bin:${PATH}"
COPY package.json turbo.json ./
COPY apps/frontend/package.json ./apps/frontend/
COPY apps/backend/package.json ./apps/backend/
# This step does not hang/freeze anymore
RUN bun install
COPY packages ./packages
COPY apps ./apps
EXPOSE 8000 5050 4000
ENV NODE_ENV=production
WORKDIR /app/apps/backend
CMD ["bun", "run", "dev"] In this version, the |
What version of Bun is running?
1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49
What platform is your computer?
Linux 6.4.15-200.fc38.x86_64 x86_64 unknown
What steps can reproduce the bug?
bun install
in a project with dependencies,bun add <package>
,bunx <package>
, etcWhat is the expected behavior?
The packages should install quickly
What do you see instead?
Bun gets stuck on
🔍 Resolving [1/1]
for minutes at a time, progressing extremely slowlyAdditional information
This issue occurs sporadically, but when it does happen it continues happening for a significant period of time (upwards of 10 minutes) and simply killing bun and restarting the install does not help
The text was updated successfully, but these errors were encountered: