I'm trying to help out with testing just the configuration of the usage-upload 2) install step and having difficulty. I'm on stampede2 with a valid python2 module and setup:
login1(176)$ which python
/opt/apps/intel17/python2/2.7.14/bin/python
login1(177)$ module list
Currently Loaded Modules:
1) intel/17.0.4 3) git/2.9.0 5) xalt/2.4 7) python3/3.6.3
2) impi/17.0.3 4) autotools/1.1 6) TACC 8) python2/2.7.14
login1(175)$ make install
** Initializing Python Virtualenv in /home1/00017/tg456924/usage-upload/python
LD_LIBRARY_PATH=/opt/apps/intel17/python2/2.7.14/lib /opt/apps/intel17/python2/2.7.14//bin/virtualenv /home1/00017/tg456924/usage-upload/python
/opt/apps/intel17/python2/2.7.14/bin/python2.7: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
make: *** [/home1/00017/tg456924/usage-upload/python/bin/python] Error 127
...even though python is fine in my environment:
login1(178)$ python
Python 2.7.14 (default, Mar 16 2018, 16:19:37)
[GCC Intel(R) C++ gcc 5.4 mode] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1/7.0
0.14285714285714285
>>>
Makefile looked like:
#----------------------------------------------------
# CUSTOMIZE THE FOLLOWING VARIABLES
#
PREFIX= /home1/00017/tg456924/usage-upload
PYTHON_PREFIX= /opt/apps/intel17/python2/2.7.14
PYTHON_LIB= /opt/apps/intel17/python2/2.7.14/lib
libimf.so => /opt/intel/compilers_and_libraries_2017.4.196/linux/compiler/lib/intel64_lin/libimf.so (0x00002b989be7d000) , resolved ok for ldd `which python`.
Something is happening to it in the Makefile.
stampede2 installed:
Suggest modifying Makefile to indicate setting:
PYTHON_LIB= $(LD_LIBRARY_PATH)
...for those situations where python is installed in a non-standard location and may have multiple dependencies in it's ldd library stack.
** Installing usage-upload-1.5-3
sed -e "s|%PREFIX%|/home1/00017/tg456924/usage-upload|g" \
bin/upload_usage.py.in >/home1/00017/tg456924/usage-upload/bin/upload_usage.py
chmod 755 /home1/00017/tg456924/usage-upload/bin/upload_usage.py
login1(233)$ find ../.. -name paramiko -print
../../python/lib/python2.7/site-packages/paramiko
login1(234)$
Jumping ahead to 5) and 7) it tried to run the cron . The python script appeared to execute:
login1(255)$ more upload_cilogon-upload.log
2019/01/23 08:30:26.959 WARNING Upload status file not found or failed to parse, initializi
ng "/home1/00017/tg456924/usage-upload/etc/upload_cilogon-upload_status.json"
2019/01/23 08:30:26.960 INFO Processing /tmp/<USAGE_GLOB>-20[0-9][0-9][0-9][0-9][0-9][0-9]*
Susan and Galen,
Thanks for your patience and persistence in trying to get this working. I'm sorry I didn't make this more robust from the start I put some effort last night and this morning into making it more robust, and tested it on Stampede 2 using their Python 2.7 and other environments using Python 3.
Please try the latest which is currently 1.6-1 at: https://software.xsede.org/development/usage-analysis/. Also, please start in a pristine environment and directory that doesn't have previous failed installations.
NOTE: The first Python 2.7 or 3 in your PATH must satisfy the pre-requisites and include Python virtualenv.
Thanks,
JP
p.s. this is what it looks like when it works on Stampede 2:
new version installed 1st time for me (only had to set PREFIX and no other changes ):
...
** Installing usage-upload-1.6-1
sed -e "s|%PREFIX%|/home1/00017/tg456924/usage-upload1.6|g" \
bin/upload_usage.py.in >/home1/00017/tg456924/usage-upload1.6/bin/upload_usage.py
chmod 755 /home1/00017/tg456924/usage-upload1.6/bin/upload_usage.py
login1(276)$ pwd
/home1/00017/tg456924/usage-upload1.6/downloads/usage-upload-1.6-1
login1(277)$ find ../../ -name paramiko* -print
../../python/lib/python2.7/site-packages/paramiko-2.4.2.dist-info
../../python/lib/python2.7/site-packages/paramiko
login1(278)$