Failed to update to 11.8.0 when using working period custom issue field (OD-2348)
Lénaïc Grolleau opened 9 months ago

When I update my docker container to the v11.8.0 from the 11.7.6, I've got the error below:

onedev-1  | INFO  - >>> INFO  - Launching application from '/opt/onedev'...
onedev-1  | INFO  - >>> INFO  - Cleaning temp directory...
onedev-1  | INFO  - >>> INFO  - Starting application...
onedev-1  | INFO  - >>> INFO  - Restoring database from /opt/onedev/site/db-backup/2025-03-27_01-01-33.zip...
onedev-1  | INFO  - >>> INFO  - Waiting for server to stop...
onedev-1  | INFO  - >>> ERROR - Error booting application
onedev-1  | INFO  - >>> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
onedev-1  | INFO  - >>>         at io.onedev.commons.bootstrap.Bootstrap.unchecked(Bootstrap.java:319)
onedev-1  | INFO  - >>>         at io.onedev.commons.utils.ExceptionUtils.unchecked(ExceptionUtils.java:31)
onedev-1  | INFO  - >>>         at io.onedev.server.data.migration.MigrationHelper.migrate(MigrationHelper.java:151)
onedev-1  | INFO  - >>>         at io.onedev.server.data.DefaultDataManager.migrateData(DefaultDataManager.java:346)
onedev-1  | INFO  - >>>         at io.onedev.server.commandhandler.RestoreDatabase.doRestore(RestoreDatabase.java:100)
onedev-1  | INFO  - >>>         at io.onedev.server.commandhandler.RestoreDatabase.lambda$start$0(RestoreDatabase.java:74)
onedev-1  | INFO  - >>>         at io.onedev.server.commandhandler.CommandHandler.doMaintenance(CommandHandler.java:32)
onedev-1  | INFO  - >>>         at io.onedev.server.commandhandler.RestoreDatabase.start(RestoreDatabase.java:67)
onedev-1  | INFO  - >>>         at io.onedev.commons.loader.DefaultPluginManager.start(DefaultPluginManager.java:44)
onedev-1  | INFO  - >>>         at io.onedev.commons.loader.AppLoader.start(AppLoader.java:60)
onedev-1  | INFO  - >>>         at io.onedev.commons.bootstrap.Bootstrap.main(Bootstrap.java:200)
onedev-1  | INFO  - >>> Caused by: java.lang.reflect.InvocationTargetException: null
onedev-1  | INFO  - >>>         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
onedev-1  | INFO  - >>>         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
onedev-1  | INFO  - >>>         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
onedev-1  | INFO  - >>>         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
onedev-1  | INFO  - >>>         at io.onedev.server.data.migration.MigrationHelper.migrate(MigrationHelper.java:149)
onedev-1  | INFO  - >>>         ... 8 common frames omitted
onedev-1  | INFO  - >>> Caused by: java.lang.NullPointerException: null
onedev-1  | INFO  - >>>         at io.onedev.server.data.migration.DataMigrator.migrate196(DataMigrator.java:7768)
onedev-1  | INFO  - >>>         ... 13 common frames omitted
onedev-1  | INFO  - >>> INFO  - Stopping application...
onedev-1  | ERROR - Failed to upgrade /opt/onedev

From what I read in the changelog, the only thing concerning us is that you removed the working period fields. But you wrote that they should be automatically converted to int fields. For now, I've restored the 11.7.6 and it works.

  • OneDev commented 9 months ago

    State changed as code fixing the issue is committed (a80fef6e)

  • OneDev changed state to 'Closed' 9 months ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 9 months ago

    State changed as build OD-6064 is successful

  • OneDev changed state to 'Released' 9 months ago
    Previous Value Current Value
    Closed
    Released
  • Robin Shen changed title 9 months ago
    Previous Value Current Value
    Failed to update to 11.8.0
    Failed to update to 11.8.0 when using working period custom issue field
issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
11.8.0
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2348
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover