Project

General

Profile

Actions

Bug #20204

closed

when upgrading from 6.2 to 7.0 with the dsc plugin, webapp doesn't work

Added by Nicolas CHARLES over 2 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Plugins integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

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


Subtasks 1 (0 open1 closed)

Bug #20212: parent ticket didn't totally solve the issueReleasedAlexis MoussetActions
Actions #1

Updated by Nicolas CHARLES over 2 years ago

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)

Actions #2

Updated by Nicolas CHARLES over 2 years ago

  • 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

Actions #3

Updated by Nicolas CHARLES over 2 years ago

right solution would be to correctly remove the previous jar from the list

Actions #4

Updated by Nicolas CHARLES over 2 years ago

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

Actions #5

Updated by Nicolas CHARLES over 2 years ago

  • Project changed from 78 to Rudder
  • Category changed from Packaging to Plugins integration
Actions #6

Updated by Nicolas CHARLES over 2 years ago

  • Target version set to 7.0.0~beta3
Actions #7

Updated by Nicolas CHARLES over 2 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #8

Updated by Nicolas CHARLES over 2 years ago

  • 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
Actions #9

Updated by Nicolas CHARLES over 2 years ago

  • Status changed from Pending technical review to Pending release
Actions #10

Updated by Vincent MEMBRÉ over 2 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.0.0~beta3 which was released today.

Actions

Also available in: Atom PDF