Install KeyHelp got error.  [SOLVED]

Have you discovered a bug? Tell us about it.
Post Reply
akong77
KeyHelp Translator
Posts: 44
Joined: Mon 2. Aug 2021, 07:39

Install KeyHelp got error.

Post by akong77 »

Hello,
I installed keyhelp done but got error at email protection.

Code: Select all

  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ERROR DETECTED <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

  [SKIPPED DUE PREVIOUS ERRORS] exec  | su - amavis -s /bin/bash -c 'razor-admin -register'
  [SKIPPED DUE PREVIOUS ERRORS] exec  | usermod -aG amavis clamav
  [SKIPPED DUE PREVIOUS ERRORS] exec  | usermod -aG clamav amavis
  [SKIPPED DUE PREVIOUS ERRORS] exec  | chmod 0640 /etc/amavis/conf.d/50-user
  [SKIPPED DUE PREVIOUS ERRORS] exec  | chown root:amavis /etc/amavis/conf.d/50-user
  [SKIPPED DUE PREVIOUS ERRORS] exec  | service clamav-daemon restart
  [SKIPPED DUE PREVIOUS ERRORS] exec  | service amavis restart
  [SKIPPED DUE PREVIOUS ERRORS] exec  | service spamassassin restart
  [SKIPPED DUE PREVIOUS ERRORS] exec  | systemctl enable spamassassin
  [SKIPPED DUE PREVIOUS ERRORS] exec  | systemctl enable clamav-daemon
  [SKIPPED DUE PREVIOUS ERRORS] exec  | grep "^\s*DatabaseCustomURL" /etc/clamav/freshclam.conf || echo "
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/junk.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/jurlbl.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/phish.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/rogue.hdb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/sanesecurity.ftm
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/sigwhitelist.ign2
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/scam.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/spamimg.hdb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/spamattach.hdb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/blurl.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/foxhole_generic.cdb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/foxhole_filename.cdb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/malwarehash.hsb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/hackingteam.hsb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/winnow_malware.hdb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/winnow_malware_links.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/winnow_extended_malware.hdb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/winnow.attachments.hdb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/winnow_bad_cw.hdb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/bofhland_cracked_URL.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/bofhland_malware_URL.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/bofhland_phishing_URL.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/bofhland_malware_attach.hdb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/porcupine.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/phishtank.ndb
  DatabaseCustomURL https://ftp.swin.edu.au/sanesecurity/porcupine.hsb
  DatabaseCustomURL https://urlhaus.abuse.ch/downloads/urlhaus.ndb
  " >> /etc/clamav/freshclam.conf
How to fix it?


---
Added code tags
User avatar
Alexander
Keyweb AG
Posts: 3814
Joined: Wed 20. Jan 2016, 02:23

Re: Install KeyHelp got error.

Post by Alexander »

Hello,

you have missed the prior part, before the "ERROR DETECTED" - this is where the command causing the error was shown, and also the error message. The things you posted are just the skipped commands: "SKIPPED DUE PREVIOUS ERRORS" because of the previous error.

As a reminder for the next time, you may post something like this, please use the appropriate forum area, like this one: "Bugs & Issues" viewforum.php?f=12
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
akong77
KeyHelp Translator
Posts: 44
Joined: Mon 2. Aug 2021, 07:39

Re: Install KeyHelp got error.

Post by akong77 »

Sorry,
I next time will post bugs.
exec | mkdir -p -m 0755 /var/spool/spamassassin/
exec | chown amavis:amavis /var/spool/spamassassin/

files | amavis/15-content_filter_mode.twig => /etc/amavis/conf.d/15-content_filter_mode
files | amavis/50-user.twig => /etc/amavis/conf.d/50-user
files | spamassassin/spamassassin => /etc/default/spamassassin
files | spamassassin/local.cf => /etc/spamassassin/local.cf

exec | su - amavis -s /bin/bash -c 'razor-admin -create'
Wide character in print at /usr/share/perl5/Razor2/Logger.pm line 107.
Wide character in print at /usr/share/perl5/Razor2/Logger.pm line 107.
Wide character in print at /usr/share/perl5/Razor2/Logger.pm line 107.
Wide character in print at /usr/share/perl5/Razor2/Logger.pm line 107.
nextserver: Bootstrap discovery failed. Giving up.
User avatar
Alexander
Keyweb AG
Posts: 3814
Joined: Wed 20. Jan 2016, 02:23

Re: Install KeyHelp got error.

Post by Alexander »

You are using an IPv6 only machine?
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
akong77
KeyHelp Translator
Posts: 44
Joined: Mon 2. Aug 2021, 07:39

Re: Install KeyHelp got error.

Post by akong77 »

No,I just setup ipv4 ip address.
User avatar
Alexander
Keyweb AG
Posts: 3814
Joined: Wed 20. Jan 2016, 02:23

Re: Install KeyHelp got error.

Post by Alexander »

Okay, than do the following:

There seams to be an issue with Razor on your system. This may be caused by some Chinese characters on your system. So lets first fix this issue in Razor first.

1) Open /usr/share/perl5/Razor2/Logger.pm
2) Use this fix: https://stackoverflow.com/questions/451 ... -at-logger
2.1) On line 13 add

Code: Select all

use Encode;
2.2) On line 107 (because of 2.1, now line 108) replace the line

Code: Select all

print $fd "$now_string$logstr";
with

Code: Select all

print $fd encode('utf-8', "$now_string$logstr");

Now call:

Code: Select all

su - amavis -s /bin/bash -c 'razor-admin -create'

---

Now lets perform all the skipped commands from the installer:

Code: Select all

su - amavis -s /bin/bash -c 'razor-admin -register' ; 
usermod -aG amavis clamav ; 
usermod -aG clamav amavis ;

.... and so on (the ones you posted in your first post)

---

Than you can remove the red warning in KeyHelp with the ( x ) on the top right.


Thats should be it.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
akong77
KeyHelp Translator
Posts: 44
Joined: Mon 2. Aug 2021, 07:39

Re: Install KeyHelp got error.

Post by akong77 »

I edit it and run su - amavis -s /bin/bash -c 'razor-admin -create'

It's got the same error.
nextserver: Bootstrap discovery failed. Giving up.
User avatar
Alexander
Keyweb AG
Posts: 3814
Joined: Wed 20. Jan 2016, 02:23

Re: Install KeyHelp got error.

Post by Alexander »

Normally this should be caused by either the system only has IPv6, or the Razor servers have been blocked by a firewall etc.

This is the URL which the command is trying to reach discovery.razor.cloudmark.com on port 2703
You can check if you can reach it manually.

We had this one case in the German area of this forum. There the reason was, that port 2703 was blocked by a firewall.

https://community-keyhelp-de.translate. ... app#p36742
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
akong77
KeyHelp Translator
Posts: 44
Joined: Mon 2. Aug 2021, 07:39

Re: Install KeyHelp got error.  [SOLVED]

Post by akong77 »

It's my network problem.All question is fix.Thanks a lot.
Post Reply