Skip to content

OpenVPN Error 500 for "Download Profile" - pkitool not found

Hi, when trying to download the OpenVPN profile for a new user, I get a status 500 error. "pkitool" seems to be missing. Any help is greatly appreciated.

You are running Debian GNU/Linux buster/sid and FreedomBox version 0.32.0. FreedomBox is up to date.
[2018-07-03 10:51:20,393] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/openvpn', 'get-profile', 'thomas', 'chat.vgen.de']
[2018-07-03 10:51:21,744] plinth.actions ERROR    Error executing command - ['sudo', '-n', '/usr/share/plinth/actions/openvpn', 'get-profile', 'thomas', 'chat.vgen.de'], , Traceback (most recent call last):
  File "/usr/share/plinth/actions/openvpn", line 246, in <module>
    main()
  File "/usr/share/plinth/actions/openvpn", line 242, in main
    subcommand_method(arguments)
  File "/usr/share/plinth/actions/openvpn", line 193, in subcommand_get_profile
    **COMMON_ARGS)
  File "/usr/lib/python3.6/subprocess.py", line 286, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.6/subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/easy-rsa/pkitool': '/usr/share/easy-rsa/pkitool'

[2018-07-03 10:51:21,747] django.request ERROR    Internal Server Error: /plinth/apps/openvpn/profile/
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/plinth/modules/openvpn/views.py", line 93, in profile
    'openvpn', ['get-profile', username, domainname])
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 118, in superuser_run
    log_error=log_error)
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 190, in _run
    raise ActionError(action, output, error)
plinth.errors.ActionError: ('openvpn', '', 'Traceback (most recent call last):\n  File "/usr/share/plinth/actions/openvpn", line 246, in <module>\n    main()\n  File "/usr/share/plinth/actions/openvpn", line 242, in main\n    subcommand_method(arguments)\n  File "/usr/share/plinth/actions/openvpn", line 193, in subcommand_get_profile\n    **COMMON_ARGS)\n  File "/usr/lib/python3.6/subprocess.py", line 286, in check_call\n    retcode = call(*popenargs, **kwargs)\n  File "/usr/lib/python3.6/subprocess.py", line 267, in call\n    with Popen(*popenargs, **kwargs) as p:\n  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__\n    restore_signals, start_new_session)\n  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child\n    raise child_exception_type(errno_num, err_msg, err_filename)\nFileNotFoundError: [Errno 2] No such file or directory: \'/usr/share/easy-rsa/pkitool\': \'/usr/share/easy-rsa/pkitool\'\n')