Removing /etc/apache2/conf-available/javascript-common.conf causes crash when upgrading from focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
In Progress
|
Undecided
|
Lena Voytek | ||
javascript-common (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
With apache2 and javascript-common installed, if /etc/apache2/
a2enconf javascript-common
will fail causing apache2 to crash when upgrading. This is similar to LP: #1986959 and its duplicates, though not the same given the symlink error stated:
ERROR: /etc/apache2/
To reproduce, you can run the following commands:
# lxc launch images:ubuntu/focal test-apache2
# lxc exec test-apache2 bash
# apt update && apt dist-upgrade -y
# apt install ubuntu-
# rm /etc/apache2/
# do-release-upgrade
ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: apache2 2.4.52-1ubuntu4.1
ProcVersionSign
Uname: Linux 5.15.0-46-generic x86_64
000-default.conf: Error: [Errno 40] Too many levels of symbolic links: '/etc/apache2/
Apache2ConfdDir
Apache2Modules:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
httpd (pid 3909) already running
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
Date: Tue Aug 30 21:26:42 2022
Dmesg:
ErrorMessage: installed apache2 package post-installation script subprocess returned error exit status 1
Python3Details: /usr/bin/
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageV
dpkg 1.21.1ubuntu2.1
apt 2.4.7
SourcePackage: apache2
Title: package apache2 2.4.52-1ubuntu4.1 failed to install/upgrade: installed apache2 package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to jammy on 2022-08-30 (0 days ago)
error.log:
[Tue Aug 30 21:24:00.367235 2022] [mpm_event:notice] [pid 2530:tid 140097858546752] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Aug 30 21:24:00.367323 2022] [core:notice] [pid 2530:tid 140097858546752] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 30 21:25:24.067795 2022] [mpm_event:notice] [pid 2530:tid 140097858546752] AH00491: caught SIGTERM, shutting down
[Tue Aug 30 21:25:24.101614 2022] [mpm_event:notice] [pid 3909:tid 140294896139392] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Aug 30 21:25:24.101704 2022] [core:notice] [pid 3909:tid 140294896139392] AH00094: Command line: '/usr/sbin/apache2'
tags: | removed: need-duplicate-check |
Looks like the error
ERROR: /etc/apache2/ conf-enabled/ javascript- common. conf is a dangling symlink!
is unrelated to whether or not apache2 crashes. If you also delete /etc/apache2/ conf-enabled/ javascript- common. conf then the a2enconf failure still happens without a symlink issue.
New test case:
# lxc launch images:ubuntu/focal test-apache2
# lxc exec test-apache2 bash
# apt update && apt dist-upgrade -y release- upgrader- core apport pciutils apache2 javascript-common -y conf-available/ javascript- common. conf /etc/apache2/ conf-enabled/ javascript- common. conf
# apt install ubuntu-
# rm /etc/apache2/
# do-release-upgrade