FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2008
    Posts
    21

    Angry open-vpn service not working any more after upgrade fc26->fc27

    open-vpn service not working any more after upgrade fc26->fc27

    [root@ system]# systemctl status openvpn-server.service
    ● openvpn-server.service - OpenVPN service for
    Loaded: loaded (/usr/lib/systemd/system/openvpn-server.service; enabled; vendor preset: disabled)
    Active: activating (auto-restart) (Result: exit-code) since Sun 2017-11-19 15:24:10 MSK; 3s ago
    Docs: man:openvpn(8)
    https://community.openvpn.net/openvp...envpn24ManPage
    https://community.openvpn.net/openvpn/wiki/HOWTO
    Process: 7181 ExecStart=/usr/sbin/openvpn --status /run/openvpn-server/status-.log --status-version 2 --suppress-timestamps --ciph
    Main PID: 7181 (code=exited, status=1/FAILURE)

    Nov 19 15:24:10 systemd[1]: Failed to start OpenVPN service for .
    Nov 19 15:24:10 systemd[1]: openvpn-server.service: Unit entered failed state.
    Nov 19 15:24:10 systemd[1]: openvpn-server.service: Failed with result 'exit-code'.

    no more errors.. only this..

  2. #2
    Join Date
    Apr 2009
    Posts
    23

    Re: open-vpn service not working any more after upgrade fc26->fc27

    No help. just another data point.

    For me it was upgrade from 24 to 25. The working systemd startup failed.

    There is a change in where it has to write its pid, but I fixed that but it still fails claiming a timeout.

    But if I run the exec line by hand the daemon starts fine and all is well

    So if you run the Exec line from your systemd file (/lib/systemd/system/openvpn@<configname>.service) as root on the command line, does your openvpn start and work?

  3. #3
    Join Date
    Dec 2008
    Posts
    21

    Re: open-vpn service not working any more after upgrade fc26->fc27

    I found the problem..
    /etc/systemd/system/multi-user.target.wants/@openvpn-server.service

    the systemd script have not insert %i and %t varibles - it's empty ...

    ExecStart=/usr/sbin/openvpn --status %t/openvpn-server/status-%i.log --status-version 2 --suppress-timestamps --cipher AES-256-GCM --ncp-ciphers AES-256-GCM:AES-256-CBC:AES-128-GCM:AES-128-CBC:BF-CBC --config %i.conf

    So, I write it manually. So it's working fine now.
    ExecStart=/usr/sbin/openvpn --status /var/log/openvpn-server-status.log --status-version 2 --suppress-timestamps --cipher AES-256-GCM --ncp-ciphers AES-256-GCM:AES-128-GCM:AES-256-CBC:AES-128-CBC:BF-CBC --cd /etc/openvpn/ --config server.conf

  4. #4
    Join Date
    Apr 2009
    Posts
    23

    Re: open-vpn service not working any more after upgrade fc26->fc27

    Don't think that's my issue

    it isn't in multi user target but it times out if I start it using systemctl start openvpn@vpn-home.service so it is something about the systemd start - maybe it is expecting an exit code and not getting it or something.

    run the exec by hand, no issue. start using service or systemctl and no go.

  5. #5
    Join Date
    Dec 2013
    Location
    US
    Posts
    4

    Re: open-vpn service not working any more after upgrade fc26->fc27

    Quote Originally Posted by Zebee
    Don't think that's my issue

    it isn't in multi user target but it times out if I start it using systemctl start openvpn@vpn-home.service so it is something about the systemd start - maybe it is expecting an exit code and not getting it or something.

    run the exec by hand, no issue. start using service or systemctl and no go.
    Not sure if your still having the issue but i just upgraded and had an issue and was able to fix it.

    Seems there were 2 major changes within openvpn
    - 2 directories were added into /etc/openvpn. client & server
    - Systemd units are now openvpn-client@ and openvpn-server@

    I had to copy my config files into the new folder /etc/openvpn/client.
    I also had to fix the symlink and rename it to openvpn-client@. If you don't, it doesn't work.

Similar Threads

  1. upgrade to FC26 in a LXC container
    By rsdchess in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 24th October 2017, 03:12 PM
  2. dnf system-upgrade FC24 to FC26 - lack of space in /
    By SteveT in forum Installation, Upgrades and Live Media
    Replies: 4
    Last Post: 7th September 2017, 11:18 AM
  3. Live bare metal FC25 to FC26 upgrade
    By nobody in forum F26 Development Forum
    Replies: 18
    Last Post: 10th July 2017, 10:39 AM
  4. fedup FC25 -> FC26 not working (yet?)
    By bobx001 in forum F26 Development Forum
    Replies: 3
    Last Post: 29th April 2017, 11:00 PM
  5. Upgrade to FC26 may kill USB3.0
    By bobx001 in forum F26 Development Forum
    Replies: 6
    Last Post: 29th April 2017, 06:55 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •