RE: [Bug 2068100] Re: ran `pro detach` to i could then run `pro attach ...` but `pro detach` failed on livepatch

2024-06-06 Thread Michael Metts
Hi Kian,

`snap remove canonical-livepatch` seems to have fixed it.  I was able to
run `pro detach` and then `pro attach` with a new token.  I think I’m
all set.  Thanks.

Mike

Michael L. Metts (he/him/his)
/ˈmaɪkəɫ ˈɛɫ ˈmɛts/
Principal Data Engineer
CORNERSTONE RESEARCH
1302 El Camino Real, Suite 250
Menlo Park, CA  94025-4327
650.470.7171 direct
650.740.8551 mobile
www.cornerstone.com

From: nore...@launchpad.net  On Behalf Of Kian Parvin
Sent: Thursday, June 6, 2024 8:06 AM
To: Metts, Michael 
Subject: [Bug 2068100] Re: ran `pro detach` to i could then run `pro attach 
...` but `pro detach` failed on livepatch

EXTERNAL SENDER

Hi Michael,

Strange that there are no logs. Let's try the following instead.

First, let us know the contents of this file if it exists,

- sudo cat /var/snap/canonical-livepatch/current/livepatchd.err

At this point, if you just want to `pro detach` you can try removing the
Livepatch first.

- sudo snap remove canonical-livepatch

Then try `sudo pro detach`.

Alternatively if you want to dig deeper into the issue we can try the
following. Please provide us with the output from the following
commands,

- ps aux | grep livepatch
- sudo snap stop canonical-livepatch
- ps aux | grep livepatch

Then try run the daemon manually

- sudo SNAP_COMMON=/var/snap/canonical-livepatch/common
SNAP_DATA=/var/snap/canonical-livepatch/current /snap/canonical-
livepatch/current/canonical-livepatchd

And then in a separate terminal,

- canonical-livepatch status

Let us know the output from the above. After this you can start the
service again with

- sudo snap start canonical-livepatch

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/2068100<https://bugs.launchpad.net/bugs/2068100>

Title:
ran `pro detach` to i could then run `pro attach ...` but `pro detach`
failed on livepatch

Status in Canonical Livepatch Client:
New
Status in ubuntu-advantage-tools package in Ubuntu:
Incomplete

Bug description:
the problem is reported in /var/log/ubuntu-advantage.log but i'm not
sure how to fix it. i just want to detach and re-attached but i want
to make sure liveupdate is turned off.

root@crcoubu2:~# lsb_release -rd
Description: Ubuntu 22.04.2 LTS
Release: 22.04

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-advantage-tools 32.3~22.04
ProcVersionSignature: Ubuntu 5.15.0-91.101-generic 5.15.131
Uname: Linux 5.15.0-91-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
CasperMD5CheckResult: pass
Date: Tue Jun 4 23:51:39 2024
InstallationDate: Installed on 2023-03-30 (432 days ago)
InstallationMedia: Ubuntu-Server 22.04.2 LTS "Jammy Jellyfish" - Release amd64 
(20230217.1)
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: No upgrade log present (probably fresh install)
cloud-id.txt: none
jobs-status.json: {"metering": {"last_run": "2024-06-05T05:47:55.559250+00:00", 
"next_run": "2024-06-05T09:47:55.559250+00:00"}, "update_contract_info": null, 
"update_messaging": {"last_run": "2024-06-05T01:01:36+00:00", "next_run": 
"2024-06-05T07:01:36+00:00"}}
livepatch-status.txt-error: Failed running command 
'/snap/bin/canonical-livepatch status' [exit(1)]. Message: error executing 
status: livepatchd error: daemon shutting down
uaclient.conf:
contract_url: https://contracts.canonical.com<https://contracts.canonical.com>
log_level: debug

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions<https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions>
"***
Warning: This email may contain confidential or privileged information
intended only for the use of the individual or entity to whom it is
addressed. If you are not the intended recipient, please understand 
that any disclosure, copying, distribution, or use of the contents 
of this email is strictly prohibited.
***"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2068100

Title:
  ran `pro detach` to i could then run `pro attach ...` but `pro detach`
  failed on livepatch

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2068100] Re: ran `pro detach` to i could then run `pro attach ...` but `pro detach` failed on livepatch

2024-06-06 Thread Kian Parvin
Hi Michael,

Strange that there are no logs. Let's try the following instead.

First, let us know the contents of this file if it exists,

- sudo cat /var/snap/canonical-livepatch/current/livepatchd.err

At this point, if you just want to `pro detach` you can try removing the
Livepatch first.

- sudo snap remove canonical-livepatch

Then try `sudo pro detach`.

Alternatively if you want to dig deeper into the issue we can try the
following. Please provide us with the output from the following
commands,

- ps aux | grep livepatch
- sudo snap stop canonical-livepatch
- ps aux | grep livepatch

Then try run the daemon manually

- sudo SNAP_COMMON=/var/snap/canonical-livepatch/common
SNAP_DATA=/var/snap/canonical-livepatch/current /snap/canonical-
livepatch/current/canonical-livepatchd

And then in a separate terminal,

- canonical-livepatch status

Let us know the output from the above. After this you can start the
service again with

- sudo snap start canonical-livepatch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2068100

Title:
  ran `pro detach` to i could then run `pro attach ...` but `pro detach`
  failed on livepatch

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

RE: [Bug 2068100] Re: ran `pro detach` to i could then run `pro attach ...` but `pro detach` failed on livepatch

2024-06-06 Thread Michael Metts
Hi Kian,

The restart doesn’t work.  I still  can’t get `pro detach` to work.  I’m
getting no lines for the journalctl command (please see below).  Thanks.

Mike

root@crcoubu2:~# journalctl -t canonical-livepatch.canonical-livepatchd -n 200 
-r
-- No entries --

From: nore...@launchpad.net  On Behalf Of Kian Parvin
Sent: Wednesday, June 5, 2024 11:53 PM
To: Metts, Michael 
Subject: [Bug 2068100] Re: ran `pro detach` to i could then run `pro attach 
...` but `pro detach` failed on livepatch

EXTERNAL SENDER

Hi,

Weighing in from the Livepatch team it looks like the Livepatch daemon
is potentially stuck or possibly restarting frequently.

Could you provide us with the logs from the following command, these are
most recent 200 log lines from the Livepatch daemon.

- journalctl -t canonical-livepatch.canonical-livepatchd -n 200 -r

And you can also try the following to restart the snap

- sudo snap restart canonical-livepatch

After the restart, if the issue persists, it might be worth it to check
the logs again to try and spot anything noteworthy.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/2068100<https://bugs.launchpad.net/bugs/2068100>

Title:
ran `pro detach` to i could then run `pro attach ...` but `pro detach`
failed on livepatch

Status in Canonical Livepatch Client:
New
Status in ubuntu-advantage-tools package in Ubuntu:
Incomplete

Bug description:
the problem is reported in /var/log/ubuntu-advantage.log but i'm not
sure how to fix it. i just want to detach and re-attached but i want
to make sure liveupdate is turned off.

root@crcoubu2:~# lsb_release -rd
Description: Ubuntu 22.04.2 LTS
Release: 22.04

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-advantage-tools 32.3~22.04
ProcVersionSignature: Ubuntu 5.15.0-91.101-generic 5.15.131
Uname: Linux 5.15.0-91-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
CasperMD5CheckResult: pass
Date: Tue Jun 4 23:51:39 2024
InstallationDate: Installed on 2023-03-30 (432 days ago)
InstallationMedia: Ubuntu-Server 22.04.2 LTS "Jammy Jellyfish" - Release amd64 
(20230217.1)
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: No upgrade log present (probably fresh install)
cloud-id.txt: none
jobs-status.json: {"metering": {"last_run": "2024-06-05T05:47:55.559250+00:00", 
"next_run": "2024-06-05T09:47:55.559250+00:00"}, "update_contract_info": null, 
"update_messaging": {"last_run": "2024-06-05T01:01:36+00:00", "next_run": 
"2024-06-05T07:01:36+00:00"}}
livepatch-status.txt-error: Failed running command 
'/snap/bin/canonical-livepatch status' [exit(1)]. Message: error executing 
status: livepatchd error: daemon shutting down
uaclient.conf:
contract_url: https://contracts.canonical.com<https://contracts.canonical.com>
log_level: debug

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions<https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions>
"***
Warning: This email may contain confidential or privileged information
intended only for the use of the individual or entity to whom it is
addressed. If you are not the intended recipient, please understand 
that any disclosure, copying, distribution, or use of the contents 
of this email is strictly prohibited.
***"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2068100

Title:
  ran `pro detach` to i could then run `pro attach ...` but `pro detach`
  failed on livepatch

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2068100] Re: ran `pro detach` to i could then run `pro attach ...` but `pro detach` failed on livepatch

2024-06-06 Thread Kian Parvin
Hi,

Weighing in from the Livepatch team it looks like the Livepatch daemon
is potentially stuck or possibly restarting frequently.

Could you provide us with the logs from the following command, these are
most recent 200 log lines from the Livepatch daemon.

- journalctl -t canonical-livepatch.canonical-livepatchd -n 200 -r

And you can also try the following to restart the snap

- sudo snap restart canonical-livepatch

After the restart, if the issue persists, it might be worth it to check
the logs again to try and spot anything noteworthy.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2068100

Title:
  ran `pro detach` to i could then run `pro attach ...` but `pro detach`
  failed on livepatch

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 2068100] Re: ran `pro detach` to i could then run `pro attach ...` but `pro detach` failed on livepatch

2024-06-05 Thread Michael Metts
Thanks. I have a support ticket as well.

Sent from my iPhone

On Jun 5, 2024, at 8:15 PM, Renan Rodrigo <2068...@bugs.launchpad.net>
wrote:

 EXTERNAL SENDER

Hello, Michael, thanks for reporting this bug.

The ubuntu-advantage.log contains tracebacks only related to livepatch,
and the Pro Client is behaving as expected as far as I can see.

I am including Livepatch people in this bug so they can weigh in on what
is happening. I will mark this incomplete for u-a-t until we see more
information.

** Information type changed from Private to Public

** Changed in: ubuntu-advantage-tools (Ubuntu)
Status: New => Incomplete

** Also affects: canonical-livepatch-client
Importance: Undecided
Status: New

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/2068100

Title:
ran `pro detach` to i could then run `pro attach ...` but `pro detach`
failed on livepatch

Status in Canonical Livepatch Client:
New
Status in ubuntu-advantage-tools package in Ubuntu:
Incomplete

Bug description:
the problem is reported in /var/log/ubuntu-advantage.log but i'm not
sure how to fix it. i just want to detach and re-attached but i want
to make sure liveupdate is turned off.

root@crcoubu2:~# lsb_release -rd
Description: Ubuntu 22.04.2 LTS
Release: 22.04

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-advantage-tools 32.3~22.04
ProcVersionSignature: Ubuntu 5.15.0-91.101-generic 5.15.131
Uname: Linux 5.15.0-91-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
CasperMD5CheckResult: pass
Date: Tue Jun 4 23:51:39 2024
InstallationDate: Installed on 2023-03-30 (432 days ago)
InstallationMedia: Ubuntu-Server 22.04.2 LTS "Jammy Jellyfish" - Release amd64 
(20230217.1)
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ubuntu-advantage-tools
UpgradeStatus: No upgrade log present (probably fresh install)
cloud-id.txt: none
jobs-status.json: {"metering": {"last_run": "2024-06-05T05:47:55.559250+00:00", 
"next_run": "2024-06-05T09:47:55.559250+00:00"}, "update_contract_info": null, 
"update_messaging": {"last_run": "2024-06-05T01:01:36+00:00", "next_run": 
"2024-06-05T07:01:36+00:00"}}
livepatch-status.txt-error: Failed running command 
'/snap/bin/canonical-livepatch status' [exit(1)]. Message: error executing 
status: livepatchd error: daemon shutting down
uaclient.conf:
contract_url: https://contracts.canonical.com
log_level: debug

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions
"***
Warning: This email may contain confidential or privileged information
intended only for the use of the individual or entity to whom it is
addressed. If you are not the intended recipient, please understand 
that any disclosure, copying, distribution, or use of the contents 
of this email is strictly prohibited.
***"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2068100

Title:
  ran `pro detach` to i could then run `pro attach ...` but `pro detach`
  failed on livepatch

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2068100] Re: ran `pro detach` to i could then run `pro attach ...` but `pro detach` failed on livepatch

2024-06-05 Thread Apport retracing service
** Tags removed: need-amd64-retrace

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2068100

Title:
  ran `pro detach` to i could then run `pro attach ...` but `pro detach`
  failed on livepatch

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2068100] Re: ran `pro detach` to i could then run `pro attach ...` but `pro detach` failed on livepatch

2024-06-05 Thread Renan Rodrigo
Hello, Michael, thanks for reporting this bug.

The ubuntu-advantage.log contains tracebacks only related to livepatch,
and the Pro Client is behaving as expected as far as I can see.

I am including Livepatch people in this bug so they can weigh in on what
is happening. I will mark this incomplete for u-a-t until we see more
information.

** Information type changed from Private to Public

** Changed in: ubuntu-advantage-tools (Ubuntu)
   Status: New => Incomplete

** Also affects: canonical-livepatch-client
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2068100

Title:
  ran `pro detach` to i could then run `pro attach ...` but `pro detach`
  failed on livepatch

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-livepatch-client/+bug/2068100/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs