Uploaded image for project: 'Hue'
  1. Hue
  2. HUE-3842

HTTP 500 while emptying Hue 3.9 trash directory

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.9.0
    • Fix Version/s: 3.10.0
    • Component/s: app.filebrowser
    • Labels:
    • Target Version:
    • Sprint:
      May 2-13, 2016

      Description

      Can not delete files from trash using Hue filebrowser. In browser I get HTTP 500 error:
      Server error.

      Sorry, there's been an error. An email was sent to your administrators. Thank you for your patience.

      More Info... | View logs
      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_

      In /var/log/hue/runcpserver.log I have:

      [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
      

      I've noticed, 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" variable,
      but one time in the line that the error raised (165) is self.fs_set (no '_' before fs).

      I've changed that to self._fs_set, but no effect, I still got the same error.
      When I change this file, should I restart Hue also?

        Attachments

          Activity

            People

            • Assignee:
              jennykim Jenny Kim
              Reporter:
              SparkStream Artur Fejklowicz
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: