Syntax error in barracuda

Events happening in the community are now at Drupal community events on www.drupal.org.
ckosloff's picture

I received system email prompting to update Debian with urgency=high.
Instructions were:

You can perform the upgrade by issuing the command:
barracuda up-stable system

as root on webo1.wigzilla.com

apticron

However, such syntax throws error.

webo1:~# barracuda up-stable system
/usr/local/bin/barracuda: line 386: syntax error near unexpected token )'
/usr/local/bin/barracuda: line 386:
up-legacy) cmmand="$1"'

Comments

if you need to upgrade

sierraoscardelta's picture

if you need to upgrade Debian, ie the operating system you can simply run this command from your user account if you are within the sudoers group:

sudo apt-get update && sudo apt-get upgrade

omit sudo if you run from root account

if that doesn't work use aptitude:

sudo aptitude update && sudo aptitude upgrade

i may have actually led you

sierraoscardelta's picture

i may have actually led you wrong with my earlier comment and following my advice may break your boa instance so please disregard.

it's been a while since i've read through the docs or performed an update myself.

time for some more input from a real BOA profesh.

It seems like something may

jamiet's picture

It seems like something may be amiss with your installer scripts. As sierraoscardelta implied in their second response you shouldn't use the system level update mechanisms as they are ignorant of the steps BOA have taken and may break a component manually compiled / installed by the BOA script. The BOA script will use the system update commands within the script but is able to do so in a controlled sequence. Please follow the upgrade instructions as detailed at:

http://drupalcode.org/project/barracuda.git/blob/HEAD:/docs/UPGRADE.txt
and copied below for your convenience:

14 # Download and run BOA Meta Installer.
15 $ wget -q -U iCab http://files.aegir.cc/BOA.sh.txt
16 $ bash BOA.sh.txt
17
18 # To upgrade system and Aegir Master Instance to Stable
19 $ barracuda up-stable

The first step above is to update the Meta Installer which will then install the latest barracuda.sh and octopus.sh scripts - I usually make sure I su to root and then enter "cd;" which puts me in the root home directory before doing the above steps by YMMV. The last command can be switched with "barracuda up-stable system" if you want. Please note that during a system update there is no on-screen feedback of upgrade status it will just sit with a flashing cursor for a while. It is busy upgrading just leave it going and it will complete. Check out the full upgrade instructions at the above url.

Hope that helps.

JamieT

I could update Debian by

ckosloff's picture

I could update Debian by issuing the Debian-specific commands:
apt-get update && apt-get dist-upgrade.
But check this out:
webo1:~# cd /
webo1:/# barracuda up-stable
/usr/local/bin/barracuda: line 386: syntax error near unexpected token )'
/usr/local/bin/barracuda: line 386:
up-legacy) cmmand="$1"'
Even inside root directory I get same error as before.
So something is wrong with instructions in email.

As per my last response don't

jamiet's picture

As per my last response don't use the system commands to update the system as you are likely to break your BOA specific installs and configuration.

Did you run the BOA meta installer as per:

14 # Download and run BOA Meta Installer.
15 $ wget -q -U iCab http://files.aegir.cc/BOA.sh.txt
16 $ bash BOA.sh.txt

Last time I had an issue with the barracuda install script it was fixed by wget'ing the latest BOA.sh.txt and running it to install the latest barracuda and octopus scripts.

I assume you are running this as root?

JamieT

I am used to taking control

ckosloff's picture

I am used to taking control of Debian with its own commands, I see that scripts are invasive and do things for me if logged in as root.
After using said commands, I ran everything as per your instructions and it worked, still getting used to this system.
I am in the testing stages, please bear with me.

BOA

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week