Bug #22389
closedSingle-host single-hostname installation fails: Rails API server cannot start; /etc/arvados/config.yml "permission denied
Description
Steps to reproduce:
Follow the recipes for installing Arvados in virtual machine:
1 Create base image: https://docs.google.com/document/d/1Groandn4iLw-2f6PGNlmQhdp5sO3K0LICnUw3RhMzEw/edit?usp=sharing
2 Install Arvados in guest (up to this step) https://docs.google.com/document/d/1w6DQqR3D65DcTCpMX51RrDvz547bYImCrPoY8A71-bE/edit?tab=t.0#bookmark=id.m117nxmcbdvw
The installation will fail; the Rails API server will fail to start.
Inside the guest, following /var/log/nginx/error.log
, we can see errors like those seen in the attached files (the referenced Passenger HTML error report file is also attached)
Notably there is a line about
App 26718 output: open /etc/arvados/config.yml: permission denied
which I think explains the subsequent failure to get database password (which is in the config file).
It's unclear to me what is being denied exactly, and how this could happen. After the installation, the config file has owner root:www-data and permissions 620; the directory /etc/arvados
has the right permissions too (owner root:www-data, permission 750).
I also tried setting permission to everyone-readable on the config file and everyone-searchable on the /etc/arvados
directory, but this did not resolve the problem.
Files