Git Product home page Git Product logo

Comments (15)

wilrnh avatar wilrnh commented on June 1, 2024 7

If anyone else comes across this, this worked for me: kubectl -n dev delete pvc artifactory-volume-artifactory-artifactory-0. Seems the db.properties file doesnt get updated/overwritten for new deployments properly.

from charts.

sylus avatar sylus commented on June 1, 2024

helm install --name artifactory -f values .

# Default values for artifactory.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

artifactory:
  ingress:
    enabled: true
    # Used to create an Ingress record.
    hosts:
      - artifactory.cloud.statcan.ca
    annotations:
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
    tls:
    # Secrets must be manually created in the namespace.
    # - secretName: chart-example-tls
    #   hosts:
    #     - artifactory.domain.example

  # Artifactory
  artifactory:
    name: artifactory
    image:
      # repository: "docker.bintray.io/jfrog/artifactory-oss"
      repository: "docker.bintray.io/jfrog/artifactory-pro"
      # Note that by default we use appVersion to get image tag
      # version: 6.1.0
      pullPolicy: IfNotPresent

    ## Artifactory license secret.
    ## If artifactory.license.secret is passed, it will be mounted as
    ## ARTIFACTORY_HOME/etc/artifactory.lic and loaded at run time.
    ## The dataKey should be the name of the secret data key created.
    license:
      secret: artifactory-artifactory
      dataKey: artifactory.lic
    ## Create configMap with artifactory.config.import.xml and security.import.xml and pass name of configMap in following parameter
    configMapName: artifactory-artifactory

    persistence:
      mountPath: "/var/opt/jfrog/artifactory"
      enabled: true
      ## A manually managed Persistent Volume and Claim
      ## Requires persistence.enabled: true
      ## If defined, PVC must be created manually before volume will be bound
      # existingClaim:

      accessMode: ReadWriteOnce
      size: 500Gi
      ## artifactory data Persistent Volume Storage Class
      ## If defined, storageClassName: <storageClass>
      ## If set to "-", storageClassName: "", which disables dynamic provisioning
      ## If undefined (the default) or set to null, no storageClassName spec is
      ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
      ##   GKE, AWS & OpenStack)
      ##
      # storageClass: "-"

      postStartCommand: ""

  # Nginx
  nginx:
    enabled: true
    name: nginx
    replicaCount: 1
    image:
      repository: "docker.bintray.io/jfrog/nginx-artifactory-pro"
      # version: 6.1.0
      pullPolicy: IfNotPresent
    customConfigMap: artifactory-artifactory-nginx
    persistence:
      mountPath: "/var/opt/jfrog/nginx"
      enabled: false
      ## A manually managed Persistent Volume and Claim
      ## Requires persistence.enabled: true
      ## If defined, PVC must be created manually before volume will be bound
      # existingClaim:

      accessMode: ReadWriteOnce
      size: 10Gi

  ## Configuration values for the postgresql dependency
  ## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
  postgresql:
    enabled: true

from charts.

sylus avatar sylus commented on June 1, 2024

screen shot 2018-10-01 at 1 35 01 pm

screen shot 2018-10-01 at 1 35 13 pm

from charts.

sylus avatar sylus commented on June 1, 2024

@jainishshah17

I really for the life of me, can't figure out what is wrong, def driving me bonkers ...

from charts.

eldada avatar eldada commented on June 1, 2024

@sylus - can you try setting a custom database password with postgresql.postgresPassword=password.
Let's see if this is related to the auto generated password.
BTW - after the first install, for upgrades you need to pass the database password so a new one will not be generated that might conflict with previous one.

from charts.

sylus avatar sylus commented on June 1, 2024

@eldada unfortunately I did try that as well but gave it another go and checked via kubectl proxy the password was the same for both pods (artifactory, and postgresql) but when checking the logs of artifactory:

'accessJdbcHelperImpl': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Could not initialize database: FATAL: password authentication failed for user "artifactory" 

from charts.

eldada avatar eldada commented on June 1, 2024

from charts.

sylus avatar sylus commented on June 1, 2024

Yup works perfectly when isn't a sub chart ^_^

from charts.

sylus avatar sylus commented on June 1, 2024

@eldada would it help if I uploaded my chart as a tarball? I can remove the license and config boostrap

from charts.

sylus avatar sylus commented on June 1, 2024

So I traced this to my configmap which is odd since was just a copy of artifactory.config.import.xml and the security.import.xml file.

Sorry for the noise, will file a more apt issue once poke at this further.

from charts.

eldada avatar eldada commented on June 1, 2024

Thanks for the update @sylus. Let us know if needing any more help here.

from charts.

hetii avatar hetii commented on June 1, 2024

Hi Guys I play with helmfile where I install jfrog/artifactory-oss in version: 2.2.0 and this issue still happens.
Before each deployment of this chart PVC need to be be removed.
This issue should be reopened.

from charts.

chukka avatar chukka commented on June 1, 2024

@hetii Can you please raise this as a new issue with all the info (chart version, helm version ) if it is not working

from charts.

guillem-riera avatar guillem-riera commented on June 1, 2024

I can confirm that I am facing the same issue with artifactory-oss.
I am trying with minikube too, and:

  • After upgrading the chart
  • After stoping & starting minikube
    this issue arises.

from charts.

chukka avatar chukka commented on June 1, 2024

@hetii @guillem-riera Thanks for reporting , Would you mind raising this as a new issue with all the details like chart version and other details (since this thread is quite old and this issue is already closed)

from 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.