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