List Info

Thread: Re: Strange bric_soap timeout error for just one element type




Re: Strange bric_soap timeout error for just one element type
user name
2007-11-19 18:44:34
Hi Phillip.

Usually when I get an error like this, there's a
related-media container
with nothing actually related to it.

Do you get the error with every cover story? Or, if you
search in the UI
and find a cover story that meets the criteria you're
imposing in your
SOAP command, do you also see the error in the UI?

Gradually, I'm learning to put verbose error handlers into
templates, so
that if a media container has nothing related, the template
throws an
error before Bricolage does. That way you can at least learn
the URI and
title of the offending story.


Hope this helps,

Bret


On Mon, 2007-11-19 at 17:01 -0500, Phillip Smith wrote:
> I've been getting this strange error when I try to
preview Cover  
> stories, and *only* Cover stories. Otherwise, the exact
same  
> bric_soap command with a different element -- e.g.,
"story" -- works  
> fine. I'm guessing from the line 'Can't call method
"get_media_type"  
> on an undefined value' that it may have something to do
with the way  
> I've set-up the Cover element type, or the
related_media sub-element  
> (which is associated with Cover stories) ... 
Thoughts?
> 
> ./bric_soap story list_ids --search publish_status=0
--search  
> element="cover" --search unexpired=1 | sort
-k2 -t_ -n | ./bric_soap  
> workflow publish --to-preview --chunks 5
--continue-on-errors -
> 
> TRANSPORT ERROR: 500 read timeout
> Check the Apache error log for more information.
> TRANSPORT ERROR: 500 read timeout
> Check the Apache error log for more information.
> story_4298
> story_4299
> story_4300
> 
> [Thu Nov 15 04:09:04 2007] [error]
SOAP::Serializer::envelope: Server  
> Application error Can't call method
"get_media_type" on an undefined  
> value at
/home/domain/bricolage/data/burn/sandbox/user_1025/oc_1/ 
> related_media.mc line 5, <GEN614> line
19.nnStack:n  [/home/domain/ 
>
bricolage/data/burn/sandbox/user_1025/oc_1/related_media.mc:
5]n  [/ 
>
usr/lib/perl5/vendor_perl/5.8.4/HTML/Mason/Component.pm:135]
n  [/ 
>
home/domain/bricolage/lib/Bric/Util/Burner/Mason.pm:752]n 
[/home/ 
> domain/bricolage/lib/Bric/Util/Burner/Mason.pm:491]n 
[/home/domain/ 
>
bricolage/data/burn/sandbox/user_1025/oc_1025/util/output_bo
dy.mc:17] 
> n 
[/usr/lib/perl5/vendor_perl/5.8.4/HTML/Mason/Component.pm:13
5]n   
>
[/home/domain/bricolage/data/burn/sandbox/user_1025/oc_1/pag
e.mc:3] 
> n 
[/usr/lib/perl5/vendor_perl/5.8.4/HTML/Mason/Component.pm:13
5]n   
>
[/home/domain/bricolage/lib/Bric/Util/Burner/Mason.pm:752]n
 [/home/ 
> domain/bricolage/lib/Bric/Util/Burner/Mason.pm:491]n 
[/home/domain/ 
> bricolage/lib/Bric/Util/Burner.pm:1961]n 
[/home/domain/bricolage/ 
> data/burn/sandbox/user_1025/oc_1/story.mc:18]n 
[/usr/lib/perl5/ 
> vendor_perl/5.8.4/HTML/Mason/Component.pm:135]n 
[/home/domain/ 
> bricolage/lib/Bric/Util/Burner/Mason.pm:557]n 
[/home/domain/ 
>
bricolage/data/burn/sandbox/user_1025/oc_1/autohandler:30]n
 [/usr/ 
>
lib/perl5/vendor_perl/5.8.4/HTML/Mason/Component.pm:135]
> [/home/domain/bricolage/lib/Bric/SOAP/Handler.pm:249]
> [/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Lite.pm:2397]
> [/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Lite.pm:1196]
> [/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Lite.pm:805]
> [/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Lite.pm:2372]
>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Transport/HTTP.pm:296
]
> [/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Lite.pm:2365]
>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Transport/HTTP.pm:286
]
>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Transport/HTTP.pm:464
]
> [/home/domain/bricolage/lib/Bric/SOAP/Handler.pm:169]
> [PerlHandler subroutine
`Bric::SOAP::Handler::handler':1]
> 
> 
> 
-- 
Bret Dawson
Producer
Pectopah Productions Inc.
(416) 895-7635
bretpectopah.com
www.pectopah.com


Re: Strange bric_soap timeout error for just one element type
user name
2007-12-31 13:09:14
Turns out that the error message (that I had pasted below)
and my  
problem were somewhat unrelated. The actual problem I was
having was  
that bric_soap's default timeout setting was too low for the
number  
of pages that those cover stories had to create. When I set
--timeout  
to 300, the bric_soap "TRANSPORT ERROR: 500 read
timeout" messages  
went away.

Phillip.

On Nov 19, 2007, at 7:44 PM, Bret Dawson wrote:

> Hi Phillip.
>
> Usually when I get an error like this, there's a
related-media  
> container
> with nothing actually related to it.
>
> Do you get the error with every cover story? Or, if you
search in  
> the UI
> and find a cover story that meets the criteria you're
imposing in your
> SOAP command, do you also see the error in the UI?
>
> Gradually, I'm learning to put verbose error handlers
into  
> templates, so
> that if a media container has nothing related, the
template throws an
> error before Bricolage does. That way you can at least
learn the  
> URI and
> title of the offending story.
>
>
> Hope this helps,
>
> Bret
>
>
> On Mon, 2007-11-19 at 17:01 -0500, Phillip Smith
wrote:
>> I've been getting this strange error when I try to
preview Cover
>> stories, and *only* Cover stories. Otherwise, the
exact same
>> bric_soap command with a different element -- e.g.,
"story" -- works
>> fine. I'm guessing from the line 'Can't call method
"get_media_type"
>> on an undefined value' that it may have something
to do with the way
>> I've set-up the Cover element type, or the
related_media sub-element
>> (which is associated with Cover stories) ... 
Thoughts?
>>
>> ./bric_soap story list_ids --search
publish_status=0 --search
>> element="cover" --search unexpired=1 |
sort -k2 -t_ -n | ./bric_soap
>> workflow publish --to-preview --chunks 5
--continue-on-errors -
>>
>> TRANSPORT ERROR: 500 read timeout
>> Check the Apache error log for more information.
>> TRANSPORT ERROR: 500 read timeout
>> Check the Apache error log for more information.
>> story_4298
>> story_4299
>> story_4300
>>
>> [Thu Nov 15 04:09:04 2007] [error]
SOAP::Serializer::envelope: Server
>> Application error Can't call method
"get_media_type" on an undefined
>> value at
/home/domain/bricolage/data/burn/sandbox/user_1025/oc_1/
>> related_media.mc line 5, <GEN614> line
19.nnStack:n  [/home/ 
>> domain/
>>
bricolage/data/burn/sandbox/user_1025/oc_1/related_media.mc:
5]n  [/
>>
usr/lib/perl5/vendor_perl/5.8.4/HTML/Mason/Component.pm:135]
n  [/
>>
home/domain/bricolage/lib/Bric/Util/Burner/Mason.pm:752]n 
[/home/
>>
domain/bricolage/lib/Bric/Util/Burner/Mason.pm:491]n 
[/home/domain/
>>
bricolage/data/burn/sandbox/user_1025/oc_1025/util/output_bo
dy.mc:17]
>> n 
[/usr/lib/perl5/vendor_perl/5.8.4/HTML/Mason/Component.pm:13
5]n
>>
[/home/domain/bricolage/data/burn/sandbox/user_1025/oc_1/pag
e.mc:3]
>> n 
[/usr/lib/perl5/vendor_perl/5.8.4/HTML/Mason/Component.pm:13
5]n
>>
[/home/domain/bricolage/lib/Bric/Util/Burner/Mason.pm:752]n
 [/home/
>>
domain/bricolage/lib/Bric/Util/Burner/Mason.pm:491]n 
[/home/domain/
>> bricolage/lib/Bric/Util/Burner.pm:1961]n 
[/home/domain/bricolage/
>> data/burn/sandbox/user_1025/oc_1/story.mc:18]n 
[/usr/lib/perl5/
>> vendor_perl/5.8.4/HTML/Mason/Component.pm:135]n 
[/home/domain/
>> bricolage/lib/Bric/Util/Burner/Mason.pm:557]n 
[/home/domain/
>>
bricolage/data/burn/sandbox/user_1025/oc_1/autohandler:30]n
 [/usr/
>>
lib/perl5/vendor_perl/5.8.4/HTML/Mason/Component.pm:135]
>>
[/home/domain/bricolage/lib/Bric/SOAP/Handler.pm:249]
>>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Lite.pm:2397]
>>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Lite.pm:1196]
>>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Lite.pm:805]
>>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Lite.pm:2372]
>>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Transport/HTTP.pm:296
]
>>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Lite.pm:2365]
>>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Transport/HTTP.pm:286
]
>>
[/usr/lib/perl5/vendor_perl/5.8.4/SOAP/Transport/HTTP.pm:464
]
>>
[/home/domain/bricolage/lib/Bric/SOAP/Handler.pm:169]
>> [PerlHandler subroutine
`Bric::SOAP::Handler::handler':1]
>>
>>
>>
> -- 
> Bret Dawson
> Producer
> Pectopah Productions Inc.
> (416) 895-7635
> bretpectopah.com
> www.pectopah.com
>

--
Phillip Smith,
Simplifier of Technology
Community Bandwidth
http://www.community
bandwidth.ca



[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )