Problem with Socketio on v15/dev, Browser Back Button Internal Error

Hey guys,

Got 2 problems since updating from v14 to v15/dev.

Socketio stopped working.

“[error] 147#147: *3 connect() failed (111: Unknown error) while connecting to upstream, client”

I have been trying to tackle the reason but without success.

Also another problem is, after going to an external link, then pressing back on the browser to go back to the previous page.
I sometimes get the error " Invalid Request " and then “Internal Server Error”. Then it becomes inaccessible for a while even after restart. It can happen to the domain but also to local IP, although only one or the other goes down indepedently after it happens.

Those two problems might be related, not sure.

So far, suspicion is about port 9000 being on IPv6 instead of IPv4.

Perhaps a conflict or nginx problem.

Details of install:

  • Manual Install
  • Ubuntu 22.04

Apps:

  • Frappe Builder: v1.0.0-dev
  • Frappe Changemakers: v1.0.0
  • commit: v1.0.0
  • Frappe Drive: v0.0.1
  • Ecommerce Integrations: v1.17.0
  • Education: v15.3.2
  • ERPNext: v16.0.0-dev
  • ERPNext Shipping: v14.3.4
  • Frappe Framework: v16.0.0-dev
  • Frappe Health: v16.0.0-dev
  • Helpdesk: v0.10.0
  • Frappe HR: v16.0.0-dev
  • Frappe Insights: v1.1.3
  • Frappe Lending: v0.0.1
  • Frappe LMS: v1.0.0
  • Payments: v0.0.1
  • Print Designer: v1.2.0
  • Raven: v1.6.3
  • Webshop: v0.0.1
  • Whitelabel: v0.0.1
  • Wiki: v2.0.0

Tried all NodeJs versions since v18 and didn’t fix the problem.

Downgraded to v15 on all possible apps, socketio now works.

Still got the problem where the server crashes when going to an external link and then coming back to frappe.

Realised that the crash only ocurred after having installed some other npm app which probably screwed up dependencies. Will have to go back on the back and fix things manually.

As a fun fact… the Back error was simply an IPv6 problem. Disabled IPv6, have no problems now.