eta icon indicating copy to clipboard operation
eta copied to clipboard

`etlas update` cannot read index

Open mbrc12 opened this issue 8 years ago • 5 comments

On Fedora 27, running etlas update yields

Downloading the latest package lists from:
- hackage.haskell.org
- etlas.org
etlas: Could not read index. Did you call 'checkForUpdates'?

stack update works fine.

The output for etlas update -v3 is

no user package environment file found at /home/mbrc/eta
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.org
Searching for curl in path.
Found curl at /home/mbrc/anaconda3/bin/curl
Searching for powershell in path.
Cannot find powershell on the path
Searching for wget in path.
Found wget at /usr/bin/wget
Selected http transport implementation: curl
Updating index cache file
/home/mbrc/.etlas/packages/hackage.haskell.org/01-index.cache ...
Searching for git in path.
Found git at /usr/bin/git
/usr/bin/git --version
etlas: Could not read index. Did you call 'checkForUpdates'?

mbrc12 avatar Feb 15 '18 12:02 mbrc12

Have you installed and used etlas before? If so, try cleaning out ~/.etlas and try again.

rahulmutt avatar Feb 15 '18 12:02 rahulmutt

This doesn't appear to be a proxy issue since it would've showed some failure on curl.

rahulmutt avatar Feb 15 '18 12:02 rahulmutt

While this user was affected on Windows (https://github.com/typelead/eta/issues/487) I think it may be of use. I noticed that the curl being used was anaconda3/bin/curl - is it a special curl implementation?

Try out etlas update --http-transport=wget or etlas update --http-transport=plain-http and see if that fixes it.

rahulmutt avatar Feb 15 '18 12:02 rahulmutt

Another check could be try the index url in a browser to discard that the proxy rules are banning the request

jneira avatar Feb 15 '18 13:02 jneira

This was fixed by using a different transport - wget in this case and adding http-transport: wget in ~/.etlas/config.

rahulmutt avatar Feb 18 '18 04:02 rahulmutt