OpenProject 10.2.0 upgrade fails with error about unable to find ver 10.0.0

Hello, at a univention-upgrade I was offered to upgrade the OpenProject app to 10.2.0 from 9.0.2 however it fails with error:

univention-app register: error: Unable to find version 10.0.0 of app openproject. Maybe "/usr/bin/univention-app update" to get the latest list of applications?
Unable to upgrade openproject. Aborting...

Tried running univention-app update and installing manually however no change.

Is there a version string mismatch somewhere in the app config?

univention app log:

10795 cache                            19-11-12 12:45:27 [   DEBUG]: Cache outdated. Need to rebuild
 10795 cache                            19-11-12 12:45:27 [   DEBUG]: Loaded 98 apps from cache
 10795 cache                            19-11-12 12:45:27 [   DEBUG]: Cache outdated. Need to rebuild
 10795 cache                            19-11-12 12:45:27 [   DEBUG]: Loaded 214 apps from cache
 10795 cache                            19-11-12 12:45:27 [   DEBUG]: Cache outdated. Need to rebuild
 10795 cache                            19-11-12 12:45:27 [   DEBUG]: Loaded 219 apps from cache
 10795 cache                            19-11-12 12:45:28 [   DEBUG]: Cache outdated. Need to rebuild
 10795 cache                            19-11-12 12:45:28 [   DEBUG]: Loaded 394 apps from cache
 10795 actions.upgrade                  19-11-12 12:45:28 [   DEBUG]: Calling upgrade
 10795 actions.upgrade.progress         19-11-12 12:45:28 [   DEBUG]: 0
 10795 actions.upgrade                  19-11-12 12:45:28 [    INFO]: Going to upgrade OpenProject (10.2.0)
 10795 actions.upgrade                  19-11-12 12:45:38 [   DEBUG]: Calling prescript (preinst)
 10795 actions.upgrade                  19-11-12 12:45:38 [   DEBUG]: Calling /var/cache/univention-appcenter/appcenter.software-univention.de/4.3/openproject_20191107133449.preinst --binddn uid=Administrator,cn=users,dc=<snipped subdomain>,dc=<snipped domain>,dc=com,dc=au --locale en --old-version 9.0.2 --error-file /tmp/tmp44kMqD --version 10.2.0 --bindpwdfile/tmp/tmp6V0W0l
 10868 cache                            19-11-12 12:45:39 [   DEBUG]: Cache outdated. Need to rebuild
 10868 cache                            19-11-12 12:45:39 [   DEBUG]: Loaded 98 apps from cache
 10868 cache                            19-11-12 12:45:39 [   DEBUG]: Cache outdated. Need to rebuild
 10868 cache                            19-11-12 12:45:39 [   DEBUG]: Loaded 214 apps from cache
 10868 cache                            19-11-12 12:45:39 [   DEBUG]: Cache outdated. Need to rebuild
 10868 cache                            19-11-12 12:45:39 [   DEBUG]: Loaded 219 apps from cache
 10868 cache                            19-11-12 12:45:39 [   DEBUG]: Cache outdated. Need to rebuild
 10868 cache                            19-11-12 12:45:39 [   DEBUG]: Loaded 394 apps from cache
 10795 actions.upgrade                  19-11-12 12:45:39 [ WARNING]: usage: univention-app register [-h] [--noninteractive] [--username USERNAME]
 10795 actions.upgrade                  19-11-12 12:45:39 [ WARNING]:                                [--pwdfile PWDFILE] [--component] [--files]
 10795 actions.upgrade                  19-11-12 12:45:39 [ WARNING]:                                [--host] [--app] [--database] [--attributes]
 10795 actions.upgrade                  19-11-12 12:45:39 [ WARNING]:                                [--listener] [--do-it] [--undo-it]
 10795 actions.upgrade                  19-11-12 12:45:39 [ WARNING]:                                [apps [apps ...]]
 10795 actions.upgrade                  19-11-12 12:45:39 [ WARNING]: univention-app register: error: Unable to find version 10.0.0 of app openproject. Maybe "/usr/bin/univention-app update" to get the latest list of applications?
 10795 actions.upgrade                  19-11-12 12:45:39 [   DEBUG]: /var/cache/univention-appcenter/appcenter.software-univention.de/4.3/openproject_20191107133449.preinst returned with 2
 10795 actions.upgrade                  19-11-12 12:45:39 [CRITICAL]: Unable to upgrade openproject. Aborting...
 10795 actions.upgrade.progress         19-11-12 12:45:39 [   DEBUG]: 100

Is it that the version in the ini file is 10.2.0 but the preinst script is 10.0.0?

/var/cache/univention-appcenter/appcenter.software-univention.de

#: egrep "10\.2\.0" * -R
Binary file 4.3/.all.tar matches
4.3/openproject_20191107133449.ini:Version = 10.2.0
4.3/.apps.en.json:    "version": "10.2.0",
4.3/.apps.de.json:    "version": "10.2.0",

#: egrep "10\.0\.0" * -R
4.3/openproject_20191107133449.preinst: univention-app register --database openproject=10.0.0 --do-it

Hello @pp303,

thanks for the feedback. The problem has been fixed so that your update should work now.

Best regards,
Nico

Great, thanks for the fix!

1 Like
Mastodon