Project

General

Profile

Actions

Bug #22389

closed

Single-host single-hostname installation fails: Rails API server cannot start; /etc/arvados/config.yml "permission denied

Added by Zoë Ma 11 days ago. Updated 8 days ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Deployment
Target version:
Story points:
-

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

passenger-error-pVsjPr.html (403 KB) passenger-error-pVsjPr.html Phusion Passenger error report file in HTML Zoë Ma, 12/10/2024 10:23 PM
error.log (2.91 KB) error.log /var/log/nginx/error.log excerpt Zoë Ma, 12/10/2024 10:31 PM

Subtasks 2 (0 open2 closed)

Task #22392: Review arvados branch 22349-passenger-6-0-23ResolvedBrett Smith12/12/2024Actions
Task #22393: Review arvados-formula branch 22349-arvados-railsapi-serviceResolvedBrett Smith12/13/2024Actions

Related issues 1 (0 open1 closed)

Related to Arvados - Bug #22349: RHEL8 Appstream Ruby not useable on 3.0ResolvedActions
Actions

Also available in: Atom PDF