Nexus server, automatically restarting after setup

1,012 views
Skip to first unread message

Balaji Iyer

unread,
Aug 17, 2016, 7:03:58 PM8/17/16
to Nexus Users

I am hitting an issue where the Nexus server is restarting on its own after initial setup.

 

Setup:

1.      This is my userdata bootstrap shell script for the setup – really straightforward. Download, unzip, setup and start service – straight from your great documentation.

 

                      "cd /srv\n",

                      "wget -O /srv/nexus-${NEXUS_VERSION}-unix.tar.gz --no-check-certificate https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-${NEXUS_VERSION}-unix.tar.gz\n",

                      "tar xzf /srv/nexus-${NEXUS_VERSION}-unix.tar.gz -C /srv\n",

                      "ln -s /srv/nexus-${NEXUS_VERSION} /srv/nexus\n",

                      "useradd -m nexus\n",

                      "touch /srv/nexus/bin/nexus.rc\n",

                      "echo \"run_as_user='nexus'\" > /srv/nexus/bin/nexus.rc\n",

                      "chown -R nexus:nexus /srv/nexus-${NEXUS_VERSION}\n",

                      "ln -s /srv/nexus/bin/nexus /etc/rc.d/init.d/nexus\n",

                      "chkconfig --add /etc/rc.d/init.d/nexus\n",

                      "service nexus start\n",

2.      I have an AWS Elastic Load balancer (ELB) (classic not the application load balancer)  setup and couple of EC2 instances behind it in an autoscaling group

 

Issue:

Upon connecting to the ELB link, I get the Nexus start screen, in a few seconds I get an error message

 

“Application will be reloaded as server has been restarted”

with an OK button

This goes on an endless loop.

 

Related issues:

I searched online and found an issue that seems to be related,  https://issues.sonatype.org/browse/NEXUS-9879. I didn’t get an exception as it’s in the issue but got the same error message.

 

Is this the same issue, any workarounds?

Rich Seddon

unread,
Aug 17, 2016, 7:09:16 PM8/17/16
to Balaji Iyer, Nexus Users
Please open a new issue at https://issues.sonatpye.org, we can't diagnose anything based on this limited information.   The best way to get us the information we need is to generate a support zip file under the Nexus support tools UI, and attach it to the issue.

Regards,

Rich

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/89f2da63-e315-40be-ac8d-7061fea6b996%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Balaji Iyer

unread,
Aug 17, 2016, 7:52:08 PM8/17/16
to Rich Seddon, Nexus Users
Reply all
Reply to author
Forward
0 new messages