WeBWorK Main Forum

2.13 upgrade issues

2.13 upgrade issues

by Lars Jensen -
Number of replies: 7
Dear Colleagues,

We just upgraded our test server to version 2.13, and encountered two issues:
  1. we can't send mail. The smtp server runs on the default port, and has no security, so we used the default site.conf settings. The error message (see below) suggests that webwork can't connect to the server. Our production server runs v2.12 and connects just fine to the smtp server, and and sends mail.
  2. Statistics::R::IO won't install. cpan Statistics::R::IO results in the second error message below.
Any ideas how to fix this appreciated.

Thanks,
Lars

Error messages

Error when sending a message

Failed to send message: unable to establish SMTP connection Trace begun at /usr/share/perl5/Email/Sender/Transport/SMTP.pm line 142 Email::Sender::Transport::SMTP::_throw('Email::Sender::Transport::SMTP=HASH(0x860b8d5c)', 'unable to establish SMTP connection') called at /usr/share/perl5/Email/Sender/Transport/SMTP.pm line 108 Email::Sender::Transport::SMTP::_smtp_client('Email::Sender::Transport::SMTP=HASH(0x860b8d5c)') called at /usr/share/perl5/Email/Sender/Transport/SMTP.pm line 151 Email::Sender::Transport::SMTP::send_email('Email::Sender::Transport::SMTP=HASH(0x860b8d5c)', 'Email::Abstract=ARRAY(0x864da60c)', 'HASH(0x860b8ec4)') called at /usr/share/perl5/Email/Sender/Role/CommonSending.pm line 45 Email::Sender::Role::CommonSending::try {...} at /usr/share/perl5/Try/Tiny.pm line 81 eval {...} at /usr/share/perl5/Try/Tiny.pm line 72 Try::Tiny::try('CODE(0x865cb128)', 'Try::Tiny::Catch=REF(0x864c0d40)') called at /usr/share/perl5/Email/Sender/Role/CommonSending.pm line 58 Email::Sender::Role::CommonSending::send('Email::Sender::Transport::SMTP=HASH(0x860b8d5c)', 'Email::Abstract=ARRAY(0x864da60c)', 'HASH(0x865caf70)') called at /usr/share/perl5/Email/Sender/Simple.pm line 119 Email::Sender::Simple::send_email('Email::Sender::Simple', 'Email::Abstract=ARRAY(0x864da60c)', 'HASH(0x860b9504)') called at /usr/share/perl5/Email/Sender/Role/CommonSending.pm line 45 Email::Sender::Role::CommonSending::try {...} at /usr/share/perl5/Try/Tiny.pm line 81 eval {...} at /usr/share/perl5/Try/Tiny.pm line 72 Try::Tiny::try('CODE(0x860b8ed8)', 'Try::Tiny::Catch=REF(0x864da5e4)') called at /usr/share/perl5/Email/Sender/Role/CommonSending.pm line 58 Email::Sender::Role::CommonSending::send('Email::Sender::Simple', 'Email::Simple=HASH(0x864d9c40)', 'HASH(0x864da7b0)') called at /usr/share/perl5/Sub/Exporter/Util.pm line 18 Sub::Exporter::Util::__ANON__('Email::Simple=HASH(0x864d9c40)', 'HASH(0x864da7b0)') called at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Feedback.pm line 322 WeBWorK::ContentGenerator::Feedback::try {...} at /usr/share/perl5/Try/Tiny.pm line 81 eval {...} at /usr/share/perl5/Try/Tiny.pm line 72 Try::Tiny::try('CODE(0x8245f020)', 'Try::Tiny::Catch=REF(0x8656f844)') called at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Feedback.pm line 329 WeBWorK::ContentGenerator::Feedback::body('WeBWorK::ContentGenerator::Feedback=HASH(0x864dc08c)', 'HASH(0x864d9920)') called at /opt/webwork/webwork2/lib/WeBWorK/Template.pm line 155 WeBWorK::Template::template('/opt/webwork/webwork2/htdocs/themes/math4/system.template', 'WeBWorK::ContentGenerator::Feedback=HASH(0x864dc08c)') called at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 560 WeBWorK::ContentGenerator::content('WeBWorK::ContentGenerator::Feedback=HASH(0x864dc08c)') called at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 232 WeBWorK::ContentGenerator::go('WeBWorK::ContentGenerator::Feedback=HASH(0x864dc08c)') called at /opt/webwork/webwork2/lib/WeBWorK.pm line 384 WeBWorK::dispatch('Apache2::RequestRec=SCALAR(0x85da9234)') called at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 121 eval {...} at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 121 Apache::WeBWorK::handler('Apache2::RequestRec=SCALAR(0x85da9234)') called at -e line 0 eval {...} at -e line 0

cpan Statistics::R::IO error

...
Running make test
Skip blib/lib/auto/share/dist/Statistics-R-IO/WebWork/RserveClient.pl (unchanged)
PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/author-pod-coverage.t ........ skipped: these tests are for testing by the author
t/author-pod-syntax.t .......... skipped: these tests are for testing by the author
t/io-oo-rdata.t ................ Argument to Statistics::R::REXP::Integer->new() could not be dereferenced as a hash at t/io-oo-rdata.t line 72.
# Looks like your test exited with 255 before it could output anything.
t/io-oo-rdata.t ................ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 11/11 subtests
t/io-oo-rds.t .................. Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/lib/TestCases.pm line 47.
BEGIN failed--compilation aborted at t/lib/TestCases.pm line 204.
Compilation failed in require at t/io-oo-rds.t line 14.
BEGIN failed--compilation aborted at t/io-oo-rds.t line 14.
# Looks like your test exited with 255 before it could output anything.
t/io-oo-rds.t .................. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 66/66 subtests
t/io-oo-rserve-eval-live.t ..... Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/lib/TestCases.pm line 47.
BEGIN failed--compilation aborted at t/lib/TestCases.pm line 204.
Compilation failed in require at t/io-oo-rserve-eval-live.t line 41.
BEGIN failed--compilation aborted at t/io-oo-rserve-eval-live.t line 41.
t/io-oo-rserve-eval-live.t ..... Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/io-oo-rserve-eval-mock.t ..... Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/lib/TestCases.pm line 47.
BEGIN failed--compilation aborted at t/lib/TestCases.pm line 204.
Compilation failed in require at t/io-oo-rserve-eval-mock.t line 15.
BEGIN failed--compilation aborted at t/io-oo-rserve-eval-mock.t line 15.
# Looks like your test exited with 255 before it could output anything.
t/io-oo-rserve-eval-mock.t ..... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 61/61 subtests
t/io-oo-rserve-getfile-live.t .. skipped: Cannot connect to Rserve server at localhost:6311
t/io-oo-rserve-sereval-live.t .. Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/lib/TestCases.pm line 47.
BEGIN failed--compilation aborted at t/lib/TestCases.pm line 204.
Compilation failed in require at t/io-oo-rserve-sereval-live.t line 31.
BEGIN failed--compilation aborted at t/io-oo-rserve-sereval-live.t line 31.
t/io-oo-rserve-sereval-live.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/io-oo-rserve-sereval-mock.t .. Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/lib/TestCases.pm line 47.
BEGIN failed--compilation aborted at t/lib/TestCases.pm line 204.
Compilation failed in require at t/io-oo-rserve-sereval-mock.t line 15.
BEGIN failed--compilation aborted at t/io-oo-rserve-sereval-mock.t line 15.
# Looks like your test exited with 255 before it could output anything.
t/io-oo-rserve-sereval-mock.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 60/60 subtests
t/io-parser.t .................. foo at /root/.cpan/build/Statistics-R-IO-1.0001-Iib_ve/blib/lib/Statistics/R/IO/ParserState.pm line 56.
# Looks like your test exited with 255 before it could output anything.
t/io-parser.t .................. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 9/9 subtests
t/io-parserstate.t ............. foo at /root/.cpan/build/Statistics-R-IO-1.0001-Iib_ve/blib/lib/Statistics/R/IO/ParserState.pm line 56.
# Looks like your test exited with 255 before it could output anything.
t/io-parserstate.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 11/11 subtests
t/io-qap.t ..................... Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/lib/TestCases.pm line 47.
BEGIN failed--compilation aborted at t/lib/TestCases.pm line 204.
Compilation failed in require at t/io-qap.t line 15.
BEGIN failed--compilation aborted at t/io-qap.t line 15.
# Looks like your test exited with 255 before it could output anything.
t/io-qap.t ..................... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 54/54 subtests
t/io-rdata.t ................... Argument to Statistics::R::REXP::Integer->new() could not be dereferenced as a hash at t/io-rdata.t line 54.
# Looks like your test exited with 255 before it could output anything.
t/io-rdata.t ................... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 7/7 subtests
t/io-rds.t ..................... Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/lib/TestCases.pm line 47.
BEGIN failed--compilation aborted at t/lib/TestCases.pm line 204.
Compilation failed in require at t/io-rds.t line 14.
BEGIN failed--compilation aborted at t/io-rds.t line 14.
# Looks like your test exited with 255 before it could output anything.
t/io-rds.t ..................... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 62/62 subtests
t/io-rserve-eval.t ............. Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/lib/TestCases.pm line 47.
BEGIN failed--compilation aborted at t/lib/TestCases.pm line 204.
Compilation failed in require at t/io-rserve-eval.t line 26.
BEGIN failed--compilation aborted at t/io-rserve-eval.t line 26.
t/io-rserve-eval.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/io-rserve.t .................. Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/lib/TestCases.pm line 47.
BEGIN failed--compilation aborted at t/lib/TestCases.pm line 204.
Compilation failed in require at t/io-rserve.t line 15.
BEGIN failed--compilation aborted at t/io-rserve.t line 15.
# Looks like your test exited with 255 before it could output anything.
t/io-rserve.t .................. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 59/59 subtests
t/io-unserialize.t ............. # No tests run!
t/io-unserialize.t ............. 1/10
# Failed test 'No tests run for subtest "integer vectors"'
# at t/io-unserialize.t line 95.
foo at /root/.cpan/build/Statistics-R-IO-1.0001-Iib_ve/blib/lib/Statistics/R/IO/ParserState.pm line 56.
# Looks like your test exited with 255 just after 1.
t/io-unserialize.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 10/10 subtests
t/rexp-baseenvironment.t ....... ok
t/rexp-character.t ............. 1/32 Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/rexp-character.t line 20.
# Looks like your test exited with 255 just after 3.
t/rexp-character.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 29/32 subtests
t/rexp-closure.t ............... 1/21
# Failed test 'error-check in single-arg constructor'
# at t/rexp-closure.t line 31.
# 'Argument to Statistics::R::REXP::Closure->new() could not be dereferenced as a hash at t/rexp-closure.t line 30.
# '
# doesn't match '(?^:HASH data or a Statistics::R::REXP::Closure)'

# Failed test 'odd constructor arguments'
# at t/rexp-closure.t line 35.
# 'Statistics::R::REXP::Closure->new() got an odd number of elements at t/rexp-closure.t line 34.
# '
# doesn't match '(?^:odd number of arguments)'

# Failed test 'bad env enclosure'
# at t/rexp-closure.t line 50.
# 'Argument to Statistics::R::REXP::Integer->new() could not be dereferenced as a hash at t/rexp-closure.t line 48.
# '
# doesn't match '(?^:Attribute 'environment' must be an instance of Environment)'
Statistics::R::REXP::Symbol->new() got an odd number of elements at t/rexp-closure.t line 53.
# Looks like your test exited with 255 just after 8.
t/rexp-closure.t ............... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 16/21 subtests
t/rexp-complex.t ............... 1/32 Argument to Statistics::R::REXP::Complex->new() could not be dereferenced as a hash at t/rexp-complex.t line 24.
# Looks like your test exited with 255 just after 3.
t/rexp-complex.t ............... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 29/32 subtests
t/rexp-double.t ................ 1/32 Argument to Statistics::R::REXP::Double->new() could not be dereferenced as a hash at t/rexp-double.t line 20.
# Looks like your test exited with 255 just after 3.
t/rexp-double.t ................ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 29/32 subtests
t/rexp-emptyenvironment.t ...... ok
t/rexp-environment.t ........... 1/19
# Failed test 'error-check in single-arg constructor'
# at t/rexp-environment.t line 24.
# 'Argument to Statistics::R::REXP::Environment->new() could not be dereferenced as a hash at t/rexp-environment.t line 23.
# '
# doesn't match '(?^:HASH data or a Statistics::R::REXP::Environment)'

# Failed test 'odd constructor arguments'
# at t/rexp-environment.t line 28.
# 'Statistics::R::REXP::Environment->new() got an odd number of elements at t/rexp-environment.t line 27.
# '
# doesn't match '(?^:odd number of arguments)'
# Looks like you failed 2 tests of 19.
t/rexp-environment.t ........... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/19 subtests
t/rexp-expression.t ............ 1/37 Statistics::R::REXP::Symbol->new() got an odd number of elements at t/rexp-expression.t line 24.
# Looks like your test exited with 255 just after 3.
t/rexp-expression.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 34/37 subtests
t/rexp-globalenvironment.t ..... ok
t/rexp-integer.t ............... 1/34 Argument to Statistics::R::REXP::Integer->new() could not be dereferenced as a hash at t/rexp-integer.t line 20.
# Looks like your test exited with 255 just after 3.
t/rexp-integer.t ............... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 31/34 subtests
t/rexp-language.t .............. Statistics::R::REXP::Symbol->new() got an odd number of elements at t/rexp-language.t line 16.
# Looks like your test exited with 255 before it could output anything.
t/rexp-language.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 36/36 subtests
t/rexp-list.t .................. 1/39 Argument to Statistics::R::REXP::List->new() could not be dereferenced as a hash at t/rexp-list.t line 22.
# Looks like your test exited with 255 just after 3.
t/rexp-list.t .................. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 36/39 subtests
t/rexp-logical.t ............... 1/30 Argument to Statistics::R::REXP::Logical->new() could not be dereferenced as a hash at t/rexp-logical.t line 20.
# Looks like your test exited with 255 just after 3.
t/rexp-logical.t ............... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 27/30 subtests
t/rexp-null.t .................. 1/10
# Failed test 'setting null attributes'
# at t/rexp-null.t line 30.
# undef
# doesn't match '(?^:Null cannot have attributes)'
# Looks like you failed 1 test of 10.
t/rexp-null.t .................. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/10 subtests
t/rexp-raw.t ................... 1/21 Argument to Statistics::R::REXP::Raw->new() could not be dereferenced as a hash at t/rexp-raw.t line 20.
# Looks like your test exited with 255 just after 3.
t/rexp-raw.t ................... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 18/21 subtests
t/rexp-s3.t .................... 1/6 Argument to Statistics::R::REXP::Character->new() could not be dereferenced as a hash at t/rexp-s3.t line 19.
# Looks like your test exited with 255 just after 3.
t/rexp-s3.t .................... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/6 subtests
t/rexp-s4.t .................... ok
t/rexp-symbol.t ................ 1/20 Attribute 'name' must be a scalar value at /root/.cpan/build/Statistics-R-IO-1.0001-Iib_ve/blib/lib/Statistics/R/REXP/Symbol.pm line 55.
# Looks like your test exited with 255 just after 2.
t/rexp-symbol.t ................ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 18/20 subtests
t/rexp-unknown.t ............... 1/20 Statistics::R::REXP::Unknown->new() got an odd number of elements at t/rexp-unknown.t line 18.
# Looks like your test exited with 255 just after 4.
t/rexp-unknown.t ............... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 16/20 subtests
t/rexp-vector.t ................ ok
t/rexp.t ....................... ok

Test Summary Report
-------------------
t/io-oo-rdata.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 11 tests but ran 0.
t/io-oo-rds.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 66 tests but ran 0.
t/io-oo-rserve-eval-live.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
t/io-oo-rserve-eval-mock.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 61 tests but ran 0.
t/io-oo-rserve-sereval-live.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
t/io-oo-rserve-sereval-mock.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 60 tests but ran 0.
t/io-parser.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 9 tests but ran 0.
t/io-parserstate.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 11 tests but ran 0.
t/io-qap.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 54 tests but ran 0.
t/io-rdata.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 7 tests but ran 0.
t/io-rds.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 62 tests but ran 0.
t/io-rserve-eval.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
t/io-rserve.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 59 tests but ran 0.
t/io-unserialize.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 10 tests but ran 1.
t/rexp-character.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 32 tests but ran 3.
t/rexp-closure.t (Wstat: 65280 Tests: 8 Failed: 3)
Failed tests: 4-5, 8
Non-zero exit status: 255
Parse errors: Bad plan. You planned 21 tests but ran 8.
t/rexp-complex.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 32 tests but ran 3.
t/rexp-double.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 32 tests but ran 3.
t/rexp-environment.t (Wstat: 512 Tests: 19 Failed: 2)
Failed tests: 5-6
Non-zero exit status: 2
t/rexp-expression.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 37 tests but ran 3.
t/rexp-integer.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 34 tests but ran 3.
t/rexp-language.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 36 tests but ran 0.
t/rexp-list.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 39 tests but ran 3.
t/rexp-logical.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 30 tests but ran 3.
t/rexp-null.t (Wstat: 256 Tests: 10 Failed: 1)
Failed test: 9
Non-zero exit status: 1
t/rexp-raw.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 21 tests but ran 3.
t/rexp-s3.t (Wstat: 65280 Tests: 3 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 6 tests but ran 3.
t/rexp-symbol.t (Wstat: 65280 Tests: 2 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 20 tests but ran 2.
t/rexp-unknown.t (Wstat: 65280 Tests: 4 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 20 tests but ran 4.
Files=38, Tests=132, 23 wallclock secs ( 0.64 usr 0.17 sys + 19.93 cusr 1.54 csys = 22.28 CPU)
Result: FAIL
Failed 29/38 test programs. 7/132 subtests failed.
Makefile:1005: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
DAVOR/Statistics-R-IO/Statistics-R-IO-1.0001.tar.gz
make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports DAVOR/Statistics-R-IO/Statistics-R-IO-1.0001.tar.gz
In reply to Lars Jensen

Re: 2.13 upgrade issues

by Michael Gage -
Hi Lars,

Don't think I have answers but I have a few suggestions.

1. For the cpan module run "make" as opposed to "make test". It will give fewer errors and probably point to what is going wrong. The errors you list coming from the "test" phase of "make test" are probably all caused by the fact that the module was not created in the first phase.

2. Double check the configuration for sending mail in site.conf. They are different for Email::Sender than they were for Mail::Sender. Make sure that
$mail{tls_allowed} = 0; if necessary set $mail{smtpPort} = 25; to force
the connection to smtp to avoid the use of ssl. Remember to restart the apache server after changes. (Not 100% sure that is necessary but it won't hurt.)
In reply to Michael Gage

Re: 2.13 upgrade issues

by Lars Jensen -
Hi Mike,

Thanks for your reply. Your suggestion for installing Statistics::R::IO worked. Thanks! I also tried your suggestion for the mail configuration. My site.conf mail configuration is unchanged from 2.12, except $tls_allowed=0 is disabled and replaced by $mail{tls_allowed} = 0 and $mail{smtpPort} = 25 is enabled. I still get the same error message though....

Lars.
In reply to Lars Jensen

Re: 2.13 upgrade issues

by Michael Gage -
Hmmm. You restarted apache? It still seems like the port number or some other part of the handshake isn't what your smtp server is expecting. Do you know the folks running the smtp server can you have them look in their logs and see why the smtp server is rejecting the request? In the error report above the only relevant part that I can see is the smtp connection fails -- the rest just tells where the in the WeBWorK software the request came from.

Does the same thing happen when you try to email the class as a professor? I would expect that it doesn't work either.

The code that creates the transport object is at
https://github.com/openwebwork/webwork2/blob/master/lib/WeBWorK/ContentGenerator.pm#L2250
there are some warn messages there which you can uncomment (and restart apache) which will give you some extra information about the values of the smtp request.

Hope that helps.

Take care,

Mike

In reply to Michael Gage

Re: 2.13 upgrade issues

by Lars Jensen -
Hi Mike,

Thanks again for your reply. I get similar errors whether I send mail as a professor or a student.

When I enable the error messages in /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm I get the message below in apache's errror.log. I'm not sure what to use it for - it just seems to confirm my site.conf settings.

[Fri Jul 28 20:20:12.657812 2017] [perl:warn] [pid 8870] [client 71.93.75.139:57658] [/webwork2/test_course/feedback/] port is 25 at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 2270., referer: http://mahler.tmcc.edu/webwork2/test_course/feedback/
[Fri Jul 28 20:20:12.658215 2017] [perl:warn] [pid 8870] [client 71.93.75.139:57658] [/webwork2/test_course/feedback/] ssl is 0 at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 2271., referer: http://mahler.tmcc.edu/webwork2/test_course/feedback/
[Fri Jul 28 20:20:12.658397 2017] [perl:warn] [pid 8870] [client 71.93.75.139:57658] [/webwork2/test_course/feedback/] tls_allowed is 0 at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 2272., referer: http://mahler.tmcc.edu/webwork2/test_course/feedback/
[Fri Jul 28 20:20:12.658546 2017] [perl:warn] [pid 8870] [client 71.93.75.139:57658] [/webwork2/test_course/feedback/] smtpPort is set to 25 at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 2273., referer: http://mahler.tmcc.edu/webwork2/test_course/feedback/

I'll ask my it folks if they see anything at their side.

Thanks,
Lars.
In reply to Lars Jensen

Re: 2.13 upgrade issues

by Michael Gage -
That's useful confirmation that your configuration values are being read correctly and not overridden by some forgotten entry in course.conf or something like. I wasn't expecting anything to be overridden but it's best to be sure.

The only other thing I can suggest is to uncomment the "debug" switch in creating the transport object -- in the same block of code where you found
the warn messages. I'm not 100% sure what it does or how to interpret the messages but it may help in discussing the issue with your smtp group.

Good luck. Let us know how this comes out. smtp communications are often messy.

-- Mike
In reply to Michael Gage

Re: 2.13 upgrade issues

by Lars Jensen -
Hi Mike,

The email issue is solved. The problem was that my test server was not on my college's smtp whitelist. Otherwise, everything worked fine with the default configuration.

Lars.
In reply to Lars Jensen

Re: 2.13 upgrade issues

by Michael Gage -
Hi Lars,

Glad it worked out. These connection issues between server and client are often tricky.

-- Mike