livepatch bad temporary server status 500

Asked by André Cefas de Souza Fernandes on 2020-07-24

how can i solve this problem im my pc?Failed to enable Livepatch: cannot enable machine: bad temporary server status 500. since yesterday had this message in my screen

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2020-07-24
Last reply:
2020-07-30

If its an HTTP error then it's an internal server error.
Have you tried a reboot?

yes, i already tried reboot. but the error still happens.

its always show the next message: Problem with setting up Canonical Livepatch.
 the error was:
Failed to enable Livepatch: cannot enable machine: bad temporary server status 500 (URL: https://livepatch.canonical.com/api/machine-tokens) server response: machine token already exists

salmmus (salmmus) said : #4

You have to clear the existing machine id.
sudo rm /etc/machine-id /var/lib/dbus/machine-id && sudo systemd-machine-id-setup

Then, you can continue with:
sudo rm /etc/machine-id /var/lib/dbus/machine-id && sudo systemd-machine-id-setup

sudo canonical-livepatch enable <token>

The comment #4 worked for me. Thanks!

Can you help with this problem?

Provide an answer of your own, or ask André Cefas de Souza Fernandes for more information if necessary.

To post a message you must log in.