mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: Enrico Joerns <ejo@pengutronix.de>
To: caglar.kilimci@accenture.com
Cc: rauc@pengutronix.de
Subject: Re: [RAUC] Caught an error while installing bundle
Date: Tue, 28 Feb 2017 15:59:03 +0100	[thread overview]
Message-ID: <3f222044-541e-8114-e226-7dd9da12cc3e@pengutronix.de> (raw)
In-Reply-To: <76b4d9aa3e7c4cc783c13eccda46361a@BL2PR4205MB0417.048d.mgd.msft.net>

Hi Caglar,

On 02/28/2017 03:24 PM, caglar.kilimci@accenture.com wrote:
> I tested and still receive error. Output is:
> # rauc install update-2017.02-1.raucb
> Error creating proxy: Error calling StartServiceByName for de.pengutronix.rauc: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
> D-Bus error while installing `/home/root/update-2017.02-1.raucb`

ok, the issue you encounter is that the RAUC service is not running on 
your system and that the RAUC client, i.e. your command line tool, does 
not correctly start it via dbus activation.

The bug that causes this issue is located in the D-Bus service file 
`de.pengutronix.rauc.service` and shows that we haven't used non-systemd 
systems for a long time...
Am I right in assuming you are using a non-systemd-based system?

The reason why activation is not working for the non-systemd case is 
that the `Exec` argument in the dbus service file lacks the required 
`service` argument for RAUC in order to be started properly as the 
background service. Thus the fix is:

--- a/data/de.pengutronix.rauc.service.in
+++ b/data/de.pengutronix.rauc.service.in
@@ -1,5 +1,5 @@
  [D-BUS Service]
  Name=de.pengutronix.rauc
-Exec=@bindir@/rauc
+Exec=@bindir@/rauc service
  User=root
  SystemdService=rauc.service


Many thanks for revealing this issue! I've created a PullRequest on 
GitHub for this:

https://github.com/rauc/rauc/pull/104


Does this solve your problems?


Best regards

Enrico

-- 
Pengutronix e.K.                           | Enrico Jörns                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


_______________________________________________
RAUC mailing list

  reply	other threads:[~2017-02-28 14:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-28 12:27 caglar.kilimci
2017-02-28 13:47 ` Enrico Joerns
2017-02-28 14:24   ` caglar.kilimci
2017-02-28 14:59     ` Enrico Joerns [this message]
2017-02-28 15:44       ` caglar.kilimci

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3f222044-541e-8114-e226-7dd9da12cc3e@pengutronix.de \
    --to=ejo@pengutronix.de \
    --cc=caglar.kilimci@accenture.com \
    --cc=rauc@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox