Skip to content

PM2 fails in cluster mode for localhost because it defaults to IPv6 over IPv4 #4960

@bram-atmire

Description

@bram-atmire

Describe the bug

If you follow the DSpace installation instructions, that includes a PM2 snippet to run PM2 in cluster mode, it doesn't work.

To Reproduce

Steps to reproduce the behavior:

  1. Install DSpace 10 bleeding edge front & back end (including Angular 20)
  2. Run angular with pm2 start ... with pm2 in cluster mode

Expected behavior

It should work

Observed behaviour

The pm2 logs have various flavours of no _links section found errors

Cause

In a localhost setup, where tomcat is only listening on ipv4, Angular can't connect because it's trying over IPv6

Related work

This appears since Angular 17: nodejs/node#40537

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triageNew issue needs triage and/or scheduling

    Type

    No type

    Projects

    Status

    🆕 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions