Skip to content

Commit

Permalink
Update Troubleshooting inside the container using pluginctl
Browse files Browse the repository at this point in the history
  • Loading branch information
RBhupi committed Oct 3, 2023
1 parent aaa9566 commit bbabb71
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions docs/reference-guides/dev-quick-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,22 +171,20 @@ When you encounter a failing/long pending job with an error, you can use the fol

By following these steps, you can better understand why the job is failing and take steps to resolve the issue.


### 4. Troubleshooting inside the container using pluginctl
Follow this [tutorial](https://github.com/waggle-sensor/edge-scheduler/blob/main/docs/pluginctl/tutorial_getintoplugin.md) to get in a running container to troubleshoot the issue.
If the plugin fails instantyly and your are not able to get inside the container use following commands
Follow this [tutorial](https://github.com/waggle-sensor/edge-scheduler/blob/main/docs/pluginctl/tutorial_getintoplugin.md) to get in an already running container to troubleshoot the issue.
If the plugin fails instantly and your are not able to get inside the container use following commands to override the entrypoint

1. First Deploy with Custom Entrypoint `--entrypoint /bin/bash `:
```
sudo pluginctl deploy --name getincmv --entrypoint /bin/bash 10.31.81.1:5000/local/plugin-cmv-fftpc -- -c 'while true; do sleep 1; done'
```
__Output__
``` Launched the plugin getincmv successfully
You may check the log: pluginctl logs getincmv
To terminate the job: pluginctl rm getincmv
sudo pluginctl deploy -n testnc --entrypoint /bin/bash 10.31.81.1:5000/local/plugin-mobotix-scan -- -c 'while true; do date; sleep 1; done'
```
then do `sudo pluginctl exec -ti getincmv -- /bin/bash` to enter the container.


Note the `-c 'while true; do date; sleep 1; done'` instead of your usual plugin arguments.
Now if you do `sudo pluginctl logs testnc` you will see the logs i.e. date.

2. Access the Plugin Container:
```sudo pluginctl exec -ti testnc -- /bin/bash```



Expand Down

0 comments on commit bbabb71

Please sign in to comment.