OpenSourceBrain / OSBv2

An updated version of the Open Source Brain platform
https://www.v2.opensourcebrain.org/
Other
12 stars 6 forks source link

Workspace files have wrong user/group permissions on v2dev #921

Closed pgleeson closed 2 months ago

pgleeson commented 8 months ago

Mounted as root/root, not joyvan/users, so no write access:

Screenshot 2024-03-20 at 14 53 08
filippomc commented 8 months ago

The github copy workflow is failing but no error message. Here the logs:

W
Download path is /project_download/2014816/main
GitHub copy  to /project_download/2014816/main
total 8
drwxr-xr-x    2 root     root          4096 Mar 26 09:19 .
drwxr-xr-x    3 root     root          4096 Mar 26 09:19 ..
Git: fix permissions
Git: cloning new repository branch: main
Cloning into '/project_download/2014816/main'...
Git: setting user/email to OSBv2 for new repo
Git: checking out everything
Your branch is up to date with 'origin/main'.
Git: checking out new branch and committing
Switched to a new branch '20240326091912-osbv2'
On branch 20240326091912-osbv2
nothing to commit, working tree clean

This log line is not shown -- https://github.com/OpenSourceBrain/OSBv2/blob/9bb1f51e838a79af71f06d1ddab5d6e47694af4b/applications/workspaces/tasks/github-copy/run.sh#L51

filippomc commented 8 months ago

Fixed: the issue was related to git commit returning 0 code and then exiting with nothing to commit

pgleeson commented 2 months ago

Fixed