Hello all dev..
How are you? i hope we fine anywhere and anytime,
ok langsung saja,,, di sini saya mau share,, bagaimana mengatasi error saat deploy node js / express js ke IIS web server..
dalam case saya,,,saya mendapatkan error seperti ini :
HRESULT: 0x2HTTP status: 500HTTP subStatus: 1002HTTP reason: Internal Server ErrorYou are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The last 64k of the output generated by the node.exe process to stderr is shown below:
Application has thrown an uncaught exception and is terminated: Error: EPERM: operation not permitted, lstat 'C:\Users\Administrator' at Object.realpathSync (fs.js:1461:7) .....
untuk mengatasi error tersebut berikut step step yang saya coba :
1. Pastikan node js dan module iisnode sudah terinstall
2. Pada folder Web yang akan kita deploy,, beri akses ke IIS_IUSR
3. Jika masih error, coba periksa kembali letak folder web nya,,
4. Dalam case saya,, saya meletakkan folder web untuk di deploy di C:\Users\{nama_user_komputer}
5. Beri Akses IIS_IUSR ke root {nama_user_komputer}
6. Restart server iis
7. done
saya mencoba step2 diatas dan berhasil,,,
buat teman2 yang mengalami hal serupa,,semoga ini dapat membantu..😀
Okay, i hope this is so helpfully for us, and good luck in our life, thanks.☺
Komentar
Posting Komentar