denshoproject / encyc-front

front-end interface for the encyclopedia
Other
1 stars 0 forks source link

PSMS - Can't create new primary source or upload new images to existing primary source #3

Closed GeoffFroh closed 9 years ago

GeoffFroh commented 9 years ago

PSMS webui returns an error when creating a new primary source or when adding/replacing a new binary file to an existing primary source.

Error text:

(u'internal-error', u'An internal error occurred')
Request Method:POST
Request URL:http://192.168.0.16:8001/admin/sources/source/add/
Django Version:1.4
Exception Type:APIError
Exception Value:(u'internal-error', u'An internal error occurred')
Exception Location:/var/www/psmsenv/lib/python2.6/site-packages/wikitools/api.py in query, line 143
Python Executable:/var/www/psmsenv/bin/python
Python Version:2.6.6
Python Path:['/var/www/psmsenv/encyc-psms/psms', '/var/www/psmsenv/encyc-psms', '/var/www/psmsenv/bin', '/var/www/psmsenv/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg', '/var/www/psmsenv/lib/python2.6/site-packages/pip-0.7.2-py2.6.egg', '/var/www/psmsenv/lib/python2.6', '/var/www/psmsenv/lib/python2.6/plat-linux2', '/var/www/psmsenv/lib/python2.6/lib-tk', '/var/www/psmsenv/lib/python2.6/lib-old', '/var/www/psmsenv/lib/python2.6/lib-dynload', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/var/www/psmsenv/lib/python2.6/site-packages', '/var/www/psmsenv/lib/python2.6/site-packages/PIL', '/var/www/psmsenv/encyc-psms/psms/apps']
Server time:Tue, 13 Jan 2015 10:17:03 -0800

Last chunk of the stack trace:

/var/www/psmsenv/lib/python2.6/site-packages/wikitools/api.py in query
143. raise APIError(data['error']['code'], data['error']['info']) 
▼ Local vars
Variable | Value
---------- | ---------
querycontinue | True
data | {u'error': {u'0': [u'directorycreateerror',                   u'mwstore://local-backend/local-public/f/fb'],            u'code': u'internal-error',            u'info': u'An internal error occurred'}}
rawdata | <addinfourl at 169675404 whose fp = <socket._fileobject object at 0xa2455ac>>
self | <wikitools.api.APIRequest instance at 0xa6e302c>
GeoffFroh commented 9 years ago

This behavior appeared after latest MW upgrade. May be related.

gjost commented 9 years ago

Done a bunch of testing and tinkering. encyc-psms does not have the nice logging that DDR has so there is some retrofitting. So far looks like a problem with the third-party wikitools module. I'm hoping that I can simply update that module.

gjost commented 9 years ago

I'm having trouble duplicating the problem in my test VM. I'm going to temporarily switch the PSMS on dango to a branch that has more logging so I can get more data to work with.

gjost commented 9 years ago

This is actually an issue with encyc-psms. I have created issue https://github.com/densho/encyc-psms/issues/2 and will close this one.