SillyTavern / SillyTavern-Launcher

Launcher scripts for SillyTavern and ST-Extras.
MIT License
174 stars 47 forks source link

[BUG] Several errors during common installation #68

Closed byslexic closed 3 weeks ago

byslexic commented 1 month ago

Environment

🪟 Windows

System

win10 v 22H2

Describe the problem

running installer "git clone https://github.com/SillyTavern/SillyTavern-Launcher.git && cd SillyTavern-Launcher && start installer.bat" near very end of installation received an error dialog popup, attached(1). The path "T:\AITextGen" is the original installation target. After clicking OK, installation finished. I selected #1: Update and start Silly Tavern, which opened a new CMD window and errored out because it could not find Powershell. However, powershell is in use already during installation. Selecting option 2 errored out the 1st time with the same error, then a second attempt finally started the server at 127.0.0.1:8000

Additional info

Screenshot 2024-08-05 201503

also Screenshot 2024-08-05 201824

Please tick the boxes

deffcolony commented 1 month ago

@byslexic which install option did you choose from the installer.bat?

byslexic commented 1 month ago

@byslexic which install option did you choose from the installer.bat?

@deffcolony I believe it was "Install All". I wanted to install ST, Extras, TTS, and whatever else.

byslexic commented 1 month ago

Further issues: using SillyTavern Launcher opion1 Update & start, error with Powershell appears essentially the same as screenshot #2 above, and then the Launcher window shows

[ERROR] Log file not found, something went wrong. Close all SillyTavern command windows and try again.
Press any key to continue . . .

"Continuing" comes back to main Launcher options. Selecting optn 2 Start SillyTavern again opens a cmd window, ending with the message

  run `npm fund` for details
Starting Node.js server with command: node server.js
'powershell' is not recognized as an internal or external command,
operable program or batch file.
Node.js server started.
Press any key to continue . . .

However after 30 seconds ST starts anyway. The Extensions menu in ST show that the ST Extras are not connected/ Extras API does not start.

deffcolony commented 1 month ago

@byslexic i have one way to make powershell work in windows so try this

  1. run the following command in CMD:

    winget install -e --id Microsoft.PowerShell
  2. Run this command in CMD to edit environment variables

    start "" rundll32.exe sysdm.cpl,EditEnvironmentVariables
  3. add the following lines in the user PATH C:\Windows\System32\WindowsPowerShell\v1.0 C:\WINDOWS\System32\WindowsPowerShell\v1.0

image

  1. Now start the launcher again and see if it can see powershell now
byslexic commented 1 month ago

Thank you @deffcolony, that solved the error. I think it's odd that other parts of Silly Tavern had no problem starting and using powershell, but I can't claim to understand why. There are other errors that still happen with the launcher that I will submit under their own issues.