RexOps / rex-jobcontrol

Simple Webinterface to control Rex
10 stars 6 forks source link

Mojo::JSON "new" issue #14

Open srynobio opened 9 years ago

srynobio commented 9 years ago

I'm trying to complete a setup of jobControl but when I run the following command:

rex_job_control jobcontrol setup

I get the following warn/errors:

[Thu Jul 23 15:11:12 2015] [debug] Reading configuration file "/etc/rex/jobcontrol.conf"
[Thu Jul 23 15:11:12 2015] [debug] Your secret passphrase needs to be changed
Can't locate object method "new" via package "Mojo::JSON" at /usr/share/perl5/vendor_perl/Rex/JobControl/Helper/AuditLog.pm line 23, <DATA> line 2231.

It seem more like a warning but i can't complete any of the step after this point, I have Mojolicious-6.14 installed.

Also, how would I change my secret passphrase?

Thanks!

kwakwaversal commented 9 years ago

That's an error I'm afraid. The version of Mojolicious you have installed doesn't have the object-orientated interface to Mojo::JSON.

Removed deprecated object-oriented Mojo::JSON API.

It was removed in 5.73 - https://github.com/kraih/mojo/blob/master/Changes#L234

Until this repo is updated, you could always install an older version of Mojolicious that 5.73.

krimdomu commented 9 years ago

Hi all, thanks for the report and the information about Mojolicious 5.73. Currently i have problems with my handwrists and can't do much. I'm going to look at it as soon as it is possible.

mbroadhead commented 7 years ago

There is now a pending pull request that fixes this. See https://github.com/RexOps/rex-jobcontrol/pull/9

ehuelsmann commented 5 years ago

@mbroadhead @srynobio This should now have been fixed. Please verify.

srynobio commented 5 years ago

I'll leave @mbroadhead to verify fix.