Modify

Opened 22 months ago

Last modified 21 months ago

#22271 assigned defect

Trunk error - r29260 - unknown user or group: dnsmasq

Reported by: anonymous Owned by: blogic
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

Got this error after building and flashing latest Trunk

Attachments (0)

Change History (5)

comment:1 Changed 22 months ago by jospezial

see r49252

For this some file have changed in etc and you restored your configuration like me.
I also was wondering why dhcp server did not work.

diff -ur /home/joerg/easybox_803a_wrt/etc/group /home/joerg/Downloads/04_26/etc/group
--- /home/joerg/easybox_803a_wrt/etc/group      2016-04-09 16:47:35.000000000 +0200
+++ /home/joerg/Downloads/04_26/etc/group       2016-04-26 13:44:36.000000000 +0200
@@ -8,3 +8,4 @@
 users:x:100:
 network:x:101:
 nogroup:x:65534:
+dnsmasq:x:453:dnsmasq
diff -ur /home/joerg/easybox_803a_wrt/etc/passwd /home/joerg/Downloads/04_26/etc/passwd
--- /home/joerg/easybox_803a_wrt/etc/passwd     2016-04-09 16:59:13.000000000 +0200
+++ /home/joerg/Downloads/04_26/etc/passwd      2016-04-26 13:59:58.000000000 +0200
@@ -3,3 +3,4 @@
 ftp:*:55:55:ftp:/home/ftp:/bin/false
 network:*:101:101:network:/var:/bin/false
 nobody:*:65534:65534:nobody:/var:/bin/false
+dnsmasq:x:453:453:dnsmasq:/var/run/dnsmasq:/bin/false
diff -ur /home/joerg/easybox_803a_wrt/etc/shadow /home/joerg/Downloads/04_26/etc/shadow
--- /home/joerg/easybox_803a_wrt/etc/shadow     2016-04-09 16:59:13.000000000 +0200
+++ /home/joerg/Downloads/04_26/etc/shadow      2016-04-26 13:59:58.000000000 +0200
@@ -1,5 +1,6 @@
-root:removed.:16900:0:99999:7:::
+root:removed.:16917:0:99999:7:::
 daemon:*:0:0:99999:7:::
 ftp:*:0:0:99999:7:::
 network:*:0:0:99999:7:::
 nobody:*:0:0:99999:7:::
+dnsmasq:x:0:0:99999:7:::

comment:2 Changed 22 months ago by anonymous

+1

comment:3 Changed 22 months ago by hnyman

r49252 breaks things in a major way in a sysupgrade with settings preserved.

If a router is flashed with a new firmware with revision >= 49252, it will expect to find user "dnsmasq" in /etc/password and /etc/shadow as well as group "dnsmasq" in /etc/group. If those are not found, dnsmasq does not start and all connectivity breaks down.

root@OpenWrt:~# logread | grep dnsm
Wed Apr 27 11:27:52 2016 daemon.crit dnsmasq[2753]: unknown user or group: dnsmasq
Wed Apr 27 11:27:52 2016 daemon.crit dnsmasq[2753]: FAILED to start up
Wed Apr 27 11:27:56 2016 daemon.crit dnsmasq[2944]: unknown user or group: dnsmasq
Wed Apr 27 11:27:56 2016 daemon.crit dnsmasq[2944]: FAILED to start up
Wed Apr 27 11:28:00 2016 daemon.crit dnsmasq[3620]: unknown user or group: dnsmasq
Wed Apr 27 11:28:00 2016 daemon.crit dnsmasq[3620]: FAILED to start up
Wed Apr 27 11:28:05 2016 daemon.crit dnsmasq[4321]: unknown user or group: dnsmasq
Wed Apr 27 11:28:06 2016 daemon.crit dnsmasq[4321]: FAILED to start up
Wed Apr 27 11:28:06 2016 daemon.crit dnsmasq[4356]: unknown user or group: dnsmasq
Wed Apr 27 11:28:06 2016 daemon.crit dnsmasq[4356]: FAILED to start up
Wed Apr 27 11:28:11 2016 daemon.crit dnsmasq[4440]: unknown user or group: dnsmasq
Wed Apr 27 11:28:11 2016 daemon.crit dnsmasq[4440]: FAILED to start up
Wed Apr 27 11:28:11 2016 daemon.info procd: Instance dnsmasq::instance1 s in a crash loop 6 crashes, 0 seconds since last crash

I fixed my own router by manually copying /rom/etc/passwd, /rom/etc/shadow and /rom/etc/group to /etc

comment:4 Changed 22 months ago by swalker

  • Owner changed from developers to blogic
  • Status changed from new to assigned

comment:5 Changed 21 months ago by hnyman

Fixed by r49275 and r49276

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.