Skip to content

Commit 829c022

Browse files
committed
fix: debugging scripts
1 parent 7c4e3a7 commit 829c022

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

docs/troubleshooting.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Documentation for troubleshooting and debugging known issues in Shuffle.
33

44
## Table of contents
55
* [Debugging Executions](#debugging_executions)
6+
* [Debugging in the non-scale mode](#debugging_in_the_non_scale_mode)
67
* [Orborus backend connection problems](#orborus_backend_connection_problems)
78
* [Load all apps locally](#load_all_apps_locally)
89
* [Orborus can't connect to backend](#orborus_can_not_reach_backend)
@@ -36,6 +37,43 @@ Documentation for troubleshooting and debugging known issues in Shuffle.
3637
## Debugging Executions
3738
Please check the [Debugging section in the Configuration documentation](/docs/configuration#debugging)
3839

40+
## Debugging in the non scale mode
41+
42+
If you're running Shuffle in the non-scale mode, you can get the worker logs like this:
43+
44+
```bash
45+
while true; do
46+
tools=$(docker container ls | grep -i worker | awk '{print $1}')
47+
if [ ! -z "$tools" ]; then
48+
echo "Found container: $tools"
49+
echo "Container logs:"
50+
docker logs --tail 10 "$tools" # Show last 10 lines of logs
51+
echo "----------------------------------------"
52+
else
53+
echo "No matching container found..."
54+
fi
55+
sleep 1
56+
done
57+
```
58+
59+
Similarly, for any of the app logs, you can use the same command, but replace "worker" with the app name (this gives the shuffle tools logs):
60+
```bash
61+
while true; do
62+
tools=$(docker container ls | grep -i tools_1 | awk '{print $1}')
63+
if [ ! -z "$tools" ]; then
64+
echo "Found container: $tools"
65+
echo "Container logs:"
66+
docker logs --tail 10 "$tools" # Show last 10 lines of logs
67+
echo "----------------------------------------"
68+
else
69+
echo "No matching container found..."
70+
fi
71+
sleep 1
72+
done
73+
```
74+
75+
76+
3977
## Resetting MFA
4078
MFA can be enabled for your account on the settings User page of an organization, or on your [settings page](https://shuffler.io/settings). If you have lost access to your account due to this however, follow these steps:
4179

0 commit comments

Comments
 (0)