Comments (5)
Is there a stack trace along with the error? Any extra output when running the client in debug mode?
Strange that it happens only sometimes.
from cron.
Unfortunately, I don't have access to the machine after the error occurs. My build process terminates the instance as soon is an error occurs. Also, I'm running chef from knife-ec2, I'll look into running that in debug mode and stopping the cleanup.
It is very strange, yesterday I hit this error 3 times in 6 tries.
from cron.
It appears this is actually an issue in chef, not the cron cookbook!
This hit me again today with a completely different service. It was in test kitchen so I was able to view the stack trace. It points to line 134 here - https://github.com/chef/chef/blob/master/lib/chef/platform/service_helpers.rb
The extract_systemd_services shell_out apparently fails causing it to return the false from line 129, which produces the unable to convert boolean to array error when trying to add the two arrays together on line 134.
from cron.
Yea, that implies that systemctl list-unit-files
exits with an error status.
from cron.
We've reworked the service block in the current version and I'm not seeing a similar error on any platform. Feel free to open this back up if you're still seeing the issue.
from cron.
Related Issues (20)
- chef-client 13 now sets amazon linux machines platform_family to amazon instead of rhel HOT 2
- tag & publish v5.0.0 to Supermarket HOT 1
- CIS friendly permissions HOT 1
- Undocumented property "comment" HOT 1
- ChefSpec: NoMethodError create_cron_d HOT 3
- Exception is raised on Windows during compile phase HOT 3
- cron.deny template rendering fails HOT 4
- .DS_Store checked into 6.1.1 supermarket source HOT 1
- cookbook not working
- please add MAILFROM option not just mailto. HOT 3
- Chef cron - Every N hours past specified hour fails HOT 3
- Permissions on cron.allow and cron.deny prohibit /usr/bin/crontab from reading when the binary is setgid rather than setuid
- cron Chef 17 Compatibility
- 7.0.0 don't run on chef 12.X HOT 3
- Seeing issue with the deployment on chef 12.22.1 after recent update to this cookbook HOT 1
- Dependency Dashboard
- Make cron.allow mode an attribute?
- /etc/cron.allow must be g-rwx,o-rwx per CIS Benchmark HOT 1
- Convert to InSpec HOT 1
- Release v4.1.0 not tagged HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cron.