Jenkins plugin/ FreeNAS-11.3-U5

ostbaldo

Cadet
Joined
Oct 6, 2020
Messages
1
Hi guys im trying to get Jenkins running but when i go to the admin page (http://192.168.1.209:8585/jenkins/) i get:

An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

Faithfully yours, nginx.


root@auto:/usr/local/etc/rc.d # ./jenkins status
jenkins is running as pid 10268.


root@auto:/var/log/nginx # more error.log
2020/10/06 10:26:07 [error] 7953#102367: *1 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.108, server: _, request: "GET /jenkins/ HTTP/1.1", upstream: "http://127.0.0.1:8180/jenkins/", host: "192.168.1.209:8585", referrer: "http://freenas/"
2020/10/06 10:26:07 [error] 7953#102367: *1 open() "/usr/local/www/nginx/favicon.ico" failed (2: No such file or directory), client: 192.168.1.108, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.209:8585", referrer: "http://192.168.1.209:8585/jenkins/"
2020/10/06 10:30:11 [error] 9548#101036: *1 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.108, server: _, request: "GET /jenkins/ HTTP/1.1", upstream: "http://127.0.0.1:8180/jenkins/", host: "192.168.1.209:8585"
2020/10/06 10:30:14 [error] 9548#101036: *1 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 192.168.1.108, server: _, request: "GET /jenkins/ HTTP/1.1", upstream: "http://127.0.0.1:8180/jenkins/", host: "192.168.1.209:8585"

Any ideas?
 

oooowen

Cadet
Joined
Nov 28, 2020
Messages
2
I got the same error upon upgrade of Jenkins. The problem seems to be that the post-upgrade Jenkins is listening on a different port than before upgrade (8180 before, 8080 after). I fixed this by editing the nginx config file (/usr/local/etc/nginx/nginx.conf) and changing port 8180 to 8080 to match what Jenkins is now using. (look for the "location /jenkins/ {}" closure).

Additionally, there was another problem: the upgraded Jenkins seemed to not be using the /jenkins/ prefix in the URL. I fixed this by editing the Jenkins startup script: /usr/local/etc/rc.d/jenkins

change this line:
: ${jenkins_args="--webroot=${jenkins_home}/war"}
to:
: ${jenkins_args="--webroot=${jenkins_home}/war --prefix=/jenkins"}

hope this helps
 

tiborcar

Cadet
Joined
May 19, 2021
Messages
1
Greetings, I am new and I did not get a clear post about truenas 12 core configuration, can you help me? .
I don't know how to access / usr / local / jenkins / secrets / initialAdminPassword from the shell console
 

flashdrive

Patron
Joined
Apr 2, 2021
Messages
264
@tiborcar
in TrueNAS webbrowser open the shell:

cd /mnt/yourpoolnamehere/iocage/jails/jenkins/root/usr/local/jenkins/secrets/
vi initialAdminPassword
copy the first line to jenkins
 
Top