Hi
- User
Hi
- Assistant
Hello! How can I assist you today?
- User
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Hi
Hello! How can I assist you today?
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
SWARMPATH = '/home/studio-lab-user/'
!rm -rf $SWARMPATH/StableSwarmUI/dlbackend/ComfyUI/venv/ # Remove the virtual environment directory if it exists
!pip install -r $SWARMPATH/StableSwarmUI/dlbackend/ComfyUI/requirements.txt # Install requirements
!wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
!chmod +x dotnet-install.sh
!./dotnet-install.sh --channel 7.0
!./dotnet-install.sh --channel 8.0
!wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
!dpkg -i cloudflared-linux-amd64.deb
!wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
!sudo dpkg -i cloudflared-linux-amd64.deb
!wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O cloudflared
!chmod +x cloudflared
import os
os.environ['SWARMPATH'] = SWARMPATH
%cd $SWARMPATH
os.environ['SWARM_NO_VENV'] = 'true'
url = "https://github.com/Stability" + "-AI/StableSwarmUI"
!git clone $url
import os
os.environ['DOTNET_SYSTEM_GLOBALIZATION_INVARIANT'] = '1'
%cd $SWARMPATH/StableSwarmUI/
!git pull
!bash ./launch-linux.sh --launch_mode none --cloudflared-path cloudflared
when i run these code in jupyter (sudo is not supportted). there is an error comes. error = /home/studio-lab-user/StableSwarmUI Already up to date. =15:03:42.354 [Init] === StableSwarmUI v0.6.2.0 Starting === 15:03:42.404 [Init] Prepping extension: StableSwarmUI.Builtin_StabilityAPIExtension.StabilityAPIExtension... 15:03:42.415 [Init] Prepping extension: StableSwarmUI.Builtin_ScorersExtension.ScorersExtension... 15:03:42.415 [Init] Prepping extension: StableSwarmUI.Builtin_ImageBatchToolExtension.ImageBatchToolExtension... 15:03:42.416 [Init] Prepping extension: StableSwarmUI.Builtin_GridGeneratorExtension.GridGeneratorExtension... 15:03:42.416 [Init] Prepping extension: StableSwarmUI.Builtin_DynamicThresholding.DynamicThresholdingExtension... 15:03:42.416 [Init] Prepping extension: StableSwarmUI.Builtin_ComfyUIBackend.ComfyUIBackendExtension... 15:03:42.417 [Init] Prepping extension: StableSwarmUI.Builtin_AutoWebUIExtension.AutoWebUIBackendExtension... 15:03:42.444 [Init] Parsing command line... 15:03:42.444 [Init] Loading settings file... 15:03:42.474 [Init] Re-saving settings file... 15:03:42.493 [Init] Applying command line settings... 15:03:42.515 [Init] Prepping options... 15:03:42.670 [Init] Loading models list... 15:03:42.676 [Init] Loading backends... 15:03:42.678 [Init] Loading backends from file... 15:03:42.679 [Init] Prepping API... 15:03:42.681 [Init] Backend request handler loop ready... 15:03:42.682 [Init] Prepping webserver... 15:03:44.118 [Init] Scan for web extensions... 15:03:44.119 [Init] Readying extensions for launch... 15:03:44.120 [Init] Launching server... 15:03:44.120 [Init] Starting webserver on http://localhost:7801 crit: Microsoft.Extensions.Hosting.Internal.ApplicationLifetime[6] An error occurred starting the application System.AggregateException: One or more errors occurred. (An error occurred trying to start process 'cloudflared' with working directory '/home/studio-lab-user/StableSwarmUI'. No such file or directory) ---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'cloudflared' with working directory '/home/studio-lab-user/StableSwarmUI'. No such file or directory at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at StableSwarmUI.Utils.PublicProxyHandler.Start() in /home/studio-lab-user/StableSwarmUI/src/Utils/ProxyHandler.cs:line 71 at System.Threading.CancellationTokenSource.Invoke(Delegate d, Object state, CancellationTokenSource source) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) --- End of inner exception stack trace --- at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) at Microsoft.Extensions.Hosting.Internal.ApplicationLifetime.NotifyStarted() 15:03:44.189 [Init] Program is running.
It looks like the error you're encountering is that cloudflared cannot be found in the expected directory, which is causing the application to fail to start.
Here's the relevant part of the error message:
An error occurred starting the application System.AggregateException: One or more errors occurred. (An error occurred trying to start process 'cloudflared' with working directory '/home/studio-lab-user/StableSwarmUI'. No such file or directory)
This indicates that when the launch-linux.sh script is trying to start cloudflared, it either cannot find the cloudflared executable or the current working directory is not as expected.
The following steps should help fix the issue:
cloudflared is installed correctly and is executable.!wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O cloudflared
!chmod +x cloudflared
Since you cannot use sudo on Jupyter, the dpkg -i command will fail. Instead, the above code will download the cloudflared binary directly and set it to be executable, which should allow it to run without needing installation via dpkg.
cloudflared is in the right directory.Make sure that cloudflared is in the same directory as the launch-linux.sh script or provide the correct path to cloudflared when running the script.
cloudflared path requirement.Since the direct installation of cloudflared might not be possible without sudo, and depending on the exact requirements of the launch-linux.sh script, you may or may not need cloudflared.
If cloudflared is not critical for your purposes, modify the launch-linux.sh script to bypass the section that calls cloudflared. However, if cloudflared is necessary for tunnelling or proxying services, you will need to make sure it is available and in the correct location as per the script's expectations.
Please note that this script seems to be part of the StableSwarmUI tool, so you might want to consult the documentation for this tool for more guidance.
launch-linux.sh script.The error indicates that the script expects cloudflared to be in a specific directory. Make sure the script is correctly configured to find cloudflared where you have downloaded it.
Try checking the contents of launch-linux.sh to understand what it expects, and if necessary, modify it to point to the correct location of cloudflared. Make sure any paths in your script match the actual location of the files on your system.
Finally, it's important to know that running certain commands may be restricted on Jupyter or in a managed environment like a studio lab. If you don't have full control over the environment or don't have root access, you might be limited in what you can install or configure. Always ensure such operations are permitted within the policies of the platform you are using.
Not yet included in a published release.