Project

General

Profile

Bug #25325

Fix warden traceback

Added by Stefan König over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Important
Assignee:
John Hixson
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

HP N54L Microserver

ChangeLog Required:
No

Description

Hallo forum,

nachdem ich nun mein NAS neu aufgesetzt habe, habe ich begonnen die ersten interessanten Erweiterungen zu installieren, es sollte OwnCloud und der PlexMediaServer werden. Als Jail sollte noch OpenVPN her.
Bei dem Versuch, die OwnClod zu installieren, kommt es zu folgendem Fehler:
Code:
Request Method: POST
Request URL: http://XXX.XXX.XX.XX/plugins/plugin/install/f272f8cf9d06ac84f1e8c871c7d5cba2b3a84c82f5a18eac5705cec40c7f3314/
Software Version: FreeNAS-11.0-U1 (aa82cc58d)
Exception Type: MiddlewareError
Exception Value:
[MiddlewareError: b"'warden_exception' object has no attribute 'encode'"]
Exception Location: ./freenasUI/plugins/views.py in install_available, line 308
Server time: Fr, 7 Jul 2017 20:57:54 +0200
Traceback

Environment:

Software Version: FreeNAS-11.0-U1 (aa82cc58d)
Request Method: POST
Request URL: http://XXX.XXX.XX.XX/plugins/plugin/install/f272f8cf9d06ac84f1e8c871c7d5cba2b3a84c82f5a18eac5705cec40c7f3314/

Traceback:
File "./freenasUI/jails/utils.py" in new_default_plugin_jail
675. w.template(**template_create_args)
File "./freenasUI/common/warden.py" in template
1155. return self.__call(warden_template(flags, **kwargs))
File "./freenasUI/common/warden.py" in call
1066. tmp = obj.run()
File "./freenasUI/common/warden.py" in run
461. raise warden_exception(msg)
File "./freenasUI/plugins/views.py" in install_available
302. jail = new_default_plugin_jail(plugin.unixname)
File "./freenasUI/jails/utils.py" in new_default_plugin_jail
680. raise MiddlewareError(e)
File "./freenasUI/middleware/exceptions.py" in _init

36. log.warn(str(self))
File "./freenasUI/middleware/exceptions.py" in str
39. return "[%s: %s]" % (type(self).
_name__, self.value.encode('utf-8File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/plugins/views.py" in install_available
308. raise MiddlewareError(str(e))

Exception Type: MiddlewareError at /plugins/plugin/install/f272f8cf9d06ac84f1e8c871c7d5cba2b3a84c82f5a18eac5705cec40c7f3314/
Exception Value: [MiddlewareError: b"'warden_exception' object has no attribute 'encode'"]

Request information

GET

No GET data
POST

Variable Value
__form_id 'form_str'
FILES

No FILES data
COOKIES

Variable Value
sessionid 'aj8gnghdfnbe441pd6242cloawgfjmt5'
csrftoken 'X7GpQb48vLckTdKyTyYa6bLm30TCvSypklvnRee2anLqanWuxEJMaaJaOJf2poIY'
fntreeSaveStateCookie 'root%2Croot%2F8%2F9%2Croot%2F8%2F12%2Croot%2F8%2F15%2Croot%2F8%2F21%2Croot%2F8%2F24%2Croot%2F8%2F28%2Croot%2F8%2F32%2Croot%2F35%2F41%2Croot%2F35%2F45%2Croot%2F35%2F48%2Croot%2F51%2F58%2Croot%2F68%2F69%2Croot%2F68%2F72%2Croot%2F68%2F75%2Croot%2F78%2F90%2Croot%2F51%2F52%2Croot%2F51%2F52%2F53%2Croot%2F51%2Croot%2F73%2Croot%2F73%2F74%2Croot%2F73%2F81%2Croot%2F73%2F78%2Croot%2F73%2F82%2Croot%2F70%2Croot%2F70%2F71%2Croot%2F70%2F74%2Croot%2F70%2F77%2Croot%2F75%2F83%2Croot%2F88%2F100%2Croot%2F132%2Croot%2F75%2F76%2Croot%2F53%2F54%2Croot%2F53%2F54%2F55%2F56%2Croot%2F53%2F54%2F55%2F56%2F61%2Croot%2F91%2F96%2Croot%2F91%2F100%2Croot%2F53%2F54%2F55%2F56%2F65%2Croot%2F53%2F54%2F55%2F56%2F57%2Croot%2F91%2F92%2Croot%2F10%2F11%2Croot%2F10%2F14%2Croot%2F10%2F18%2Croot%2F83%2F84%2Croot%2F83%2F91%2Croot%2F87%2F92%2Croot%2F87%2F96%2Croot%2F87%2F97%2Croot%2F87%2F88%2Croot%2F53%2Croot%2F53%2F60%2Croot%2F53%2F60%2F61%2Croot%2F53%2F60%2F61%2F62%2Croot%2F53%2F60%2F61%2F70%2Croot%2F53%2F60%2F61%2F66%2Croot%2F88%2F97%2Croot%2F88%2F89%2Croot%2F54%2F61%2Croot%2F54%2F61%2F62%2Croot%2F1%2F6%2Croot%2F54%2F61%2F62%2F63%2Croot%2F54%2F61%2F62%2F67%2Croot%2F54%2F61%2F62%2F71%2Croot%2F11%2F35%2Croot%2F11%2F27%2Croot%2F11%2F24%2Croot%2F11%2F18%2Croot%2F145%2Croot%2F101%2F134%2Croot%2F88%2F93%2Croot%2F102%2F114%2Croot%2F102%2F114%2F116%2Croot%2F102%2F114%2F119%2Croot%2F102%2F114%2F122%2Croot%2F102%2F114%2F131%2Croot%2F102%2F114%2F128%2Croot%2F102%2F114%2F125%2Croot%2F25%2F29%2Croot%2F25%2F32%2Croot%2F25%2F35%2Croot%2F103%2F110%2Croot%2F114%2F115%2Croot%2F114%2F119%2Croot%2F114%2F123%2Croot%2F114%2F126%2Croot%2F114%2F132%2Croot%2F152%2F162%2F163%2Croot%2F114%2F132%2F134%2Croot%2F114%2F132%2F137%2Croot%2F114%2F132%2F140%2Croot%2F114%2F132%2F143%2Croot%2F114%2F132%2F146%2Croot%2F114%2F132%2F149%2Croot%2F174%2F180%2F182%2Croot%2F150%2Croot%2F90%2F95%2Croot%2F90%2F91%2Croot%2F128%2F138%2Croot%2F54%2F76%2Croot%2F54%2F71%2Croot%2F54%2F68%2Croot%2F54%2F65%2Croot%2F90%2F99%2Croot%2F90%2F102%2Croot%2F128%2Croot%2F122%2F134%2Croot%2F182%2F192%2Croot%2F182%2F192%2F194%2Croot%2F178%2Croot%2F186%2F196%2F198%2Croot%2F54%2F112%2Croot%2F54%2F107%2Croot%2F54%2F104%2Croot%2F126%2F131%2Croot%2F126%2F138%2Croot%2F126%2F135%2Croot%2F126%2F127%2Croot%2F126%2F144%2Croot%2F115%2F122%2Croot%2F126%2F144%2F146%2Croot%2F126%2F144%2F149%2Croot%2F126%2F144%2F152%2Croot%2F126%2F144%2F155%2Croot%2F126%2F144%2F158%2Croot%2F126%2F144%2F161%2Croot%2F164%2F174%2Croot%2F164%2F174%2F175%2Croot%2F54%2F55%2F56%2F69%2F86%2Croot%2F54%2F101%2Croot%2F186%2F192%2F194%2Croot%2F186%2Croot%2F54%2F55%2F56%2F69%2F82%2Croot%2F182%2F188%2F190%2Croot%2F182%2Croot%2F182%2F188%2Croot%2F54%2F89%2Croot%2F166%2Croot%2F54%2F55%2F56%2F69%2Croot%2F174%2F180%2Croot%2F110%2Croot%2F54%2F96%2Croot%2F54%2F55%2F56%2F69%2F74%2Croot%2F165%2Croot%2F54%2F55%2Croot%2F161%2Croot%2F54%2F55%2F56%2Croot%2F54%2F55%2F56%2F65%2Croot%2F54%2F55%2F56%2F69%2F70%2Croot%2F54%2F100%2Croot%2F174%2Croot%2F111%2F123%2Croot%2F111%2F120%2Croot%2F28%2F29%2Croot%2F57%2F58%2Croot%2F57%2F58%2F59%2Croot%2F57%2F58%2F59%2F60%2Croot%2F8%2F16%2Croot%2F144%2Croot%2F157%2Croot%2F155%2Croot%2F54%2Croot%2F25%2F26%2Croot%2F139%2Croot%2F55%2F56%2F57%2F58%2Croot%2F55%2F62%2Croot%2F55%2F56%2F57%2Croot%2F143%2Croot%2F111%2F126%2Croot%2F169%2Croot%2F1%2F5%2Croot%2F1%2F2%2Croot%2F57%2F58%2F59%2F64'
META

Variable Value

auch mit den beiden neuen Updates der letzten Tage ändert sich nichts an der Installationsroutine........

Associated revisions

Revision 3e42018d (diff)
Added by John Hixson over 3 years ago

Stringify warden exceptions Ticket: #25325

Revision 33f0fec1 (diff)
Added by John Hixson over 3 years ago

Stringify warden exceptions Ticket: #25325 (cherry picked from commit 3e42018d9122db60590c2a6479eda1e97733474e)

Revision 4b8b93d7 (diff)
Added by John Hixson over 3 years ago

Stringify warden exceptions Ticket: #25325

History

#1 Updated by Dru Lavigne over 3 years ago

  • Status changed from Unscreened to 15
  • Seen in changed from 11.0-U3 to 11.0-U1

1. Does updating to U2 resolve the issue?

2. If not, are you installing the OwnCloud using Plugins or are you instead creating a Jail to install Owncloud into? Is this a fresh install, or did you upgrade from an earlier version of FreeNAS?

#2 Updated by Stefan König over 3 years ago

Hi,

U2 does not solve the problem.
it is a very fresh installation, i am using OwnCloud as a plugin,

thx,
best regards
Stefan

#3 Updated by Stefan König over 3 years ago

Hi,

U3 also does not solve the problem.

best regards
Stefan

#4 Updated by Dru Lavigne over 3 years ago

  • Status changed from 15 to Unscreened
  • Assignee changed from Release Council to Kris Moore

#5 Avatar?id=14398&size=24x24 Updated by Kris Moore over 3 years ago

  • Status changed from Unscreened to Screened

#6 Avatar?id=14398&size=24x24 Updated by Kris Moore over 3 years ago

  • Assignee changed from Kris Moore to John Hixson
  • Priority changed from No priority to Important
  • Target version set to 11.0-U3

John, this looks like some fallout from python3 conversion. Can you take a look?

#7 Avatar?id=14398&size=24x24 Updated by Kris Moore over 3 years ago

  • Status changed from Screened to Unscreened

#8 Updated by John Hixson over 3 years ago

  • Status changed from Unscreened to Screened

#9 Updated by John Hixson over 3 years ago

  • Status changed from Screened to 15

Stefan, would it be possible for me to look at your system? We use teamviewer for this (usually) but I can use something else if necessary.

#10 Updated by Stefan König over 3 years ago

John Hixson wrote:

Stefan, would it be possible for me to look at your system? We use teamviewer for this (usually) but I can use something else if necessary.

Hi John,

thanks for the reply. Teamviewer is not an problem, which timezone do u live? I feel that could be a problem, or?
Best regards
Stefan

#11 Updated by John Hixson over 3 years ago

Stefan König wrote:

John Hixson wrote:

Stefan, would it be possible for me to look at your system? We use teamviewer for this (usually) but I can use something else if necessary.

Hi John,

thanks for the reply. Teamviewer is not an problem, which timezone do u live? I feel that could be a problem, or?
Best regards
Stefan

I am in PDT, however I'm flexible so long as I have notice.

#12 Updated by Stefan König over 3 years ago

Hi John,

so if u want, i am prepared for the connection.

best regards
stefan

#13 Updated by Malte-Sean Hecke over 3 years ago

John Hixson wrote:

Stefan, would it be possible for me to look at your system? We use teamviewer for this (usually) but I can use something else if necessary.

If you need a second system to look at: I am experiencing the exact same error under U2 when I try to install any plugin.

#14 Updated by John Hixson over 3 years ago

Malte-Sean Hecke wrote:

John Hixson wrote:

Stefan, would it be possible for me to look at your system? We use teamviewer for this (usually) but I can use something else if necessary.

If you need a second system to look at: I am experiencing the exact same error under U2 when I try to install any plugin.

Sure. I'd be glad to look at your system. Teamviewer? What is your availability? Email me john at ixsystems dot com. Please specify ticket number in subject. I am in PDT but am flexible so long as I have advanced notice.

#15 Updated by Vaibhav Chauhan over 3 years ago

  • Target version changed from 11.0-U3 to 11.1

i think we can punt this to 11.1 as cut off time for getting fixes for 11.0-U3 is passed.

#16 Updated by John Hixson over 3 years ago

  • Target version changed from 11.1 to 11.0-U3

#17 Updated by John Hixson over 3 years ago

There were 2 problems here, 1st is the warden exception being thrown wasn't able to be converted to a string, the 2nd and actual problem was Stefan had a 500M quota on his jails dataset, so the template couldn't even install.

#19 Updated by John Hixson over 3 years ago

  • Status changed from 15 to Needs Developer Review
  • Assignee changed from John Hixson to Release Council

#20 Updated by Vaibhav Chauhan over 3 years ago

  • Assignee changed from Release Council to Suraj Ravichandran

can you please review ?

#21 Updated by Suraj Ravichandran over 3 years ago

  • Status changed from Needs Developer Review to Reviewed by Developer
  • Assignee changed from Suraj Ravichandran to John Hixson

LGTM

#22 Updated by Suraj Ravichandran over 3 years ago

Also, @Release Engineer, please rename the subject of this ticket to something more appropriate for the changelog.

#23 Updated by Dru Lavigne over 3 years ago

  • Subject changed from MiddlewareError to Fix warden traceback

#24 Updated by Vaibhav Chauhan over 3 years ago

  • Status changed from Reviewed by Developer to 47

#25 Updated by Joe Maloney over 3 years ago

  • Assignee changed from John Hixson to Bonnie Follweiler

#26 Updated by Joe Maloney over 3 years ago

  • Assignee changed from Bonnie Follweiler to Joe Maloney

#27 Updated by Bonnie Follweiler over 3 years ago

  • Status changed from 47 to Ready For Release
  • Assignee changed from Joe Maloney to Vaibhav Chauhan

#28 Updated by Bonnie Follweiler over 3 years ago

  • Needs QA changed from Yes to No
  • QA Status Test Passes added
  • QA Status deleted (Not Tested)

#29 Updated by Dru Lavigne over 3 years ago

  • Assignee changed from Vaibhav Chauhan to John Hixson

#30 Updated by Joe Maloney over 3 years ago

I would assume this is working as expected after setting quotas to verify.


[MiddlewareError: b'Failed to download http://download.freenas.org/plugins/9/x64: [Errno 69] Disc quota exceeded']

#31 Updated by Scott Wermter over 3 years ago

Sorry if I am doing this wrong as this is my first time using this. Also related to https://bugs.freenas.org/issues/25482

Edit: I failed to mention I did not have the quota exceeded message but the rest was the same.

I was having this exact error and could not figure it out. I had no quotas set, I nuked everything and did a fresh install twice with the same error. I wasn't even configuring anything extra. I would install FreeNAS then create a dataset, configure jails and try to install a plugin and bam, error. For some reason a light bulb went off in my head. Every time I was creating a jails dataset I set the Case Sensitivity to Insensitive. I did another fresh install, created a jails dataset and left the Case Sensitivity as the default Insensitive. Installed a plugin and everything worked perfectly!

So I am not sure if this is the original posters issue but I thought I would post my findings in case it helps at all.

#32 Updated by Vaibhav Chauhan over 3 years ago

  • Status changed from Ready For Release to Resolved

Also available in: Atom PDF