Monday, March 16, 2015

Netcat ( NC ) for checking the network connectivity

Netcat is a goof network debugging tool . It can read and write the data through network.Both TCP and UDP supported. We mostly face issues with firewalls while we hosting our application in servers. In AWS also there are security settings for restricting the network access. But we need to check whether a port is accessible from public internet. netcat will be very useful to check this.

Suppose we are hosting a web server with port 80. We installed server properly and accessible from same system but not from the network. So we need to test whether request is coming till the server and any web server configuration causing the issue.To test this first stop the webserver then run the command "nc -l 80"
This will open 80 port ( TCP) in current system's IP. Then try to telnet from remote host to webservers 80 port. If it succeeds then you will get connection accpetd message in terminal where we ran "nc -l 80 " command.





Jenkins: FAILED: svn: E175002: OPTIONS

Today I faced some issues in Jenkins ver 1.602, Here I am telling how I resolved this issue

Jenkins: Jenkins ver. 1.602

Exception: Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version


Solution

1. First upgrade subversion installed in O.S
   for this I added yum repo 
      vi /etc/yum.repos.d/wandisco-svn.repo

 [WandiscoSVN]
name=Wandisco SVN Repo
baseurl=http://opensource.wandisco.com/centos/6/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0
Reference: http://tecadmin.net/install-subversion-1-8-on-centos-rhel/


2.  Do an svn checkout with non interactive mode.

mkdir test
cd test
svn co --non-interactive --username your_name https://svn.server.com/repository/trunk


You can see the below four files getting created under .subversion/auth folder in home directory
svn.simple
svn.ssl.client-passphrase
svn.ssl.server
svn.username


3. Downgrade the subversion plugin in jenkins

4. start tomcat with following parameter in CATALINA_OPTS in catalina.sh








Which operating system you like most?