Jump to content

[SUPPORT] - stable-diffusion Advanced


Recommended Posts

Posted (edited)
On 5/5/2024 at 8:40 PM, Holaf said:

@wiloh95 leave the PUID and PGID by default.
The webUI not launching is probably related to something else.
Do you see errors in the log ?

Quote


                 CIO_TEST=<not set>
               CONDA_ROOT=/home/abc/miniconda3
           CURL_CA_BUNDLE=<not set>
               LD_PRELOAD=<not set>
                     PATH=/home/abc/miniconda3/bin:/command:/lsiopy/bin:/usr/local/sbin:/usr/loc
                          al/bin:/usr/sbin:/usr/bin:/sbin:/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : None
       user config file : /home/abc/.condarc
 populated config files : 
          conda version : 24.3.0
    conda-build version : not installed
         python version : 3.12.2.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=sandybridge
                          __conda=24.3.0=0
                          __cuda=12.4=0
                          __glibc=2.35=0
                          __linux=6.1.79=0
                          __unix=0=0
       base environment : /home/abc/miniconda3  (writable)
      conda av data dir : /home/abc/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/abc/miniconda3/pkgs
                          /home/abc/.conda/pkgs
       envs directories : /home/abc/miniconda3/envs
                          /home/abc/.conda/envs
               platform : linux-64
             user-agent : conda/24.3.0 requests/2.31.0 CPython/3.12.2 Linux/6.1.79-Unraid ubuntu/22.04.4 glibc/2.35 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8
                UID:GID : 99:100
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install <package>

Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.

Example: CONDA_NO_PLUGINS=true conda install <package>

Upload successful.

EnvironmentLocationNotFound: Not a conda environment: /config/02-sd-webui/conda-env


CondaError: Error encountered while attempting to create cache directory.
  Directory: /config/temp/conda/notices
  Exception: [Errno 13] Permission denied: '/config/temp/conda/notices'


CondaError: Error encountered while attempting to create cache directory.
  Directory: /config/temp/conda/notices
  Exception: [Errno 13] Permission denied: '/config/temp/conda/notices'

cp: failed to access '/config/02-sd-webui/parameters.txt': Permission denied
WARNING: The directory '/config/temp/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
WARNING: The directory '/config/temp/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Requirement already satisfied: pip in /home/abc/miniconda3/lib/python3.12/site-packages (24.0)
Collecting coloredlogs
  Downloading coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: flatbuffers in /home/abc/miniconda3/lib/python3.12/site-packages (24.3.25)
Collecting numpy
  Downloading numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.0/61.0 kB 5.2 MB/s eta 0:00:00
Requirement already satisfied: packaging in /home/abc/miniconda3/lib/python3.12/site-packages (23.2)
Collecting protobuf==3.20.3
  Downloading protobuf-3.20.3-py2.py3-none-any.whl.metadata (720 bytes)
Collecting sympy
  Downloading sympy-1.12-py3-none-any.whl.metadata (12 kB)
Collecting humanfriendly>=9.1 (from coloredlogs)
  Downloading humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB)
Requirement already satisfied: mpmath>=0.19 in /home/abc/miniconda3/lib/python3.12/site-packages (from sympy) (1.3.0)
Downloading protobuf-3.20.3-py2.py3-none-any.whl (162 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.1/162.1 kB 77.5 MB/s eta 0:00:00
Downloading coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.0/46.0 kB 92.6 MB/s eta 0:00:00
Downloading numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.0/18.0 MB 117.7 MB/s eta 0:00:00
Downloading sympy-1.12-py3-none-any.whl (5.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 248.3 kB/s eta 0:00:00
Downloading humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.8/86.8 kB 52.1 MB/s eta 0:00:00
Installing collected packages: sympy, protobuf, numpy, humanfriendly, coloredlogs
 

 

That is what my logs say, seems like I have issues with Conda or simply not having it. 

EDIT: found some more in the logs now. https://pastebin.com/Lt61J9WA
Guess my permissions are incorrect?

Edited by wiloh95
Link to comment
6 hours ago, Holaf said:

can you try to delete the file named "Delete this file to reset access rights at next launch" to see if it fixes your issue  ?

I deleted the file, restarted and it still doesn't work, but I did get a different log.

 

Quote

/etc/s6-overlay/s6-rc.d/init-chown/run: line 19: echo: write error: No space left on device
Cloning into '/config/02-sd-webui/webui'...
error: copy-fd: write returned: No space left on device
fatal: cannot copy '/usr/share/git-core/templates/description' to '/config/02-sd-webui/webui/.git/description': No space left on device
/02.sh: line 20: cd: /config/02-sd-webui/webui: No such file or directory
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: No remote configured to list refs from.
Collecting basicsr
  Downloading basicsr-1.4.2.tar.gz (172 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.5/172.5 kB 6.6 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────
  _____ __ __ _____ _____ _____ _____ 
 |     |  |  |   __|_   _|     |     |
 |   --|  |  |__   | | | |  |  | | | |
 |_____|_____|_____| |_| |_____|_|_|_|
       _____ __ __ _ __    ____  
      | __  |  |  | |  |  |    \ 
      | __ -|  |  | |  |__|  |  |
      |_____|_____|_|_____|____/ 

  Based on images from linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    99
User GID:    100
───────────────────────────────────────

[custom-init] No custom files found, skipping...
-------------------------------------
chown'ing directory to ensure correct permissions.
Done!
-------------------------------------


App is starting!
[ls.io-init] done.
Local branch up-to-date, keeping existing venv
Retrieving notices: ...working... done
Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: /home/abc/miniconda3

  added / updated specs:
    - conda-libmamba-solver


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-24.4.0               |  py312h06a4308_0         1.2 MB
    openssl-3.0.13             |       h7f8727e_1         5.2 MB
    ------------------------------------------------------------
                                           Total:         6.4 MB

The following packages will be UPDATED:

  conda                              24.3.0-py312h06a4308_0 --> 24.4.0-py312h06a4308_0 
  openssl                                 3.0.13-h7f8727e_0 --> 3.0.13-h7f8727e_1 

Downloading and Extracting Packages: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done

 

Link to comment
On 12/9/2023 at 12:01 PM, yoda42 said:

Hi, 

I have two small problems.
Even if I change the place of the output, it still generates the images in the default output file. (when I return from the docker setting my custom path is there) Do you have an idea? I use Fooocus GUI

The other problem is that the images are generated by the "nobody" user, which means that I constantly have to give myself write permission to delete the images. 

And really good work, the docker works very well! it's great! 

Hey.

 

Did you ever find a solution to this?

Link to comment
On 5/7/2024 at 5:08 PM, wiloh95 said:

I deleted the file, restarted and it still doesn't work, but I did get a different log.

 

 

 Solved it, apparently I didn't have enough space on my system directory since it only used my cache instead of array. Everything seems to be working now :)

Link to comment

Hello all.

 

 

I would like to take the time to thank everybody involved with this app/plugin for unRaid.  It is a marvel that so much work has gone into this.

 

I have a request.  I hope you don't mind.  

 

Could you add a option/flavour/User Interface of some sort that is CPU only and not GPU dependent. 

 

What I mean is.  Instead of selecting '05' for the ComfyUI 'WEBUI_VERSION' in the Edit page of the unRaid docker tab.  We could have a 'WEBUI_VERSION' for '17' and it be ComfyUI-cpuONLY.  I know not all versions of stable diffusion interfaces can work with just a CPU.  But some can and do.  

 

I understand that CPU only mode is SLOW as all hell.  But speed is not an issue if you just set a batch of images to be generated.  And then come back a few hours/days latter to see the results. System ram and lots of it will be the main factor.  And RAM is a lot cheaper than NVidia GPUs.

 

Thanks for taking the time to read this.

 

Oddsodz

Link to comment
On 2/18/2024 at 12:25 AM, Araso said:

I'm having a real struggle trying to get either InstantID or ReActor to work in Automatic1111.

 

Log when attempting to use InstantID:

################################################################
Launching launch.py...
################################################################
Python 3.11.5 (main, Sep 11 2023, 13:54:46) [GCC 11.2.0]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Launching Web UI with arguments: --listen --port 9000 --enable-insecure-extension-access --medvram --xformers --api
Civitai Helper: Get Custom Model Folder
[-] ADetailer initialized. version: 24.1.2, num models: 9
CivitAI Browser+: Aria2 RPC started
ControlNet preprocessor location: /config/02-sd-webui/webui/extensions/sd-webui-controlnet/annotator/downloads
2024-02-17 22:17:30,284 - ControlNet - INFO - ControlNet v1.1.440
2024-02-17 22:17:30,475 - ControlNet - INFO - ControlNet v1.1.440
WARNING ⚠️ user config directory '/home/abc/.config/Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path.
Loading weights [4726d3bab1] from /config/02-sd-webui/webui/models/Stable-diffusion/sdxlturbo/dreamshaperXL_v2TurboDpmppSDE.safetensors
2024-02-17 22:17:33,538 - AnimateDiff - INFO - Injecting LCM to UI.
2024-02-17 22:17:34,314 - AnimateDiff - INFO - Hacking i2i-batch.
2024-02-17 22:17:34,359 - ControlNet - INFO - ControlNet UI callback registered.
Civitai Helper: Set Proxy: 
Creating model from config: /config/02-sd-webui/webui/repositories/generative-models/configs/inference/sd_xl_base.yaml
Running on local URL:  http://0.0.0.0:9000

To create a public link, set `share=True` in `launch()`.
Startup time: 84.7s (prepare environment: 20.1s, import torch: 15.3s, import gradio: 3.0s, setup paths: 4.2s, initialize shared: 0.5s, other imports: 2.1s, setup codeformer: 0.6s, setup gfpgan: 0.1s, list SD models: 0.1s, load scripts: 34.0s, create ui: 3.8s, gradio launch: 0.6s).
Applying attention optimization: xformers... done.
Model loaded in 6.9s (load weights from disk: 1.4s, create model: 0.4s, apply weights to model: 4.6s, calculate empty prompt: 0.4s).
2024-02-17 22:19:59,112 - ControlNet - INFO - Preview Resolution = 512
Traceback (most recent call last):
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/gradio/routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1431, in process_api
    result = await self.call_function(
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/gradio/utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/extensions/sd-webui-controlnet/scripts/controlnet_ui/controlnet_ui_group.py", line 1013, in run_annotator
    result, is_image = preprocessor(
                       ^^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/extensions/sd-webui-controlnet/scripts/utils.py", line 80, in decorated_func
    return cached_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/extensions/sd-webui-controlnet/scripts/utils.py", line 64, in cached_func
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/extensions/sd-webui-controlnet/scripts/global_state.py", line 37, in unified_preprocessor
    return preprocessor_modules[preprocessor_name](*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/02-sd-webui/webui/extensions/sd-webui-controlnet/scripts/processor.py", line 801, in run_model_instant_id
    self.load_model()
  File "/config/02-sd-webui/webui/extensions/sd-webui-controlnet/scripts/processor.py", line 739, in load_model
    from insightface.app import FaceAnalysis
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/__init__.py", line 18, in <module>
    from . import app
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/app/__init__.py", line 2, in <module>
    from .mask_renderer import *
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/app/mask_renderer.py", line 8, in <module>
    from ..thirdparty import face3d
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/__init__.py", line 3, in <module>
    from . import mesh
  File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/mesh/__init__.py", line 9, in <module>
    from .cython import mesh_core_cython
ImportError: /home/abc/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpython-311-x86_64-linux-gnu.so)

 

Log when attempting to use ReActor:

################################################################
Launching launch.py...
################################################################
Python 3.11.5 (main, Sep 11 2023, 13:54:46) [GCC 11.2.0]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
CUDA 11.8
Launching Web UI with arguments: --listen --port 9000 --enable-insecure-extension-access --medvram --xformers --api
Civitai Helper: Get Custom Model Folder
[-] ADetailer initialized. version: 24.1.2, num models: 9
CivitAI Browser+: Aria2 RPC started
ControlNet preprocessor location: /config/02-sd-webui/webui/extensions/sd-webui-controlnet/annotator/downloads
2024-02-17 22:27:16,501 - ControlNet - INFO - ControlNet v1.1.440
2024-02-17 22:27:16,690 - ControlNet - INFO - ControlNet v1.1.440
WARNING ⚠️ user config directory '/home/abc/.config/Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path.
*** Error loading script: console_log_patch.py
    Traceback (most recent call last):
      File "/config/02-sd-webui/webui/modules/scripts.py", line 469, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 940, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/config/02-sd-webui/webui/extensions/sd-webui-reactor/scripts/console_log_patch.py", line 4, in <module>
        import insightface
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/__init__.py", line 18, in <module>
        from . import app
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/app/__init__.py", line 2, in <module>
        from .mask_renderer import *
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/app/mask_renderer.py", line 8, in <module>
        from ..thirdparty import face3d
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/__init__.py", line 3, in <module>
        from . import mesh
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/mesh/__init__.py", line 9, in <module>
        from .cython import mesh_core_cython
    ImportError: /home/abc/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpython-311-x86_64-linux-gnu.so)

---
*** Error loading script: reactor_api.py
    Traceback (most recent call last):
      File "/config/02-sd-webui/webui/modules/scripts.py", line 469, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 940, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/config/02-sd-webui/webui/extensions/sd-webui-reactor/scripts/reactor_api.py", line 17, in <module>
        from scripts.reactor_swapper import EnhancementOptions, swap_face, DetectionOptions
      File "/config/02-sd-webui/webui/extensions/sd-webui-reactor/scripts/reactor_swapper.py", line 11, in <module>
        import insightface
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/__init__.py", line 18, in <module>
        from . import app
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/app/__init__.py", line 2, in <module>
        from .mask_renderer import *
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/app/mask_renderer.py", line 8, in <module>
        from ..thirdparty import face3d
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/__init__.py", line 3, in <module>
        from . import mesh
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/mesh/__init__.py", line 9, in <module>
        from .cython import mesh_core_cython
    ImportError: /home/abc/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpython-311-x86_64-linux-gnu.so)

---
*** Error loading script: reactor_faceswap.py
    Traceback (most recent call last):
      File "/config/02-sd-webui/webui/modules/scripts.py", line 469, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 940, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/config/02-sd-webui/webui/extensions/sd-webui-reactor/scripts/reactor_faceswap.py", line 18, in <module>
        from reactor_ui import (
      File "/config/02-sd-webui/webui/extensions/sd-webui-reactor/reactor_ui/__init__.py", line 2, in <module>
        import reactor_ui.reactor_tools_ui as ui_tools
      File "/config/02-sd-webui/webui/extensions/sd-webui-reactor/reactor_ui/reactor_tools_ui.py", line 2, in <module>
        from scripts.reactor_swapper import build_face_model, blend_faces
      File "/config/02-sd-webui/webui/extensions/sd-webui-reactor/scripts/reactor_swapper.py", line 11, in <module>
        import insightface
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/__init__.py", line 18, in <module>
        from . import app
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/app/__init__.py", line 2, in <module>
        from .mask_renderer import *
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/app/mask_renderer.py", line 8, in <module>
        from ..thirdparty import face3d
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/__init__.py", line 3, in <module>
        from . import mesh
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/mesh/__init__.py", line 9, in <module>
        from .cython import mesh_core_cython
    ImportError: /home/abc/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpython-311-x86_64-linux-gnu.so)

---
*** Error loading script: reactor_swapper.py
    Traceback (most recent call last):
      File "/config/02-sd-webui/webui/modules/scripts.py", line 469, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/config/02-sd-webui/webui/modules/script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 940, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/config/02-sd-webui/webui/extensions/sd-webui-reactor/scripts/reactor_swapper.py", line 11, in <module>
        import insightface
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/__init__.py", line 18, in <module>
        from . import app
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/app/__init__.py", line 2, in <module>
        from .mask_renderer import *
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/app/mask_renderer.py", line 8, in <module>
        from ..thirdparty import face3d
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/__init__.py", line 3, in <module>
        from . import mesh
      File "/config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/mesh/__init__.py", line 9, in <module>
        from .cython import mesh_core_cython
    ImportError: /home/abc/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /config/02-sd-webui/webui/venv/lib/python3.11/site-packages/insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpython-311-x86_64-linux-gnu.so)

---
22:27:20 - ReActor - STATUS - Running v0.7.0-a1 on Device: CUDA
Loading weights [4726d3bab1] from /config/02-sd-webui/webui/models/Stable-diffusion/sdxlturbo/dreamshaperXL_v2TurboDpmppSDE.safetensors
2024-02-17 22:27:21,571 - AnimateDiff - INFO - Injecting LCM to UI.
2024-02-17 22:27:22,412 - AnimateDiff - INFO - Hacking i2i-batch.
2024-02-17 22:27:22,458 - ControlNet - INFO - ControlNet UI callback registered.
Civitai Helper: Set Proxy: 
Creating model from config: /config/02-sd-webui/webui/repositories/generative-models/configs/inference/sd_xl_base.yaml
Running on local URL:  http://0.0.0.0:9000

To create a public link, set `share=True` in `launch()`.
Startup time: 85.3s (prepare environment: 26.2s, import torch: 15.4s, import gradio: 3.1s, setup paths: 4.5s, initialize shared: 0.5s, other imports: 2.2s, setup codeformer: 0.6s, setup gfpgan: 0.1s, list SD models: 0.1s, load scripts: 27.9s, create ui: 3.7s, gradio launch: 0.6s).
Applying attention optimization: xformers... done.
Model loaded in 6.7s (load weights from disk: 1.4s, create model: 0.5s, apply weights to model: 3.3s, calculate empty prompt: 1.5s).

 

The error with both of these is: ImportError: /home/abc/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found

 

When I console into the container and run:

 

strings /home/abc/miniconda3/bin/../lib/libstdc++.so.6 | grep GLIBCXX

 

I get:

root@1dd670cc5061:/# strings /home/abc/miniconda3/bin/../lib/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_3.4.27
GLIBCXX_3.4.28
GLIBCXX_3.4.29
GLIBCXX_DEBUG_MESSAGE_LENGTH
_ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv@GLIBCXX_3.4
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv@@GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw@GLIBCXX_3.4
_ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv@@GLIBCXX_3.4.5
GLIBCXX_3.4.21
GLIBCXX_3.4.9
_ZSt10adopt_lock@@GLIBCXX_3.4.11
GLIBCXX_3.4.10
GLIBCXX_3.4.16
GLIBCXX_3.4.1
_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv@GLIBCXX_3.4
GLIBCXX_3.4.28
_ZNSs7_M_copyEPcPKcm@GLIBCXX_3.4
GLIBCXX_3.4.25
_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv@@GLIBCXX_3.4.5
_ZNSs7_M_moveEPcPKcm@@GLIBCXX_3.4.5
_ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv@GLIBCXX_3.4
_ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEm@@GLIBCXX_3.4.5
_ZNSs4_Rep26_M_set_length_and_sharableEm@GLIBCXX_3.4
_ZSt10defer_lock@@GLIBCXX_3.4.11
_ZN10__gnu_norm15_List_node_base4swapERS0_S1_@@GLIBCXX_3.4
_ZNSs9_M_assignEPcmc@@GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEmmPKc@@GLIBCXX_3.4.5
_ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv@@GLIBCXX_3.4.5
_ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwm@GLIBCXX_3.4
GLIBCXX_3.4.24
_ZNVSt9__atomic011atomic_flag12test_and_setESt12memory_order@@GLIBCXX_3.4.11
GLIBCXX_3.4.20
_ZNSt11char_traitsIwE2eqERKwS2_@@GLIBCXX_3.4.5
GLIBCXX_3.4.12
_ZNSi6ignoreEv@@GLIBCXX_3.4.5
GLIBCXX_3.4.2
_ZNSt11char_traitsIcE2eqERKcS2_@@GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.15
_ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv@@GLIBCXX_3.4.5
_ZNSs9_M_assignEPcmc@GLIBCXX_3.4
GLIBCXX_3.4.19
_ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv@GLIBCXX_3.4
_ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv@GLIBCXX_3.4
GLIBCXX_3.4.27
_ZN10__gnu_norm15_List_node_base7reverseEv@@GLIBCXX_3.4
_ZN10__gnu_norm15_List_node_base4hookEPS0_@@GLIBCXX_3.4
_ZNSt11char_traitsIwE2eqERKwS2_@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwm@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwm@@GLIBCXX_3.4.5
GLIBCXX_3.4.23
GLIBCXX_3.4.3
GLIBCXX_3.4.7
_ZNSi6ignoreEl@@GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw@@GLIBCXX_3.4.5
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv@GLIBCXX_3.4
_ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv@@GLIBCXX_3.4.5
_ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwm@@GLIBCXX_3.4.5
GLIBCXX_3.4.18
_ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEm@GLIBCXX_3.4
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEl@@GLIBCXX_3.4.5
_ZSt15future_category@@GLIBCXX_3.4.14
_ZNSi6ignoreEl@GLIBCXX_3.4
GLIBCXX_3.4.29
_ZNSt11char_traitsIcE2eqERKcS2_@GLIBCXX_3.4
_ZNKSs15_M_check_lengthEmmPKc@GLIBCXX_3.4
_ZN10__gnu_norm15_List_node_base8transferEPS0_S1_@@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwmw@GLIBCXX_3.4
_ZNVSt9__atomic011atomic_flag5clearESt12memory_order@@GLIBCXX_3.4.11
_ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv@@GLIBCXX_3.4.5
_ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv@GLIBCXX_3.4
_ZNSs7_M_moveEPcPKcm@GLIBCXX_3.4
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEl@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwmw@@GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEmmPKc@GLIBCXX_3.4
_ZNKSs11_M_disjunctEPKc@@GLIBCXX_3.4.5
_ZN10__gnu_norm15_List_node_base6unhookEv@@GLIBCXX_3.4
GLIBCXX_3.4.22
_ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv@@GLIBCXX_3.4.5
_ZNSi6ignoreEv@GLIBCXX_3.4
_ZNSs7_M_copyEPcPKcm@@GLIBCXX_3.4.5
GLIBCXX_3.4.8
GLIBCXX_3.4.13
_ZSt11try_to_lock@@GLIBCXX_3.4.11
_ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv@@GLIBCXX_3.4.5
GLIBCXX_3.4.17
GLIBCXX_3.4.4
_ZNKSs15_M_check_lengthEmmPKc@@GLIBCXX_3.4.5
_ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv@GLIBCXX_3.4
_ZNSs4_Rep26_M_set_length_and_sharableEm@@GLIBCXX_3.4.5
GLIBCXX_3.4.26
_ZNKSs11_M_disjunctEPKc@GLIBCXX_3.4
root@1dd670cc5061:/#

 

When I run:

 

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

 

I get:

root@1dd670cc5061:/# strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_3.4.27
GLIBCXX_3.4.28
GLIBCXX_3.4.29
GLIBCXX_3.4.30
GLIBCXX_DEBUG_MESSAGE_LENGTH
root@1dd670cc5061:/#

 

So GLIBCXX_3.4.32 is not available.

 

However, I've recently had to wipe out this container but I've had this container installed in the past. I think I first installed it around late November/early December. During this time, I have InstantID installed and working with no errors. I have no logs from this time because - why would I? It was just working. I don't understand how it worked just a week ago and now, with a clean install - it just won't.

 

I also see this container has only been updated less than a week ago so I thought it could be that. So I pulled an older tag and tested. I tried another. Neither the :latest tag, nor any other will let InstantID or ReActor run without this GLIBCXX_3.4.30 error.

 

I've tried any number of ways to fix this. Basically do a search for 'GLIBCXX_3.4.32 not found' and attempt any of the fixes, like symbolic links or even outright replacing the files. I've even messed around with trying to set 'LD_LIBRARY_PATH'. I just cannot get this to work. I can't find a way to update GCC inside the container either. The only thing that looks promising is from here which says:

 

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install --only-upgrade libstdc++6

 

So how does one add a ppa to a linuxserver base image? I can't even specify a lower version of insightface as they don't make it available. I'm truly stuck which is doubly annoying because it did actually work for me before.

 

I will say that everything else I use in Automatic1111 works perfectly fine. Also, I'm running on unRAID v6.12.6 and installed this container from CA.

 

I can't be the only one who is wanting to use InstantID or ReActor. Anyone else have it working or not working? Any fix for this?

Did you ever get this working in ComfyUI?  I have the EXACT same issue.  If so, what was the fix?

Link to comment
  • 2 weeks later...

I'm also having issues.

 

an update to python's setuptools has broken Automatic1111.  According to the issue ticket, you are supposed to fix it by rolling setuptools back to a version pre-70.  I'm still trying to figure out how to do it inside the docker.  I've tried using the console for both Unraid and the container.

 

 

Link to issue on Automatic1111's github: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15863

Link to comment
17 hours ago, RoboCanvas said:

Did anything change recently?

 

I'm having a lot of problems with easy-diffussion. I'm getting "error when launching WebUI" on new installs.

 

Ideas?

 

I just tried installing it for the first time and am getting the same error. I tried several different UI options with the same result. 

 

Edit... the Fooocus UI works, but some of the others do not. 

Edited by WalkerJ
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...