Mailing List Archive

Cloned Bric 1.10.2 fails to start
Hi Bricoleurs,

I have successfully cloned and installed a legacy Bric 1.10.2 using Apache
1.3 onto a VPS, in an attempt to migrate it to Bric 2.0. The installation
successfully completes, but when I run the given start command, I get the
error below. I modified the script to print out the BRICOLAGE_ROOT and
PERL5LIB env vars highlighted.

The BRICOLAGE_ROOT and PERL5LIB paths are correct, so I'm not sure what is
causing the error.

$:/usr/local/bric1new/bin$ sudo BRICOLAGE_ROOT=/usr/local/bric1new
> /usr/local/bric1new/bin/bric_apachectl start
> String found where operator expected at
> /usr/local/bric1new/lib/Bric/Config.pm line 367, near "Carp::croak "Cannot
> open $conf_file: $!\n""
> (Do you need to predeclare Carp::croak?)
> String found where operator expected at
> /usr/local/bric1new/lib/Bric/Config.pm line 459, near "Carp::croak "Invalid
> SSL_ENABLE directive: '$ssl'""
> (Do you need to predeclare Carp::croak?)
> ######################################################################
> /usr/local/bric1new
> /usr/local/bric1new/lib
> Cannot load Bricolage libraries. Please set the environment
> variable BRICOLAGE_ROOT to the location of your Bricolage
> installation or set the environment variable PERL5LIB to the
> directory where Bricolage's libraries are installed.
> The specific error encountered was as follows:
> syntax error at /usr/local/bric1new/lib/Bric/Config.pm line 367, near
> "Carp::croak "Cannot open $conf_file: $!\n""
> syntax error at /usr/local/bric1new/lib/Bric/Config.pm line 459, near
> "Carp::croak "Invalid SSL_ENABLE directive: '$ssl'""
> BEGIN not safe after errors--compilation aborted at
> /usr/local/bric1new/lib/Bric/Config.pm line 499.
> Compilation failed in require at
> /usr/local/bric1new/lib/Bric/Util/Fault.pm line 72.
> BEGIN failed--compilation aborted at
> /usr/local/bric1new/lib/Bric/Util/Fault.pm line 72.
> Compilation failed in require at /usr/local/bric1new/lib/Bric.pm line 71.
> BEGIN failed--compilation aborted at /usr/local/bric1new/lib/Bric.pm line
> 71.
> Compilation failed in require at /usr/local/bric1new/bin/bric_apachectl
> line 59.
>
> ######################################################################
> BEGIN failed--compilation aborted at
> /usr/local/bric1new/bin/bric_apachectl line 75.


The error originates from the bric_apachectl script where it requires the
Bric lib. So, if I run the command:

perl -I/usr/local/bric1new/lib -le 'use Bric';


I get something similar:

String found where operator expected at
> /usr/local/bric1new/lib/Bric/Config.pm line 367, near "Carp::croak "Cannot
> open $conf_file: $!\n""
> (Do you need to predeclare Carp::croak?)
> String found where operator expected at
> /usr/local/bric1new/lib/Bric/Config.pm line 459, near "Carp::croak "Invalid
> SSL_ENABLE directive: '$ssl'""
> (Do you need to predeclare Carp::croak?)
> syntax error at /usr/local/bric1new/lib/Bric/Config.pm line 367, near
> "Carp::croak "Cannot open $conf_file: $!\n""
> syntax error at /usr/local/bric1new/lib/Bric/Config.pm line 459, near
> "Carp::croak "Invalid SSL_ENABLE directive: '$ssl'""
> BEGIN not safe after errors--compilation aborted at
> /usr/local/bric1new/lib/Bric/Config.pm line 499.
> Compilation failed in require at
> /usr/local/bric1new/lib/Bric/Util/Fault.pm line 72.
> BEGIN failed--compilation aborted at
> /usr/local/bric1new/lib/Bric/Util/Fault.pm line 72.
> Compilation failed in require at /usr/local/bric1new/lib/Bric.pm line 71.
> BEGIN failed--compilation aborted at /usr/local/bric1new/lib/Bric.pm line
> 71.
> Compilation failed in require at -e line 1.
> BEGIN failed--compilation aborted at -e line 1.



There doesn't appear to be a syntax error at those line numbers.

I'm not certain what exactly the issue is at this point.

Any advice would be greatly appreciated.

Thanks

--
You received this message because you are subscribed to the Google Groups "Bricolage Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bricolage-users+unsubscribe@googlegroups.com.
To post to this group, send email to bricolage-users@googlegroups.com.
Visit this group at https://groups.google.com/group/bricolage-users.
For more options, visit https://groups.google.com/d/optout.
Re: Cloned Bric 1.10.2 fails to start [ In reply to ]
On 15/06/16 19:40, Ryan O'Toole wrote:
----------------------8<------------------------
> String found where operator expected at
> /usr/local/bric1new/lib/Bric/Config.pm line 367, near "Carp::croak
> "Cannot open $conf_file: $!\n""
> (Do you need to predeclare Carp::croak?)
> String found where operator expected at
> /usr/local/bric1new/lib/Bric/Config.pm line 459, near "Carp::croak
----------------------8<------------------------

Hi,

Does adding parens to the line in /usr/local/bric1new/lib/Bric/Config.pm
make any difference to the error?

i.e.
changing Carp::croak "Cannot open $conf_file: $!\n"
to Carp::croak("Cannot open $conf_file: $!\n")

Cheers,

--
Charlie Harvey
IT Director
New Internationalist

t: +44 (0)1865 403249
f: +44 (0)1865 403346
w: http://newint.org/
k: http://ox4.li/gpgkey/

New Internationalist is an independent not-for-profit communications
cooperative. Our multi-award winning magazine, New Internationalist,
brings to life the people, the ideas and the action in the fight for
global justice.

New Internationalist Publications Ltd. is incorporated in England
under no.1005239.

New Internationalist, Old Music Hall, 106-108 Cowley Rd.,
Oxford, OX4 1JE, UK

--
You received this message because you are subscribed to the Google Groups "Bricolage Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bricolage-users+unsubscribe@googlegroups.com.
To post to this group, send email to bricolage-users@googlegroups.com.
Visit this group at https://groups.google.com/group/bricolage-users.
For more options, visit https://groups.google.com/d/optout.
Re: Cloned Bric 1.10.2 fails to start [ In reply to ]
I tried commenting out the error causing lines, which prevented the errors
from printing, but did not result in bric starting.

I get the sense the mod_perl may not be installed correctly in the version
of apache1.3 I'm using. This VPS has had several versions of bric installed
in the past, some in multi layout, and at list one in single layout. I'm
wondering if that has caused some issue here too.

To sanity check, I tried installing bric1.10.2 from scratch (not from
clone), and got exactly the same error as with the clone.

On Thursday, June 16, 2016 at 1:15:51 AM UTC-7, Charlie Harvey wrote:
>
> On 15/06/16 19:40, Ryan O'Toole wrote:
> ----------------------8<------------------------
> > String found where operator expected at
> > /usr/local/bric1new/lib/Bric/Config.pm line 367, near "Carp::croak
> > "Cannot open $conf_file: $!\n""
> > (Do you need to predeclare Carp::croak?)
> > String found where operator expected at
> > /usr/local/bric1new/lib/Bric/Config.pm line 459, near "Carp::croak
> ----------------------8<------------------------
>
> Hi,
>
> Does adding parens to the line in /usr/local/bric1new/lib/Bric/Config.pm
> make any difference to the error?
>
> i.e.
> changing Carp::croak "Cannot open $conf_file: $!\n"
> to Carp::croak("Cannot open $conf_file: $!\n")
>
> Cheers,
>
> --
> Charlie Harvey
> IT Director
> New Internationalist
>
> t: +44 (0)1865 403249
> f: +44 (0)1865 403346
> w: http://newint.org/
> k: http://ox4.li/gpgkey/
>
> New Internationalist is an independent not-for-profit communications
> cooperative. Our multi-award winning magazine, New Internationalist,
> brings to life the people, the ideas and the action in the fight for
> global justice.
>
> New Internationalist Publications Ltd. is incorporated in England
> under no.1005239.
>
> New Internationalist, Old Music Hall, 106-108 Cowley Rd.,
> Oxford, OX4 1JE, UK
>
>

--
You received this message because you are subscribed to the Google Groups "Bricolage Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bricolage-users+unsubscribe@googlegroups.com.
To post to this group, send email to bricolage-users@googlegroups.com.
Visit this group at https://groups.google.com/group/bricolage-users.
For more options, visit https://groups.google.com/d/optout.
Re: Cloned Bric 1.10.2 fails to start [ In reply to ]
On Jun 15, 2016, at 11:40 AM, Ryan O'Toole <rotoole@gmail.com> wrote:

> String found where operator expected at /usr/local/bric1new/lib/Bric/Config.pm line 367, near "Carp::croak "Cannot open $conf_file: $!\n""
> (Do you need to predeclare Carp::croak?)

Charlie’s right, it should have parens. Here’s how the rev_1_10 branch looks for that line:

https://github.com/bricoleurs/bricolage/blob/rev_1_10/lib/Bric/Config.pm#L367

> String found where operator expected at /usr/local/bric1new/lib/Bric/Config.pm line 459, near "Carp::croak "Invalid SSL_ENABLE directive: '$ssl'""
> (Do you need to predeclare Carp::croak?)

Same:

https://github.com/bricoleurs/bricolage/blob/rev_1_10/lib/Bric/Config.pm#L459

On Jun 16, 2016, at 9:46 AM, Ryan O'Toole <rotoole@gmail.com> wrote:

> I tried commenting out the error causing lines, which prevented the errors from printing, but did not result in bric starting.

What error did you get with them commented out?

Best,

David


--
You received this message because you are subscribed to the Google Groups "Bricolage Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bricolage-users+unsubscribe@googlegroups.com.
To post to this group, send email to bricolage-users@googlegroups.com.
Visit this group at https://groups.google.com/group/bricolage-users.
For more options, visit https://groups.google.com/d/optout.
Re: Cloned Bric 1.10.2 fails to start [ In reply to ]
OK, after sanity checking some things and re-installing apache 1.3.12 with
mod_perl, I added the parens to the two Carp::croak lines, then ran

BRICOLAGE_ROOT=/usr/local/bric1new /usr/local/bric1new/bin/bric_apachectl
start


... and SUCCESS!


This was for a fresh copy of bricolage 1.10.2, so now I'll be trying it
with the clone.


Thanks for the pro-tips!


Ryan




On Thursday, June 16, 2016 at 9:11:51 PM UTC-7, David Wheeler wrote:
>
> On Jun 15, 2016, at 11:40 AM, Ryan O'Toole <rot...@gmail.com <javascript:>>
> wrote:
>
> > String found where operator expected at
> /usr/local/bric1new/lib/Bric/Config.pm line 367, near "Carp::croak "Cannot
> open $conf_file: $!\n""
> > (Do you need to predeclare Carp::croak?)
>
> Charlie’s right, it should have parens. Here’s how the rev_1_10 branch
> looks for that line:
>
>
> https://github.com/bricoleurs/bricolage/blob/rev_1_10/lib/Bric/Config.pm#L367
>
> > String found where operator expected at
> /usr/local/bric1new/lib/Bric/Config.pm line 459, near "Carp::croak "Invalid
> SSL_ENABLE directive: '$ssl'""
> > (Do you need to predeclare Carp::croak?)
>
> Same:
>
>
> https://github.com/bricoleurs/bricolage/blob/rev_1_10/lib/Bric/Config.pm#L459
>
> On Jun 16, 2016, at 9:46 AM, Ryan O'Toole <rot...@gmail.com <javascript:>>
> wrote:
>
> > I tried commenting out the error causing lines, which prevented the
> errors from printing, but did not result in bric starting.
>
> What error did you get with them commented out?
>
> Best,
>
> David
>
>
>

--
You received this message because you are subscribed to the Google Groups "Bricolage Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bricolage-users+unsubscribe@googlegroups.com.
To post to this group, send email to bricolage-users@googlegroups.com.
Visit this group at https://groups.google.com/group/bricolage-users.
For more options, visit https://groups.google.com/d/optout.