nginx fails on tmpfs

Bug #1759023 reported by Jacob
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nginx
Invalid
Undecided
Unassigned

Bug Description

### Behavior

~# systemctl start nginx
Job for nginx.service failed because the control process exited with error code.

~# systemctl status nginx
Mar 26 21:47:53 hostname nginx[6285]: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or direc
Mar 26 21:47:53 hostname nginx[6285]: 2018/03/26 21:47:53 [emerg] 6285#6285: open() "/var/log/nginx/access.log" failed (2: No such file or directory)

### Resolution

~# mkdir -pv /var/log/nginx/
~# touch /var/log/nginx/access.log
~# touch /var/log/nginx/error.log

### Expected Behavior

Automatically do that.

### Setup

~# cat /etc/fstab
tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=100m 0 0
[...]

nginx version 1.10.3-1+deb9u1 (the current in Raspbian 9.4)

Jacob (jacob11)
description: updated
Revision history for this message
Thomas Ward (teward) wrote :

Raspbian is not supported by this NGINX distribution group/project on Launchpad.

We do not provide the Raspbian packages. The Raspbian packages are built and based off of Debian directly.

Changed in nginx:
status: New → Won't Fix
status: Won't Fix → Invalid
Revision history for this message
Jacob (jacob11) wrote :

But if the Raspbian-repo-maintainers just compiled it for the RPi, it is a general problem.

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.