Zimbra 9 - FOSS

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
User avatar
alex70
Posts: 46
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 9 - FOSS

Post by alex70 »

here the result of the command

Code: Select all

ii  software-properties-common 0.96.24.32.14 all          manage the repositories that you install software from (common)
ii  openjdk-8-jdk:amd64 8u265-b01-0ubuntu2~18.04 amd64        OpenJDK Development Kit (JDK)
ii  ant            1.10.5-3~18.04 all          Java based build tool like make
ii  ant-optional   1.10.5-3~18.04 all          Java based build tool like make - optional libraries
ii  ant-contrib    1.0~b3+svn177-10~18.04 all          collection of tasks, types and other tools for Apache Ant
ii  ruby           1:2.5.1      amd64        Interpreter of object-oriented scripting language Ruby (default version)
ii  git            1:2.17.1-1ubuntu0.7 amd64        fast, scalable, distributed revision control system
ii  maven          3.6.0-1~18.04.1 all          Java software project management and comprehension tool
ii  build-essential 12.4ubuntu1  amd64        Informational list of build-essential packages
ii  debhelper      11.1.6ubuntu2 all          helper programs for debian/rules
User avatar
ianw1974
Outstanding Member
Outstanding Member
Posts: 229
Joined: Sat Sep 13, 2014 12:45 am
Location: UK and Poland
Contact:

Re: Zimbra 9 - FOSS

Post by ianw1974 »

Nope. It's created by the zm-build process. Which is weird. I'll try to figure out what is going on, as it's creating fine at my end, so I don't know why it's not doing it for you.

Code: Select all

aptitude search ivy
p   elpa-ivy                                            - generic completion mechanism for Emacs                       
p   elpa-ivy-hydra                                      - additional key bindings for Emacs Ivy                        
p   ivy                                                 - agile dependency manager                                     
p   ivy-debian-helper                                   - Helper tools for building Debian packages with Ivy           
p   ivy-doc                                             - agile dependency manager (documentation)                     
p   ivyplusplus                                         - Adds features to ivy for creating projects                   
p   libivykis-dev                                       - Development libraries, header files and docs for libivykis   
p   libivykis0                                          - Asynchronous I/O readiness notification library              
p   libivykis0-dbg                                      - Asynchronous I/O readiness notification library (debug symbol
p   python-kivy                                         - Kivy - Multimedia / Multitouch framework in Python (Python 2)
p   python-kivy-examples                                - Kivy - Multimedia / Multitouch framework in Python (examples)
p   python-pivy                                         - Coin binding for Python                                      
v   python2.7-pivy                                      -                                                              
p   python3-kivy                                        - Kivy - Multimedia / Multitouch framework in Python (Python 3)
I don't have ivy installed, and it works fine, so it's definitely not a missed dependency. I didn't have /root/.ivy2 either, but when the script runs build.pl the build.pl script from Zimbra creates it during building Zimbra. So don't understand why it doesn't happen on yours.

I now have a /root/.ivy2 and /home/ian/.ivy2 as I ran the script as root and also as my normal user to check/test that sudo works fine.
User avatar
ianw1974
Outstanding Member
Outstanding Member
Posts: 229
Joined: Sat Sep 13, 2014 12:45 am
Location: UK and Poland
Contact:

Re: Zimbra 9 - FOSS

Post by ianw1974 »

The sudo process also works now:

Code: Select all

=========================================================================================================
DEPLOYING ARTIFACTS


#: pwd=/home/git/zimbra
#: mkdir -p /home/git/zimbra/BUILDS/UBUNTU18_64-KEPLER-900-20201016173035-FOSS-0001/archives
Running [mkdir -p /home/git/zimbra/BUILDS/UBUNTU18_64-KEPLER-900-20201016173035-FOSS-0001/archives]...
#: pwd=/home/git/zimbra
#: cp /home/git/zimbra/.staging/UBUNTU18_64-KEPLER-900-20201016173035-FOSS-0001/zm-build/zcs-*.20201016173035.tgz /home/git/zimbra/BUILDS/UBUNTU18_64-KEPLER-900-20201016173035-FOSS-0001/
Running [cp /home/git/zimbra/.staging/UBUNTU18_64-KEPLER-900-20201016173035-FOSS-0001/zm-build/zcs-*.20201016173035.tgz /home/git/zimbra/BUILDS/UBUNTU18_64-KEPLER-900-20201016173035-FOSS-0001/]...

=========================================================================================================

############################################
# INSTRUCTIONS TO SETUP NGINX PACKAGES HOST
############################################

# You might need to resolve network, firewall, selinux, permissions issues appropriately before proceeding:

# sudo sed -i -e s/^SELINUX=enforcing/SELINUX=permissive/ /etc/selinux/config
# sudo setenforce permissive
# sudo systemctl stop firewalld
# sudo ufw disable

sudo bash -s <<"EOM_SCRIPT"
[ -f /etc/redhat-release ] && ( yum install -y epel-release && yum install -y nginx && service nginx start )
[ -f /etc/redhat-release ] || ( apt-get -y install nginx && service nginx start )
tee /etc/nginx/conf.d/zimbra-pkg-archives-host.conf <<EOM
server {
  listen 8008;
  location / {
     root /home/git/zimbra/BUILDS;
     autoindex on;
  }
}
EOM
service httpd stop 2>/dev/null
service nginx restart
service nginx status
EOM_SCRIPT


=========================================================================================================


Zimbra archive file can be found under /home/git/zimbra/.staging
I just compiled it now, all fine. I'm not sure why your system doesn't build properly and errors on the /root/.ivy2/cache directory.

Code: Select all

ian@zimbra:/home/git/zimbra/BUILDS/UBUNTU18_64-KEPLER-900-20201016173035-FOSS-0001$ ls -lha
total 296M
drwxrwxr-x 3 ian ian 4.0K Oct 16 18:17 .
drwxrwxr-x 3 ian ian 4.0K Oct 16 18:17 ..
-rw-rw-r-- 1 ian ian  244 Oct 16 18:17 archive-access-u18.txt
drwxrwxr-x 2 ian ian 4.0K Oct 16 18:17 archives
-rw-rw-r-- 1 ian ian 296M Oct 16 18:17 zcs-9.0.0_GA_0001.UBUNTU18_64.20201016173035.tgz

You could try manually creating it and see if it helps:

Code: Select all

mkdir -p /root/.ivy2/cache
or if building as regular user:

Code: Select all

mkdir -p /home/<your-user-name>/.ivy2/cache
User avatar
alex70
Posts: 46
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 9 - FOSS

Post by alex70 »

I rebooted the system .... did all from scratch

1) open new ssh terminal
2) sudo su
3) rm /home/git/zimbra -r
5) cd /usr/src
4) rm zimbra-build-scripts -r
6) git clone https://github.com/ianw1974/zimbra-build-scripts
7) cd zimbra-build-scripts
8) ./02-build-zimbra.sh


Now the previous error went away but I have new ones

Code: Select all

[ivy:cachepath] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead
[ivy:cachepath] :: loading settings :: file = /home/git/zimbra/zm-mailbox/build-ivysettings.xml

3rd-party-defines:

compile:
    [javac] Compiling 296 source files to /home/git/zimbra/zm-mailbox/common/build/classes
    [javac]
    [javac]           WARNING
    [javac]
    [javac] The -source switch defaults to 9 in JDK 9.
    [javac] If you specify -target 1.8 you now must also specify -source 1.8.
    [javac] Ant will implicitly add -source 1.8 for you.  Please change your build file.
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
    [javac] /home/git/zimbra/zm-mailbox/common/src/java/com/zimbra/common/httpclient/ZimbraHttpClientManager.java:6: error: package javax.annotation does not exist
    [javac] import javax.annotation.PreDestroy;
    [javac]                        ^
    [javac] /home/git/zimbra/zm-mailbox/common/src/java/com/zimbra/common/mailbox/GrantGranteeType.java:22: error: package javax.xml.bind.annotation does not exist
    [javac] import javax.xml.bind.annotation.XmlEnum;
    [javac]                                 ^
    [javac] /home/git/zimbra/zm-mailbox/common/src/java/com/zimbra/common/mailbox/GrantGranteeType.java:26: error: cannot find symbol
    [javac] @XmlEnum
    [javac]  ^
    [javac]   symbol: class XmlEnum
    [javac] /home/git/zimbra/zm-mailbox/common/src/java/com/zimbra/common/mime/DataSourceWrapper.java:24: error: package javax.activation does not exist
    [javac] import javax.activation.DataSource;
    [javac]                        ^
    [javac] /home/git/zimbra/zm-mailbox/common/src/java/com/zimbra/common/mime/DataSourceWrapper.java:30: error: cannot find symbol
    [javac] public class DataSourceWrapper implements DataSource {
    [javac]                                           ^
    [javac]   symbol: class DataSource
    [javac] /home/git/zimbra/zm-mailbox/common/src/java/com/zimbra/common/mime/DataSourceWrapper.java:32: error: cannot find symbol
    [javac]     private final DataSource ds;
and at the end....

Code: Select all

    [javac]   symbol:   class DataHandler
    [javac]   location: class ZMimeMessage
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 90 errors
    [javac] 5 warnings

BUILD FAILED
/home/git/zimbra/zm-mailbox/build.xml:14: The following error occurred while executing this line:
/home/git/zimbra/zm-mailbox/build-common.xml:272: Compile failed; see the compiler error output for details.

Total time: 12 seconds


=========================================================================================================
FAILURE MSG : cmd='ant -Ddebug=0 -Dis-production=1 -Dzimbra.buildinfo.platform=UBUNTU18_64 -Dzimbra.buildinfo.pkg_os_tag=u18 -Dzimbra.buildinfo.version=9.0.0_GA_0001 -Dzimbra.buildinfo.type=FOSS -Dzimbra.buildinfo.release=20201016184845 -Dzimbra.buildinfo.date=20201016184845 -Dzimbra.buildinfo.host=datasyslab.it -Dzimbra.buildinfo.buildnum=0001 pkg-after-plough-through-tests'
EXTRA INFO  : 'ant -Ddebug=0 -Dis-production=1 -Dzimbra.buildinfo.platform=UBUNTU18_64 -Dzimbra.buildinfo.pkg_os_tag=u18 -Dzimbra.buildinfo.version=9.0.0_GA_0001 -Dzimbra.buildinfo.type=FOSS -Dzimbra.buildinfo.release=20201016184845 -Dzimbra.buildinfo.date=20201016184845 -Dzimbra.buildinfo.host=datasyslab.it -Dzimbra.buildinfo.buildnum=0001 pkg-after-plough-through-tests' exited with value 1

=========================================================================================================
--Stack Trace-- (30604)
./build.pl:555 called from main::SysExec
./build.pl:1018 called from main::__ANON__
./build.pl:577 called from main::RunInDir
./build.pl:1080 called from main::Build
./build.pl:1086 called from main::main

=========================================================================================================
END at ./build.pl line 1062.


=========================================================================================================
FAILURE MSG : child 30604 died
EXTRA INFO  : ret=255

=========================================================================================================
--Stack Trace-- (26591)
./build.pl:577 called from main::RunInDir
./build.pl:1080 called from main::Build
./build.pl:1086 called from main::main

=========================================================================================================
END at ./build.pl line 1062.

Zimbra archive file can be found under /home/git/zimbra/.staging

thanks for the time you are dedicating to me !!!!!
User avatar
ianw1974
Outstanding Member
Outstanding Member
Posts: 229
Joined: Sat Sep 13, 2014 12:45 am
Location: UK and Poland
Contact:

Re: Zimbra 9 - FOSS

Post by ianw1974 »

For anyone having similar issues:

Code: Select all

    [javac] The -source switch defaults to 9 in JDK 9.
    [javac] If you specify -target 1.8 you now must also specify -source 1.8.
    [javac] Ant will implicitly add -source 1.8 for you.  Please change your build file.
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
this seems to be a conflict of openjdk packages and being defaulted to the newer version. On checking, there were openjdk-8-jdk packages and openjdk-11-jdk packages installed. To resolve the above problem we removed all openjdk-11-* packages that were installed so that only openjdk-8-* packages were installed. Also default-jdk and default-jdk-headless packages were removed as well.

Alternatively, it's possible to have both installed and then run update-java-alternatives to set JDK 8 as the default. Just awaiting confirmation from @alex70 to see if it finally builds for him.
User avatar
alex70
Posts: 46
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 9 - FOSS

Post by alex70 »

Dear folks!!!!

I'm happy to inform you that I was able to upgrade my Zimbra installation from 8.8.15 to 9.0.0

As y'all could see from my past posts I had some issues, due for some misconfiguration of my server.
Once resolved, I followed line by line the instruction Ian ( @ianw1974 ) gave through his script ....
The script magically and automatically built the package zcs-9.0.0_GA_0001.UBUNTU18_64.20201016191132.tgz for my server ubuntu 18.04.
This morning I've decompressed the archive, run ./install.sh and the process has smoothly brought to the end.
This is my current version: 9.0.0_GA_3969.FOSS

A big thanks with a lot of compliments to Ian for his spectacular work in providing this wonderful script able to build the right 9.0.0 Zimbra package for the specific target server.

Once again THANKS INDEED!!!!

Alex
10424bofh
Outstanding Member
Outstanding Member
Posts: 285
Joined: Sat Sep 13, 2014 1:15 am

Re: Zimbra 9 - FOSS

Post by 10424bofh »

this just shows for a real productive enviroment you cant go with foss anymore

if you want it for home use and like to play around its fine.
otehrweise either go network or move away from zimbra

its great that you upgraded - this time - but i want to remind on issues in the past that often required the community to find the source and solution to issues
with making it harder und more complicated that community is shrinking fast.

if youre a small or midized company using FOSS was always a bit dicy but now its a high risk, with every update risking a total break (so full backups preupdate are now absolutly mandatory)
and putting trust into 3rd parties to make new releases...
User avatar
alex70
Posts: 46
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 9 - FOSS

Post by alex70 »

Thank you for your consideration... @10424bofh

Anyway, I'm testing in those past days Zimbra 9.0 and it works like a charm. Thanks again to the big work done by Ian (@ianw1974)
In case I encounter any issue, I have many other options to migrate to as Zextras.

Thank you

Alex
User avatar
alex70
Posts: 46
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 9 - FOSS

Post by alex70 »

Hello

this morning the Zimbra repo shows 5 new updates as shown here below:
  • zimbra-common-core-jar amd64 Zimbra Core Jars New version 9.0.0.1602908036-1.u18 Bionic
    zimbra-common-mbox-conf-attrs amd64 Zimbra Core Mailbox Attributes Configuration New version 9.0.0.1602835824-1.u18 Bionic
    zimbra-mbox-admin-console-war amd64 Zimbra Admin Console War New version 9.0.0.1602153228-1.u18 Bionic
    zimbra-mbox-webclient-war amd64 Zimbra WebClient War New version 9.0.0.1602758021-1.u18 Bionic
    zimbra-patch amd64 Zimbra Patch New version 9.0.0.1602916004.p8-1.u18 Bionic
If I accept the update, the new code is automatically applied to Zimbra or I need to rebuild the package and run the updating process (./install.sh)?

Thanks

Alex
User avatar
ianw1974
Outstanding Member
Outstanding Member
Posts: 229
Joined: Sat Sep 13, 2014 12:45 am
Location: UK and Poland
Contact:

Re: Zimbra 9 - FOSS

Post by ianw1974 »

You can do the updates @alex as these are their packages from their repository. Just restart zimbra after the updates.

Code: Select all

root@zimbra:~# aptitude safe-upgrade
The following packages will be upgraded: 
  libperl5.26 perl perl-base perl-modules-5.26 sudo zimbra-common-core-jar zimbra-common-mbox-conf-attrs zimbra-mbox-admin-console-war 
  zimbra-mbox-webclient-war zimbra-patch 
10 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.8 MB of archives. After unpacking 73.7 kB will be used.
Do you want to continue? [Y/n/?] 

Code: Select all

*** updating zmoauthsocial.jar and zm-oauth-social-common.jar ***
**** Fixing up the permission ****
**** Installation Completed. ****
**** Restart all the service as zimbra user. Run zmcontrol restart. ****
Post Reply