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

make check error #39

Closed
onexpiece opened this issue May 29, 2013 · 8 comments
Closed

make check error #39

onexpiece opened this issue May 29, 2013 · 8 comments

Comments

@onexpiece
Copy link

I have successfully pass commonds below:
./autogen.sh
./configure --prefix=/usr/local/ironbee
make
but when i trying to make check, i got errors:

  1. Failure:
    test_response(TestFast) [/home/hyf/ironbee-master/clipp/tests/tc_fast.rb:108]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"CLIPP ANNOUNCE: rmessage\n2013-05-29T15:14:28.7841+0800 INFO - [22949] [tx:67bb163b-ff07-450b-a952-9bc7c02dc42a] [rule:"site/57f2b6d0-7783-012f-86c6-001f5b320164/9" rev:1] ACTION clipp_announce("rmessage") \n2013-05-29T15:14:28.7842+0800 INFO - [22949] [tx:67bb163b-ff07-450b-a952-9bc7c02dc42a] [rule:"site/57f2b6d0-7783-012f-86c6-001f5b320164/9" rev:1] ACTION fast("HelloWorld") \nCLIPP ANNOUNCE: rheader\n2013-05-29T15:14:28.7842+0800 INFO - [22949] [tx:67bb163b-ff07-450b-a952-9bc7c02dc42a] [rule:"site/57f2b6d0-7783-012f-86c6-001f5b320164/10" rev:1] ACTION clipp_announce("rheader") \n2013-05-29T15:14:28.7842+0800 INFO - [22949] [tx:67bb163b-ff07-450b-a952-9bc7c02dc42a] [rule:"site/57f2b6d0-7783-012f-86c6-001f5b320164/10" rev:1] ACTION fast("DEF") \n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

  2. Failure:
    test_multi_threaded(TestHolistic) [/home/hyf/ironbee-master/clipp/tests/tc_holistic.rb:254]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"Error generating input: Failed to parse input.\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

  3. Failure:
    test_single_threaded(TestHolistic) [/home/hyf/ironbee-master/clipp/tests/tc_holistic.rb:243]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"Error generating input: Failed to parse input.\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

  4. Failure:
    test_ipmatch6_11(TestOperators) [/home/hyf/ironbee-master/clipp/tests/tc_operators.rb:123]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"2013-05-29T15:14:28.9792+0800 NOTICE - [23033] [tx:4acd0449-a13c-40ec-a20b-4dc9506e9b23] Set hostname to local IP "1.2.3.4"\nCLIPP ANNOUNCE: ipmatch6_11a\n2013-05-29T15:14:28.9796+0800 INFO - [23033] [tx:4acd0449-a13c-40ec-a20b-4dc9506e9b23] [rule:"site/57f2b6d0-7783-012f-86c6-001f5b320164/1" rev:1] ACTION clipp_announce("ipmatch6_11a") \n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

  5. Failure:
    test_ipmatch_11(TestOperators) [/home/hyf/ironbee-master/clipp/tests/tc_operators.rb:85]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"2013-05-29T15:14:29.0538+0800 NOTICE - [23065] [tx:23ff18a4-3533-4343-a510-b1265007b6cc] Set hostname to local IP "1.2.3.4"\nCLIPP ANNOUNCE: ipmatch_11a\n2013-05-29T15:14:29.0541+0800 INFO - [23065] [tx:23ff18a4-3533-4343-a510-b1265007b6cc] [rule:"site/57f2b6d0-7783-012f-86c6-001f5b320164/1" rev:1] ACTION clipp_announce("ipmatch_11a") \n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

  6. Failure:
    test_ipmatch6_11(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:173]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"2013-05-29T15:14:29.3915+0800 NOTICE - [23193] [tx:f6562b3f-7647-46ea-98db-fe72a657401a] Set hostname to local IP "1.2.3.4"\nCLIPP ANNOUNCE: ipmatch6_11a\n2013-05-29T15:14:29.3917+0800 INFO - [23193] [tx:f6562b3f-7647-46ea-98db-fe72a657401a] [rule:"site/57f2b6d0-7783-012f-86c6-001f5b320164/1" rev:1] ACTION clipp_announce("ipmatch6_11a") \n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

  7. Failure:
    test_ipmatch_11(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:135]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"2013-05-29T15:14:29.4735+0800 NOTICE - [23225] [tx:f39660b8-1b54-4410-9cb7-eda8b1904a5d] Set hostname to local IP "1.2.3.4"\nCLIPP ANNOUNCE: ipmatch_11a\n2013-05-29T15:14:29.4737+0800 INFO - [23225] [tx:f39660b8-1b54-4410-9cb7-eda8b1904a5d] [rule:"site/57f2b6d0-7783-012f-86c6-001f5b320164/1" rev:1] ACTION clipp_announce("ipmatch_11a") \n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

  8. Failure:
    test_negative_content_length(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:53]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"2013-05-29T15:14:29.5561+0800 NOTICE - [23257] [tx:bbc5fb33-2f12-4188-ba7b-88f55435dd71] Set hostname to local IP "1.2.3.4"\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

  9. Failure:
    test_negative_content_length2(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:68]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"2013-05-29T15:14:29.5975+0800 NOTICE - [23273] [tx:3b72287c-2d73-436f-a7b4-6b9f040fcb0e] Set hostname to local IP "1.2.3.4"\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

  10. Failure:
    test_request_body_rule(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:203]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"2013-05-29T15:14:29.6736+0800 NOTICE - [23305] [tx:398832e6-c336-4a41-8102-227b70f70e6c] Set hostname to local IP "1.2.3.4"\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

  11. Failure:
    test_rule_engine_log_with_empty_header(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:89]:
    / (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
    </ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) /> expected to not match
    <"2013-05-29T15:14:29.7610+0800 NOTICE - [23337] [tx:1afa6499-f572-4201-8763-bb672f6b7711] Set hostname to local IP "1.2.3.4"\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type "IronBee.CLIPP.PB.Input" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.

how does this happen and how to slove it?

@calfeld-zz
Copy link
Contributor

Part of our testing infrastructure uses protobuf to represent test data. It appears that something is going wrong in the parsing or generation. Could you provide:

  1. The complete output of 'make check' in the clipp subdirectory.
  2. Your configure.log.

?

Thanks,
c.

@onexpiece
Copy link
Author

  1. There are many outputs of "make check" in the clipp subdirectory which are like clipp_test_{number}.clipp.
  2. config.log
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

(edited by calfeld to remove config.log output for clarity. config.log at https://gist.github.com/calfeld/5678484)

@calfeld-zz
Copy link
Contributor

In the clipp subdirectory, please run

make clean
make check >& output.txt

And provide output.txt.

Thanks,
c.

@onexpiece
Copy link
Author

cat output.txt
make  check-am
make[1]: Entering directory `/home/hyf/ironbee-master/clipp'
make  check-local
make[2]: Entering directory `/home/hyf/ironbee-master/clipp'
(cd ./tests; abs_builddir=/home/hyf/ironbee-master/clipp abs_top_builddir=/home/hyf/ironbee-master /usr/local/bin/ruby ./ts_all.rb --verbose )
Generating 1000 samples request/response pairs.
Finished in 10.942746 seconds
Run options: --verbose
# Running tests:
TestFast#test_contradiction = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_9569.clipp
0.04 s = .
TestFast#test_falseinject = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_6224.clipp
0.04 s = .
TestFast#test_headers = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_939.clipp
0.04 s = .
TestFast#test_load = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_8559.clipp
0.04 s = .
TestFast#test_load_automata = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_8119.clipp
0.04 s = .
TestFast#test_multiple = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_2948.clipp
0.04 s = .
TestFast#test_nonfast = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_5537.clipp
0.04 s = .
TestFast#test_response = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_393.clipp
0.04 s = F
TestFast#test_without_fast = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_7496.clipp
0.04 s = .
TestHolistic#test_multi_threaded = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_3474.clipp
0.04 s = F
TestHolistic#test_single_threaded = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_3731.clipp
0.04 s = F
TestOperators#test_imatch = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_2424.clipp
0.04 s = .
TestOperators#test_ipmatch6_11 = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_8951.clipp
0.04 s = F
TestOperators#test_ipmatch_09 = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_7900.clipp
0.04 s = .
TestOperators#test_ipmatch_11 = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_1212.clipp
0.04 s = F
TestOperators#test_istreq = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_1968.clipp
0.05 s = .
TestOperators#test_match = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_5062.clipp
0.04 s = .
TestOperators#test_streq = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_3188.clipp
0.04 s = .
TestRegression#test_basic_rule = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_6846.clipp
0.04 s = .
TestRegression#test_body_before_header = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_3466.clipp
0.04 s = .
TestRegression#test_empty_header = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_7589.clipp
0.04 s = .
TestRegression#test_http09 = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_8997.clipp
0.04 s = .
TestRegression#test_ipmatch6_11 = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_2516.clipp
0.04 s = F
TestRegression#test_ipmatch_09 = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_9303.clipp
0.04 s = .
TestRegression#test_ipmatch_11 = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_4527.clipp
0.04 s = F
TestRegression#test_manyblank = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_1591.clipp
0.04 s = .
TestRegression#test_negative_content_length = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_8385.clipp
0.04 s = F
TestRegression#test_negative_content_length2 = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_3437.clipp
0.04 s = F
TestRegression#test_parse_http09 = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_2213.clipp
0.03 s = .
TestRegression#test_request_body_rule = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_1900.clipp
0.04 s = F
TestRegression#test_response_no_response_line = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_9631.clipp
0.04 s = .
TestRegression#test_rule_engine_log_with_empty_header = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_8611.clipp
0.04 s = F
TestRegression#test_trivial = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_8188.clipp
0.04 s = .
TestTesting#test_clipp_header = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_9722.clipp
0.04 s = .
TestTesting#test_erb = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_8751.clipp
0.03 s = .
TestTesting#test_input_hashes = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_6211.clipp
0.04 s = .
TestTesting#test_log_count = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_1541.clipp
0.03 s = .
TestTesting#test_simple_hash = /home/hyf/ironbee-master/clipp/clipp -c /home/hyf/ironbee-master/clipp/clipp_test_416.clipp
0.03 s = .
Finished tests in 1.488872s, 25.5227 tests/s, 77.2397 assertions/s.
  1) Failure:
test_response(TestFast) [/home/hyf/ironbee-master/clipp/tests/tc_fast.rb:108]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"CLIPP ANNOUNCE: rmessage\n2013-05-31T13:38:34.4173+0800 INFO      -  [1911] [tx:77a65212-9729-45fd-90cc-2d46300f0684] [rule:\"site/57f2b6d0-7783-012f-86c6-001f5b320164/9\" rev:1] ACTION clipp_announce(\"rmessage\") \n2013-05-31T13:38:34.4174+0800 INFO      -  [1911] [tx:77a65212-9729-45fd-90cc-2d46300f0684] [rule:\"site/57f2b6d0-7783-012f-86c6-001f5b320164/9\" rev:1] ACTION fast(\"HelloWorld\") \nCLIPP ANNOUNCE: rheader\n2013-05-31T13:38:34.4175+0800 INFO      -  [1911] [tx:77a65212-9729-45fd-90cc-2d46300f0684] [rule:\"site/57f2b6d0-7783-012f-86c6-001f5b320164/10\" rev:1] ACTION clipp_announce(\"rheader\") \n2013-05-31T13:38:34.4175+0800 INFO      -  [1911] [tx:77a65212-9729-45fd-90cc-2d46300f0684] [rule:\"site/57f2b6d0-7783-012f-86c6-001f5b320164/10\" rev:1] ACTION fast(\"DEF\") \n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
  2) Failure:
test_multi_threaded(TestHolistic) [/home/hyf/ironbee-master/clipp/tests/tc_holistic.rb:254]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"Error generating input: Failed to parse input.\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
  3) Failure:
test_single_threaded(TestHolistic) [/home/hyf/ironbee-master/clipp/tests/tc_holistic.rb:243]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"Error generating input: Failed to parse input.\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
  4) Failure:
test_ipmatch6_11(TestOperators) [/home/hyf/ironbee-master/clipp/tests/tc_operators.rb:123]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"2013-05-31T13:38:34.6103+0800 NOTICE    -  [2000] [tx:29b0bc80-f2f8-4005-8b17-16e4391e97b1] Set hostname to local IP \"1.2.3.4\"\nCLIPP ANNOUNCE: ipmatch6_11a\n2013-05-31T13:38:34.6106+0800 INFO      -  [2000] [tx:29b0bc80-f2f8-4005-8b17-16e4391e97b1] [rule:\"site/57f2b6d0-7783-012f-86c6-001f5b320164/1\" rev:1] ACTION clipp_announce(\"ipmatch6_11a\") \n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
  5) Failure:
test_ipmatch_11(TestOperators) [/home/hyf/ironbee-master/clipp/tests/tc_operators.rb:85]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"2013-05-31T13:38:34.6853+0800 NOTICE    -  [2033] [tx:9e93855f-59fd-4273-a6c8-d7e79f16ebb6] Set hostname to local IP \"1.2.3.4\"\nCLIPP ANNOUNCE: ipmatch_11a\n2013-05-31T13:38:34.6856+0800 INFO      -  [2033] [tx:9e93855f-59fd-4273-a6c8-d7e79f16ebb6] [rule:\"site/57f2b6d0-7783-012f-86c6-001f5b320164/1\" rev:1] ACTION clipp_announce(\"ipmatch_11a\") \n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
  6) Failure:
test_ipmatch6_11(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:173]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"2013-05-31T13:38:35.0027+0800 NOTICE    -  [2163] [tx:7ba10bec-2c80-4553-9771-03a00c6980ab] Set hostname to local IP \"1.2.3.4\"\nCLIPP ANNOUNCE: ipmatch6_11a\n2013-05-31T13:38:35.0030+0800 INFO      -  [2163] [tx:7ba10bec-2c80-4553-9771-03a00c6980ab] [rule:\"site/57f2b6d0-7783-012f-86c6-001f5b320164/1\" rev:1] ACTION clipp_announce(\"ipmatch6_11a\") \n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
  7) Failure:
test_ipmatch_11(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:135]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"2013-05-31T13:38:35.0781+0800 NOTICE    -  [2196] [tx:cb936a2f-ff65-4dd7-9d06-a573236f807c] Set hostname to local IP \"1.2.3.4\"\nCLIPP ANNOUNCE: ipmatch_11a\n2013-05-31T13:38:35.0784+0800 INFO      -  [2196] [tx:cb936a2f-ff65-4dd7-9d06-a573236f807c] [rule:\"site/57f2b6d0-7783-012f-86c6-001f5b320164/1\" rev:1] ACTION clipp_announce(\"ipmatch_11a\") \n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
  8) Failure:
test_negative_content_length(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:53]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"2013-05-31T13:38:35.1545+0800 NOTICE    -  [2228] [tx:02aae03f-6a39-43f8-bea5-60144038e749] Set hostname to local IP \"1.2.3.4\"\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
  9) Failure:
test_negative_content_length2(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:68]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"2013-05-31T13:38:35.1937+0800 NOTICE    -  [2244] [tx:793b461c-bf86-4ef1-abc6-14271c85c640] Set hostname to local IP \"1.2.3.4\"\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
 10) Failure:
test_request_body_rule(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:203]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"2013-05-31T13:38:35.2668+0800 NOTICE    -  [2282] [tx:d230294f-8b17-4fb5-8f94-56bfa708e575] Set hostname to local IP \"1.2.3.4\"\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
 11) Failure:
test_rule_engine_log_with_empty_header(TestRegression) [/home/hyf/ironbee-master/clipp/tests/tc_regression.rb:89]:
/ (EMERGENCY|CRITICAL|ALERT|ERROR|WARNING) / was found in log..
 expected to not match
<"2013-05-31T13:38:35.3434+0800 NOTICE    -  [2326] [tx:f5bc9c14-3c1c-4ad6-bb1c-039aacd0660c] Set hostname to local IP \"1.2.3.4\"\n[libprotobuf ERROR google/protobuf/message_lite.cc:123] Can't parse message of type \"IronBee.CLIPP.PB.Input\" because it is missing required fields: connection\nError generating input: Failed to parse input.\n">.
38 tests, 115 assertions, 11 failures, 0 errors, 0 skips
ruby -v: ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]
make[2]: *** [check-local] Error 11
make[2]: Leaving directory `/home/hyf/ironbee-master/clipp'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/hyf/ironbee-master/clipp'
make: *** [check] Error 2

Thanks
afu

@calfeld-zz
Copy link
Contributor

Hi,

The issue is mysterious. The only item that stands out is that you are using ruby 2.0 which we don't use much. Is it possible for you to try with a lower version of ruby? If you have a lower version installed, e.g., as ruby18, you could do

make check RUBY=ruby18

It might also helped if you e-mailed me (calfeld@qualys.com) one of the clipp_test_*.pb files in the clipp/tests directory.

Thanks, c.

@onexpiece
Copy link
Author

Yes, after I tried ruby1.8.7, "make check" passed all the tests!

Thank you very much for your patient reply.

@calfeld-zz
Copy link
Contributor

Good to hear. I'll update the configure test on Monday and close this item.

@calfeld-zz
Copy link
Contributor

Looks like there are protobuf related issues with both 1.9 and 2.0. I've added a configure warning (6c06293).

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