Zulip Chat Archive

Stream: general

Topic: github authentication failed?


Mario Carneiro (Aug 09 2020 at 17:55):

I'm getting this on leanproject up:

Looking for local mathlib oleans
Looking for remote mathlib oleans
Trying to download https://oleanstorage.azureedge.net/mathlib/e25e569c426195e7c088721e682001a8469a47b6.tar.gz to /home/mario/.mathlib/e25e569c426195e7c088721e682001a8469a47b6.tar.gz
Looking for GitHub mathlib oleans
Info: No github 'user'/'password' or 'oauthtoken' keys found in git config, we will use GitHub with no authentication.
You can create an OAuth token at https://github.com/settings/tokens/new (no scopes are required).
Failed to fetch mathlib oleans

It worked fine yesterday. Is this just me or is github / azure service affected in some way?

Yury G. Kudryashov (Aug 09 2020 at 18:01):

What is your leanproject version?

Yury G. Kudryashov (Aug 09 2020 at 18:02):

It looks for tar.gz, it should look for tar.xz

Mario Carneiro (Aug 09 2020 at 18:14):

is there a command for that?

Mario Carneiro (Aug 09 2020 at 18:14):

that's probably the issue

Patrick Massot (Aug 09 2020 at 18:39):

leanproject --version should tell you your version (unless it's very old). But you can upgrade anyway, probably with pip install -U mathlibtools

Yury G. Kudryashov (Aug 09 2020 at 18:54):

And pip should know the versions of all installed python packages

Scott Morrison (Aug 10 2020 at 02:06):

I got an email recently from github warning me that I'd accessed the github api recently with a password, and that this was going to be deprecated soon. Perhaps you got hit by this?

Mario Carneiro (Aug 10 2020 at 02:30):

My leanproject was too old for --version indeed. I updated and github is working again

Yury G. Kudryashov (Aug 10 2020 at 04:04):

Azure is working. AFAIK, we don't use github storage anymore.

Mario Carneiro (Aug 10 2020 at 04:06):

hm, even my old version seemed to be of two minds about that:

Trying to download https://oleanstorage.azureedge.net/...
Looking for GitHub mathlib oleans

Scott Morrison (Aug 10 2020 at 05:32):

My understanding of this is that when it fails to find anything on azureedge.net, to doesn't say anything about that, but just falls back to looking on GitHub.

Rob Lewis (Aug 10 2020 at 06:57):

As of a few days ago, every archive should be available as a tar.xz on Azure. If that lookup fails nothing else will succeed. But obviously old versions of leanproject don't know that.

Filippo A. E. Nuccio (Aug 28 2020 at 15:00):

I have the same problem as Mario: after updating pip and then doing pip install -U mathlibtools, it still seems that the oleans are being searched on github (and I can't download them)

Filippo A. E. Nuccio (Aug 28 2020 at 15:04):

This is the message I get
Looking for local mathlib oleans Looking for remote mathlib oleans Trying to download https://oleanstorage.azureedge.net/mathlib/0d833b6dd48266af586db500fc37fac5c02a08de.tar.xzáto C:\Users\faenu\.mathlib\0d833b6dd48266af586db500fc37fac5c02a08de.tar.xz Trying to download https://oleanstorage.azureedge.net/mathlib/0d833b6dd48266af586db500fc37fac5c02a08de.tar.gzáto C:\Users\faenu\.mathlib\0d833b6dd48266af586db500fc37fac5c02a08de.tar.gz Trying to download https://oleanstorage.azureedge.net/mathlib/0d833b6dd48266af586db500fc37fac5c02a08de.tar.bz2áto C:\Users\faenu\.mathlib\0d833b6dd48266af586db500fc37fac5c02a08de.tar.bz2 Looking for GitHub mathlib oleans 403 {"message": "API rate limit exceeded for 78.241.31.206. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)", "documentation_url": "https://developer.github.com/v3/#rate-limiting"} Info: No github section found in 'git config', we will use GitHub with no authentication

Filippo A. E. Nuccio (Aug 28 2020 at 15:05):

And this happens every time I open VS Code after a week or so while I haven't been using it: it starts compiling the whole library, takes a couple of hours and can't update...

Johan Commelin (Aug 28 2020 at 15:08):

Oooh, that doesn't sound good

Johan Commelin (Aug 28 2020 at 15:08):

you're on a mac right?

Filippo A. E. Nuccio (Aug 28 2020 at 15:08):

Nope, Win

Johan Commelin (Aug 28 2020 at 15:08):

Aah, ok

Johan Commelin (Aug 28 2020 at 15:09):

Hmmm, I don't know anything about Win

Johan Commelin (Aug 28 2020 at 15:09):

@Mario Carneiro did you ever get this problem sorted out?

Filippo A. E. Nuccio (Aug 28 2020 at 15:09):

it seems to be related to by mathlib folder: I have just tried to open the lftcm2020 folder (which I hadn't opened for a month or so) and it compiles istantaneously

Gabriel Ebner (Aug 28 2020 at 15:10):

This just means that there are no precompiled oleans available on azure. We're currently phasing out the github api fetcher.

Gabriel Ebner (Aug 28 2020 at 15:10):

mathlib-tools#76

Johan Commelin (Aug 28 2020 at 15:10):

@Filippo A. E. Nuccio are you running leanproject up in mathlib? Or leanproject get-mathlib-cache?

Filippo A. E. Nuccio (Aug 28 2020 at 15:11):

yes, and I get the above error message

Gabriel Ebner (Aug 28 2020 at 15:11):

0d833b6dd48266af586db500fc37fac5c02a08de is not a revision in the mathlib repository.

Filippo A. E. Nuccio (Aug 28 2020 at 15:12):

@Gabriel Ebner Unfortunately I don't understand what you are saying (I don't know what "to phase" means)

Filippo A. E. Nuccio (Aug 28 2020 at 15:12):

What do you suggest that I do?

Gabriel Ebner (Aug 28 2020 at 15:12):

We are no longer going to use the github part.

Gabriel Ebner (Aug 28 2020 at 15:12):

Can you paste the output of git log -n2?

Filippo A. E. Nuccio (Aug 28 2020 at 15:13):

$ git log -n2
commit 0d833b6dd48266af586db500fc37fac5c02a08de (HEAD -> Vierkantor-dedekind-domain, origin/Vierkantor-dedekind-domain)
Merge: c5f7ea052 bffc04e65
Author: faenuccio <filippo.nuccio@univ-st-etienne.fr>
Date: Fri Aug 28 16:24:47 2020 +0000

Merge branch 'Vierkantor-dedekind-domain' of https://github.com/leanprover-community/mathlib into Vierkantor-dedekind-domain

commit bffc04e656101392d71ef56ec737a117eeb6090e
Author: Vierkantor <vierkantor@vierkantor.com>
Date: Thu Aug 27 07:48:44 2020 +0000

Trace in a simple field extension

Bryan Gin-ge Chen (Aug 28 2020 at 15:14):

There are no oleans for this commit in Azure or anywhere else, so you'll either have to build mathlib yourself or push to a branch in the mathlib repo and wait for the CI to build and then try leanproject get-cache again.

Gabriel Ebner (Aug 28 2020 at 15:14):

@Filippo A. E. Nuccio You should probably work on a branch in the mathlib repo.

Filippo A. E. Nuccio (Aug 28 2020 at 15:14):

It is in mathlib, I guess.

Filippo A. E. Nuccio (Aug 28 2020 at 15:15):

and I get the same issue if I try to work on the master branch

Patrick Massot (Aug 28 2020 at 15:15):

There is no magic going on here, you can get oleans only for things that got compiled on GitHub.

Patrick Massot (Aug 28 2020 at 15:16):

Is your master at a commit that is in the main repository?

Patrick Massot (Aug 28 2020 at 15:16):

Can you git checkout master and git log?

Patrick Massot (Aug 28 2020 at 15:17):

and tell us what the top commit hash

Filippo A. E. Nuccio (Aug 28 2020 at 15:17):

commit a08fb2f74e1767bd6338504c4ee29a0fe1866a48

Patrick Massot (Aug 28 2020 at 15:18):

And what if you now try leanproject get-cache?

Filippo A. E. Nuccio (Aug 28 2020 at 15:18):

ah, now it works.

Patrick Massot (Aug 28 2020 at 15:19):

And how did you expect it to work for a commit that is only on your computer?

Patrick Massot (Aug 28 2020 at 15:19):

GitHub is not allowed to spy on your computer to build things for you.

Filippo A. E. Nuccio (Aug 28 2020 at 15:20):

I did not expect it to work, I simply did not know I was on a local commit

Filippo A. E. Nuccio (Aug 28 2020 at 15:20):

But Vierkantor-dedekind-domain is a branch on mathlib, right?

Patrick Massot (Aug 28 2020 at 15:20):

This is probably lack on git understanding then (what is a merge commit, what happens when you git pull etc).

Patrick Massot (Aug 28 2020 at 15:20):

Yes, but this is not where you were.

Patrick Massot (Aug 28 2020 at 15:21):

You did a merge commit in between, look at the output you pasted.

Filippo A. E. Nuccio (Aug 28 2020 at 15:21):

Right

Patrick Massot (Aug 28 2020 at 15:21):

commit 0d833b6dd48266af586db500fc37fac5c02a08de (HEAD -> Vierkantor-dedekind-domain, origin/Vierkantor-dedekind-domain)
Merge: c5f7ea052 bffc04e65
Author: faenuccio <filippo.nuccio@univ-st-etienne.fr>
Date:   Fri Aug 28 16:24:47 2020 +0000

    Merge branch 'Vierkantor-dedekind-domain' of https://github.com/leanprover-community/mathlib into Vierkantor-dedekind-domain

Patrick Massot (Aug 28 2020 at 15:22):

That commit is only on your computer.

Filippo A. E. Nuccio (Aug 28 2020 at 15:23):

It is certainly a lack of understanding, but I had begun with a git pull, thinking this would have sync my local commit with the remote one. Is this wrong?

Patrick Massot (Aug 28 2020 at 15:23):

Yes, it's wrong.

Patrick Massot (Aug 28 2020 at 15:23):

Because you had local modifications, that needed to be combined with remote advances.

Filippo A. E. Nuccio (Aug 28 2020 at 15:24):

Ah, and the merge comes from there.

Patrick Massot (Aug 28 2020 at 15:24):

Yes.

Patrick Massot (Aug 28 2020 at 15:24):

How is your branch called?

Filippo A. E. Nuccio (Aug 28 2020 at 15:25):

Vierkantor dedekind-domain

Patrick Massot (Aug 28 2020 at 15:25):

I'll tell you what you should have done

Filippo A. E. Nuccio (Aug 28 2020 at 15:25):

thanks

Patrick Massot (Aug 28 2020 at 15:25):

Oh, you were working on a branch tracking Anne's branch?

Filippo A. E. Nuccio (Aug 28 2020 at 15:25):

yes

Patrick Massot (Aug 28 2020 at 15:25):

Ok

Patrick Massot (Aug 28 2020 at 15:28):

At the time when you typed git pull, you should have typed git pull --rebase. Then leanproject is not as helpful as it could be if I had more time. You would have need to have a look at the last commit from upstream, bffc04e6561013 in your case. git checkout bffc04e6561013, leanproject get-cache, git checkout dedekind-domain, leanproject build.

Patrick Massot (Aug 28 2020 at 15:29):

This would have given you oleans for bffc04e65 and hopefully the build wouldn't have been long (unless you modified files close to the roots).

Filippo A. E. Nuccio (Aug 28 2020 at 15:30):

Ok, I'll do this the next time. One last question: what's the difference between get-cache and get-mathlib-cache?

Patrick Massot (Aug 28 2020 at 15:31):

When editing mathlib there is no difference. When working on a project depending on mathlib, get-cache will get cache for the current project (that has to be local cache, created using mk-cache, not remote cache).

Filippo A. E. Nuccio (Aug 28 2020 at 15:31):

ah, so for me is the same. Ok, many thanks.


Last updated: Dec 20 2023 at 11:08 UTC