I’m trying to setup Jenkins on Rancher 2.0 from official docker image (jenkins/jenkins:lts) and put its work folder (/var/jenkins_home) on Longhorn Persistent Volume.
Got an error on container creating: /var/jenkins_home/copy_reference_file.log: Permission denied
Found a GitHub issue with the same problem but since i’m not using bind mounts thats not particularly helpful.
I’ve got the same problem.
Persistent storage dir is /data.
Added /data/var/jenkins_home as a volume while creating the workload.
Results in the same Error.
Tried creating a user and group jenkins and chown -R jenkins:jenkins /data/var and chmod 777 these folders.
Same Error still.
I’ve got no clou how to fix this. Any help would be much appreciated.
I am having a similar issue with Longhorn volumes in a Rancher 2.0 RKE cluster.
My storage class is auto provisioning volumes, the volumes get bound, and the mounts succeed in the Events for the pod, but the volume never actually mounts in the container OS. All the volumes show up in /proc/partitions but not in the “mount” listing. Instead all the persistent volume mounts appear to try to remount /dev/sda.
root@mssql-linux-mssql-linux-95d987f66-6rz4d:/# mount | grep mssql
/dev/sda on /mssql-data/data type ext4 (rw,relatime,data=ordered)
/dev/sda on /mssql-translog/translog type ext4 (rw,relatime,data=ordered)
/dev/sda on /mssql-backup/backup type ext4 (rw,relatime,data=ordered)
/dev/sda on /mssql-data/master type ext4 (rw,relatime,data=ordered)
root@mssql-linux-mssql-linux-95d987f66-6rz4d:/#
root@mssql-linux-mssql-linux-95d987f66-6rz4d:/# cat /proc/partitions
major minor #blocks name