Lincoln Stein | 2 Sep 2011 23:33
Picon
Gravatar

Re: trouble with session and param method

Hi Starr,


Well, this is very helpful information. It suggests that you have an older, incompatible library installed somewhere in your Perl path. I'm not sure what the library is, but probably an older version of GBrowse, bioperl, biographics, or some combination of them. Do me a favor and run this command (it will take a while):

find /usr -name 'Browser*' -ls | grep .pm > output.txt

Send me the resulting output.txt file.

Thanks,

Lincoln

On Fri, Sep 2, 2011 at 5:06 PM, Hazard, E. Starr <hazards-sm4NYSCnXRo@public.gmane.org> wrote:
Thank you for the suggestions.

I am installing Gbrowse2.39 on an old Dell desktop running RedHat Enterprise Linux 5.1.19.6 which also lists Red Hat linux 2.6.18-274.el5 as it boots.

When I build the demo as you suggested, I can connect and it does work. I turned it off and then I rebuilt my bioperl and dependencies and tried to delete all the GB2 directories then rebult GB2. At the end of this GB2 rebuild I see:

All tests successful.
Files=9, Tests=439, 69 wallclock secs ( 0.29 usr  0.05 sys + 37.99 cusr  7.17 csys = 45.50 CPU)
Result: PASS

Connecting to this fresh GB2  ( <at>  http://localhost/cgi-bin/gb2) gives these lines in the error_log:

[Fri Sep 02 10:07:44 2011] [error] [client 127.0.0.1] couldn't create lock file '/var/lib/gbrowse2/sessions/cgisess.db.lck': Permission denied at /usr/lib/perl5/site_perl/5.8.8/CGI/Session/Driver/db_file.pm line 98., referer: http://localhost/gbrowse2/tutorial/tutorial.html
[Fri Sep 02 10:07:44 2011] [error] [client 127.0.0.1] Premature end of script headers: gbrowse, referer: http://localhost/gbrowse2/tutorial/tutorial.html

If make  /var/lib/gbrowse2/sessions  writtable then these 'permission denied' errors are avoided but then I  return to these 'method param  undefined' errors

[Fri Sep 02 10:26:59 2011] [error] [client 128.23.6.30] Can't call method "param" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Bio/Graphics/Browser2/Session.pm line 316., referer: http://localhost/index.html.en
[Fri Sep 02 10:26:59 2011] [error] [client 128.23.6.30] Premature end of script headers: gbrowse, referer: http://localhost/index.html.en

If I then ./Build demo I can connect to  http://localhost:8000/cgi-bin/gb2/gbrowse/yeast/ and manipulate the display.

http://localhost/cgi-bin/gb2 does not work

http://localhost:8000/cgi-bin/gb2/ does work


So I'm stumped at the moment.


Starr

From: Lincoln Stein [lincoln.stein-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Wednesday, August 31, 2011 11:50 AM
To: Hazard, E. Starr
Cc: gmod-gbrowse <at> lists.sourceforge.net
Subject: Re: [Gmod-gbrowse] trouble with session and param method

Could you try the following from within the distribution directory:

 perl Build.PL
 ./Build clean
 ./Build demo

Then try to connect to the demo server (the URL will print out when you run Build demo).

I do not know what's going on, but this procedure will ensure that you don't have any conflicting libraries or configuration directives from within GBrowse. Also you didn't mention what operating system/distribution you're using.

Lincoln


On Tue, Aug 30, 2011 at 5:39 PM, Hazard, E. Starr <hazards-sm4NYSCnXRo@public.gmane.org<mailto:hazards-sm4NYSCnXRo@public.gmane.org>> wrote:
Folks,

I have been trying to get an instance GBrowse2 up and running. I had a screen showing at one point but clicking on any objects to change gave a series of errors[



Tue Aug 30 15:54:06 2011] [error] [client 128.23.6.30] couldn't create lock file '/var/lib/gbrowse2/sessions/cgisess.db.lck': Permission denied at /usr/lib/perl5/site_perl/5.8.8/CGI/Session/Driver/db_file.pm<http://db_file.pm> line 98., referer: http://pchazards-linux.csb.mu/var/lib/gbrowse2/sessions/sc.edu/cgi-bin/gb2/gbrowse/yeast/
[Tue Aug 30 15:54:06 2011] [error] [client 128.23.6.30] Premature end of script headers: gbrowse, referer: http://pchazards-linux.csb.musc.edu/cgi-bin/gb2/gbrowse/yeast/

When I altered the write permission for the
/var/lib/gbrowse2/sessions/

directory began to see the following error in my apache error_log

[Tue Aug 30 17:21:45 2011] [error] [client 128.23.6.30]
Can't call method "param" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Bio/Graphics/Browser2/Session.pm line 316., referer: http://pchazards-linux.csb.musc.edu/index.html.en
[Tue Aug 30 17:21:45 2011] [error] [client 128.23.6.30] Premature end of script headers: gbrowse, referer: http://pchazards-linux.csb.musc.edu/index.html.en

I have CGI-Session-4.48 installed

here's my "z_gbrowse.conf" file content
cat /etc/httpd/conf.d/z_gbrowse2.conf
Alias        "/gbrowse2/i/" "/tmp/gbrowse2/images/"
Alias        "/gbrowse2"    "/var/www/html/gbrowse2"
ScriptAlias  "/gb2"      "/var/www/cgi-bin/gb2"

<Directory "/var/www/html/gbrowse2">
 AllowOverride Options
 Options -Indexes -MultiViews +FollowSymLinks
 Order allow,deny
 Allow from all
</Directory>

<Directory "/var/www/html/gbrowse2/tutorial">
 Options +Indexes
</Directory>

<Directory "/tmp/gbrowse2/images/">
 Order allow,deny
 Allow from all
</Directory>

<Directory "/var/lib/gbrowse2/databases">
 Order allow,deny
 Deny from all
</Directory>

<Directory "/var/www/cgi-bin/gb2">

 Options ExecCGI
 SetEnv GBROWSE_CONF   "/etc/gbrowse2"
</Directory>

<IfModule mod_fcgid.c>
 Alias /fgb2 "/var/www/cgi-bin/gb2"
 <Location /fgb2>
  SetHandler   fcgid-script
 </Location>
 FcgidInitialEnv GBROWSE_CONF /etc/gbrowse2
 # these directives prevent idle/busy timeouts and may need to be
 # adjusted up or down
 FcgidMinProcessesPerClass 6
 FcgidIOTimeout   600
 FcgidBusyTimeout 600

</IfModule>

<IfModule mod_fastcgi.c>
 Alias /fgb2 "/var/www/cgi-bin/gb2"
 <Location /fgb2>
  SetHandler   fastcgi-script
 </Location>
 # Note: you may need to increase -idle-timeout if file uploads are timing out and returning server
 # errors.
 FastCgiConfig -idle-timeout 600 -maxClassProcesses 20  -initial-env GBROWSE_CONF=/etc/gbrowse2
</IfModule>

<IfModule mod_perl.c>
 Alias /mgb2 "/var/www/cgi-bin/gb2"

 <Location /mgb2>
   SetHandler perl-script
   PerlResponseHandler ModPerl::Registry
   PerlOptions +ParseHeaders
 </Location>
</IfModule>

What should I fix to make the basic setup work?

Starr

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org<mailto:Gmod-gbrowse-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse



--
Lincoln D. Stein
Director, Informatics and Biocomputing Platform
Ontario Institute for Cancer Research
101 College St., Suite 800
Toronto, ON, Canada M5G0A3
416 673-8514
Assistant: Renata Musa <Renata.Musa-O2sQSXo6EZOw5LPnMra/2Q@public.gmane.org<mailto:Renata.Musa-O2sQSXo6EZOw5LPnMra/2Q@public.gmane.org>>



--
Lincoln D. Stein
Director, Informatics and Biocomputing Platform
Ontario Institute for Cancer Research
101 College St., Suite 800
Toronto, ON, Canada M5G0A3
416 673-8514
Assistant: Renata Musa <Renata.Musa-O2sQSXo6EZOw5LPnMra/2Q@public.gmane.org>
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Gmod-gbrowse mailing list
Gmod-gbrowse@...
https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse
mlegendre | 14 Jan 2012 14:05
Picon

Re: trouble with session and param method

Dear Starr and Lincoln,

Did you manage to find a solution to this problem ? I am having the same
error, that is : 

Can't call method "param" on an undefined value at
/usr/local/lib/perl/5.10.0/Bio/Graphics/Browser2/Session.pm line 352

after an upgrade of my server via the command line "perl -MCPAN -e shell".

Thanks for your help.

Best,

Matthieu

--
View this message in context: http://generic-model-organism-system-database.450254.n5.nabble.com/trouble-with-session-and-param-method-tp4752488p5144941.html
Sent from the gmod-gbrowse mailing list archive at Nabble.com.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
Scott Cain | 14 Jan 2012 18:10
Favicon

Re: trouble with session and param method

Hi Matthieu,

Could this be a cookie problem?  Try these things:

1.  Hit the "update appearance" button in the preferences tab

2. Add "?reset=1" to the URL.

3. Use the browsers cookie management tool to delete cookies related to this gbrowse instance

These are in order of "cookie destructiveness" :-)

Scott

Sent from my iPad

On Jan 14, 2012, at 5:05 AM, mlegendre <matthieu.legendre@...> wrote:

> Dear Starr and Lincoln,
> 
> Did you manage to find a solution to this problem ? I am having the same
> error, that is : 
> 
> Can't call method "param" on an undefined value at
> /usr/local/lib/perl/5.10.0/Bio/Graphics/Browser2/Session.pm line 352
> 
> after an upgrade of my server via the command line "perl -MCPAN -e shell".
> 
> Thanks for your help.
> 
> Best,
> 
> Matthieu
> 
> --
> View this message in context: http://generic-model-organism-system-database.450254.n5.nabble.com/trouble-with-session-and-param-method-tp4752488p5144941.html
> Sent from the gmod-gbrowse mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Mar 27 - Feb 2
> Save $400 by Jan. 27
> Register now!
> http://p.sf.net/sfu/rsa-sfdev2dev2
> _______________________________________________
> Gmod-gbrowse mailing list
> Gmod-gbrowse@...
> https://lists.sourceforge.net/lists/listinfo/gmod-gbrowse

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2

Gmane