Can't enable livepatch on 16.04.3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't enable livepatch on 16.04.3

Jonathan Sélea
I am having trouble enabling canonical-livepatch service on my ubuntu
server:


root@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"}}


What is the issue here? I can't find anything useful online regarding this


/ Jonathan



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can't enable livepatch on 16.04.3

Jonathan Sélea

I do not want to be the person who repeatedly sends the same message over and over. But does anyone have an answer - or can point me in the right direction to this problem?

Thanks
/ Jonathan


On 2018-01-04 13:03, Jonathan Sélea wrote:
I am having trouble enabling canonical-livepatch service on my ubuntu server:


root@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"}}


What is the issue here? I can't find anything useful online regarding this


/ Jonathan






--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

0x94B964DD.asc (3K) Download Attachment
smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can't enable livepatch on 16.04.3

Colin Watson
In reply to this post by Jonathan Sélea
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@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.)

--
Colin Watson                                       [[hidden email]]

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Can't enable livepatch on 16.04.3

Jonathan Sélea
Hi,

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@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.)
>

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

0x94B964DD.asc (3K) Download Attachment
smime.p7s (5K) Download Attachment