-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
tinyproxy does not start on boot #25210
Comments
Show your /etc/config/tinyproxy (without passwords) and the output of |
the 192.168.3.93 is WAN interface obtained via DHCP
ls -la /etc/rc.d/tinyproxy
It did not help. Only |
What is 192.168.3.93 assigned to? Is it an interface that comes up late (VPN or wifi client)? |
This is WAN (external) interface. I am not sure how late it gets up. It is initiated with DHCP on openwrt router boot, DHCP server is another locally installed router. Then the openwrt router with tinyproxy serves as a proxy for the people at the locally installed other router network, the reason -- I am not allowed to touch the main router, so some functionality is provided by an openwrt router on the same network. The openwrt gets 192.168.3.93 as WAN IP from another router. |
Yeah, it's probably caused by the late IF up. You should enable that log, to be sure.
|
A web server should work over any interface. Other web servers work, only tinyproxy does not. There should be a starting program dependence/order, only tinyproxy does not have any. then it's not a bug. Proxy servers aren't supposed ... Looks like a limited program unable to implement startup order dependence and/or crash handling (e.g. fail, restart, etc.) |
Except Tinyproxy is not a web server. It's a proxy server, and it's not even a reverse-proxy server! And, btw, no web server or any other program would specifically bind to an IF that isn't up. In fact, all web servers in their default config will bind 0.0.0.0, not a specific interface.
Like I said, a proxy it's not supposed to bind to WAN, so it works as indended. If you need it to do something other than designed, write an IF-up hotplug script yourself. Or why don't you use a full Linux with systemd instead? |
This is quite common for a web server. Two ways to solve (e.g. in systemd)
which every 10 second will try to restart the server after a crash or a failure to start. I believe openwrt has something similar. |
I use tinyproxy on openwrt for space/extra equipment savement/etc. reasons. Correct, I can run apache on a desktop or a server, But the beauty of openwrt -- a small device without cooling, without strong power supply, working 24hrs/day. A very nice customizable device. |
I use tinyproxy - 1.11.1-r3 on OpenWrt SNAPSHOT, r27913-a2aabc9a7a
tinyproxy fails to start on boot. However, it can be started OK manually.
service tinyproxy restart
I managed to start it from rc.local with
If I remove sleep 60 -- then tinyproxy does not start on boot
The text was updated successfully, but these errors were encountered: