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 3:07 pm

Hello @ianw1974

I had a try .... created the ssh key ... and then:
- execution of 01-install-build-deps.sh with no issue
- execution of 02-build-zimbra.sh with an error related to Directory not existing: /root/.ivy2/cache

see below

Code: Select all

Buildfile: /home/git/zimbra/zm-mailbox/build.xml

clean-ant:

clean:

clean:

clean:

clean:

clean:

clean-pkg:

clean:
     [exec] rm -f -r build

BUILD SUCCESSFUL
Total time: 1 second
#: pwd=/home/git/zimbra/zm-mailbox
#: 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=20201016164624 -Dzimbra.buildinfo.date=20201016164624 -Dzimbra.buildinfo.host=datasyslab.it -Dzimbra.buildinfo.buildnum=0001 pkg-after-plough-through-tests
Running [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=20201016164624 -Dzimbra.buildinfo.date=20201016164624 -Dzimbra.buildinfo.host=datasyslab.it -Dzimbra.buildinfo.buildnum=0001 pkg-after-plough-through-tests]...
Buildfile: /home/git/zimbra/zm-mailbox/build.xml

set-no-halt-on-failure:
     [echo] WARNING: IGNORING UNIT TEST FAILURES

set-halt-on-failure:

publish-local-all:

clean-cache:

BUILD FAILED
/home/git/zimbra/zm-mailbox/build.xml:13: The following error occurred while executing this line:
/home/git/zimbra/zm-mailbox/build-common.xml:577: Directory does not exist: /root/.ivy2/cache

Total time: 0 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=20201016164624 -Dzimbra.buildinfo.date=20201016164624 -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=20201016164624 -Dzimbra.buildinfo.date=20201016164624 -Dzimbra.buildinfo.host=datasyslab.it -Dzimbra.buildinfo.buildnum=0001 pkg-after-plough-through-tests' exited with value 1

=========================================================================================================
--Stack Trace-- (10448)
./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 10448 died
EXTRA INFO  : ret=255

=========================================================================================================
--Stack Trace-- (6034)
./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


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 3:17 pm

Seems to be failing on this:

Code: Select all

BUILD FAILED
/home/git/zimbra/zm-mailbox/build.xml:13: The following error occurred while executing this line:
/home/git/zimbra/zm-mailbox/build-common.xml:577: Directory does not exist: /root/.ivy2/cache


Ubuntu 18.04? You ran the script as a regular user or as root? If you ran as a regular user, let me know, I ran mine as root, but then later added sudo just in case anyone ran it as a normal user. But I can check/test as a regular user if need be and try to find the fix.
User avatar
alex70
Posts: 42
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 9 - FOSS

Postby alex70 » Fri Oct 16, 2020 3:20 pm

ubuntu 18.04
i'm running as root user with sudo -s
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 3:28 pm

You can run the scripts as root without using sudo. If you are a regular user, the scripts will do sudo automatically anyway. So it might be because of this.
User avatar
alex70
Posts: 42
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 9 - FOSS

Postby alex70 » Fri Oct 16, 2020 3:37 pm

that's strange ... anyway directory /root/.ivy2/cache does not exist on my ubuntu 18.04 server

there is a misunderstanding ... I enter with sudo only once to access to root environment... than I run all the command without put before sudo.
I can try with a normal user (not root) but I do not think this will resolve
Last edited by alex70 on Fri Oct 16, 2020 3:42 pm, edited 1 time in total.
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 3:38 pm

I've just had to fix the scripts to work properly with sudo, so if you did a git clone, first do a git pull command to get the latest changes.

You could do this:

Code: Select all

sudo su
./02-build-zimbra.sh


that way you'll be at root user already and will simplify things if sudo not working yet. I'm just testing the sudo stuff now on my side to make sure it's working fine. I generally don't use sudo, I tend to use su to root and then I run all the scripts. But will confirm after my build finishes as a regular user.
User avatar
alex70
Posts: 42
Joined: Sat Sep 13, 2014 1:06 am

Re: Zimbra 9 - FOSS

Postby alex70 » Fri Oct 16, 2020 3:57 pm

Unfortunately ... error still occurs
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:01 pm

Did you pull my recent changes for the sudo fix I did before attempting again?

Using:

Code: Select all

sudo su
./02-build-zimbra.sh


works, because then everything is being done as the root user, so if you didn't do this you can try it. The new changes I made fixed some issues when running the scripts as a regular user, of which I am just verifying at my end now to see if it builds or not and will update soon as it will probably take about an hour to finish.
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:06 pm

Can you copy this command and paste at the console, as it will tell me if all the dependencies installed:

Code: Select all

for pkg in software-properties-common openjdk-8-jdk ant ant-optional ant-contrib ruby git maven build-essential debhelper ; do dpkg -l $pkg | grep $pkg ; done


it should return something like this:

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


/root/.ivy2 is created by the zm-build process anyway, not by my scripts. So I can only think some dependency missing.
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

YEs .... I did exactly what you suggested or better:

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


... same error ... not able to find the directory /root/.ivy2/cache
in fact, the directory does not exist ... could be a missed system package?

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 16 guests