Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. VPN
  3. When disabling both tcp and upd for OpenVPN the app is stuck in a restart loop

When disabling both tcp and upd for OpenVPN the app is stuck in a restart loop

Scheduled Pinned Locked Moved VPN
2 Posts 2 Posters 113 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • fbartelsF Offline
    fbartelsF Offline
    fbartels
    App Dev
    wrote on last edited by
    #1

    I wanted to give the new VPN app a try to see how easy it is to get Wireguard going with it. Since i am not planning on using OpenVPN i just disabled both the tcp and udp options for "vpn" (maybe this could be renamed to OpenVPN to make it clearer). In the settings this was not an issue, but when then starting the app it is stuck in "Starting.." and the following is logged repeatedly

    2024-12-28T16:38:09Z 2024-12-28 16:38:09,577 INFO spawned: 'openvpn' with pid 201
    2024-12-28T16:38:09Z 2024-12-28 16:38:09,593 INFO exited: openvpn (exit status 1; not expected)
    2024-12-28T16:38:10.000Z => Healtheck error: Error: connect ECONNREFUSED 172.18.19.53:3000
    2024-12-28T16:38:10Z 
    2024-12-28T16:38:10Z 
    2024-12-28T16:38:10Z 2024-12-28 16:38:10,633 INFO reaped unknown pid 188 (exit status 1)
    2024-12-28T16:38:10Z 2024-12-28 16:38:10,642 INFO exited: admin (exit status 1; not expected)
    2024-12-28T16:38:10Z Error: Could not restart OpenVPN: Command failed: sudo /app/code/src/restart.sh
    2024-12-28T16:38:10Z Node.js v22.11.0
    2024-12-28T16:38:10Z ^
    2024-12-28T16:38:10Z at async Object.init (file:///app/code/src/vpn.js:760:5)
    2024-12-28T16:38:10Z at async main (file:///app/code/server.js:190:5)
    2024-12-28T16:38:10Z at async ovInit (file:///app/code/src/vpn.js:660:5)
    2024-12-28T16:38:10Z at ovSyncSettings (file:///app/code/src/vpn.js:193:27)
    2024-12-28T16:38:10Z file:///app/code/src/vpn.js:193
    2024-12-28T16:38:10Z if (safe.error) throw new Error(`Could not restart OpenVPN: ${safe.error.message}`);
    2024-12-28T16:38:10Z openvpn: ERROR (not running)
    2024-12-28T16:38:10Z openvpn: ERROR (spawn error)
    2024-12-28T16:38:11Z 2024-12-28 16:38:11 --cipher is not set. Previous OpenVPN version defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this fallback please add '--data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to --data-ciphers.
    2024-12-28T16:38:11Z 2024-12-28 16:38:11 CRL: loaded 1 CRLs from file /app/data/pki/crl.pem
    2024-12-28T16:38:11Z 2024-12-28 16:38:11 Diffie-Hellman initialized with 2048 bit key
    2024-12-28T16:38:11Z 2024-12-28 16:38:11 Exiting due to fatal error
    

    The solution is to go back into the location settings and enable at least one of the two.

    1 Reply Last reply
    1
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      Thanks for reporting. . Implemented here - https://git.cloudron.io/packages/vpn-app/-/commit/4a2e9228884620180bbe75ed29f8c0cee421ebd7 . If both are disabled, OpenVPN will be totally disabled.

      1 Reply Last reply
      1
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search