Red Hat Bugzilla – Bug 1260063
After updating mock from 1.2.10 to 1.2.12 build fails with permission error
Last modified: 2015-09-04 07:07:17 EDT
After updating mock to 1.2.12 due to:
I can not build packages:
Start: cleaning yum metadata
Finish: cleaning yum metadata
ERROR: Exception(/var/lib/mock/conversis-7-x86_64/result/conversis-nagios-plugins-0.14-1.el7.src.rpm) Config(conversis-7-x86_64) 0 minutes 0 seconds
INFO: Results and/or logs in: /var/lib/mock/conversis-7-x86_64/result
ERROR: [Errno 1] Operation not permitted: '/var/lib/mock/conversis-7-x86_64/root/dev/pts/ptmx'
ERROR: The most common cause for this error is trying to run /usr/sbin/mock as an unprivileged user.
ERROR: Check your path to make sure that /usr/bin/ is listed before /usr/sbin, or manually run /usr/bin/mock to see if that fixes this problem.
The user I'm building with is member of the mock group and I'm explicitly invoking mock as /usr/bin/mock.
*** This bug has been marked as a duplicate of bug 1239013 ***