Zimbra 9 - FOSS

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Zimbra 9 - FOSS

Post by phoenix »

manens wrote:This is a good use case for the concept of todo list :
https://twitter.com/beezimfr/status/1250412639273881602
En effet, il est. CentOS8 était juste ma petite blague pour la journée. J’apprécie vraiment votre travail sur ce sujet et le «classique» ui web est très bien pour moi.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
manens
Posts: 11
Joined: Fri Sep 12, 2014 10:26 pm

Re: Zimbra 9 - FOSS

Post by manens »

phoenix wrote:
manens wrote:This is a good use case for the concept of todo list :
https://twitter.com/beezimfr/status/1250412639273881602
En effet, il est. CentOS8 était juste ma petite blague pour la journée. J’apprécie vraiment votre travail sur ce sujet et le «classique» ui web est très bien pour moi.
Hi Phoenix,

I got a plan to integrate rspamd (in a near future) in custom builds, I saw your post here :
viewtopic.php?f=15&t=62443

would you like to participate ?

Best regards,
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Zimbra 9 - FOSS

Post by phoenix »

manens wrote:
phoenix wrote:
manens wrote:This is a good use case for the concept of todo list :
https://twitter.com/beezimfr/status/1250412639273881602
En effet, il est. CentOS8 était juste ma petite blague pour la journée. J’apprécie vraiment votre travail sur ce sujet et le «classique» ui web est très bien pour moi.
Hi Phoenix,

I got a plan to integrate rspamd (in a near future) in custom builds, I saw your post here :
viewtopic.php?f=15&t=62443

would you like to participate ?
That's a very kind offer and the answer would be yes, I'd love to participate. :) I must warn you in advance that I don't do this for a living, my experience is purely amateur for my own interest. If that's OK with you I'd be happy to do what I can to help.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
ivanbishop
Posts: 14
Joined: Thu Mar 12, 2015 4:27 pm

Re: Zimbra 9 - FOSS

Post by ivanbishop »

I use zimbra at home. 2 accounts. I woudnt mind paying a nominal 3-yr fee to keep up with the new UI etc etc but I am not a business and cant dedicate funds to business pricing ...

SO :)


Is there an effort here underway to build on Ubuntu 18 and 20 (docker images) for the Zimbra IX ? I do not care about the new UI.

Please let me know if I can help test/build docker images

Thanks

Ivan
User avatar
maumar
Outstanding Member
Outstanding Member
Posts: 390
Joined: Fri Sep 12, 2014 10:28 pm

Re: Zimbra 9 - FOSS

Post by maumar »

Sorry, what I am doing wrong?
I have added ssh rsa key

Code: Select all

  build@b5ef777c3753: ~/installer-build/zm-build $ ./build.pl --build-no=0001 --build-ts=`date +'%Y%m%d%H%M%S'`   --build-release=KEPLER --build-release-no=9.0.0   --build-release-candidate=GA --build-type=FOSS    --git-default-branch=release/9.0.0 --build-thirdparty-server=files.zimbra.com    --no-interactive
=========================================================================================================
 BUILD_NO                           : cmdline           : 1
 BUILD_TS                           : cmdline           : 20200629055955
 BUILD_OS                           : default           : RHEL7_64
 BUILD_DESTINATION_BASE_DIR         : default           : /home/build/installer-build/BUILDS
 BUILD_SOURCES_BASE_DIR             : default           : /home/build/installer-build
 BUILD_RELEASE                      : cmdline           : KEPLER
 BUILD_RELEASE_NO                   : cmdline           : 9.0.0
 BUILD_RELEASE_CANDIDATE            : cmdline           : GA
 BUILD_TYPE                         : cmdline           : FOSS
 BUILD_THIRDPARTY_SERVER            : cmdline           : files.zimbra.com
 BUILD_PROD_FLAG                    : default           : 1
 BUILD_DEBUG_FLAG                   : default           : 0
 BUILD_DEV_TOOL_BASE_DIR            : default           : /home/build/.zm-dev-tools
 INTERACTIVE                        : cmdline           : 0
 DISABLE_TAR                        : default           : 0
 DISABLE_BUNDLE                     : default           : 0
 EXCLUDE_GIT_REPOS                  : default           : 
 GIT_DEFAULT_BRANCH                 : cmdline           : release/9.0.0
 STOP_AFTER_CHECKOUT                : default           : 0
 BUILD_HOSTNAME                     : default           : b5ef777c3753.fbs.it
 BUILD_ARCH                         : default           : x86_64
 PKG_OS_TAG                         : default           : r7
 BUILD_RELEASE_NO_SHORT             : default           : 900
 DESTINATION_NAME                   : default           : RHEL7_64-KEPLER-900-20200629055955-FOSS-1
 BUILD_DIR                          : default           : /home/build/installer-build/.staging/RHEL7_64-KEPLER-900-20200629055955-FOSS-1
 DEPLOY_URL_PREFIX                  : default           : http://b5ef777c3753.fbs.it:8008/RHEL7_64-KEPLER-900-20200629055955-FOSS-1
=========================================================================================================
 ENV_ARCHIVE_SUFFIX_STR             : (undef)
 ENV_BUILD_INCLUDE                  : (undef)
 ENV_CACHE_CLEAR_FLAG               : (undef)
 ENV_FORCE_REBUILD                  : (undef)
 ENV_GIT_FULL_CLONE                 : (undef)
 ENV_GIT_UPDATE_INCLUDE             : (undef)
 ENV_PACKAGE_INCLUDE                : (undef)
 ENV_RESUME_FLAG                    : (undef)
 ENV_SKIP_CLEAN_FLAG                : (undef)
=========================================================================================================
 USING javac                        : /usr/bin/javac (JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.x86_64)
 USING java                         : /usr/bin/java
 USING maven                        : /usr/bin/mvn
 USING ant                          : /usr/bin/ant
 USING cc                           : /usr/bin/cc
 USING c++                          : /usr/bin/c++
 USING ruby                         : /usr/bin/ruby
 USING make                         : /usr/bin/make
=========================================================================================================
#: pwd=/home/build/installer-build
#: mkdir -p /home/build/installer-build/.staging/RHEL7_64-KEPLER-900-20200629055955-FOSS-1
Running [mkdir -p /home/build/installer-build/.staging/RHEL7_64-KEPLER-900-20200629055955-FOSS-1]...
#: pwd=/home/build/installer-build
#: mkdir -p /home/build/installer-build/.staging/RHEL7_64-KEPLER-900-20200629055955-FOSS-1/logs
Running [mkdir -p /home/build/installer-build/.staging/RHEL7_64-KEPLER-900-20200629055955-FOSS-1/logs]...
#: pwd=/home/build/installer-build
#: mkdir -p /home/build/.zcs-deps
Running [mkdir -p /home/build/.zcs-deps]...
#: pwd=/home/build/installer-build
#: mkdir -p /home/build/.ivy2/cache
Running [mkdir -p /home/build/.ivy2/cache]...

=========================================================================================================
 Processing 57 repositories
=========================================================================================================

#: pwd=/home/build/installer-build
#: git ls-remote --heads https://github.com/Zimbra/ant-1.7.0-ziputil-patched.git release/9.0.0
Running [git ls-remote --heads https://github.com/Zimbra/ant-1.7.0-ziputil-patched.git release/9.0.0]...


=========================================================================================================
FAILURE MSG : Clone Attempts Failed

=========================================================================================================
--Stack Trace-- (192)
./build.pl:399 called from main::Clone
./build.pl:1076 called from main::Checkout
./build.pl:1086 called from main::main

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

gibiscus
Posts: 3
Joined: Thu Jul 02, 2020 1:00 pm

Re: Zimbra 9 - FOSS

Post by gibiscus »

maumar wrote:Sorry, what I am doing wrong?
I have added ssh rsa key
hey there im stuck at that too for a while before i realise that you shouldn't use option --git-default-branch= like it states in the official zm-build repo in github, for example i use this options set and it worked fine for me:

Code: Select all

./build.pl --build-ts=`date +'%Y%m%d%H%M%S'` \
  --build-release=KEPLER --build-release-no=9.0.0 \
  --build-release-candidate=GA --build-type=FOSS \
  --build-thirdparty-server=files.zimbra.com --no-interactive
as you may noticed that im also remove the --build-no option too(it's wrong by the way read till the end to find out why)

later my build procces ended up with an error something like some folder(convertd) that it was looking for is not found, in that case you will have too make that folder manual it looks like this(you will have to use your path to the dir):

Code: Select all

mkdir $HOME/installer-build/.staging/UBUNTU18_64-KEPLER-900-20200702155225-FOSS-1004/zm-build/storebuild/opt/zimbra/lib/ext/convertd/
but it will create new build proccess(and number of build too)(e.g. folder was UBUNTU18_64-KEPLER-900-20200702155225-FOSS-1004 become UBUNTU18_64-KEPLER-900-20200702155225-FOSS-1005) i guess that you will have to use --build-no to avoid this; also the option --build-ts=`date +'%Y%m%d%H%M%S'` will always create a new different path and error will repeat, still not figured out dispite that i build it before
gibiscus
Posts: 3
Joined: Thu Jul 02, 2020 1:00 pm

Re: Zimbra 9 - FOSS

Post by gibiscus »

another guess something wrong with the zimbra-store.sh - its remove the convertd folder even if you make that folder manual
https://github.com/Zimbra/zm-build/blob ... a-store.sh
so what my algoritm is:
first - run build without --build-no and --build-ts the script create folders with default variables like build-no is 1000 and build-ts is date+time
the build will crash cause convertd folder is not found
then - make that dir manual (mkdir /path/to/your/envoriment/convertd)
after run build proccess again but now with --build-no and --build-ts and values is you give from

Code: Select all

ls $HOME/installer-build/.staging/
UBUNTU18_64-KEPLER-900-20200702180459-FOSS-1007
in my case build-no=1007 and build-ts=20200702180459
so the build is crashing every time on the stage 56

Code: Select all

BUILDING: zm-gql (56 of 56)
...
bash $HOME/installer-build/zm-build/instructions/bundling-scripts/zimbra-store.sh
cp: cannot create regular file '$HOME/installer-build/.staging/UBUNTU18_64-KEPLER-900-20200702180459-FOSS-1007/zm-build/storebuild/opt/zimbra/lib/ext/convertd/': Not a directory
gibiscus
Posts: 3
Joined: Thu Jul 02, 2020 1:00 pm

Re: Zimbra 9 - FOSS

Post by gibiscus »

so i find a workaround for myself atleast:
zimbra-store.sh has a line that makes the convertd folder https://github.com/Zimbra/zm-build/blob ... ore.sh#L98 then later in the script there is a commnand that copy compiled jar files in to that folder like this one here https://github.com/Zimbra/zm-build/blob ... re.sh#L112 and this one https://github.com/Zimbra/zm-build/blob ... re.sh#L128

so what i did was easy - i'd add mkdir command(line 98) before each of the cp command and it go on fine till the end of the building proccess(i did not test the finished build and don't know if it's working one or not), for example line 112 has cp command that copy content to convertd folder

Code: Select all

cp -rf ${repoDir}/zm-convertd-store/build/dist/*jar ${repoDir}/zm-build/${currentPackage}/opt/zimbra/lib/ext/convertd
and the working one is

Code: Select all

mkdir -p ${repoDir}/zm-build/${currentPackage}/opt/zimbra/lib/ext/convertd
cp -rf ${repoDir}/zm-convertd-store/build/dist/*jar ${repoDir}/zm-build/${currentPackage}/opt/zimbra/lib/ext/convertd
i put full modifed zimbra-store.sh script here https://pastebin.com/Z3t7EwCb cause zm-build github repo has no issue tab to suggest modifications there
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 889
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 9.0.0_P39 NETWORK Edition

Re: Zimbra 9 - FOSS

Post by JDunphy »

gibiscus wrote:so i find a workaround for myself atleast:
Thanks for post this. I am about to get involved myself and this thread will be extremely valuable for others.
Jim
MaySky
Posts: 25
Joined: Sat Apr 02, 2016 6:57 am

Re: Zimbra 9 - FOSS

Post by MaySky »

It seems that Zextras cared about us already

https://www.zextras.com/ru/zimbra-9/
Post Reply