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
The service is no longer running immediately logged when npm run dev
#18
Comments
Odd! Does this reproduce successfully every time you start? I'm kinda thinking this was a fluke that's probably not easy/worth investigating 😬 |
It happens every time I run it! I've tried about 30 times and haven't had a single run where it didn't have the same behavior. ❯ node -v ❯ npm -v |
Dang! It looks like the error is coming from blues-stack/other/pm2.config.js Line 13 in c2e893c
|
With that line commented the large error message is gone.
|
I've seen someone else report this same issue. I'm still unable to reproduce this personally. Maybe we should come up with a different approach for what we're doing. I like using esbuild-register, but we could use ts-node instead... |
I can confirm the existence of the bug, I have it with the original blues stack without any modification on Windows 11 WSL 2 (Ubuntu) with the following versions:
For me, this error does not occur at the first launch after booting the PC. |
If I comment out the "Server Build" aspect of pm2 we don't cause "Server" to be restarted halfway through boot-up, removing the error.
I don't see any way in pm2 for an app to be dependent on another app, would be great to have "Server" wait for "Server Build" to be complete before starting. |
I noticed the same issue in a fresh project. Commenting out this line seems to remove the problem. Is there some other information I could provide to help with debugging? 🙂 |
Same here, happy to help just unsure how 😄 |
Switched to ts-node and now it works great :) |
Same issue here. I have a pipeline setup in ArgoCD to build my Remix app. Argo says everything was successful, then after about 30 seconds of watching the log I get:
I run node 16.x. I also load pm2 in my Github Action but nothing fancy. You mention ts-node - where do I use that? btw: This happens in dev and prod mode. |
What version of Remix are you using?
1.3.1
Steps to Reproduce
cd
into the directorynpm run docker
npm run setup
npm run dev
Expected Behavior
pm2 should launch the application and supporting watches with no errors displayed.
Actual Behavior
Eventually all applications succeed to launch, but Server fails the first time it is run with
Error: The service is no longer running
.After pm2 restarts Server it successfully runs on the second launch.
The text was updated successfully, but these errors were encountered: