[Enter feedback here]
Moby Engine install fails on Raspberry Pi 3B with the command mentioned in the article.
pi@raspberrypi:~ $ sudo apt-get install moby-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
containerd.io
Use 'sudo apt autoremove' to remove it.
Suggested packages:
cgroupfs-mount | cgroup-lite
The following NEW packages will be installed:
moby-engine
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/33.0 MB of archives.
After this operation, 141 MB of additional disk space will be used.
(Reading database ... 98373 files and directories currently installed.)
Preparing to unpack .../moby-engine_3.0.13+azure-0_armhf.deb ...
Unpacking moby-engine (3.0.13+azure-0) ...
dpkg: error processing archive /var/cache/apt/archives/moby-engine_3.0.13+azure-0_armhf.deb (--unpack):
trying to overwrite '/usr/bin/containerd', which is also in package containerd.io 1.2.13-2
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/moby-engine_3.0.13+azure-0_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Raspberry Pi OS (32 bit) with Raspberry Pi Desktop released on 2020-05-27
Debian version says 10.4
@sukesh-ak Thanks for the Info!
Have you referred to the section on Verify your Linux kernel for Moby compatibility ? to troubleshoot the issue.
This is the output from that set of commands, which doesn't help.
Also fails with the options mentioned in the error fails.
pi@raspberrypi:~ $ curl -sSL https://raw.githubusercontent.com/moby/moby/master/contrib/check-config.sh -o check-config.sh
pi@raspberrypi:~ $ chmod +x check-config.sh
pi@raspberrypi:~ $ ./check-config.sh
warning: /proc/config.gz does not exist, searching other paths for kernel config ...
error: cannot find kernel config
try running this script again, specifying the kernel config:
CONFIG=/path/to/kernel/.config ./check-config.sh or ./check-config.sh /path/to/kernel/.config
@sukesh-ak Could you please provide us the official download page of Raspberry Pi OS (32 bit) Debian 10.4 which you are using ? let me also check from our side.
I used RPI Imager and picked the first one in the options (recommended in the UI)
https://www.raspberrypi.org/documentation/installation/sdxc_formatting.md
@sukesh-ak
Is this the First Option ? please confirm.
Yes that's the option.
@sukesh-ak Thanks for all the info, let me work on it, will get back to you soon.
Appreciate the quick response.
Hello @sukesh-ak We did checked from our end on a fresh start on a Raspberry PI device and was able to install the moby engine without any issues.
Could you please run below command to overwrite the package write error. , "trying to overwrite" error implies that you have conflicting packages in your system.
sudo dpkg -i --force-overwrite /var/cache/apt/archives/moby-engine_3.0.13+azure-0_armhf.deb
Verification steps are shown in below images:
Image 1:
Image 2:
Image 3:
Thank you so much. I think the command you gave fixed it. I could install it after that.
Maybe a good idea to mention the same in the article for troubleshooting steps?
We can close this :)
@sukesh-ak Thank you for the feedback, we will surely consider this troubleshooting step. 👍
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion.
Hi @SatishBoddu-MSFT
I am still stuck with the service not starting up. I found another reported issue here, where connection string in yaml had spacing issue. So I checked that already to confirm the spacing but no luck.
pi@raspberrypi:~ $ sudo systemctl status iotedge
● iotedge.service - Azure IoT Edge daemon
Loaded: loaded (/lib/systemd/system/iotedge.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Wed 2020-07-15 14:23:12 IST; 7s ago
Docs: man:iotedged(8)
Process: 4316 ExecStart=/usr/bin/iotedged -c /etc/iotedge/config.yaml (code=exited, status=127)
Main PID: 4316 (code=exited, status=127)
Jul 15 14:23:12 raspberrypi systemd[1]: iotedge.service: Service RestartSec=100ms expired, scheduling restart.
Jul 15 14:23:12 raspberrypi systemd[1]: iotedge.service: Scheduled restart job, restart counter is at 10.
Jul 15 14:23:12 raspberrypi systemd[1]: Stopped Azure IoT Edge daemon.
Jul 15 14:23:12 raspberrypi systemd[1]: Dependency failed for Azure IoT Edge daemon.
Jul 15 14:23:12 raspberrypi systemd[1]: iotedge.service: Job iotedge.service/start failed with result 'dependency'.
Output of following command attached.
journalctl --no-pager -u iotedge
iotedge-errors.txt
I can re-build/re-install the OS if that helps to reduce time spent on troubleshooting.
I ended up re-building the OS and now the service is working. Will update later if I need anything else.
I ended up re-building the OS and now the service is working. Will update later if I need anything else.
I agree, I too faced such situations where I restarted my work, glad to see that you are now unblocked.
I had docker-ce installed already. That could be the reason for the issues. When I re-installed I directly went with Moby.
Thanks for your help.