What's new

entware starting dbus-daemon failed

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

zd59

Regular Contributor
Asus RT-AC86U Merlin Firmware Version:384.12
Entware:
opkg update .. upgrade

Code:
/opt/etc/init.d/rc.unslung restart
 Starting avahi-daemon...              done.
 Starting dbus-daemon...              failed.

debug log show:
Jun 27 19:42:32 avahi-daemon[5206]: Failed to find group 'nogroup'.
Jun 27 19:42:32 admin: Started avahi-daemon from .
Jun 27 19:42:32 dbus-daemon[5224]: Failed to start message bus: Could not get UID and GID for username "root"
Jun 27 19:42:32 admin: Failed to start dbus-daemon from .
 
Have you considered in investing in an actual Linux box rather than pushing the router beyond what it's designed to do?

That error is fairly self-explanatory - there is no user named root on the router
 
Have you considered in investing in an actual Linux box rather than pushing the router beyond what it's designed to do?

That error is fairly self-explanatory - there is no user named root on the router

Sorry, that's part of Entware, and should work. Was installed at Entware installation.
 
Sorry, that's part of Entware, and should work. Was installed at Entware installation.
strange this is all i see on my list of installed, there are some that are custom, but it list everything entware installs as well
Code:
 opkg list-installed
bind-dig - 9.12.3-P4-1a
bind-libs - 9.12.3-P4-1a
ca-bundle - 20190110-1
drill - 1.7.0-5
entware-opt - 227000-3
entware-release - 1.0-2
entware-upgrade - 1.0-1
findutils - 4.6.0-3
glib2 - 2.58.3-1
grep - 3.3-1
htop - 2.2.0-2
libart - 2.3.21-1
libattr - 2.4.48-1
libc - 2.23-8
libcap - 2.26-1
libcurl - 7.64.1-1
libdbi - 0.9.0-4
libedit - 20181209-3.1-1
libffi - 3.2.1-3
libfreetype - 2.10.0-1
libgcc - 7.4.0-8
libiconv-full - 1.11.1-4
libintl-full - 0.19.8.1-2
libjson-c - 0.12.1-3
libldns - 1.7.0-5
libncurses - 6.1-4
libncursesw - 6.1-4
libopenssl - 1.1.1b-5
libpcap - 1.9.0-2
libpcre - 8.43-1
libpng - 1.6.37-1
libpopt - 1.16-2
libpthread - 2.23-8
librrd - 1.2.30-3a
librt - 2.23-8
libsqlite3 - 3270200-1
libssp - 7.4.0-8
libstdcpp - 7.4.0-8
libuuid - 2.33-2
locales - 2.23-8
logrotate - 3.15.0-1a
ntp-utils - 4.2.8p13-1
ntpd - 4.2.8p13-1
opkg - 2019-01-31-d4ba162b-1
pixelserv-tls - 2.2.1-1
rrdtool - 1.2.30-3a
sqlite3-cli - 3270200-1
syslog-ng - 3.20.1-1
tcpdump - 4.9.2-1b
terminfo - 6.1-4
zip - 3.0-4
zlib - 1.2.11-3
zoneinfo-asia - 2019a-1
zoneinfo-europe - 2019a-1
zoneinfo-northamerica - 2019a-1
 
or even a VM with linux for some uses sometimes suffice enough.
Out of topic.

Yes I have a Slackware box 24/7/365 headless. Never had any problems with it.

Want to use Asus router with Entware Samba (and transmission if possible).
 
Out of topic.

Yes I have a Slackware box 24/7/365 headless. Never had any problems with it.

Want to use Asus router with Entware Samba (and transmission if possible).
I am not sure if the processes you are talking about can run side by side with the built in versions of the router, if not, are you killing the proper processes with in the router before trying to start the processes that this is running in entware?
 
on mine dbus is also there (dependency of another package?)

opkg list-installed
attr - 2.4.48-1
avahi-dbus-daemon - 0.7-3
ca-bundle - 20190110-1
dbus - 1.12.12-1
entware-opt - 227000-3
entware-release - 1.0-2
entware-upgrade - 1.0-1
findutils - 4.6.0-3
glib2 - 2.58.3-1
grep - 3.3-1
libattr - 2.4.48-1
libavahi-client - 0.7-3
libavahi-dbus-support - 0.7-3
libblkid - 2.33-2
libc - 2.27-8
libcap - 2.26-1
libcomerr - 1.44.5-1
libcurl - 7.64.1-1
libdaemon - 0.14-5
libdbus - 1.12.12-1
libevent2 - 2.1.8-3
libexpat - 2.2.6-1
libffi - 3.2.1-3
libgcc - 7.4.0-8
libgcrypt - 1.8.4-1
libgmp - 6.1.2-2
libgpg-error - 1.36-1
libiconv-full - 1.11.1-4
libintl-full - 0.19.8.1-2
libmbedtls - 2.16.1-1
libminiupnpc - 2.1.20190408-2
libmount - 2.33-2
libnatpmp - 20150609-1
libnettle - 3.4.1-2
libopenssl - 1.1.1b-5
libpam - 1.3.1-1
libpcre - 8.43-1
libpopt - 1.16-2
libpthread - 2.27-8
librt - 2.27-8
libslang2 - 2.3.2-1
libssh2 - 1.8.2-1
libssp - 7.4.0-8
libstdcpp - 7.4.0-8
libtirpc - 1.1.4-1
libuuid - 2.33-2
locales - 2.27-8
mc - 4.8.22-1
opkg - 2019-01-31-d4ba162b-1
samba4-admin - 4.9.7-1
samba4-client - 4.9.7-1
samba4-libs - 4.9.7-1
samba4-server - 4.9.7-1
samba4-utils - 4.9.7-1
terminfo - 6.1-4
transmission-daemon-openssl - 2.94-4
transmission-web - 2.94-4
wsdd2 - 2018-07-24-2c31ba3b-3
zlib - 1.2.11-3
zoneinfo-asia - 2019a-1
zoneinfo-europe - 2019a-1
 
Asus RT-AC86U Merlin Firmware Version:384.12
Entware:
opkg update .. upgrade

Code:
/opt/etc/init.d/rc.unslung restart
 Starting avahi-daemon...              done.
 Starting dbus-daemon...              failed.

debug log show:
were you having these problems on any older versions of merlin, or did it just start occuring and have you made any changes to your entware since you started running the newer version of merlin?
 
Out of topic.

Yes I have a Slackware box 24/7/365 headless. Never had any problems with it.

Want to use Asus router with Entware Samba (and transmission if possible).
entware samba and transmission should both be possible, samba is the only thing i can think that may require you manually kill on board router processes, plus you may need to set your samba configuration with special permissions able to use on the asuswrt router. here is a link to someone who runs samba 4 on entware on merlin asus
https://www.snbforums.com/threads/wsdd2-from-entware-collides-with-asuswrt-merlin-384-12.57270/

I think he even mentions special permissions and what not.
 
I am not sure if the processes you are talking about can run side by side with the built in versions of the router, if not, are you killing the proper processes with in the router before trying to start the processes that this is running in entware?

Entware is autostarted by a script:
Code:
/opt/etc/init.d/rc.unslung
installed by Entware. So Entware creators should take care of that.
Entware autorun directory at my router is:

Code:
admin@Asus:/tmp/home/root# ls -la /opt/etc/init.d/
drwxr-xr-x    2 admin    root          4096 Jun 20 21:47 .
drwxr-xr-x   13 admin    root          4096 Jun 20 21:47 ..
-rwxr-xr-x    1 admin    root           313 May 22 15:44 S20dbus
-rwxr-xr-x    1 admin    root           187 May 22 15:44 S42avahi-daemon
-rw-r--r--    1 admin    root           269 May 22 15:44 S88transmission
-rwxr-xr-x    1 admin    root           969 Jun 17 15:18 S91smb
-rwxr-xr-x    1 admin    root           180 May 22 15:44 S99wsdd2
-rwxr-xr-x    1 admin    root          2822 May 22 15:44 rc.func
-rwxr-xr-x    1 admin    root           966 May 22 15:44 rc.unslung

And all was installed by Entware install and installed packages with opkg install
 
Entware is autostarted by a script:
Code:
/opt/etc/init.d/rc.unslung
installed by Entware. So Entware creators should take care of that.
Entware autorun directory at my router is:

Code:
admin@Asus:/tmp/home/root# ls -la /opt/etc/init.d/
drwxr-xr-x    2 admin    root          4096 Jun 20 21:47 .
drwxr-xr-x   13 admin    root          4096 Jun 20 21:47 ..
-rwxr-xr-x    1 admin    root           313 May 22 15:44 S20dbus
-rwxr-xr-x    1 admin    root           187 May 22 15:44 S42avahi-daemon
-rw-r--r--    1 admin    root           269 May 22 15:44 S88transmission
-rwxr-xr-x    1 admin    root           969 Jun 17 15:18 S91smb
-rwxr-xr-x    1 admin    root           180 May 22 15:44 S99wsdd2
-rwxr-xr-x    1 admin    root          2822 May 22 15:44 rc.func
-rwxr-xr-x    1 admin    root           966 May 22 15:44 rc.unslung

And all was installed by Entware install and installed packages with opkg install
so yes these packages can be "installed", but alot of them do not come with already "out of the box" guarenteed to fit your needs , and are ready to perform. who ever makes them are not designing them with your router in mind, they are designing them with a generic setup that people with general knowledge of them can go on and configure them to perform. the functions you are having issues with are dependents of samba it seems.

The router, itself, has it's own samba as well, so any dependents of the entware version are having conflict with this and potentially conflict with configuration of the samba in general.

Notice
"Failed to find group 'nogroup'."
"Failed to start message bus: Could not get UID and GID for username "root""

these are special handles that have to be properly dealt with in order for you to successfully run your setup.
 
Last edited:
Asuswrt superuser is not called "root", it's called whatever you set it to on the webui (default is "admin"). You will have to configure your installed packages to use the correct username.

Entware maintainers have no way of knowing which username your SUID 1 uses, so they default to the logical value of "root". This isn't anything wrong on their end, it's just the end-user's responsibility to configure it for his specific environment.
 
Thank's to all for a replies.

I'm very new here, as I bought Asus 3 weeks ago to replace failed Netgear R7500 (completely failed design).
On R7500 I run Entware with Samba & Transmission for 4 years. There were some problems on Samba regarding R7500 design failure. Transmssion worked excellent on R7500 with less capable hardware - slower CPU and 256 MB RAM.
So I have some experience with Entware.

RMerlin thank you for your excellent firmware.

Will try to replace root with admin as you suggested above.
Transmission worked on your previous FW (384.11). Just upgraded today and on ..12 transmission and dbus failed. No changes elsewhere, just reboot after FW upgrade.
 
@zd59

I installed samba4 form Entware on Asuswrt and Asuswrt-Merlin successfully. And I noticed that dbus-daemon from Entware can't run as well. I fixed this issue by your method, but I can't see what the dbus-daemon does, since it seems that nothing changed by making dbus-daemon run. By checking /opt/etc/dbus-1/system.d, I think dbus-daemon from Entware should relate to avahi-daemon.

BUT, the executable avahi-daemon is from the Firmware, not from Entware. If you killall avahi-daemon and re-run it by issuing /opt/etc/init.d/S42avahi-daemon start, 1 or 2 minutes later, you'll find it's dead by issuing /opt/etc/init.d/S42avahi-daemon check. If you re-run it by issuing /opt/sbin/avahi-daemon --debug, it will prompt Failed to find group 'nogroup'.
 
that is because asus doesn't use 'nogroup' you probably need to chown the appropriate files to the appropriate owner.

ls -la will show you which directory files has that owner, on top of it you may still have to modify config files to reflect the new ownerships.
 
that is because asus doesn't use 'nogroup' you probably need to chown the appropriate files to the appropriate owner.

ls -la will show you which directory files has that owner, on top of it you may still have to modify config files to reflect the new ownerships.

I can get "Failed to find group 'nogroup'." by issuing /opt/sbin/avahi-daemon --debug. BUT, all files in my router has root group. And there is no setting about group in avahi-daemon.conf. I read this post (https://www.snbforums.com/threads/avahi-install.10218/), finding that I have to do a lot of modification to the system in order to make it run. Actually I think there is no need to use avahi-daemon from Entware since avahi-daemon from Asuswrt and Asuswrt-Merlin is good enough.
 
Actually I think there is no need to use avahi-daemon from Entware since avahi-daemon from Asuswrt and Asuswrt-Merlin is good enough.

Agree.
Running samba4 & qbittorrent from Entware and disabled execute avahi-daemon from Entware so it's executes firmares version (Merlins).
That combination run excellent, no errors or warnings.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top