Unable to install eFa4 on Centos 7

General eFa discussion
Post Reply
agodinho
Posts: 5
Joined: 07 Jul 2021 08:35

Unable to install eFa4 on Centos 7

Post by agodinho » 07 Jul 2021 08:49

Hi All,

I am having trouble installing eFa4 since last Friday (2 jul 2021).
I have just installed a new Centos 7 minimal server and ran the install command "curl -sSL https://install.efa-project.org | bash" as I have always done before, however it stops with the following error:

2021.07.07-10:34:03 - ============= EFA4 BUILD SCRIPT STARTING ============
2021.07.07-10:34:03 - Good you are root.
2021.07.07-10:34:03 - Good you are running CentOS 7
2021.07.07-10:34:03 - Checking network connectivity
2021.07.07-10:34:04 - OK - https://mirrors.efa-project.org is reachable
2021.07.07-10:34:04 - Updating the OS
2021.07.07-10:34:11 - System Updated
2021.07.07-10:34:11 - Removing conflicting packages
2021.07.07-10:34:12 - Installing eFa packages (This can take a while)
2021.07.07-10:34:23 - ERROR: eFa4 failed to install
2021.07.07-10:34:23 - ^^^^^^^^^^ SCRIPT ABORTED ^^^^^^^^^^

When I look at the build log, I get the follwoing:

---> Package eFa.noarch 1:4.0.4-13.eFa.el7 will be installed
--> Processing Dependency: mariadb101u-server >= 1:10.1.35-1 for package: 1:eFa-4.0.4-13.eFa.el7.noarch
---> Package python-ply.noarch 0:3.4-11.el7 will be installed
--> Finished Dependency Resolution
Error: Package: 1:eFa-4.0.4-13.eFa.el7.noarch (eFa4)
Requires: mariadb101u-server >= 1:10.1.35-1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
2021.07.07-10:34:23 - ERROR: eFa4 failed to install
2021.07.07-10:34:23 - ^^^^^^^^^^ SCRIPT ABORTED ^^^^^^^^^^

I have already re-installed centos 7 twice and get same error. Tried installing the mariadb101u-server manually, but after successfully installing it, the install script removes it as a conflict package.

Is this a bug in the install? has something changed in the repo that is not agreeing with the install script?

Cheers,

Agodinho

User avatar
shawniverson
Posts: 3525
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Unable to install eFa4 on Centos 7

Post by shawniverson » 09 Jul 2021 10:20

Taking a look into this, sorry for delay.

agodinho
Posts: 5
Joined: 07 Jul 2021 08:35

Re: Unable to install eFa4 on Centos 7

Post by agodinho » 09 Jul 2021 10:34

Thanks, I will wait.
I have tried today and still same error.

User avatar
shawniverson
Posts: 3525
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Unable to install eFa4 on Centos 7

Post by shawniverson » 11 Jul 2021 16:53

Should be fixed now, updated the repo.

agodinho
Posts: 5
Joined: 07 Jul 2021 08:35

Re: Unable to install eFa4 on Centos 7

Post by agodinho » 12 Jul 2021 07:36

Hi,

I have succesfully installed eFa and restarted to start the configuration, went through all the steps to configure and at the end after accepting and typing OK I got an error as below:

Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
[eFa] - Error initializing system! Please try again...

agodinho
Posts: 5
Joined: 07 Jul 2021 08:35

Re: Unable to install eFa4 on Centos 7

Post by agodinho » 12 Jul 2021 10:12

Hi,

Forget about the previous error.
I have reinstalled centos 7 minimal and now the install has completed successfully and its up and running.

Thanks!

TyraNoah
Posts: 1
Joined: 03 Aug 2021 05:51

Re: Unable to install eFa4 on Centos 7

Post by TyraNoah » 03 Aug 2021 06:06

So insightful and helpful. I hope mine will respond correctly and well this time round. I have been sick with this failures.

owenj7920
Posts: 1
Joined: 22 Nov 2021 05:22

Re: Unable to install eFa4 on Centos 7

Post by owenj7920 » 22 Nov 2021 05:32

I tried installing once again today:

The ius-archive repo was still needed as a fix The prompt for reboot did not appear root password was not modified The eFa-Init file was present, and ran correctly upon reboot

Everything seems to be running as intended now

EDIT

The web interface shows:

Status -- MailScanner: | NO | 0 proc(s) Postfix: | NO | 0 proc(s) MSMilter: | NO | 0 proc(s)

in the shell:

service mailscanner status

● mailscanner.service - LSB: MailScanner daemon Loaded: loaded (/usr/lib/MailScanner/init/ms-init; enabled; vendor preset: disabled) Active: active (running) since Mon 2021-07-05 09:20:45 CEST; 3min 9s ago

service postfix status

● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2021-07-05 08:54:42 CEST; 30min ago

service msmilter status

● msmilter.service - LSB: MSMilter daemon Loaded: loaded (/usr/lib/MailScanner/init/msmilter-init; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/msmilter.service.d └─override.conf Active: failed (Result: protocol) since Mon 2021-07-05 08:59:05 CEST; 26min ago

service msmilter restart

Job for msmilter.service failed. See "systemctl status msmilter.service" and "journalctl -xe" for details.

journalctl -xe

Jul 05 09:36:55 TMailscanEFAv4.realcomm.it root[14723]: Starting MSMilter Jul 05 09:36:55 TMailscanEFAv4.realcomm.it msmilter-init[14721]: MSMilter starting ... Jul 05 09:36:57 TMailscanEFAv4.realcomm.it msmilter-init[14721]: Trying to setlogsock(unix) Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: MSMilter Daemon starting... Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: Reading configuration file /etc/MailScanner/MailScanner.conf Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: Reading configuration file /etc/MailScanner/conf.d/README Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: Read 868 hostnames from the phishing whitelist Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: Read 5807 hostnames from the phishing blacklists Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: Config: is basically connected with mobile erp, SQLWhitelist jul 09 DBI.
Config: calling custom init function SQLBlacklist Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: MailWatch: Starting up MailWatch SQL Blacklist Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: Could not use Custom Function code MailScanner::CustomConfig::InitSQLBlacklist, it could not be "eval"ed. Make sure the module is correct with perl -wc (Error: DBI connect('database=mailscanner;host=localhost','mailwatch',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13 "Permission denied") at /usr/share/MailScanner/perl/custom/SQLSpamSettings.pm line 69. Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: ) Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: Config: calling custom init function MailWatchLogging Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: Config: calling custom init function SQLWhitelist Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: MailWatch: Starting up MailWatch SQL Whitelist Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: Could not use Custom Function code MailScanner::CustomConfig::InitSQLWhitelist, it could not be "eval"ed. Make sure the module is correct with perl -wc (Error: DBI connect('database=mailscanner;host=localhost','mailwatch',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13 "Permission denied") at /usr/share/MailScanner/perl/custom/SQLSpamSettings.pm line 69. Jul 05 09:36:57 TMailscanEFAv4.realcomm.it MSMilter[14725]: ) Jul 05 09:36:57 TMailscanEFAv4.realcomm.it root[14727]: MSMilter started Jul 05 09:36:57 TMailscanEFAv4.realcomm.it msmilter-init[14721]: setconn: inet:33333@127.0.0.1: Permission denied at /usr/sbin/MSMilter line 685. Jul 05 09:36:57 TMailscanEFAv4.realcomm.it msmilter-init[14721]: main: socket not bound at /usr/sbin/MSMilter line 691. Jul 05 09:36:57 TMailscanEFAv4.realcomm.it msmilter-init[14721]: BEGIN failed--compilation aborted at /usr/sbin/MSMilter line 705. Jul 05 09:36:58 TMailscanEFAv4.realcomm.it msmilter-init[14721]: MSMilter started with process id 14726 Jul 05 09:36:58 TMailscanEFAv4.realcomm.it systemd[1]: New main PID 14726 does not exist or is a zombie. Jul 05 09:36:58 TMailscanEFAv4.realcomm.it systemd[1]: Failed to start LSB: MSMilter daemon.

User avatar
shawniverson
Posts: 3525
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Unable to install eFa4 on Centos 7

Post by shawniverson » 22 Nov 2021 11:54

Looks like the system didn't initialize completely.

You are getting a lot of permission denied.

First thing to check is SELinux, set to permissive temporarily and see if it helps any.

Code: Select all

sudo setenforce 0
Next thing would be to confirm that the password for the custom functions is working for MySQL/MariaDB

Post Reply