svn problem while running Build-AOP-RPMs.tcl

Moderators: cyao, soliday

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

svn problem while running Build-AOP-RPMs.tcl

Post by ding » 08 May 2014, 13:01

Hi Bob,
I am running the Build-AOP-RPMs and have the problem to validate the certificate. it would stuck there. If I put a "p" then it shows the following errors. Is there a way to work around it?

thanks,
Yuantao

==================================
Error validating server certificate for 'https://svn.aps.anl.gov:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: svn
- Valid: from Wed, 24 Oct 2012 00:00:00 GMT until Sat, 25 Oct 2014 23:59:59 GMT
- Issuer: Terms of use at https://www.verisign.com/rpa (c)10, VeriSign Trust Network, VeriSign, Inc., US
- Fingerprint: 0a:e3:dc:77:22:99:b0:46:9d:52:82:90:3b:f9:06:cd:66:11:d0:cd
(R)eject, accept (t)emporarily or accept (p)ermanently?
while executing
"exec svn -N -q --config-dir ~ding/.subversion checkout https://svn.aps.anl.gov/AOP/oag/trunk oag"
("eval" body line 1)
invoked from within
"eval exec $sudo svn -N -q --config-dir ~${owner}/.subversion checkout https://svn.aps.anl.gov/AOP/oag/trunk oag"
invoked from within
"if {$Build(SDDS) || $Build(SDDSEPICS) || $Build(ELEGANT) || $Build(SHOWER) || $Build(SPIFFE) || $Build(SDDSPYTHON) || $Build(OAGTCLTK) || $Build(SDDSJ..."
(file "Build-AOP-RPMs.tcl" line 289)

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: svn problem while running Build-AOP-RPMs.tcl

Post by soliday » 08 May 2014, 13:14

I can't get it to display that message but I googled it and found that it might be fixed if you run:

rm ~/.subversion/auth/svn.ssl.server/*

After running this, try running:
svn -N checkout https://svn.aps.anl.gov/AOP/oag/trunk oag
so that you will be prompted with the warning, then select 'p' to perminently accept svn.aps.anl.gov as a trusted site. Then hopefully next time you run the Build-AOP-RPMs script it won't print out the warning message.

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

Re: svn problem while running Build-AOP-RPMs.tcl

Post by ding » 08 May 2014, 17:37

Hi Bob,
still problem. I followed your suggestions, and also did "chmod -R 777 ~/.subversion/auth" based on other web suggestions, but still doesn't work. and if I do "svn ..." it actually won't display that warning message now but cannot run the tcl at that step.

I am requesting the sudo for the cluster and would try to see if your prebuilt rmps work or not.

thanks,
yuantao

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

Re: svn problem while running Build-AOP-RPMs.tcl

Post by ding » 08 May 2014, 19:07

looks your prebuilt rpms almost work. but I have the problem of mkdir as the following. I am the superuser and I plan to put in a afs space which should be fine with making folders. Any tricks for this?
thanks,
Yuantao


[root@oak002 Elegant_2014]# rpm -Uvh --force --prefix=/afs/slac/g/beamphysics/software/Elegant_2014 elegant-25.3.3-1.rhel.6.5.openmpi.x86_64.rpm
Preparing... ########################################### [100%]
1:elegant ########################################### [100%]
error: unpacking of archive failed on file /afs/slac/g/beamphysics/software/Elegant_2014/Pelegant: cpio: mkdir failed - Operation not permitted
[root@oak002 Elegant_2014]#

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: svn problem while running Build-AOP-RPMs.tcl

Post by soliday » 09 May 2014, 09:59

The RPM tries to make a /usr/local/oag/apps/configData/elegant/ringAnalysisTemplates directory which is probably what is causing the problem.

You can unpack the files without installing them with the command:
rpm2cpio elegant-25.3.3-1.rhel.6.5.openmpi.x86_64.rpm | cpio -idmv

This will unpack everything in the usr/bin and usr/local in your local directory.

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

Re: svn problem while running Build-AOP-RPMs.tcl

Post by ding » 09 May 2014, 11:59

Hi Bob,

I am not encouraged to install the code in the local drive of the cluster, but instead at an AFS space. is there a way with "--prefix" to install ELEGANT rpm all in the AFS space?

thanks,
Yuantao

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: svn problem while running Build-AOP-RPMs.tcl

Post by soliday » 09 May 2014, 12:57

Not with the rpm command. But can with the rpm2cpio command. Just cd to the /afs/slac/g/beamphysics/software/Elegant_2014 directory before you run it. It will extract everything here then. You should end up with:

/afs/slac/g/beamphysics/software/Elegant_2014/usr/bin/elegant
and
/afs/slac/g/beamphysics/software/Elegant_2014/usr/local/oag/apps/configData/elegant/ringAnalysisTemplates

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

Re: svn problem while running Build-AOP-RPMs.tcl

Post by ding » 09 May 2014, 16:26

Thanks Genius!!
just that simple. the prebuilt rpms just works for our cluster!!
-Yuantao

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

Re: svn problem while running Build-AOP-RPMs.tcl

Post by ding » 23 May 2014, 15:32

HI Bob,

one of my colleagues is running "elegantRingAnalysis" and realized it doesn't work. it shows the error as:
===========================
oak002:~> elegantRingAnalysis
Error in startup script: invalid command name "APSDebugPath"
while executing
"APSDebugPath"
(file "/afs/slac/g/beamphysics/software/Elegant_2014/usr/bin/elegantRingAnalysis" line 157)
==========================
I have the following folders unpacked:
/afs/slac/g/beamphysics/software/Elegant_2014/usr/bin/
/afs/slac/g/beamphysics/software/Elegant_2014/usr/local/oag/apps/configData/elegant/ringAnalysisTemplates
/afs/slac/g/beamphysics/software/Elegant_2014/usr/lib64/tcl8.5

what do I miss?

thanks,
Yuantao

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: svn problem while running Build-AOP-RPMs.tcl

Post by soliday » 27 May 2014, 08:49

The script defaults to looking to /usr/local/oag/apps/lib/$HOST_ARCH for the Tcl libraries. You can override this by setting:

export OAG_TOP_DIR=/afs/slac/g/beamphysics/software/Elegant_2014/usr/local

Post Reply