Netgate SG-1000 microFirewall

Author Topic: OpenVPN service not starting after suddenly shutdown  (Read 168 times)

0 Members and 1 Guest are viewing this topic.

Offline brunopradosimao

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
OpenVPN service not starting after suddenly shutdown
« on: December 28, 2017, 03:51:51 am »
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!!!

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21769
  • Karma: +1505/-26
    • View Profile
Re: OpenVPN service not starting after suddenly shutdown
« Reply #1 on: January 03, 2018, 12:29:54 pm »
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.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!