livepatch bad temporary server status 500

Asked by André Cefas de Souza Fernandes

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:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

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

Revision history for this message
André Cefas de Souza Fernandes (andrecefaskrrai) said :
#2

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

Revision history for this message
André Cefas de Souza Fernandes (andrecefaskrrai) said :
#3

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

Revision history for this message
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>

Revision history for this message
Leonardo Dal Picolo Cadurin (leonardodpc) said :
#5

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.