Hi All,
Sorry if this is posted in the wrong section or has already been covered, I could not find a similar problem when I did a search.
The problem I am having is when I run sa-learn either directly from the command line or as a cron job I get an error relating to " /usr/local/cpanel/Cpanel/Mail/SpamAssassin/Plugin/P0f.pm: syntax error at /usr/local/cpanel/Cpanel/JS/Variations.pm line 20". I tried looking up this error on the SpamAssassin pages directly and found nothing, but as the path relates to cPanel thought it might be something cPanel has added and not a part of SpamAssassin as such and hence my posting here today.
As far as I can tell, the error first started appearing in the cron output on the 15 December. I don't know if that date is significant but it's strange that the timestamp of /usr/local/cpanel/Cpanel/JS/Variations.pm is about 15 minutes before the first cron job that showed this error which could point to a bug in that file (updated during a cPanel update)? My server is running WHM 60.0 (build 28).
Any help getting this fixed would be appreciated, I have root access to the server if required.
The full output is as follows:
Many thanks in advance,
Jonathan
Sorry if this is posted in the wrong section or has already been covered, I could not find a similar problem when I did a search.
The problem I am having is when I run sa-learn either directly from the command line or as a cron job I get an error relating to " /usr/local/cpanel/Cpanel/Mail/SpamAssassin/Plugin/P0f.pm: syntax error at /usr/local/cpanel/Cpanel/JS/Variations.pm line 20". I tried looking up this error on the SpamAssassin pages directly and found nothing, but as the path relates to cPanel thought it might be something cPanel has added and not a part of SpamAssassin as such and hence my posting here today.
As far as I can tell, the error first started appearing in the cron output on the 15 December. I don't know if that date is significant but it's strange that the timestamp of /usr/local/cpanel/Cpanel/JS/Variations.pm is about 15 minutes before the first cron job that showed this error which could point to a bug in that file (updated during a cPanel update)? My server is running WHM 60.0 (build 28).
Any help getting this fixed would be appreciated, I have root access to the server if required.
The full output is as follows:
Code:
[EMAIL][email protected][/EMAIL] [~/mail/domain.co.uk/abc/.spam/cur]# sa-learn --spam ./123.456.server.example.com\,S\=3542\,W\=3615\:2\,Sc
Bareword found where operator expected at /usr/local/cpanel/Cpanel/JS/Variations.pm line 20, near "$filename =~ s{/js2"
(Might be a runaway multi-line // string starting on line 19)
(Missing operator before js2?)
plugin: failed to parse plugin /usr/local/cpanel/Cpanel/Mail/SpamAssassin/Plugin/P0f.pm: syntax error at /usr/local/cpanel/Cpanel/JS/Variations.pm line 20, near "$filename =~ s{/js2"
Global symbol "$filename" requires explicit package name at /usr/local/cpanel/Cpanel/JS/Variations.pm line 21.
Global symbol "$replace_extension" requires explicit package name at /usr/local/cpanel/Cpanel/JS/Variations.pm line 21.
Global symbol "$filename" requires explicit package name at /usr/local/cpanel/Cpanel/JS/Variations.pm line 22.
Unmatched right curly bracket at /usr/local/cpanel/Cpanel/JS/Variations.pm line 23, at end of line
syntax error at /usr/local/cpanel/Cpanel/JS/Variations.pm line 23, near "}"
Compilation failed in require at /usr/local/cpanel/Cpanel/Locale.pm line 19.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Locale.pm line 19.
Compilation failed in require at /usr/local/cpanel/Cpanel/Net/P0f.pm line 14.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Net/P0f.pm line 14.
Compilation failed in require at /usr/local/cpanel/Cpanel/Mail/SpamAssassin/Plugin/P0f.pm line 52.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Mail/SpamAssassin/Plugin/P0f.pm line 53.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/PluginHandler.pm line 108.
Learned tokens from 0 message(s) (1 message(s) examined)
Jonathan
Last edited by a moderator: