AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.47k stars 26.73k forks source link

[Bug]: error in console after updating ext #8199

Closed iqubik closed 1 year ago

iqubik commented 1 year ago

Is there an existing issue for this?

What happened?

If i update my extension and restart ui i get error:

Steps to reproduce the problem

  1. Go to EXT
  2. Press UPdate, restart
  3. error

What should have happened?

not normal restart but programm still running and if i f5 key - all ok

Commit where the problem happens

latest version

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--autolaunch --xformers

List of extensions

SD-latent-mirroring https://github.com/dfaker/SD-latent-mirroring e1e594f7 (Sun Jan 1 04:04:48 2023) unknown Stable-Diffusion-Webui-Prompt-Translator https://github.com/butaixianran/Stable-Diffusion-Webui-Prompt-Translator d42efead (Sun Feb 19 10:55:24 2023) unknown StylePile https://github.com/some9000/StylePile abc71631 (Thu Dec 8 06:48:39 2022) unknown clip-interrogator-ext https://github.com/pharmapsychotic/clip-interrogator-ext.git ef14e993 (Mon Feb 20 22:57:45 2023) unknown deforum-for-automatic1111-webui https://github.com/deforum-art/deforum-for-automatic1111-webui 285a98f3 (Mon Feb 27 09:11:44 2023) unknown depthmap2mask https://github.com/Extraltodeus/depthmap2mask 3c1874f5 (Wed Dec 7 02:40:16 2022) unknown gif2gif https://github.com/LonicaMewinsky/gif2gif 6cb0cc77 (Mon Feb 27 18:55:19 2023) unknown openpose-editor https://github.com/fkunn1326/openpose-editor.git ba05243f (Tue Feb 28 07:23:43 2023) unknown sd-dynamic-thresholding https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git 3bfbc074 (Wed Feb 22 21:13:11 2023) unknown sd-extension-steps-animation https://github.com/vladmandic/sd-extension-steps-animation 4325abb4 (Sat Jan 28 16:00:40 2023) unknown sd-extension-system-info https://github.com/vladmandic/sd-extension-system-info e2419952 (Sun Feb 26 11:12:15 2023) unknown sd-webui-additional-networks https://github.com/kohya-ss/sd-webui-additional-networks.git 822f2136 (Thu Feb 16 12:57:55 2023) unknown sd-webui-ar https://github.com/alemelis/sd-webui-ar.git ce0a645c (Thu Feb 23 13:59:23 2023) unknown sd-webui-controlnet https://github.com/Mikubill/sd-webui-controlnet.git 2ce17c0a (Tue Feb 28 16:06:10 2023) unknown sd-webui-multiple-hypernetworks https://github.com/antis0007/sd-webui-multiple-hypernetworks.git dc37ce84 (Tue Jan 10 06:48:35 2023) unknown sd-webui-riffusion https://github.com/enlyth/sd-webui-riffusion 044ff5fa (Wed Jan 25 13:24:31 2023) unknown sd-webui-supermerger https://github.com/hako-mikan/sd-webui-supermerger.git 488b368e (Tue Feb 28 15:15:42 2023) unknown stable-diffusion-webui-Prompt_Generator https://github.com/imrayya/stable-diffusion-webui-Prompt_Generator 1e7a6f92 (Sat Feb 11 11:10:47 2023) unknown stable-diffusion-webui-images-browser https://github.com/yfszzx/stable-diffusion-webui-images-browser a42c7a30 (Sat Dec 10 11:01:30 2022) unknown stable-diffusion-webui-inspiration https://github.com/yfszzx/stable-diffusion-webui-inspiration 0f3f699d (Fri Dec 9 03:50:47 2022) unknown stable-diffusion-webui-localization-ru_RU https://github.com/ProfaneServitor/stable-diffusion-webui-localization-ru_RU 446560d3 (Mon Dec 19 11:08:58 2022) unknown stable-diffusion-webui-promptgen https://github.com/AUTOMATIC1111/stable-diffusion-webui-promptgen.git 84e58b5d (Fri Jan 20 11:15:12 2023) unknown video_loopback_for_webui https://github.com/fishslot/video_loopback_for_webui e1390f53 (Mon Feb 27 15:18:18 2023) unknown LDSR built-in
Lora built-in
ScuNET built-in
SwinIR built-in
prompt-bracket-checker built-in

Console logs

To create a public link, set `share=True` in `launch()`.
Closing server running on port: 7860
Restarting UI...
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Traceback (most recent call last):
  File "C:\sd\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\sd\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
    result = await self.call_function(
  File "C:\sd\venv\lib\site-packages\gradio\blocks.py", line 795, in call_function
    assert block_fn.fn, f"function with index {fn_index} not defined."
AssertionError: function with index 632 not defined.
====
<html>
<body>
<!--StartFragment-->

SD-latent-mirroring | https://github.com/dfaker/SD-latent-mirroring | e1e594f7 (Sun Jan 1 04:04:48 2023) | unknown
Stable-Diffusion-Webui-Prompt-Translator | https://github.com/butaixianran/Stable-Diffusion-Webui-Prompt-Translator | d42efead (Sun Feb 19 10:55:24 2023) | unknown
StylePile | https://github.com/some9000/StylePile | abc71631 (Thu Dec 8 06:48:39 2022) | unknown
clip-interrogator-ext | https://github.com/pharmapsychotic/clip-interrogator-ext.git | ef14e993 (Mon Feb 20 22:57:45 2023) | unknown
deforum-for-automatic1111-webui | https://github.com/deforum-art/deforum-for-automatic1111-webui | 285a98f3 (Mon Feb 27 09:11:44 2023) | unknown
depthmap2mask | https://github.com/Extraltodeus/depthmap2mask | 3c1874f5 (Wed Dec 7 02:40:16 2022) | unknown
gif2gif | https://github.com/LonicaMewinsky/gif2gif | 6cb0cc77 (Mon Feb 27 18:55:19 2023) | unknown
openpose-editor | https://github.com/fkunn1326/openpose-editor.git | ba05243f (Tue Feb 28 07:23:43 2023) | unknown
sd-dynamic-thresholding | https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git | 3bfbc074 (Wed Feb 22 21:13:11 2023) | unknown
sd-extension-steps-animation | https://github.com/vladmandic/sd-extension-steps-animation | 4325abb4 (Sat Jan 28 16:00:40 2023) | unknown
sd-extension-system-info | https://github.com/vladmandic/sd-extension-system-info | e2419952 (Sun Feb 26 11:12:15 2023) | unknown
sd-webui-additional-networks | https://github.com/kohya-ss/sd-webui-additional-networks.git | 822f2136 (Thu Feb 16 12:57:55 2023) | unknown
sd-webui-ar | https://github.com/alemelis/sd-webui-ar.git | ce0a645c (Thu Feb 23 13:59:23 2023) | unknown
sd-webui-controlnet | https://github.com/Mikubill/sd-webui-controlnet.git | 2ce17c0a (Tue Feb 28 16:06:10 2023) | unknown
sd-webui-multiple-hypernetworks | https://github.com/antis0007/sd-webui-multiple-hypernetworks.git | dc37ce84 (Tue Jan 10 06:48:35 2023) | unknown
sd-webui-riffusion | https://github.com/enlyth/sd-webui-riffusion | 044ff5fa (Wed Jan 25 13:24:31 2023) | unknown
sd-webui-supermerger | https://github.com/hako-mikan/sd-webui-supermerger.git | 488b368e (Tue Feb 28 15:15:42 2023) | unknown
stable-diffusion-webui-Prompt_Generator | https://github.com/imrayya/stable-diffusion-webui-Prompt_Generator | 1e7a6f92 (Sat Feb 11 11:10:47 2023) | unknown
stable-diffusion-webui-images-browser | https://github.com/yfszzx/stable-diffusion-webui-images-browser | a42c7a30 (Sat Dec 10 11:01:30 2022) | unknown
stable-diffusion-webui-inspiration | https://github.com/yfszzx/stable-diffusion-webui-inspiration | 0f3f699d (Fri Dec 9 03:50:47 2022) | unknown
stable-diffusion-webui-localization-ru_RU | https://github.com/ProfaneServitor/stable-diffusion-webui-localization-ru_RU | 446560d3 (Mon Dec 19 11:08:58 2022) | unknown
stable-diffusion-webui-promptgen | https://github.com/AUTOMATIC1111/stable-diffusion-webui-promptgen.git | 84e58b5d (Fri Jan 20 11:15:12 2023) | unknown
video_loopback_for_webui | https://github.com/fishslot/video_loopback_for_webui | e1390f53 (Mon Feb 27 15:18:18 2023) | unknown
LDSR | built-in |   |  
Lora | built-in |   |  
ScuNET | built-in |   |  
SwinIR | built-in |   |  
prompt-bracket-checker | built-in

<br class="Apple-interchange-newline"><!--EndFragment-->
</body>
</html>Extension    URL Version Update
SD-latent-mirroring https://github.com/dfaker/SD-latent-mirroring   e1e594f7 (Sun Jan 1 04:04:48 2023)  unknown
Stable-Diffusion-Webui-Prompt-Translator    https://github.com/butaixianran/Stable-Diffusion-Webui-Prompt-Translator    d42efead (Sun Feb 19 10:55:24 2023) unknown
StylePile   https://github.com/some9000/StylePile   abc71631 (Thu Dec 8 06:48:39 2022)  unknown
clip-interrogator-ext   https://github.com/pharmapsychotic/clip-interrogator-ext.git    ef14e993 (Mon Feb 20 22:57:45 2023) unknown
deforum-for-automatic1111-webui https://github.com/deforum-art/deforum-for-automatic1111-webui  285a98f3 (Mon Feb 27 09:11:44 2023) unknown
depthmap2mask   https://github.com/Extraltodeus/depthmap2mask   3c1874f5 (Wed Dec 7 02:40:16 2022)  unknown
gif2gif https://github.com/LonicaMewinsky/gif2gif   6cb0cc77 (Mon Feb 27 18:55:19 2023) unknown
openpose-editor https://github.com/fkunn1326/openpose-editor.git    ba05243f (Tue Feb 28 07:23:43 2023) unknown
sd-dynamic-thresholding https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git 3bfbc074 (Wed Feb 22 21:13:11 2023) unknown
sd-extension-steps-animation    https://github.com/vladmandic/sd-extension-steps-animation  4325abb4 (Sat Jan 28 16:00:40 2023) unknown
sd-extension-system-info    https://github.com/vladmandic/sd-extension-system-info  e2419952 (Sun Feb 26 11:12:15 2023) unknown
sd-webui-additional-networks    https://github.com/kohya-ss/sd-webui-additional-networks.git    822f2136 (Thu Feb 16 12:57:55 2023) unknown
sd-webui-ar https://github.com/alemelis/sd-webui-ar.git ce0a645c (Thu Feb 23 13:59:23 2023) unknown
sd-webui-controlnet https://github.com/Mikubill/sd-webui-controlnet.git 2ce17c0a (Tue Feb 28 16:06:10 2023) unknown
sd-webui-multiple-hypernetworks https://github.com/antis0007/sd-webui-multiple-hypernetworks.git    dc37ce84 (Tue Jan 10 06:48:35 2023) unknown
sd-webui-riffusion  https://github.com/enlyth/sd-webui-riffusion    044ff5fa (Wed Jan 25 13:24:31 2023) unknown
sd-webui-supermerger    https://github.com/hako-mikan/sd-webui-supermerger.git  488b368e (Tue Feb 28 15:15:42 2023) unknown
stable-diffusion-webui-Prompt_Generator https://github.com/imrayya/stable-diffusion-webui-Prompt_Generator  1e7a6f92 (Sat Feb 11 11:10:47 2023) unknown
stable-diffusion-webui-images-browser   https://github.com/yfszzx/stable-diffusion-webui-images-browser a42c7a30 (Sat Dec 10 11:01:30 2022) unknown
stable-diffusion-webui-inspiration  https://github.com/yfszzx/stable-diffusion-webui-inspiration    0f3f699d (Fri Dec 9 03:50:47 2022)  unknown
stable-diffusion-webui-localization-ru_RU   https://github.com/ProfaneServitor/stable-diffusion-webui-localization-ru_RU    446560d3 (Mon Dec 19 11:08:58 2022) unknown
stable-diffusion-webui-promptgen    https://github.com/AUTOMATIC1111/stable-diffusion-webui-promptgen.git   84e58b5d (Fri Jan 20 11:15:12 2023) unknown
video_loopback_for_webui    https://github.com/fishslot/video_loopback_for_webui    e1390f53 (Mon Feb 27 15:18:18 2023) unknown
LDSR    [built-in](http://127.0.0.1:7860/)      
Lora    [built-in](http://127.0.0.1:7860/)      
ScuNET  [built-in](http://127.0.0.1:7860/)      
SwinIR  [built-in](http://127.0.0.1:7860/)      
prompt-bracket-checker  [built-in](http://127.0.0.1:7860/)

Additional information

No response

Omniphantasm commented 1 year ago

Ditto, same steps as OP. Check for updates, hit restart, bunch of error boxes on webUI.

After which I can't even retrieve the list extensions from URL despite restarting the entire machine.

zejacky commented 1 year ago

I had the same problem. After I deleted some extensions in the extensions folder, it works again. After investigating, In my case, the problematic (extension) was dreambooth, after I was updating it today 01.03.2023.

Edit: With dreambooth commit 43ae9d55531004f1dedaea7ac2443e9b16739913 I have no update issue. The error occurs afterwards.

I'm not updating the dreambooth extension at the moment, because it's reinstalling a lot of things like xformers, bitsandbytes,transformers etc.

Error Message after dreambooth update: _Check for Updates #Bug Cannot check for all Extensions, Error File "..\modules\ui_extensions.py", line 66, in check_updates ext.check_updates() File "..\modules\extensions.py", line 69, in check_updates for fetch in repo.remote().fetch("--dry-run"): File "..venv\lib\site-packages\git\remote.py", line 1015, in fetch res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout) File "..\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr proc.wait(stderr=stderr_text) File "..\venv\lib\site-packages\git\cmd.py", line 604, in wait raise GitCommandError(remove_password_ifpresent(self.args), status, errstr) git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git fetch -v -- origin --dry-run stderr: 'fatal: couldn't find remote ref --dry-run'

Harvester62 commented 1 year ago

I get the same error message for any and ALL installed Extensions when checking for updates (the following is just the first Traceback error for the first Extension being checked for updates):

Error checking updates for AI-WEBUI-scripts-Random: Traceback (most recent call last): File "C:\stable-diffusion-webui\modules\ui_extensions.py", line 66, in check_updates ext.check_updates() File "C:\stable-diffusion-webui\modules\extensions.py", line 69, in check_updates for fetch in repo.remote().fetch("--dry-run"): File "C:\stable-diffusion-webui\venv\lib\site-packages\git\remote.py", line 1015, in fetch res = self._get_fetch_info_from_stderr(proc, progress, kill_after_timeout=kill_after_timeout) File "C:\stable-diffusion-webui\venv\lib\site-packages\git\remote.py", line 854, in _get_fetch_info_from_stderr proc.wait(stderr=stderr_text) File "C:\stable-diffusion-webui\venv\lib\site-packages\git\cmd.py", line 604, in wait raise GitCommandError(remove_password_if_present(self.args), status, errstr) git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git fetch -v -- origin --dry-run stderr: 'fatal: couldn't find remote ref --dry-run'

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8 OS: Windows 10 Pro 64 bit (32 GB RAM) Graphics Card: NVIDIA GTX1070 (8GB VRAM) Browser: Firefox Command Line Arguments: --xformers --opt-split-attention --disable-safe-unpickle --api --allow-code --administrator --medvram --theme dark

aunymoons commented 1 year ago

I think it might be an issue with how its trying to do the fetch:

cmdline: git fetch -v -- origin --dry-run

it should be

cmdline: git fetch -v --origin --dry-run

but i cant find the file that actually generates that command, it seems like part of the API

Harvester62 commented 1 year ago

There seems to be already a bug fix for this issue:

https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/8118

And after I applied the changes to those two files the Check for Updates is working fine now.

oliverban commented 1 year ago

What did you "apply"? Can't find any words or sentences that give the fix. I don't use git much so I'm clearly overlooking something.

Harvester62 commented 1 year ago

I edited manually the two files: extensions.py inside \modules, and requirements_versions.txt https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/8118/files

oliverban commented 1 year ago

I edited manually the two files: extensions.py inside \modules, and requirements_versions.txt https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/8118/files

Thanks so much! :D

EDIT: Worked like a charm, thanks! EDIT2: In controlnet I'm now getting an error, but we'll see if it's related - prolly an update coming from A1111 soon anyway will just gitpull

Harvester62 commented 1 year ago

Remember that when you will do a git pull of the SD Web UI installation to update it, you might need to delete or reinstate the old versions of those two files if they are included in the pull from the repo (I usually make a copy of any modified file and rename it as ._bak so I can restore the original version in case of problems), otherwise git will ask you to "merge" your changes.

oliverban commented 1 year ago

Thanks for the heads up! I'll just delete the files and let the update do it's thing! I'm having some trouble with controlnet which is why I wanted to have it fixed, but it seems CN is still having some issues