Bug #20204
closed
when upgrading from 6.2 to 7.0 with the dsc plugin, webapp doesn't work
Added by Nicolas CHARLES almost 3 years ago.
Updated over 2 years ago.
Category:
Plugins integration
Description
No error during upgrade, but webapp complains
2021-10-27 15:28:57.696:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:///opt/rudder/share/webapps/] at interval 0
2021-10-27 15:28:59.581:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@d21a74c{/rudder,file:///var/rudder/tmp/jetty/jetty-rudder.war.dir/webapp/,ST
OPPED}{/opt/rudder/share/webapps/rudder.war}
java.nio.file.NoSuchFileException: /opt/rudder/share/plugins/dsc/rudder-plugin-dsc.jar
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:149)
at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
indeed, this file does not exist, but /opt/rudder/share/plugins/dsc/dsc.jar does
webapp install log say:
Updating package index
Updating licences
The plugin rudder-plugin-dsc is installed in version 6.2-1.26-SNAPSHOT. The version nightly 7.0.0~beta3-2.0-nightly is available, the plugin will be upgraded.
The package is already installed, ugrading
Restarting rudder-jetty
enable /opt/rudder/share/plugins/dsc/rudder-plugin-dsc.jar
Restarting rudder-jetty
INFO: The migration has completed successfully.
INFO: Correcting permissions on /var/rudder/configuration-repository... Done
Wed Oct 27 15:29:00 CEST 2021 - Ending rudder-webapp post installation script
(END)
- Project changed from Rudder to 78
- Category changed from Plugins integration to Packaging
- Target version deleted (
7.0.0~beta3)
generated plugin jar is dsc.jar
right solution would be to correctly remove the previous jar from the list
jar_status should insert the line <Set name="extraClasspath"> if missing
install_file should check, from the metadata of existing package ( metadata = utils.DB['plugins'][p] ), the jar and remove accordingly if exists
- Project changed from 78 to Rudder
- Category changed from Packaging to Plugins integration
- Target version set to 7.0.0~beta3
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Félix DALLIDET
- Pull Request set to https://github.com/Normation/rudder/pull/3969
- Status changed from Pending technical review to Pending release
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.0.0~beta3 which was released today.
Also available in: Atom
PDF