GithubHelp home page GithubHelp logo

Comments (11)

Jasper-Ben avatar Jasper-Ben commented on July 23, 2024 1

nvm. overlooked the breaking changes on the properties settings 😄

from helm-charts.

Jasper-Ben avatar Jasper-Ben commented on July 23, 2024 1

@stevehipwell Looking good so far! 👍 Will do some more configuring over the next couple of days. If I notice any issues I will open a new issue and/or pull request. Thanks for your awesome help so far, highly appreciated! 😃

from helm-charts.

Jasper-Ben avatar Jasper-Ben commented on July 23, 2024

It seems the properties are not correctly added to the properties file:

bash-4.4$ cat nexus.properties 
true
[nexus.scripts.allowCreation=true]

from helm-charts.

Jasper-Ben avatar Jasper-Ben commented on July 23, 2024

Hmm... I'm still struggling with the scripts however (log attached). Will take a closer look tomorrow.

nexus.log

from helm-charts.

stevehipwell avatar stevehipwell commented on July 23, 2024

@Jasper-Ben this should be resolved in the next release. I wrote this chart for a specific use and although I've tried to make it work correctly there are cases when it's not used as we use it (including the various upgrades, which is why we've never had an etc issue due to the file system from earlier chart versions) that need resolving.

from helm-charts.

Jasper-Ben avatar Jasper-Ben commented on July 23, 2024

@stevehipwell I am currently recreating the persistent volume on each try, so existing etc directories should not be at fault here.
It seems that not having a LDAP configured (ldap.enabled=false) does not work with the current configure.sh script, as it still tries to run the ldap.groovy script.

+ json_file=/opt/sonatype/nexus/conf/ldap.json
+ '[' -f /opt/sonatype/nexus/conf/ldap.json ']'
+ '[' -f /opt/sonatype/nexus/secret/ldap.password ']'
++ curl -s -o /dev/null -w '%{http_code}' -X POST -H 'Content-Type: application/json' -u admin:XXXXX -d @/opt/sonatype/nexus/conf/ldap.json http://localhost:8081/service/rest/v1/script/ldap/run
+ status_code=400
+ '[' 400 -ne 200 ']'
+ echo 'Could not set LDAP.'
Could not set LDAP.

with following ldap.json settings:

{"enabled":false,"password":"PASSWORD"}

from helm-charts.

Jasper-Ben avatar Jasper-Ben commented on July 23, 2024

I just noticed your new release. Will try it now.

from helm-charts.

Jasper-Ben avatar Jasper-Ben commented on July 23, 2024

The LDAP part seems to work now. However, now I am running into an issue with the cleanup script:

Updating script /opt/sonatype/nexus/conf/task.groovy.

2020-07-15 12:07:22,602+0000 WARN  [qtp1378315085-41] admin org.sonatype.nexus.siesta.internal.WebappExceptionMapper - (ID 93867451-692e-4d4b-ab55-0d17a6ab35b6) Response: [404] (no entity/body); mapped from: javax.ws.rs.NotFoundException: Script with name: 'task' not found

2020-07-15 12:07:22,634+0000 INFO  [qtp1378315085-43] admin org.sonatype.nexus.internal.script.groovy.GroovyScriptEngineFactory - Created engine: org.sonatype.nexus.internal.script.groovy.GroovyScriptEngine@6579bd0d

2020-07-15 12:07:23,544+0000 ERROR [qtp1378315085-43] admin org.sonatype.nexus.script.plugin.internal.rest.ScriptResource - Exception in script execution for script named: cleanup

javax.script.ScriptException: javax.script.ScriptException: com.orientechnologies.orient.core.exception.OValidationException: The field 'cleanup.mode' cannot be null, record: cleanup{name:null,notes:null,format:null,mode:null,criteria:null}

from helm-charts.

stevehipwell avatar stevehipwell commented on July 23, 2024

@Jasper-Ben what does you current values.yaml file look like?

from helm-charts.

Jasper-Ben avatar Jasper-Ben commented on July 23, 2024

@stevehipwell

image: 
  tag: "3.25.0"
  pullPolicy: "IfNotPresent"
config:
  enabled: true
  rootPassword:
    secret: "root-password"
    key: "password"
  ldap:
    enabled: false
  anonymous:
    enabled: false
  realms:
    enabled: false
#  repos:
#    - name: "docker-registry"
#      type: "docker-hosted"
#      online: true
#      attributes:
#        storage:
#          blobStorageName: "default"
#          strictContentTypeValidation: true
#          writePolicy: "ALLOW"
#      cleanup:
#        policyName: "ExampleCleanup"
#    - name: "helm-registry"
#      type: "helm-hosted"
#      online: true
#      attributes:
#        storage:
#          blobStorageName: "default"
#          strictContentTypeValidation: true
#          writePolicy: "ALLOW"
#      cleanup:
#        policyName: "ExampleCleanup"
persistence:
  enabled: true
  existingClaim: "pvc-nexus3"

from helm-charts.

stevehipwell avatar stevehipwell commented on July 23, 2024

@Jasper-Ben try the latest v2.5.3 release. There was a regression in the default values that provided repos, cleanups and tasks; you've turned on the config so are getting a yaml merge of your values and the incorrect default ones.

from helm-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.