Looking for help, Nexus crashed and now I get error when trying to start - Sonatype Nexus Repository - Sonatype Community
Looking for help, Nexus crashed and now I get error when trying to start
post by sonatype1 on May 8, 2019
matt smith
sonatype1
Hi I just got asked to help with an issue thats was reported that nexus isn’t working, getting 502 bad gateway when trying to load the page, so took at look and can see errors in the logs on start up
below is what I believe to be the relevant snippet from the log file.
Nexus is version nexus-3.12.0-01 according to the logs and the system is running on Ubuntu 16.04LTS
If anyone can shed any light on a possible fix it would be greatly appertained.
I’ve copied and pasted the log entry below if it best for me to attach it as a separate file please just let me know
2019-05-08 16:35:36,727+0100 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusLifecycleManager - Start RESTORE 2019-05-08 16:35:37,526+0100 WARN [ForkJoinPool.commonPool-worker-4] *SYSTEM ROOT - $ANSI{green {db=accesslog}} Storage ‘accesslog’ was not closed properly. Will try to recover from write ahead log… 2019-05-08 16:35:37,526+0100 INFO [ForkJoinPool.commonPool-worker-4] *SYSTEM ROOT - $ANSI{green {db=accesslog}} Looking for last checkpoint… 2019-05-08 16:35:37,530+0100 INFO [ForkJoinPool.commonPool-worker-4] *SYSTEM ROOT - $ANSI{green {db=accesslog}} Found FUZZY checkpoint. 2019-05-08 16:35:37,531+0100 INFO [ForkJoinPool.commonPool-worker-4] *SYSTEM ROOT - $ANSI{green {db=accesslog}} Data restore procedure from FUZZY checkpoint is started. 2019-05-08 16:35:37,539+0100 WARN [ForkJoinPool.commonPool-worker-4] *SYSTEM ROOT - $ANSI{green {db=accesslog}} Record com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointEndRecord{lsn=LSN{segment=139, position=791309}} will be skipped during data restore 2019-05-08 16:35:37,540+0100 INFO [ForkJoinPool.commonPool-worker-4] *SYSTEM ROOT - $ANSI{green {db=accesslog}} 1 operations were processed, current LSN is LSN{segment=139, position=791309} last LSN is LSN{segment=139, position=791356} 2019-05-08 16:35:37,549+0100 WARN [ForkJoinPool.commonPool-worker-4] *SYSTEM ROOT - $ANSI{green {db=accesslog}} Record OFuzzyCheckpointStartRecord{lsn=LSN{segment=139, position=791316}} com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointStartRecord{lsn=null, previousCheckpoint=LSN{segment=139, position=791269}} will be skipped during data restore 2019-05-08 16:35:37,550+0100 WARN [ForkJoinPool.commonPool-worker-4] *SYSTEM ROOT - $ANSI{green {db=accesslog}} Record com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OFuzzyCheckpointEndRecord{lsn=LSN{segment=139, position=791356}} will be skipped during data restore 2019-05-08 16:35:37,636+0100 INFO [ForkJoinPool.commonPool-worker-4] *SYSTEM ROOT - $ANSI{green {db=accesslog}} Storage data recover was completed 2019-05-08 16:35:37,712+0100 INFO [ForkJoinPool.commonPool-worker-2] *SYSTEM ROOT - Storage ‘plocal:/net/shares/sonatype-work/nexus3/db/analytics’ is opened under OrientDB distribution : 2.2.34 (build f340442755a31eabc91b87cb3ef99eda5cee6ebd, branch 2.2.x) 2019-05-08 16:35:37,729+0100 INFO [ForkJoinPool.commonPool-worker-5] *SYSTEM ROOT - Storage ‘plocal:/net/shares/sonatype-work/nexus3/db/audit’ is opened under OrientDB distribution : 2.2.34 (build f340442755a31eabc91b87cb3ef99eda5cee6ebd, branch 2.2.x) 2019-05-08 16:35:37,944+0100 INFO [ForkJoinPool.commonPool-worker-4] *SYSTEM ROOT - Storage ‘plocal:/net/shares/sonatype-work/nexus3/db/accesslog’ is opened under OrientDB distribution : 2.2.34 (build f340442755a31eabc91b87cb3ef99eda5cee6ebd, branch 2.2.x) 2019-05-08 16:35:38,300+0100 INFO [ForkJoinPool.commonPool-worker-1] *SYSTEM ROOT - Storage ‘plocal:/net/shares/sonatype-work/nexus3/db/security’ is opened under OrientDB distribution : 2.2.34 (build f340442755a31eabc91b87cb3ef99eda5cee6ebd, branch 2.2.x) 2019-05-08 16:35:38,503+0100 WARN [FelixStartLevel] *SYSTEM ROOT - $ANSI{green {db=config}} Storage ‘config’ was not closed properly. Will try to recover from write ahead log… 2019-05-08 16:35:38,504+0100 INFO [FelixStartLevel] *SYSTEM ROOT - $ANSI{green {db=config}} Looking for last checkpoint… 2019-05-08 16:35:40,389+0100 ERROR [FelixStartLevel] *SYSTEM ROOT - Exception
401240DCin storageplocal:/net/shares/sonatype-work/nexus3/db/config: 2.2.34 (build f340442755a31eabc91b87cb3ef99eda5cee6ebd, branch 2.2.x) java.lang.OutOfMemoryError: Java heap space
post by bhanupathak on May 9, 2019
It seems like an issue with Java Heap Space, i am not sure but you can check this article if it helps
post by christianbeland on Jan 6, 2021
Were you able to find a solution for this? I’m in the same situation right now.