luci-app-udp2raw
luci-app-udp2raw copied to clipboard
Service never starts
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:
- Go to Services > udp2raw-tunnel
- See that server shows NOT RUNNING
- Change server to Disabled. Save & Apply. See that server is NOT RUNNING, as expected.
- 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).
Same issue with #5
UPDATE: I managed to solve the issue.
What I did was replace the init.d
script for udp2raw.
Steps:
- SSH into the router. Then
cd /etc/init.d
- Delete or move the existing
udp2raw
script.rm ./udp2raw
- 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.
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.
A dirty workaround I did was add /etc/init.d/udp2raw start
to rc.local
. It resolves this problem.
(System > Startup > scroll down)