One of our third party software suppliers changed their CVS server.
This meant that the key stored by eclipse CVS tools to verify the server were no longer valid, and you can no longer connect to the CVS Server. Unfortunately there is no way in eclipse to remove or reset the server key.
One of colleagues got round this by using a new workspace. I have so many projects in my workspace that im dependant on that I didnt want to do that.
I thought about using windows search to search the contents of my workspace for the CVS servers IP address, but I've used it before and its "pants". For file searching I use Agent Ransack, which is absolutely brilliant.
Did a text search in my workspace for the CVS servers IP address and got found the following
MESSAGE Host key for 192.168.2.1 was not found in the list of known hosts stored in C:\Documents and Settings\joebloggs\My Documents\IBM\wdsc\workspace3\.metadata\.plugins\org.eclipse.team.cvs.ssh\known_hosts. The key is being automatically added to the known_hosts file for you. This key, which is like a personal signature, is used by Eclipse to guarantee that the host it is communicating with is the correct one. If the Eclipse client detects a change in this key you will be notified.
looked for the known_hosts file and removed the key.
Showing posts with label cvs. Show all posts
Showing posts with label cvs. Show all posts
Thursday, January 06, 2005
Saturday, November 13, 2004
CVS Respitory on as400 Iseries II
Well got the samba mount to our development as400 working. I could see the as400 IFS from the linux samba mount.
So I setup a directory called repository,at /home/cvs.
Set the access level and access mode of directory /home/cvs/repository: chmod 770 /home/cvs/repository
Set setgid bit on directory /home/cvs/repository: chmod g+s /home/cvs/repository
(last two done via qshell)
Unfortunately the samba mount does not play very nicely with CVS. When i tried to initialise a new repository using the command:
cvs -d /mnt/cvs/repository init
I got an input/output error and the linux box lost the connection to the as400.
Thinking that there must be a way to get this working I did some reading and discovered (Columbus style, as I wasnt the first) NFS.
So I set up NFS on the 400, by first adding this to /etc/EXPORTS:
/home/cvs RW=198.26.21.122,root=198.26.21.122,anon=-1
then starting NFS:
STRNFSSVR SERVER(*ALL)
Then on the linux box, I setup the mount in /etc/fstab so it kicks in on reboot:
198.26.21.122:/home/cvs /mnt/cvs nfs rw
ok, fine and dandy, did reboot and did an ls in /mnt/cvs and hooray, as400 IFS.
Then to setup the cvs repository:
cvs -d /mnt/cvs/repository init
this also ran fine and dandy.
The next step on the linux box was to modify xinetd service to enable pserver protocol
Logged in as root.
Create a file named cvspserver in directory /etc/xinetd.d with this content:
# default:
off # description: An cvs server.
service cvspserver {
disable = no
socket_type = stream
protocol = tcp
user = root
wait = no
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvs/repository pserver
log_on_success +=USERID
log_on_failure += USERID
}
Open /etc/services and verify that these two lines are present. If they are not, add them:
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations
Restart xinetd service:
service xinetd restart
did all that, then as instructed, setup the user environment
Open the file /etc/profile. You should to see these lines in the file:
USER='id -un'
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
Add one line after the environment variable MAIL.
CVSROOT=":pserver:$USER@localhost:/home/cvs/repository"
In the file, you should also see a line like this:
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
Modify it and add CVSROOT into the export list like this:
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC CVSROOT
Test the installation by local users
Developer 1 log in as cvsdev1.
Make sure the environment variable is correct by typing this command:
echo $CVSROOT
It should return a result like this related to the user name:
:pserver:cvsdev1@localhost:/home/cvs/repository
I did get an error at this point related to dodgy characters in my etc/profile file. This was caused by downloading the file to windows, (i USE WinSCP), and editing using wordpad which introducing dos style line breaks. To fix this I opened the file in vi, and then did :set ff=unix to change the file format
logged off and tried echo $CVSROOT again, and got the correct result this time!
Then tried to login to cvs (had previously used useradd to create cvs, and 2 other users)
CVS login
was prompted for password but when i entered my linux login, got
cvs [login aborted]: connect to localhost(127.0.0.1):2401 failed: Connection refused
I think this is related to the cvs pserver setup. Ive tried a few things but havent got to the bottom of it on as400 yet.
So I setup a directory called repository,at /home/cvs.
Set the access level and access mode of directory /home/cvs/repository: chmod 770 /home/cvs/repository
Set setgid bit on directory /home/cvs/repository: chmod g+s /home/cvs/repository
(last two done via qshell)
Unfortunately the samba mount does not play very nicely with CVS. When i tried to initialise a new repository using the command:
cvs -d /mnt/cvs/repository init
I got an input/output error and the linux box lost the connection to the as400.
Thinking that there must be a way to get this working I did some reading and discovered (Columbus style, as I wasnt the first) NFS.
So I set up NFS on the 400, by first adding this to /etc/EXPORTS:
/home/cvs RW=198.26.21.122,root=198.26.21.122,anon=-1
then starting NFS:
STRNFSSVR SERVER(*ALL)
Then on the linux box, I setup the mount in /etc/fstab so it kicks in on reboot:
198.26.21.122:/home/cvs /mnt/cvs nfs rw
ok, fine and dandy, did reboot and did an ls in /mnt/cvs and hooray, as400 IFS.
Then to setup the cvs repository:
cvs -d /mnt/cvs/repository init
this also ran fine and dandy.
The next step on the linux box was to modify xinetd service to enable pserver protocol
Logged in as root.
Create a file named cvspserver in directory /etc/xinetd.d with this content:
# default:
off # description: An cvs server.
service cvspserver {
disable = no
socket_type = stream
protocol = tcp
user = root
wait = no
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvs/repository pserver
log_on_success +=USERID
log_on_failure += USERID
}
Open /etc/services and verify that these two lines are present. If they are not, add them:
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations
Restart xinetd service:
service xinetd restart
did all that, then as instructed, setup the user environment
Open the file /etc/profile. You should to see these lines in the file:
USER='id -un'
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
Add one line after the environment variable MAIL.
CVSROOT=":pserver:$USER@localhost:/home/cvs/repository"
In the file, you should also see a line like this:
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
Modify it and add CVSROOT into the export list like this:
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC CVSROOT
Test the installation by local users
Developer 1 log in as cvsdev1.
Make sure the environment variable is correct by typing this command:
echo $CVSROOT
It should return a result like this related to the user name:
:pserver:cvsdev1@localhost:/home/cvs/repository
I did get an error at this point related to dodgy characters in my etc/profile file. This was caused by downloading the file to windows, (i USE WinSCP), and editing using wordpad which introducing dos style line breaks. To fix this I opened the file in vi, and then did :set ff=unix to change the file format
logged off and tried echo $CVSROOT again, and got the correct result this time!
Then tried to login to cvs (had previously used useradd to create cvs, and 2 other users)
CVS login
was prompted for password but when i entered my linux login, got
cvs [login aborted]: connect to localhost(127.0.0.1):2401 failed: Connection refused
I think this is related to the cvs pserver setup. Ive tried a few things but havent got to the bottom of it on as400 yet.
Friday, November 12, 2004
CVS Repository on the Iseries
One of the things that I have been trying to do this week is
- Get CVS setup on a PC. This is now down with Mandrake 10 installed, which comes with CVS (dont know what version) and SAMBA installed
- Setup a mount to a shared directory in the IFS of our development as400. Also done. We created a share of a folder on our dev 170, and then used set up a SAMBA mount to fstab to this share, so that it was done every time the machine is restarted:
//127.0.0.1/cvsserver /mnt/my400 smbfs username=user,password=password,dmask=777,fmask=777
Subscribe to:
Posts (Atom)