<div dir="ltr"><div style>This is because dbus-daemon is not able to start the service in question as it can't locate its service file.</div>Where does your D-Bus configuration file point to in order to find service files and additional config (policy) files? Does the service file directory exit? Is it empty?<div>
<br></div><div style>This is what you said you used:</div><div style><span style="font-family:arial,sans-serif;font-size:13px"> dbus-daemon --config-file=/data/bluetooth/</span><span style="font-family:arial,sans-serif;font-size:13px">dbus/etc/dbus-1/system.conf</span><br>
</div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Please read dbus-daemon manual:</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px"> man dbus-daemon</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">and try to understand D-Bus configuration file format.</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Kris</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/4/11 Sandeep Gopisetty <span dir="ltr"><<a href="mailto:sandeep.gopisetty@igate.com" target="_blank">sandeep.gopisetty@igate.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="blue">
<div>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Hi
</span></font><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">Krzysztof Konopko,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">For Passkey-agent, I verified the source code Passkey-agent.c,from which the error message is getting.<u></u><u></u></span></font></p>
<div class="im">
<p class="MsoNormal"><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">root@(none):~# passkey-agent default 1000</span></font></b><u></u><u></u></p>
</div><p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">Can't register passkey agent -------------------------------------------------</span></font></b><b><font color="navy" face="Wingdings"><span style="font-family:Wingdings;color:navy;font-weight:bold">à</span></font></b><b><font color="navy" face="Arial"><span style="font-family:Arial;color:navy;font-weight:bold">this
is getting because(Please see below ----)</span></font></b><u></u><u></u></p><div class="im">
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">The name org.bluez was not provided by any .service files<u></u><u></u></span></font></b></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold"><u></u> <u></u></span></font></b></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold"><u></u> <u></u></span></font></b></p>
</div><p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">dbus_connection_send_with_reply_and_block(conn, msg, -1, &err);------</span></font></b><b><font color="navy" face="Wingdings"><span style="font-family:Wingdings;color:navy;font-weight:bold">à</span></font></b><b><font color="navy" face="Arial"><span style="font-family:Arial;color:navy;font-weight:bold">This
API is failing due to which the wrrir message is generated.<u></u><u></u></span></font></b></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Code is actually checking the return value of the above API,and if it is -1 it is generating the error message.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Please tell what to do also hcid –n is failing.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Please help me.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Thanks & Regards<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Sandeep<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> Krzysztof Konopko [mailto:<a href="mailto:krzysztof.konopko@gmail.com" target="_blank">krzysztof.konopko@gmail.com</a>]
<br></span></font></p><div class="im"><font face="Tahoma">
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, April 10, 2013 5:37 PM<br>
<b><span style="font-weight:bold">To:</span></b> <a href="mailto:dbus@freedesktop.org" target="_blank">dbus@freedesktop.org</a><br>
</font></div><font face="Tahoma"><b><span style="font-weight:bold">Cc:</span></b> Sandeep Gopisetty<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: DBus-Problem</font><u></u><u></u><p></p>
</div><div><div class="h5">
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Apologize for not sending to the mailing list in the first place.<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">It looks like you've got all your service and policy files missing or wrong. Check where you system.conf file points to find service and additional policy (configuration)
files.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">HTH,<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Kris<u></u><u></u></span></font></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">2013/4/10 Sandeep Gopisetty <<a href="mailto:sandeep.gopisetty@igate.com" target="_blank">sandeep.gopisetty@igate.com</a>><u></u><u></u></span></font></p>
<div link="blue" vlink="blue">
<div>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Hi
</span></font><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">Krzysztof Konopko</span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> </span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">Thanks for your immediate reply</span></font><u></u><u></u></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Previous issue was solved,ehen I manually added message group in /etc/group and user in /etc/shadow.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Now I am able to run dbus-daemon –system.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> </span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">Now I am stuck with the following</span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> </span></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">Even the D-BUS is running hcid –n is giving the same error</span></font><u></u><u></u></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">hcid[1710]: Bluetooth HCI daemon</span></font></b><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">hcid[1710]: Could not become the primary owner of org.bluez.</span></font></b><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">hcid[1710]: Unable to get on D-Bus</span></font></b><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold"> </span></font></b><u></u><u></u></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Then I ran passkey-agent (an utility to generate the password commandline),it
is also giving the error related to d-bus</span></font><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold"> </span></font></b><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">root@(none):~# passkey-agent default 1000</span></font></b><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">Can't register passkey agent</span></font></b><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">The name org.bluez was not provided by any .service files</span></font></b><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold"> </span></font></b><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold"> </span></font></b><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold">Please help me and provide me some solution.I am in very
much need to do this.</span></font></b><u></u><u></u></p>
<p class="MsoNormal"><b><font size="3" color="navy" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:navy;font-weight:bold"> </span></font></b><u></u><u></u></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Thanks & Regards</span></font><u></u><u></u></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Sandeep Gopisetty</span></font><u></u><u></u></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">
Krzysztof Konopko [mailto:<a href="mailto:krzysztof.konopko@gmail.com" target="_blank">krzysztof.konopko@gmail.com</a>]
<br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, April 10, 2013 1:15 PM<br>
<b><span style="font-weight:bold">To:</span></b> Sandeep Gopisetty<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: DBus-Problem</span></font><u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> <u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hi Sandeep,<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">On your system, could you check the following:<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">id messagebus<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">And if there's no `id' utility on your system:<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">grep messagebus /etc/{passwd,group}<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Kris<u></u><u></u></span></font></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> <u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">2013/4/10 sandeep <<a href="mailto:sandeep.gopisetty@igate.com" target="_blank">sandeep.gopisetty@igate.com</a>><u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hi,<br>
My name is sandeep,currently i am working in adding bluetooth support in<br>
ARM board.I inserted the drivers:rfcomm,btusb,bnep,bluetooth.<br>
I cross compiled bluez-utils and all the other required utilitie.<br>
when i am starting hcid it is giving unable to get on DBus<br>
root@(none):/data/bluetooth/dbus/bin# hcid -n<br>
hcid[605]: Bluetooth HCI daemon<br>
hcid[605]: Unable to get on D-Bus<br>
<br>
So i came to know that i have to launch dbus.I am using dbus-1.6.8 version<br>
Following are the outputs of varioys commands<br>
dbus-launch<br>
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-<br>
rNfAdnokq0,guid=db0383402b883abe589c9e26000005f7<br>
DBUS_SESSION_BUS_PID=611<br>
root@(none):/data/bluetooth/dbus/bin# dbus-uuidgen<br>
9a4bd04bd3d7991a146d51f3000005fd<br>
<br>
dbus-daemon --config-file=/data/bluetooth/dbus/etc/dbus-1/system.conf<br>
<br>
Failed to start message bus: Could not get UID and GID for<br>
username "messagebus"<br>
<br>
<br>
Then i created UID and GID for messagebus<br>
groupadd -g 101 messagebus<br>
useradd -u 101 messagebus<br>
<br>
Even then also i am getting the same error<br>
dbus-daemon --config-file=/data/bluetooth/dbus/etc/dbus-1/system.conf<br>
<br>
Failed to start message bus: Could not get UID and GID for<br>
username "messagebus"<br>
<br>
<br>
Please help me what to do,i need help.Now i am in full trouble.<br>
<br>
Please Please help me and give me suggestions as early as possible.<br>
<br>
Thanks in advance<br>
<br>
_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><u></u><u></u></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> <u></u><u></u></span></font></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Information contained and transmitted by this e-mail is confidential and proprietary to iGATE and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution,
copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or
<a href="mailto:mailadmin@igate.com" target="_blank">mailadmin@igate.com</a>. iGATE does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE. iGATE is not responsible for the
consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE has taken every reasonable precaution
to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE please visit
<a href="http://www.igate.com" target="_blank">www.igate.com</a>.<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></font></p>
</div>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
</div></div></div><div><div class="h5">
<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Information contained and transmitted by this e-mail is confidential and proprietary to iGATE and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or <a href="mailto:mailadmin@igate.com" target="_blank">mailadmin@igate.com</a>. iGATE does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE. iGATE is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE please visit <a href="http://www.igate.com" target="_blank">www.igate.com</a>.<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div></div></div>
</blockquote></div><br></div>