Bug #16560
closedAt upgrade apache restart fail since webapp files are already unpacked
Description
On debian, when upgrading from 5 to 6 we switch de wsgi dependency from relay to webapp.
So the upgrade goies like this:
*something* install webapp ->unpack webapp ->install relay --> unpack relay --> postinst ----> restart apache *something* ->end install webapp
The apache restart fails since the conf files using wsgi from webapp are already unpacked but the module itself is not loaded at relay install time.
Since relay can be install explicitly without webapp, we should not change its packaging.
An easy workaround might be forcing a "pre-depends" on rudder-server-relay within the rudder-webapp control file. This way, the install of rudder-webapp will only start after the relay is fully installed and so, the webapp conf files using wsgi should not be unpacked too soon.
Updated by Félix DALLIDET almost 5 years ago
- Status changed from New to In progress
- Assignee set to Félix DALLIDET
Updated by Félix DALLIDET almost 5 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Félix DALLIDET to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/2190
Updated by Félix DALLIDET almost 5 years ago
- Status changed from Pending technical review to New
- Assignee deleted (
Benoît PECCATTE) - Pull Request deleted (
https://github.com/Normation/rudder-packages/pull/2190)
After further research, it seems the underlying problem is dependencies resolution order:
-on fresh install wsgi is installed before relay
-on upgrade relay is installed before wsgi
I have yet no clue on why the order change
Updated by Félix DALLIDET almost 5 years ago
- Status changed from New to Pending release
Applied in changeset rudder-packages|5267640977e2bc623c2d9bbe9c2d196382bd34e0.
Updated by Vincent MEMBRÉ almost 5 years ago
- Fix check changed from To do to Checked
Updated by Alexis Mousset over 4 years ago
- Name check changed from To do to Reviewed
Updated by Vincent MEMBRÉ over 4 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.0.3 which was released today.