uable to enable esm-infra by pro command

Bug #2018995 reported by PerEnr
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I tried to enable esm-infra by: pro enable esm-infra
1) Description: Ubuntu 18.04.6 LTS Release: 18.04
2) apt-cache policy ubuntu-advantage-tools
   ubuntu-advantage-tools:
    Installato: 27.14.4~18.04
    Candidato: 27.14.4~18.04
    Tabella versione:
    *** 27.14.4~18.04 500
        500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     17 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu bionic/main i386 Packages
3) enable esm-infra by: pro enable esm-infra
4) I got:
   Unexpected error(s) occurred.
   For more details, see the log: /var/log/ubuntu-advantage.log
   To file a bug run: ubuntu-bug ubuntu-advantage-tools

You can find as attachment the result of command: ubuntu-bug ubuntu-advantage-tools

Subscription seems ok:
SERVICE ENTITLED STATUS DESCRIPTION
cc-eal yes disabled Common Criteria EAL2 Provisioning Packages
cis yes disabled Security compliance and audit tools
esm-apps yes disabled Expanded Security Maintenance for Applications
esm-infra yes disabled Expanded Security Maintenance for Infrastructure
fips yes disabled NIST-certified core packages
fips-updates yes disabled NIST-certified core packages with priority security updates
livepatch yes enabled Canonical Livepatch service
ros yes disabled Security Updates for the Robot Operating System
ros-updates yes disabled All Updates for the Robot Operating System

Enable services with: pro enable <service>

     Account: <email address hidden>
Subscription: Ubuntu Pro - free personal subscription

Livepatch is enabled with no problem

Thanks for your support

Henry

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ubuntu-advantage-tools 27.14.4~18.04
ProcVersionSignature: Ubuntu 4.15.0-210.221-generic 4.15.18
Uname: Linux 4.15.0-210-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.29
Architecture: amd64
Date: Tue May 9 13:24:26 2023
InstallationDate: Installed on 2019-02-22 (1537 days ago)
InstallationMedia: Ubuntu-Server 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
ProcEnviron:
 LANG=it_IT
 SHELL=/bin/bash
 TERM=xterm
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, no user)
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: Upgraded to bionic on 2023-05-05 (4 days ago)
cloud-id.txt-error: Invalid command specified 'cloud-id'.
uaclient.conf:
 contract_url: https://contracts.canonical.com
 log_level: debug
ubuntu-advantage-timer.log:
 ["2023-05-09T13:10:03.325", "DEBUG", "__main__", "run", 51, "Running job: metering", {}]
 ["2023-05-09T13:10:03.329", "DEBUG", "__main__", "run", 51, "Running job: update_messaging", {}]

Revision history for this message
PerEnr (perenrste) wrote :
Revision history for this message
Renan Rodrigo (renanrodrigo) wrote :

Hello, Henry
Thanks for reporting this bug

This is a very unusual situation, where:
a) validation of your esm-infra credentials succeeded
b) the output of apt-helper, for some reason, is not UTF-8 - then we blow up trying to decode...

I cannot reproduce this bug.
a) Are you able to reproduce this on a fresh system?
b) Is the behavior the same, even if you detach then attach again?
c) Are all packages in the system up to date? Is the behavior the same, even after running 'sudo apt-get update && sudo apt-get dist-upgrade'?

information type: Private → Public
Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Incomplete
tags: removed: need-amd64-retrace
Revision history for this message
PerEnr (perenrste) wrote : Re: [Bug 2018995] Re: uable to enable esm-infra by pro command
Download full text (5.6 KiB)

Hi Rodrigo,
thanks for your kind answer.
I try to answer at every point of your questions:
1) In fresh system I don't get the problem; so I think it's related to some
kind of configuration; it's a system I setup some years ago and now I
wanted to extend the lts period.
2) I've tried to detach and re-attach UA always with the same result; I
even tried a friend's token to see if it was related to my account
3) I've made several time the apt update and upgrade (both as sudo and as
root user); I've done this some minutes ago; after the upgrades I tried to
detach and then (after a reboot) to re-attach the token and I got this
answer:
Enabling default service esm-apps
Enabling default service esm-infra
Enabling default service livepatch
Canonical livepatch enabled.
Unexpected error(s) occurred.
For more details, see the log: /var/log/ubuntu-advantage.log
To file a bug run: ubuntu-bug ubuntu-advantage-tools

As you can see livepatch get enabled while esm-apps and esm-infra don't.

I've to say that lately I've had some problem (some broken dependencies)
with python and pip (causing nodejs malfunction) and I had to do some
reinstall but now all seems to work well.

I'll probably have to setup a new system and then migrate everything from
the old system to the new.

Thanks for your support

Henry

Il giorno lun 15 mag 2023 alle ore 16:29 Renan Rodrigo <
<email address hidden>> ha scritto:

> Hello, Henry
> Thanks for reporting this bug
>
> This is a very unusual situation, where:
> a) validation of your esm-infra credentials succeeded
> b) the output of apt-helper, for some reason, is not UTF-8 - then we blow
> up trying to decode...
>
> I cannot reproduce this bug.
> a) Are you able to reproduce this on a fresh system?
> b) Is the behavior the same, even if you detach then attach again?
> c) Are all packages in the system up to date? Is the behavior the same,
> even after running 'sudo apt-get update && sudo apt-get dist-upgrade'?
>
>
> ** Information type changed from Private to Public
>
> ** Changed in: ubuntu-advantage-tools (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2018995
>
> Title:
> uable to enable esm-infra by pro command
>
> Status in ubuntu-advantage-tools package in Ubuntu:
> Incomplete
>
> Bug description:
> I tried to enable esm-infra by: pro enable esm-infra
> 1) Description: Ubuntu 18.04.6 LTS Release: 18.04
> 2) apt-cache policy ubuntu-advantage-tools
> ubuntu-advantage-tools:
> Installato: 27.14.4~18.04
> Candidato: 27.14.4~18.04
> Tabella versione:
> *** 27.14.4~18.04 500
> 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main
> amd64 Packages
> 100 /var/lib/dpkg/status
> 17 500
> 500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64
> Packages
> 500 http://de.archive.ubuntu.com/ubuntu bionic/main i386
> Packages
> 3) enable esm-infra by: pro enable esm-infra
> 4) I got:
> Unexpected error(s) occurred.
> For more details, see the log: /var/log/ubuntu-advantage.log
> To file a bug run: ubun...

Read more...

Revision history for this message
Renan Rodrigo (renanrodrigo) wrote :

> I've to say that lately I've had some problem (some broken dependencies)
> with python and pip (causing nodejs malfunction) and I had to do some
> reinstall but now all seems to work well.

interesting... I am not sure how this would affect the results...

Could you please run
$ /usr/lib/apt/apt-helper download-file http://archive.ubuntu.com/ubuntu/pool /tmp/apthelper.tmp

and see
a) if this fails, and
b) post the output here?

Thanks

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-advantage-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-advantage-tools (Ubuntu):
status: Incomplete → Expired
Revision history for this message
PerEnr (perenrste) wrote :
Download full text (4.0 KiB)

I solved the problem: it was due to a corrupted language (locale) setting.
Though the system was showing the correct data I reset the locale variables
and then everything started working fine.

Thanks for your supoport

Henry

Il giorno dom 16 lug 2023 alle ore 06:25 Launchpad Bug Tracker <
<email address hidden>> ha scritto:

> [Expired for ubuntu-advantage-tools (Ubuntu) because there has been no
> activity for 60 days.]
>
> ** Changed in: ubuntu-advantage-tools (Ubuntu)
> Status: Incomplete => Expired
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2018995
>
> Title:
> uable to enable esm-infra by pro command
>
> Status in ubuntu-advantage-tools package in Ubuntu:
> Expired
>
> Bug description:
> I tried to enable esm-infra by: pro enable esm-infra
> 1) Description: Ubuntu 18.04.6 LTS Release: 18.04
> 2) apt-cache policy ubuntu-advantage-tools
> ubuntu-advantage-tools:
> Installato: 27.14.4~18.04
> Candidato: 27.14.4~18.04
> Tabella versione:
> *** 27.14.4~18.04 500
> 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main
> amd64 Packages
> 100 /var/lib/dpkg/status
> 17 500
> 500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64
> Packages
> 500 http://de.archive.ubuntu.com/ubuntu bionic/main i386
> Packages
> 3) enable esm-infra by: pro enable esm-infra
> 4) I got:
> Unexpected error(s) occurred.
> For more details, see the log: /var/log/ubuntu-advantage.log
> To file a bug run: ubuntu-bug ubuntu-advantage-tools
>
> You can find as attachment the result of command: ubuntu-bug ubuntu-
> advantage-tools
>
> Subscription seems ok:
> SERVICE ENTITLED STATUS DESCRIPTION
> cc-eal yes disabled Common Criteria EAL2 Provisioning
> Packages
> cis yes disabled Security compliance and audit tools
> esm-apps yes disabled Expanded Security Maintenance for
> Applications
> esm-infra yes disabled Expanded Security Maintenance for
> Infrastructure
> fips yes disabled NIST-certified core packages
> fips-updates yes disabled NIST-certified core packages with
> priority security updates
> livepatch yes enabled Canonical Livepatch service
> ros yes disabled Security Updates for the Robot
> Operating System
> ros-updates yes disabled All Updates for the Robot Operating
> System
>
> Enable services with: pro enable <service>
>
> Account: <email address hidden>
> Subscription: Ubuntu Pro - free personal subscription
>
> Livepatch is enabled with no problem
>
> Thanks for your support
>
> Henry
>
> ProblemType: Bug
> DistroRelease: Ubuntu 18.04
> Package: ubuntu-advantage-tools 27.14.4~18.04
> ProcVersionSignature: Ubuntu 4.15.0-210.221-generic 4.15.18
> Uname: Linux 4.15.0-210-generic x86_64
> ApportVersion: 2.20.9-0ubuntu7.29
> Architecture: amd64
> Date: Tue May 9 13:24:26 2023
> InstallationDate: Installed on 2019-02-22 (1537 days ago)
> Installa...

Read more...

Revision history for this message
PerEnr (perenrste) wrote :
Download full text (4.4 KiB)

Hi Rodrigo,
I contact you after over months because today I've solved my problem with
pro (ubuntu-advantage).
It was due to a corrupted language (locale) setting.
Though the system was showing the correct data I reset the locale variables
and then everything started working fine.

Thanks for your support

Henry

Il giorno mar 16 mag 2023 alle ore 12:10 Renan Rodrigo <
<email address hidden>> ha scritto:

> > I've to say that lately I've had some problem (some broken dependencies)
> > with python and pip (causing nodejs malfunction) and I had to do some
> > reinstall but now all seems to work well.
>
> interesting... I am not sure how this would affect the results...
>
> Could you please run
> $ /usr/lib/apt/apt-helper download-file
> http://archive.ubuntu.com/ubuntu/pool /tmp/apthelper.tmp
>
> and see
> a) if this fails, and
> b) post the output here?
>
> Thanks
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2018995
>
> Title:
> uable to enable esm-infra by pro command
>
> Status in ubuntu-advantage-tools package in Ubuntu:
> Incomplete
>
> Bug description:
> I tried to enable esm-infra by: pro enable esm-infra
> 1) Description: Ubuntu 18.04.6 LTS Release: 18.04
> 2) apt-cache policy ubuntu-advantage-tools
> ubuntu-advantage-tools:
> Installato: 27.14.4~18.04
> Candidato: 27.14.4~18.04
> Tabella versione:
> *** 27.14.4~18.04 500
> 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main
> amd64 Packages
> 100 /var/lib/dpkg/status
> 17 500
> 500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64
> Packages
> 500 http://de.archive.ubuntu.com/ubuntu bionic/main i386
> Packages
> 3) enable esm-infra by: pro enable esm-infra
> 4) I got:
> Unexpected error(s) occurred.
> For more details, see the log: /var/log/ubuntu-advantage.log
> To file a bug run: ubuntu-bug ubuntu-advantage-tools
>
> You can find as attachment the result of command: ubuntu-bug ubuntu-
> advantage-tools
>
> Subscription seems ok:
> SERVICE ENTITLED STATUS DESCRIPTION
> cc-eal yes disabled Common Criteria EAL2 Provisioning
> Packages
> cis yes disabled Security compliance and audit tools
> esm-apps yes disabled Expanded Security Maintenance for
> Applications
> esm-infra yes disabled Expanded Security Maintenance for
> Infrastructure
> fips yes disabled NIST-certified core packages
> fips-updates yes disabled NIST-certified core packages with
> priority security updates
> livepatch yes enabled Canonical Livepatch service
> ros yes disabled Security Updates for the Robot
> Operating System
> ros-updates yes disabled All Updates for the Robot Operating
> System
>
> Enable services with: pro enable <service>
>
> Account: <email address hidden>
> Subscription: Ubuntu Pro - free personal subscription
>
> Livepatch is enabled with no problem
>
> Thanks for your support
>
> Henry
>
> ProblemType: Bug...

Read more...

Revision history for this message
Renan Rodrigo (renanrodrigo) wrote :

Hello! Thanks for the clarification!
Good to know it got solved.

I am marking this as invalid, as it is not a bug in the tool per se.

Changed in ubuntu-advantage-tools (Ubuntu):
status: Expired → Invalid
Revision history for this message
PerEnr (perenrste) wrote :
Download full text (3.9 KiB)

Perfect.
Thanks you very much

Henry

Il giorno lun 17 lug 2023 alle ore 13:36 Renan Rodrigo <
<email address hidden>> ha scritto:

> Hello! Thanks for the clarification!
> Good to know it got solved.
>
> I am marking this as invalid, as it is not a bug in the tool per se.
>
> ** Changed in: ubuntu-advantage-tools (Ubuntu)
> Status: Expired => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2018995
>
> Title:
> uable to enable esm-infra by pro command
>
> Status in ubuntu-advantage-tools package in Ubuntu:
> Invalid
>
> Bug description:
> I tried to enable esm-infra by: pro enable esm-infra
> 1) Description: Ubuntu 18.04.6 LTS Release: 18.04
> 2) apt-cache policy ubuntu-advantage-tools
> ubuntu-advantage-tools:
> Installato: 27.14.4~18.04
> Candidato: 27.14.4~18.04
> Tabella versione:
> *** 27.14.4~18.04 500
> 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main
> amd64 Packages
> 100 /var/lib/dpkg/status
> 17 500
> 500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64
> Packages
> 500 http://de.archive.ubuntu.com/ubuntu bionic/main i386
> Packages
> 3) enable esm-infra by: pro enable esm-infra
> 4) I got:
> Unexpected error(s) occurred.
> For more details, see the log: /var/log/ubuntu-advantage.log
> To file a bug run: ubuntu-bug ubuntu-advantage-tools
>
> You can find as attachment the result of command: ubuntu-bug ubuntu-
> advantage-tools
>
> Subscription seems ok:
> SERVICE ENTITLED STATUS DESCRIPTION
> cc-eal yes disabled Common Criteria EAL2 Provisioning
> Packages
> cis yes disabled Security compliance and audit tools
> esm-apps yes disabled Expanded Security Maintenance for
> Applications
> esm-infra yes disabled Expanded Security Maintenance for
> Infrastructure
> fips yes disabled NIST-certified core packages
> fips-updates yes disabled NIST-certified core packages with
> priority security updates
> livepatch yes enabled Canonical Livepatch service
> ros yes disabled Security Updates for the Robot
> Operating System
> ros-updates yes disabled All Updates for the Robot Operating
> System
>
> Enable services with: pro enable <service>
>
> Account: <email address hidden>
> Subscription: Ubuntu Pro - free personal subscription
>
> Livepatch is enabled with no problem
>
> Thanks for your support
>
> Henry
>
> ProblemType: Bug
> DistroRelease: Ubuntu 18.04
> Package: ubuntu-advantage-tools 27.14.4~18.04
> ProcVersionSignature: Ubuntu 4.15.0-210.221-generic 4.15.18
> Uname: Linux 4.15.0-210-generic x86_64
> ApportVersion: 2.20.9-0ubuntu7.29
> Architecture: amd64
> Date: Tue May 9 13:24:26 2023
> InstallationDate: Installed on 2019-02-22 (1537 days ago)
> InstallationMedia: Ubuntu-Server 18.04.1 LTS "Bionic Beaver" - Release
> amd64 (20180725)
> ProcEnviron:
> LANG=it_IT
> SHELL=/bin/bash
> TERM=xterm
> ...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.