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

tuf error, failed to decode root.json #43

Closed
ChrisHardie opened this issue Jul 24, 2017 · 7 comments
Closed

tuf error, failed to decode root.json #43

ChrisHardie opened this issue Jul 24, 2017 · 7 comments

Comments

@ChrisHardie
Copy link

For the last few days I've been seeing this error go by in my logs:

Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC

The do-agent binary was last updated on July 19 and that's about when the issue started. It sounds like tuf is trying to reference a file/resource that is somehow considered expired.

Looks like others are seeing the same: https://www.digitalocean.com/community/questions/do-agent-unable-to-update

Any advice?

@laurencei
Copy link

I have this exact issue. It is appear on all my droplets (I have 6) - every hour, every droplet since similar time to @ChrisHardie.

I've tried forcing an update (already on 0.5.0) and uninstall/reinstalling etc - nothing solves it.

@adiohaion
Copy link

I have the same issue on our production server. Also tried to reinstall the agent which didn't help.

@darkmuggle
Copy link
Contributor

Fix is inflight. We don't have an update to the agent right now (0.5.0 is the latest), so the message is noise. But I am going to fix it this week :

@ghost
Copy link

ghost commented Aug 16, 2017

@utlemming until now I didn't received data in the Graph in DO for my droplet affected by this issue. However since now one or two days I can see data in the Graph section. Was it linked to this issue?

While I still see the tuf error to decode root.json but I get reporting... Every hours I can still see the same error:
Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC

@darkmuggle
Copy link
Contributor

Tuf is an update framework which is seperate from the reporting of graphs. If you are not seeing Graphs, please reach out to support; the two issues are seperate. The root.json expiration just means that the agent will not update to the next version. Since there is no next version yet, its a cosmetic issue for now.

@ghost
Copy link

ghost commented Aug 16, 2017

@utlemming thanks for the clarification.

@darkmuggle
Copy link
Contributor

Thank you all for your patience. I've confirmed that the fix is rolled out. Your agents should see the fix shortly.

root@agent-tester:/opt/digitalocean/bin# ./do-agent 
2017/08/16 21:54:57 Do-Agent version 0.4.13
2017/08/16 21:54:57 Do-Agent build HEAD.c02cdbe
2017/08/16 21:54:57 Architecture: amd64
2017/08/16 21:54:57 Operating System: linux
2017/08/16 21:54:57 Checking for newer version of do-agent
2017/08/16 21:54:57 Do-Agent version 0.5.0
2017/08/16 21:54:57 Do-Agent build HEAD.a434d05
2017/08/16 21:54:57 Architecture: amd64
2017/08/16 21:54:57 Operating System: linux
2017/08/16 21:54:57 Checking for newer version of do-agent
2017/08/16 21:54:57 No update available

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

4 participants