Hue error 500 while empty trash

Here i am showing how to fix Hue 500 error while empty trash.

When you click on "empty trash" you may get "500 server error". When you click More info, it will show below info

File NameLine NumberFunction Name
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py112get_response
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/transaction.py371inner
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/views/decorators/http.py41inner
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/filebrowser/src/filebrowser/views.py1129trash_purge
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/filebrowser/src/filebrowser/views.py968generic_op
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py165purge_trash
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py38__getattr__

Solution:

We have to insert"_" inside proxyfs.py file which is located in opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs
So replace like below

Before: for fs in self.fs_set:
After: for fs in self._fs_set

Then restart Hue
Previous
Next Post »