<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: HTTP 500 while emptying Hue 3.9 trash directory in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40644#M23200</link>
    <description>&lt;P&gt;Thank you Romainr for your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched HUE's JIRA for trash problems but did not find any issue describing my problem, so I've created new:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.cloudera.org/browse/HUE-3842" target="_blank"&gt;https://issues.cloudera.org/browse/HUE-3842&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is ok.&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 20:57:56 GMT</pubDate>
    <dc:creator>Isegrim</dc:creator>
    <dc:date>2016-05-09T20:57:56Z</dc:date>
    <item>
      <title>HTTP 500 while emptying Hue 3.9 trash directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40609#M23197</link>
      <description>&lt;DIV&gt;Hey,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have Hue 3.9 (CDH 5.7) and can not delete files from trash. I've been googling but couldn't find any place with resonable solution.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In /var/log/hue/runcpserver.log I have:&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[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&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And in Hue I have HTTP ERROR 500:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Server error.&lt;P&gt;Sorry, there's been an error. An email was sent to your administrators. Thank you for your patience.&lt;/P&gt;&lt;BR /&gt;&amp;nbsp;More Info... |&amp;nbsp; View logs&lt;DIV class="hide"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;File Name&lt;/TD&gt;&lt;TD&gt;Line Number&lt;/TD&gt;&lt;TD&gt;Function Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/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&lt;/TD&gt;&lt;TD&gt;112&lt;/TD&gt;&lt;TD&gt;get_response&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/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&lt;/TD&gt;&lt;TD&gt;371&lt;/TD&gt;&lt;TD&gt;inner&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/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&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;TD&gt;inner&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/filebrowser/src/filebrowser/views.py&lt;/TD&gt;&lt;TD&gt;1129&lt;/TD&gt;&lt;TD&gt;trash_purge&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/apps/filebrowser/src/filebrowser/views.py&lt;/TD&gt;&lt;TD&gt;968&lt;/TD&gt;&lt;TD&gt;generic_op&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py&lt;/TD&gt;&lt;TD&gt;165&lt;/TD&gt;&lt;TD&gt;purge_trash&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py&lt;/TD&gt;&lt;TD&gt;38&lt;/TD&gt;&lt;TD&gt;__getattr__&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:18:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40609#M23197</guid>
      <dc:creator>Isegrim</dc:creator>
      <dc:date>2022-09-16T10:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP 500 while emptying Hue 3.9 trash directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40616#M23198</link>
      <description>&lt;P&gt;I see that in&lt;/P&gt;&lt;P&gt;/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py&lt;/P&gt;&lt;P&gt;there is always self._fs_set,&lt;/P&gt;&lt;P&gt;but one time in the line that the error raised is self.fs_set (not '_' before fs) - but this variable is not set anywhere.&lt;/P&gt;&lt;P&gt;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&amp;nbsp; proxyfs.py?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 13:20:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40616#M23198</guid>
      <dc:creator>Isegrim</dc:creator>
      <dc:date>2016-05-09T13:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP 500 while emptying Hue 3.9 trash directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40628#M23199</link>
      <description>Feel free to comment on the jira for the technical discussion&lt;BR /&gt;</description>
      <pubDate>Mon, 09 May 2016 16:03:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40628#M23199</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2016-05-09T16:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP 500 while emptying Hue 3.9 trash directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40644#M23200</link>
      <description>&lt;P&gt;Thank you Romainr for your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched HUE's JIRA for trash problems but did not find any issue describing my problem, so I've created new:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.cloudera.org/browse/HUE-3842" target="_blank"&gt;https://issues.cloudera.org/browse/HUE-3842&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is ok.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 20:57:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40644#M23200</guid>
      <dc:creator>Isegrim</dc:creator>
      <dc:date>2016-05-09T20:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP 500 while emptying Hue 3.9 trash directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40652#M23201</link>
      <description>&lt;DIV class="action-body flooded"&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I was able to fix this by adding underscore to the variable name and restart Hue.&lt;/P&gt;&lt;PRE&gt;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&lt;/PRE&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 May 2016 00:02:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40652#M23201</guid>
      <dc:creator>Isegrim</dc:creator>
      <dc:date>2016-05-10T00:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP 500 while emptying Hue 3.9 trash directory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40848#M23202</link>
      <description>Thanks again! The fix is in&lt;BR /&gt;&lt;A href="https://github.com/cloudera/hue/commit/a5ec8b5d651754abc5455917728e96f0f700266d" target="_blank"&gt;https://github.com/cloudera/hue/commit/a5ec8b5d651754abc5455917728e96f0f700266d&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 May 2016 04:00:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HTTP-500-while-emptying-Hue-3-9-trash-directory/m-p/40848#M23202</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2016-05-16T04:00:16Z</dc:date>
    </item>
  </channel>
</rss>

