mojo issue: Can't locate object method "rel_dir" via package "Mojo::Home"
https://github.com/juju4/ansible-lufi https://travis-ci.org/juju4/ansible-lufi
$ KITCHEN_YAML=".kitchen.vagrant.yml" kitchen verify default-ubuntu-1404
$ KITCHEN_YAML=".kitchen.vagrant.yml" kitchen login default-ubuntu-1404
vagrant@default-ubuntu-1404:~$ LDIR=/var/www-lufi/src/
vagrant@default-ubuntu-1404:~$ USER=www-lufi
vagrant@default-ubuntu-1404:~$ cd $LDIR
vagrant@default-ubuntu-1404:/var/www-lufi/src$ su $USER -c "carton exec hypnotoad -f script/lufi"
Password:
^Csu: Authentication failure
vagrant@default-ubuntu-1404:/var/www-lufi/src$ sudo su $USER -c "carton exec hypnotoad -f script/lufi"
Can't load application from file "/var/www-lufi/src/script/lufi": Can't locate object method "rel_dir" via package "Mojo::Home" at /var/www-lufi/src/script/../lib/Mounter.pm line 28.
Compilation failed in require at (eval 65) line 1.
same with 1604/systemd
-- Unit lufi.service has finished shutting down.
May 07 15:28:39 default-ubuntu-1604 systemd[1]: Starting File hosting service with encryption...
-- Subject: Unit lufi.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lufi.service has begun starting up.
May 07 15:28:40 default-ubuntu-1604 carton[23175]: Can't load application from file "/var/www-lufi/src/script/lufi": Can't locate object method "rel_dir" v
May 07 15:28:40 default-ubuntu-1604 carton[23175]: Compilation failed in require at (eval 59) line 1.
May 07 15:28:40 default-ubuntu-1604 systemd[1]: lufi.service: Control process exited, code=exited status=255
May 07 15:28:40 default-ubuntu-1604 systemd[1]: Failed to start File hosting service with encryption.
There is a related error here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851820
but no issues related on mojolicious https://github.com/kraih/mojo/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20rel_dir
$ cpan -l |grep -i mojo |grep -v undef
Can't stat /usr/local/lib/site_perl: No such file or directory
at /usr/share/perl/5.22/App/Cpan.pm line 1331.
local::lib::perl5::Mojolicious 7.31
local::lib::perl5::MojoX::MIME::Types 2.11
local::lib::perl5::Mojolicious::Command::generate::plugin 0.01
local::lib::perl5::Mojolicious::Plugin::Mail 1.5
local::lib::perl5::Mojolicious::Plugin::Authentication 1.29
local::lib::perl5::Mojolicious::Plugin::DebugDumperHelper 0.03
local::lib::perl5::Mojolicious::Plugin::I18N 1.6
any pointers to fix it?
Thanks