Giter Site home page Giter Site logo

Comments (5)

alexderz avatar alexderz commented on August 16, 2024

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.

erkolson avatar erkolson commented on August 16, 2024

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.

erkolson avatar erkolson commented on August 16, 2024

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.

alexderz avatar alexderz commented on August 16, 2024

Yea, that implies that systemctl list-unit-files exits with an error status.

from cron.

tas50 avatar tas50 commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.