2 months ago
Hi, I wanted to start a Neo4j service that attaches to a volume. I created a Neo4j template and deployed it last 2 months ago to a different environment and it worked (seems like it's on GCP not Metal). I tried it creating a new service based on the template today and now I'm getting a failure to get the physical memory.
I've tried different versions of Neo4j (v4 and v5) and also added env vars to increase the initial heap size and max size but I'm getting similar error messages.
I'm wondering if this is an issue with volumes and images on Metal. Can anyone assist?
```
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/3e8efd1e-ad4e-4964-9910-2c13a2104dc4/vol_11qjlc3608y1q96j
Starting Container
Changed password for user 'neo4j'.
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.neo4j.memory.MachineMemory$1.getTotalPhysicalMemory(MachineMemory.java:45)
at org.neo4j.server.NeoBootstrapper.requestedMemoryExceedsAvailable(NeoBootstrapper.java:200)
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:129)
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:95)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:34)
Caused by: java.lang.NullPointerException
at java.base/jdk.internal.platform.cgroupv2.CgroupV2Subsystem.getInstance(CgroupV2Subsystem.java:81)
at java.base/jdk.internal.platform.CgroupSubsystemFactory.create(CgroupSubsystemFactory.java:113)
at java.base/jdk.internal.platform.CgroupMetrics.getInstance(CgroupMetrics.java:167)
at java.base/jdk.internal.platform.SystemMetrics.instance(SystemMetrics.java:29)
at java.base/jdk.internal.platform.Metrics.systemMetrics(Metrics.java:58)
at java.base/jdk.internal.platform.Container.metrics(Container.java:43)
at jdk.management/com.sun.management.internal.OperatingSystemImpl.<init>(OperatingSystemImpl.java:182)
at java.management/java.lang.management.ManagementFactory.getPlatformMXBean(ManagementFactory.java:686)
at org.neo4j.io.os.OsBeanUtil.<clinit>(OsBeanUtil.java:40)
... 5 more
2025-04-02 16:47:43.341+0000 INFO Neo4j Server shutdown initiated by request
2025-04-02 16:47:43.343+0000 INFO Stopped.
```
1 Replies
2 months ago
Hello,
I'm sorry but we cannot provide support for 3rd party software as these forums are for Railway platform or product support and this this error does not pertain to the Railway platform or product, for support with neo4j please ask in their forums.
Best,
Brody
Status changed to Closed brody • about 2 months ago