Jenkins

D.P.

Member
May 13, 2016
34
1
6
55
Hi!
I've installed Jenkins (according to: https://linuxize.com/post/how-to-install-jenkins-on-ubuntu-18-04/ ) on lxc unprivilaged container. Jenkins starts and after few seconds died. The status is:

Code:
root@jenkins:/etc# systemctl status jenkins
● jenkins.service - LSB: Start Jenkins at boot time
   Loaded: loaded (/etc/init.d/jenkins; generated)
   Active: active (exited) since Wed 2019-03-20 13:23:33 CET; 48s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 146 ExecStart=/etc/init.d/jenkins start (code=exited, status=0/SUCCESS)

mar 20 13:23:32 jenkins systemd[1]: Starting LSB: Start Jenkins at boot time...
mar 20 13:23:32 jenkins jenkins[146]: Correct java version found
mar 20 13:23:32 jenkins jenkins[146]:  * Starting Jenkins Automation Server jenkins
mar 20 13:23:32 jenkins su[277]: Successful su for jenkins by root
mar 20 13:23:32 jenkins su[277]: + ??? root:jenkins
mar 20 13:23:32 jenkins su[277]: pam_limits(su:session): Could not set limit for 'nofile' to soft=1024, hard=8196: Operation not permitted; uid=0,euid=0
mar 20 13:23:32 jenkins su[277]: pam_unix(su:session): session opened for user jenkins by (uid=0)
mar 20 13:23:32 jenkins su[277]: pam_unix(su:session): session closed for user jenkins
mar 20 13:23:33 jenkins systemd[1]: Started LSB: Start Jenkins at boot time.

This solution https://forum.proxmox.com/threads/real-ulimit-value-for-lxc-containers.29798/ doesn't work.
Any suggestions.
Regards,
D.P.
 
  • Like
Reactions: majorgear
maybe the lines are not the reason it dies, check the logs (journal/jenkins logs)
 
Did you ever figure this out? I needed Jenkins to access CIFS network shares, so I tried a privileged container. My entire proxmox server would hang every time I started the LXC.

I switched it to a virtual machine and Jenkins runs fine there.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!