Skip to content
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

Error restarting the server after updating any backend file #38

Open
rida-rechrache opened this issue Oct 14, 2024 · 9 comments
Open

Error restarting the server after updating any backend file #38

rida-rechrache opened this issue Oct 14, 2024 · 9 comments

Comments

@rida-rechrache
Copy link

rida-rechrache commented Oct 14, 2024

Hello,
my server gets an error kill EPERM when I make a modification to any backend file, here is my error:

medusa-starter-default:dev: info: src\api\store\wishlists\route.ts modified: Restarting dev server medusa-starter-default:dev: Error: kill EPERM medusa-starter-default:dev: at ChildProcess.kill (node:internal/child_process:511:26) medusa-starter-default:dev: at Object.restart (C:\Users\Rida\worksapace\medusa\b2b-starter-medusa\node_modules\@medusajs\medusa\src\commands\develop.ts:79:27) medusa-starter-default:dev: at FSWatcher.<anonymous> (C:\Users\Rida\worksapace\medusa\b2b-starter-medusa\node_modules\@medusajs\medusa\src\commands\develop.ts:117:14) medusa-starter-default:dev: at FSWatcher.emit (node:events:519:28) medusa-starter-default:dev: at FSWatcher.emit (node:domain:488:12) medusa-starter-default:dev: at FSWatcher.emitWithAll (C:\Users\Rida\worksapace\medusa\b2b-starter-medusa\node_modules\chokidar\index.js:540:8) medusa-starter-default:dev: at FSWatcher._emit (C:\Users\Rida\worksapace\medusa\b2b-starter-medusa\node_modules\chokidar\index.js:632:8) medusa-starter-default:dev: at listener (C:\Users\Rida\worksapace\medusa\b2b-starter-medusa\node_modules\chokidar\lib\nodefs-handler.js:370:20) { medusa-starter-default:dev: errno: -4048, medusa-starter-default:dev: code: 'EPERM', medusa-starter-default:dev: syscall: 'kill' medusa-starter-default:dev: }

Windows : 64
even if with cmd in administrator mode
image

@VariableVic
Copy link
Collaborator

VariableVic commented Oct 14, 2024

Hey Rida,

That's annoying. Unfortunately I don't have a lot of experience debugging Windows-specific errors.
Do other Node projects suffer from the same issue, or is it Medusa-specific? What Node version are you running?

If your Node version is compatible and you have full write-access to the files, you could consider switching to WSL if you haven't already.

If other Windows users run into similar issues, please let me know.

@rida-rechrache
Copy link
Author

hello @VariableVic

Thanks for getting back to me! It seems to be Medusa-specific as I haven't encountered similar issues with other Node projects.
I'm currently running Node version
image

, which should be compatible with Medusa.

I do have full write-access, so I might give WSL a shot as you suggested. I'll keep you updated if I run into any other problems or find a solution. If don't know other users face the same issue, I'll definitely let you know!

Thanks again for the help.

@riqwan
Copy link
Contributor

riqwan commented Oct 22, 2024

Hey @rida-rechrache is this still an issue?

@rida-rechrache
Copy link
Author

Hi @riqwan
Yes, I always have this issue on my Windows,
I tried to install WSL on my Windows, but I don't have enough space for that.

@riqwan
Copy link
Contributor

riqwan commented Oct 22, 2024

Let me push the latest release version, maybe its already been fixed.

@riqwan
Copy link
Contributor

riqwan commented Oct 22, 2024

@rida-rechrache can you try a fresh install and see if its still showing up?

@rida-rechrache
Copy link
Author

Hi @riqwan
Even with the migration of Medusa, I always have this issue on my Windows.

@riqwan
Copy link
Contributor

riqwan commented Nov 13, 2024

@rida-rechrache I'm back on Monday, will help debug this once I'm back. Let me know if you've progressed in the meantime.

@rida-rechrache
Copy link
Author

Hi @riqwan
Even with the migration of Medusa & next 15, I always have this issue on my Windows.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants