This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 5 years ago

Closed 5 years ago

#502 closed defect (invalid)

material pages is failing to display

Reported by: sylvestre Owned by:
Priority: critical Milestone: v0.97.0
Component: General Version: 0.97.0
Keywords: Cc:

Description

Going to a material page creates an exception

For example, going on the URL:
conferenceModification.py/materialsShow?confId=2

(creating the query:
XXX.51.192.X - - [30/Jul/2010:17:47:35 +0200] "GET /conferenceModification.py/materialsShow?confId=2 HTTP/1.1" 200 3937 "http://meetings.geiser-fp7.fr/confModifParticipants.py?confId=2" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100623 Iceweasel/3.5.10 (like Firefox/3.5.10)"
)

Which creates the following exception:
2010-07-30 17:47:38,461 indico.rpc : DEBUG json rpc request. request text=
2010-07-30 17:47:38,463 indico.rpc : ERROR Service request failed. Request text:

Traceback (most recent call last):

File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc1-py2.5.egg/MaKaC/services/interface/rpc/json.py", line 99, in process

raise RequestError?("ERR-R2", "Empty request.")

RequestError?: ERR-R2 : Empty request. (no inner exception)

With Python
Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
[GCC 4.3.2] on linux2

Change History (16)

comment:1 Changed 5 years ago by pferreir

  • Milestone set to v0.97
  • Status changed from new to infoneeded_new
  • Version set to 0.97

Could we have the request text? That would help a lot.

Also, are other AJAX services working OK? i.e. timezone selector...

comment:2 Changed 5 years ago by sylvestre

I have some issues with other Ajax services [1]
I am using python-simplejson 1.9.2-1

[1]
2010-08-06 05:34:17,008 indico.rpc : DEBUG json rpc request. request text=
2010-08-06 05:34:17,010 indico.rpc : ERROR Service request failed. Request text:

Traceback (most recent call last):

File "/usr/lib/python2.5/site-packages/cds_indico-0.97_rc1-py2.5.egg/MaKaC/services/interface/rpc/json.py", line 99, in process

raise RequestError?("ERR-R2", "Empty request.")

RequestError?: ERR-R2 : Empty request. (no inner exception)

comment:3 Changed 5 years ago by pferreir

  • Status changed from infoneeded_new to new

Is the services directory well configured in Apache? Are you doing some URL rewrite magic? Maybe you can show us the part(s) of your httpd.conf that concern Indico?

comment:4 Changed 5 years ago by pferreir

  • Status changed from new to infoneeded_new

comment:5 Changed 5 years ago by sylvestre

I am really using the basic configuration described in indico documentation.
See:

<VirtualHost? 88.191.:80>

DocumentRoot? /opt/indico/htdocs
ErrorLog? /var/log/apache2/meetings.geiser-fp7.eu-error.log
CustomLog? /var/log/apache2/meetings.geiser-fp7.eu-access.log combined
ServerName? meetings.geiser-fp7.eu

PythonInterpreter? main_interpreter
PythonImport? MaKaC::setEnvironment main_interpreter

<Directory "/opt/indico/htdocs">

AddHandler? python-program .py
PythonHandler? mod_python.publisher
Allow from All

DirectoryIndex? index.html index.cgi index.pl index.php index.xhtml index.py

</Directory>

<Directory "/opt/indico/htdocs/services">

SetHandler? python-program
PythonHandler? MaKaC.services.handler
PythonInterpreter? main_interpreter
Allow from All

</Directory>

Alias /images "/opt/indico/htdocs/images"
#Alias / "/opt/indico/htdocs"

</VirtualHost?>

comment:6 Changed 5 years ago by pferreir

A log of the HTTP communications between client and server would be very useful here. Otherwise, maybe you can use Firebug or something like that in order to find out whether the request is being done correctly.

comment:7 Changed 5 years ago by sylvestre

Except some CSS warnings, firebug does not detect any error.

here is the full logs (if you want, I can provide an ngrep / tcpdump of the network):
http://paste.debian.net/83757/

(I could not copy/paste here because of the antispam)

comment:8 Changed 5 years ago by pferreir

This doesn't tell me much :/

Regarding Firebug, I'd like to see both the content of the AJAX requests and their responses. Maybe a tcpdump of the POST requests would help.
Are you using some kind of proxy/load balancer in front of the server?

comment:9 Changed 5 years ago by sylvestre

The configuration of the server is very standard. There is such things as proxy.

Here is the network dump:
http://sylvestre.ledru.info/bordel/dump-indico.log

I don't know how to get the ajax requests with firebug on this pages ?!

comment:10 Changed 5 years ago by sylvestre

Can I help on any way here ?
It is a blocker bug :/
thanks!

comment:11 Changed 5 years ago by pferreir

  • Status changed from infoneeded_new to new

Hello,

The log you've posted doesn't seem to include the AJAX requests.
REgarding Firebug, there should be a "Console" separator that shows the AJAX requests.

comment:12 Changed 5 years ago by sylvestre

On my version of Firebug (the latest), it does not show by default AJAX requests and I cannot find where to activate them.

Do you know how can I enable them ?
thanks

comment:13 Changed 5 years ago by sylvestre

I have been digging in the code.
It fails on this line:

requestText = req.read()

in /usr/lib/python2.5/site-packages/cds_indico-0.97_rc1-py2.5.egg/MaKaC/services/interface/rpc/json.py

req.read() is empty

but req.uri is equal to:
/services/json-rpc

I am using python-simplejson: 2.1.1-1

comment:14 Changed 5 years ago by pferreir

  • Status changed from new to infoneeded_new

That's why I asked you if Apache was well configured. It seems unlikely to me that Indico is sending empty AJAX requests to the server.
Have you tried deleting vars.js.tpl inside Indico's tmp folder?

And if you do something like

curl 'http://pcituds04.cern.ch/indico/services/json-rpc' -d '{"version":"1.1","method":"timezone.getTimezones","params":{}}' -i

What happens?

comment:15 Changed 5 years ago by sylvestre

After digging a while, I realized that I was declaring my virtualhost as
the following in apache:

ServerName? indico.ecranbleu.org
ServerAlias? meetings.geiser-fp7.eu

It looks like the json was using randomly one or this other.
I guess it should be changed to use only the host declared in the
configuration.

Obviously, it is kind of my fault but I think it is a bug that Indico is
not providing enough feedbacks to the admin (to take that as a rude
comment, I am just trying to save time to other who might be in the same
case). ;)

comment:16 Changed 5 years ago by pferreir

  • Resolution set to invalid
  • Status changed from infoneeded_new to closed

Well, it is kind of hard to properly detector such an error on the Indico side, as this is something that is blocked by the browser (due to cross domain restrictions), and that will be treated differently by each one of them.

Glad it works now. I will close it.

Note: See TracTickets for help on using tickets.