Uploaded image for project: 'Apache DataLab (Retired)'
  1. Apache DataLab (Retired)
  2. DATALAB-2610

[GCP] Zeppelin/Rstudio/TensorFlow/Jupyter creation fails on command update-alternatives --query java | grep -o '/.*/java-8.*/jre'

ResolvedReopenedClosedVerifiedBlockedon hold
    XMLWordPrintableJSON

Details

    Description

      1. Preconditions:
      2. Project is created on GCP

      Steps to reproduce:

      1. Create Zeppelin/Rstudio/TensorFlow/Jupyter

      Actual result:

      1. Instance creation fails

       

      update-alternatives --query java | grep -o --color=never '/.*/java-8.*/jre'
      --- Logging error ---
      Traceback (most recent call last):
        File "/usr/lib/python3.8/datalab/fab.py", line 1020, in configure_jupyter
          java_home = conn.run("update-alternatives --query java | grep -o --color=never \'/.*/java-8.*/jre\'").stdout.splitlines()[0]
        File "<decorator-gen-3>", line 2, in run
        File "/usr/local/lib/python3.8/dist-packages/fabric/connection.py", line 30, in opens
          return method(self, *args, **kwargs)
        File "/usr/local/lib/python3.8/dist-packages/fabric/connection.py", line 723, in run
          return self._run(self._remote_runner(), command, **kwargs)
        File "/usr/local/lib/python3.8/dist-packages/invoke/context.py", line 102, in _run
          return runner.run(command, **kwargs)
        File "/usr/local/lib/python3.8/dist-packages/invoke/runners.py", line 380, in run
          return self._run_body(command, **kwargs)
        File "/usr/local/lib/python3.8/dist-packages/invoke/runners.py", line 442, in _run_body
          return self.make_promise() if self._asynchronous else self._finish()
        File "/usr/local/lib/python3.8/dist-packages/invoke/runners.py", line 509, in _finish
          raise UnexpectedExit(result)
      invoke.exceptions.UnexpectedExit: Encountered a bad command exit code! 

       

      Expected result:

      1. Instance creation is successful

       

      Attachments

        Activity

          People

            mhladun Marian Hladun
            vvitanska Vira Vitanska
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: