logout error

46 views
Skip to first unread message

Johanna Roussel

unread,
Jun 2, 2016, 6:48:43 AM6/2/16
to weblabdeusto
Hey!

I ran a simple weblabdeusto example (without apache and mysql database). I wanted to logout and got a http 500 error:



After I stopped it with strg - C and tried to rerun it I got the following message:



What can I do?



By the way: In which folder are the avatar images stored?

Best,
Hanna
Auto Generated Inline Image 1
Auto Generated Inline Image 2

Pablo Orduña

unread,
Jun 2, 2016, 8:40:06 AM6/2/16
to weblab...@googlegroups.com
Hi!

Hmm... we've tried to reproduce this error in Windows and Linux, but always got 302 message. By default, the log of the errors of the web interface are stored in logs/admin_app.log Could you check if you have something like:

Exception on /weblab/logout [GET]
Traceback (most recent call last):
  File "/home/nctrun/.virtualenvs/weblab.dev/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/nctrun/.virtualenvs/weblab.dev/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
[...]

and some error message, and copy it here?


Regarding the avatar images, they're not stored anywhere, we just rely on gravatar. The problem is that if you're running on localhost, they will not be displayed, since gravatar will default to a URL like http://localhost/weblab/web/avatar/admin/ , which will use gravatar again. We expected to support more authentication mechanisms (Facebook, LinkedIn, Google, etc., and default them to one of those).

Best,


--
You received this message because you are subscribed to the Google Groups "weblabdeusto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weblabdeusto...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Pablo Orduña ( http://morelab.deusto.es/p/pablo-orduna/ )
MORElab - Envisioning Future Internet (http://morelab.deusto.es)
WebLab-Deusto - (http://weblab.deusto.es)

Johanna Roussel

unread,
Jun 2, 2016, 9:05:29 AM6/2/16
to weblabdeusto
yes, error message is:

  File "C:\Python27\lib\site-packages\weblabdeusto-5.0-py2.7.egg\weblab\admin\web\admin_views.py", line 2124, in _to_nvd3
    total_data['values'].append([int(date.strftime('%s') + '000'), total_values[date]])
ValueError: Invalid format string

Exception on /weblab/logout [GET]
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\flask-0.10.1-py2.7.egg\flask\app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Python27\lib\site-packages\flask-0.10.1-py2.7.egg\flask\app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Python27\lib\site-packages\flask-0.10.1-py2.7.egg\flask\app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Python27\lib\site-packages\flask-0.10.1-py2.7.egg\flask\app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Python27\lib\site-packages\flask-0.10.1-py2.7.egg\flask\app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "C:\Python27\lib\site-packages\weblabdeusto-5.0-py2.7.egg\weblab\core\new_server.py", line 689, in weblab_wrapper
    result = func(*args, **kwargs)
  File "C:\Python27\lib\site-packages\weblabdeusto-5.0-py2.7.egg\weblab\core\new_server.py", line 558, in wrapped
    return func(*args_dict, **kwargs_dict)
  File "C:\Python27\lib\site-packages\weblabdeusto-5.0-py2.7.egg\weblab\core\webclient\view_login.py", line 97, in logout
    weblab_api.api.logout()
  File "C:\Python27\lib\site-packages\weblabdeusto-5.0-py2.7.egg\voodoo\log.py", line 411, in wrapped_function
    result = f(*args,**kargs)
  File "C:\Python27\lib\site-packages\weblabdeusto-5.0-py2.7.egg\weblab\core\new_server.py", line 558, in wrapped
    return func(*args_dict, **kwargs_dict)
  File "C:\Python27\lib\site-packages\weblabdeusto-5.0-py2.7.egg\weblab\core\server.py", line 335, in logout
    reservation_session = server_instance._reservations_session_manager.get_session(SessionId(reservation_id))
  File "C:\Python27\lib\site-packages\weblabdeusto-5.0-py2.7.egg\voodoo\sessions\manager.py", line 111, in get_session
    return self.gateway.get_session(sess_id.id)
  File "C:\Python27\lib\site-packages\weblabdeusto-5.0-py2.7.egg\voodoo\sessions\memory.py", line 167, in get_session
    session = self.get_session_obj(session_id)
  File "C:\Python27\lib\site-packages\weblabdeusto-5.0-py2.7.egg\voodoo\sessions\memory.py", line 160, in get_session_obj
    "Session not found: " + session_id
SessionNotFoundError: Session not found: 888fe314-bb1c-4014-9096-512a155837b9

Exception on /weblab/logout [GET]
Traceback (most recent call last):


Pablo Orduña

unread,
Jun 2, 2016, 9:22:54 AM6/2/16
to weblab...@googlegroups.com
Hi,

The first error (Invalid format string) was fixed with you one or two weeks ago, so it's a matter of upgrading (unless that error is also that old). 

For the second one (SessionNotFoundError), is somewhat strange, I've checked that it hasn't happened to us in tests neither in production. What "weblab-admin.py create " params did you use? Is it a simple single-core one, or there are more than one core?

In any case, I just changed that behaviour to capture that exception and keep the rest of the logout process. I also changed the behavior so now this type of error are also reported in the same console, so you can see them easily. So upgrade the system to  make sure it works.

Best,

--
You received this message because you are subscribed to the Google Groups "weblabdeusto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weblabdeusto...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Johanna Roussel

unread,
Jun 2, 2016, 9:43:10 AM6/2/16
to weblabdeusto
It's a single core. I didn't use any extra parameters as far as i remember.
I will upgrade and check if it happens again (the error appeared two times so far)

Pablo Orduña

unread,
Jun 3, 2016, 3:18:57 AM6/3/16
to weblab...@googlegroups.com
Hi again,

I forgot to answer to the "already running" error! The problem is that WebLab is still "alive" in other process. If this happens, run: "weblab-admin.py stop example", to try to tell it to be killed. If it still happens, run the Windows Task Manager and make sure that the python processes are finished.

Best,

Johanna Roussel

unread,
Jun 10, 2016, 9:01:46 AM6/10/16
to weblabdeusto
Hey!

I again had the "already running" error. What I did:
I had a browser open with the dummy experiment. After I left the experiment, I stopped the server by pressing "enter" in the terminal ("Stopping servers..."). It took a while, then http 500 errors appeared:



and I cannot start the weblab instance again.
In my task manager there is no python.exe process which I could kill.
I can restart weblab just by killing cmd.exe (closing cmd.exe doesn't work either).


By the way: Today I pulled the newest commits (It was June, 2nd where I pulled the last time)
Then I did: "python setup.py install"
and

"weblab-admin.py upgrade example"

The message "Already upgraded to the latest version" appeared.

Changes in which folders have an effect on upgrading a sample instance like my "example" of weblab?

Best,
Hanna
Auto Generated Inline Image 1

Pablo Orduña

unread,
Jun 10, 2016, 9:14:28 AM6/10/16
to weblab...@googlegroups.com
Hi,

WebLab-Deusto "thinks" that there is another WebLab-Deusto running if there is a "weblab.pid" file in the directory. It seems that weblab-admin stop is not always deleting this file and it should. I'll take a futher look at it.

Regarding the second question: weblab-admin.py upgrade example can always be run safely, but most of the times it is not necessary. However, if it was necessary it would tell you whenever you run "weblab-admin.py start example", so don't worry about it. The changes that require it are not in a particular directory, but changes in the database (e.g., we add a new table), or in the format (e.g., whenever we remove some configuration variable from the laboratory server and move them to the database or to the core server, we create a script that modifies the configuration variables and move it so the process is automated and it does not require any effort from the administrator).

Best,
Reply all
Reply to author
Forward
0 new messages