Each organization can run up to 10 sandboxes at once. To raise this limit, contact support.
Inspect process output
Set up the Baseten CLI before running these commands. To read a process’s output:-
Set
SANDBOX_NAMEto the sandbox’s name: -
Replace
workerwith the name used when starting the process, then run the following command to print its stdout and stderr:
baseten sandbox process commands.
For SDK examples, see Run commands in a sandbox.
Inspect runtime logs
Runtime logs collect the output of every process in the sandbox, along with the sandbox’s own activity, such as the requests its API server handles. They include each process’s stdout at info level and its stderr at error level. The CLI doesn’t read runtime logs; use the API or the dashboard.- API
- UI
To retrieve a sandbox’s runtime logs:
-
Set
SANDBOX_TOKENto a sandbox access token: -
Set
SANDBOX_NAMEto the sandbox’s name: -
Replace the start and end times with a range of up to 7 days that
contains the operation, then run the following command:
severity
of 17 marks an error, such as a line a process wrote to stderr, and 9 marks
info. When next_cursor isn’t null, repeat the request with the same time
range and set cursor to its value to get the next page.For more information, see
Get sandbox logs.Inspect image build logs
Inspect the build logs when building or importing an image returnsFAILED.
- API
- CLI
- UI
To retrieve image build logs:
-
Set
SANDBOX_TOKENto a sandbox access token: -
Set
IMAGE_NAMEto the image’s name: -
Run the following command: