lunamidori5 / Midori-AI

71 stars 22 forks source link

SSL - issue when installing InvokeAI #14

Closed Anto79-ops closed 3 months ago

Anto79-ops commented 3 months ago

Hi,

thanks for creating a great installer!

When trying to install InvokeAI in the subsystem, I get this error after using the ./install.sh in the subsystem command line It downloads all the files from the wheels (from InvokeAI) no problem there, then it asks me if I want an automatic install (yes, I press a), then iit runs a bit, but crashes out below

Checking Name: anto-midori_ai_subsystem-1, ID: [REDACTED]
Found subsystem, logging into: anto-midori_ai_subsystem-1 / [REDACTED]
Entering subsystem shell! Type ``Exit`` to exit...
------------------------------------------
Press enter to start the shell...
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 749, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 519, in open
    response = self._open(req, data)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)>

[2024-03-11 18:18:02,434]::[InvokeAI]::INFO --> Downloading core tokenizers and text encoders
[2024-03-11 18:18:02,818]::[InvokeAI]::ERROR --> (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-uncased/resolve/main/tokenizer_config.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))"), '(Request ID: [REDACTED])')
[2024-03-11 18:18:03,092]::[InvokeAI]::INFO --> Scanning /root/invokeai/data/models for new models
[2024-03-11 18:18:03,173]::[InvokeAI]::INFO --> Scanned 9 files and directories, imported 0 models
[2024-03-11 18:18:03,234]::[InvokeAI]::INFO --> Installing InvokeAI/ip_adapter_sd15 [1/10]

A network error was encountered during configuration and download: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/InvokeAI/ip_adapter_sd15 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))"), '(Request ID: [REDACTED])')
To try again, find the "invokeai" directory, run the script "invoke.sh" or "invoke.bat"
and choose option 7 to fix a broken install, optionally followed by option 5 to install models.
Alternatively you can relaunch the installer.
root@ae600451a535:/app/files/invokeai/InvokeAI-Installer#
lunamidori5 commented 3 months ago

@Anto79-ops this seems to be a bug with InvokeAIs installer, please report the bug there <3