I am getting below error in jenkins. how to resolve the error? - devops

I created an ec2 instance in aws . And installed jenkins in it through mobaxterm after installation of jenkins i am getting an error while adding git repo (an internal error occurred during form field validation (http:500). please reload the page and if the problem persists ask the administrator.)

Related

Jenkins not using my custom update center

My Server is running behind a proxy.
I have deployed jenkins a tried to install my required plugins but got connection error:
Failed to download from https://updates.jenkins.io/download/plugins/echarts-api/5.3.0-2/echarts-api.hpi
(redirected to: https://ftp.belnet.be/mirror/jenkins/plugins/echarts-api/5.3.0-2/echarts-api.hpi)
I have checked and found that I my proxy allow me connecting to another mirror (ftp.halifax.rwth-aachen.de)
I have downloaded the default config uplaod-center.json, edit it by replacing updates.jenkins.io with ftp.halifax.rwth-aachen.de and configured my file in the Update Site screen.
I have restared jenkins but I'm still getting the same connection issue to updates.jenkins.io.
Am I missing any thing here?

Jenkins 2.5 installation error (An error occurred during installation: Forbidden)

I have a fresh CentOS box, installed Tomcat 8.0 and Jenkins 2.5. After entering the secret key for a brand new installation, the next step Install suggested plugins or :Select plugins to install:. After clicking on Install suggested plugins I got an error saying
An error occurred during installation: Forbidden
I assume is related to folder permissions, the question is which one?
UPDATE: The jenkins log says
Found invalid crumb a711b93261896fb36a1d6ffbe163dca6. Will check remaining parameters for a valid one...
May 21, 2016 4:19:34 AM WARNING hudson.security.csrf.CrumbFilter doFilter
No valid crumb was included in request for /jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test. Returning 403.*
Thanks in advance.
If it's any help to anybody, I "fixed it" by restarting Jenkins http://jenkins:8080/restart, or whatever protocol, domain, and port. Then when I went back in it asked me for the secret key again, and then installed all the plugins successfully.
I have faced this problem before. It was because I was using a VPN. Once I closed the VPN, everything returned back to normal.
I was getting the same error when I was using Internet Explorer for JENKINS INSTALLATION on Windows 2019. I installed Chrome before trying again and the error went away!
I was facing this issue because I was using Internet Explorer. Switching the browser fixed the issue for me.
I faced this same issue, Alex's answer helped me.
Here's some addition to it:
I was running Jenkins on docker, so to restart it I had to do the following;
List all the running docker containers on the server:
docker container ls
Copy the container id for the Jenkins container
Restart the docker container for Jenkins using its id:
docker restart <jenkins-container-id>
Visit the URL for Jenkins again:
http://your-url:8080
Input your initial admin password, and then try setting up Jenkins again.
That's all.
I hope this helps

AspnetPublishHandler with name "Custom" was not found when publishing ASP.NET 5 project to Docker

I am trying to publish a non-modified ASP.NET 5 project to my freshly installed Ubuntu 15.04 server, but I receive the following message:
An error occurred during publish. AspnetPublishHandler with name
"Custom" was not found
I bound the server to the correct port with:
docker daemon -H 0.0.0.0:5555 &
The connection validation is successful. Anyone has an idea what could be wrong?
Have you tried after the latest release? For some configuration combination the publish profile was getting generated incorrectly.

Can't clone own github repository, get obscure fatal error

So I made changes to my rails app on my local machine that were never committed and that I decided to discard. Decided to rollback to most recent commit by deleting my rails app and all its files, and then cloning my most recent commit from my github repository. Unfortunately
git clone https://github.com/my_username/rails_app.git
results in the following error that cannot be found by just googling:
Cloning into 'sample_app2'...
fatal: unable to access 'https://github.com/IPX-/sample_app2.git/': SSLRead() return error -9806
I was recently pushing to the repo earlier today, even set up an SSH key for my this laptop, but all to no avail.
Why is git clone not working for my own repository?
Possible error due to low internet connection. This error occurred when you try to connect to server through ssl and net connection drop immediately. Or some time due to frequent disconnection. YOu can find more about this here http://flummox-engineering.blogspot.in/2014/04/sslread-return-error-9806-server.html
Possible duplicate of SSLRead() error using Git in Mavericks OS X 10.9.2
Anyhow, the answer mentioned here is that you download SSL and install.
When you have already set up SSH then why don't you access your repo over SSH?
You can use user.name#github.com:<your-repo> and it will not ask you for password if you have actually set-up SSH properly!
Enjoy!

Unable to restart or delete jenkins cartridge in OpenShift

I have an OpenShift application with a jenkins cartridge installed. Something happened when I was deploying the build. Now I am not able to restart or delete the jenkins cartridge.
When I try to restart the cartridge I get the following error:
Unexpected error: User does not exist in cgroups: 53288f5de0b8cd7aad0002ee
When I try to delete the cartridge I just get "We appear to be having technical difficulties"
Any ideas?
Thanks
Email openshift#redhat.com with your openshift username, application url, and give us permission to look at your gear, and reference this stack overflow question.

Resources