Hi All Got a really weird issue. I have been building up a rex script to setup a digitalocean VM from scratch. It has been working fine - till today. On installing Dancer2 I am getting failures regardless of the version I install (even without rex using cpanm Dancer2)?? The errors begin with: t/00-report-prereqs.t .................................. ok [main:9783] error @2015-04-24 14:06:00> Exception caught in 'core.app.before_request' filter: Hook error: Can't locate object method "failure" via package "Foo" (perhaps you forgot to load "Foo"?) at t/app.t line 150. at /root/.cpanm/work/1429898751.9695/Dancer2-0.159003/blib/lib/Dancer2/Core/App.pm line 852. in (eval 69) l. 1 ...... t/config_multiapp.t .................................... ok # Failed test 'Configuration file parsing failure' # at t/config_reader.t line 97. # 'Unable to parse the configuration file: /root/.cpanm/work/1429898751.9695/Dancer2-0.159003/t/config/environments/failure.yml: Can't use an undefined value as a HASH reference at /root/.cpanm/work/1429898751.9695/Dancer2-0.159003/blib/lib/Dancer2/Core/Role/ConfigReader.pm line 208. # at (eval 126) line 22. # ' # doesn't match '(?^:YAML)' # Looks like you failed 1 test of 19. ............... t/issues/gh-762.t ...................................... ok [App:9848] core @2015-04-24 14:06:24> Failed to deserialize the request: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "invalid") at /root/.cpanm/work/1429898751.9695/Dancer2-0.159003/blib/lib/Dancer2/Serializer/JSON.pm line 41. in (eval 179) l. 2 t/issues/gh-794.t ...................................... ok [App:9849] core @2015-04-24 14:06:24> Failed to deserialize the request: 'false' expected, at character offset 0 (before "foo=bar") at /root/.cpanm/work/1429898751.9695/Dancer2-0.159003/blib/lib/Dancer2/Serializer/JSON.pm line 41. in (eval 179) l. 2 I can provide the whole log, but was hoping someone would know the issue from this? As I said, it has been working fine till now. Thx Z
On Fri, 2015-04-24 at 18:33 +0000, Zahir Lalani wrote:
Got a really weird issue. I have been building up a rex script to setup a digitalocean VM from scratch. It has been working fine – till today.
FWIW, I'm also using Rex to deploy Dancer2 apps, but I've built my own Debian Dancer2 packages, rather than installing from CPAN. This means consistent Dancer2 versions on all servers, and no unexpected breakages on module upgrades. If you're also using Debian and do decide to build your own, you might find the following patches helpful for dh-make-perl (#774068 to #774074): https://bugs.debian.org/cgi-bin/pkgreport.cgi?package=dh-make-perl Alternatively, I'd be happy to share my packages. Andy
-----Original Message----- From: dancer-users [mailto:dancer-users-bounces@dancer.pm] On Behalf Of Andrew Beverley Sent: 25 April 2015 17:08 To: Perl Dancer users mailing list Subject: Re: [dancer-users] Installation failure
On Fri, 2015-04-24 at 18:33 +0000, Zahir Lalani wrote:
Got a really weird issue. I have been building up a rex script to setup a digitalocean VM from scratch. It has been working fine – till today.
FWIW, I'm also using Rex to deploy Dancer2 apps, but I've built my own Debian Dancer2 packages, rather than installing from CPAN. This means consistent Dancer2 versions on all servers, and no unexpected breakages on module upgrades.
If you're also using Debian and do decide to build your own, you might find the following patches helpful for dh-make-perl (#774068 to #774074):
https://bugs.debian.org/cgi-bin/pkgreport.cgi?package=dh-make-perl
Alternatively, I'd be happy to share my packages.
Andy
Andy I am doing this on Centos. So I am still getting no-where. Although I can see lots of exceptions in the tests, the one that seems like the real error is: t/config_reader.t ...................................... 1/? # Failed test 'Configuration file parsing failure' # at t/config_reader.t line 97. # 'Unable to parse the configuration file: /root/.cpan/build/Dancer2-0.159003-5GzHDw/t/config/environments/failure.yml: Can't use an undefined value as a HASH reference at /root/.cpan/build/Dancer2-0.159003-5GzHDw/blib/lib/Dancer2/Core/Role/ConfigReader.pm line 208. # at (eval 129) line 22. # ' # doesn't match '(?^:YAML)' I really do not know how I am supposed to resolve this. Usually in cpan its just dependency issues. Here it seems that some code is broken? Any help would be much appreciated Z
participants (2)
-
Andrew Beverley -
Zahir Lalani