Frequent apache2 graceful, should only be done on changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Repository Cache Charm |
Fix Released
|
High
|
Haw Loeung |
Bug Description
Hi,
The u-r-c charm, or something, seems to be causing apache2 to periodically graceful. It should only do so on config changes.
This can lead to cgid failing to start on graceful restart/reload:
| [Thu Feb 18 13:09:19.328252 2021] [core:notice] [pid 3630124:tid 139732453542976] AH00094: Command line: '/usr/sbin/apache2'
| [Thu Feb 18 13:09:19.328262 2021] [mpm_worker:notice] [pid 3630124:tid 139732453542976] AH00297: SIGUSR1 received. Doing graceful restart
| [Thu Feb 18 13:09:19.381403 2021] [cgid:error] [pid 611358:tid 139732453542976] (98)Address already in use: AH01243: Couldn't bind unix domain socket /var/run/
| [Thu Feb 18 13:09:19.381602 2021] [mpm_worker:notice] [pid 3630124:tid 139732453542976] AH00292: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
| [Thu Feb 18 13:09:19.381628 2021] [core:notice] [pid 3630124:tid 139732453542976] AH00094: Command line: '/usr/sbin/apache2'
| [Thu Feb 18 13:09:20.382773 2021] [cgid:crit] [pid 3630124:tid 139732453542976] AH01238: cgid daemon failed to initialize
The health-check relies on cgid being up so units are taken offline in these cases until the next graceful restart/reload.
Related branches
- Joel Sing (community): Approve (+1)
- Canonical IS Reviewers: Pending requested
-
Diff: 544 lines (+278/-87)4 files modified.bzrignore (+1/-0)
.coveragerc (+2/-0)
lib/ubuntu_repository_cache/apache.py (+111/-45)
tests/unit/test_apache.py (+164/-42)
- Barry Price: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 104 lines (+44/-7)4 files modifiedhooks/hooks.py (+3/-1)
lib/ubuntu_repository_cache/apache.py (+6/-4)
lib/ubuntu_repository_cache/service.py (+2/-2)
tests/unit/test_apache.py (+33/-0)
- Joel Sing (community): Approve (+1)
- Canonical IS Reviewers: Pending requested
-
Diff: 107 lines (+38/-28)2 files modifiedlib/ubuntu_repository_cache/apache.py (+23/-14)
tests/unit/test_apache.py (+15/-14)
- Paul Collins: Approve (lgtm)
- Canonical IS Reviewers: Pending requested
-
Diff: 10 lines (+0/-1)1 file modifiedlib/ubuntu_repository_cache/service.py (+0/-1)
affects: | content-cache-charm → ubuntu-repository-cache |
description: | updated |
Changed in ubuntu-repository-cache: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-repository-cache: | |
status: | Fix Committed → Fix Released |
Seems to be hourly so likely with the metadata sync.