Project

General

Profile

Actions

Bug #404

closed

Piboxwww log can't be written to

Added by Hammel over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
-
Target version:
Start date:
05 Dec 2014
Due date:
% Done:

100%

Estimated time:
Severity:
03 - Medium

Description

The monkey log is /var/log/monkey.log. However, this file doesn't exist and /var/log is only accessible by root. When monkey tries to create the file it fails.

To fix this the init script needs to create an empty log and change its owner to nobody.nobody, which is the user being used to run monkey.

Actions #1

Updated by Hammel over 9 years ago

  • Subject changed from Monkey log can't be written to to Piboxwww log can't be written to
  • Status changed from New to In Progress
  • % Done changed from 0 to 20

The package installation actually has to be updated because the log in question is from the web application, not from monkey itself. So the postinst script has to be updated to create the log file and change its ownership and permissions.

Actions #2

Updated by Hammel over 9 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 20 to 100

Updated, tested and pushed upstream.

Closing issue.

Actions #3

Updated by Hammel over 9 years ago

  • Project changed from monkey to piboxwww
Actions #4

Updated by Hammel over 9 years ago

  • Status changed from Closed to In Progress
  • % Done changed from 100 to 50

Reopening this bug. Turns out that a reboot wipes the log file because /var/log/ is mapped to a tmpfs.

So an init script has to be run to create the log file at boot time. That means adding an init script to piboxwww, which is the simplest solution, although current startup times are so bad I'd rather have it done some other way.

For now, just add a startup script that creates the log file for use by piboxwww.

Actions #5

Updated by Hammel over 9 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

Added init script to recreate a log file on every reboot. Tested on target, committed and pushed.

Closing issue.

Actions

Also available in: Atom PDF