Bug 1045006 - schroot fails to lock session file
Summary: schroot fails to lock session file
Alias: None
Product: Fedora
Classification: Fedora
Component: schroot
Version: 20
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Zach Carter
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2013-12-19 12:43 UTC by Andris Pavenis
Modified: 2015-01-12 12:01 UTC (History)
3 users (show)

Fixed In Version: schroot-1.6.5-4.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1295323 (view as bug list)
Last Closed: 2013-12-31 02:02:32 UTC
Type: Bug

Attachments (Terms of Use)

Description Andris Pavenis 2013-12-19 12:43:51 UTC
Description of problem:

schroot fails to open session with an error message like:

[andris@ap doc]$ schroot -pc c32
E: centos-i386-0721e417-a54a-452a-bf95-5b20140efcb6: Failed to lock chroot: /var/lib/schroot/session/centos-i386-0721e417-a54a-452a-bf95-5b20140efcb6: Failed to write session file: Permission denied

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. try to use schroot

Actual results:

I'm getting an error message as mentioned above

Expected results:

normal operation (worked before upgrade to Fedora 20)

Additional info:

Tested on 2 Fedora 20 systems
Problem can be workarounded by makeing /usr/bin/schroot suid root
(perhaps group rights would be preferable, but that should be fixed in the

[andris@ap doc]$ ls -l /var/lib/schroot
total 8
drwxr-xr-x. 2 root root 4096 Dec 19 14:40 mount
drwxr-xr-x. 2 root root 4096 Dec 19 14:40 session

Comment 1 Zach Carter 2013-12-19 16:06:26 UTC
Reproduced it.   I'll get a fix out soon.

Comment 2 Fedora Update System 2013-12-19 17:26:53 UTC
schroot-1.6.5-4.fc20 has been submitted as an update for Fedora 20.

Comment 3 Andris Pavenis 2013-12-19 19:19:45 UTC
Updated package works nicely. Thanks

Comment 4 Fedora Update System 2013-12-21 02:10:16 UTC
Package schroot-1.6.5-4.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing schroot-1.6.5-4.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-12-31 02:02:32 UTC
schroot-1.6.5-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 André 2015-01-12 12:01:53 UTC
This issue still persists in Fedora 21 schroot-1.6.5-6.fc21 version.

Note You need to log in before you can comment on or make changes to this bug.