An error (404-page not found) appeared while trying to connect a new branch in the GitHub repository

  • New branch created in our Github repository.
  • Refreshed the AppSmith application and tried to connect with the new branch.
  • An error (404-page not found) appeared while trying to connect a new branch in the GitHub repository, and there was also an alert showing “Resource not found.”

@aparna can you please check if the branch is listed in the branch-list? How are you testing the branched application? i.e. this error will be reported if say your default branch has resource1, resource2 but your child branched application have resource1 and resource3 and you are navigating from default app to child branched app while on resource2.
Also any rational why you created a branch directly on github instead from Appsmith interface?

@Abhvsn
yes ,the new branch was listed in the branch list.

Branched application tested by following the below steps:-
- Open our application instance and click on the git icon at the bottom left of application.
- refresh the branch list and click on the newly created branch
- 404 error appears with an alert “Resource not found.”

  • When we tried to create new branch from Appsmith interface, it shows an error as below,

Can you explain the resource-related details that you have mentioned in the above reply?

Please send us the server logs to help us investigate the issue. You can grab the logs by running docker logs -f appsmith. Or you could follow the steps from this guide on how to get the logs: GitHub - felix-appsmith/guide-how-to-get-logs-appsmith

About the resources:
Consider you have Page1, Page2, Page3 in default branch but only Page1 and Page3 in child branch. Now if you try to switch the branch from default to child when on Page2 it will result in resource not found error as Page2 was never a part of child branch.

server logs:

backend stdout | at com.appsmith.server.services.ce.NewPageServiceCEImpl.findRootApplicationIdFromNewPage(NewPageServiceCEImpl.java:552)
backend stdout | Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
backend stdout | Error has been observed at the following site(s):
backend stdout | *__checkpoint ⇢ Handler com.appsmith.server.controllers.PageController#getAllPages(String, String, ApplicationMode, String) [DispatcherHandler]
backend stdout | Original Stack Trace:
backend stdout | at com.appsmith.server.services.ce.NewPageServiceCEImpl.findRootApplicationIdFromNewPage(NewPageServiceCEImpl.java:552)
backend stdout | at com.appsmith.server.services.ce.NewPageServiceCEImpl.findApplicationPages(NewPageServiceCEImpl.java:593)
backend stdout | at com.appsmith.server.controllers.ce.PageControllerCE.getAllPages(PageControllerCE.java:169)
backend stdout | at jdk.internal.reflect.GeneratedMethodAccessor550.invoke(Unknown Source)
backend stdout | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
backend stdout | at java.base/java.lang.reflect.Method.invoke(Method.java:566)
backend stdout | at org.springframework.web.reactive.result.method.InvocableHandlerMethod.lambda$invoke$0(InvocableHandlerMethod.java:144)
backend stdout | at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:125)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)
backend stdout | at reactor.core.publisher.MonoZip$ZipCoordinator.signal(MonoZip.java:251)
backend stdout | at reactor.core.publisher.MonoZip$ZipInner.onNext(MonoZip.java:336)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.FluxDefaultIfEmpty$DefaultIfEmptySubscriber.onNext(FluxDefaultIfEmpty.java:101)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)
backend stdout | at reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:249)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398)
backend stdout | at reactor.core.publisher.MonoFlatMap$FlatMapInner.onSubscribe(MonoFlatMap.java:238)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onSubscribe(MDCConfig.java:47)
backend stdout | at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)
backend stdout | at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
backend stdout | at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext(FluxHide.java:137)
backend stdout | at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398)
backend stdout | at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.request(FluxHide.java:152)
backend stdout | at reactor.core.publisher.MonoFlatMap$FlatMapMain.onSubscribe(MonoFlatMap.java:110)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onSubscribe(MDCConfig.java:47)
backend stdout | at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onSubscribe(FluxHide.java:122)
backend stdout | at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)
backend stdout | at reactor.core.publisher.Mono.subscribe(Mono.java:4400)
backend stdout | at reactor.core.publisher.MonoZip.subscribe(MonoZip.java:128)
backend stdout | at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
backend stdout | at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)
backend stdout | at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
backend stdout | at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:240)
backend stdout | at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onComplete(MonoIgnoreThen.java:203)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onComplete(MDCConfig.java:63)
backend stdout | at reactor.core.publisher.MonoFlatMap$FlatMapMain.onComplete(MonoFlatMap.java:181)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onComplete(MDCConfig.java:63)
backend stdout | at reactor.core.publisher.Operators.complete(Operators.java:137)
backend stdout | at reactor.core.publisher.MonoZip.subscribe(MonoZip.java:120)
backend stdout | at reactor.core.publisher.Mono.subscribe(Mono.java:4400)
backend stdout | at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:263)
backend stdout | at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51)
backend stdout | at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)
backend stdout | at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:82)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.innerNext(FluxConcatMap.java:282)
backend stdout | at reactor.core.publisher.FluxConcatMap$ConcatMapInner.onNext(FluxConcatMap.java:863)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:127)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext(FluxHide.java:137)
backend stdout | at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onNext(MDCConfig.java:53)
backend stdout | at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext(FluxHide.java:137)
backend stdout | at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398)
backend stdout | at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.request(FluxHide.java:152)
backend stdout | at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.request(MonoPeekTerminal.java:139)
backend stdout | at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.request(FluxHide.java:152)
backend stdout | at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request(FluxMapFuseable.java:169)
backend stdout | at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2194)
backend stdout | at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2068)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onSubscribe(MDCConfig.java:47)
backend stdout | at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe(FluxMapFuseable.java:96)
backend stdout | at com.appsmith.server.configurations.MDCConfig$MdcContextLifter.onSubscribe(MDCConfig.java:47)

@aparna sorry but the above logs don’t contain the error that we are seeing would it be possible to get the error logs from the backend directory as discussed in the above-mentioned GitHub repo link?

Gentle reminder for the server logs :slightly_smiling_face:

Below shows the error logs from the backend directory :-

backend stdout | com.appsmith.server.exceptions.AppsmithException: Unable to find pageId 624eba9faa83c335d88152b8, ap-fix-new-entry
backend stdout | at com.appsmith.server.services.ce.NewPageServiceCEImpl.findRootApplicationIdFromNewPage(NewPageServiceCEImpl.java:552)
backend stdout | Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
backend stdout | Error has been observed at the following site(s):

@aparna can you please check if you can find the error received on Appsmith UI from the logs: Unable to find a plugin. Please reach out to Appsmith customer support to resolve this. The error you shared is different which talks about a page not found with {pageId}.

You can follow the steps to reproduce the issue:

  1. Start logging from the Appsmith container using docker logs -f appsmith. This basically gets the logs from the container in real-time
  2. Try to create another branch from the application where we are seeing this issue
  3. Once you see the error in the Appsmith UI, check the logs

Below the error logs when create a new branch from appsmith application

backend stdout | [2022-12-29 09:37:16,299] mailto:useremail=ginjo.johny@netspective.org, sessionId=08ff6156-6921-4f35-b1a8-3a0636b5c8ce, thread=nioEventLoopGroup-3-16, requestId=1cbd5558-4f47-48fa-90d4-b596d22e29d8 -
backend stdout | com.appsmith.server.exceptions.AppsmithException: Unable to find the plugin. Please reach out to Appsmith customer support to resolve this.
backend stdout | at com.appsmith.server.solutions.ce.ImportExportApplicationServiceCEImplV2.lambda$importApplicationInWorkspace$71(ImportExportApplicationServiceCEImplV2.java:1176)
backend stdout | Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
backend stdout | Error has been observed at the following site(s):
backend stdout | *__checkpoint ⇢ Handler com.appsmith.server.controllers.GitController#createBranch(String, String, GitBranchDTO) [DispatcherHandler]
backend stdout | Original Stack Trace:
backend stdout | at com.appsmith.server.solutions.ce.ImportExportApplicationServiceCEImplV2.lambda$importApplicationInWorkspace$71(ImportExportApplicationServiceCEImplV2.java:1176)
backend stdout | at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onError(FluxOnErrorResume.java:94)

The errors in console are attached below:-

@aparna can you please schedule a call as per your availability to debug this issue?