luci-app-udp2raw icon indicating copy to clipboard operation
luci-app-udp2raw copied to clipboard

Service never starts

Open pandalion98 opened this issue 6 years ago • 3 comments

For first few runs, everything was okay. But, after some time, it suddenly stops working. Repeated server disable-enable, and it still shows as NOT RUNNING.

Symptom:

  1. Go to Services > udp2raw-tunnel
  2. See that server shows NOT RUNNING
  3. Change server to Disabled. Save & Apply. See that server is NOT RUNNING, as expected.
  4. Change into a configured server. Save & Apply. See that server is still NOT RUNNING.

When I run udp2raw manually (udp2raw --conf-file /var/etc/udp2raw.default.conf), udp2raw-tunnel then shows as RUNNING, telling me that detection is working okay.

The only problem it seems is that udp2raw-tunnel cannot manage the process. It cannot start udp2raw. It also cannot stop the process I started manually (when I set Server to Disabled).

image

pandalion98 avatar Oct 18 '18 02:10 pandalion98

Same issue with #5

pandalion98 avatar Oct 18 '18 02:10 pandalion98

UPDATE: I managed to solve the issue.

What I did was replace the init.d script for udp2raw.

Steps:

  1. SSH into the router. Then cd /etc/init.d
  2. Delete or move the existing udp2raw script. rm ./udp2raw
  3. Replace using the working init script from here.
wget -O udp2raw https://raw.githubusercontent.com/sensec/luci-app-udp2raw/master/files/root/etc/init.d/udp2raw.init
chmod +x udp2raw

After these steps, the LuCI interface (Services > udp2raw-tunnel) should be working again.

@sensec I think procd has something to do with this. I'm using OpenWrt 18.06.1. This issue happened on both my router mips_24kc and Raspberry Pi 3B.

pandalion98 avatar Oct 18 '18 03:10 pandalion98

New issue: Service does not run on boot even after

root@x:~# /etc/init.d/udp2raw disable
root@x:~# /etc/init.d/udp2raw enable

Need to manually start using command line or LuCI.

Double checked, and the service is already enabled, but udp2raw shows as NOT RUNNING. I have to manually click "Start" below, or /etc/init.d/udp2raw start via command line. image


A dirty workaround I did was add /etc/init.d/udp2raw start to rc.local. It resolves this problem. (System > Startup > scroll down)

image

pandalion98 avatar Oct 18 '18 03:10 pandalion98