-
Notifications
You must be signed in to change notification settings - Fork 569
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
worker: listen EADDRINUSE: address already in use #885
Comments
The most common occurrence of this error is when using Nuxt in Docker. |
Actually not "often", I have this bug on every container restart. |
My current work around in nuxt is to just re-save When I have more time, I can see if I can find the exact cause of it myself. But my guess is that it is some kind of race condition. For now here is some information dump (In the last restart it worked):
|
I put together a sample Nuxt 3 project repo with Docker support + resolving this bug https://github.com/misaon/nuxt-docker. |
Same problem. It's like nitro do not recive stop signal from docker and do not clean up its stuff. My minimal representation:
version: "3.8"
services:
nuxt:
container_name: nuxt
build:
context: .
dockerfile: ./docker/nuxt.Dockerfile
ports:
- 3000:3000
FROM node:18.16.0
RUN apt-get update
WORKDIR /nuxt
COPY ./nuxt .
RUN npm ci
ENTRYPOINT [ "npm", "run", "dev" ] |
I am getting this issue without any EDIT: resolved by killing old stale |
Getting the same issue with docker and Nitro 2.6.0 and Nuxt 3.6.5. Cannot |
thank you , i use 'killall node' and it works fine |
Ensure nitro doesn't leave stale worker sockets before attempting to serve. nitrojs/nitro#885 Also update config inline with current v3 docs
Ensure nitro doesn't leave stale worker sockets before attempting to serve. nitrojs/nitro#885 Also update config inline with current v3 docs
* Fix incorrect readme example * Upgrade minor packages Ensure host is set to 0.0.0.0 * Fix nuxt nitro issues Ensure nitro doesn't leave stale worker sockets before attempting to serve. nitrojs/nitro#885 Also update config inline with current v3 docs * Update depepdency review Use v3 and only fail on high and critical severity CVE's. * Update to node18 * Improve reliability of the modal selector `.userback-controls` is always present, no matter the user configuration.
This is still an issue. nuxt 3.11.2 and just one dependency, @nuxt/ui Dockerfile:
Fixed with
in docker-compose |
I have messed around with this a little bit. I ran in to the issue since Im setting up my both my prod and dev environment and I want to be able to run them at the same time. All I had to change was running them on different ports, prod on 3000 and mapped to 8080 while dev is on 3001 and mapped to 3000. Could be that when Nitro runs in the docker container and another container has the 3000 port mapped it triggers this error, even if its not turned on. |
We have been using this solution ( |
Context: nuxt/nuxt#13587
This error often happens randomly with dev server running in a container.
The text was updated successfully, but these errors were encountered: