https://linen.dev logo
Hi, I'm having this issue, attached the
# mirrord-help
h
Hi, I'm having this issue, attached the full log and the config file node:internal/process/promises:394 triggerUncaughtException(err, true /* fromPromise */); ^ Error: connect Unknown system error -111 127.0.0.1:4200 - Local (0.0.0.0:0) at internalConnect (node:net:1115:16) at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) at node:net:1353:9 at process.processTicksAndRejections (node:internal/process/task_queues:85:11) { errno: -111, code: 'Unknown system error -111', syscall: 'connect', address: '127.0.0.1', port: 4200 } Any ideas on how to solve it? thanks. https://cdn.discordapp.com/attachments/950020257156833340/1367210380962693231/mirrord.json?ex=6813c164&is=68126fe4&hm=61adc1614c50197d00ccd4ca12faa0b37c6faafdef147525cb0c66a2d4206ebc& https://cdn.discordapp.com/attachments/950020257156833340/1367210381369409536/agent.log?ex=6813c164&is=68126fe4&hm=d5e221f096b2d5d9b42771137fc6f0b1e4f725e4c9ffe75057ae7c7618081f6d&
a
You know what's on 127.0.0.1:4200?
h
it should be the web app that runs when executing pnpm nx serve mysite.com
If I run it in that command on my local machine it runs the website in that port
When I run the command with the mirrord cli tool, that error happens
A successfull run would display this > nx run mysite.com:serve:development ▲ Next.js 15.2.4 - Local: http://localhost:4200 - Network: http://192.168.68.124:4200 - Environments: .env - Experiments (use with caution): ✓ viewTransition ✓ Starting... ⚠ Invalid next.config.ts options detected: ⚠ Unrecognized key(s) in object: 'nx' ⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config ○ Compiling /instrumentation ... ✓ Compiled /instrumentation in 2.4s (3332 modules) ✓ Ready in 5.3s
It seems that the mirrod does not waint until the web server is up
a
Care to explain? I’d try ignore localhost or be true on outgoing to see maybe it helps
h
Thanks for the help @User Updating outgoing.ignore_localhost= true made application continue starting but I am still getting these errors
Mainly: EvalError: Code generation from strings disallowed for this context It is weird why I'm getting the warnings below, if i run the same command in the same terminal without mirrord I do not get those warnings. ⚠ You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env ⚠ Invalid next.config.ts options detected: ⚠ Unrecognized key(s) in object: 'nx' ⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
a
I think maybe the env brought from remote env is causing the app to behave differently and perhaps enforce different rules. You can try to use env.override and set NODE_ENV to dev (or other keys) to make it work as you expect
h
After overriding with NODE_ENV=development, the app starts successfully but when trying to access a path the process constantly runs out of memory, I will keep digging, in the meantime disabling the environment variables worked for me, thanks very much for your help @Aviram Hassan
a
You’re welcome. What kind of path is it trying to open?
h
a
Sorry I thought yuu meant a file
h
My bad, I did not specify