[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't enable livepatch on 16.04.3


Thanks for the answer!
I figured out after someone told me about machine-id.

So a locate for "machine-id" revealed
"/usr/bin/systemd-machine-id-setup", så running
"systemd-machine-id-setup" did solve that for me :)

/ Jonathan

On 2018-01-07 19:50, Colin Watson wrote:
> On Thu, Jan 04, 2018 at 01:03:51PM +0100, Jonathan Sélea wrote:
>> I am having trouble enabling canonical-livepatch service on my ubuntu
>> server:
>> root at list:~# canonical-livepatch enable TOKENHERE 2018/01/04 12:02:19 Error
>> executing enable?auth-token=TOKENHERE. Bad server status code: 400. URL:
>> https://livepatch.canonical.com/api/machine-tokens {"error": "Invalid
>> payload", "details": {"Machine-Id": "Required"}}
> It appears that you don't have /etc/machine-id on this system.  I'm not
> sure exactly why that would be, but you can run
> "systemd-machine-id-setup" to create one.  (If you aren't running
> systemd, see
> http://manpages.ubuntu.com/manpages/xenial/en/man1/systemd-machine-id-setup.1.html
> for what it does.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x94B964DD.asc
Type: application/pgp-keys
Size: 3151 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20180108/c60c194b/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3968 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20180108/c60c194b/attachment.bin>