Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spack behind a http/ftp proxy - git clone with git protocol #11123

Closed
wresch opened this issue Apr 6, 2019 · 3 comments
Closed

spack behind a http/ftp proxy - git clone with git protocol #11123

wresch opened this issue Apr 6, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@wresch
Copy link

wresch commented Apr 6, 2019

I tried to install lmod with spack install lmod on our spack test system which is behind an http/ftp proxy without direct access to the network outside our cluster network. Install failed when trying to install lua-luafilesystem due to a failed git clone. I was able to work around this with git config --global url."https://".insteadOf git:// , so this seems to be a result of attempting to do a clone with the git protocol. I tried to figure out where this is happening - the package lists an url for an archive and I don't know spack code yet to trace where the git clone is happening. Globally re-routing git:// to http:// in my mind isn't desirable. Am I missing a configuration somewhere or does spack assume direct access to outside networks?

I'll start trying to learn more about the spack code base but in the meantime I thought i'd file an issue

Steps to reproduce the issue

$ spack install lmod
...
==> Installing lua-luafilesystem                                                                                                                                                                                                        
==> Searching for binary cache of lua-luafilesystem                                                                                                                                                                                     
==> Warning: No Spack mirrors are currently configured                                                                                                                                                                                  
==> No binary for lua-luafilesystem found: installing from source                                                                                                                                                                       
==> Fetching https://github.com/keplerproject/luafilesystem/archive/v1_6_3.tar.gz                                                                                                                                                       
######################################################################## 100.0%                                                                                                                                                         
==> Staging archive: /opt/spack/0.12.1/var/spack/stage/lua-luafilesystem-1_6_3-xyxg47b6y7mvperawiatflkdlenx2cmw/v1_6_3.tar.gz                                                                                                           
==> Created stage in /opt/spack/0.12.1/var/spack/stage/lua-luafilesystem-1_6_3-xyxg47b6y7mvperawiatflkdlenx2cmw                                                                                                                         
==> No patches needed for lua-luafilesystem                                                                                                                                                                                             
==> Building lua-luafilesystem [Package]                                                                                                                                                                                                
==> Executing phase: 'install'                                                                                                                                                                                                          
==> Error: ProcessError: Command exited with status 1:                                                                                                                                                                                  
    '/opt/spack/0.12.1/opt/spack/linux-centos7-x86_64/gcc-4.8.5/lua-5.3.4-fmnxcwkmwacfljeceseiyqdbba6xlwis/bin/luarocks' '--tree=/opt/spack/0.12.1/opt/spack/linux-centos7-x86_64/gcc-4.8.5/lua-luafilesystem-1_6_3-xyxg47b6y7mvperawia$
flkdlenx2cmw' 'install' '/opt/spack/0.12.1/var/spack/stage/lua-luafilesystem-1_6_3-xyxg47b6y7mvperawiatflkdlenx2cmw/luafilesystem-1_6_3/rockspecs/luafilesystem-1.6.3-1.rockspec'
                                                                                                                                                
1 error found in build log:                                                                                                                   
     1    ==> Executing phase: 'install'                                                                                                     
     2    ==> '/opt/spack/0.12.1/opt/spack/linux-centos7-x86_64/gcc-4.8.5/lua-5.3.4-fmnxcwkmwacfljeceseiyqdbba6xlwis/bin/luarocks' '--tree=/opt/spack/0.12.1/opt/spack/linux-centos7-x86_64/gcc-4.8.5/lua-luafilesystem-1_6_3-xyxg47b6y
          7mvperawiatflkdlenx2cmw' 'install' '/opt/spack/0.12.1/var/spack/stage/lua-luafilesystem-1_6_3-xyxg47b6y7mvperawiatflkdlenx2cmw/luafilesystem-1_6_3/rockspecs/luafilesystem-1.6.3-1.rockspec'
     3    Using /opt/spack/0.12.1/var/spack/stage/lua-luafilesystem-1_6_3-xyxg47b6y7mvperawiatflkdlenx2cmw/luafilesystem-1_6_3/rockspecs/luafilesystem-1.6.3-1.rockspec... switching to 'build' mode
     4    Cloning into 'luafilesystem'...                                                                                                         
     5    fatal: unable to look up github.com (port 9418) (Name or service not known)                                               
     6                                                                                                                                                                                                                                  
  >> 7    Error: Failed cloning git repository. 

Information on your system

This includes:

  1. platform: CentOS 7.6
  2. spack: 0.12.1
@wresch wresch added the bug Something isn't working label Apr 6, 2019
@KineticTheory
Copy link
Contributor

Related to #7848 and #3909

@wresch
Copy link
Author

wresch commented Apr 6, 2019 via email

@citibeth
Copy link
Member

I'm closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants