Cannot make directory '/var/run/screen': Permission denied
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
screen (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland | ||
Lucid |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
Binary package hint: screen
On a freshly booted server install:
$ screen -ls
Cannot make directory '/var/run/screen': Permission denied
This can be fixed with:
$ sudo /etc/init.
I believe this is because
/etc/rcS.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: screen 4.0.3-14ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-21-server x86_64
Architecture: amd64
Date: Mon May 3 16:45:10 2010
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: screen
============
IMPACT: Sometimes 'screen' is not able to start after a reboot due to a race condition between the mounted-varrun upstart job and the screen init script.
HOW ADDRESSED: This bug is addressed by porting the simple /etc/init.d/screen init script to an upstart job that depends on the mounted-varrun job having run.
HOW TO REPRODUCE: This bug is a race condition, and is difficult to reproduce. I hit it most often on a really fast system -- ie, it's hard for me to reproduce the issue in a virtual machine. To reproduce, reboot until you try to run 'screen' just after boot, and you get the error saying:
Cannot make directory '/var/run/screen': Permission denied
REGRESSION POTENTIAL: Relatively low, if a veteran upstart job reviewer (hrrrm, Scott/Steve) reviews the proposed upstart job against the original init script and confirms it's identical functionality.
============
Changed in screen (Ubuntu): | |
status: | Triaged → In Progress |
summary: |
- Cannot make directory '/var/run/screen': Permission denied + Cannot make directory '/var/run/screen': Permission denied (convert init + to upstart) |
description: | updated |
Changed in screen (Ubuntu Lucid): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done removed: verification-needed |
I'll convert this to an upstart script for Maverick.
We'll need some other SRU-able fix, though, for Lucid.