-
Notifications
You must be signed in to change notification settings - Fork 7
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
Can't run cloudflared on OT-2 #189
Comments
The root filesystem (which includes
|
Hi Seth,
That's what I get:
so I assume that's not going to work. Now, I've tried setting up the way you described in #106
and couldn't make systemctl see the service:
|
remark: open to using any option (i.e. not necessary systemd) that can launch process on boot as daemons |
Oh! In that case, we support boot scripts run with
|
One thing to keep in mind is that run-parts scripts are unfortunately a lot less configurable than systemd services. You might know how to do this stuff better than me, but those scripts all want to execute like a systemd |
@sfoster1 nice, does run-parts just assumes these files are shell scripts? |
asking because there is no shebang in your example |
Ah, yes it does. It runs them through the shell. |
@sfoster1 likely I'm doing something wrong, but the service isn't started during reboot: Location:
In log, nothing shows it was found or called:
Contents of file: # cat /var/data/boot.d/00-cftunnel
echo "starting cloudflared tunnel"
echo -n $(date -u) >> /data/tunnel.log
echo "starting cloudflared tunnel" >> /root/tunnel.log
tmux kill-session -t ot-tunnel-session || (echo 'no tmux session to stop' >> /root/tunnel.log)
<actual cloudflared command goes here> Update: Command that you suggested:
|
@arogozhnikov Mark it executable: |
@sfoster1 I think I've tried everything and cloudflare just can't run at this point in boot process. I am not 100% sure, but here is what I have:
I do not see any logs or errors from cloudflared. Adding Any other ideas? |
Well huh. A lot of my ideas are broken by Where is that config file on the OT-2 filesystem? I wonder if there's some problem like that part of the filesystem not being mounted at the time you run Where on the OT-2 filesystem did you put the cftunnel binary+supporting solibs and config file? |
I place everything (binary, config, logs) right under /root
|
And then there's nothing in I'm really not sure what in the world is going wrong but one thing we could try is your idea to wait some time before starting the service, but do it in a
So if the problem we're facing is (1) system resources aren't ready enough at the time |
It is not your solution (nohup + delay) seems to work. Need more tests to be sure about that, but at least it restarted successfully twice Delay is critical, otherwise I get this in logs:
|
Ah, I guess it's not designed to handle "I'm not currently network-connected" or something. Well, I'm glad the nohup plus delay works! Let me know if something fails in those further tests - I'll leave this open for another couple days. |
cloudflared
is a communication utility that connects from/to an internal network of the company.It provides zero-trust connection from the internet.
It supports pretty much any OS of any distribution.
However, buildroot locks systemd for editing, and when cloudflared tries to install service, I run into this problem:
Are there any tools to override this? I saw the discussion in #106 about allowing customers to use services.
The text was updated successfully, but these errors were encountered: