Closed NightMachinery closed 6 years ago
@NightMachinary Wipe out ~/.etlas
and try again with etlas update
without interruption. Although this does hint that we should make the update process more robust.
Thanks, that worked. It gave me the following weird error on my iTerm2 zsh terminal though:
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.org
Updating binary package index.
To revert to previous state run:
etlas update --index-state='2018-02-28T20:40:09Z'
Updating the eta-hackage patch set.
Discovering the installation paths for your Eta executables...
No existing installation found for 'eta'.
Attempting to download binaries...
etlas: Unable to find any Eta binaries for your platform.
Run `etlas update` and try again.
If that doesn't work, please report this as a bug at
https://github.com/typelead/eta/issues/new
specifying your Etlas version.
I used Terminal.app; The first attempt failed thus:
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.org
To revert to previous state run:
etlas update --index-state='2018-02-28T20:40:09Z'
Updating binary package index.
Updating the eta-hackage patch set.
Discovering the installation paths for your Eta executables...
No existing installation found for 'eta'.
Attempting to download binaries...
Downloading executable 'eta'...
/Users/evar/.etlas/binaries/cdnverify.eta-lang.org/eta-0.7.0.2/binaries/x86_64-osx/eta: setFileMode: does not exist
Then I disabled my VPN and tried again, and voila, things got installed smoothly. PS: Should I close the issue?
So etlas
does not work if a VPN is enabled? Can you share the output of etlas update -v3
with VPN enabled? I'd like to see what's causing the problem.
Last login: Thu Mar 1 22:56:22 on ttys001
[~]$ etlas update -v3
no user package environment file found at /Users/evar
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.org
Searching for curl in path.
Found curl at /usr/bin/curl
Searching for powershell in path.
Cannot find powershell on the path
Searching for wget in path.
Found wget at /usr/local/bin/wget
Selected http transport implementation: curl
Searching for git in path.
Found git at /usr/local/bin/git
/usr/local/bin/git --version
/usr/local/bin/git is version 2.14.1
/usr/local/bin/git -C /Users/evar/.etlas/packages/etlas.org pull
Selected mirror http://hackage.haskell.org/
Downloading timestamp
/usr/bin/curl 'http://hackage.haskell.org/timestamp.json' --output /var/folders/5v/g3zxt_7d64g3sd_56bzpqbvh0000gn/T/transportAdapterGet1622650073984943658 --location --write-out '%{http_code}' --user-agent 'etlas/1.2.0.0 (osx; x86_64)' --silent --show-error --dump-header /var/folders/5v/g3zxt_7d64g3sd_56bzpqbvh0000gn/T/curl-headers1144108930470211272.txt --header 'Cache-Control: no-transform'
Downloading snapshot
/usr/bin/curl 'http://hackage.haskell.org/snapshot.json' --output /var/folders/5v/g3zxt_7d64g3sd_56bzpqbvh0000gn/T/transportAdapterGet14587779232007237709 --location --write-out '%{http_code}' --user-agent 'etlas/1.2.0.0 (osx; x86_64)' --silent --show-error --dump-header /var/folders/5v/g3zxt_7d64g3sd_56bzpqbvh0000gn/T/curl-headers8235644401115438165.txt --header 'Cache-Control: no-transform'
Already up-to-date.
Updating binary package index.
creating /Users/evar/.etlas/binaries/cdnverify.eta-lang.org
/usr/bin/curl 'https://cdnverify.eta-lang.org/eta-binaries/index' --output /Users/evar/.etlas/binaries/cdnverify.eta-lang.org/index178448449274243042 --location --write-out '%{http_code}' --user-agent 'etlas/1.2.0.0 (osx; x86_64)' --silent --show-error --dump-header /Users/evar/.etlas/binaries/cdnverify.eta-lang.org/curl-headers1148079871137522503.txt
Updating index
/usr/bin/curl 'http://hackage.haskell.org/01-index.tar.gz' --output /var/folders/5v/g3zxt_7d64g3sd_56bzpqbvh0000gn/T/transportAdapterGet823378840143542612 --location --write-out '%{http_code}' --user-agent 'etlas/1.2.0.0 (osx; x86_64)' --silent --show-error --dump-header /var/folders/5v/g3zxt_7d64g3sd_56bzpqbvh0000gn/T/curl-headers8965443031474833169.txt --header 'Cache-Control: no-transform' --header 'Range: bytes=66608733-66693710'
Downloaded to /Users/evar/.etlas/binaries/cdnverify.eta-lang.org/index
creating /Users/evar/.etlas/binaries/binaries.eta-lang.org
/usr/bin/curl 'https://binaries.eta-lang.org/eta-binaries/index' --output /Users/evar/.etlas/binaries/binaries.eta-lang.org/index12648177091998097157 --location --write-out '%{http_code}' --user-agent 'etlas/1.2.0.0 (osx; x86_64)' --silent --show-error --dump-header /Users/evar/.etlas/binaries/binaries.eta-lang.org/curl-headers18171295601131570933.txt
/usr/bin/curl returned ExitFailure 51 with error message:
curl: (51) SSL: no alternative certificate subject name matches target host
name 'binaries.eta-lang.org'
Unable to download top-level index file. -
https://binaries.eta-lang.org/eta-binaries/index
creating
/Users/evar/.etlas/binaries/6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com
/usr/bin/curl 'https://6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com/index' --output /Users/evar/.etlas/binaries/6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com/index1974930991404280278 --location --write-out '%{http_code}' --user-agent 'etlas/1.2.0.0 (osx; x86_64)' --silent --show-error --dump-header /Users/evar/.etlas/binaries/6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com/curl-headers8933518161505795335.txt
Unable to download top-level index file. -
https://6899fa2dcac85d20d417-8f2e61d843ea88e4f30ab3f81ca0e396.ssl.cf5.rackcdn.com/index
Updating index cache file
/Users/evar/.etlas/packages/hackage.haskell.org/01-index.cache ...
Index cache updated to index-state 2018-03-01T20:47:07Z
To revert to previous state run:
etlas update --index-state='2018-02-28T20:40:09Z'
Updating the eta-hackage patch set.
Searching for git in path.
Found git at /usr/local/bin/git
/usr/local/bin/git --version
/usr/local/bin/git is version 2.14.1
/usr/local/bin/git -C /Users/evar/.etlas/patches pull
Already up-to-date.
no user package environment file found at /Users/evar
/Users/evar/.etlas/binaries/cdnverify.eta-lang.org/eta-0.7.0.2/binaries/x86_64-osx/eta --numeric-version
/Users/evar/.etlas/binaries/cdnverify.eta-lang.org/eta-0.7.0.2/binaries/x86_64-osx/eta
is version 0.7.0.2
/Users/evar/.etlas/binaries/cdnverify.eta-lang.org/eta-0.7.0.2/binaries/x86_64-osx/eta --print-libdir
[~]$
I wouldn't worry myself over the VPN issue. It seems to me to be a problem with the VPN provider.
I ran 'etlas update' then did ^C in the middle. Now the functionality is broken: