Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install problem? #20

Closed
asthman666 opened this issue Feb 21, 2017 · 3 comments
Closed

Install problem? #20

asthman666 opened this issue Feb 21, 2017 · 3 comments

Comments

@asthman666
Copy link

$ perl -v

This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi
(with 58 registered patches, see perl -V for more detail)

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

$ uname -a
Linux bbb81 4.4.0-63-generic #84-Ubuntu SMP Wed Feb 1 17:20:32 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ sudo cpan Fluent::Logger

then report error:

t/04_live.t ......................... 2/? Can't locate object method "slurp" via package "Path::Class::Dir" at t/Util.pm line 28.

Tests were run but no plan was declared and done_testing() was not seen.

Looks like your test exited with 255 just after 2.

t/04_live.t ......................... Dubious, test returned 255 (wstat 65280, 0xff00)
All 2 subtests passed
t/05_prefer_integer.t ............... 1/? 2017-02-21T16:34:46+0800 Fluent::Logger30890536: Can't connect: Connection refused at t/05_prefer_integer.t line 20.
t/05_prefer_integer.t ............... 3/? Can't locate object method "slurp" via package "Path::Class::Dir" at t/Util.pm line 28.

Tests were run but no plan was declared and done_testing() was not seen.

Looks like your test exited with 255 just after 3.

t/05_prefer_integer.t ............... Dubious, test returned 255 (wstat 65280, 0xff00)
All 3 subtests passed

==============================================

t/09_buffer_overflow_handler.t ...... 2017-02-21T16:35:00+0800 Fluent::Logger49815344: Can't connect: Connection refused at t/09_buffer_overflow_handler.t line 16.
2017-02-21T16:35:00+0800 Fluent::Logger49815344: Can't connect: Connection refused at t/09_buffer_overflow_handler.t line 19.
2017-02-21T16:35:00+0800 Fluent::Logger49815344: Cannot send data: Can't call method "syswrite" on an undefined value at /home/asthman/.cpan/build/Fluent-Logger-0.19-iphVfs/blib/lib/Fluent/Logger.pm line 262. at t/09_buffer_overflow_handler.t line 19.
2017-02-21T16:35:00+0800 Fluent::Logger49815344: flushing pending data on close at t/09_buffer_overflow_handler.t line 21.
2017-02-21T16:35:00+0800 Fluent::Logger49815344: Can't connect: Connection refused at t/09_buffer_overflow_handler.t line 21.
2017-02-21T16:35:00+0800 Fluent::Logger49815344: Can't send pending data. LOST 2097194 bytes.: Can't call method "syswrite" on an undefined value at /home/asthman/.cpan/build/Fluent-Logger-0.19-iphVfs/blib/lib/Fluent/Logger.pm line 262. at t/09_buffer_overflow_handler.t line 21.

@fujiwara
Copy link
Member

I confirmed this failure when fluentd-0.14.x is installed.
I'm trying to fix it. Thanks!

fujiwara added a commit that referenced this issue Mar 1, 2017
Changelog diff is:

diff --git a/Changes b/Changes
index c704ad5..0048935 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,9 @@ Revision history for Fluent::Logger

 {{$NEXT}}

+0.20 2017-03-01T04:36:41Z
+  * Fix tests only which broken with Fluentd 0.14 (#20 #21)
+
 0.19 2016-12-21T08:44:55Z
   * Added fluent-logger-ruby compatible buffer_overflow_handler (#17 tokuhirom)
   * Added truncate_buffer_at_overflow option (#18)
@fujiwara
Copy link
Member

fujiwara commented Mar 1, 2017

v0.20 was released. Please try it.

@asthman666
Copy link
Author

Install no problem. Thank you very much.

fujiwara added a commit that referenced this issue Mar 23, 2017
Changelog diff is:

diff --git a/Changes b/Changes
index 0048935..f083bc7 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,9 @@ Revision history for Fluent::Logger

 {{$NEXT}}

+0.21 2017-03-23T01:33:19Z
+  * Call buffer_overflow_handler at close() (#21 yoheimuta)
+
 0.20 2017-03-01T04:36:41Z
   * Fix tests only which broken with Fluentd 0.14 (#20 #21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants