Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenVPN service not starting after suddenly shutdown

    OpenVPN
    2
    2
    639
    Loading More Posts
    • 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.
    • B
      brunopradosimao
      last edited by

      Hi People!! I'm with a big problem im my business. After a power failure, the server went down and then when I power it on, the service of the OpenVPN says "Impossible to contact the daemon". I tried to connect on SSH and see the configuration if it's all right, but when I try to access the folder "/var/etc/openvpn" it says "Bad File Descriptor".

      The logs of the VPN and OpenVPN says nothing, and in the system logs it says "/vpn_openvpn_server.php: The command '/usr/local/sbin/openvpn –config '/var/etc/openvpn/server1.conf'' returned exit code '1', the output was 'Options error: In [CMD-LINE]:1: Error opening configuration file: /var/etc/openvpn/server1.conf Use –help for more information."

      I don't know what to do any more. Tried to create a new VPN, etc, but nothing works. Please, someone got this problem ever??

      Thanks!!!

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Sounds like you have a low-level filesystem issue. Take a config backup before doing anything about it.

        You might be able to use the console reboot menu to run a fsck (disk check) for the next reboot, if that doesn't work you'll need to reboot to single user mode from the loader menu and then run "fsck -y /" a few times until it finds nothing wrong. Don't stop running it when it claims the disk has been fixed, it needs to be re-run until it finds no new problems.

        Worst case scenario, reinstall using the recover config.xml option to retain your existing settings.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.