ZCS 10.1.1 Foss Build - [NOT-A-BUG] - Fails to build - zmdbupgrade.pl : No such file or directory

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
User avatar
adrian.gibanel.btactic
Advanced member
Advanced member
Posts: 178
Joined: Thu Jan 30, 2014 11:13 am

ZCS 10.1.1 Foss Build - [NOT-A-BUG] - Fails to build - zmdbupgrade.pl : No such file or directory

Post by adrian.gibanel.btactic »

The recently ZCS 10.1.1 tag published in Github does not build for any of my targeted platforms: rhel-7 rhel-8 ubuntu-18.04 ubuntu-20.04 ubuntu-22.04 .

The build error seems to arise from:

Code: Select all

cp: cannot stat '/home/build/installer-build/.staging/UBUNTU20_64-LIBERTY-1011-20240823175955-FOSS-4200000/zm-db-conf/src/db/migration/zmdbupgrade.pl': No such file or directory
.

A more complete log, this time from RHEL-7:

Code: Select all

#: ***
#: rsync -az --delete . /home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000/zm-build
Running [rsync -az --delete . /home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000/zm-build]...
#: ***
#: mkdir -p /home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000/zm-build/x86_64
Running [mkdir -p /home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000/zm-build/x86_64]...
#: ***
#:   releaseNo='10.1.1' \
                     releaseCandidate='GA' \
                     branch='LIBERTY-1011' \
                     buildNo='4200000' \
                     os='RHEL7_64' \
                     PKG_OS_TAG='r7' \
                     buildType='FOSS' \
                     repoDir='/home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000' \
                     arch='x86_64' \
                     buildTimeStamp='20240823180042' \
                     buildLogFile='/home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000/logs/build.log' \
                     zimbraThirdPartyServer='files.zimbra.com' \
                        bash /home/build/installer-build/zm-build/instructions/bundling-scripts/zimbra-core.sh
                  
Running [  releaseNo='10.1.1' \
                     releaseCandidate='GA' \
                     branch='LIBERTY-1011' \
                     buildNo='4200000' \
                     os='RHEL7_64' \
                     PKG_OS_TAG='r7' \
                     buildType='FOSS' \
                     repoDir='/home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000' \
                     arch='x86_64' \
                     buildTimeStamp='20240823180042' \
                     buildLogFile='/home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000/logs/build.log' \
                     zimbraThirdPartyServer='files.zimbra.com' \
                        bash /home/build/installer-build/zm-build/instructions/bundling-scripts/zimbra-core.sh
                  ]...
cp: cannot stat '/home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000/zm-db-conf/src/db/migration/zmdbupgrade.pl': No such file or directory


=========================================================================================================
FAILURE MSG : cmd='  releaseNo='10.1.1' \
                     releaseCandidate='GA' \
                     branch='LIBERTY-1011' \
                     buildNo='4200000' \
                     os='RHEL7_64' \
                     PKG_OS_TAG='r7' \
                     buildType='FOSS' \
                     repoDir='/home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000' \
                     arch='x86_64' \
                     buildTimeStamp='20240823180042' \
                     buildLogFile='/home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000/logs/build.log' \
                     zimbraThirdPartyServer='files.zimbra.com' \
                        bash /home/build/installer-build/zm-build/instructions/bundling-scripts/zimbra-core.sh
                  '
END at ./build.pl line 1062.
EXTRA INFO  : '  releaseNo='10.1.1' \
                     releaseCandidate='GA' \
                     branch='LIBERTY-1011' \
                     buildNo='4200000' \
                     os='RHEL7_64' \
                     PKG_OS_TAG='r7' \
                     buildType='FOSS' \
                     repoDir='/home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000' \
                     arch='x86_64' \
                     buildTimeStamp='20240823180042' \
                     buildLogFile='/home/build/installer-build/.staging/RHEL7_64-LIBERTY-1011-20240823180042-FOSS-4200000/logs/build.log' \
                     zimbraThirdPartyServer='files.zimbra.com' \
                        bash /home/build/installer-build/zm-build/instructions/bundling-scripts/zimbra-core.sh
                  ' exited with value 1

=========================================================================================================
--Stack Trace-- (8666)
./build.pl:601 called from main::SysExec
./build.pl:1018 called from main::__ANON__
./build.pl:628 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 8666 died
EXTRA INFO  : ret=255

=========================================================================================================
--Stack Trace-- (856)
./build.pl:628 called from main::RunInDir
./build.pl:1080 called from main::Build
./build.pl:1086 called from main::main
Technical note: Affected repo zm-db-conf at the time this post was first published did not have any 10.1.1 tag, only a 10.1.0 tag.

How this was built: Well, I cannot see the complete build command from before this fails from Github actions (something else to improve)... so... I guess... that we should trust that this should be using something similar to:

Code: Select all

git clone --depth 1 --branch 10.1.1 git@github.com:Zimbra/zm-build.git
cd zm-build
ENV_CACHE_CLEAR_FLAG=true ./build.pl --ant-options -DskipTests=true --git-default-tag=10.1.1,10.1.0 --build-release-no=10.1.1 --build-type=FOSS --build-release=LIBERTY --build-release-candidate=GA --build-no 5200011 --build-thirdparty-server=files.zimbra.com --no-interactive
.

Thank you for fixing it or advising for a workaround.
Last edited by adrian.gibanel.btactic on Tue Sep 24, 2024 7:42 am, edited 1 time in total.
User avatar
adrian.gibanel.btactic
Advanced member
Advanced member
Posts: 178
Joined: Thu Jan 30, 2014 11:13 am

Re: ZCS 10.1.1 Foss Build - [BUG] - Fails to build - zmdbupgrade.pl : No such file or directory

Post by adrian.gibanel.btactic »

After additional inspection I conclude that the command run was more similar to:

Code: Select all

git clone --depth 1 --branch 10.1.1 git@github.com:Zimbra/zm-build.git
cd zm-build
ENV_CACHE_CLEAR_FLAG=true ./build.pl --ant-options -DskipTests=true --git-default-tag=10.1.1,10.1.0.beta,10.1.0 --build-release-no=10.1.1 --build-type=FOSS --build-release=LIBERTY --build-release-candidate=GA --build-no 5200011 --build-thirdparty-server=files.zimbra.com --no-interactive
The difference is the git-default-tag which it's changed from 10.1.1,10.1.0 to 10.1.1,10.1.0.beta,10.1.0.

So I think that problem relies on these:
  • I changed my tag helper to allow beta tags
  • Synacor probably uploaded a 10.0.1.beta tag after the 10.1.0 tag. (not sure about that).
.

In any case I will rewrite the tag helper so that the beta tags always are found at the very end of git-default-tag and we will see if it now wants to build.
User avatar
adrian.gibanel.btactic
Advanced member
Advanced member
Posts: 178
Joined: Thu Jan 30, 2014 11:13 am

Re: ZCS 10.1.1 Foss Build - [BUG] - Fails to build - zmdbupgrade.pl : No such file or directory

Post by adrian.gibanel.btactic »

Now that I have been using the right tags order ZCS 10.1.1. has built properly.

So this was not a bug after all.
Post Reply