Created on 05-09-2016 04:29 AM - edited 09-16-2022 03:18 AM
[09/May/2016 13:00:55 +0200] access INFO 192.168.1.1 isegrim - "POST /filebrowser/trash/purge HTTP/1.1" [09/May/2016 13:00:55 +0200] middleware INFO Processing exception: 'WebHdfs' object has no attribute 'fs_set': Traceback (most recent call last): File "/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.py", line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/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.py", line 371, in inner return func(*args, **kwargs) File "/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.py", line 41, in inner return func(request, *args, **kwargs) File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/filebrowser/src/filebrowser/views.py", line 1129, in trash_purge return generic_op(TrashPurgeForm, request, request.fs.purge_trash, [], None) File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/filebrowser/src/filebrowser/views.py", line 968, in generic_op op(*args) File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py", line 165, in purge_trash for fs in self.fs_set: File "/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py", line 38, in __getattr__ return getattr(object.__getattribute__(self, "_default_fs"), item) AttributeError: 'WebHdfs' object has no attribute 'fs_set' [09/May/2016 13:00:55 +0200] decorators INFO AXES: Calling decorated function: dt_login [09/May/2016 13:00:55 +0200] decorators INFO args: (True,) [09/May/2016 13:00:55 +0200] access WARNING 192.168.1.1 isegrim - "POST /filebrowser/trash/purge HTTP/1.1" -- Failed login for user: None [09/May/2016 13:00:55 +0200] decorators INFO AXES: Repeated login failure by 192.168.1.1. Updating access record. Count = 2
Sorry, there's been an error. An email was sent to your administrators. Thank you for your patience.
File Name | Line Number | Function 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.py | 112 | get_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.py | 371 | inner |
/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.py | 41 | inner |
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/filebrowser/src/filebrowser/views.py | 1129 | trash_purge |
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/filebrowser/src/filebrowser/views.py | 968 | generic_op |
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py | 165 | purge_trash |
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py | 38 | __getattr__ |
Created on 05-09-2016 05:01 PM - edited 05-09-2016 05:02 PM
Hey,
I was able to fix this by adding underscore to the variable name and restart Hue.
sed -i -e 's/self.fs_set/self._fs_set/' /opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py
So with this workaround, I'll wait for Hue's Jira to be done, and will remember to patch this file after every CDH upgrade until it is fixed.
Created 05-09-2016 06:20 AM
I see that in
/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py
there is always self._fs_set,
but one time in the line that the error raised is self.fs_set (not '_' before fs) - but this variable is not set anywhere.
I've changed that to self._fs_set, but I still got the same error - do I have to restart Hue so it would reread proxyfs.py?
Created 05-09-2016 09:03 AM
Created 05-09-2016 01:57 PM
Thank you Romainr for your suggestion.
I've searched HUE's JIRA for trash problems but did not find any issue describing my problem, so I've created new:
https://issues.cloudera.org/browse/HUE-3842
I hope this is ok.
Created on 05-09-2016 05:01 PM - edited 05-09-2016 05:02 PM
Hey,
I was able to fix this by adding underscore to the variable name and restart Hue.
sed -i -e 's/self.fs_set/self._fs_set/' /opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py
So with this workaround, I'll wait for Hue's Jira to be done, and will remember to patch this file after every CDH upgrade until it is fixed.
Created 05-15-2016 09:00 PM