PLEX Plugin in 9.3 won't install

Status
Not open for further replies.

seibax

Dabbler
Joined
Feb 25, 2014
Messages
17
Hi,

i get the following error when trying to install plex plugin:

nstall plugin
Request Method: POST
Request URL: http://192.168.178.58/plugins/plugi...be893f269bd9486bacbb66ab8d529b4eec4d5cb6d9b1/
Software Version: FreeNAS-9.3-STABLE-201501090144
Exception Type: AttributeError
Exception Value:
'exceptions.IOError' object has no attribute 'encode'
Exception Location: /usr/local/www/freenasUI/../freenasUI/middleware/exceptions.py in __str__, line 41
Server time: Thu, 15 Jan 2015 08:42:10 +0100


Environment:

Software Version: FreeNAS-9.3-STABLE-201501090144
Request Method: POST
Request URL: http://192.168.178.58/plugins/plugi...be893f269bd9486bacbb66ab8d529b4eec4d5cb6d9b1/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
105. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
157. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
22. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/plugins/views.py" in install_available
284. raise MiddlewareError(e)
File "/usr/local/www/freenasUI/../freenasUI/middleware/exceptions.py" in __init__
38. log.warn(str(self))
File "/usr/local/www/freenasUI/../freenasUI/middleware/exceptions.py" in __str__
41. return "[%s: %s]" % (type(self).__name__, self.value.encode('utf-8'))

Exception Type: AttributeError at /plugins/plugin/install/1b327fb2b92dffef8329be893f269bd9486bacbb66ab8d529b4eec4d5cb6d9b1/
Exception Value: 'exceptions.IOError' object has no attribute 'encode'


what can i do???

Thanks in advance,

Greetings SeibaX
 
D

dlavigne

Guest
Does updating to the latest STABLE fix it? If not, please create a bug report at bugs.freenas.org and post the issue number here.
 

fmdx

Explorer
Joined
Jan 24, 2015
Messages
50
Got my FreeNas set up today, updated everything and then tried to install PMS and got the same errors:

Request Method: POST
Request URL: https://192.168.254.15/plugins/plug...be893f269bd9486bacbb66ab8d529b4eec4d5cb6d9b1/
Software Version: FreeNAS-9.3-STABLE-201501241715
Exception Type: AttributeError
Exception Value:
'exceptions.IOError' object has no attribute 'encode'
Exception Location: /usr/local/www/freenasUI/../freenasUI/middleware/exceptions.py in __str__, line 41
Server time: Sat, 24 Jan 2015 21:10:53 -0600

Environment:

Software Version: FreeNAS-9.3-STABLE-201501241715
Request Method: POST
Request URL: https://192.168.254.15/plugins/plug...be893f269bd9486bacbb66ab8d529b4eec4d5cb6d9b1/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
105. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
157. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
22. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/plugins/views.py" in install_available
284. raise MiddlewareError(e)
File "/usr/local/www/freenasUI/../freenasUI/middleware/exceptions.py" in __init__
38. log.warn(str(self))
File "/usr/local/www/freenasUI/../freenasUI/middleware/exceptions.py" in __str__
41. return "[%s: %s]" % (type(self).__name__, self.value.encode('utf-8'))

Exception Type: AttributeError at /plugins/plugin/install/1b327fb2b92dffef8329be893f269bd9486bacbb66ab8d529b4eec4d5cb6d9b1/
Exception Value: 'exceptions.IOError' object has no attribute 'encode'

Please advise :)

EDIT: Tried installing syncthing and got the same errors 0.o

Double edit: Nuked my installs and wiped the server, I'm pretty sure I screwed up my warden and that added to the mix. Now it works fine :D
 
Last edited:
Joined
Jan 25, 2015
Messages
26
I was having this problem yesterday on a fresh install, had a very quick look at the Python code and it looked like the issue it's reporting is just that the exception thrown was not of type MiddlewareError (as it's catching it as an Exception then throwing it as a MiddlewareError), the value of which doesn't have a .encode attribute. However I believe that is not the actual bug at hand, there's another bug causing the exception to be thrown in the first place...

Either way, this appears to be unintentionally fixed upstream. I went to the Web UI to see if there were any updates and one of them was django related, figured it couldn't hurt so I updated. This error no longer occurs and I managed to set up Plex and various other plugins afterwards. Note that the first plugin you install seems to take forever, although I found all subsequent ones quite quick.

Current version:
FreeNAS-9.3-STABLE-201501241715
 

kiril

Dabbler
Joined
Jan 20, 2015
Messages
17
Did you try updating your FreeNAS to the same version that I have? The problem went away for me after that. Still took ages to install, though.
yes i was update for the last version and i was reinstall 5 times the system and delete all date
 

maq0r

Cadet
Joined
Jan 26, 2015
Messages
1
Same problem here today; downloaded the stable version.

Here's the traceback:

Environment:

Software Version: FreeNAS-9.3-STABLE-201501241715
Request Method: POST
Request URL: http://192.168.1.71/plugins/plugin/...3fd9b10493c61af47595902d1262a919c077a3ff6ef3/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
105. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
157. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
22. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/plugins/views.py" in install_available
284. raise MiddlewareError(e)
File "/usr/local/www/freenasUI/../freenasUI/middleware/exceptions.py" in __init__
38. log.warn(str(self))
File "/usr/local/www/freenasUI/../freenasUI/middleware/exceptions.py" in __str__
41. return "[%s: %s]" % (type(self).__name__, self.value.encode('utf-8'))

Exception Type: AttributeError at /plugins/plugin/install/1628af80ec85cb12cbbd3fd9b10493c61af47595902d1262a919c077a3ff6ef3/
Exception Value: 'exceptions.IOError' object has no attribute 'encode'
 

kiril

Dabbler
Joined
Jan 20, 2015
Messages
17
they dont fix this issus
i still have this problem

Here's the traceback:
Environment:

Software Version: FreeNAS-9.3-STABLE-201501241715
Request Method: POST
Request URL: http://10.0.0.6/plugins/plugin/inst...3fd9b10493c61af47595902d1262a919c077a3ff6ef3/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
105. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
157. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
22. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/plugins/views.py" in install_available
284. raise MiddlewareError(e)
File "/usr/local/www/freenasUI/../freenasUI/middleware/exceptions.py" in __init__
38. log.warn(str(self))
File "/usr/local/www/freenasUI/../freenasUI/middleware/exceptions.py" in __str__
41. return "[%s: %s]" % (type(self).__name__, self.value.encode('utf-8'))

Exception Type: AttributeError at /plugins/plugin/install/1628af80ec85cb12cbbd3fd9b10493c61af47595902d1262a919c077a3ff6ef3/
Exception Value: 'exceptions.IOError' object has no attribute 'encode'
 
D

dlavigne

Guest
Did you upgrade to the latest NIGHTLY? If not, you don't have the fix.
 
D

dlavigne

Guest
Nightly 9.3. Note that when the next SU comes out, you can go back to the STABLE train.
 

kiril

Dabbler
Joined
Jan 20, 2015
Messages
17
i still have this problem after install NIGHTLY 9.3
Environment:

Software Version: FreeNAS-9.3-Nightlies-201501270400
Request Method: POST
Request URL: http://10.0.0.6/plugins/plugin/inst...3fd9b10493c61af47595902d1262a919c077a3ff6ef3/


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
105. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
157. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
22. return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/plugins/views.py" in install_available
282. raise MiddlewareError(e.message)

Exception Type: UnboundLocalError at /plugins/plugin/install/1628af80ec85cb12cbbd3fd9b10493c61af47595902d1262a919c077a3ff6ef3/
Exception Value: local variable 'e' referenced before assignment
 

josecuervo

Dabbler
Joined
Jan 19, 2015
Messages
42
How long does it usually take for bugs to be resolved? Is there a way to manually install plugins?

I tried to update to 9.3 nightly but it says there are no updates available. Does that mean I already did it? I also still have this problem.
 
Status
Not open for further replies.
Top