Restarting the local UAA server - cloudfoundry-uaa

How do I restart the local UAA server? Is running ./gradlerew run is the only way to do that? The problem with this is, it does the complete set-up including the dependency setup.

Related

How to login to Jenkins from any network

I’m an absolute beginner when it comes to setting up a Jenkins environment but I have just installed Jenkins on a MAC v10.15.5 using home-brew and would like the capability to:
Open a web browser
Login to Jenkins from any machine on any network
Trigger a job.
I’m able to do this using a different machine on the same network but unable to do this using a machine on a different network. I changed the "httpListenAddress" value within the jenkins-lts.plist file to 0.0.0.0 to allow the web interface to be accessible from anywhere as mentioned at https://www.macminivault.com/installing-jenkins-on-macos/ but apart from that I’m not sure where to go from here.
I’ve heard about Apache Tomcat but not sure if it's necessary for what I need to do. If anyone can provide instructions / safe approaches about how to login to the Jenkins environment on my MAC from any network that would be appreciated.
To get jenkins web interface use $JENKINS_HOST_IP:8080 (by default jenkins uses port 8080) and then make first-run-configure.
Login to Jenkins from any machine on any network - it depends on network topology, what is used in your organisation. So, to reach jenkins host from any network where should be allowed traffic from/into network where jenkins host is placed.
Trigger a job - where are a lot of triggers you can use. Take a look at official documentation here

Concourse CI Job can not curl to Service on host machine get Failed to connect to xxx.xxx.xxx. port 9090: No route to host

I have successful setup Concourse (5.7.1) on Ubuntu (16.04). Everything was find but after adding a script in deploy job to call an restful service running on same machine where concourse is installed, I got
error:Failed to connect to xxx.xxx.xx.xx port 9090: No route to host
I have been able to call the restful service from other sources.
I intercept the Job and i was not able to make make a call to the service but I was able to ping external calls
Sorry for taking this long to response. If someone else has the same problem. I succeeded to solve this problem by restarting my servers.
I don't know what exactly may had been the problem but restarting the servers works and it solved my problem.

How to connect to jenkins installed in mac from a different system

I have installed Jenkins in mac and it can be accessed with http://localhost:8080. When I try to add a git webhook, it says 'Couldn't connect to Server'. How can GitHub connect to Jenkins installed in mac?
I have installed all the Git plugins. I have tried with github personal token and github password too.
No code involved here
I expect the github webhook to connect to jenkins server
You need to configure webhook in GitHub first:
set url in configuration of webhook as follows:
http://YourIpAddress:8080/github-webhook/
Now, configure jenkins as mentioned below:
Setup you deploy keys (ssh keys) first in GitHub and Jenkins Credentials and then add github project info to your project, put ssh url of git repository (if repository is private), select webhook SCM hook pulling in Build triggers window of the respective project and add your other settings.
Now try to run this, it should work fine if all these steps followed.
Bitbucket can't connect because your localhost is not accessible from the internet.
What are you trying to use jenkins for?
Usually, you would want it to be installed on a server, not your local machine. That way it can be accessed by other team members and other tools/services such as Github.
Github or Bitbucket are internet based services.
As they are hosted "outisde" your network, these services cannot reach your ip (ie: 192.168.0.1.120)
Depending on your internet access provider, you might have a "public" IP visible from internet.
Once you'll have it, you then need to expose your port "8080" (Jenkins one) through your firewall or router...
Please notice opening firewall to well known service port is a risk to consider.

cloudfoundry NoHostAvailableException while deploying app

I have deplyed my local cloudfoundry instance. When I try to deploy my application , my app requires cassandra to be up and running. I have cassandra host setup on independant server. Cloud foundry throws com.datastax.driver.core.exceptions.NoHostAvailableException
Whereas when I try to ping this host from the machine on which CF is installed , Ping is successful. Even this cassandra host is accessible from my local computer and works fine with my eclipse deployment.
How can I make cloudfoundry recognize this host?
You will need to make sure that (a) your application has access to the information about the address and credentials to access the cassandra server, and that (b) networking (and maybe DNS) are such that your application instances will actually be able to reach the cassandra server.
For (a), you will want to bind your application to a "user-provided service instance". For (b), you need to make sure your application's running security groups allow it to reach your cassandra server.

Setting up TeamCity on AWS Ec2

I have set up a Server and a BuildAgent on Amazon Ec2. I have configured the build agent to sit in the /home/ec2-user/build-agent directory (will this cause problems due to permissions?)
I then configured the build agent to point to the server through the public dns and port 8111. I have then started the build agent.
I used the Cloud Tab on the TC Web interface to setup the Build Agent on the server. I can see on the build agent host machine that a connection with the server has been established. Yet in the web interface I can see no build agents in either the unauthorized tab or the compatible tabs.
In short I cannot connect a build agent to the server?
Any help or ideas on this one would be greatly appreciated.
many thanks
Dermot

Resources