Skip to content

Allow downloading lib_index and signature in a single tar.bz2 archive #1821

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

Closed
umbynos opened this issue Aug 3, 2022 · 2 comments
Closed
Assignees
Labels
topic: code Related to content of the project itself

Comments

@umbynos
Copy link
Contributor

umbynos commented Aug 3, 2022

Similar to #1734 but for library index

@umbynos umbynos added the topic: code Related to content of the project itself label Aug 3, 2022
@kittaakos
Copy link
Contributor

Originally reported by @kittaakos

Happens during the IDE2 startup.

root ERROR Failed to update indexes Error: 7 PERMISSION_DENIED: Error verifying signature: openpgp: invalid signature: hash tag doesn't match
    at Object.callErrorFromStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
    at Object.onReceiveStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client.js:349:49)
    at Object.onReceiveStatus (/Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
    at /Users/a.kitta/dev/git/arduino-ide/node_modules/@grpc/grpc-js/build/src/call-stream.js:187:78
    at processTicksAndRejections (node:internal/process/task_queues:78:11)

Running these manually fixed the issue:

a.kitta@Akoss-MacBook-Pro arduino-ide % ./arduino-ide-extension/build/arduino-cli core update-index --format json
a.kitta@Akoss-MacBook-Pro arduino-ide % ./arduino-ide-extension/build/arduino-cli lib update-index --format json

@cmaglie commented:

from time to time we get this error from the lib update index

on the CI

the hypothesis is that the cloudflare cache is not aligned for some millisecond and if you download the signature in that instant the signature do not match

probably the most reliable solution is to do what we did with the package_index -> create an tar.bz2 archive with both signature and index, so they are downloaded togherter

@cmaglie
Copy link
Member

cmaglie commented Oct 12, 2022

Fixed by #1908

@cmaglie cmaglie closed this as completed Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself
Projects
None yet
Development

No branches or pull requests

3 participants