No internet connection

Trying to rename category gives error.

By Christian Scheuer @chrscheuer2020-09-29 19:51:33.358Z

Tried to rename a sub category (Counter Offset) and got this:

Something went wrong: [DwE500REX]

java.lang.RuntimeException: Cannot save 2 permissions, would result in 308 permissions in total, but 200 is max [TyEMNYPERMS]
	at com.debiki.core.Prelude$.die(Prelude.scala:160)
	at com.debiki.core.Prelude$.dieIf(Prelude.scala:174)
	at debiki.dao.CategoriesDao.addRemovePermsOnCategory(CategoriesDao.scala:807)
	at debiki.dao.CategoriesDao.$anonfun$editCategory$1(CategoriesDao.scala:613)
	at debiki.dao.SiteDao.$anonfun$readWriteTransaction$2(SiteDao.scala:262)
	at com.debiki.core.DbDao2.readWriteSiteTransaction(DbDao2.scala:67)
	at debiki.dao.SiteDao.$anonfun$readWriteTransaction$1(SiteDao.scala:262)
	at debiki.dao.SiteDao$.synchronizeOnSiteId(SiteDao.scala:647)
	at debiki.dao.SiteDao.readWriteTransaction(SiteDao.scala:261)
	at debiki.dao.CategoriesDao.editCategory(CategoriesDao.scala:589)
	at debiki.dao.CategoriesDao.editCategory$(CategoriesDao.scala:587)
	at debiki.dao.SiteDao.editCategory(SiteDao.scala:91)
	at controllers.ForumController.$anonfun$saveCategory$1(ForumController.scala:205)
	at scala.Function1.$anonfun$andThen$1(Function1.scala:57)
	at ed.server.http.PlainApiActions$$anon$1.runBlockIfAuthOk(PlainApiActions.scala:573)
	at ed.server.http.PlainApiActions$$anon$1.invokeBlockAuthViaCookie(PlainApiActions.scala:384)
	at ed.server.http.PlainApiActions$$anon$1.invokeBlockImpl(PlainApiActions.scala:235)
	at ed.server.http.PlainApiActions$$anon$1.invokeBlock(PlainApiActions.scala:121)
	at ed.server.http.PlainApiActions$$anon$1.invokeBlock(PlainApiActions.scala:94)
	at play.api.mvc.ActionBuilder$$anon$9.apply(Action.scala:379)
	at ed.server.http.PlainApiActions$$anon$1.$anonfun$composeAction$1(PlainApiActions.scala:108)
	at ed.server.http.SafeActions$ExceptionAction$.invokeBlock(SafeActions.scala:117)
	at ed.server.http.SafeActions$ExceptionAction$.invokeBlock(SafeActions.scala:83)
	at play.api.mvc.ActionBuilder$$anon$9.apply(Action.scala:379)
	at play.api.mvc.Action.$anonfun$apply$4(Action.scala:82)
	at play.api.libs.streams.StrictAccumulator.$anonfun$mapFuture$4(Accumulator.scala:168)
	at scala.util.Try$.apply(Try.scala:213)
	at play.api.libs.streams.StrictAccumulator.$anonfun$mapFuture$3(Accumulator.scala:168)
	at scala.Function1.$anonfun$andThen$1(Function1.scala:57)
	at scala.Function1.$anonfun$andThen$1(Function1.scala:57)
	at play.api.libs.streams.StrictAccumulator.run(Accumulator.scala:200)
	at play.core.server.AkkaHttpServer.$anonfun$runAction$4(AkkaHttpServer.scala:417)
	at akka.http.scaladsl.util.FastFuture$.strictTransform$1(FastFuture.scala:41)
	at akka.http.scaladsl.util.FastFuture$.$anonfun$transformWith$3(FastFuture.scala:51)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
	at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:56)
	at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:93)
	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
	at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:85)
	at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:93)
	at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:48)
	at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:48)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
  • 8 replies
  1. C
    Christian Scheuer @chrscheuer2020-09-29 19:51:50.509Z

    This is the category I tried to rename:
    https://forum.soundflow.org/latest/counter-offset

    1. In reply tochrscheuer:
      KajMagnus @KajMagnus2020-10-01 04:27:46.102Z

      i'll bump that limit for your site. (Max permissions: each category has 2 default permission sets: one for Everyone to read/reply/post-topics, and one for Staff)

      That limit doesn't affect the API, so that's why upserts via the API work but not renaming categories.

      (It's an extra check I added long ago, being worried about database queries maybe taking long if there would be unexpectedly many things of something.)

      1. CChristian Scheuer @chrscheuer2020-10-06 22:25:43.324Z

        Please do this as we currently can't edit any categories whatsoever - we're completely locked out from making any modifications or alterations to anything leaving us unable to do important tasks.

        1. KajMagnus @KajMagnus2020-10-07 08:16:52.824Z

          Ok sorry I'll do now (will be done in some hours)

          1. KajMagnus @KajMagnus2020-10-07 10:18:19.065Z

            @chrscheuer Would you like to try now? I just deployed the fix to Prod

            1. CChristian Scheuer @chrscheuer2020-10-07 18:11:55.435Z

              THANK YOU! Yay, it works now :)

      2. Progress
        with handling this problem
      3. @KajMagnus marked this topic as Planned 2020-10-01 04:28:05.930Z.
      4. C@chrscheuer marked this topic as Done 2020-10-07 18:11:59.300Z.