What type of hardware are you using: VPS bought online What YunoHost version are you running: 12.0.14 How are you able to access your server: The webadmin Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No
Describe your issue
Hello friends, I was undecided whether this issue goes under support for applications or Yunohost. I’ve decided to post it under support for Yunohost since the bug is related to the app restore script.
So a Jenkins update arrived today and I wanted to upgrade it as usual. But this time something went wrong at the restore stage and the upgrade process failed. Finally, Yunohost uninstalled Jenkins.
Can you advise me on what I should do to safely restore Jenkins? I have backups and I think I can restore from the most recent one. But we should ask why this update was problematic.
Zmlerf for some reason the service just “times out” trying to start …
The logs don’t contain much info though … maybe we can try getting more info with journalctl --quiet --no-hostname --no-pager --lines=1000 --unit=jenkins | yunopaste (this should generate a yunopaste link)
Hmmm I a bit lost in all those stacktrace and don’t know much about Java nor Jenkins …
My best guess is that it could be related to java.lang.NoClassDefFoundError: groovy/lang/GroovyObjectSupport … is “Groovy” some plugin you installed manually maybe ?
Groovy is the scripting language of the Jenkins. I am not sure whether it is in the core or a plugin. Although it would be a plugin, it should be installed automatically by Jenkins at the first setup.
The latter one is a plugin but I don’t know of it. It may be a dependant plugin of the ones I installed.
Nevertheless, I can’t do anything to uninstall those plugins before I restore it from the backup. So, the only way to fix this problem is to make a fresh Jenkins installation. Then if I do so, is there a way to extract the jenkins configuration from the backup archive and restore it to the freshly installed Jenkins instance?
I suppose, I’m not sure what exactly is the jenkins config i.e. if it’s just a file or if it’s stored in DB.
Anyway the backup archive, if browsed/extracted manually, contains somewhere the stuff for jenkins, in particular in var/www/jenkins and the config file should be somewhere in there. You should also find a db.sql which corresponds to the database dump