Ubuntu Server installer internal error when checking Pro subscription status

Bug #2050030 reported by Ken Sharp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
High
Olivier Gayot
ubuntu-advantage-tools (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When installing both Ubuntu Server 18.04.6 and 20.04.6 from the live CD you are asked if you would like to attach to an Ubuntu Pro/Advantage subscription. In both cases an "Internal Error" occurs. 22.04.3 doesn't have this issue.

Video attached for 20.04.6.

Revision history for this message
Ken Sharp (kennybobs) wrote :
Revision history for this message
Lucas Albuquerque Medeiros de Moura (lamoura) wrote :

Hi Ken,

Thanks for reporting this. I am also adding the subiquity team on the loop here, since they are the ones responsible for the installer. I will let them say how we should approach this issue.

Revision history for this message
Olivier Gayot (ogayot) wrote :

I just tested it on the focal ISO (after refreshing the installer to 23.10.1) and reproduced the error.

The logs show:

2024-01-22 18:02:19,796 DEBUG subiquitycore.utils:135 arun_command ('/snap/subiquity/5270/usr/bin/python3.10', '/snap/subiquity/5270/usr/bin/ubuntu-advantage', 'status', '--format', 'json', '--simulate-with-token', '<redacted>') exited with code 1
2024-01-22 18:02:19,796 DEBUG subiquity.server.ubuntu_advantage:261 error reported by u-a-c: None: Failed running command 'apt list --installed' [exit(1)]. Message: apt: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /snap/subiquity/5270/usr/lib/x86_64-linux-gnu/libsystemd.so.0)
apt: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /snap/subiquity/5270/usr/lib/x86_64-linux-gnu/libsystemd.so.0)
apt: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /snap/subiquity/5270/usr/lib/x86_64-linux-gnu/libsystemd.so.0)
apt: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /snap/core22/current/lib/x86_64-linux-gnu/libcap.so.2)

2024-01-22 18:02:19,796 DEBUG root:30 finish: subiquity/UbuntuPro/check_token_GET: SUCCESS: 200 {"status": "UNKNOWN_ERROR", "subscription": null}

Revision history for this message
Olivier Gayot (ogayot) wrote :

This also affects the invocation of sshd -T:

2024-01-22 18:02:22,216 DEBUG subiquitycore.utils:98 run_command ['sshd', '-T'] exited with code 1
2024-01-22 18:02:22,216 DEBUG subiquitycore.ssh:36 sshd -T failed "sshd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /snap/subiquity/5270/usr/lib/x86_64-linux-gnu/libsystemd.so.0)\nsshd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /snap/subiquity/5270/usr/lib/x86_64-linux-gnu/libsystemd.so.0)\nsshd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /snap/subiquity/5270/usr/lib/x86_64-linux-gnu/libsystemd.so.0)\nsshd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /snap/core22/current/lib/x86_64-linux-gnu/liblzma.so.5)\nsshd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /snap/core22/current/lib/x86_64-linux-gnu/liblzma.so.5)\nsshd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /snap/core22/current/lib/x86_64-linux-gnu/libcap.so.2)\nsshd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /snap/core22/current/lib/x86_64-linux-gnu/libgcrypt.so.20)\nsshd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /snap/core22/current/lib/x86_64-linux-gnu/libgpg-error.so.0)\nsshd: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /snap/core22/current/lib/x86_64-linux-gnu/libgpg-error.so.0)\n"

Revision history for this message
Olivier Gayot (ogayot) wrote :

It looks like the refreshed 23.10.1 subiquity snap runs with a LD_LIBRARY_PATH, whereas the 22.02.1 did not.

$ grep environment -A 2 /snap/subiquity/5270/meta/snap.yaml

environment:
  LD_LIBRARY_PATH: ${SNAP_LIBRARY_PATH}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu
  PATH: $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH

https://github.com/snapcore/snapcraft/issues/4187 seems relevant.

Olivier Gayot (ogayot)
Changed in ubuntu-advantage-tools (Ubuntu):
status: New → In Progress
status: In Progress → New
Changed in subiquity:
status: New → In Progress
assignee: nobody → Olivier Gayot (ogayot)
importance: Undecided → High
Revision history for this message
Olivier Gayot (ogayot) wrote :

Rebuilding the snap with the version of snapcraft 8.0.1 (currently on latest/stable) fixes the issue.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Is that something that is going to happen soon in the natural course of things or do we need to trigger a rebuild / republish explicitly for this?

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

As the bug is not in the Pro Client, and the subiquity people are looking into it, I am marking it invalid for ubuntu-advantage-tools.

Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Invalid
Olivier Gayot (ogayot)
Changed in subiquity:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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