Installation Error

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
patrickwilson82
Advanced member
Advanced member
Posts: 134
Joined: Tue Mar 13, 2018 5:37 pm
ZCS/ZD Version: 8.8.15

Installation Error

Post by patrickwilson82 »

Hello,

I'm trying to install a new Zimbra server so that I can migrate off of an old server. During the install process I keep running into this error:

Code: Select all

Use Zimbra's package repository [Y] y

Warning: apt-key output should not be parsed (stdout is not a terminal)
Importing Zimbra GPG key
ERROR: Unable to retrive Zimbra GPG key for package validation
Please fix system to allow normal package installation before proceeding
I've tried to reference this wiki page: https://wiki.zimbra.com/wiki/Error_%22U ... idation%22 and on step 1 I see that it wants me to have port 11371 open. If I run the command sudo ufw status verbose, this is what I have open.

Code: Select all

To                         Action      From
--                         ------      ----
80/tcp                     ALLOW IN    Anywhere
443/tcp                    ALLOW IN    Anywhere
11371/tcp                  ALLOW IN    Anywhere
22/tcp                     ALLOW IN    Anywhere
80/tcp (v6)                ALLOW IN    Anywhere (v6)
443/tcp (v6)               ALLOW IN    Anywhere (v6)
11371/tcp (v6)             ALLOW IN    Anywhere (v6)
22/tcp (v6)                ALLOW IN    Anywhere (v6)
I've also tried running this command:

Code: Select all

root@mail:/tmp/zcs-NETWORK-8.8.15_GA_4177.UBUNTU20_64.20211112014220# gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9BE6ED79
gpg: CRC error; 9336A6 - 8F7947
gpg: read_block: read error: Invalid keyring
gpg: Total number processed: 0
Can someone please tell me what I'm doing wrong? Thanks.
uttam.takalkar
Zimbra Employee
Zimbra Employee
Posts: 55
Joined: Wed Jul 27, 2022 6:16 am

Re: Installation Error

Post by uttam.takalkar »

Can the server access the internet and download packages from files.zimbra.com? It's required for install.
refer existing topic viewtopic.php?t=67849
patrickwilson82
Advanced member
Advanced member
Posts: 134
Joined: Tue Mar 13, 2018 5:37 pm
ZCS/ZD Version: 8.8.15

Re: Installation Error

Post by patrickwilson82 »

uttam.takalkar wrote: Thu Mar 30, 2023 4:43 pm Can the server access the internet and download packages from files.zimbra.com? It's required for install.
refer existing topic viewtopic.php?t=67849
Yes I have a working internet connection. I had tried installing from a download on my desktop computer which I then uploaded to my server. Just now I tried to download directly on my server, but even though I can resolve google.com I can't resolve files.zimbra.org.

Code: Select all

root@zm01new:/tmp# wget -c https://files.zimbra.org/downloads/8.8.15_GA/zcs-NETWORK-8.8.15_GA_4177.UBUNTU20_64.20211112014220.tgz
--2023-03-30 17:21:32--  https://files.zimbra.org/downloads/8.8.15_GA/zcs-NETWORK-8.8.15_GA_4177.UBUNTU20_64.20211112014220.tgz
Resolving files.zimbra.org (files.zimbra.org)... failed: Name or service not known.
wget: unable to resolve host address ‘files.zimbra.org’
umashankar.avagadda
Zimbra Employee
Zimbra Employee
Posts: 120
Joined: Wed Apr 05, 2023 6:29 am

Re: Installation Error

Post by umashankar.avagadda »

Seems to be you are trying with "files.zimbra.org", it should be "files.zimbra.com" .
patrickwilson82
Advanced member
Advanced member
Posts: 134
Joined: Tue Mar 13, 2018 5:37 pm
ZCS/ZD Version: 8.8.15

Re: Installation Error

Post by patrickwilson82 »

umashankar.avagadda wrote: Wed Apr 05, 2023 2:39 pm Seems to be you are trying with "files.zimbra.org", it should be "files.zimbra.com" .
Thank you. I realized that error. And I can now download the installer from the zimbra.com site using the wget command. So I for sure have a good internet connection. But I'm still running in to the same error.

Code: Select all

Use Zimbra's package repository [Y] y

Warning: apt-key output should not be parsed (stdout is not a terminal)
Importing Zimbra GPG key
ERROR: Unable to retrive Zimbra GPG key for package validation
Please fix system to allow normal package installation before proceeding
I've also tried running this as well to manually import the key:

Code: Select all

root@mail:/tmp/zcs-NETWORK-8.8.15_GA_4177.UBUNTU20_64.20211112014220# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9BE6ED79
Executing: /tmp/apt-key-gpghome.caMY9PSBTr/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 9BE6ED79
gpg: key D5CEF8BF9BE6ED79: "Zimbra Packaging Services <packaging-devel@zimbra.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
And I'm still unable to continue with the installation.
deepak.gautam
Zimbra Employee
Zimbra Employee
Posts: 19
Joined: Sun Jun 19, 2022 1:41 pm

Re: Installation Error

Post by deepak.gautam »

To fix the above error we can do two things:

1. Open port 11371

Code: Select all

11371	tcp,udp	hkp	OpenPGP HTTP Keyserver
2. Force it to use port 80:

Code: Select all

gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9BE6ED79
Either way will allow the installation to continue. If you have further errors, you would need to look into the install.log.
patrickwilson82
Advanced member
Advanced member
Posts: 134
Joined: Tue Mar 13, 2018 5:37 pm
ZCS/ZD Version: 8.8.15

Re: Installation Error

Post by patrickwilson82 »

deepak.gautam wrote: Wed Apr 05, 2023 5:38 pm To fix the above error we can do two things:

1. Open port 11371

Code: Select all

11371	tcp,udp	hkp	OpenPGP HTTP Keyserver
2. Force it to use port 80:

Code: Select all

gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9BE6ED79
Either way will allow the installation to continue. If you have further errors, you would need to look into the install.log.
Deepak,

Thank you, but I've already tried the steps from this wiki page. I've opened 11371.

Code: Select all

administrator@mail:~$ sudo ufw verbose
Status: active

To                         Action      From
--                         ------      ----
80/tcp                     ALLOW       Anywhere
443                        ALLOW       Anywhere
11371                      ALLOW       Anywhere
22                         ALLOW       Anywhere
80/tcp (v6)                ALLOW       Anywhere (v6)
443 (v6)                   ALLOW       Anywhere (v6)
11371 (v6)                 ALLOW       Anywhere (v6)
22 (v6)                    ALLOW       Anywhere (v6)
And I ran the command to try and force it to use port 80.

Code: Select all

administrator@mail:~$ gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9BE6ED79
gpg: directory '/home/administrator/.gnupg' created
gpg: keybox '/home/administrator/.gnupg/pubring.kbx' created
gpg: CRC error; 9336A6 - 8F7947
gpg: read_block: read error: Invalid keyring
gpg: Total number processed: 0
Post Reply