Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service never starts #6

Open
pandalion98 opened this issue Oct 18, 2018 · 3 comments
Open

Service never starts #6

pandalion98 opened this issue Oct 18, 2018 · 3 comments

Comments

@pandalion98
Copy link

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
Copy link
Author

Same issue with #5

@pandalion98
Copy link
Author

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
Copy link
Author

pandalion98 commented Oct 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant