MaaS http config generates warnings about missing /home/maas

Bug #1070413 reported by John A Meinel
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

When running in Daemon mode, Apache defaults to running the wsgi daemon in the home directory of the user it is running them as.
By default we do not create /home/maas (because we explicitly refuse a login shell, we don't need a home dir).

http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess

The error log contains messages like:
[Tue Oct 23 13:14:23 2012] [alert] (2)No such file or directory: mod_wsgi (pid=4393): Unable to change working directory to '/home/maas'

The simple fix is to update maas-httpd.conf to have:
WSGIDaemonProcess maas user=maas group=maas processes=2 threads=1 display-name=%{GROUP} home=/

Which will always work since you have a '/' for Apache to chdir to.

This doesn't seem to prevent the service from running, it just generates noise in the /var/log/apache2/error.log

Tags: landscape
no longer affects: maas
Robie Basak (racb)
Changed in maas (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
tags: added: landscape
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.