by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Artem
    @aakatev
    it is in the file ~/nexus-data/admin.password in your container
    1 reply
    George Schizas
    @gschizas
    Hello all. I'm trying to debug (or even compile) Nexus OSS in IntelliJ IDEA on Windows, and I can't get a myriad of errors, most (or even all) of them related to Groovy-Eclipse. I have semi-successfully compiled and run Nexus from the command line (I skipped the tests), so I know it's not something wrong with maven or java. Any pointers?
    George Schizas
    @gschizas
    BTW, the reason I skip tests is because I get this error:
    downloadTimeoutsAreStaggered(org.sonatype.nexus.common.io.CooperatingFutureTest)  Time elapsed: 1.761 sec  <<< FAILURE!
    java.lang.AssertionError:
    Expected: (a value equal to or greater than <190L> and a value less than or equal to <210L>)
         but: a value less than or equal to <210L> <216L> was greater than <210L>
            at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
            at org.junit.Assert.assertThat(Assert.java:956)
            at org.junit.Assert.assertThat(Assert.java:923)
            at org.sonatype.nexus.common.io.CooperatingFutureTest.downloadTimeoutsAreStaggered(CooperatingFutureTest.java:58)
    (I'm compiling and running this on Windows)
    Guan Wang
    @crownwangguan
    Hello! New nexus oss user here. I'm trying to setup a private repository using Nexus OSS. Which sonaytpe/nexus3 docker image, I try to create multiple containers, but only one container can run at one time. I check the log, there's no error: *UNKNOWN org.sonatype.nexus.internal.security.anonymous.AnonymousManagerImpl - Using default configuration: OrientAnonymousConfiguration{enabled=true, userId='anonymous', realmName='NexusAuthorizingRealm'}
    Joe Tom
    @joedragons
    @crownwangguan are you changing the port for each container?
    though I think that would show in the log
    Guan Wang
    @crownwangguan
    @joedragons yes, this is my docker-compose file
    services:
      nexus1:
        container_name: nexus-oss1
        image: sonatype/nexus3
        environment:
          - JVM_OPTS=-Xmx12g -Xms12g -XX:MaxPermSize=1024m
        # volumes:
        #   - "$PWD/nexus-data:/nexus-data"
        ports:
          - "8081:8081"
          - "8082:8082"
          - "8083:8083"
      nexus2:
        container_name: nexus-oss2
        image: sonatype/nexus3
        environment:
          - JVM_OPTS=-Xmx12g -Xms12g -XX:MaxPermSize=1024m
        # volumes:
        #   - "$PWD/nexus-data:/nexus-data"
        ports:
          - "8071:8081"
          - "8072:8082"
          - "8073:8083"
      nexus3:
        container_name: nexus-oss3
        image: sonatype/nexus3
        environment:
          - JVM_OPTS=-Xmx12g -Xms12g -XX:MaxPermSize=1024m
        # volumes:
        #   - "$PWD/nexus-data:/nexus-data"
        ports:
          - "8061:8081"
          - "8062:8082"
          - "8063:8083"
    Ivan Pekov
    @MrIvanPlays
    Hello!
    I've just migrated my nexus installation to docker. But I'm getting this error when I try to start it from my old sonatype-work folder
    https://img.mrivanplays.com/putty_GhXNT6OMd3.png
    please help
    Joe Tom
    @joedragons
    @MrIvanPlays Suggest checking that file ownership vs the rest. My guess is your old system was using a certain user and that the new system isn't at least totally.
    Navin Prasad K
    @navinprasadk
    Anybody configured Nginx-reverse-proxy in front of docker registry?
    Gordon
    @petteyg
    @navinprasadk Expose the docker group repo (including all proxies and your hosted repo) on 5000 and your hosted repo on 5001 in Nexus.
    map $request_method $docker_nexus_upstream {
        DELETE  docker-hosted;
        PATCH   docker-hosted;
        POST    docker-hosted;
        PUT     docker-hosted;
        default docker-group;
    }
    upstream docker-hosted {
        server localhost:5001;
    }
    upstream docker-group {
        server localhost:5000;
    }
    server {
        ...other stuff...
        location /v2 {
            proxy_pass http://$docker_nexus_upstream;
        }
    }
    1 reply
    longzhang-barchart
    @longzhang-barchart
    Hi All
    anyone knows why my nexus2 container is till listening to port 8082 after I changed port in the nexus.properties
    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    b715d619df22 sonatype/nexus:2.14.18-01 "/bin/sh -c 'java …" 23 minutes ago Up 21 minutes 8081/tcp, 0.0.0.0:8082->8082/tcp nexus2
    sorry, meant to ask why is it still listen to 8081 after I changed it to 8082
    Joe Tom
    @joedragons
    does your start command have port in it? I wonder if that'd override
    longzhang-barchart
    @longzhang-barchart
    Hi Joe, it's from docker-compose
    it looks like this:
    nexus2:
    image: sonatype/nexus:2.14.18-01
    container_name: nexus2
    ports:
      - "8082:8082"
    volumes:
      - "nexus2-data:/sonatype-work"
      - "./services/nexus2/nexus.properties:/opt/sonatype/nexus/conf/nexus.properties"
    restart: always
    but if I do a inspect on this nexus2 container, it's:
    "Ports": {
    "8081/tcp": null,
    "8082/tcp": [
    {
    "HostIp": "0.0.0.0",
    "HostPort": "8082"
    }
    ]
    },
    Bruce Wong
    @CelesteComet
    Hello community, I was wondering if this package was still being maintained.
    https://github.com/sonatype-nexus-community/nexus-repository-cargo
    Joe Tom
    @joedragons
    @CelesteComet AFAIK PRs are being accepted if that's what you mean
    Archimedes Trajano
    @trajano
    How do we enable Sonatype OSS Index in the Nexus OSS server?
    Ivan Pekov
    @MrIvanPlays

    @MrIvanPlays Suggest checking that file ownership vs the rest. My guess is your old system was using a certain user and that the new system isn't at least totally.

    It is owned by the nexus user and the docker is also run by the nexus user. I don't understand what is going wrong here? Perhaps linux again being stupid.

    longzhang-barchart
    @longzhang-barchart
    Hi All,
    I have migrated my nexus 2.14.18 into a container, but it didn't show me the admin page after I login, pretty sure I passed the authentication cause I had changed admin password back to admin123 and it did alert me when the password's wrong.
    Any idea what could cause this?
    Joe Tom
    @joedragons
    @trajano I believe it's just on when you run OSS...are you not seeing that? There's a walkthrough here: https://www.sonatype.com/repository-health-check-ossi
    @longzhang-barchart did you try an incognito window or clearing browser cache?
    @trajano It's 3.25.0+ only btw, in case it's a version issue.
    longzhang-barchart
    @longzhang-barchart
    Hi @joedragons, my problem was because of the JVM argument of -Dnexus-webapp-context-path
    Joe Tom
    @joedragons
    cool, glad you figured it out :)
    longzhang-barchart
    @longzhang-barchart
    thanks
    Иван Рязанов
    @i.v.ryazanov_gitlab
    hello guys , i run nexus container and developers when run npm publish get 413
    413 Request Entity Too Large
    Battsengel Ichinnorov
    @bachka

    hi all,
    i have a problem with dockerized nexus-repo-manager. it throws all the time Java heap space ... even i increased and changed but no effect looks like:
    orientdb> CONNECT PLOCAL:/opt/sonatype/sonatype-work/nexus3/db/component admin admin

    Connecting to database [PLOCAL:/opt/sonatype/sonatype-work/nexus3/db/component] with user 'admin'...
    2020-08-03 18:02:21:549 WARNI {db=component} Storage 'component' was not closed properly. Will try to recover from write ahead log... [OLocalPaginatedStorage]
    2020-08-03 18:02:21:557 WARNI {db=component} Record com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OCheckpointEndRecord{lsn=LSN{segment=1787, position=52}} will be skipped during data restore [OLocalPaginatedStorage]OK
    orientdb {db=component}> CHECK DATABASE

    Checking storage.Check of storage is started...Check of storage completed in 3202ms. without errors.
    Checking indexes.
    Checking cluster component for index component_bucket_group_name_version_idx
    cluster component (17) |**| 100%
    Checking cluster component_1 for index component_bucket_group_name_version_idx
    cluster component_1 (18) |**| 100%
    Checking cluster asset for index asset_bucket_component_name_idx
    cluster asset (19) |* | 75%Exception 2CF92CC7 in storage plocal:/opt/sonatype/sonatype-work/nexus3/db/component: 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x)
    java.lang.OutOfMemoryError: Java heap space
    at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage.getBinaryValue(ODurablePage.java:137)
    at com.orientechnologies.orient.core.storage.impl.local.paginated.OClusterPage.getRecordBinaryValue(OClusterPage.java:386)
    at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.readFullEntry(OPaginatedCluster.java:1910)
    at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.readRecordBuffer(OPaginatedCluster.java:779)
    at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.readRecord(OPaginatedCluster.java:742)
    at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.readRecord(OPaginatedCluster.java:721)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doReadRecord(OAbstractPaginatedStorage.java:4220)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.readRecord(OAbstractPaginatedStorage.java:3807)
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.readRecord(OAbstractPaginatedStorage.java:1410)
    at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx$SimpleRecordReader.readRecord(ODatabaseDocumentTx.java:3395)
    at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.executeReadRecord(ODatabaseDocumentTx.java:2008)
    at com.orientechnologies.orient.core.tx.OTransactionNoTx.loadRecord(OTransactionNoTx.java:98)
    at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.load(ODatabaseDocumentTx.java:1757)
    at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.load(ODatabaseDocumentTx.java:103)
    at com.orientechnologies.orient.core.iterator.OIdentifiableIterator.readCurrentRecord(OIdentifiableIterator.java:300)
    at com.orientechnologies.orient.core.iterator.ORecordIteratorCluster.hasNext(ORecordIteratorCluster.java:141)
    at com.orientechnologies.orient.core.db.tool.OCheckIndexTool.checkCluster(OCheckIndexTool.java:110)
    at com.orientechnologies.orient.core.db.tool.OCheckIndexTool.checkIndex(OCheckIndexTool.java:97)
    at com.orientechnologies.orient.core.db.tool.OCheckIndexTool.run(OCheckIndexTool.java:68)
    at com.orientechnologies.orient.console.OConsoleDatabaseApp.checkDatabase(OConsoleDatabaseApp.java:2140)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:

    Joe Tom
    @joedragons
    @bachka Curious what you're doing...shouldn't need to connect to OrientDB really at all.
    Battsengel Ichinnorov
    @bachka
    @joedragons yep, i understood. i could not find any readme about system requirement for nexus repo manager at all. but i read here above what ppl are set for their nexus so increased all and fixed the corrupted orientDB/component with export and import, :). thanks for ur messages above. helped well as any other stuff in whole internet even on sonatype websites, :P. i needed to fix this, bcs i could't run some clean up jobs w/o fixing this ... now all jobs running good and lessons learned again, :).
    Joe Tom
    @joedragons
    Cool no problem. Glad to have helped. For the record (maybe help others), I was curious if you were getting heap errors during "normal" operations vs digging into the DB. Our system requirements page we believe has enough for systems on normal operations (depending on your instance size): https://help.sonatype.com/display/NXRM3/System+Requirements
    Glad you got it sorted too.
    lucasvieirazup
    @lucasvieirazup
    Hello, everyone
    i have an problem with nexus-repo for github actions
    i have an artefacts in VM in Azure, but i just can connect in that VM with VPN, i cant make a public url for my CI access repos
    And i dont want use self-hosted, because i just can use one peer repository, and my project has 28 repositorys..
    rastov
    @rastov
    hello. I'm making use of your Docker image at https://hub.docker.com/r/sonatype/nexus3. Is there a way to pass in the LDAP configuration so that it does not have to be configured manually via the UI?
    Joe Tom
    @joedragons
    @rastov There's a REST endpoint (see https://help.sonatype.com/display/NXRM3/Security+Management+API#SecurityManagementAPI-LDAP, tho there's more detail in the Swagger UI).
    rastov
    @rastov
    @joedragons thank you
    djh82uk
    @djh82uk
    Hey, im trying to get Nexus 3 docker image to run as an Azure container instance. Ive set it up with persistent storage etc, but it keeps restarting, only error I can see in the logstream is: "2020-08-12 09:47:27,566+0000 ERROR [jetty-main-1] SYSTEM org.eclipse.jetty.util.log.StdErrLog - 2020-08-12 09:47:27.566:INFO:oejs.Server:jetty-main-1: jetty-9.4.30.v20200611; built: 2020-06-11T12:34:51.929Z; git: 271836e4c1f4612f12b7bb13ef5a92a927634b0d; jvm 1.8.0_262-b10
    2020-08-12 09:47:27,619+0000 ERROR [jetty-main-1]
    SYSTEM org.eclipse.jetty.util.log.StdErrLog - 2020-08-12 09:47:27.619:INFO:oejw.StandardDescriptorProcessor:jetty-main-1: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
    2020-08-12 09:47:27,635+0000 ERROR [jetty-main-1] SYSTEM org.eclipse.jetty.util.log.StdErrLog - 2020-08-12 09:47:27.635:INFO:oejs.session:jetty-main-1: DefaultSessionIdManager workerName=node0
    2020-08-12 09:47:27,636+0000 ERROR [jetty-main-1]
    SYSTEM org.eclipse.jetty.util.log.StdErrLog - 2020-08-12 09:47:27.636:INFO:oejs.session:jetty-main-1: No SessionScavenger set, using defaults
    2020-08-12 09:47:27,638+0000 ERROR [jetty-main-1] SYSTEM org.eclipse.jetty.util.log.StdErrLog - 2020-08-12 09:47:27.638:INFO:oejs.session:jetty-main-1: node0 Scavenging every 600000ms
    2020-08-12 09:47:27,644+0000 INFO [jetty-main-1]
    SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Initializing"
    Any ideas? im using the "latest" tag from dockerhub
    And the container instance in set for port 8081
    djh82uk
    @djh82uk
    also tried clearing the persistent storage as if it was a new container, and still the same issue.
    myself123-gif
    @myself123-gif
    Hi All, How do we change the default password for admin user in nexus3 instead of referring the /nexus-data/admin.password file. Is there anypther way ?
    2 replies