Next Trace EPERM Error: server already running - how can I stop it?

default discord avatar
taun2160
6 months ago
6

Hi. How can I stop the server to rerun it? If it's already running I receive a Next trace eperm error:


 yarn run v1.22.19
$ ts-node server.ts
[14:04:35] INFO (payload): Connected to Mongo server successfully!
[14:04:35] INFO (payload): Starting Payload...
info  - Loaded env from F:\git\Melex\Mono-repo\Melex_Mono_1\.env
event - compiled client and server successfully in 2.5s (160 modules)
uncaughtException [Error: EPERM: operation not permitted, open 'F:\git\Melex\Mono-repo\Melex_Mono_1\.next\trace'] {
  errno: -4048,
  code: 'EPERM',
  syscall: 'open',
  path: 'F:\\git\\Melex\\Mono-repo\\Melex_Mono_1\\.next\\trace'
}
error Command failed with exit code 1.


I'm using custom next server mono-repo template


https://github.com/taunhealy/Melex_Mono_1
  • default discord avatar
    martafiixek
    6 months ago

    Kill Node.js processes

  • default discord avatar
    notchr
    6 months ago

    @taun2160 Which operating system?

  • default discord avatar
    taun2160
    6 months ago

    Windows.

  • default discord avatar
    martafiixek
    6 months ago

    I sometimes shut down the terminal that I ran Next.js app with, yet the Node.js process still runs



    Therefore you have to go into task manager and kill it the Node process manually

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.