Opened 13 months ago
Closed 13 months ago
#1483 closed defect (fixed)
possible permissions issue when installing the plugins pbi
| Reported by: | borisattva | Owned by: | william |
|---|---|---|---|
| Priority: | major | Milestone: | 8.2.0-RELEASE |
| Component: | Backend | Version: | 8.2.0-BETA3 |
| Keywords: | Cc: | michael@… |
Description
FreeNAS-8.2.0-BETA3-x64 (r11188)
attempting to install plugins_jail-8.2-x64.pbi
followed the http://doc.freenas.org/index.php/Plugins guide to set up plugins jail. at the last step to enable the service, experience deviates with the switch remaining disabled and a brief error message comes up stating "service could not be started"
var/log/messages produced:
"freenas freenas[2038]: [MiddlewareError?: The command /usr/local/
sbin/pbi_add -e -f -o /mnt/caviar/jail --no-checksig /var/tmp/firmware/pbifile.
pbi failed: "rm: /mnt/caviar/jail/plugins_jail-amd64/lib/libthr.so.3: Operation
not permitted rm: /mnt/caviar/jail/plugins_jail-amd64/lib/libc.so.7: Operation n
ot permitted rm: /mnt/caviar/jail/plugins_jail-amd64/lib/libcrypt.so.5: Operatio
n not permitted rm: /mnt/caviar/jail/plugins_jail-amd64/lib: Directory not empty
rm: /mnt/caviar/jail/plugins_jail-amd64/bin/rcp: Operation not permitted rm: /m
nt/caviar/jail/plugins_jail-amd64/bin: Directory not empty rm: /mnt/caviar/jail/
plugins_jail-amd64/usr/bin/ypchfn: Operation not permitted rm: /mnt/caviar/jail/
plugins_jail-amd64/usr/bin/ypchpass: Operation not permitted rm: /mnt/caviar/jai
l/plugins_jail-amd64/usr/bin/ypchsh: Operation not permitted rm: /mnt/caviar/jai
l/plugins_jail-amd64/usr/bin/opiepasswd: Operation not permitted rm: /mnt/caviar
/jail/plugins_jail-amd64/usr/bin/crontab: Operation not permitted rm
Apr 22 20:26:58 freenas kernel: rmitted rm"
Change History (5)
comment:1 Changed 13 months ago by william
- Owner set to william
- Status changed from new to accepted
comment:2 Changed 13 months ago by borisattva
- Version changed from 8.2.0-BETA2 to 8.0.2-BETA3
No. if you got that impression from the Forum, then its what another person reports experiencing. In my case this is a clean FreeNAS-8.2.0-BETA3-x64 installation.
Please note: When i opened this bug, there was no option to select 8.2.0-BETA3.
There is however, 8.0.2-BETA3 as an option (2 and 0 reversed). If that was intended to be the 8.2.0 please feel free to update/correct the Version name and this bug attributes.
comment:3 Changed 13 months ago by william
- Resolution set to fixed
- Status changed from accepted to closed
Should be fixed in r11263.
If you're looking for a workaround, use:
# /usr/bin/find /mnt/caviar/jail/plugins_jail-amd64|/usr/bin/xargs /bin/chflags noschg
comment:4 Changed 13 months ago by steelwolf
- Cc michael@… added
- Resolution fixed deleted
- Status changed from closed to reopened
I've run the above workaround query (correctly substituting my own volume name) several times and am continuing to get similar errors to those described above - a slew of "Operation not permitted" issues occurring during the jail installation (see: http://o7.no/IjFtjy). I'm using r11188 just as the OP is.
I've manually set chmod 777 recursively on the jail dataset as well as manually removing any schg flags.
Additionally, the message at the top says "PBI successfully installed" when this operation completes which is not the case.
comment:5 Changed 13 months ago by william
- Resolution set to fixed
- Status changed from reopened to closed
Sorry, I'm not really interested whether the workaround works or not, what matters to me it has been fixed in a later version that you're not using... try removeing the jail dataset and recreating.

Just to make sure, you had BETA2 installed previously and tried to install the Plugins again without properly deleting it, right?