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

Can't create the passenger src directory #109

Open
johrstrom opened this issue Jun 4, 2021 · 3 comments
Open

Can't create the passenger src directory #109

johrstrom opened this issue Jun 4, 2021 · 3 comments

Comments

@johrstrom
Copy link
Collaborator

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 #63 (comment)

@johrstrom
Copy link
Collaborator Author

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...

- include: passenger.yml
become: false

@Juanjdurillo
Copy link

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)

@johrstrom
Copy link
Collaborator Author

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.

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