How to Fix Ubuntu Landscape – Invalid Machine token

Ubuntu Landscape allows you to keep systems updated when deployed in large clusters.

If you clone a machine and look in its logs you might find an error message similar to the ones below.

Error message:

during refresh: cannot check: cannot send status to server: bad server status 403 (URL: https://livepatch.canonical.com/api/machine/dfb8755a82202da0678c99065c9501ab): {"error": "Invalid Machine Token"}

You may also see this warning in the motd.

 * Canonical Livepatch is enabled.
- Livepatch server check failed.
Please see /var/log/syslog for more information.

 

The solution is to remove, reinstall landscape and register the node again with your license key.

apt remove landscape-common 
apt install landscape-common

It’s not clear if this is a bug or intended behavior for Landscape.

For large deploymens this could be problematic.