[daip] AIPS installation problems (for Synthesis Imaging Workshop at NMT)

Eric Greisen egreisen at nrao.edu
Tue May 27 18:08:07 EDT 2008


Joel Eidsath wrote:
> Hello,
> 
> I'm getting the necessary packages ready for the upcoming Synthesis 
> Imaging Workshop here at NMT, and I'm told that you are our technical 
> contact for AIPS.
> 
> Since we need to install AIPS on a couple of dozen computers, I've 
> wrapped an RPM around it. Attached is the spec file I wrote along with 
> the AIPSRC options file.
> 
> I created a group "aips" that will be used for write access to the aips 
> files. Since the RPM is used for multiple machines, I chose the 
> "LOCALHOST" option, and I don't plan to edit /etc/services, since 
> according the install wizard, users will be able to use unix sockets.
> 

I suspect that the LOCALHOST will not work at all.  It is designed for a 
system containing one machine and one user.  For N machines, as here in 
the AOC, there is only one copy of the AIPS installation and each 
machine has its own data area(s) named via soft links or actual names 
with directories containing the host name.  Then each host is listed in 
HOSTS.LIST and each data area is listed in DADEVS.LIST.  Otherwise, all 
users will be localhost independent of the machine on which they reside 
and so they will all talk - with the same user number to the same data 
area.  As a result they will F**k each other royally.

Perhaps I do not understand your plan or what you are doing.  Are you 
installing aips separately on each computer so that each computer sees 
only itself?  That might work - although it is a lot of copies of a big 
package.
> When I run "aips notv tpok" as per the recommended test procedure, it 
> works fine as user "thras" -- the account under which I build the rpm, 
> and who is the group owner of all files that were not set to be owned by 
> "aips." It asks for my user id, and I am able to run "print 1 + 2" as 
> suggested in the install notes.
> 
> Unfortunately, when I run as a test user (a member of group aips), I get 
> the following errors:
> 
> -bash-3.2$ aips notv tpok
> 
> You have a choice of 2 printers.  These are:
> 
>    No. [ type  ] Description
> -------------------------------------------------------------
>     1. [     PS] Speare 4 Printer
>     2. [     PS] Speare 23 Printer
> -------------------------------------------------------------
> 
> START_AIPS: Enter your choice, or the word QUIT [default is 1]:
> START_AIPS: Your initial AIPS printer is the Speare 4 Printer
> START_AIPS:  - system name speare4, AIPS type PS
> 
> START_AIPS: User data area assignments:
>  (Using global default file /usr/local/aips/DA00/DADEVS.LIST for DADEVS.PL)
>   Disk 1 (1) is /usr/local/aips/DATA/LOCALHOST_1
> 

Look at the SPACE file in /usr/local/aips/DATA/LOCALHOST_1 and the 
permissions on that directory.  The user must have axxess (write) to both.

Eric Greisen

> Tape assignments:
>   Tape 1 is REMOTE
>   Tape 2 is REMOTE
> 
> START_AIPS: Assuming TPMON daemons are running or not used (you said TPOK)
> Starting up 31DEC07 AIPS with normal priority
> Begin the one true AIPS number 1 (release of 31DEC07) at priority =   0
> AIPS 1: You are NOT assigned a TV device or server
> AIPS 1: You are NOT assigned a graphics device or server
> AIPS 1: Enter user ID number
> ?3406
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: ZCREA2: ERROR OPENING SPACE LOCK FILE = DA01:SPACE
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: ZERROR: ON FILE DA01:MSD2MM000.2MM;
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: ZERROR: IN ZCREA2 ERRNO = 13 (Permission denied)
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: CATCR: CREATE MESSAGE FILE ERROR      4
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: ZCREA2: ERROR OPENING SPACE LOCK FILE = DA01:SPACE
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: ZERROR: ON FILE DA01:CAD000000.2MM;
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: ZERROR: IN ZCREA2 ERRNO = 13 (Permission denied)
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: CATCR: CREATE CATLG ON VOL 1 ERROR      4
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: CTLG PROBLEM
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: TRACE: #    33 LEVS   1 NAMES AIPS
> ZMSGOP: FILE DA01:MSD2MM000.2MM;      NOT FOUND
> MSGWRT ERROR      2 AT OPEN                                            
> AIPS 1: localhost    31DEC07 TST: Cpu=       0.0  Real=       0
> -bash-3.2$
> 
> This appears to be a permission problem, so here is are the permissions 
> on the /usr/local/aips directory:
> 
> -bash-3.2$ ls -l /usr/local/aips
> total 93492
> drwxr-xr-x 30 root thras     4096 2008-05-27 12:04 31DEC07
> -rw-------  1 root thras 95433853 2008-05-27 11:38 31DEC07.tar.gz
> lrwxrwxrwx  1 root thras       15 2008-05-27 12:04 aips -> /usr/local/aips
> -rwxr-xr-x  1 root aips     14003 2008-05-27 11:38 AIPSASSN.CSH
> -rwxr-xr-x  1 root aips     14598 2008-05-27 11:38 AIPSASSN.SH
> -rwxrwxr-x  1 root thras     2911 2008-05-27 11:38 AIPS.BOOT
> -rwxrwxr-x  1 root thras     8574 2008-05-27 11:38 AIPSPATH.CSH
> -rwxrwxr-x  1 root thras     8566 2008-05-27 11:38 AIPSPATH.SH
> drwxrwsr-x  3 root aips      4096 2008-05-27 12:04 DA00
> drwxrwxr-x  3 root thras     4096 2008-05-27 12:04 DATA
> -rwxrwxr-x  1 root thras      821 2008-05-27 11:44 do_daily.localhost
> drwxrwsr-x  2 root aips      4096 2008-05-27 11:38 FITS
> -rwxrwxr-x  1 root thras     3172 2008-05-27 11:38 HOSTS.CSH
> -rw-rw-r--  1 root thras     3027 2008-05-27 11:38 HOSTS.LIST
> -rwxrwxr-x  1 root thras     3174 2008-05-27 11:38 HOSTS.SH
> -rw-rw-r--  1 root thras     2609 2008-05-27 11:38 LOGIN.CSH
> -rw-rw-r--  1 root thras     2660 2008-05-27 11:38 LOGIN.SH
> drwxrwsr-x  2 root aips      4096 2008-05-27 11:38 OFM
> lrwxrwxrwx  1 root thras       29 2008-05-27 12:04 PRDEVS.SH -> 
> 31DEC07/SYSTEM/UNIX/PRDEVS.SH
> drwxrwsr-x  2 root aips      4096 2008-05-27 11:38 PRINT
> -r-xr-xr-x  1 root thras    22552 2004-10-19 13:43 REGISTER
> drwxrwsr-x  2 root aips      4096 2008-05-27 11:38 RUN
> -rwxr-xr-x  1 root aips      1833 2008-05-27 11:38 SETNAME
> -rwxr-xr-x  1 root aips      1833 2008-05-27 11:38 SETUNAME
> -rwxrwxr-x  1 root thras    25525 2008-05-27 11:38 START_AIPS
> -rwxrwxr-x  1 root thras     3334 2008-05-27 11:38 START_TPSERVERS
> -rwxrwxr-x  1 root thras     5991 2008-05-27 11:38 START_TVSERVERS
> drwxr-xr-x  8 root thras     4096 2008-05-27 12:04 TEXT
> -rwxrwxr-x  1 root thras     5621 2008-05-27 11:38 TVALT
> lrwxrwxrwx  1 root thras       29 2008-05-27 12:04 TVDEVS.SH -> 
> 31DEC07/SYSTEM/UNIX/TVDEVS.SH
> 
> 
> ------------------------------------------------------------------------
> 
> %define name aips
> %define version 31DEC07
> %define release 1
> %define _use_internal_dependency_generator 0
> %define __find_requires %{SOURCE900}
> 
> Summary: Aips
> Name: %{name}
> Version: %{version}
> Release: %{release}
> Source: ftp://ftp.aoc.nrao.edu/pub/software/aips/31DEC07/31DEC07.tar.gz
> Source900: filter-requires
> Source901: AIPS/install.pl
> Source902: AIPS/.AIPSRC
> Vendor: NRAO
> URL: http://www.aips.nrao.edu
> License: Unknown
> Group: Applications/Engineering
> Prefix: %{_prefix}
> BuildRoot: /var/tmp/%{name}-%{version}-%{release}
> 
> %description
> AIPS
> 
> %install
> rm -rf $RPM_BUILD_ROOT ; mkdir -p $RPM_BUILD_ROOT
> mkdir -p $RPM_BUILD_ROOT/usr/local/aips
> sudo ln -sf $RPM_BUILD_ROOT/usr/local/aips /usr/local/aips
> cp %{_topdir}/SOURCES/AIPS/%{version}.tar.gz $RPM_BUILD_ROOT/usr/local/aips
> cp %{_topdir}/SOURCES/AIPS/.AIPSRC ~/
> tar -xzvf $RPM_BUILD_ROOT/usr/local/aips/%{version}.tar.gz -C $RPM_BUILD_ROOT/usr/local/aips/
> /usr/local/bin/perl %{_topdir}/SOURCES/AIPS/install.pl -n
> rm -f $RPM_BUILD_ROOT/usr/local/aips/aips 
> ln -sf /usr/local/aips $RPM_BUILD_ROOT/usr/local/aips/aips 
> mv ~/do_daily.localhost $RPM_BUILD_ROOT/usr/local/aips/
> mkdir -p $RPM_BUILD_ROOT/etc/profile.d/
> cp /usr/local/aips/LOGIN.SH $RPM_BUILD_ROOT/etc/profile.d/aips.sh
> cp /usr/local/aips/LOGIN.CSH $RPM_BUILD_ROOT/etc/profile.d/aips.csh
> mkdir -p $RPM_BUILD_ROOT/usr/local/bin
> mkdir -p $RPM_BUILD_ROOT/usr/bin
> ln -sf /bin/echo $RPM_BUILD_ROOT/usr/bin
> ln -sf /usr/local/bin/perl $RPM_BUILD_ROOT/usr/local/bin/perl5
> sudo rm -f /usr/local/aips
> 
> %files
> %defattr(-,root,-)
> /usr/local/aips
> /etc/profile.d/aips.sh
> /etc/profile.d/aips.csh
> /usr/local/bin/perl5
> /usr/bin/echo
> 
> %clean
> rm -rf $RPM_BUILD_ROOT
> 
> %changelog
> * Fri May 27 2008 Joel Eidsath <thras at nmt.edu>
> - First draft of the spec file
> 
> 
> 
> ------------------------------------------------------------------------
> 
> # AIPSRC created by install.pl on Tue May 27  9:28:29 2008
> #
> LAST_VERSION = 31DEC07
> AIPS_ROOT = /usr/local/aips
> GROUP = aips
> GROUPWRITE = YES
> INSTALL_FROM_CD = NO
> INSTALL_FROM_NET = YES
> ARCH = LINUX
> IS64 = NO
> SITE = NMTTCC
> THISHOST = LOCALHOST
> HOSTS = "LOCALHOST"
> PRINTERS = "speare23:PS~NONE~Speare_23_Printer speare4:PS~NONE~Speare_4_Printer"
> DATA_AREAS = "/usr/local/aips/DATA/LOCALHOST_1:NONE"
> TAPE_DRIVES = ""
> TPHOSTS = "127.0.0.1"
> PRINTMED = A
> FORT = 
> FORTOPT = 
> CCOM = 
> CCOMOPT = 
> LINK = 
> READLINE = 
> DOTWOLIB = NO
> DOWNLOADED = 
> UNPACKED = 
> 
> #---- End of AIPSRC file
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Daip mailing list
> Daip at listmgr.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/daip




More information about the Daip mailing list