[Fuego] Jenkins service restart failure after UID:GID change

Dhinakar Kalyanasundaram <[email protected]> Tue, 04 Jan 2022 01:09:25 +0530
Newsgroups dev.linux.lists.fuego
Message-ID <20220103193925epcms5p4d17a25b6be557cee86f852e492eeb9fb@epcms5p4>
Dear Fuego users, Tim,




Nice to get in touch & post message in this forum after quite sometime.


I am facing an issue related to file/folder ownership outside and inside docker.


The ownership of 'fuego-core', 'fuego-ro' & 'fuego-rw' folders and files inside is in my name 'dhinakar' with UID:GID -> 1000:1000 on my Linux (Ubuntu 20.04.3 LTS) host.


Inside docker the ownership of 'fuego-core', 'fuego-ro' & 'fuego-rw' folders and files gets changed to and user whose UID:GID maps to 1000:1000, ideally 'jenkins'.


But unfortunately inside docker my 'jenkins' user has UID:GID -> 1001:1001 so I face permission issues when I access 'fuego-core', 'fuego-ro' & 'fuego-rw' folders as 'jenkins' user from the Fuego Dashboard.


I tried to fix it by changing UID:GID of 'jenkins' user inside docker to 1000:1000 using following commands,


# usermod -u 1000 jenkins
# groupmod -g 1000 Jenkins


and also by directly modifying /etc/passwd file (jenkins:x:1001:1001::/var/lib/jenkins:/bin/bash -> jenkins:x:1000:1000::/var/lib/jenkins:/bin/bash)


And restarted Jenkins service after making the above changes.


But I got the below error.


# service jenkins restart
[FAIL] Restarting Jenkins Continuous Integration Server: jenkins failed!


Anyone faced similar issues? If so please share your approach to solve this issue.




Note: I do not want to reinstall fuego or create a new instance as I have lot of data inside current docker instance.


Also, I do not want to change UID:GID of my ubuntu host 'dhinakar' as it is used across projects and on network.




Regards,


Dhinakar
(unnamed) (image/gif, 13.1 KB) - not displayed