Skip to content

Commit 2b4e70c

Browse files
authored
DOCS-4189: Improve camera troubleshooting (#4479)
1 parent 9fb4fff commit 2b4e70c

File tree

12 files changed

+67
-31
lines changed

12 files changed

+67
-31
lines changed

docs/dev/tools/common-errors.md

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ sudo apt install jackd qjackctl libpulse-dev pulseaudio
119119

120120
This error can be safely ignored if you do not intend to use audio on your machine.
121121

122-
## Common errors using the web UI
122+
## Common errors between `viam-server` and Viam
123123

124124
### Failed to connect; retrying
125125

@@ -143,6 +143,21 @@ When a machine is disconnected, it will continue to run with its locally-cached
143143
grep 'viam-server' /var/log/syslog | tail -50
144144
```
145145

146+
### Error: error connecting to peer, error not connected
147+
148+
**Full Error:** `error connecting to peer   error not connected`
149+
150+
**Description:** This error indicates a networking or connection issue.
151+
152+
**Solution:**
153+
154+
1. Verify your machine's internet connection is stable and working properly.
155+
1. Ensure your machine is using the correct machine cloud credentials.
156+
You can obtain your machine cloud credentials from the machine's status in the part status dropdown to the right of your machine’s name on the top of the page.
157+
1. If you are using API keys to connect, ensure you are using the correct credentials for the machine.
158+
1. If you have multiple tabs open with your machine's page, close all but one.
159+
Having too many connections can cause instability on some machines.
160+
146161
### Error: cannot parse config: JSON: cannot unmarshal string into Go struct
147162
148163
**Full Error:** `Error: cannot parse config: JSON: cannot unmarshal string into Go struct field Component.components.frame of type float64.`
@@ -171,20 +186,32 @@ In **JSON** mode, it will resemble the following:
171186
172187
**Full Error:**
173188
189+
Generalized example::
190+
191+
```sh {class="command-line" data-prompt="$" data-output="1-10"}
192+
resource build error: unknown resource type: API "<API-TRIPLET>" with model "<MODEL-TRIPLET>" not registered
193+
```
194+
195+
Camera example:
196+
174197
```sh {class="command-line" data-prompt="$" data-output="1-10"}
175-
error rdk.resource_manager.rdk:<RESOURCE-IDENTIFIER>resource/graph_node.go:297   resource build error: unknown resource type: API "<API-TRIPLET>" with model "<MODEL-TRIPLET>" not registered   resource <RESOURCE-IDENTIFIER>  model <MODEL-TRIPLET>
198+
resource build error: unknown resource type: API "rdk:component:camera" with model "viam:orbbec:astra2" not registered.
176199
```
177200
178201
**Description:** This error occurs when your configuration requests a model with an associated API and the combination of model name and API triplet is not registered with viam-server.
179202
180203
**Solution:**
181204
182-
- **Module Installation**: For registry-provided models, ensure that your machine's configuration includes the module.
183-
- **Model Triplet Verification**: Check for typos in the model triplet.
184-
It must exactly match the model registered with `viam-server`.
185-
For registry-provided models, you can find the correct model triplet (for example `viam:camera:csi-pi`) in the **Components & services** section of the registry page.
186-
- **API Compatibility**: Ensure the selected model supports the requested API. You can find the requested APIs next to each model entry in the **Components & services** section of the registry page.
187-
- **API Triplet Verification**: Check for typos in the API triplet (for example `rdk:component:camera`).
205+
1. If you are using a registry-provided models, ensure that your machine's configuration includes the module that provides the model.
206+
On your machine page, find the module and navigate to it's module page in the registry.
207+
You can find the correct model triplet (for example `viam:camera:csi-pi`) in the **Components & services** section of the registry page.
208+
1. Check for typos in the model triplet.
209+
It must exactly match the model registered with `viam-server`.
210+
1. Ensure the model supports the requested API.
211+
You can find the requested APIs next to each model entry in the **Components & services** section of the registry page.
212+
1. Check for typos in the API triplet (for example `rdk:component:camera`).
213+
1. Check the logs for other errors.
214+
It may be that the instantiation of the model is failing, for other reasons such as the hardware being disconnected.
188215
189216
### Accidental deletion of machines, locations, organizations, or accounts
190217

docs/operate/reference/components/arm/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ The frame system allows the motion service to calculate where any component of y
7878
If your arm is not working as expected, follow these steps:
7979

8080
1. Check your machine logs on the **LOGS** tab to check for errors.
81-
2. Review your arm model's documentation to ensure you have configured all required attributes.
82-
3. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the arm there.
81+
1. Review your arm model's documentation to ensure you have configured all required attributes.
82+
1. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the arm there.
83+
1. Disconnect and reconnect your arm.
8384

8485
If none of these steps work, reach out to us on the [Community Discord](https://discord.gg/viam) and we will be happy to help.
8586

docs/operate/reference/components/button/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ The [button API](/dev/reference/apis/components/button/) supports the following
5252
If your button is not working as expected, follow these steps:
5353

5454
1. Check your machine logs on the **LOGS** tab to check for errors.
55-
2. Review your button model's documentation to ensure you have configured all required attributes.
56-
3. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the button there.
55+
1. Review your button model's documentation to ensure you have configured all required attributes.
56+
1. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the button there.
57+
1. Disconnect and reconnect your button.
5758

5859
If none of these steps work, reach out to us on the [Community Discord](https://discord.gg/viam) and we will be happy to help.
5960

docs/operate/reference/components/camera/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ The [camera API](/dev/reference/apis/components/camera/) supports the following
6767
If your camera is not working as expected, follow these steps:
6868

6969
1. Check your machine logs on the **LOGS** tab to check for errors.
70-
71-
2. Review your camera model's documentation to ensure you have configured all required attributes.
72-
3. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the camera there.
70+
1. Review your camera model's documentation to ensure you have configured all required attributes.
71+
1. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the camera there.
72+
1. Disconnect and reconnect your camera.
7373

7474
If none of these steps work, reach out to us on the [Community Discord](https://discord.gg/viam) and we will be happy to help.
7575

docs/operate/reference/components/component/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ _Use an included snippet so you can add it to <file>/program/apis/</file>._
7676
If your COMPONENT is not working as expected, follow these steps:
7777

7878
1. Check your machine logs on the **LOGS** tab to check for errors.
79-
2. Review your COMPONENT model's documentation to ensure you have configured all required attributes.
80-
3. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the COMPONENT there.
79+
1. Review your COMPONENT model's documentation to ensure you have configured all required attributes.
80+
1. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the COMPONENT there.
81+
1. Disconnect and reconnect your COMPONENT.
8182

8283
If none of these steps work, reach out to us on the [Community Discord](https://discord.gg/viam) and we will be happy to help.
8384

docs/operate/reference/components/gantry/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ The [gantry API](/dev/reference/apis/components/gantry/) supports the following
6868
If your gantry is not working as expected, follow these steps:
6969

7070
1. Check your machine logs on the **LOGS** tab to check for errors.
71-
2. Review your gantry model's documentation to ensure you have configured all required attributes.
72-
3. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the gamtry there.
71+
1. Review your gantry model's documentation to ensure you have configured all required attributes.
72+
1. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the gamtry there.
73+
1. Disconnect and reconnect your gantry.
7374

7475
If none of these steps work, reach out to us on the [Community Discord](https://discord.gg/viam) and we will be happy to help.
7576

docs/operate/reference/components/generic/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ The [generic API](/dev/reference/apis/components/generic/) supports the followin
8383
If your generic component is not working as expected, follow these steps:
8484

8585
1. Check your machine logs on the **LOGS** tab to check for errors.
86-
2. Review your generic component model's documentation to ensure you have configured all required attributes.
87-
3. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the generic component there.
86+
1. Review your generic component model's documentation to ensure you have configured all required attributes.
87+
1. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the generic component there.
8888

8989
If none of these steps work, reach out to us on the [Community Discord](https://discord.gg/viam) and we will be happy to help.
9090

docs/operate/reference/components/gripper/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ The [gripper API](/dev/reference/apis/components/gripper/) supports the followin
5959
If your gripper is not working as expected, follow these steps:
6060

6161
1. Check your machine logs on the **LOGS** tab to check for errors.
62-
2. Review your gripper model's documentation to ensure you have configured all required attributes.
63-
3. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the gripper there.
62+
1. Review your gripper model's documentation to ensure you have configured all required attributes.
63+
1. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the gripper there.
64+
1. Disconnect and reconnect your gripper.
6465

6566
If none of these steps work, reach out to us on the [Community Discord](https://discord.gg/viam) and we will be happy to help.
6667

docs/operate/reference/components/input-controller/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ The [input controller API](/dev/reference/apis/components/input-controller/) sup
6767
If your input controller is not working as expected, follow these steps:
6868

6969
1. Check your machine logs on the **LOGS** tab to check for errors.
70-
2. Review your input controller model's documentation to ensure you have configured all required attributes.
71-
3. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the input controller there.
70+
1. Review your input controller model's documentation to ensure you have configured all required attributes.
71+
1. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the input controller there.
72+
1. Disconnect and reconnect your input controller.
7273

7374
If none of these steps work, reach out to us on the [Community Discord](https://discord.gg/viam) and we will be happy to help.
7475

docs/operate/reference/components/movement-sensor/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ You can run `GetProperties` on your sensor for a list of its supported methods.
7373
If your movement sensor is not working as expected, follow these steps:
7474

7575
1. Check your machine logs on the **LOGS** tab to check for errors.
76-
2. Review your movement sensor model's documentation to ensure you have configured all required attributes.
77-
3. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the movement sensor there.
76+
1. Review your movement sensor model's documentation to ensure you have configured all required attributes.
77+
1. Click on the **TEST** panel on the **CONFIGURE** or **CONTROL** tab and test if you can use the movement sensor there.
78+
1. Disconnect and reconnect your movement sensor.
7879

7980
If none of these steps work, reach out to us on the [Community Discord](https://discord.gg/viam) and we will be happy to help.
8081

0 commit comments

Comments
 (0)