Project

General

Profile

Actions

Bug #16560

closed

At upgrade apache restart fail since webapp files are already unpacked

Added by Félix DALLIDET almost 5 years ago. Updated over 4 years ago.

Status:
Released
Priority:
N/A
Assignee:
-
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

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.

Actions #1

Updated by Félix DALLIDET almost 5 years ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
Actions #2

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
Actions #3

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

Actions #4

Updated by Félix DALLIDET almost 5 years ago

  • Status changed from New to Pending release
Actions #5

Updated by Vincent MEMBRÉ almost 5 years ago

  • Fix check changed from To do to Checked
Actions #6

Updated by Alexis Mousset over 4 years ago

  • Name check changed from To do to Reviewed
Actions #7

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.

Actions

Also available in: Atom PDF