artifactory-docker-examples: Directory '/opt/jfrog/artifactory/data' is not writable!

out of the box, Artifactory for k8s gives me an error of:

org.artifactory.common.ArtifactoryHome - Warning: Directory '/opt/jfrog/artifactory/data' is not writable!

I’m running as user 1030 (since we cannot run as root), is there something I’m missing that will get past this error?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 30 (13 by maintainers)

Most upvoted comments

I hit this wall in our case (GKE as the underlying k8s), resolved by overriding perms with the following initContainers section in kubernetes/artifactory.yml:

      initContainers:
      - name: "grant-permissions"
        image: "busybox:1.26.2"
        imagePullPolicy: "IfNotPresent"
        command:
        - 'sh'
        - '-c'
        - 'chown -R 1030 /var/opt/jfrog/artifactory'
        volumeMounts:
        - mountPath: "/var/opt/jfrog/artifactory"
          name: artifactory-pro-volume

Hope this helps someone!