Opened 3 years ago

Closed 3 weeks ago

#1794 closed (fixed)

[radvd] does not start

Reported by: mkresin Owned by:
Keywords: Cc: mikepelley

Description (last modified by mkresin)

Radvd refuses to start with the following error:

[Oct 17 23:47:52] radvd: can't open /usr/local/etc/radvd.conf: No such file or directory

Changing line 76 in src/router/services/services/radvd.c to

        ret = eval("radvd", "-C/tmp/radvd.conf");

seams to fix this error. But now I get the following error message while booting the dd-wrt box:

[Jan 01 00:00:08] radvd: IPv6 forwarding seems to be disabled, exiting

It looks like a start dependency problem with the firewall which enables IPv6 forwarding.

Executing 'radvd -C /tmp/radvd.conf' from the command line works as expected.

Change History (10)

comment:1 Changed 3 years ago by mkresin

  • Summary changed from [radvd] Does not start because of missing config file to [radvd] does not start

comment:2 Changed 3 years ago by mkresin

  • Description modified (diff)

comment:3 Changed 3 years ago by Sash

  • Resolution set to invalid
  • Status changed from new to closed

comment:4 Changed 3 years ago by mkresin

  • Resolution invalid deleted
  • Status changed from closed to reopened

What for manners... It would be nice if you would write why the report is invalid. Anyway, i've checked it against r15723 (with the updated radvd) and the bugs are still present. No surprise here, the bugs are located in the dd-wrt environment and not in radvd itself.

comment:5 Changed 2 years ago by mikepelley

I'm having the same problem as mkresin with r14896. I have an alternate suggestion for the first problem that I thought I'd pass on (although I haven't been able to test it yet).

I noticed that no prefix was supplied to the main radvd configure in /src/router/rules/radvd.mk (line 4). The default prefix is /usr/local, so PATH_RADVD_CONF gets set to /usr/local/etc/radvd.conf, which becomes embedded in the radvd binary. Setting the prefix to an empty string changes the embedded path to /etc/radvd.conf, which seems more appropriate.

cd .. && ./configure --prefix= --host=$(ARCH)-linux CFLAGS="$(COPTS)
-DNEED_PRINTF -I$(TOP)/radvd/flex" LDFLAGS="-L$(TOP)/radvd/flex"
--with-flex=$(TOP)/radvd/flex; \

Because radvd.conf is written to /tmp, a symlink from /tmp/radvd.conf to /etc/radvd.conf is also required (not sure where to do this - maybe in radvd.mk under "radvd-install:" ?).

I tried to follow "the dd-wrt way" with this suggestion; hopefully it's helpful ;o)

I haven't got a suggestion for the "IPv6 forwarding seems to be disabled" problem unfortunately, but the path fix could be done as an interim commit before the forwarding issue is resolved.

comment:6 Changed 2 years ago by mikepelley

  • Cc mikepelley added

comment:7 Changed 2 years ago by mkresin

r16265 fixes the missing config file issue.

comment:8 Changed 2 years ago by stevocz

still not auto start after reboot on rt-n16 with 17084mega. radvd start after touch apply settings only to restart.

when i add:

radvd -C /tmp/radvd.conf

into startup command radvd works after reboot

comment:9 Changed 2 years ago by stevocz

Last edited 2 years ago by stevocz (previous) (diff)

comment:10 Changed 3 weeks ago by Sash

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.