Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research the update path for remote desktop base image version of Ubuntu #1784

Closed
vexingly opened this issue Jul 19, 2023 · 8 comments · Fixed by StatCan/aaw-kubeflow-containers#498
Assignees

Comments

@vexingly
Copy link

vexingly commented Jul 19, 2023

The remote desktop container image https://github.com/StatCan/aaw-kubeflow-containers/blob/master/docker-bits/0_Rocker.Dockerfile is using Ubuntu 20.04 while the other container images have been updated to 22.04.

Let's upgrade the remote desktop base image to be consistent and prevent incompatibilities!

https://hub.docker.com/r/rocker/geospatial
https://github.com/rocker-org/rocker-versioned2

To be considered:

rocker/geospatial:ubuntugis (rocker/geospatial:X.Y.Z-ubuntugis) and rocker/geospatial:dev-osgeo are special images that differ slightly from the regular rocker/geospatial.

ubuntugis is built on packages installed from [the ubuntugis-unstable PPA](https://launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable).
dev-osgeo is built on the latest release of [PROJ](https://proj.org/), [GDAL](https://gdal.org/), and [GEOS](https://libgeos.org/).
@vexingly vexingly added kind/bug Something isn't working triage/support labels Jul 19, 2023
@vexingly
Copy link
Author

See StatCan/aaw-kubeflow-containers#423 (comment) for info on last upgrade issues.

@bryanpaget bryanpaget assigned bryanpaget and unassigned bryanpaget Jul 26, 2023
@chuckbelisle chuckbelisle changed the title Update remote desktop base image version of Ubuntu Research the update path for remote desktop base image version of Ubuntu Jul 26, 2023
@bryanpaget
Copy link
Contributor

bryanpaget commented Jul 26, 2023

With respect to our options:

  • ubuntugis is built on packages installed from the ubuntugis-unstable PPA.
    • I'm going to say pass on this one since according to the description on launchpad: "Unstable releases of Ubuntu GIS packages. These releases are more bleeding edge and while generally they should work well, they dont receive the same amount of quality assurance as our stable releases do."
  • dev-osgeo is built on the latest release of PROJ, GDAL, and GEOS.
    • I'll try this version since it has the latest version of the aforementioned packages which our users may appreciate.

@vexingly unless you object, I'll proceed with updating to rocker/geospatial:dev-osgeo
DIGEST:sha256:17a7181bdfa3cdb291340d4f47469715e5e2c30ba31f35419e8b0676cacd72cd.

@bryanpaget
Copy link
Contributor

bryanpaget commented Jul 26, 2023

Errors I noticed during the upgrade

dpkg: dependency problems prevent configuration of pspp:
 pspp depends on libgdk-pixbuf2.0-0 (>= 2.22.0); however:
  Package libgdk-pixbuf2.0-0 is not installed.
 pspp depends on libgsl23 (>= 2.5); however:
  Package libgsl23 is not installed.

dpkg: error processing package pspp (--install):
 dependency problems - leaving unconfigured
  • "rm: cannot remove '/usr/share/applications/exo-mail-reader.desktop': No such file or directory"
  • "Package 'light-locker' is not installed, so not removed"
  • "cp: cannot stat '/usr/lib/websockify/rebind.cpython-38-x86_64-linux-gnu.so': No such file or directory"

@bryanpaget
Copy link
Contributor

When running the docker image locally in the VM I get the following errors:

  • cp: cannot stat '/opt/install/desktop-files/.config/xfce4/xfce4-panel.xml': No such file or directory
  • xauth: file /home/jovyan/.Xauthority does not exist
  • _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

@bryanpaget
Copy link
Contributor

bryanpaget commented Jul 28, 2023

Future Work

  • Anaconda is on Python 3.8 but the OS is on Python 3.10. We might want to upgrade Anaconda.

@bryanpaget
Copy link
Contributor

bryanpaget commented Jul 28, 2023

Testing and Resolving Issues

  • The error above about light-locker not being installed was false. I had to remove light-locker and xfce4-screensaver to prevent screen locking.
  • PSPP from the Ubuntu repository seems to work (I can launch it).
    • French UI is displayed in French session.
    • Update Dockerfile and remove special PSPP install script.
  • As a replacement for zlibc, I've installed zlib1g and zlib1g-dev.
  • I've replaced gvfs-bin with gvfs.
  • I updated RStudio Desktop from 1.3.1093 to 2023.06.1-524.
  • I removed the line to remove /usr/share/applications/exo-mail-reader.desktop since this .desktop file is no longer included in Ubuntu 22.04.
  • "xauth: file /home/jovyan/.Xauthority does not exist" (it does actually)
  • I was concerned about compatibility between ml-metadata and Python 3.10 but I was able to install and import the module on my VM which uses Python 3.10.
  • NoVNC works fine, the websockify work-around listed above is no longer necessary.

Unresolved

  • "cp: cannot stat '/opt/install/desktop-files/.config/xfce4/xfce4-panel.xml': No such file or directory"
  • "_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created."

@bryanpaget
Copy link
Contributor

I tested PSPP in a French session.

Image

@bryanpaget
Copy link
Contributor

bryanpaget commented Aug 9, 2023

Due to scope-creep this ticket is being broken into two parts. One part for the base image upgrade and another ticket to fix the way we install Anaconda so we can have up to date, consistent Anaconda across images.

New Tickets:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants