YunoHost-Apps / n8n_ynh

n8n package for YunoHost
https://n8n.io/
GNU General Public License v3.0
14 stars 19 forks source link

Error 502 after updating from testing / Node.js version problem #46

Closed jlnbdt closed 8 months ago

jlnbdt commented 1 year ago

Describe the bug

Hi,

I'm trying to launch n8n after upgrading it from the testing branch, but I get a 502 error page. Seems related to Node.js version (see beelow).

Context

Kimsufi server. No weird stuff.

Logs

# yunohost service log n8n
journalctl: 
  - -- Journal begins at Sun 2023-05-21 18:13:07 CEST, ends at Thu 2023-08-17 00:35:55 CEST. --
  - Aug 17 00:31:22 systemd[1]: n8n.service: Main process exited, code=exited, status=1/FAILURE
  - Aug 17 00:31:22 systemd[1]: n8n.service: Failed with result 'exit-code'.
  - Aug 17 00:31:23 systemd[1]: n8n.service: Scheduled restart job, restart counter is at 5.
  - Aug 17 00:31:23 systemd[1]: Stopped n8n: Workflow Automation Tool.
  - Aug 17 00:31:23 systemd[1]: n8n.service: Start request repeated too quickly.
  - Aug 17 00:31:23 systemd[1]: n8n.service: Failed with result 'exit-code'.
  - Aug 17 00:31:23 systemd[1]: Failed to start n8n: Workflow Automation Tool.
  - Aug 17 00:35:53 systemd[1]: Started n8n: Workflow Automation Tool.
  - Aug 17 00:35:53 n8n[2877186]:         Your Node.js version (16.20.2) is currently not supported by n8n.
  - Aug 17 00:35:53 n8n[2877186]:         Please use Node.js v18 (recommended), or v20 instead!
  - Aug 17 00:35:53 n8n[2877186]:         
  - Aug 17 00:35:53 systemd[1]: n8n.service: Main process exited, code=exited, status=1/FAILURE
  - Aug 17 00:35:53 systemd[1]: n8n.service: Failed with result 'exit-code'.
  - Aug 17 00:35:53 systemd[1]: n8n.service: Scheduled restart job, restart counter is at 1.
  - Aug 17 00:35:53 systemd[1]: Stopped n8n: Workflow Automation Tool.
  - Aug 17 00:35:53 systemd[1]: Started n8n: Workflow Automation Tool.
  - Aug 17 00:35:53 n8n[2877196]:         Your Node.js version (16.20.2) is currently not supported by n8n.
  - Aug 17 00:35:53 n8n[2877196]:         Please use Node.js v18 (recommended), or v20 instead!
  - Aug 17 00:35:53 n8n[2877196]:         
  - Aug 17 00:35:53 systemd[1]: n8n.service: Main process exited, code=exited, status=1/FAILURE
  - Aug 17 00:35:53 systemd[1]: n8n.service: Failed with result 'exit-code'.
  - Aug 17 00:35:54 systemd[1]: n8n.service: Scheduled restart job, restart counter is at 2.
  - Aug 17 00:35:54 systemd[1]: Stopped n8n: Workflow Automation Tool.
  - Aug 17 00:35:54 systemd[1]: Started n8n: Workflow Automation Tool.
  - Aug 17 00:35:54 n8n[2877207]:         Your Node.js version (16.20.2) is currently not supported by n8n.
  - Aug 17 00:35:54 n8n[2877207]:         Please use Node.js v18 (recommended), or v20 instead!
  - Aug 17 00:35:54 n8n[2877207]:         
  - Aug 17 00:35:54 systemd[1]: n8n.service: Main process exited, code=exited, status=1/FAILURE
  - Aug 17 00:35:54 systemd[1]: n8n.service: Failed with result 'exit-code'.
  - Aug 17 00:35:54 systemd[1]: n8n.service: Scheduled restart job, restart counter is at 3.
  - Aug 17 00:35:54 systemd[1]: Stopped n8n: Workflow Automation Tool.
  - Aug 17 00:35:54 systemd[1]: Started n8n: Workflow Automation Tool.
  - Aug 17 00:35:54 n8n[2877216]:         Your Node.js version (16.20.2) is currently not supported by n8n.
  - Aug 17 00:35:54 n8n[2877216]:         Please use Node.js v18 (recommended), or v20 instead!
  - Aug 17 00:35:54 n8n[2877216]:         
  - Aug 17 00:35:54 systemd[1]: n8n.service: Main process exited, code=exited, status=1/FAILURE
  - Aug 17 00:35:54 systemd[1]: n8n.service: Failed with result 'exit-code'.
  - Aug 17 00:35:55 systemd[1]: n8n.service: Scheduled restart job, restart counter is at 4.
  - Aug 17 00:35:55 systemd[1]: Stopped n8n: Workflow Automation Tool.
  - Aug 17 00:35:55 systemd[1]: Started n8n: Workflow Automation Tool.
  - Aug 17 00:35:55 n8n[2877225]:         Your Node.js version (16.20.2) is currently not supported by n8n.
  - Aug 17 00:35:55 n8n[2877225]:         Please use Node.js v18 (recommended), or v20 instead!
  - Aug 17 00:35:55 n8n[2877225]:         
  - Aug 17 00:35:55 systemd[1]: n8n.service: Main process exited, code=exited, status=1/FAILURE
  - Aug 17 00:35:55 systemd[1]: n8n.service: Failed with result 'exit-code'.
  - Aug 17 00:35:55 systemd[1]: n8n.service: Scheduled restart job, restart counter is at 5.
  - Aug 17 00:35:55 systemd[1]: Stopped n8n: Workflow Automation Tool.
  - Aug 17 00:35:55 systemd[1]: n8n.service: Start request repeated too quickly.
  - Aug 17 00:35:55 systemd[1]: n8n.service: Failed with result 'exit-code'.
  - Aug 17 00:35:55 systemd[1]: Failed to start n8n: Workflow Automation Tool.
tituspijean commented 8 months ago

Latest version (1.9.3) ships NodeJS 20. Let's assume it is fixed now.