TeamPiped / Piped-Docker

MIT License
39 stars 32 forks source link

Backend boot problem on minipc #26

Closed anzerr closed 1 year ago

anzerr commented 1 year ago

Tried running the project on minipc I've got I'm getting problems with the backend(1337kavin/piped:latest)

I'll crash with this error

Error: Port Library failed to initialize: -86
piped-backend | Error: Could not create the Java Virtual Machine.
piped-backend | Error: A fatal exception has occurred. Program will exit.

So I tried building the image from Piped-Backend but I'm getting a few errors

ERROR: JAVA_HOME is set to an invalid directory: /opt/java/openjdk

Checked /opt/java/openjdk/bin/java it exists and it can be executed I even forced it -rwxrwxrwx 1 root root 16320 Aug 17 11:55 /opt/java/openjdk/bin/java I skipped the check to see if that was the only error.

[0.005s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# An error report file with more information is saved as:
# /app/hs_err_pid6.log

output from "/app/hs_err_pid6.log"

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
#   JVM is running with Unscaled Compressed Oops mode in which the Java heap is
#     placed in the first 4GB address space. The Java Heap base address is the
#     maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
#     to set the Java Heap base and to place the Java Heap above 4GB virtual address.
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (workerManager.hpp:87), pid=6, tid=6
#
# JRE version:  (17.0.4.1+1) (build )
# Java VM: OpenJDK 64-Bit Server VM (17.0.4.1+1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /app/core.6)
#

---------------  S U M M A R Y ------------

Command Line: -Xmx64m -Xms64m -Dorg.gradle.appname=gradlew org.gradle.wrapper.GradleWrapperMain shadowJar

Host: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx, 8 cores, 15G, Ubuntu 22.04.1 LTS
Time: Fri Sep 16 14:54:30 2022 UTC elapsed time: 0.006217 seconds (0d 0h 0m 0s)

---------------  T H R E A D  ---------------

Current thread (0x000055e87fcd6190):  JavaThread "Unknown thread" [_thread_in_vm, id=6, stack(0x00007ffc3da6c000,0x00007ffc3e26c000)]

Stack: [0x00007ffc3da6c000,0x00007ffc3e26c000],  sp=0x00007ffc3e266af0,  free space=8170k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xed8f51]  VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x1a1
V  [libjvm.so+0xed9b1d]  VMError::report_and_die(Thread*, char const*, int, unsigned long, VMErrorType, char const*, __va_list_tag*)+0x2d
V  [libjvm.so+0x603823]  report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*, ...)+0xc3
V  [libjvm.so+0xf0d14f]  WorkerManager::add_workers(WorkGang*, unsigned int, unsigned int, unsigned int, os::ThreadType, bool)+0x18f
V  [libjvm.so+0xf0d2ea]  WorkGang::initialize_workers()+0x4a
V  [libjvm.so+0x6e98c1]  G1CollectedHeap::initialize()+0x6c1
V  [libjvm.so+0xe87502]  universe_init()+0xd2
V  [libjvm.so+0x7f5bd7]  init_globals()+0x37
V  [libjvm.so+0xe5e6f0]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x3a0
V  [libjvm.so+0x8b3122]  JNI_CreateJavaVM+0x52
C  [libjli.so+0x4a1f]  JavaMain+0x8f
C  [libjli.so+0x9a90]  CallJavaMainInNewThread+0xb0
C  [libjli.so+0x6a0d]  ContinueInNewThread+0x5d
C  [libjli.so+0x8166]  JLI_Launch+0x1566
C  [java+0x1203]  main+0x123

---------------  P R O C E S S  ---------------

Threads class SMR info:
_java_thread_list=0x00007f20277943a0, length=0, elements={
}

Java Threads: ( => current thread )

Other Threads:

[error occurred during error reporting (printing all threads), id 0xb, SIGSEGV (0xb) at pc=0x00007f2026b580b0]

VM state: not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x000055e87fcd3b80] Heap_lock - owner thread: 0x000055e87fcd6190

Heap address: 0x00000000fc000000, size: 64 MB, Compressed Oops mode: 32-bit

CDS archive(s) mapped at: [0x0000000000000000-0x0000000000000000-0x0000000000000000), size 0, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0.
Narrow klass base: 0x0000000000000000, Narrow klass shift: 0, Narrow klass range: 0x0

GC Precious Log:
<Empty>

Heap:
 garbage-first heap   total 0K, used 0K [0x00000000fc000000, 0x0000000100000000)
  region size 1024K, 0 young (0K), 0 survivors (0K)

[error occurred during error reporting (printing heap information), id 0xb, SIGSEGV (0xb) at pc=0x00007f2027119a0a]

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Classes unloaded (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (0 events):
No events

VM Operations (0 events):
No events

Events (2 events):
Event: 0.003 Protecting memory [0x00007ffc3da6c000,0x00007ffc3da70000] with protection modes 0
Event: 0.004 Loaded shared library /opt/java/openjdk/lib/libjava.so

Dynamic libraries:
fc000000-100000000 ---p 00000000 00:00 0
55e87f0aa000-55e87f0ab000 r--p 00000000 00:a3 659778                     /opt/java/openjdk/bin/java
55e87f0ab000-55e87f0ac000 r-xp 00001000 00:a3 659778                     /opt/java/openjdk/bin/java
55e87f0ac000-55e87f0ad000 r--p 00002000 00:a3 659778                     /opt/java/openjdk/bin/java
55e87f0ad000-55e87f0ae000 r--p 00002000 00:a3 659778                     /opt/java/openjdk/bin/java
55e87f0ae000-55e87f0af000 rw-p 00003000 00:a3 659778                     /opt/java/openjdk/bin/java
55e87fc9c000-55e87fd09000 rw-p 00000000 00:00 0                          [heap]
7f200e564000-7f200e94f000 rw-p 00000000 00:00 0
7f200e94f000-7f200e950000 ---p 00000000 00:00 0
7f200e950000-7f200ea56000 rw-p 00000000 00:00 0
7f200ea56000-7f200ecb6000 ---p 00000000 00:00 0
7f200ecb6000-7f200f4c3000 rw-p 00000000 00:00 0
7f200f4c3000-7f200f5a9000 ---p 00000000 00:00 0
7f200f5a9000-7f200f5ae000 rw-p 00000000 00:00 0
7f200f5ae000-7f200f694000 ---p 00000000 00:00 0
7f200f694000-7f200f699000 rw-p 00000000 00:00 0
7f200f699000-7f200f6a0000 ---p 00000000 00:00 0
7f200f6a0000-7f200f910000 rwxp 00000000 00:00 0
7f200f910000-7f200fc32000 ---p 00000000 00:00 0
7f200fc32000-7f200fea2000 rwxp 00000000 00:00 0
7f200fea2000-7f2017169000 ---p 00000000 00:00 0
7f2017169000-7f20173d9000 rwxp 00000000 00:00 0
7f20173d9000-7f201e6a0000 ---p 00000000 00:00 0
7f201e6a0000-7f201e6ad000 r--p 00000000 00:a3 659505                     /opt/java/openjdk/lib/libjava.so
7f201e6ad000-7f201e6bf000 r-xp 0000d000 00:a3 659505                     /opt/java/openjdk/lib/libjava.so
7f201e6bf000-7f201e6c5000 r--p 0001f000 00:a3 659505                     /opt/java/openjdk/lib/libjava.so
7f201e6c5000-7f201e6c6000 ---p 00025000 00:a3 659505                     /opt/java/openjdk/lib/libjava.so
7f201e6c6000-7f201e6c7000 r--p 00025000 00:a3 659505                     /opt/java/openjdk/lib/libjava.so
7f201e6c7000-7f201e6c8000 rw-p 00026000 00:a3 659505                     /opt/java/openjdk/lib/libjava.so
7f201e6c8000-7f201e6c9000 rw-p 00000000 00:00 0
7f201e6c9000-7f201e6d1000 rw-s 00000000 00:a3 660280                     /tmp/hsperfdata_root/6
7f201e6d1000-7f2026256000 r--s 00000000 00:a3 659529                     /opt/java/openjdk/lib/modules
7f2026256000-7f202625a000 r--p 00000000 00:a3 659509                     /opt/java/openjdk/lib/libjimage.so
7f202625a000-7f202626d000 r-xp 00004000 00:a3 659509                     /opt/java/openjdk/lib/libjimage.so
7f202626d000-7f2026273000 r--p 00017000 00:a3 659509                     /opt/java/openjdk/lib/libjimage.so
7f2026273000-7f2026275000 r--p 0001c000 00:a3 659509                     /opt/java/openjdk/lib/libjimage.so
7f2026275000-7f2026276000 rw-p 0001e000 00:a3 659509                     /opt/java/openjdk/lib/libjimage.so
7f2026276000-7f2026376000 rw-p 00000000 00:00 0
7f2026376000-7f2026384000 r--p 00000000 00:a3 525441                     /usr/lib/x86_64-linux-gnu/libm.so.6
7f2026384000-7f2026400000 r-xp 0000e000 00:a3 525441                     /usr/lib/x86_64-linux-gnu/libm.so.6
7f2026400000-7f202645b000 r--p 0008a000 00:a3 525441                     /usr/lib/x86_64-linux-gnu/libm.so.6
7f202645b000-7f202645c000 r--p 000e4000 00:a3 525441                     /usr/lib/x86_64-linux-gnu/libm.so.6
7f202645c000-7f202645d000 rw-p 000e5000 00:a3 525441                     /usr/lib/x86_64-linux-gnu/libm.so.6
7f202645d000-7f202645e000 r--p 00000000 00:a3 525486                     /usr/lib/x86_64-linux-gnu/librt.so.1
7f202645e000-7f202645f000 r-xp 00001000 00:a3 525486                     /usr/lib/x86_64-linux-gnu/librt.so.1
7f202645f000-7f2026460000 r--p 00002000 00:a3 525486                     /usr/lib/x86_64-linux-gnu/librt.so.1
7f2026460000-7f2026461000 r--p 00002000 00:a3 525486                     /usr/lib/x86_64-linux-gnu/librt.so.1
7f2026461000-7f2026462000 rw-p 00003000 00:a3 525486                     /usr/lib/x86_64-linux-gnu/librt.so.1
7f2026462000-7f20266b3000 r--p 00000000 00:a3 659541                     /opt/java/openjdk/lib/server/libjvm.so
7f20266b3000-7f20273cc000 r-xp 00251000 00:a3 659541                     /opt/java/openjdk/lib/server/libjvm.so
7f20273cc000-7f2027657000 r--p 00f6a000 00:a3 659541                     /opt/java/openjdk/lib/server/libjvm.so
7f2027657000-7f2027710000 r--p 011f4000 00:a3 659541                     /opt/java/openjdk/lib/server/libjvm.so
7f2027710000-7f2027745000 rw-p 012ad000 00:a3 659541                     /opt/java/openjdk/lib/server/libjvm.so
7f2027745000-7f20277a2000 rw-p 00000000 00:00 0
7f20277a2000-7f20277ca000 r--p 00000000 00:a3 525389                     /usr/lib/x86_64-linux-gnu/libc.so.6
7f20277ca000-7f202795f000 r-xp 00028000 00:a3 525389                     /usr/lib/x86_64-linux-gnu/libc.so.6
7f202795f000-7f20279b7000 r--p 001bd000 00:a3 525389                     /usr/lib/x86_64-linux-gnu/libc.so.6
7f20279b7000-7f20279bb000 r--p 00214000 00:a3 525389                     /usr/lib/x86_64-linux-gnu/libc.so.6
7f20279bb000-7f20279bd000 rw-p 00218000 00:a3 525389                     /usr/lib/x86_64-linux-gnu/libc.so.6
7f20279bd000-7f20279ca000 rw-p 00000000 00:00 0
7f20279ca000-7f20279cb000 r--p 00000000 00:a3 525403                     /usr/lib/x86_64-linux-gnu/libdl.so.2
7f20279cb000-7f20279cc000 r-xp 00001000 00:a3 525403                     /usr/lib/x86_64-linux-gnu/libdl.so.2
7f20279cc000-7f20279cd000 r--p 00002000 00:a3 525403                     /usr/lib/x86_64-linux-gnu/libdl.so.2
7f20279cd000-7f20279ce000 r--p 00002000 00:a3 525403                     /usr/lib/x86_64-linux-gnu/libdl.so.2
7f20279ce000-7f20279cf000 rw-p 00003000 00:a3 525403                     /usr/lib/x86_64-linux-gnu/libdl.so.2
7f20279cf000-7f20279d0000 r--p 00000000 00:a3 525484                     /usr/lib/x86_64-linux-gnu/libpthread.so.0
7f20279d0000-7f20279d1000 r-xp 00001000 00:a3 525484                     /usr/lib/x86_64-linux-gnu/libpthread.so.0
7f20279d1000-7f20279d2000 r--p 00002000 00:a3 525484                     /usr/lib/x86_64-linux-gnu/libpthread.so.0
7f20279d2000-7f20279d3000 r--p 00002000 00:a3 525484                     /usr/lib/x86_64-linux-gnu/libpthread.so.0
7f20279d3000-7f20279d4000 rw-p 00003000 00:a3 525484                     /usr/lib/x86_64-linux-gnu/libpthread.so.0
7f20279d4000-7f20279d7000 r--p 00000000 00:a3 659510                     /opt/java/openjdk/lib/libjli.so
7f20279d7000-7f20279e1000 r-xp 00003000 00:a3 659510                     /opt/java/openjdk/lib/libjli.so
7f20279e1000-7f20279e4000 r--p 0000d000 00:a3 659510                     /opt/java/openjdk/lib/libjli.so
7f20279e4000-7f20279e5000 ---p 00010000 00:a3 659510                     /opt/java/openjdk/lib/libjli.so
7f20279e5000-7f20279e6000 r--p 00010000 00:a3 659510                     /opt/java/openjdk/lib/libjli.so
7f20279e6000-7f20279e7000 rw-p 00011000 00:a3 659510                     /opt/java/openjdk/lib/libjli.so
7f20279e7000-7f20279e9000 r--p 00000000 00:a3 525520                     /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f20279e9000-7f20279fa000 r-xp 00002000 00:a3 525520                     /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f20279fa000-7f2027a00000 r--p 00013000 00:a3 525520                     /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f2027a00000-7f2027a01000 ---p 00019000 00:a3 525520                     /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f2027a01000-7f2027a02000 r--p 00019000 00:a3 525520                     /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f2027a02000-7f2027a03000 rw-p 0001a000 00:a3 525520                     /usr/lib/x86_64-linux-gnu/libz.so.1.2.11
7f2027a04000-7f2027a05000 ---p 00000000 00:00 0
7f2027a05000-7f2027a06000 r--p 00000000 00:00 0
7f2027a06000-7f2027a08000 rw-p 00000000 00:00 0
7f2027a08000-7f2027a0a000 r--p 00000000 00:a3 525371                     /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f2027a0a000-7f2027a34000 r-xp 00002000 00:a3 525371                     /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f2027a34000-7f2027a3f000 r--p 0002c000 00:a3 525371                     /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f2027a3f000-7f2027a40000 ---p 00000000 00:00 0
7f2027a40000-7f2027a42000 r--p 00037000 00:a3 525371                     /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7f2027a42000-7f2027a44000 rw-p 00039000 00:a3 525371                     /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
7ffc3da6c000-7ffc3da70000 ---p 00000000 00:00 0
7ffc3e24b000-7ffc3e26c000 rw-p 00000000 00:00 0                          [stack]
7ffc3e34c000-7ffc3e34f000 r--p 00000000 00:00 0                          [vvar]
7ffc3e34f000-7ffc3e350000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0                  [vsyscall]

VM Arguments:
jvm_args: -Xmx64m -Xms64m -Dorg.gradle.appname=gradlew
java_command: org.gradle.wrapper.GradleWrapperMain shadowJar
java_class_path (initial): /app/gradle/wrapper/gradle-wrapper.jar
Launcher Type: SUN_STANDARD

[Global flags]
     intx CICompilerCount                          = 4                                         {product} {ergonomic}
     uint ConcGCThreads                            = 2                                         {product} {ergonomic}
     uint G1ConcRefinementThreads                  = 8                                         {product} {ergonomic}
   size_t G1HeapRegionSize                         = 1048576                                   {product} {ergonomic}
    uintx GCDrainStackTargetSize                   = 64                                        {product} {ergonomic}
   size_t InitialHeapSize                          = 67108864                                  {product} {command line}
   size_t MarkStackSize                            = 4194304                                   {product} {ergonomic}
   size_t MaxHeapSize                              = 67108864                                  {product} {command line}
   size_t MinHeapDeltaBytes                        = 1048576                                   {product} {ergonomic}
   size_t MinHeapSize                              = 67108864                                  {product} {command line}
    uintx NonNMethodCodeHeapSize                   = 5839372                                {pd product} {ergonomic}
    uintx NonProfiledCodeHeapSize                  = 122909434                              {pd product} {ergonomic}
    uintx ProfiledCodeHeapSize                     = 122909434                              {pd product} {ergonomic}
    uintx ReservedCodeCacheSize                    = 251658240                              {pd product} {ergonomic}
     bool SegmentedCodeCache                       = true                                      {product} {ergonomic}
   size_t SoftMaxHeapSize                          = 67108864                               {manageable} {ergonomic}
     bool UseCompressedClassPointers               = true                           {product lp64_product} {ergonomic}
     bool UseCompressedOops                        = true                           {product lp64_product} {ergonomic}
     bool UseG1GC                                  = true                                      {product} {ergonomic}

Logging:
Log output configuration:
 #0: stdout all=warning uptime,level,tags
 #1: stderr all=off uptime,level,tags

Environment Variables:
JAVA_HOME=/opt/java/openjdk
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8

Signal Handlers:
   SIGSEGV: crash_handler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
    SIGBUS: crash_handler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
    SIGFPE: crash_handler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
   SIGPIPE: javaSignalHandler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
   SIGXFSZ: javaSignalHandler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
    SIGILL: crash_handler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
   SIGUSR2: SR_handler in libjvm.so, mask=00000000000000000000000000000000, flags=SA_RESTART|SA_SIGINFO
    SIGHUP: SIG_DFL, mask=00000000000000000000000000000000, flags=none
    SIGINT: SIG_DFL, mask=00000000000000000000000000000000, flags=none
   SIGTERM: SIG_DFL, mask=00000000000000000000000000000000, flags=none
   SIGQUIT: javaSignalHandler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO
   SIGTRAP: crash_handler in libjvm.so, mask=11100100010111111101111111111110, flags=SA_RESTART|SA_SIGINFO

---------------  S Y S T E M  ---------------

OS:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
uname: Linux 5.4.0-121-generic #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022 x86_64
OS uptime: 74 days 20:58 hours
libc: glibc 2.35 NPTL 2.35
rlimit (soft/hard): STACK 8192k/infinity , CORE infinity/infinity , NPROC infinity/infinity , NOFILE 1048576/1048576 , AS infinity/infinity , CPU infinity/infinity , DATA infinity/infinity , FSIZE infinity/infinity , MEMLOCK 64k/64k
load average: 2.51 2.19 2.06

/proc/meminfo:
MemTotal:       16153272 kB
MemFree:          329124 kB
MemAvailable:   11130348 kB
Buffers:          944224 kB
Cached:          9740168 kB
SwapCached:       104396 kB
Active:          2543784 kB
Inactive:       10036860 kB
Active(anon):    1273612 kB
Inactive(anon):   550268 kB
Active(file):    1270172 kB
Inactive(file):  9486592 kB
Unevictable:       18492 kB
Mlocked:           18492 kB
SwapTotal:       4194300 kB
SwapFree:        3058428 kB
Dirty:             18760 kB
Writeback:             0 kB
AnonPages:       1904148 kB
Mapped:         10074252 kB
Shmem:              2780 kB
KReclaimable:     380428 kB
Slab:             628036 kB
SReclaimable:     380428 kB
SUnreclaim:       247608 kB
KernelStack:       15268 kB
PageTables:       203832 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    12270936 kB
Committed_AS:   13122332 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       45032 kB
VmallocChunk:          0 kB
Percpu:            69376 kB
HardwareCorrupted:     0 kB
AnonHugePages:     12288 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:     2295648 kB
DirectMap2M:    14174208 kB
DirectMap1G:     1048576 kB

/sys/kernel/mm/transparent_hugepage/enabled: always [madvise] never
/sys/kernel/mm/transparent_hugepage/defrag (defrag/compaction efforts parameter): always defer defer+madvise [madvise] never

Process Memory:
Virtual Size: 480864K (peak: 480884K)
Resident Set Size: 18172K (peak: 18172K) (anon: 5812K, file: 12360K, shmem: 0K)
Swapped out: 0K
C-Heap outstanding allocations: 12660K, retained: 131K
glibc malloc tunables: (default)

/proc/sys/kernel/threads-max (system-wide limit on the number of threads): 124979
/proc/sys/vm/max_map_count (maximum number of memory map areas a process may have): 65530
/proc/sys/kernel/pid_max (system-wide limit on number of process identifiers): 4194304

container (cgroup) information:
container_type: cgroupv1
cpu_cpuset_cpus: 0-7
cpu_memory_nodes: 0
active_processor_count: 8
cpu_quota: no quota
cpu_period: 100000
cpu_shares: no shares
memory_limit_in_bytes: unlimited
memory_and_swap_limit_in_bytes: not supported
memory_soft_limit_in_bytes: unlimited
memory_usage_in_bytes: 8832 k
memory_max_usage_in_bytes: 8832 k
maximum number of tasks: unlimited
current number of tasks: 2

Steal ticks since vm start: 0
Steal ticks percentage since vm start:  0.000

CPU: total 8 (initial active 8) (8 cores per cpu, 2 threads per core) family 23 model 17 stepping 0 microcode 0x810100b, cx8, cmov, fxsr, ht, mmx, 3dnowpref, sse, sse2, sse3, ssse3, sse4a, sse4.1, sse4.2, popcnt, lzcnt, tsc, tscinvbit, avx, avx2, aes, clmul, bmi1, bmi2, adx, sha, fma, vzeroupper, clflush, clflushopt
CPU Model and flags from /proc/cpuinfo:
model name      : AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca

Online cpus: 0-7
Offline cpus: 8-15
BIOS frequency limitation: 2000000
Frequency switch latency (ns): 0
Available cpu frequencies: 2000000 1700000 1600000
Current governor: ondemand
Core performance/turbo boost: 1

Memory: 4k page, physical 16153272k(329124k free), swap 4194300k(3058428k free)
Page Sizes: 4k

vm_info: OpenJDK 64-Bit Server VM (17.0.4.1+1) for linux-amd64 JRE (17.0.4.1+1), built on Aug 12 2022 00:00:00 by "temurin" with gcc 10.3.0

END.
The command '/bin/sh -c ./gradlew shadowJar || cat /app/hs_err_*.log && die ":c"' returned a non-zero code: 127

Tried increasing "DEFAULT_JVM_OPTS" to "-Xmx512m -Xms512m" that didn't change anything

I tried building and running from the image on docker hub on an other system and it worked. On the minipc I've other images build in "linux/amd64" running that work. This is the first image I've got problems with.

Image tags tested

The cpu the machine is using

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 23
model           : 17
model name      : AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
stepping        : 0
microcode       : 0x810100b
cpu MHz         : 1505.366
cache size      : 512 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca
bugs            : sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 3992.37
TLB size        : 2560 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 43 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate eff_freq_ro [13] [14]
anzerr commented 1 year ago

While writing this up I found out that changing "1337kavin/piped:latest" to "1337kavin/piped:graalvm-jvm" fixed the container not booting.

Like this

 piped:
        image: 1337kavin/piped:graalvm-jvm
        restart: unless-stopped
        volumes:
            - ./config/config.properties:/app/config.properties:ro
        depends_on:
            - postgres
        container_name: piped-backend

Hope this helps anyone searching for the same problem

FireMasterK commented 1 year ago

How much ram does your minipc have? It appears to be running out of memory. Not sure how it's running on graalvm, but I'm happy that it worka for you!

anzerr commented 1 year ago

The machine has 16GiB and had ~11GiB at the time of build that made it even more confusion. I could try updating docker to see if it changes anything I'd be surprised if it did.

It added the meminfo to the report file when building

MemTotal:       16153272 kB
MemFree:          329124 kB
MemAvailable:   11130348 kB

Docker version

Client: Docker Engine - Community
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46d9d
 Built:             Wed Sep 16 17:02:52 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.13
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       4484c46d9d
  Built:            Wed Sep 16 17:01:20 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.3.7
  GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

docker-compose version 1.24.1, build 4667896b
docker-py version: 3.7.3
CPython version: 3.6.8
OpenSSL version: OpenSSL 1.1.0j  20 Nov 2018