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

Error in cinc-solo step #12

Open
martimorta opened this issue Aug 21, 2020 · 1 comment
Open

Error in cinc-solo step #12

martimorta opened this issue Aug 21, 2020 · 1 comment
Assignees

Comments

@martimorta
Copy link

Hi,
I tried the cookbook steps without success. I was using administrator powershell (if not the installation didn't go through) and then changed to (admin) cmd as explained in the ReadMe until I got stuck at the call of cinc-solo:

c:\cinc-project\cinc\bin\cinc-solo -c ros2-cookbooks\.chef\solo.rb -j ros2_windows.json

Firstly, following the instructions this call is done in the folder ros2-cookbooks/cookbooks/ros2_windows which doesn't have the ros2_windows.json.
Besides that, I don't have the .chef folder neither the solo.rb. When trying to run the call in from ros2-cookbooks (where there is the ros2_windows.json) it fails outputting what I copy below.

I haven't used these tools before, am I doing something wrong?

Thank you!

C:\ros2-cookbooks>c:\cinc-project\cinc\bin\cinc-solo -c ros2-cookbooks\.chef\solo.rb -j ros2_windows.json
[2020-08-21T22:22:52+01:00] WARN: *****************************************
[2020-08-21T22:22:52+01:00] WARN: Did not find config file: C:/ros2-cookbooks/ros2-cookbooks/.chef/solo.rb. Using command line options instead.
[2020-08-21T22:22:52+01:00] WARN: *****************************************
[2020-08-21T22:22:52+01:00] WARN: No cookbooks directory found at or above current directory.  Assuming c:\cinc.
[2020-08-21T22:22:52+01:00] WARN: *****************************************
[2020-08-21T22:22:52+01:00] WARN: Did not find config file: C:/ros2-cookbooks/ros2-cookbooks/.chef/solo.rb. Using command line options instead.
[2020-08-21T22:22:52+01:00] WARN: *****************************************
Starting Cinc Client, version 16.4.41
[2020-08-21T22:22:57+01:00] ERROR: Role ros2-development (included by 'top level') is in the runlist but does not exist. Skipping expand.

================================================================================
Error expanding the run_list:
================================================================================

Missing Role(s) in Run List:
----------------------------
* ros2-development included by 'top level'

Original Run List
-----------------
* role[ros2-development]

System Info:
------------
chef_version=16.4.41
platform=windows
platform_version=10.0.18362
ruby=ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]
program_name=c:/cinc-project/cinc/bin/cinc-solo
executable=c:/cinc-project/cinc/bin/cinc-solo


Running handlers:
[2020-08-21T22:22:57+01:00] ERROR: Running exception handlers
Running handlers complete
[2020-08-21T22:22:57+01:00] ERROR: Exception handlers complete
Cinc Client failed. 0 resources updated in 04 seconds
[2020-08-21T22:22:57+01:00] FATAL: Stacktrace dumped to c:/ros2-cookbooks/ros2-cookbooks/.chef/local-mode-cache/cache/cinc-stacktrace.out
[2020-08-21T22:22:57+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-08-21T22:22:57+01:00] FATAL: Chef::Exceptions::MissingRole: The expanded run list includes nonexistent roles: ros2-development
@brawner
Copy link
Collaborator

brawner commented Aug 21, 2020

It looks like the big issue here is there is no solo.rb file, which tells chef where to find roles and recipes. I'll create a follow-up PR, but you can create a simple solo.rb in ros2-cookbooks/chef that looks like:

cookbook_path [File.join(File.expand_path("..", __FILE__), "ros2-cookbooks", "cookbooks")]
role_path [File.join(File.expand_path("..", __FILE__), "ros2-cookbooks", "roles")]
solo true

Then try running the cinc-solo command again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants