why i am getting error while accessing the jenkins homepage? - jenkins

I am not able to display the jenkins homepage properly.
I have installed two VM with jenkins server and accessing the jenkins through putty and windows browser. Scenarion of two jenkins are
with normal connection [working]
in vpn connection [not working]
i can view the homepage of 1st, but not getting proper view of 2nd machine.
It displays only text not working. I mean only texts of login ,logout and build now etc.
when i click on this text getting following error
"Not Found
The requested URL /login was not found on this server."
There is no browser issues i have tried it 2-3 browsers.
I think this is jenkins issues or something else plz help.

You share so few details about how you installed Jenkins and what is the environment that you should not expect any good answers. I suspect the problem is around the correct use of the Jenkins --prefix command line parameter. It changes the way Jenkins constructs URLs for links. I hope this helps. If not, you should consider telling us more about your setup.

Related

How to solve Dashboard showing "[user] is missing the Overall/Administer permission" after jenkins.war upgrade to 2.263.3

I was about to ask this question - but have managed to find a solution.
Adding question anyway in the hope that it might help others.
AND because I was initially scared to do anything with wizard in case jenkins config got wiped .. or something. So despite seeing the wizard I went all around the houses moving config files, editing different settings before finally finding the very easy solution!
Upgrade from jenkins.war 2.263.3 to 2.375.1 gave some trouble.
Jenkins with workflow and pipelines.
PROBLEM:
Dashboard shows "[user] is missing the Overall/Administer permission"
You can actually use menus and see jobs to some extent but various parts of GUI are not working.
SOLUTION:
Try to login as admin user.
Instead of Dashboard showing the jenkins setup wizard was showing.
Click in the wizard to skip setup and get rid of it.
After that Dashboard shows ok for the admin user and also for other users.
Another thing to watch with this jump upgrade - ssl library has changed and jenkins internal .ssh/config had to have some changes to control legacy ssh keys.
Login as admin user.
Instead of Dashboard showing the jenkins setup wizard was showing.
SOLUTION:
Click in the wizard to skip setup and get rid of it.
After that Dashboard shows ok for the admin user and also for other users.

Make Jenkins login page private

I'm just getting started with Jenkins: I installed it on my VPS, I linked it to a sub-domain I own (ci.example.com) and I can correctly log in and do whatever I need to do.
Question: I don't like the login page to be publicly accessible, how can I make it accessible only from specific IP addresses or hide it behind VPN?
This is more or less a duplicate of
Make Jenkins invisible to remote users
... and there is an answer, too!
In short:
--httpListenAddress=127.0.0.1
(e.g. in Debian, add it to /etc/default/jenkins )

TFS 15 RC2 - Build Agent Publish to Packages Feed

I've been unsuccessful with having my build publish to the new Package Feed in TFS 15 RC2. I'm currently running TFS offline and using a local build agent. I've followed these instructions to no avail.
Since the last image in those instructions is cropped around the URL, and that URL was specific to VSTS online, I thought mine might be wrong. So I tried the following (none worked):
Using http://[computername]:8080/tfs/DefaultCollection/_packaging/{feedName}/nuget/v3/index.json
gives an error when it tries to prompt for input of credentials in
interactive mode.
Using http://[computername]:8080 gives a 404.
Using http://[computername]:8080/tfs gives same error as #1.
Using http://[computername]:8080/tfs/DefaultCollection gives same error as #1
Since some errors happened while trying to do an interactive prompt, I thought it might be a permission error. The following links give some information, but it seems like the Build Agent should already be in the right category for publishing permissions.
https://www.visualstudio.com/en-us/docs/package/feeds/common-identities
https://www.visualstudio.com/en-us/docs/package/nuget/auth
Anyone happen to know a solution? Thanks!
EDIT
The build agent was running as NT AUTHORITY/Network Service, which is the default of the agent config. I removed this agent and configured it to run under my user account, which is an admin on the system. After doing so, I was able to publish without issues to the Packages using the URL in #1 (as Cece below has written). Is there something else I need to do to get the permissions set for the default agent?
The Internal Feed URL is the NuGet Package Source URL for the feed you want to publish to.
When you create a new Feed, navigate to your feed, and select Connect to feed. You'll see the NuGet package source URL. The format should be like: http://{tfsserver}:8080/tfs/DefaultCollection/_packaging/{FeedName}/nuget/v3/index.json

stop jenkins from checking for internet connectivity by trying to reach google

I want to set up Jenkins. When I go to install or update plugins, Jenkins automatically checks for "Internet connectivity". For reasons unclear to me, it appears that the Jenkins definition of "Internet connectivity" is "able to reach google.com". I am located in China, and trying to contact google over an unprotected connection is guaranteed to fail.
I'd like to skip (or at least redirect) this check, which takes a long time, can never succeed, isn't relevant to the task that triggers it, and isn't even used by Jenkins (the actual plugin download goes through fine after Jenkins gives up on reaching google). Is there a way?
open /var/lib/jenkins/updates/default.json file, you will see the connectionCheckUrl is set to www.google.com. change it to www.baidu.com, and restart.
As an alternative to proxy, you can always modify the hosts file on the Jenkins machine (location depends on the OS), and redirect google.com to whatever IP you want.

My Jenkins confluence publishing plugin does not work

I have a little issue with my development infrastructure. I have a Jenkins CI and I would like to use the Jenkins Confluence publishing plugin to publish the artifacts on a wiki page. I have followed all the steps within the plugin home page but it does not work.
All configuration have been verified (credentials, etc.)...but still, it does not work. Jenkins even check automatically if the credentials provided are correct and if it can access the target confluence page.
instead, after the build I have the following error :
BUILD SUCCESSFUL
Total time: 15 seconds
Archiving artifacts
[confluence] Unable to locate page: ARTIFACT/App+Artifact+Page.
[confluence] Check that the page still exists. If the Space and/or Page name contain build-time parameters, check that the parameter(s) are set to the proper value(s).
Finished: SUCCESS
ARTIFACT is the space name and App Artifact Page the page name.
Any help would be appreciated
Thanks in advance
The problem is with those pluses in page name. So when your page name is Page Names With Pluses then url in the web browser shows:
http://confluence.example.com/display/Space/Page+Names+With+Pluses
Don't put those pluses in Jenkins' configuration but put Page Names With Pluses and it'll work.

Resources