#Git Error in Install

1 messages · Page 1 of 1 (latest)

shell tinsel
#

15:07:37.135 [Error] Failed to get git commit date: System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'git' with working directory 'Q:\Software\MagicSetEditor\MSE.UI\SwarmUI'. The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at SwarmUI.Utils.Utilities.RunGitProcess(String args, String dir, Boolean canRetry) in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\Utils\Utilities.cs:line 1244 at SwarmUI.Core.Program.<>c.<<Main>b__28_4>d.MoveNext() in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\Core\Program.cs:line 212 15:07:37.136 [Error] Internal error in async task (check for updates): System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'git' with working directory 'Q:\Software\MagicSetEditor\MSE.UI\SwarmUI'. The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at SwarmUI.Utils.Utilities.RunGitProcess(String args, String dir, Boolean canRetry) in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\Utils\Utilities.cs:line 1244 at SwarmUI.Core.Program.<>c.<<Main>b__28_3>d.MoveNext() in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\Core\Program.cs:line 186 --- End of stack trace from previous location --- at SwarmUI.Utils.Utilities.<>c__DisplayClass55_0.<<RunCheckedTask>b__0>d.MoveNext() in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\Utils\Utilities.cs:line 652

The installation continues until after it fully installs ComfyUI, then serves an Internal Error on the page and this error in the CMD.

15:13:09.492 [Error] [WebAPI] Error handling API request '/API/InstallConfirmWS' for user 'local': Internal exception: System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'git' with working directory 'Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\dlbackend\comfy\ComfyUI'. The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at SwarmUI.Utils.Utilities.RunGitProcess(String args, String dir, Boolean canRetry) in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\Utils\Utilities.cs:line 1244 at SwarmUI.Core.Installation.BackendComfyWindows(Boolean install_amd) in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\Core\Installation.cs:line 153 at SwarmUI.Core.Installation.BackendComfy(Boolean install_amd) in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\Core\Installation.cs:line 179 at SwarmUI.Core.Installation.Backend(String backend, Boolean install_amd) in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\Core\Installation.cs:line 222 at SwarmUI.Core.Installation.Install(WebSocket socket, String theme, String installed_for, String backend, String models, Boolean install_amd, String language, Boolean make_shortcut) in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\Core\Installation.cs:line 330 at SwarmUI.WebAPI.BasicAPIFeatures.InstallConfirmWS(Session session, WebSocket socket, String theme, String installed_for, String backend, String models, Boolean install_amd, String language, Boolean make_shortcut) in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\WebAPI\BasicAPIFeatures.cs:line 195 at SwarmUI.WebAPI.API.HandleAsyncRequest(HttpContext context) in Q:\Software\MagicSetEditor\MSE.UI\SwarmUI\src\WebAPI\API.cs:line 164

File is definitely there by the time it tries to look for it, as seen in attached images above. What could be happening?

vocal spear
#

heck is "MagicSetEditor" 0.o?

vocal spear
#

that is not even close to an answer

shell tinsel
#

just the naming convention of that project folder

vocal spear
#

something's wrong with running git, either you have a bad git install somehow, or it doesn't like your Q drive, or the . in MSE.UI maybe is throwing it off?

shell tinsel
#

i have reinstalled git already but i'm not opposed to trying again

shell tinsel
#

[Error] Failed to get git commit date: System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'git' with working directory 'Q:\Software\MagicSetEditor\MSEUI\SwarmUI'. The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at SwarmUI.Utils.Utilities.RunGitProcess(String args, String dir, Boolean canRetry) in Q:\Software\MagicSetEditor\MSEUI\SwarmUI\src\Utils\Utilities.cs:line 1244 at SwarmUI.Core.Program.<>c.<<Main>b__28_4>d.MoveNext() in Q:\Software\MagicSetEditor\MSEUI\SwarmUI\src\Core\Program.cs:line 212

#

[Error] Internal error in async task (check for updates): System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'git' with working directory 'Q:\Software\MagicSetEditor\MSEUI\SwarmUI'. The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at SwarmUI.Utils.Utilities.RunGitProcess(String args, String dir, Boolean canRetry) in Q:\Software\MagicSetEditor\MSEUI\SwarmUI\src\Utils\Utilities.cs:line 1244 at SwarmUI.Core.Program.<>c.<<Main>b__28_3>d.MoveNext() in Q:\Software\MagicSetEditor\MSEUI\SwarmUI\src\Core\Program.cs:line 186 --- End of stack trace from previous location --- at SwarmUI.Utils.Utilities.<>c__DisplayClass55_0.<<RunCheckedTask>b__0>d.MoveNext() in Q:\Software\MagicSetEditor\MSEUI\SwarmUI\src\Utils\Utilities.cs:line 652

vocal spear
shell tinsel
#

lemme take a look at that boss

#

yeah I'm using the .bat file?

#

i can try the alternate install

#

with a fresh install of git, and the alt install process still results in git somehow not recognizing it

#

``The system cannot find the path specified.
The system cannot find the path specified.
'git' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
error: The source specified has already been added to the list of available package sources. Provide a unique source.
Determining projects to restore...
Restored Q:\Software\MagicSetEditor\MSEUI\SwarmUI\src\SwarmUI.csproj (in 223 ms).
SwarmUI -> Q:\Software\MagicSetEditor\MSEUI\SwarmUI\src\bin\live_release\SwarmUI.dll

Build succeeded.
0 Warning(s)
0 Error(s)

Time Elapsed 00:00:03.09
'git' is not recognized as an internal or external command,
operable program or batch file.
15:29:43.465 [Init] === SwarmUI v0.9.7.4 Starting at 2026-01-16 15:29:43 ===``

shell tinsel
#

from the install, and then for an extra measure i added the new folder as a safe directory for git

shell tinsel
#

Git Error in Install

shell tinsel
#

@vocal spear i hate to bug you but any thoughts on how i should approach this when i get back to my desk sunday night?

vocal spear
#

nope tbh

#

you have git but you don't have git

#

i do not know what even

plush vortex
#

the sounds like your path is fucked up in some unique way

#

Maybe uninstalling git, checking your path after and removing git related stuff is the way

shell tinsel
#

Thank you both very much, will update

shell tinsel
#

Tried uninstalling git, removing all files, reinstalling, then running the .bat, same error.

#

Took a look under the hood with the .bat and found there was an avenue for letting the .bat install git on its own so gave that a shot

#

in the following error log, the .bat installs git as an administrator successfully, then fails to recognize git as a command immediately after

#

INFO: Could not find files for the given pattern(s). Found Git [Git.Git] Version 2.52.0 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://github.com/git-for-windows/git/releases/download/v2.52.0.windows.1/Git-2.52.0-64-bit.exe ██████████████████████████████ 63.2 MB / 63.2 MB Successfully verified installer hash Starting package install... The installer will request to run as administrator. Expect a prompt. Successfully installed Cloning into 'SwarmUI'... remote: Enumerating objects: 34493, done. remote: Counting objects: 100% (450/450), done. remote: Compressing objects: 100% (245/245), done. remote: Total 34493 (delta 272), reused 212 (delta 205), pack-reused 34043 (from 3) Receiving objects: 100% (34493/34493), 33.47 MiB | 12.05 MiB/s, done. Resolving deltas: 100% (27711/27711), done. Updating files: 100% (413/413), done. The system cannot find the path specified. The system cannot find the path specified. 'git' is not recognized as an internal or external command, operable program or batch file.

vocal spear
#

ftr i'm extremely confused, i've never seen this happen, and all the suggestions i can offer are various forms of "jiggle the machine until it stops saying impossible things"

#

but often when extremely weird stuff is going on, a lot of jiggling fixes it

shell tinsel
#

and failing all of that, perhaps you I could bother you for a zipped install of the ui and hope to god it works come next update? lol

shell tinsel
# vocal spear - Try running that over again. Maybe the first install will have cleaned things ...

18:28:57.684 [Error] Failed to get git commit date: System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'git' with working directory 'Q:\Software\MagicSetEditor\SwamUI\SwarmUI'. The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at SwarmUI.Utils.Utilities.RunGitProcess(String args, String dir, Boolean canRetry) in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\Utils\Utilities.cs:line 1244 at SwarmUI.Core.Program.<>c.<<Main>b__28_4>d.MoveNext() in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\Core\Program.cs:line 212 18:28:57.686 [Error] Internal error in async task (check for updates): System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'git' with working directory 'Q:\Software\MagicSetEditor\SwamUI\SwarmUI'. The system cannot find the file specified. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at SwarmUI.Utils.Utilities.RunGitProcess(String args, String dir, Boolean canRetry) in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\Utils\Utilities.cs:line 1244 at SwarmUI.Core.Program.<>c.<<Main>b__28_3>d.MoveNext() in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\Core\Program.cs:line 186 --- End of stack trace from previous location --- at SwarmUI.Utils.Utilities.<>c__DisplayClass55_0.<<RunCheckedTask>b__0>d.MoveNext() in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\Utils\Utilities.cs:line 652

#

``Extracting archive: dlbackend\comfyui_dl.7z

Path = dlbackend\comfyui_dl.7z
Type = 7z
Physical Size = 2127097891
Headers Size = 406921
Method = LZMA2:29 LZMA:20 BCJ2
Solid = +
Blocks = 1

Everything is Ok

Folders: 3782
Files: 34801
Size: 6660273402
Compressed: 2127097891
18:35:00.405 [Init] [Installer] Installing prereqs...
18:35:04.013 [Init] [Installer] Prepping ComfyUI's git repo...
18:35:04.021 [Error] [WebAPI] Error handling API request '/API/InstallConfirmWS' for user 'local': Internal exception: System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'git' with working directory 'Q:\Software\MagicSetEditor\SwamUI\SwarmUI\dlbackend\comfy\ComfyUI'. The system cannot find the file specified.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at SwarmUI.Utils.Utilities.RunGitProcess(String args, String dir, Boolean canRetry) in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\Utils\Utilities.cs:line 1244
at SwarmUI.Core.Installation.BackendComfyWindows(Boolean install_amd) in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\Core\Installation.cs:line 153
at SwarmUI.Core.Installation.BackendComfy(Boolean install_amd) in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\Core\Installation.cs:line 179
at SwarmUI.Core.Installation.Backend(String backend, Boolean install_amd) in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\Core\Installation.cs:line 222
at SwarmUI.Core.Installation.Install(WebSocket socket, String theme, String installed_for, String backend, String models, Boolean install_amd, String language, Boolean make_shortcut) in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\Core\Installation.cs:line 330
at SwarmUI.WebAPI.BasicAPIFeatures.InstallConfirmWS(Session session, WebSocket socket, String theme, String installed_for, String backend, String models, Boolean install_amd, String language, Boolean make_shortcut) in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\WebAPI\BasicAPIFeatures.cs:line 195
at SwarmUI.WebAPI.API.HandleAsyncRequest(HttpContext context) in Q:\Software\MagicSetEditor\SwamUI\SwarmUI\src\WebAPI\API.cs:line 164``

shell tinsel
vocal spear
#

if this is after doing the full uninstall thing?

#

if so i'm left with the If that doesn't work, do a rain dance and pray to god cause wtf?

#

i have no idea what curse befalls your computer that you've installed git multiple times and it doesn't exist

#

maybe if you grab the git.exe binary and shove it into System32 so it can't not know where it is?

#

cursed idea but idek

plush vortex
#

did you #1461816800684544040 message ?
after uninstalling git check if there is anything git related in your path, remove it and install or let Swarm's install script git again

shell tinsel
#

now that i've tried so much of this i also tried to install comfyui on its own and it also doesn't work

#

what the fuck

#

i've used git to push commits before on work projects

#

i'm at a loss

shell tinsel