Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-16982

I cant start nexus in Openshift using the Nexus Repository Manager

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.8.0
    • Fix Version/s: None
    • Component/s: Docker-Nexus
    • Labels:
      None
    • Environment:
      Openshift Cluster 3.6
    • Story Points:
      2

      Description

      2 Points

      *** When I try to use the Nexus Repository Manager Docker image available from Red Hat, I can't start the pod. I receive this error:
      id: cannot find name for user ID 1001230000
      2018-05-02 17:27:44,407+0000 WARN [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4JInitialiser - Your logging framework class org.ops4j.pax.logging.slf4j.Slf4jLogger is not known - if it needs access to the standard println methods on the console you will need to register it by calling registerLoggingSystemPackage
      2018-05-02 17:27:44,419+0000 INFO [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Package org.ops4j.pax.logging.slf4j registered; all classes within it or subpackages of it will be allowed to print to System.out and System.err
      2018-05-02 17:27:44,427+0000 INFO [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Replaced standard System.out and System.err PrintStreams with SLF4JPrintStreams
      2018-05-02 17:27:44,429+0000 INFO [FelixStartLevel] *SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Redirected System.out and System.err to SLF4J for this context
      2018-05-02 17:27:44,443+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - Properties:
      2018-05-02 17:27:44,444+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - application-host='0.0.0.0'
      2018-05-02 17:27:44,444+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - application-port='8081'
      2018-05-02 17:27:44,444+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - fabric.etc='/opt/sonatype/nexus/etc/fabric'
      2018-05-02 17:27:44,444+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - jetty.etc='/opt/sonatype/nexus/etc/jetty'
      2018-05-02 17:27:44,444+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.base='/opt/sonatype/nexus'
      2018-05-02 17:27:44,445+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.data='/nexus-data'
      2018-05-02 17:27:44,445+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.etc='/opt/sonatype/nexus/etc/karaf'
      2018-05-02 17:27:44,445+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.home='/opt/sonatype/nexus'
      2018-05-02 17:27:44,445+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.instances='/nexus-data/instances'
      2018-05-02 17:27:44,445+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - logback.etc='/opt/sonatype/nexus/etc/logback'
      2018-05-02 17:27:44,446+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-args='/opt/sonatype/nexus/etc/jetty/jetty.xml,/opt/sonatype/nexus/etc/jetty/jetty-http.xml,/opt/sonatype/nexus/etc/jetty/jetty-requestlog.xml'
      2018-05-02 17:27:44,446+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-context-path='/'
      2018-05-02 17:27:44,446+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-edition='nexus-pro-edition'
      2018-05-02 17:27:44,446+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-features='nexus-pro-feature'
      2018-05-02 17:27:44,446+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus.clustered='false'
      2018-05-02 17:27:44,447+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - ssl.etc='/opt/sonatype/nexus/etc/ssl'
      2018-05-02 17:27:44,447+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - Java: 1.8.0_162, Java HotSpot(TM) 64-Bit Server VM, Oracle Corporation, 25.162-b12
      2018-05-02 17:27:44,487+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - OS: Linux, 3.10.0-514.21.1.el7.x86_64, amd64
      2018-05-02 17:27:44,489+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - User: ?, en, ?
      2018-05-02 17:27:44,489+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - CWD: /opt/sonatype/nexus
      2018-05-02 17:27:44,517+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - TMP: /nexus-data/tmp
      2018-05-02 17:27:44,523+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Starting
      2018-05-02 17:27:44,536+0000 INFO [FelixStartLevel] *SYSTEM org.eclipse.jetty.util.log - Logging initialized @16135ms to org.eclipse.jetty.util.log.Slf4jLog
      2018-05-02 17:27:44,588+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying configuration: file:/opt/sonatype/nexus/etc/jetty/jetty.xml
      2018-05-02 17:27:45,110+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying configuration: file:/opt/sonatype/nexus/etc/jetty/jetty-http.xml
      2018-05-02 17:27:45,283+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying configuration: file:/opt/sonatype/nexus/etc/jetty/jetty-requestlog.xml
      2018-05-02 17:28:04,758+0000 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Starting: org.eclipse.jetty.server.Server@204f7a7e[9.4.8.v20171121]
      2018-05-02 17:28:13,270+0000 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.Server - jetty-9.4.8.v20171121, build timestamp: 2017-11-21T21:27:37Z, git hash: 82b8fb23f757335bb3329d540ce37a2a2615f0a8

       

      It's look like the entrypoint never used...

      The Dockerfile Red hat

      The docker file available to build the image for Openshift available at 

      https://github.com/sonatype/docker-nexus3 does not respect the Openshift recommendation available at 

      You can see at this line 

      https://github.com/sonatype/docker-nexus3/blob/5f926027a50742d1baacb7a8c2d0b6aceff23586/Dockerfile.rh.el#L79 

      USER nexus.

       

      The Openshift documentation recommend to use a uid. 

      https://docs.openshift.org/latest/creating_images/guidelines.html#openshift-origin-specific-guidelines

       

      https://github.com/sonatype/docker-nexus3/blob/5f926027a50742d1baacb7a8c2d0b6aceff23586/Dockerfile.rh.el#L83

       

      maybe it's me that didn't do something correctly... 

       

      Thanks for any help!

        Attachments

          Activity

            People

            Assignee:
            jyoung Justin Young
            Reporter:
            carlpelletierHQ Carl Pelletier
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title