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

Tunnel broker logs go nowhere #9

Closed
bennlich opened this issue Feb 24, 2018 · 4 comments
Closed

Tunnel broker logs go nowhere #9

bennlich opened this issue Feb 24, 2018 · 4 comments

Comments

@bennlich
Copy link
Collaborator

@gobengo @jhpoelen

It looks like the tunneldigger broker logs currently go nowhere. This is because the [log] config in /opt/tunneldigger/broker/l2tp_broker.cfg is not actually used anywhere by the broker script (apparently this config was deprecated in v2 of tunneldigger), and because /etc/init.d/tunneldigger does not send the output of start-stop-daemon anywhere.

I think the quickest fix would be something like this: https://stackoverflow.com/a/21029952

@jhpoelen
Copy link
Contributor

note that when switching over to systemd service ; tunneldigger logs appear nicely when running sudo journalctl -u tunneldigger -

# journalctl -u tunneldigger
-- Logs begin at Tue 2018-03-13 23:28:13 UTC, end at Tue 2018-03-13 23:28:58 UTC. --
Mar 13 23:28:17 ubuntu-s-1vcpu-1gb-fra1-01 systemd[1]: Started tunneldigger tunnelling network daemon using l2tpv3.
Mar 13 23:28:18 ubuntu-s-1vcpu-1gb-fra1-01 python[1338]: [INFO/tunneldigger.broker] Initializing the tunneldigger broker.
Mar 13 23:28:18 ubuntu-s-1vcpu-1gb-fra1-01 python[1338]: [INFO/tunneldigger.broker] Registered script '/opt/tunneldigger/bro
Mar 13 23:28:18 ubuntu-s-1vcpu-1gb-fra1-01 python[1338]: [INFO/tunneldigger.broker] Registered script '/opt/tunneldigger/bro
Mar 13 23:28:18 ubuntu-s-1vcpu-1gb-fra1-01 python[1338]: [INFO/tunneldigger.broker] Maximum number of tunnels is 1024.
Mar 13 23:28:18 ubuntu-s-1vcpu-1gb-fra1-01 python[1338]: [INFO/tunneldigger.broker] Tunnel identifier base is 100.
Mar 13 23:28:18 ubuntu-s-1vcpu-1gb-fra1-01 python[1338]: [INFO/tunneldigger.broker] Tunnel port base is 20000.
Mar 13 23:28:18 ubuntu-s-1vcpu-1gb-fra1-01 python[1338]: [INFO/tunneldigger.broker] Namespace is experiments.
Mar 13 23:28:18 ubuntu-s-1vcpu-1gb-fra1-01 python[1338]: [INFO/tunneldigger.broker] Listening on [some ip]:8942.
Mar 13 23:28:18 ubuntu-s-1vcpu-1gb-fra1-01 python[1338]: [INFO/tunneldigger.broker] Broker initialized.

also, see https://github.com/wlanslovenija/tunneldigger/blob/master/broker/contrib/tunneldigger.service .

@bennlich seems like this approach is much simpler than the init.d script hacking. do you think this resolves the issue?

@jhpoelen
Copy link
Contributor

@yardenac @Juul - fyi I've replaced init.d tunneldigger with systemd tunnel digger (see above) to exit.sudo node to help troubleshoot sudomesh/bugs#8 . Please holler if you have concerns.

@bennlich
Copy link
Collaborator Author

Yes--seems good to me. Nice find. Linking to your commit for posterity: f47ae19. Did you forget to add the .service file in that commit?

Any idea why they have both a .service and a .upstart file in the wlanslovenija repo?

@jhpoelen
Copy link
Contributor

@bennlich note quite sure why both .service and .upstart files exist. Perhaps to support systems that do not have systemd. @mitar might now.

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

2 participants