Calling CustomAction returned Can't use string ("1")

Bugs in eFa 4
Post Reply
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Calling CustomAction returned Can't use string ("1")

Post by henk »

System is up to date with latest patches. ( d.d. 18-6-2021)

In /var/log/maillog, for every received mail

Code: Select all

Jun 18 11:25:16 efa MailScanner[23532]: Calling CustomAction returned Can't use string ("1") as a HASH ref while "strict refs" in use at /usr/share/MailScanner/perl/custom/CustomAction.pm line 155.

When I login to the Gui and train Bayes with 1 message, massive error messages in repeating blocks( 300 in 1 sec)

in /var/log/php-fpm/www-error.log

Code: Select all

18-Jun-2021 11:49:11 Europe/Amsterdam] PHP Notice:  Undefined offset: 0 in /var/www/html/mailscanner/functions.php on line 2519
[18-Jun-2021 11:49:11 Europe/Amsterdam] PHP Notice:  Undefined offset: 2 in /var/www/html/mailscanner/functions.php on line 2519
[18-Jun-2021 11:49:11 Europe/Amsterdam] PHP Notice:  Undefined offset: 5 in /var/www/html/mailscanner/functions.php on line 2519
[18-Jun-2021 11:49:11 Europe/Amsterdam] PHP Notice:  Undefined offset: 6 in /var/www/html/mailscanner/functions.php on line 2519
[18-Jun-2021 11:49:11 Europe/Amsterdam] PHP Notice:  Undefined offset: 14 in /var/www/html/mailscanner/functions.php on line 2519
[18-Jun-2021 11:49:11 Europe/Amsterdam] PHP Notice:  Undefined offset: 22 in /var/www/html/mailscanner/functions.php on line 2519
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
MattS
Posts: 20
Joined: 12 Dec 2017 14:00

Re: Calling CustomAction returned Can't use string ("1")

Post by MattS »

Same here for the Undefined Offset errors in www-error.log. Not seeing your error in maillog though.

Log file is growing exponentially.....
Mr. Happy
Posts: 51
Joined: 03 Jan 2014 17:07

Re: Calling CustomAction returned Can't use string ("1")

Post by Mr. Happy »

I've got the same 'CustomAction' error...

edit:
the sollution offered here https://githubmemory.com/repo/E-F-A/v4/issues/310 keeps the error from being printed in the maillog, but there are still no tokens added in the efa-table.
Why is that?
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: Calling CustomAction returned Can't use string ("1")

Post by henk »

Nice to know if you did upgrade, as I just did to: eFa.noarch 1:4.0.4-17.eFa.el7

You need to apply the changes again :!: :idea:


aslo noticed the mariadb service was disabled after the upgrade.

1. yum swap -- mariadb101u-config mariadb101u-server -- mariadb102-server
2. yum install eFa
3. systemctl enable mariadb
reboot

And a few minor defaults settings I reverted after the upgrade. (I still dont use IPV6 )

Code: Select all

--- /etc/postfix/main.cf        2021-07-29 16:41:12.007547121 +0200
+++ /tmp/puppet-file20210729-15000-152j4yt      2021-07-29 16:50:19.734814721 +0200
@@ -759,7 +759,7 @@
 #non_smtpd_milters = inet:localhost:8891, inet:localhost:8893
 message_size_limit = 133169152
 virtual_mailbox_limit = 0
-mailbox_size_limit = 133169152
+mailbox_size_limit = 0
 #qmqpd_authorized_clients = 127.0.0.1 [::1]
 qmqpd_authorized_clients = 127.0.0.1
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
Mr. Happy
Posts: 51
Joined: 03 Jan 2014 17:07

Re: Calling CustomAction returned Can't use string ("1")

Post by Mr. Happy »

Changes were indeed reversed, my mariadb was running fine.
That seems to be an issue on your side.

However my token-table still does not populate... :?
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: Calling CustomAction returned Can't use string ("1")

Post by henk »

Can you show?

Code: Select all

systemctl status mariadb
Mysql was running too, but

Code: Select all

# systemctl status mariadb
● mariadb.service - MariaDB 10.2 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
           └─limit.conf, override.conf
   Active: active (running) since Thu 2021-07-29 16:51:56 CEST; 22min ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
 Main PID: 2120 (mysqld)
   Status: "Taking your SQL requests now..."
   CGroup: /system.slice/mariadb.service
           └─2120 /usr/libexec/mysqld --basedir=/usr
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
Mr. Happy
Posts: 51
Joined: 03 Jan 2014 17:07

Re: Calling CustomAction returned Can't use string ("1")

Post by Mr. Happy »

Got the same thing.
I guess something else triggers the start of mariadb
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: Calling CustomAction returned Can't use string ("1")

Post by henk »

However my token-table still does not populate
Works fine over here.

Can you run?

Code: Select all

spamassassin -D --lint 2>&1 | grep bayes:

About the already running mysql, can you check. Just want to know.

Code: Select all

systemctl status mysqld
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
Mr. Happy
Posts: 51
Joined: 03 Jan 2014 17:07

Re: Calling CustomAction returned Can't use string ("1")

Post by Mr. Happy »

henk wrote: 30 Jul 2021 09:16
However my token-table still does not populate
Works fine over here.

Can you run?

Code: Select all

spamassassin -D --lint 2>&1 | grep bayes:

Code: Select all

spamassassin -D --lint 2>&1 | grep bayes:
Jul 30 12:45:54.446 [2723] dbg: bayes: learner_new self=Mail::SpamAssassin::Plugin::Bayes=HASH(0x4e89650), bayes_store_module=Mail::SpamAssassin::BayesStore::SQL
Jul 30 12:45:54.542 [2723] dbg: bayes: using username: postfix
Jul 30 12:45:54.542 [2723] dbg: bayes: learner_new: got store=Mail::SpamAssassin::BayesStore::SQL=HASH(0x55d4cf0)
Jul 30 12:45:54.819 [2723] dbg: bayes: database connection established
Jul 30 12:45:54.832 [2723] dbg: bayes: found bayes db version 3
Jul 30 12:45:54.832 [2723] dbg: bayes: Using userid: 1
Jul 30 12:45:54.889 [2723] dbg: bayes: corpus size: nspam = 4337, nham = 68686
Jul 30 12:45:54.890 [2723] dbg: bayes: tokenized body: 120 tokens
Jul 30 12:45:54.891 [2723] dbg: bayes: tokenized uri: 0 tokens
Jul 30 12:45:54.891 [2723] dbg: bayes: tokenized invisible: 0 tokens
Jul 30 12:45:54.892 [2723] dbg: bayes: tokenized header: 14 tokens
Jul 30 12:45:54.893 [2723] dbg: bayes: tok_get_all: token count: 20
Jul 30 12:45:54.896 [2723] dbg: bayes: score = 0.49176563485452
Jul 30 12:45:55.297 [2723] dbg: timing: total 2858 ms - init: 2401 (84.0%), b_tie_ro: 290 (10.1%), parse: 1.36 (0.0%), extract_message_metadata: 6 (0.2%), get_uri_detail_list: 2.7 (0.1%), tests_pri_-1000: 10 (0.3%), compile_gen: 151 (5.3%), compile_eval: 26 (0.9%), tests_pri_-950: 6 (0.2%), tests_pri_-900: 7 (0.2%), tests_pri_-100: 6 (0.2%), tests_pri_-90: 22 (0.8%), check_bayes: 13 (0.5%), b_tokenize: 4.0 (0.1%), b_tok_get_all: 2.6 (0.1%), b_comp_prob: 0.26 (0.0%), b_tok_touch_all: 2.9 (0.1%), b_finish: 1.65 (0.1%), tests_pri_0: 280 (9.8%), tests_pri_10: 6 (0.2%), tests_pri_20: 6 (0.2%), tests_pri_30: 6 (0.2%), tests_pri_500: 86 (3.0%), tests_pri_1000: 7 (0.2%)
henk wrote: 30 Jul 2021 09:16 About the already running mysql, can you check. Just want to know.

Code: Select all

systemctl status mysqld
mysqld does not exist, so I used mariadb

Code: Select all

● mariadb.service - MariaDB 10.2 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
           └─limit.conf, override.conf
   Active: active (running) since Mon 2021-07-26 18:32:46 CEST; 3 days ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
 Main PID: 2080 (mysqld)
   Status: "Taking your SQL requests now..."
   CGroup: /system.slice/mariadb.service
           └─2080 /usr/libexec/mysqld --basedir=/usr
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: Calling CustomAction returned Can't use string ("1")

Post by henk »

Bayes looks fine.

Maybe a test from the GUI -> Tools will show if something is wrong)


On Mysql / Mysqld / Mariadb, found this:-) ( but still no idea who started the db it when the service was disabled.)

Code: Select all

ls -l /etc/systemd/system/my*
lrwxrwxrwx 1 root root 39 Jul 29 17:15 /etc/systemd/system/mysqld.service -> /usr/lib/systemd/system/mariadb.service
lrwxrwxrwx 1 root root 39 Jul 29 17:15 /etc/systemd/system/mysql.service -> /usr/lib/systemd/system/mariadb.service
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
Mr. Happy
Posts: 51
Joined: 03 Jan 2014 17:07

Re: Calling CustomAction returned Can't use string ("1")

Post by Mr. Happy »

henk wrote: 30 Jul 2021 19:39 Bayes looks fine.

Maybe a test from the GUI -> Tools will show if something is wrong)
It shows nothing wrong. I'm looking at the efa-database / tokens-table. Is that a legacy table perhaps?
henk wrote: 30 Jul 2021 19:39 On Mysql / Mysqld / Mariadb, found this:-) ( but still no idea who started the db it when the service was disabled.)

Code: Select all

ls -l /etc/systemd/system/my*
lrwxrwxrwx 1 root root 39 Jul 29 17:15 /etc/systemd/system/mysqld.service -> /usr/lib/systemd/system/mariadb.service
lrwxrwxrwx 1 root root 39 Jul 29 17:15 /etc/systemd/system/mysql.service -> /usr/lib/systemd/system/mariadb.service
The following commandline in /etc gave me this

Code: Select all

grep -ir mariadb.service *
systemd/system/sqlgrey.service.d/override.conf:After=syslog.target network.target mariadb.service
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Calling CustomAction returned Can't use string ("1")

Post by shawniverson »

I'll work on some of these issues as soon as I can. They are not major.
Post Reply