Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Ask questions about your setup or get help installing ZCS server (ZD section below).
Khalimerot
Posts: 4
Joined: Mon Jan 29, 2018 12:41 pm

Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Postby Khalimerot » Mon Jan 29, 2018 12:46 pm

Hi,

i'm trying to update my Zimbra server from 8.6.0 to 8.8.6, but when i start install.sh i have this error:

Code: Select all

./util/modules/packages.sh: ligne233: Erreur de syntaxe près du symbole inattendu « ( »
./util/modules/packages.sh: ligne233: `         if grep -q -w -e "^$package" <(LocatePackageInRepo "$package")'


The install process continue but fail when it has to download zimbra-core from repository:


Code: Select all

The system will be modified.  Continue? [N] y

Beginning Installation - see /tmp/install.log.llGzXQPK for details...

./util/modules/packages.sh: ligne46: locatePackage : commande introuvable
                                     zimbra-core is missing.                                   ERROR

Unable to find missing packages in repository. System is not modified.


The OS is CentOS 7 X64.

How can make it work?
Thank you.


User avatar
msquadrat
Advanced member
Advanced member
Posts: 160
Joined: Mon Oct 14, 2013 10:09 am

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Postby msquadrat » Tue Jan 30, 2018 10:15 am

This sounds like Bug 107309.
Khalimerot
Posts: 4
Joined: Mon Jan 29, 2018 12:41 pm

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Postby Khalimerot » Tue Jan 30, 2018 12:40 pm

I thought about that when i saw those weird character, so i change language to en_US.UTF8, with no luck...

I still have the same error:

Code: Select all

  ./util/modules/packages.sh: line 233: syntax error near unexpected token `('
./util/modules/packages.sh: line 233: `         if grep -q -w -e "^$package" <(LocatePackageInRepo "$package")'


Thank you.
User avatar
msquadrat
Advanced member
Advanced member
Posts: 160
Joined: Mon Oct 14, 2013 10:09 am

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Postby msquadrat » Tue Jan 30, 2018 1:32 pm

Hmmm… which edition is this, FOSS or the NE? What does zmcontrol -v say?

IIRC was there recently a post on one of the forums where somebody else had some issues with the installer which only affected FOSS.
User avatar
msquadrat
Advanced member
Advanced member
Posts: 160
Joined: Mon Oct 14, 2013 10:09 am

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Postby msquadrat » Tue Jan 30, 2018 1:36 pm

Another thing: The error message looks like the install.sh script isn't executed by bash but some other shell. How exactly do you start the install.sh script? Do you call it like

Code: Select all

./install.sh

or something like

Code: Select all

sh install.sh
?

You should to the former.
Khalimerot
Posts: 4
Joined: Mon Jan 29, 2018 12:41 pm

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Postby Khalimerot » Tue Jan 30, 2018 1:59 pm

I have a FOSS edition:

Code: Select all

Release 8.6.0_GA_1153.RHEL7_64_20141215151110 RHEL7_64 FOSS edition.
Khalimerot
Posts: 4
Joined: Mon Jan 29, 2018 12:41 pm

Re: Syntax error in packages.sh - Upgrade from 8.6.0 to 8.8.6

Postby Khalimerot » Tue Jan 30, 2018 2:45 pm

msquadrat wrote:Another thing: The error message looks like the install.sh script isn't executed by bash but some other shell. How exactly do you start the install.sh script? Do you call it like

Code: Select all

./install.sh

or something like

Code: Select all

sh install.sh
?

You should to the former.


Thank you !!

indeed i was doing sh install.sh.

work flawlessly with

Code: Select all

./install.sh

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 9 guests