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

Workspace may become unsuable when generating new devel images #43

Closed
planthaber opened this issue Feb 1, 2022 · 2 comments
Closed

Comments

@planthaber
Copy link
Member

planthaber commented Feb 1, 2022

Due to the username change in #35 existing devel workspaces, that are saving paths to the home directory become invalid because the new user "dockeruser" also has a new home dir (having the same uid).

This could be solved setting up the workspace from scratch or with a workaround by adding a symlink as in the previous releases:

RUN ln -s /home/dockeruser/ /home/devel
RUN chown dockeruser:dockeruser-group /home/devel

When using the workaround it could be part of the base images of individual devel images.

I'd put it into the devel image Dockerfile so every user can do it on its own, if nessecary.
Perhaps we could put it into the 02_devel_image/Dockerfile template and comment it so it is not executed by default).

@0Nel
Copy link
Collaborator

0Nel commented Feb 1, 2022

Good catch! We should consider a troubleshooting or how to upgrade section somewhere in the docs to document workarounds like this. I think workarounds and fixes that need to be done manually by project maintainers need to be explained. Otherwise people might get afraid of upgrading from upstream, especially if it contains major release updates.

@planthaber
Copy link
Member Author

Looks like to repair the workspace, you have to call:

  • rm /opt/workspace/autoproj/overrides.d/100_dist_override-ubuntu-20.04-overrides.yml
  • ruby autoproj_bootstrap (if it fails, try again)

@planthaber planthaber pinned this issue Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants