Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development environment troubleshoots #105

Open
alexandrebrg opened this issue Apr 25, 2023 · 0 comments
Open

Development environment troubleshoots #105

alexandrebrg opened this issue Apr 25, 2023 · 0 comments
Labels
blocker/need-information This item needs additional information in order to be worked on help wanted Extra attention is needed type/documentation Improvements or additions to documentation

Comments

@alexandrebrg
Copy link
Member

This post groups all issues we encounter during development of RIK, it is a pending issue, and once we got enough entries, we will create a PR to improve the developer setup guide and the troubleshoot page.

If you encounter any problem with setup RIK and you have a solution for it (or not), feel free to respond to this issue.


I need to run riklet as root but I can't because cargo isn't available in root

Cargo allows for a config file, the file .cargo/config should be added in your local rik repository. You can configure it to run sudo as a wrapper of all your cargo commands (be aware it will also run controller / scheduler as root).

# .cargo/config
[target.x86_64-unknown-linux-gnu]
runner = 'sudo -E'

I want to have more logs in my RIK cluster

Each component is configured the same way, with tracing. You can configure its verbosity level with the environment variable RUST_LOG. Examples:

# Put log level trace for all components and its rust dependencies
RUST_LOG=trace

# Put log level trace for riklet
RUST_LOG=riklet=trace

# Put log level debug for riklet and trace for firepilot
RUST_LOG=riklet=debug,firepilot=trace
@alexandrebrg alexandrebrg added type/documentation Improvements or additions to documentation help wanted Extra attention is needed blocker/need-information This item needs additional information in order to be worked on labels Apr 25, 2023
@alexandrebrg alexandrebrg moved this to 🏗️ In Progress in RIK Tracking Apr 25, 2023
@alexandrebrg alexandrebrg moved this from 🏗️ In Progress to 🆕 New in RIK Tracking Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker/need-information This item needs additional information in order to be worked on help wanted Extra attention is needed type/documentation Improvements or additions to documentation
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant