To debug TruSpace, you can follow these steps:
- Make sure everything is running: Check if all the required services are running. You can use the command
docker psto see the status of your containers. If any container is not running, you can start it usingdocker start <container_name>. - Check logs: Use the command
docker logs <container_name>to view the logs of a specific container. This can help you identify any errors or issues that may be occurring. - Inspect configuration files: Ensure that your configuration files (like
.envandservice.json) are correctly set up. Look for any typos or incorrect values that might be causing issues. - Network connectivity: If you are having trouble connecting to other nodes, check your network settings. Ensure that the necessary ports are open and that your firewall is not blocking any connections
-
How many documents are in the system?
To get the total number of documents and recently added documents, run the following command
curl http://<your_truspace_domain>/documents/statistics
-
Which documents are pinned locally?
Use the following command to list all documents that are pinned locally on the IPFS node:
docker exec ipfs0 ipfs pin ls --type=recursive | wc -l
You can also use this command on other IPFS nodes in the cluster by replacing
ipfs0with the name of the desired node. -
Which documents are pinned in the cluster?
Use the following command to list all documents that are pinned in the cluster:
docker exec cluster0 ipfs-cluster-ctl status | grep Pinned
This will show you the status of all pinned documents in the cluster.
-
Are there any pinning errors in the cluster?
To check for pinning errors, you can use the following command to list all pinned documents and their status:
docker exec cluster0 ipfs-cluster-ctl status | grep PIN_ERROR
Look for any documents that are not pinned or have an error status.
-
Why are the automatic perspectives not generated?
There could be different issues such as with the AI model or the frontend configuration.
You can check the logs of the
webui,frontendortruspace-backendcontainers for any errors:docker logs webui docker logs frontend docker logs truspace-backend
-
Why is my document not rendered?
Check the
frontendcontainer logs for any errors related to the document rendering.docker logs frontend
-
How can I delete a document?
To delete a document, you can use the following command:
curl -X DELETE http://<your_truspace_domain>/documents/:docId
Make sure to replace
:docIdwith the actual ID of the document you want to delete.
-
Why can I not access the chatbot?
Check using the status of OpenWebUI and Ollama with the
healthroute of the api if the service is running. If it is not, check the logs for any errors. Also ensure that the ports are correctly configured.curl http://<your_truspace_domain>/health
You can also check the logs of the
webuicontainer for any errors:docker logs webui
-
Why is my server not running?
Check using the status of all services with the
healthroute of the api if they are running. Ensure that the services can be accessed via the configured ports. If they are not running, check the logs for any errors.curl http://<your_truspace_domain>/health
You can also check the logs of the
truspace-backendcontainer for any errors:docker logs truspace-backend
-
Am I connected to other IPFS peers?
Check using the status of the IPFS Cluster, Pinning Service and Gateway with the
healthroute of the api if the service is running. If it is not, check the logs for any errors. Also ensure that the ports are correctly configured. Also ensure that your IPFS configuration is correct (e.g. swarm key, cluster secret, etc.).curl http://<your_truspace_domain>/health
You can also check the logs of the
ipfs0andcluster0containers for any errors:docker logs ipfs0 docker logs cluster0
-
How many users are registered?
To get the total number of users and recently added users, run the following command
curl http://<your_truspace_domain>/users/statistics
-
Which users have access to a certain workspace?
Use the following command to list all users that have access to a certain workspace:
curl http://<your_truspace_domain>/permissions/users-in-workspace/:workspaceId
To remove permissions, use the following command:
curl -X DELETE http://<your_truspace_domain>/permissions/users-in-workspace/remove/:permissionId
-
Which users have actually contributed to a certain workspace?
Use the following command to list all users that have contributed to a certain workspace:
curl http://<your_truspace_domain>/workspaces/contributors/:wId
-
Why can my users not login/register?
In this case, you have to check the logs of the
truspace-backendcontainer. If there are any errors, they will be logged there. Also ensure that the database is running and accessible.docker logs truspace-backend
-
How can I delete a workspace?
To delete a workspace, you can use the following command:
curl -X DELETE http://<your_truspace_domain>/workspaces/:wCID/:wUID
Make sure to replace
:wCIDwith the actual ID of the workspace you want to delete. Also, replace:wUIDwith the user ID of the user who is deleting the workspace.