jkotra / eOVPN

OpenVPN Configuration Manager.
GNU General Public License v3.0
70 stars 9 forks source link

cant use .ovpn file #39

Open SaekoYes opened 1 year ago

SaekoYes commented 1 year ago

Issue is I put my .ovpn file in the configuration source box however it just stays infinitely loading.

logs are:

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/app/lib/python3.9/site-packages/eovpn/utils.py", line 49, in download_remote_to_destination
    zip_file = download_zip(remote)
  File "/app/lib/python3.9/site-packages/eovpn/utils.py", line 34, in download_zip
    return make_zip_from_b(f.read())
  File "/app/lib/python3.9/site-packages/eovpn/utils.py", line 29, in make_zip_from_b
    return zipfile.ZipFile(io.BytesIO(content), "r")
  File "/usr/lib/python3.9/zipfile.py", line 1257, in __init__
    self._RealGetContents()
  File "/usr/lib/python3.9/zipfile.py", line 1324, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "/app/lib/python3.9/site-packages/eovpn/eovpn_base.py", line 294, in dispatch
    cert = download_remote_to_destination(self.get_setting(self.SETTING.REMOTE), self.EOVPN_OVPN_CONFIG_DIR)
  File "/app/lib/python3.9/site-packages/eovpn/utils.py", line 51, in download_remote_to_destination
    raise NotZipException(gettext.gettext("Configuration Source MUST be a ZIP file."))
eovpn.utils.NotZipException: Configuration Source MUST be a ZIP file.