werf/trdl

MacOS: Self-update failed: unable to update tuf meta: tuf: no root keys found in local meta store

Closed this issue · 2 comments

Recently I've got an error which I didn't remember. It was something about "database" and "file limit exceeded". Those time I've just removed folder that was mentioned in the error. Then I reinstalled trdl and now I'm getting the following error:

~ source $("$HOME/bin/trdl" use werf "1.2" "stable")
Previous run of trdl update in background generated following errors:
WARNING: Self-update failed: unable to update tuf meta: tuf: no root keys found in local meta store

I've looked through the instructions on werf documentation and trdl as well, but didn't found any idea how to fix that.

May be I need to completely remove trdl with all tuf metas and then reinstall trdl. But I don't know all paths that I have to remove. May be uninstallation sequence mentioned somewhere in documentation and I have missed it?

I need your advice, guys. For now each time I open the Terminal I'm getting that warning, its a bit annoying.
Thank you!

P.S. I'm running on MacOS Intel.

Hi!

You deleted the database (~/.trdl/repositories/trdl/.meta) that is created during initialization and trdl cannot heal itself in this situation. To reinitialize the database, you can remove the trdl entry from the ~/.trdl/config.yaml configuration or completely remove the ~/.trdl directory.

Thank you. I've followed your instructions and now everything works like a charm.