usnistgov / SpectrumBrowser

ITL
12 stars 11 forks source link

sometimes when I click on the spectrogram, I get logged out and errors in the system log #142

Closed jkubNTIA closed 9 years ago

jkubNTIA commented 9 years ago

I was showing a spectrogram for the radar data, FS0714_173_5275.dat.

Sometimes I can click on a point on the spectrogram and everything is fine, other times I get logged out an errors in the system log. Here is my stack trace: Log Message : URL = http://localhost:8000/spectrumbrowser/generateSpectrum/Norfolk/1408356000/22482/user-142677544136968829682?subBandMinFrequency=3450500000&subBandMaxFrequency=3649500000 Problem checking sessionKey user-142677544136968829682 Unexpected error: <class 'werkzeug.exceptions.Forbidden'> (<class 'werkzeug.exceptions.Forbidden'>, <Forbidden '403: Forbidden'>, <traceback object at 0x7fb54c17d878>) Traceback (most recent call last): File "/home/jkub/Documents/SpectrumBrowser/flask/flaskr.py", line 1613, in generateSpectrumWorker abort(403) File "/usr/local/lib/python2.7/dist-packages/werkzeug/exceptions.py", line 576, in call raise self.mapping[code](*args, kwargs) Forbidden: 403: Forbidden Unexpected error: <class 'werkzeug.exceptions.Forbidden'> (<class 'werkzeug.exceptions.Forbidden'>, <Forbidden '403: Forbidden'>, <traceback object at 0x7fb54c17da70>) Traceback (most recent call last): File "/home/jkub/Documents/SpectrumBrowser/flask/flaskr.py", line 160, in testcase_decorator return original_function(_args, _kwargs) File "/home/jkub/Documents/SpectrumBrowser/flask/flaskr.py", line 1613, in generateSpectrumWorker abort(403) File "/usr/local/lib/python2.7/dist-packages/werkzeug/exceptions.py", line 576, in call raise self.mapping[code](args, kwargs) Forbidden: 403: Forbidden updated session ID expireTime {'Status': 'OK', 'powervstime': u'http://localhost:8000/generated/user-142677544136968829682/Norfolk.1408356000.3596.640625.power.png'} getFile() /generated/user-142677544136968829682/Norfolk.1408356000.3596.640625.power.png generated/user-142677544136968829682/Norfolk.1408356000.3596.640625.power.png Log Message : Image loaded Log Message : URL = http://localhost:8000/spectrumbrowser/logOut/user-142677544136968829682 Logging off user-142677544136968829682

ranganathanm commented 9 years ago

Hum.. Unfortuantely there is no stack trace printout in authentication.py. Can you put a traceback.print_exc() where the exception is caught in authentication.py around line 69 and try to reproduce the problem.

You'll need to import traceback

Thanks

Ranga


From: jkub01 notifications@github.com Sent: Thursday, March 19, 2015 10:33 AM To: usnistgov/SpectrumBrowser Subject: [SpectrumBrowser] sometimes when I click on the spectrogram, I get logged out and errors in the system log (#142)

I was showing a spectrogram for the radar data, FS0714_173_5275.dat.

Sometimes I can click on a point on the spectrogram and everything is fine, other times I get logged out an errors in the system log. Here is my stack trace: Log Message : URL = http://localhost:8000/spectrumbrowser/generateSpectrum/Norfolk/1408356000/22482/user-142677544136968829682?subBandMinFrequency=3450500000&subBandMaxFrequency=3649500000 Problem checking sessionKey user-142677544136968829682 Unexpected error: (, , ) Traceback (most recent call last): File "/home/jkub/Documents/SpectrumBrowser/flask/flaskr.py", line 1613, in generateSpectrumWorker abort(403) File "/usr/local/lib/python2.7/dist-packages/werkzeug/exceptions.py", line 576, in call raise self.mappingcode<_args,%20__kwargs> Forbidden: 403: Forbidden Unexpected error: (, , ) Traceback (most recent call last): File "/home/jkub/Documents/SpectrumBrowser/flask/flaskr.py", line 160, in testcase_decorator return original_function(args, *kwargs) File "/home/jkub/Documents/SpectrumBrowser/flask/flaskr.py", line 1613, in generateSpectrumWorker abort(403) File "/usr/local/lib/python2.7/dist-packages/werkzeug/exceptions.py", line 576, in call raise self.mappingcode<_args,%20**kwargs> Forbidden: 403: Forbidden updated session ID expireTime {'Status': 'OK', 'powervstime': u'http://localhost:8000/generated/user-142677544136968829682/Norfolk.1408356000.3596.640625.power.png'} getFile() /generated/user-142677544136968829682/Norfolk.1408356000.3596.640625.power.png generated/user-142677544136968829682/Norfolk.1408356000.3596.640625.power.png Log Message : Image loaded Log Message : URL = http://localhost:8000/spectrumbrowser/logOut/user-142677544136968829682 Logging off user-142677544136968829682

Reply to this email directly or view it on GitHubhttps://github.com/usnistgov/SpectrumBrowser/issues/142.

jkubNTIA commented 9 years ago

Rather than just doing a 'purge' of the data which leaves the 'spectrumdb' collection, I instead did a rm spectrumdb.* from the disk. Now I cannot reproduce this either, even if I purge and add my data again. Something must have been left around in the database. Ranga will look at a better way of storing the data in one collection per sensor instead of all the data in the same collection.