python - CherryPy server running on windows gives random locking error -


i'm running cherrypy server using file based sessions. when run server on mac works fine, when run on windows machine have problems.

i have web app makes many requests (~50) server on page load. on 1 or more of requests i'll below error message @ server. doesn't happen same request each time, seems random. loads without problems @ all.

14-07-2015 10:42:16 : info    : (cp server thread-81) : (_cplogging          ) : 127.0.0.1 - - [14/jul/2015:10:42:16] "get /static/scripts/jquery-2.1.4.min.js http/1.1" 500 823 "http://127.0.0.1:8099/" "mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/43.0.2357.132 safari/537.36" 14-07-2015 10:42:16 : info    : (cp server thread-80) : (_cplogging          ) : 127.0.0.1 - - [14/jul/2015:10:42:16] "get /static/scripts/moment.js http/1.1" 304 - "http://127.0.0.1:8099/" "mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/43.0.2357.132 safari/537.36" 14-07-2015 10:42:16 : info    : (cp server thread-84) : (_cplogging          ) : 127.0.0.1 - - [14/jul/2015:10:42:16] "get /static/scripts/jquery.datetimepicker.js http/1.1" 500 823 "http://127.0.0.1:8099/" "mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/43.0.2357.132 safari/537.36" 14-07-2015 10:42:16 : error   : (cp server thread-81) : (_cplogging          ) : [14/jul/2015:10:42:16]   traceback (most recent call last):   file "c:\python34\lib\site-packages\cherrypy\lib\lockfile.py", line 127, in _unlock_file     msvcrt.locking(self.fp.fileno(), msvcrt.lk_unlck, 1) permissionerror: [errno 13] permission denied  during handling of above exception, exception occurred:  traceback (most recent call last):   file "c:\python34\lib\site-packages\cherrypy\_cprequest.py", line 104, in run     hook()   file "c:\python34\lib\site-packages\cherrypy\_cprequest.py", line 63, in __call__     return self.callback(**self.kwargs)   file "c:\python34\lib\site-packages\cherrypy\lib\sessions.py", line 797, in close     sess.release_lock()   file "c:\python34\lib\site-packages\cherrypy\lib\sessions.py", line 554, in release_lock     self.lock.release()   file "c:\python34\lib\site-packages\cherrypy\lib\lockfile.py", line 92, in release     self._unlock_file()   file "c:\python34\lib\site-packages\cherrypy\lib\lockfile.py", line 129, in _unlock_file     raise unlockerror(self.fp.name) cherrypy.lib.lockfile.unlockerror: unable unlock 'c:\\users\\user\\pycharmprojects\\my-project\\sessions\\session-3c95d3c281e1dff3fad8e059fa4115922262b390.lock' 14-07-2015 10:42:16 : error   : (cp server thread-81) : (_cplogging          ) : [14/jul/2015:10:42:16]   traceback (most recent call last):   file "c:\python34\lib\site-packages\cherrypy\lib\lockfile.py", line 127, in _unlock_file     msvcrt.locking(self.fp.fileno(), msvcrt.lk_unlck, 1) permissionerror: [errno 13] permission denied  during handling of above exception, exception occurred:  traceback (most recent call last):   file "c:\python34\lib\site-packages\cherrypy\_cptree.py", line 144, in release_serving     req.close()   file "c:\python34\lib\site-packages\cherrypy\_cprequest.py", line 506, in close     self.hooks.run('on_end_request')   file "c:\python34\lib\site-packages\cherrypy\_cprequest.py", line 114, in run     raise exc   file "c:\python34\lib\site-packages\cherrypy\_cprequest.py", line 104, in run     hook()   file "c:\python34\lib\site-packages\cherrypy\_cprequest.py", line 63, in __call__     return self.callback(**self.kwargs)   file "c:\python34\lib\site-packages\cherrypy\lib\sessions.py", line 797, in close     sess.release_lock()   file "c:\python34\lib\site-packages\cherrypy\lib\sessions.py", line 554, in release_lock     self.lock.release()   file "c:\python34\lib\site-packages\cherrypy\lib\lockfile.py", line 92, in release     self._unlock_file()   file "c:\python34\lib\site-packages\cherrypy\lib\lockfile.py", line 129, in _unlock_file     raise unlockerror(self.fp.name) cherrypy.lib.lockfile.unlockerror: unable unlock 'c:\\users\\user\\pycharmprojects\\my-project\\sessions\\session-3c95d3c281e1dff3fad8e059fa4115922262b390.lock' 14-07-2015 10:42:16 : error   : (cp server thread-84) : (_cplogging          ) : [14/jul/2015:10:42:16]   traceback (most recent call last):   file "c:\python34\lib\site-packages\cherrypy\lib\lockfile.py", line 127, in _unlock_file     msvcrt.locking(self.fp.fileno(), msvcrt.lk_unlck, 1) permissionerror: [errno 13] permission denied  during handling of above exception, exception occurred:  traceback (most recent call last):   file "c:\python34\lib\site-packages\cherrypy\_cprequest.py", line 104, in run     hook()   file "c:\python34\lib\site-packages\cherrypy\_cprequest.py", line 63, in __call__     return self.callback(**self.kwargs)   file "c:\python34\lib\site-packages\cherrypy\lib\sessions.py", line 797, in close     sess.release_lock()   file "c:\python34\lib\site-packages\cherrypy\lib\sessions.py", line 554, in release_lock     self.lock.release()   file "c:\python34\lib\site-packages\cherrypy\lib\lockfile.py", line 92, in release     self._unlock_file()   file "c:\python34\lib\site-packages\cherrypy\lib\lockfile.py", line 129, in _unlock_file     raise unlockerror(self.fp.name) cherrypy.lib.lockfile.unlockerror: unable unlock 'c:\\users\\user\\pycharmprojects\\my-project\\sessions\\session-3c95d3c281e1dff3fad8e059fa4115922262b390.lock' 

i've checked , 3c95d3c281e1dff3fad8e059fa4115922262b390 value of cookie stored in browser.

any ideas why happening , how can fix it?


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -