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

http listener not started after upgrade #239

Closed
gollum53 opened this issue Apr 2, 2024 · 5 comments · Fixed by #241
Closed

http listener not started after upgrade #239

gollum53 opened this issue Apr 2, 2024 · 5 comments · Fixed by #241
Labels
🐞 bug Something isn't working

Comments

@gollum53
Copy link

gollum53 commented Apr 2, 2024

Current Behavior

When I update openvpn-auth-oauth2 from openvpn-auth-oauth2_1.18.0_linux_amd64.deb to openvpn-auth-oauth2_1.20.0_linux_amd64.deb, the configured http listener on port 9000 does not start. It reports it has started in the logs but ss - tulpn reports nothing listening on that port. Reverting to version 1.18 fixes the issue.

Expected Behavior

Start the listener normally.

Steps To Reproduce

Install openvpn-server, install openvpn-auth-oauth2_1.18.0_linux_amd64.deb, configure. Everything works. 
Update openvpn-auth-oauth to openvpn-auth-oauth2_1.20.0_linux_amd64.deb via dpkg -i. Listener wont start. 
Tried also dpkg -r openvpn-auth-oauth2_1.18.0_linux_amd64.deb && dpkg -i openvpn-auth-oauth2_1.20.0_linux_amd64.deb, no luck.

Environment

  • openvpn-auth-oauth2 Version: 1.20
  • OpenVPN Server Version: 2.6.9
  • Server OS: ubuntu 22.04 server.
  • OpenVPN Client (flavor, OS): not relevant
  • OIDC Provider: custom

openvpn-auth-oauth2 logs

No response

openvpn server logs

No response

Anything else?

No response

@gollum53 gollum53 added the 🐞 bug Something isn't working label Apr 2, 2024
@jkroepke
Copy link
Owner

jkroepke commented Apr 2, 2024

With 1.20 I introduce AppArmor profiles to increase the application security of openvpn-auth-oauth2. It cloud be possible that the profile is configured too strong.

Without any logs, from

  • journalctl -flu openvpn-auth-oauth2 (maybe it need an additional systemctl start openvpn-auth-oauth2)
  • dmesg | grep openvpn

I can't assist here.

@plstryagain
Copy link

Tried to run the demo, doesn't work for me either.

Last working version for me is 1.19.1

Didn't dive deep into code but for tls = false shouldn't it just be ListenAndServe here? 🙂

errCh <- s.server.ListenAndServeTLS("", "")

@jkroepke
Copy link
Owner

jkroepke commented Apr 3, 2024

You are right. Huch.

And there was an additional bug that errors from http listener are never returned.

@jkroepke
Copy link
Owner

jkroepke commented Apr 3, 2024

Fixed in https://github.com/jkroepke/openvpn-auth-oauth2/releases/tag/v1.20.1

@gollum53
Copy link
Author

gollum53 commented Apr 3, 2024

I can confirm it works now. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants