Zimbra 9 - FOSS

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

Re: Zimbra 9 - FOSS

Postby alex70 » Fri Oct 16, 2020 4:12 pm

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
Advanced member
Advanced member
Posts: 108
Joined: Sat Sep 13, 2014 12:45 am
Location: UK and Poland
ZCS/ZD Version: Zimbra 8.8.15_GA_3968
Contact:

Re: Zimbra 9 - FOSS

Postby ianw1974 » Fri Oct 16, 2020 4:19 pm

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
Advanced member
Advanced member
Posts: 108
Joined: Sat Sep 13, 2014 12:45 am
Location: UK and Poland
ZCS/ZD Version: Zimbra 8.8.15_GA_3968
Contact:

Re: Zimbra 9 - FOSS

Postby ianw1974 » Fri Oct 16, 2020 4:33 pm

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: 42
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 9 - FOSS

Postby alex70 » Fri Oct 16, 2020 5:09 pm

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
Advanced member
Advanced member
Posts: 108
Joined: Sat Sep 13, 2014 12:45 am
Location: UK and Poland
ZCS/ZD Version: Zimbra 8.8.15_GA_3968
Contact:

Re: Zimbra 9 - FOSS

Postby ianw1974 » Fri Oct 16, 2020 5:45 pm

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: 42
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 9 - FOSS

Postby alex70 » Sat Oct 17, 2020 9:27 am

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

Postby 10424bofh » Wed Oct 21, 2020 7:58 pm

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...

Return to “Administrators”

Who is online

Users browsing this forum: Bing [Bot], frailhavens and 21 guests