Open johrstrom opened 3 years ago
Looks like we become: true
all of the place in tasks/passenger.yml
except in this one spot.
What's more we specifically say not to when calling these tasks... https://github.com/OSC/ood-ansible/blob/b6d99d6358e95db7942a032d15c01b7c41036a86/tasks/deps.yml#L75-L76
Well, the obvious change become: yes
solves the issue, but I am not sure whether this must be done as non-root user. By doing this, the playbook runs fine. However, I have the problem that navigating to the portal does not shows the portal but simply apache listing the directories ... (I guess this is probably for another issue)
Well I was trying to control finely control what ran as root and what didn't. Some dependencies need apt installed, then when built moved to the /opt directory. But clearly there's some issue here in creating these /tmp directories.
I've created #112 for the newer issue. Let me know in that ticket what OS version you're running, if you got an ood-portal.conf in /etc/apache2/enabled.conf and any logs that may be relevant.
Not sure if related, but also on a new Ubuntu Focal and 'install_from_src: true' I got:
TASK [osc.open_ondemand : init the passenger src directory] ** fatal: [x]: FAILED! => {"changed": false, "msg": "There was an issue creating /tmp/ood-build/passenger-src as requested: [Errno 13] Permission denied: b'/tmp/ood-build/passenger-src'", "path": "/tmp/ood-build/passenger-src"}
Originally posted by @Juanjdurillo in https://github.com/OSC/ood-ansible/issues/63#issuecomment-851381051