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

Java plugin fails to initialize (permission denied, mkdir '/home/theia')

XMLWordPrintable

    • False
    • False
    • Hide
      = Fixes for Java plug-ins

      All Java plug-ins (Java11, Java8, and Java) initialize as expected.
      Show
      = Fixes for Java plug-ins All Java plug-ins (Java11, Java8, and Java) initialize as expected.

      I'm using CRW 2.9 nightly (operator-metadata-container-2.9.-12).
      Installation is using default checluster CR with this exception (to work around CRW-1792):

      spec:
        server:
          customCheProperties:
            CHE_WORKSPACE_DEVFILE_DEFAULT__EDITOR: eclipse/che-theia/latest
      

      Runnig (I suppose) any java-based devfile from default stacks (I tried Java EAP and Java Vert.x ones), the Java language server fails to activate with this error (from java ls container):

      Activating extension 'Language Support for Java(TM) by Red Hat' failed: Error: EACCES: permission denied, mkdir '/home/theia/'
          at Object.mkdirSync (fs.js:921:3)
          at /tmp/vscode-unpacked/redhat.java8.latest.elurpgyaol.java-0.63.0-2222.vsix/extension/dist/extension.js:7:4751
          at Array.reduce (<anonymous>)
          at d (/tmp/vscode-unpacked/redhat.java8.latest.elurpgyaol.java-0.63.0-2222.vsix/extension/dist/extension.js:7:4692)
          at Object.u.getStream (/tmp/vscode-unpacked/redhat.java8.latest.elurpgyaol.java-0.63.0-2222.vsix/extension/dist/extension.js:7:3714)
          at new _ (/tmp/vscode-unpacked/redhat.java8.latest.elurpgyaol.java-0.63.0-2222.vsix/extension/dist/extension.js:1:706238)
          at Object.t.initializeLogFile (/tmp/vscode-unpacked/redhat.java8.latest.elurpgyaol.java-0.63.0-2222.vsix/extension/dist/extension.js:1:175966)
          at t.activate (/tmp/vscode-unpacked/redhat.java8.latest.elurpgyaol.java-0.63.0-2222.vsix/extension/dist/extension.js:1:150619)
          at PluginManagerExtImpl.<anonymous> (/remote-endpoint/node_modules/@theia/plugin-ext/lib/plugin/plugin-manager.js:552:87)
          at step (/remote-endpoint/node_modules/@theia/plugin-ext/lib/plugin/plugin-manager.js:48:23) {
        errno: -13,
        syscall: 'mkdir',
        code: 'EACCES',
        path: '/home/theia/'
      }
      

      And in UI:

              vsvydenk Valerii Svydenko
              rhopp@redhat.com Radim Hopp
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: