Edinurgh cluster conda issue
Created by: wilsonmr
Hi, I think there is a problem with the Edinburgh cluster since I cannot install conda (and their versions are extremely out of date). I don't think this is really a nnpdf issue but I wanted to make sure I wasn't doing something done before pushing the cluster IT guys to help more, since at the moment they are being really uncooperative.
The following was done on a login to the cluster which had no previous conda install, I'm installing conda to a small group space and I'm not sure if this is part of the problem but firstly you will see that I am having issues getting conda to install with correct permissions and then once it is installed I can't create an environment or install packages. I don't think I'm doing anything stupid with the install but maybe I missed something
Side note: if I install conda in this way I can submit a job which creates an environment and downloads packages so it appears to just be a problem for me on a login node, the actual compute nodes don't have the same issue
[s1758208@login03(eddie) ~]$ cd /exports/eddie/scratch/s1758208/nnpdfgit/binary-bootstrap/
[s1758208@login03(eddie) binary-bootstrap]$ #/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda
[s1758208@login03(eddie) binary-bootstrap]$ #copy install location (group space)[s1758208@login03(eddie) binary-bootstrap]$
[s1758208@login03(eddie) binary-bootstrap]$ #set less restrictive umask
[s1758208@login03(eddie) binary-bootstrap]$ umask 007
[s1758208@login03(eddie) binary-bootstrap]$ ./bootstrap.sh
Setting up componentes for the NNPDF binaries...
which: no conda in (/exports/applications//gridengine/2011.11p1_155/bin/linux-x64:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/exports/applications/apps/user-scripts/:/home/s1758208/.local/bin:/home/s1758208/bin)
Downloading conda
--2018-03-15 11:21:49-- https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
Resolving repo.continuum.io (repo.continuum.io)... 104.16.18.10, 104.16.19.10, 2400:cb00:2048:1::6810:130a, ...
Connecting to repo.continuum.io (repo.continuum.io)|104.16.18.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58304693 (56M) [application/x-sh]
Saving to: ‘/tmp/conda_downloadvxbst1jUb/Miniconda3-latest-Linux-x86_64.sh’
100%[======================================>] 58,304,693 103MB/s in 0.5s
2018-03-15 11:21:49 (103 MB/s) - ‘/tmp/conda_downloadvxbst1jUb/Miniconda3-latest-Linux-x86_64.sh’ saved [58304693/58304693]
Entering conda installer.
Welcome to Miniconda3 4.4.10
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
===================================
Miniconda End User License Agreement
===================================
...
Do you accept the license terms? [yes|no]
[no] >>> yes
Miniconda3 will now be installed into this location:
/home/s1758208/miniconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/s1758208/miniconda3] >>> /exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda
PREFIX=/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda
installing: python-3.6.4-hc3d631a_1 ...
Python 3.6.4 :: Anaconda, Inc.
installing: ca-certificates-2017.08.26-h1d4fec5_0 ...
...
generic install
...
installing: conda-4.4.10-py36_0 ...
installation finished.
You may wish to edit your .bashrc to prepend the Miniconda3 install location to PATH:
export PATH=/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/bin:$PATH
----------------------------------------------------------------------
Summary:
Installed conda: YES
Set channels in ~/.condarc: YES
Set password in ~/.netrc: YES
Could not find the conda binary. You need to locate it and add it
manually to the PATH.
----------------------------------------------------------------------
If everything went well (see summary above), you should be able to
install the NNPDF binaries now. For example, to install libnnpdf, run:
conda install libnnpdf
[s1758208@login03(eddie) binary-bootstrap]$ #set umask back
[s1758208@login03(eddie) binary-bootstrap]$ umask 022
[s1758208@login03(eddie) binary-bootstrap]$ export PATH=/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/bin:$PATH
[s1758208@login03(eddie) binary-bootstrap]$ which conda
/usr/bin/which: no conda in (/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/bin:/exports/applications//gridengine/2011.11p1_155/bin/linux-x64:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/exports/applications/apps/user-scripts/:/home/s1758208/.local/bin:/home/s1758208/bin)
[s1758208@login03(eddie) binary-bootstrap]$ cd /exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/bin
[s1758208@login03(eddie) bin]$ ls
output here isn't particularly instructive without colour but
I can see conda isn't executable for anyone which agrees
with output above of which conda
[s1758208@login03(eddie) bin]$ #conda not given proper permissions
[s1758208@login03(eddie) bin]$ cd ../..
[s1758208@login03(eddie) michael]$ chown s1758208 -R miniconda
[s1758208@login03(eddie) michael]$ chmod 750 -R miniconda
[s1758208@login03(eddie) bin]$ cd
[s1758208@login03(eddie) ~]$ which conda
/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/bin/conda
[s1758208@login03(eddie) ~]$ conda create -n nnpdf-dev python=3.6 gxx_linux-64
Solving environment: | libgcc_s.so.1 must be installed for pthread_cancel to work
Aborted (core dumped)
[s1758208@login03(eddie) ~]$ echo $LD_LIBRARY_PATH
/exports/applications//gridengine/2011.11p1_155/lib/linux-x64
[s1758208@login03(eddie) ~]$ conda create -n test
Solving environment: done
Traceback (most recent call last):
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/exceptions.py", line 789, in __call__
return func(*args, **kwargs)
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/cli/main.py", line 78, in _main
exit_code = do_call(args, p)
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/cli/conda_argparse.py", line 77, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/cli/main_create.py", line 11, in execute
install(args, parser, 'create')
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/cli/install.py", line 236, in install
force_reinstall=context.force,
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/core/solve.py", line 514, in solve_for_transaction
SubdirData.query_all(self.channels, self.subdirs, conda_newer_spec),
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/core/repodata.py", line 86, in query_all
return tuple(concat(future.result() for future in as_completed(futures)))
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/core/repodata.py", line 90, in query
self.load()
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/core/repodata.py", line 134, in load
_internal_state = self._load()
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/core/repodata.py", line 202, in _load
mod_etag_headers.get('_mod'))
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/core/repodata.py", line 425, in fetch_repodata_remote_request
json_str[1:] # remove first '{'
MemoryError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/bin/conda", line 11, in <module>
sys.exit(main())
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/cli/main.py", line 126, in main
return conda_exception_handler(_main, *args)
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/exceptions.py", line 1025, in conda_exception_handler
return_value = exception_handler(func, *args, **kwargs)
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/exceptions.py", line 792, in __call__
return self.handle_exception(exc_val, exc_tb)
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/exceptions.py", line 826, in handle_exception
return self.handle_application_exception(CondaMemoryError(exc_val), exc_tb)
File "/exports/csce/eddie/ph/groups/rbm_ml/michael/miniconda/lib/python3.6/site-packages/conda/exceptions.py", line 630, in __init__
super(CondaMemoryError, self).__init__(message, caused_by=caused_by, **kwargs)
TypeError: CondaMemoryError does not take keyword arguments