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

Could not read index. Did you call 'checkForUpdates'? #16

Open
ChinaXing opened this issue Sep 13, 2017 · 19 comments
Open

Could not read index. Did you call 'checkForUpdates'? #16

ChinaXing opened this issue Sep 13, 2017 · 19 comments

Comments

@ChinaXing
Copy link

docker run -it typelead/eta

then

root@62da0fd6a9ba:~/.etlas/packages# etlas update -v3
no user package environment file found at /root/.etlas/packages
Downloading the latest package lists from:

  • hackage.haskell.org
  • etlas.typelead.com
    Searching for curl in path.
    Cannot find curl on the path
    Searching for powershell in path.
    Cannot find powershell on the path
    Searching for wget in path.
    Cannot find wget on the path
    Selected http transport implementation: plain-http
    Updating index cache file
    /root/.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'?
@rahulmutt
Copy link
Member

Thanks for reporting this, will check it out.

@rahulmutt
Copy link
Member

@ChinaXing Are you behind a proxy? We had someone report a similar error and running either etlas --http-transport=wget update or etlas --http-transport=plain-http update should work.

@adal-gibson
Copy link

I'm getting this same error - I'm on macOS 10.13.3 and when I try to compile a program or update etlas I'm getting the message:

Downloading the latest package lists from:

  • hackage.haskell.org
  • etlas.typelead.com
    etlas: Could not read index. Did you call 'checkForUpdates'?

I tried both etlas --http-transport=wget update and etlas --http-transport=plain-http update but I got the same error both time.

@jneira
Copy link
Collaborator

jneira commented Mar 24, 2018

Hi @madeleinergibson , could you share the output of etlas --version && etlas update -v3 (with -v3 the output should be more verbose)

@adal-gibson
Copy link

@jneira Sure thing!

$ etlas --version
etlas version 1.1.0.0
compiled using version 2.1.0.0 of the etlas-cabal library

$ etlas update -v3
no user package environment file found at /Users/gibson
Downloading the latest package lists from:

  • hackage.haskell.org
  • etlas.typelead.com
    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.
    Cannot find wget on the path
    Selected http transport implementation: curl
    Updating index cache file
    /Users/gibson/.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'?

$ etlas --version && etlas update -v3
etlas version 1.1.0.0
compiled using version 2.1.0.0 of the etlas-cabal library
no user package environment file found at /Users/gibson/eta
Downloading the latest package lists from:

  • hackage.haskell.org
  • etlas.typelead.com
    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.
    Cannot find wget on the path
    Selected http transport implementation: curl
    Updating index cache file
    /Users/gibson/.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'?

@jneira
Copy link
Collaborator

jneira commented Mar 24, 2018

@madeleinergibson i think that etlas version have a problem with the update, could you download the latest stable version (1.2.0.0) from https://eta-lang.org/docs/eta-concepts/getting-started/install-eta#binary-installation and try again?

@adal-gibson
Copy link

@jneira I couldn't get that to work either, unfortunately! Same exact error message.

@rahulmutt
Copy link
Member

@madeleinergibson You're not behind a proxy right? Can you share the etlas update -v3 output with etlas-1.2.0.0?

@xmonader
Copy link

Can confirm

➜  helloeta etlas init
Discovering the installation paths for your Eta executables...
No existing installation found for 'eta'.
Attempting to download binaries...
Downloading executable 'eta'...
Downloading executable 'eta-pkg'...
Selected eta-0.7.0b2.
Installing boot libraries...
etlas: Could not read index. Did you call 'checkForUpdates'?
➜  helloeta etlas --http-transport=wget update      
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.org
etlas: Could not read index. Did you call 'checkForUpdates'?
➜  helloeta etlas --http-transport=curl update
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.org
etlas: Could not read index. Did you call 'checkForUpdates'?
➜  helloeta etlas update -v3
no user package environment file found at /home/striky/wspace/helloeta
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/bin/wget
Selected http transport implementation: curl
Updating index cache file
/home/striky/.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'?
/usr/bin/git is version 2.16.1

@rahulmutt
Copy link
Member

Can you share the output of ls -al /home/striky/.etlas/packages/hackage.haskell.org/ ?

@xmonader
Copy link

for hackage

➜  helloeta ls ~/.etlas/packages/hackage.haskell.org -alh
total 16K
drwxr-xr-x 2 striky users 4.0K Mar 28 18:37 .
drwxr-xr-x 4 striky users 4.0K Mar 28 18:33 ..
-rw-r--r-- 1 striky users    4 Mar 28 18:33 01-index.timestamp
-rw-r--r-- 1 striky users 3.8K Mar 28 18:33 root.json

after removing packages and etlas update

Warning: 'nslookup' tool missing - can't locate mirrors
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.org
Updating binary package index.
dieVerbatim: user error (etlas: '/usr/bin/curl' exited with an error:
curl: (18) transfer closed with 20858831 bytes remaining to read
)%           ```

@rahulmutt
Copy link
Member

If possible, can you install nslookup? @NickSeagull might know how to do that on Arch.

@xmonader
Copy link

It worked before installing dnsutils
but for reference : pacman -Ss dnsutils

@rahulmutt
Copy link
Member

@xmonader reports that installing nslookup worked for him. We should either remove the dependency on nslookup or add it to the docs that you need to have it installed.

@naderghanbari
Copy link

naderghanbari commented Oct 20, 2018

I'm having the same problem with etlas version 1.2.0.0 on macOS 10.14. I installed etlas using homebrew: brew install typelead/eta/etlas and nslookup is available on the PATH.

output of etlas update:

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

Update:
Everything works fine when I download the etlas binary. Problem happens only when installing etlas with homebrew, so perhaps I should report to the formula repo.

@Arpple
Copy link

Arpple commented Jan 24, 2019

having this problem on wsl ubuntu
the command I run before this happen

$ etlas update -v3
Welcome to Etlas, the awesome build tool for the Eta programming language!

We are working hard to make the best platform for pure functional programming
on the Java Virtual Machine.

Etlas will periodically send usage statistics to help us:

* Make decisions on how to evolve the language

* Build a community portal that displays the data we collect in visual form

* Build an Etlas package repository that will accurately display package popularity

* And more!

For more details, please consult our privacy policy:

        http://eta-lang.org/docs/html/privacy-policy.html

Would you like to help us make Eta the fastest growing programming language,
and help pure functional programming become mainstream? (y/n)

y
Thank you for trying out Eta.

If you face any issues, you can:

* File an issue at:
      https://github.com/typelead/eta/issues/new

* Post your question on Eta-Discuss:
      https://groups.google.com/forum/#!newtopic/eta-discuss

* Ask on the Gitter channel:
      https://gitter.im/typelead/eta

Config file path source is default config file.
Config file /home/arpple/.etlas/config not found.
Writing default configuration to /home/arpple/.etlas/config
no user package environment file found at /home/arpple/try-etlas
Trying to locate mirrors via DNS for initial bootstrap of secure repository
'http://hackage.haskell.org/' ...
Searching for nslookup in path.
Found nslookup at /usr/bin/nslookup
/usr/bin/nslookup '-query=TXT' _mirrors.hackage.haskell.org
located 2 mirrors for http://hackage.haskell.org/ :
- http://hackage.fpcomplete.com/
- http://objects-us-west-1.dream.io/hackage-mirror/
Selected mirror http://hackage.haskell.org/
Downloading root
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/bin/wget
Selected http transport implementation: curl
/usr/bin/curl 'http://hackage.haskell.org/root.json' --output /tmp/transportAdapterGet16816927771714636915 --location --write-out '%{http_code}' --user-agent 'etlas/1.5.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers1957747793424238335.txt --header 'Cache-Control: no-transform'
Downloading the latest package lists from:
- hackage.haskell.org
- [email protected]/typelead/etlas-index
Searching for git in path.
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'etlas
update' to download it.
Found git at /usr/bin/git
Selected mirror http://hackage.haskell.org/
/usr/bin/git --version
Downloading timestamp
/usr/bin/curl 'http://hackage.haskell.org/timestamp.json' --output /tmp/transportAdapterGet5965166491189641421 --location --write-out '%{http_code}' --user-agent 'etlas/1.5.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers10252023621350490027.txt --header 'Cache-Control: no-transform'
/usr/bin/git is version 2.17.1
/usr/bin/git clone '--depth=1' 'https://github.com/typelead/etlas-index' /home/arpple/.etlas/packages/etlas.org
Downloading snapshot
/usr/bin/curl 'http://hackage.haskell.org/snapshot.json' --output /tmp/transportAdapterGet20448977631967513926 --location --write-out '%{http_code}' --user-agent 'etlas/1.5.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers13651805401540383426.txt --header 'Cache-Control: no-transform'
Downloading mirrors
/usr/bin/curl 'http://hackage.haskell.org/mirrors.json' --output /tmp/transportAdapterGet35005211521595368 --location --write-out '%{http_code}' --user-agent 'etlas/1.5.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers2947025671726956429.txt --header 'Cache-Control: no-transform'
Cannot update index (no local copy)
Downloading index
/usr/bin/curl 'http://hackage.haskell.org/01-index.tar.gz' --output /tmp/transportAdapterGet2145174067468703135 --location --write-out '%{http_code}' --user-agent 'etlas/1.5.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers11015139291801979802.txt --header 'Cache-Control: no-transform'
Updating binary package index.
creating /home/arpple/.etlas/binaries/cdnverify.eta-lang.org
creating /home/arpple/.etlas/binaries
creating /home/arpple/.etlas/binaries/cdnverify.eta-lang.org
/usr/bin/curl 'https://cdnverify.eta-lang.org/eta-binaries/index' --output /home/arpple/.etlas/binaries/cdnverify.eta-lang.org/index1315634022635723058 --location --write-out '%{http_code}' --user-agent 'etlas/1.5.0.0 (linux; x86_64)' --silent --show-error --dump-header /home/arpple/.etlas/binaries/cdnverify.eta-lang.org/curl-headers13691330691125898167.txt
Downloaded to /home/arpple/.etlas/binaries/cdnverify.eta-lang.org/index
The futex facility returned an unexpected error code.[1]    12499 abort (core dumped)  etlas update -v3

@rahulmutt
Copy link
Member

@Arrple does this happen consistently?

@Arpple
Copy link

Arpple commented Jan 25, 2019

@rahulmutt for when I tried, yes it happen consistently, I removed ~/.etlas ~/.eta and then update serval time
but now after I tried it again, still not work but the error seem to be different

etlas update -v3
Welcome to Etlas, the awesome build tool for the Eta programming language!

We are working hard to make the best platform for pure functional programming
on the Java Virtual Machine.

Etlas will periodically send usage statistics to help us:

* Make decisions on how to evolve the language

* Build a community portal that displays the data we collect in visual form

* Build an Etlas package repository that will accurately display package popularity

* And more!

For more details, please consult our privacy policy:

        http://eta-lang.org/docs/html/privacy-policy.html

Would you like to help us make Eta the fastest growing programming language,
and help pure functional programming become mainstream? (y/n)

y
Thank you for trying out Eta.

If you face any issues, you can:

* File an issue at:
      https://github.com/typelead/eta/issues/new

* Post your question on Eta-Discuss:
      https://groups.google.com/forum/#!newtopic/eta-discuss

* Ask on the Gitter channel:
      https://gitter.im/typelead/eta

Config file path source is default config file.
Config file /home/arpple/.etlas/config not found.
Writing default configuration to /home/arpple/.etlas/config
no user package environment file found at /mnt/c/Users/Arpple
Trying to locate mirrors via DNS for initial bootstrap of secure repository
'http://hackage.haskell.org/' ...
Searching for nslookup in path.
Found nslookup at /usr/bin/nslookup
/usr/bin/nslookup '-query=TXT' _mirrors.hackage.haskell.org
located 2 mirrors for http://hackage.haskell.org/ :
- http://hackage.fpcomplete.com/
- http://objects-us-west-1.dream.io/hackage-mirror/
Selected mirror http://hackage.haskell.org/
Downloading root
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/bin/wget
Selected http transport implementation: curl
/usr/bin/curl 'http://hackage.haskell.org/root.json' --output /tmp/transportAdapterGet16816927771714636915 --location --write-out '%{http_code}' --user-agent 'etlas/1.5.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers1957747793424238335.txt --header 'Cache-Control: no-transform'
Downloading the latest package lists from:
- hackage.haskell.org
- [email protected]/typelead/etlas-index
Searching for git in path.
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'etlas
Found git at /usr/bin/git
update' to download it.
/usr/bin/git --version
Selected mirror http://hackage.haskell.org/
Downloading timestamp
/usr/bin/curl 'http://hackage.haskell.org/timestamp.json' --output /tmp/transportAdapterGet5965166491189641421 --location --write-out '%{http_code}' --user-agent 'etlas/1.5.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers10252023621350490027.txt --header 'Cache-Control: no-transform'
The futex facility returned an unexpected error code.Aborted (core dumped)

@rahulmutt
Copy link
Member

So I found a slightly similar error with another Haskell app: reflex-frp/reflex-platform#293. It turns out it's a problem specifically with WSL and it may be fixed by upgrading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants