Fail to start arducopter - code=exit, status=139

Hi guys.

I am just wondering if you guys can help me to solve this problem. It was working before and suddenly I started to receive those messages.

Thanks guys.

whats the ouput of
sudo cat /etc/default/arducopter ?

what’s the output of
cat /etc/systemd/system/ardupilot.service
and
sudo journalctl -u ardupilot ?

you need to choose your board and frame with this command:
sudo update-alternatives --config arducopter
do a:
sudo systemctl daemon-reload
and start arducopter service!

I think I did, please have a look on the image. I am not sure why I’m getting this message: ardupilot.service lacks ExecStart setting. Refusing.

mmh strange…
open service file:
sudo nano /etc/systemd/system/arducopter.service
add this line below the commented out “#ExecStart…” (leave it commented out)
ExecStart=/bin/sh -c "/usr/bin/arducopter ${ARDUPILOT_OPTS}"
should work…

Ok It is running. I think :flushed:

Thanks a lot. I am still wondering why that red messages but I guess is not a issue.

actually - i believe - I should have instructed you to do this:
open service file:
sudo nano /etc/systemd/system/ardupilot.service
add this line below the commented out “#ExecStart…” (leave it commented out)
ExecStart=/bin/sh -c “/usr/bin/arducopter ${ARDUPILOT_OPTS}”

(the difference is arduPILOT.service vs arduCOPTER.service file…)

if it works for now - wait what @george.staroselskiy has to say…
i believe “sudo systemctl enable arducopter.service” should enable autostart on boot and should be ok…

1 Like

yes i think now everything is working perfect.

Thanks again.

I’m also facing a similar issue. The following is the output of “sudo systemctl status arducopter” and “sudo journalctl -u arducopter”. This issue arises only when I try to use arducopter. Arduplane and ardurover work fine.

What’s the output of /proc/cpuinfo?