Comments (11)
nvm. overlooked the breaking changes on the properties settings 😄
from helm-charts.
@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.
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.
Hmm... I'm still struggling with the scripts however (log attached). Will take a closer look tomorrow.
from helm-charts.
@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.
@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.
I just noticed your new release. Will try it now.
from helm-charts.
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.
@Jasper-Ben what does you current values.yaml file look like?
from helm-charts.
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.
@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)
- [nexus3] Allow user credentials specified by kubernetes secret HOT 11
- FR: thoughts about adding tar to the nexus container HOT 2
- Update PlantUML PodDisruptionBudget API HOT 1
- Problem using rootPassword and persistence HOT 5
- [thanos] Unable to update to 1.13.0 - YAML parsing error HOT 3
- [Thanos] StatefulSet PVC Retention Policy HOT 1
- Aggregator Not Sending Logs to outputs After Running for a Few Hours HOT 6
- bug(confluence-server): No template "postgresql.primary.fullname" HOT 2
- More info regarding blob store configuration for Nexus HOT 4
- Allow overriding repository for init containers in Nexus helm chart HOT 2
- [thanos] How to implement authentication HOT 3
- Would you add `resources.extra` field so that I can add my gpu value into the resource? HOT 1
- [Nexus3] Deployment doesn't scale more than one HOT 7
- [nexus] Ldap password escaping \ breaks other passwords that have sed special characters (&) HOT 3
- [thanos] support prometheus sidecar method of deployment HOT 2
- [nexus3] Setting rootPassword.key has no effect HOT 2
- thanos-recever-router ingress creation issue HOT 1
- [nexus3] Question: Requirement for groovy script files in helm chart? HOT 2
- Missing Permissions for ippools in tigera-operator ClusterRole v2.10.0
- softQuota option in blobStore chart section HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.