Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-4599

Sometimes devfile is not resolved when creating a workspace from a factory URL

XMLWordPrintable

    • False
    • None
    • False

      Description of problem:

      Sometimes Devfile is not resolved when creating a workspace from a factory URL

      Prerequisites (if any, like setup, operators/versions):

      DevSpaces 3.7 / Eclipse Che next version

      Steps to Reproduce

      1. Deploy DS/Eclipse Che
      2. Create OAuth config for gitlab.com
      3. Create a private repository in GitLab server and add a non-default Devfile (like my-defile.yaml)
      4. Try to create a workspace from the factory url like this:
      https://<CHE_HOST>/#<GITLAB_PROJECT_URL>?devfilePath=my-devfile.yaml

      To reproduce issue again:
      1. Delete a workspace
      2. Log out
      3. Delete a user rnamespace

      Actual results:

      Devfile not found, workspace is started

      Expected results:

      Devfile found, workspace is started

      Reproducibility (Always/Intermittent/Only Once):

      Intermittent

      Additional info (Such as Logs, Screenshots, etc):

      401 Unauthorized on dashboard:

      SCM Authentication required on server side:

      2023-07-14 14:51:18,380[nio-8080-exec-6]  [DEBUG] [.e.c.a.f.s.u.URLFactoryBuilder 132]  - Unexpected devfile exception: kube:admin is not authorized in gitlab OAuth provider.
      java.lang.reflect.InvocationTargetException: null
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.everrest.core.impl.method.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:174)
      	at org.everrest.core.impl.method.DefaultMethodInvoker.invokeMethod(DefaultMethodInvoker.java:61)
      	at org.everrest.core.impl.RequestDispatcher.doInvokeResource(RequestDispatcher.java:329)
      	at org.everrest.core.impl.RequestDispatcher.invokeSubResourceMethod(RequestDispatcher.java:319)
      	at org.everrest.core.impl.RequestDispatcher.dispatch(RequestDispatcher.java:257)
      	at org.everrest.core.impl.RequestDispatcher.dispatch(RequestDispatcher.java:131)
      	at org.everrest.core.impl.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:61)
      	at org.everrest.core.impl.EverrestProcessor.process(EverrestProcessor.java:130)
      	at org.everrest.core.servlet.EverrestServlet.service(EverrestServlet.java:62)
      	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:631)
      	at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)
      	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)
      	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)
      	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:89)
      	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
      	at org.eclipse.che.core.metrics.ApiResponseMetricFilter.doFilter(ApiResponseMetricFilter.java:46)
      	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
      	at org.eclipse.che.multiuser.api.authentication.commons.filter.MultiUserEnvironmentInitializationFilter.doFilter(MultiUserEnvironmentInitializationFilter.java:161)
      	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
      	at org.eclipse.che.commons.logback.filter.RequestIdLoggerFilter.doFilter(RequestIdLoggerFilter.java:50)
      	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
      	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)
      	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:166)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
      	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:738)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:676)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
      	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:400)
      	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
      	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:894)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
      	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
      	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
      	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: org.eclipse.che.api.core.UnauthorizedException: SCM Authentication required
      	at org.eclipse.che.api.factory.server.ApiExceptionMapper.getApiException(ApiExceptionMapper.java:69)
      	at org.eclipse.che.api.factory.server.ApiExceptionMapper.toApiException(ApiExceptionMapper.java:53)
      	at org.eclipse.che.api.factory.server.urlfactory.URLFactoryBuilder.createFactoryFromDevfile(URLFactoryBuilder.java:133)
      	at org.eclipse.che.api.factory.server.gitlab.GitlabFactoryParametersResolver.createFactory(GitlabFactoryParametersResolver.java:89)
      	at org.eclipse.che.api.factory.server.FactoryService.resolveFactory(FactoryService.java:111)
      	... 47 common frames omitted
      

       

       *

        1. dashboard.png
          165 kB
          Anatolii Bazko
        2. Screenshot from 2023-07-28 10-26-24.png
          206 kB
          Anatolii Bazko

              okurinny Oleksii Kurinnyi
              abazko Anatolii Bazko
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: