Details
-
Type:
Task
-
Status: Done
-
Priority:
Low
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.7.0
-
Labels:
-
Story Points:2
-
Backlog:yes
Description
This is what you get if you run mender as a non-root user which does not have permission to access disk (U-boot env and rootfs)
pi@raspberrypi$ mender -rootfs http://192.168.1.199:9000/raspberrypi3-stretch-v1.0.1.mender INFO[0000] Performing remote update from: [http://192.168.1.199:9000/raspberrypi3-stretch-v1.0.1.mender]. module=rootfs Installing update from the artifact of size 1773954560 ERRO[0000] exit status 1 module=partitions ERRO[0000] update image installation failed: No match between boot and root partitions. module=installer ERRO[0000] Installation failed: installer: failed to read and install update: update: can not install update: &{rootfs.ext4 420 1000 1000 49 59308800 2018-07-24 21:04:50 +0000 UTC 48 mirzak mirzak 0 0 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC map[]}: update: can not install: No match between boot and root partitions. module=rootfs ERRO[0000] installer: failed to read and install update: update: can not install update: &{rootfs.ext4 420 1000 1000 4959308800 2018-07-24 2 1:04:50 +0000 UTC 48 mirzak mirzak 0 0 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC map[]}: update: can not install: No matc h between boot and root partitions. module=main
Above can be confused with "fw_printenv/fw_setenv" issues which print the same error.
This was observed on Raspbian where the default user is "pi", but will probably be common mistake when running other Debian like distributions where you typically have a non-root user as default.
Acceptance criteria:
- Detect "permission denied" and report an descriptive error message