eFa 5 Installation error - [eFa] - Error initializing system! Please try again...

Bugs in eFa 5
Post Reply
jlau
Posts: 7
Joined: 21 Nov 2020 06:13

eFa 5 Installation error - [eFa] - Error initializing system! Please try again...

Post by jlau »

I was installing eFa 5 on a brand new CentOS 9 Stream minimal install and ran into an issue during initial setup.
The script would fail at this point:

Code: Select all

[eFa] - Configuring hostname and domainname
[eFa] - Setting IP settings
[eFa] - Setting DNS
[eFa] - Generating SSH Host keys
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub
The key fingerprint is:
SHA256:[REMOVED FOR SECURITY]
The key's randomart image is:
[REMOVED FOR SECURITY]
unknown key type dsa
[eFa] - Error initializing system!  Please try again...
The problem: "unknown key type dsa"
DSA has been removed from recent versions of OpenSSH due to security vulnerabilities.

The solution:
Edit the script /usr/sbin/eFa-Commit and comment out the lines handling the generation of the DSA key:

Code: Select all

if [[ $genhostkeys -eq 1 ]]; then
[ $verbose -eq 1 ] && echo -e "$green[eFa]$clean - Generating SSH Host keys"
rm -f /etc/ssh/ssh_host_rsa_key
[ $? -ne 0 ] && exit 1
rm -f /etc/ssh/ssh_host_dsa_key
[ $? -ne 0 ] && exit 1
rm -f /etc/ssh/ssh_host_ecdsa_key
[ $? -ne 0 ] && exit 1
rm -f /etc/ssh/ssh_host_ed25519_key
[ $? -ne 0 ] && exit 1
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
[ $? -ne 0 ] && exit 1
#ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
#[ $? -ne 0 ] && exit 1
ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa
[ $? -ne 0 ] && exit 1
ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N '' -t ed25519
[ $? -ne 0 ] && exit 1
User avatar
barbours
Posts: 54
Joined: 24 Sep 2019 06:13
Contact:

Re: eFa 5 Installation error - [eFa] - Error initializing system! Please try again...

Post by barbours »

EFA-project is going off into the sunset. Please come join us on OpenEFA - https://openefa.com forum: forum.openefa.com. We are developing a modern, more dynamic, smarter EFA. We are continuing support of the efa-project efa so please post your solution there.

Look forward to seeing you.

sb
djshaunvt
Posts: 14
Joined: 30 Jun 2019 11:48

Re: eFa 5 Installation error - [eFa] - Error initializing system! Please try again...

Post by djshaunvt »

Thanks to the poster for this solution.. I have been struggling for days with this error...

Worked like a charm !!!!

I install the new EFA but it detects alot of legitimate emails as spam for some reason

Also when realeasing the emails it says released but the emails never arrive on the exchnage server.. Normal emails are delivered fine.

I like the look of the old one better though i must say... Keep that in mind but glad something new is on the horizon..

Needs a bit of work I think to incorpore the more user friendly view of the older versions such as efa 4 and 5
Post Reply