A Git platform powered by Scala with easy installation, high extensibility & github API compatibility
I am trying to migrate my GItBucket database to postgreSQL based on the following blog post.
https://takezoe.hatenablog.com/entry/2016/07/16/025154
Almost everything worked, but one thing gave me an error when I ran the following line.
SELECT setval('activity_activity_id_seq', (select max(activity_id) + 1 from activity));
https://twitter.com/Nunocky/status/1344895798840967169?s=20
Do I need to run this statement in the latest version of gitbucket?
Translated with www.DeepL.com/Translator (free version)
@Nunocky Activity has migrated from DB to JSON-based file since 4.34.0.
gitbucket/gitbucket#2468
So you don't have to run the query if you're using the latest version (4.35.0).
ERROR g.core.controller.IndexController - Catch unhandled error in request: org.apache.catalina.connector.RequestFacade@33c9687e
scala.MatchError: delete_wiki (of class java.lang.String)
at gitbucket.core.helper.html.activities$.$anonfun$apply$1(activities.template.scala:47)
at scala.collection.immutable.List.map(List.scala:250)
at gitbucket.core.helper.html.activities$.apply(activities.template.scala:45)
at gitbucket.core.html.index$.apply(index.template.scala:44)
at gitbucket.core.controller.IndexControllerBase.$anonfun$$init$$2(IndexController.scala:67)
at scala.Option.map(Option.scala:242)
at gitbucket.core.controller.IndexControllerBase.$anonfun$$init$$1(IndexController.scala:65)
at org.scalatra.ScalatraBase.liftAction(ScalatraBase.scala:282)
at org.scalatra.ScalatraBase.$anonfun$invoke$1(ScalatraBase.scala:276)
at org.scalatra.ApiFormats.withRouteMultiParams(ApiFormats.scala:180)
at org.scalatra.ApiFormats.withRouteMultiParams$(ApiFormats.scala:171)
at gitbucket.core.controller.ControllerBase.withRouteMultiParams(ControllerBase.scala:35)
at org.scalatra.ScalatraBase.invoke(ScalatraBase.scala:275)
at org.scalatra.ScalatraBase.invoke$(ScalatraBase.scala:274)
at gitbucket.core.controller.ControllerBase.invoke(ControllerBase.scala:35)
at org.scalatra.ScalatraBase.$anonfun$runRoutes$3(ScalatraBase.scala:250)
at scala.Option.flatMap(Option.scala:283)
at org.scalatra.ScalatraBase.$anonfun$runRoutes$1(ScalatraBase.scala:248)
at scala.collection.immutable.Stream.flatMap(Stream.scala:206)
at org.scalatra.ScalatraBase.runRoutes(ScalatraBase.scala:247)
at org.scalatra.ScalatraBase.runRoutes$(ScalatraBase.scala:245)
at gitbucket.core.controller.ControllerBase.runRoutes(ControllerBase.scala:35)
at org.scalatra.ScalatraBase.runActions$1(ScalatraBase.scala:169)
at org.scalatra.ScalatraBase.$anonfun$executeRoutes$6(ScalatraBase.scala:181)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
at org.scalatra.ScalatraBase.cradleHalt(ScalatraBase.scala:201)
at org.scalatra.ScalatraBase.executeRoutes(ScalatraBase.scala:181)
at org.scalatra.ScalatraBase.executeRoutes$(ScalatraBase.scala:150)
at gitbucket.core.controller.ControllerBase.executeRoutes(ControllerBase.scala:35)
at org.scalatra.ScalatraBase.$anonfun$handle$1(ScalatraBase.scala:123)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:59)
at org.scalatra.DynamicScope.withResponse(DynamicScope.scala:75)
at org.scalatra.DynamicScope.withResponse$(DynamicScope.scala:73)
at gitbucket.core.controller.ControllerBase.withResponse(ControllerBase.scala:35)
at org.scalatra.DynamicScope.$anonfun$withRequestResponse$1(DynamicScope.scala:55)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:59)
at org.scalatra.DynamicScope.withRequest(DynamicScope.scala:66)
at org.scalatra.DynamicScope.withRequest$(DynamicScope.scala:64)
at gitbucket.core.controller.ControllerBase.withRequest(ControllerBase.scala:35)
at org.scalatra.DynamicScope.withRequestResponse(DynamicScope.scala:54)
at org.scalatra.DynamicScope.withRequestResponse$(DynamicScope.scala:52)
at gitbucket.core.controller.ControllerBase.withRequestResponse(ControllerBase.scala:35)
at org.scalatra.ScalatraBase.handle(ScalatraBase.scala:123)
at org.scalatra.ScalatraBase.handle$(ScalatraBase.scala:119)
at gitbucket.core.controller.ControllerBase.org$scalatra$servlet$ServletBase$$super$handle(ControllerBase.scala:35)
at org.scalatra.servlet.ServletBase.handle(ServletBase.scala:42)
at org.scalatra.servlet.ServletBase.handle$(ServletBase.scala:35)