Sunday, 17 April 2016

AWS jenkins tomcat "ConnectException: Connection timed out"


AWS jenkins tomcat "ConnectException: Connection timed out"

Error 1.
ERROR: Build step failed with exception
org.codehaus.cargo.container.ContainerException: Failed to redeploy
Caused by: java.net.ConnectException: Connection timed out

error 2.
This site can’t be reached
xx.xxx.xx.xxx took too long to respond.
ERR_CONNECTION_TIMED_OUT

solution :

go to network and setting --> click on "deafault" name
edit indound rule.
add "cunstom tcp rule" add the custom port that you want to listen ex:8090 or 3000
save.

open a port in linux using firefall-cmd

open a port in linux using firefall-cmd.

before running the command install firewalld package.

1) install the firewalld on linux
cmd : yum install firewalld
2) check status.
cmd : systemctl status firewalld
if it is not enable, enable it.
cmd : systemctl enable firewalld
3) if it not started start it.
cmd : systemctl start firewalld

4) stop the firewall
cmd : service firewalld stop



Now we have to open the port which will visible to public
open port :
cmd : firewall-cmd --zone=public --add-port=8090/tcp --permanent

reload the service :
firewall-cmd --reload

check whether the port was added to ipatables rules:
iptables-save | grep 8090

REF :
1) liquidweb
2) linuxconfig

Maven fails to parse POMs jenkins

Maven Failed to parse POMs jenkins
hudson.maven.MavenEmbedderException: 1 problem was encountered while building the effective settings
[FATAL] Non-readable settings /usr/../apache-maven/apache-maven-3.2.1/conf: /usr/../apache-maven/apache-maven-3.2.1/conf (Is a directory) @ /usr/../apache-maven/apache-maven-3.2.1/conf

Solution :

Go to jenkins homepage.

Go the project/job which was deployed.

Go to configuration -> build - > advance-

From the setting file dropdown -- > choose default maven setting option and save.

And build the jenkins job.

Saturday, 16 April 2016

linux export not a valid identifier

-bash: export: `=': not a valid identifier

Hen making an export. remove the in between spaces.

export JAVA_HOME = "/usr/...". (with spaces)

export JAVA_HOME="/usr/profile" (without spaces).

Find Out Which Process Is Listening Upon a Port

Find Out Which Process Is Listening Upon a Port

for check what port the tomcat server is using

use : netstat – a command-line tool that displays network connections, routing tables, and a number of network interface statistics.

ex : netstat -tulpn

Get a list of the installed services in linux


Get a list of the installed services in linux

To get a list of the installed services on the shell, you may use this command linux

chkconfig --list

start,stop tomcat server on linux

start tomcat server on linux

command : sudo service tomcat start

stop tomcat server on linux

command : sudo service tomcat start

Re-start tomcat server on linux

command : sudo service tomcat restart


Find Out Which Process Is Listening Upon a Port

check what port the tomcat server is using

use : netstat – a command-line tool that displays network connections, routing tables, and a number of network interface statistics.

ex : netstat -tulpn

REF: cybercitz