Page 1 of 1

0.8.0 B3 Retry fails often with Glitter night skin

Posted: December 6th, 2015, 11:52 am
by ErikBrown
Hi,

Using the Glitter Night skin I notice often (but not always) the following. My temporary download folder is located on my C drive. The folders for completed downloads are on other drives. I use different harddrives for different categories. When one of the harddrives for the completed downloads is full, then the download failed with the following error:

Unpacking failed, write error or disk is full?

When I free up space on the drive for the completed download for that category and I select Retry, then I get correctly the popup where I can select an optional supplemental NZB or set a password. When I click on Retry then often there is no visible effect other than the following error message:

ERROR 06/12/2015 20:15 [06/Dec/2015:20:15:32] HTTP
Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 670, in respond
File "cherrypy\lib\encoding.pyo", line 217, in __call__
File "cherrypy\_cpdispatch.pyo", line 61, in __call__
File "sabnzbd\interface.pyo", line 1010, in retry_pp
File "sabnzbd\api.pyo", line 1556, in retry_job
AttributeError: '_ThreadData' object has no attribute 'history_db'

When I use the smpl skin (which I configured as secondary skin) and select Retry, then I also get sometimes a failure:

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 670, in respond
File "cherrypy\lib\encoding.pyo", line 217, in __call__
File "cherrypy\_cpdispatch.pyo", line 61, in __call__
File "sabnzbd\interface.pyo", line 474, in retry_pp
File "sabnzbd\api.pyo", line 1556, in retry_job
AttributeError: '_ThreadData' object has no attribute 'history_db'


I am not sure if this is related to another issue but I see very often the following error message while using the Glitter Night skin:

Lost connection to SABnzbd..

In case of SABnzbd restart this screen will disappear automatically!

When this happens and I wait a few seconds then the error disappears and the proper screen will be shown again.

I use Windows 10, Glitter Night as primary skin and smpl as secondary skin.

Re: 0.8.0 B3 Retry fails often with Glitter night skin

Posted: December 7th, 2015, 4:43 am
by shypike
Likely a bug in the web framework we use, which might be triggered by the full disk.
Is the primary disk ever full? Is all administrative data located on the primary disk?
It's looking for a connection to the History database.
I assume you download history isn't lost?

Re: 0.8.0 B3 Retry fails often with Glitter night skin

Posted: February 12th, 2016, 11:48 pm
by clowg
I'm getting the same error I believe. This is on a Windows system that has just been upgraded from 7.2 to 1.0.0.RC1 today.

ERROR 13/02/2016 17:34 [13/Feb/2016:17:34:48] HTTP
Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 670, in respond
File "cherrypy\lib\encoding.pyo", line 217, in __call__
File "cherrypy\_cpdispatch.pyo", line 61, in __call__
File "sabnzbd\interface.pyo", line 447, in tapi
File "sabnzbd\api.pyo", line 105, in api_handler
File "sabnzbd\api.pyo", line 496, in _api_history
File "sabnzbd\api.pyo", line 1611, in del_hist_job
AttributeError: '_ThreadData' object has no attribute 'history_db'

Re: 0.8.0 B3 Retry fails often with Glitter night skin

Posted: February 13th, 2016, 2:31 am
by shypike
clowg wrote:I'm getting the same error I believe. This is on a Windows system that has just been upgraded from 7.2 to 1.0.0.RC1 today.
Does this happen when you remove something from History or when you retry a failed job?
Does it always happen or only some of the times?

Re: 0.8.0 B3 Retry fails often with Glitter night skin

Posted: February 14th, 2016, 5:12 am
by clowg
It happens when I first load the UI - at logon. I havent performed any actions other than loggin in. Here is what happened when I started the browser up a few minutes ago:

14/02/2016 00:11 [14/Feb/2016:00:11:06] HTTP
Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 670, in respond
File "cherrypy\lib\encoding.pyo", line 217, in __call__
File "cherrypy\_cpdispatch.pyo", line 61, in __call__
File "sabnzbd\interface.pyo", line 447, in tapi
File "sabnzbd\api.pyo", line 105, in api_handler
File "sabnzbd\api.pyo", line 496, in _api_history
File "sabnzbd\api.pyo", line 1611, in del_hist_job
AttributeError: '_ThreadData' object has no attribute 'history_db'
ERROR 14/02/2016 00:10 [14/Feb/2016:00:10:58] HTTP
Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 670, in respond
File "cherrypy\lib\encoding.pyo", line 217, in __call__
File "cherrypy\_cpdispatch.pyo", line 61, in __call__
File "sabnzbd\interface.pyo", line 447, in tapi
File "sabnzbd\api.pyo", line 105, in api_handler
File "sabnzbd\api.pyo", line 496, in _api_history
File "sabnzbd\api.pyo", line 1611, in del_hist_job
AttributeError: '_ThreadData' object has no attribute 'history_db'

G.

Re: 0.8.0 B3 Retry fails often with Glitter night skin

Posted: February 14th, 2016, 7:38 am
by shypike
OK, this is a race condition.
I know enough to start looking for a solution.

Re: 0.8.0 B3 Retry fails often with Glitter night skin

Posted: February 19th, 2016, 4:17 pm
by shypike
Should be fixed in the next release.

Re: 0.8.0 B3 Retry fails often with Glitter night skin

Posted: February 19th, 2016, 6:22 pm
by clowg
Cheers :)

Re: 0.8.0 B3 Retry fails often with Glitter night skin

Posted: March 2nd, 2016, 3:39 pm
by clowg
Just incase this helps, here are the errors that showed up when I opened the web interface this morning:

02/03/2016 23:39 [02/Mar/2016:23:39:36] Traceback (most recent call last):
File "cherrypy\_cpwsgi.pyo", line 180, in trap
File "cherrypy\_cpwsgi.pyo", line 99, in __call__
File "cherrypy\_cpwsgi.pyo", line 410, in tail
File "cherrypy\_cpwsgi.pyo", line 234, in __init__
File "cherrypy\_cpwsgi.pyo", line 306, in run
File "cherrypy\_cptree.pyo", line 132, in get_serving
File "cherrypy\process\wspbus.pyo", line 223, in publish
ChannelFailures: TypeError("'NoneType' object has no attribute '__getitem__'",)
ERROR 02/03/2016 23:39 [02/Mar/2016:23:39:36] ENGINE Error in 'acquire_thread' listener >
Traceback (most recent call last):
File "cherrypy\process\wspbus.pyo", line 205, in publish
File "cherrypy\process\plugins.pyo", line 703, in acquire_thread
File "cherrypy\process\wspbus.pyo", line 223, in publish
ChannelFailures: TypeError("'NoneType' object has no attribute '__getitem__'",)
ERROR 02/03/2016 23:39 [02/Mar/2016:23:39:36] ENGINE Error in 'start_thread' listener
Traceback (most recent call last):
File "cherrypy\process\wspbus.pyo", line 205, in publish
File "sabnzbd\__init__.pyo", line 202, in connect_db
File "sabnzbd\database.pyo", line 53, in get_history_handle
File "sabnzbd\database.pyo", line 83, in __init__
File "sabnzbd\database.pyo", line 104, in connect
TypeError: 'NoneType' object has no attribute '__getitem__'
ERROR 02/03/2016 23:39 SQL Command Failed, see log
ERROR 02/03/2016 23:39 [02/Mar/2016:23:39:35] Traceback (most recent call last):
File "cherrypy\_cpwsgi.pyo", line 180, in trap
File "cherrypy\_cpwsgi.pyo", line 99, in __call__
File "cherrypy\_cpwsgi.pyo", line 410, in tail
File "cherrypy\_cpwsgi.pyo", line 234, in __init__
File "cherrypy\_cpwsgi.pyo", line 306, in run
File "cherrypy\_cptree.pyo", line 132, in get_serving
File "cherrypy\process\wspbus.pyo", line 223, in publish
ChannelFailures: TypeError("'NoneType' object has no attribute '__getitem__'",)
ERROR 02/03/2016 23:39 [02/Mar/2016:23:39:35] ENGINE Error in 'acquire_thread' listener >
Traceback (most recent call last):
File "cherrypy\process\wspbus.pyo", line 205, in publish
File "cherrypy\process\plugins.pyo", line 703, in acquire_thread
File "cherrypy\process\wspbus.pyo", line 223, in publish
ChannelFailures: TypeError("'NoneType' object has no attribute '__getitem__'",)
ERROR 02/03/2016 23:39 [02/Mar/2016:23:39:35] ENGINE Error in 'start_thread' listener
Traceback (most recent call last):
File "cherrypy\process\wspbus.pyo", line 205, in publish
File "sabnzbd\__init__.pyo", line 202, in connect_db
File "sabnzbd\database.pyo", line 53, in get_history_handle
File "sabnzbd\database.pyo", line 83, in __init__
File "sabnzbd\database.pyo", line 104, in connect
TypeError: 'NoneType' object has no attribute '__getitem__'
ERROR 02/03/2016 23:39 SQL Command Failed, see log
ERROR 02/03/2016 23:39 [02/Mar/2016:23:39:34] Traceback (most recent call last):
File "cherrypy\_cpwsgi.pyo", line 180, in trap
File "cherrypy\_cpwsgi.pyo", line 99, in __call__
File "cherrypy\_cpwsgi.pyo", line 410, in tail
File "cherrypy\_cpwsgi.pyo", line 234, in __init__
File "cherrypy\_cpwsgi.pyo", line 306, in run
File "cherrypy\_cptree.pyo", line 132, in get_serving
File "cherrypy\process\wspbus.pyo", line 223, in publish
ChannelFailures: TypeError("'NoneType' object has no attribute '__getitem__'",)
ERROR 02/03/2016 23:39 [02/Mar/2016:23:39:34] ENGINE Error in 'acquire_thread' listener >
Traceback (most recent call last):
File "cherrypy\process\wspbus.pyo", line 205, in publish
File "cherrypy\process\plugins.pyo", line 703, in acquire_thread
File "cherrypy\process\wspbus.pyo", line 223, in publish
ChannelFailures: TypeError("'NoneType' object has no attribute '__getitem__'",)
ERROR 02/03/2016 23:39 [02/Mar/2016:23:39:34] ENGINE Error in 'start_thread' listener
Traceback (most recent call last):
File "cherrypy\process\wspbus.pyo", line 205, in publish
File "sabnzbd\__init__.pyo", line 202, in connect_db
File "sabnzbd\database.pyo", line 53, in get_history_handle
File "sabnzbd\database.pyo", line 83, in __init__
File "sabnzbd\database.pyo", line 104, in connect
TypeError: 'NoneType' object has no attribute '__getitem__'
ERROR 02/03/2016 23:39 SQL Command Failed, see log