google-code-export / epidemic-marketplace

Automatically exported from code.google.com/p/epidemic-marketplace
0 stars 0 forks source link

Gleamviz Problems uploading #297

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Gleamviz users are having problems with the upload again, they are getting 
server internal errors.

I looked into the server logs and we're getting this in the web services:

DEBUG:root:type: Epidemiological data
[Wed May 09 16:00:23 2012] [error] emDate: '1970-01-01T01:00:00Z'
[Wed May 09 16:00:23 2012] [error] emTempFrom: '2010-09-28T18:30:02Z'
[Wed May 09 16:00:23 2012] [error] emTempTo: '2010-09-28T18:30:02Z'
[Wed May 09 16:00:23 2012] [error] DEBUG:root:Trying GET on 
/fedora/objects/application.wadl
[Wed May 09 16:00:24 2012] [error] DEBUG:root:Trying GET on 
/fedora/objects/empid:2?format=text%2Fxml
[Wed May 09 16:00:24 2012] [error] DEBUG:root:Trying GET on 
/fedora/objects/empid:2/datastreams/EpidemicMarketplaceTypes_4350.ksh?validateCh
ecksum=false&format=text%2Fxml
[Wed May 09 16:00:24 2012] [error] DEBUG:root:Trying GET on 
/fedora/objects/empid:2/datastreams/EpidemicMarketplaceTypes_4350.ksh/content
[Wed May 09 16:00:25 2012] [error] Traceback (most recent call last):
[Wed May 09 16:00:25 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 768, in emit
[Wed May 09 16:00:25 2012] [error]     msg = self.format(record)
[Wed May 09 16:00:25 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 648, in format
[Wed May 09 16:00:25 2012] [error]     return fmt.format(record)
[Wed May 09 16:00:25 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 436, in format
[Wed May 09 16:00:25 2012] [error]     record.message = record.getMessage()
[Wed May 09 16:00:25 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
[Wed May 09 16:00:25 2012] [error]     msg = msg % self.args
[Wed May 09 16:00:25 2012] [error] TypeError: not all arguments converted 
during string formatting
[Wed May 09 16:00:25 2012] [error] Traceback (most recent call last):
[Wed May 09 16:00:25 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 768, in emit
[Wed May 09 16:00:25 2012] [error]     msg = self.format(record)
[Wed May 09 16:00:25 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 648, in format
[Wed May 09 16:00:25 2012] [error]     return fmt.format(record)
[Wed May 09 16:00:25 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 436, in format
[Wed May 09 16:00:25 2012] [error]     record.message = record.getMessage()
[Wed May 09 16:00:25 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
[Wed May 09 16:00:25 2012] [error]     msg = msg % self.args
[Wed May 09 16:00:25 2012] [error] TypeError: not all arguments converted 
during string formatting
[Wed May 09 16:00:25 2012] [error] DEBUG:root:Trying GET on 
/fedora/objects/application.wadl
[Wed May 09 16:00:25 2012] [error] DEBUG:root:Trying GET on 
/fedora/objects/empid:3?format=text%2Fxml
[Wed May 09 16:00:25 2012] [error] DEBUG:root:Trying GET on 
/fedora/objects/empid:3/datastreams/EpidemicMarketplaceSubjects_4898.ksh?validat
eChecksum=false&format=text%2Fxml
[Wed May 09 16:00:26 2012] [error] DEBUG:root:Trying GET on 
/fedora/objects/empid:3/datastreams/EpidemicMarketplaceSubjects_4898.ksh/content
[Wed May 09 16:00:26 2012] [error] Traceback (most recent call last):
[Wed May 09 16:00:26 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 768, in emit
[Wed May 09 16:00:26 2012] [error]     msg = self.format(record)
[Wed May 09 16:00:26 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 648, in format
[Wed May 09 16:00:26 2012] [error]     return fmt.format(record)
[Wed May 09 16:00:26 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 436, in format
[Wed May 09 16:00:26 2012] [error]     record.message = record.getMessage()
[Wed May 09 16:00:26 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
[Wed May 09 16:00:26 2012] [error]     msg = msg % self.args
[Wed May 09 16:00:26 2012] [error] TypeError: not all arguments converted 
during string formatting
[Wed May 09 16:00:26 2012] [error] Traceback (most recent call last):
[Wed May 09 16:00:26 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 768, in emit
[Wed May 09 16:00:26 2012] [error]     msg = self.format(record)
[Wed May 09 16:00:26 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 648, in format
[Wed May 09 16:00:26 2012] [error]     return fmt.format(record)
[Wed May 09 16:00:26 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 436, in format
[Wed May 09 16:00:26 2012] [error]     record.message = record.getMessage()
[Wed May 09 16:00:26 2012] [error]   File 
"/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
[Wed May 09 16:00:26 2012] [error]     msg = msg % self.args
[Wed May 09 16:00:26 2012] [error] TypeError: not all arguments converted 
during string formatting
[Wed May 09 16:00:26 2012] [error] upload: rawfetch x2 took  -277137  
microseconds to complete
[Wed May 09 16:00:26 2012] [error] DEBUG:root:Agregation = empid:1
[Wed May 09 16:00:26 2012] [error] DEBUG:root:Trying POST on 
/fedora/objects/nextPID?numPIDs=1&namespace=empid&format=text%2Fxml
[Wed May 09 16:00:26 2012] [error] [client 194.117.20.194] mod_wsgi 
(pid=20877): Exception occurred processing WSGI script 
'/var/www/html/wsgi-scripts/myapp.wsgi'., referer: app:/gleamviz_v3_pe.swf
[Wed May 09 16:00:26 2012] [error] [client 194.117.20.194] Traceback (most 
recent call last):, referer: app:/gleamviz_v3_pe.swf
[Wed May 09 16:00:26 2012] [error] [client 194.117.20.194]   File 
"/var/www/html/wsgi-scripts/myapp.wsgi", line 314, in application, referer: 
app:/gleamviz_v3_pe.swf
[Wed May 09 16:00:26 2012] [error] [client 194.117.20.194]     status, 
content_type, output = up.upload(body, username, password), referer: 
app:/gleamviz_v3_pe.swf
[Wed May 09 16:00:26 2012] [error] [client 194.117.20.194]   File 
"/var/www/html/wsgi-scripts/upload.py", line 426, in upload, referer: 
app:/gleamviz_v3_pe.swf

Isto é haverão problemas com a validação (nos recursos?). Isto acontece 
para mais pessoas ou só para o gleamviz?

Original issue reported on code.google.com by eKzam...@gmail.com on 11 May 2012 at 1:15

GoogleCodeExporter commented 9 years ago
There are being made several changes in the upload method in the current DEV 
version. 
The validation is going to be made through a XSD -  Schema. So the following 
code, where the error occurs will be deprecated:

pidDict, errorDict = self.send_xml_to_repository(emNode[0], aggregationName, 
client, "//em:em/em:title", "//em:em/em:generalDescription/em:identifier", 
'EM', 'EM Metadata', errorDict, pidDict, fc)

We are currently testing the developed version so we can release it today, or 
on the next Monday.

Original comment by graca.pa...@gmail.com on 11 May 2012 at 2:49

GoogleCodeExporter commented 9 years ago
As I wrote it before, with the 2.2 release (Release_2_2 - 
http://code.google.com/p/epidemic-marketplace/wiki/Release_2_2), the errors 
reported are deprecated.

Original comment by graca.pa...@gmail.com on 18 May 2012 at 10:25