Open wbotelhos opened 6 years ago
The cookbook is currently not compatible with Chef 13.
Chef 13 doesn't allow the way I'm inferring defaults for resources from attributes - which is the only reliable way I found to make a cookbook compatible for use with node attributes as well as wrapper-cookbooks (using providers).
To upgrade this, it's probably necessary to drop attribute support completely (potentially breaking some setups) or rewriting the resource defaults using if
statements and .dup
.
Suggestions welcome!
Thanks to anwer @chr4 .
I tried with:
$ chef-solo -v
Chef: 12.21.31
Same error:
[2018-02-17T02:14:00+00:00] ERROR: Running exception handlers
Running handlers complete
[2018-02-17T02:14:00+00:00] ERROR: Exception handlers complete
Chef Client failed. 14 resources updated in 13 seconds
[2018-02-17T02:14:00+00:00] FATAL: Stacktrace dumped to /home/ubuntu/chef-solo/local-mode-cache/cache/chef-stacktrace.out
[2018-02-17T02:14:00+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-02-17T02:14:00+00:00] ERROR: can't modify frozen Chef::Node::ImmutableMash
[2018-02-17T02:14:00+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.
Sorry about my question, but I'm not used to use the resources
and providers
files. The problem comes from this files? Could we drop this files? Maybe just the templates and service commands could be a recipe.
This might also be because of chef-solo maybe? I'm running this without problems with chef-12.19.36 - but this should obviously be ported to Chef-13 eventually. PR's welcome!
I use knife-solo
and I'm not tested without it.
For now, just copy um template file and config is enough.
Maybe with more time I try to understand better this problem.
Thank you.
Hi,
After some period where I did not update my server code, i'm facing the following error:
The log is:
Any idea? Thanks. :)