Error when building: Cannot change status from Published to Published

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [X] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

Hi, I got the error when I build the Squidex with docker.

"type": "Squidex.Infrastructure.Validation.ValidationException",
"message": "Cannot change status from Published to Published.",
"stackTrace": "   at Squidex.Infrastructure.Validation.Validate.It(Func\u00602 action) in /src/src/Squidex.Infrastructure/Validation/Validate.cs:line 48 ..."

Expected behavior

Build successful

Minimal reproduction of the problem

Environment

  • [X] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 5.6.0

Browser:

  • [X] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Sorry, but I have no idea what you mean.

  1. Why do you want to publish a content that is already published?
  2. What do you mean with building?

I have no idea. When I start up my Squidex image and the logs show these to me.
I tried to build the docker image again and it did not solve the problem.

It is probably the scheduler that tried to schedule an old entity that has been published in the meantime. If you show the full logs with the exception stack trace I can show you more.

{
  "logLevel": "Error",
  "action": "ChangeStatusScheduled",
  "status": "Failed",
  "contentId": "d0f6799c-c090-4360-9db2-51772c965e39",
  "app": {
    "name": "Squidex",
    "version": "5.6.0.0",
    "sessionId": "335d00b4-559a-42ee-84fd-e9ad887d3f73"
  },
  "timestamp": "2021-04-26T06:15:50Z",
  "exception": {
    "type": "Squidex.Infrastructure.Validation.ValidationException",
    "message": "Cannot change status from Published to Published.",
    "stackTrace": "   at Squidex.Infrastructure.Validation.Validate.It(Func\u00602 action) in /src/src/Squidex.Infrastructure/Validation/Validate.cs:line 50\n   at Squidex.Domain.Apps.Entities.Contents.DomainObject.ContentDomainObject.\u003CExecuteAsync\u003Eb__5_6(ChangeContentStatus c) in /src/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/ContentDomainObject.cs:line 238\n   at Squidex.Infrastructure.Commands.DomainObjectBase\u00601.InvokeAsync[TCommand](TCommand command, Func\u00602 handler, Boolean isUpdate) in /src/src/Squidex.Infrastructure/Commands/DomainObjectBase.cs:line 231\n   at Squidex.Infrastructure.Commands.DomainObjectGrain\u00602.ExecuteAsync(J\u00601 request) in /src/src/Squidex.Infrastructure/Commands/DomainObjectGrain.cs:line 50\n   at Squidex.Domain.Apps.Entities.Contents.DomainObject.OrleansCodeGenContentGrainMethodInvoker.Invoke(IAddressable grain, InvokeMethodRequest request) in /src/src/Squidex.Domain.Apps.Entities/obj/Release/net5.0/Squidex.Domain.Apps.Entities.orleans.g.cs:line 1385\n   at Orleans.Runtime.GrainMethodInvoker.Invoke()\n   at Squidex.Infrastructure.Orleans.StateFilter.Invoke(IIncomingGrainCallContext context) in /src/src/Squidex.Infrastructure/Orleans/StateFilter.cs:line 51\n   at Orleans.Runtime.GrainMethodInvoker.Invoke()\n   at Squidex.Infrastructure.Orleans.LocalCacheFilter.Invoke(IIncomingGrainCallContext context) in /src/src/Squidex.Infrastructure/Orleans/LocalCacheFilter.cs:line 39\n   at Orleans.Runtime.GrainMethodInvoker.Invoke()\n   at Orleans.Runtime.GrainMethodInvoker.Invoke()\n   at Squidex.Infrastructure.Orleans.ExceptionWrapperFilter.Invoke(IIncomingGrainCallContext context) in /src/src/Squidex.Infrastructure/Orleans/ExceptionWrapperFilter.cs:line 35\n   at Orleans.Runtime.GrainMethodInvoker.Invoke()\n   at Squidex.Infrastructure.Orleans.LoggingFilter.Invoke(IIncomingGrainCallContext context) in /src/src/Squidex.Infrastructure/Orleans/LoggingFilter.cs:line 46\n   at Orleans.Runtime.GrainMethodInvoker.Invoke()\n   at OrleansDashboard.Metrics.GrainProfilerFilter.Invoke(IIncomingGrainCallContext context)\n   at Orleans.Runtime.GrainMethodInvoker.Invoke()\n   at Orleans.Runtime.InsideRuntimeClient.Invoke(IAddressable target, IInvokable invokable, Message message)\n   at Orleans.Internal.OrleansTaskExtentions.\u003CToTypedTask\u003Eg__ConvertAsync|4_0[T](Task\u00601 asyncTask)\n   at Squidex.Infrastructure.Commands.GrainCommandMiddleware\u00602.ExecuteCommandAsync(TCommand typedCommand) in /src/src/Squidex.Infrastructure/Commands/GrainCommandMiddleware.cs:line 48\n   at Squidex.Infrastructure.Commands.GrainCommandMiddleware\u00602.ExecuteCommandAsync(CommandContext context) in /src/src/Squidex.Infrastructure/Commands/GrainCommandMiddleware.cs:line 39\n   at Squidex.Infrastructure.Commands.GrainCommandMiddleware\u00602.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Infrastructure/Commands/GrainCommandMiddleware.cs:line 29\n   at Squidex.Domain.Apps.Entities.Contents.DomainObject.ContentCommandMiddleware.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Domain.Apps.Entities/Contents/DomainObject/ContentCommandMiddleware.cs:line 42\n   at Squidex.Domain.Apps.Entities.Contents.BulkUpdateCommandMiddleware.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Domain.Apps.Entities/Contents/BulkUpdateCommandMiddleware.cs:line 115\n   at Squidex.Infrastructure.Commands.GrainCommandMiddleware\u00602.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Infrastructure/Commands/GrainCommandMiddleware.cs:line 29\n   at Squidex.Domain.Apps.Entities.Assets.DomainObject.AssetCommandMiddleware.HandleCoreAsync(CommandContext context, Boolean created, NextDelegate next) in /src/src/Squidex.Domain.Apps.Entities/Assets/DomainObject/AssetCommandMiddleware.cs:line 149\n   at Squidex.Domain.Apps.Entities.Assets.DomainObject.AssetCommandMiddleware.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Domain.Apps.Entities/Assets/DomainObject/AssetCommandMiddleware.cs:line 114\n   at Squidex.Domain.Apps.Entities.Apps.DomainObject.AppCommandMiddleware.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Domain.Apps.Entities/Apps/DomainObject/AppCommandMiddleware.cs:line 56\n   at Squidex.Domain.Apps.Entities.Schemas.Indexes.SchemasIndex.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Domain.Apps.Entities/Schemas/Indexes/SchemasIndex.cs:line 171\n   at Squidex.Domain.Apps.Entities.Rules.Indexes.RulesIndex.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Domain.Apps.Entities/Rules/Indexes/RulesIndex.cs:line 74\n   at Squidex.Domain.Apps.Entities.Apps.Indexes.AppsIndex.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Domain.Apps.Entities/Apps/Indexes/AppsIndex.cs:line 249\n   at Squidex.Domain.Apps.Entities.Apps.Invitation.InviteUserCommandMiddleware.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Domain.Apps.Entities/Apps/Invitation/InviteUserCommandMiddleware.cs:line 60\n   at Squidex.Infrastructure.Commands.CustomCommandMiddlewareRunner.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Infrastructure/Commands/CustomCommandMiddlewareRunner.cs:line 32\n   at Squidex.Web.CommandMiddlewares.ETagCommandMiddleware.HandleAsync(CommandContext context, NextDelegate next) in /src/src/Squidex.Web/CommandMiddlewares/ETagCommandMiddleware.cs:line 65\n   at Squidex.Infrastructure.Commands.InMemoryCommandBus.PublishAsync(ICommand command) in /src/src/Squidex.Infrastructure/Commands/InMemoryCommandBus.cs:line 74\n   at Squidex.Domain.Apps.Entities.Contents.ContentSchedulerGrain.\u003C\u003Ec__DisplayClass8_0.\u003C\u003CPublishAsync\u003Eb__1\u003Ed.MoveNext() in /src/src/Squidex.Domain.Apps.Entities/Contents/ContentSchedulerGrain.cs:line 106"
  }
}

It is okay, nothing to be worried about.

But I cannot start my Squidex. I open the page and get ERR_CONNECTION_TIMED_OUT response.

Oh, we fixed the issue. Thanks.
You can close the topic.