← Back to team overview

enterprise-support team mailing list archive

[Bug 1988227] [NEW] Removing /etc/apache2/conf-available/javascript-common.conf causes crash when upgrading from focal

 

Public bug reported:

With apache2 and javascript-common installed, if /etc/apache2/conf-
available/javascript-common.conf is deleted then the command

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/conf-enabled/javascript-common.conf is a dangling
symlink!


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-release-upgrader-core apport pciutils apache2 javascript-common -y
# rm /etc/apache2/conf-available/javascript-common.conf
# do-release-upgrade

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: apache2 2.4.52-1ubuntu4.1
ProcVersionSignature: Ubuntu 5.15.0-46.49-generic 5.15.39
Uname: Linux 5.15.0-46-generic x86_64
000-default.conf: Error: [Errno 40] Too many levels of symbolic links: '/etc/apache2/sites-enabled/000-default.conf'
Apache2ConfdDirListing: False
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
CasperMD5CheckResult: unknown
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/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 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'

** Affects: apache2 (Ubuntu)
     Importance: Undecided
     Assignee: Lena Voytek (lvoytek)
         Status: In Progress

** Affects: javascript-common (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-package jammy

** Changed in: apache2 (Ubuntu)
       Status: New => In Progress

** Changed in: apache2 (Ubuntu)
     Assignee: (unassigned) => Lena Voytek (lvoytek)

** Also affects: javascript-common (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to apache2 in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1988227

Title:
  Removing /etc/apache2/conf-available/javascript-common.conf causes
  crash when upgrading from focal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1988227/+subscriptions