question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System installation

See original GitHub issue

Hello! We are trying to test helios in a virtual enviroment, but we have some implementation problems. We surpassed the installation process, but now we can’t login to the system. We tried password & google authentication methods and we get the following python error responses:

Using google oauth:

Request Method: | GET
-- | --
http://example.com:8080/auth/after/?code=4/SQ***dIr0&scope=email+profile+https://www.googleapis.com/auth/userinfo.profile+https://www.googleapis.com/auth/userinfo.email
1.8.19
KeyError
'names'
/home/admin/helios-server-master/helios_auth/auth_systems/google.py in get_user_info_after_auth, line 57
/home/admin/helios-server-master/venv/bin/python
2.7.9
['/home/admin/helios-server-master',  '/home/admin/helios-server-master/venv/lib/python2.7',  '/home/admin/helios-server-master/venv/lib/python2.7/plat-x86_64-linux-gnu',  '/home/admin/helios-server-master/venv/lib/python2.7/lib-tk',  '/home/admin/helios-server-master/venv/lib/python2.7/lib-old',  '/home/admin/helios-server-master/venv/lib/python2.7/lib-dynload',  '/usr/lib/python2.7',  '/usr/lib/python2.7/plat-x86_64-linux-gnu',  '/usr/lib/python2.7/lib-tk',  '/home/admin/helios-server-master/venv/local/lib/python2.7/site-packages']
Lun, 13 May 2019 09:39:35 -0700

Using Password auth (creating user in postgres DB with plain and md5 token column entry as password):

Request Method: | POST
-- | --
http://example.com:8080/auth/password/login
1.8.19
KeyError
'password'
/home/admin/helios-server-master/helios_auth/auth_systems/password.py in password_check, line 33
/home/admin/helios-server-master/venv/bin/python
2.7.9
['/home/admin/helios-server-master',  '/home/admin/helios-server-master/venv/lib/python2.7',  '/home/admin/helios-server-master/venv/lib/python2.7/plat-x86_64-linux-gnu',  '/home/admin/helios-server-master/venv/lib/python2.7/lib-tk',  '/home/admin/helios-server-master/venv/lib/python2.7/lib-old',  '/home/admin/helios-server-master/venv/lib/python2.7/lib-dynload',  '/usr/lib/python2.7',  '/usr/lib/python2.7/plat-x86_64-linux-gnu',  '/usr/lib/python2.7/lib-tk',  '/home/admin/helios-server-master/venv/local/lib/python2.7/site-packages']
Lun, 13 May 2019 09:43:31 -0700

I need some advice in the correct steps to get helios working

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
klebermachadocommented, May 9, 2020

Hello @c-urrutia!

I don’t know if this helps you, but I had the same error using google oauth, the problem was only because I hadn’t enabled the People API on console.developers.

3reactions
crasscommented, Jan 24, 2020

Interesting to know that password auth is not recommended. It would be nice to have known that from a comment in the settings.py file. Regardless, I’ve been using password authentication and I haven’t had any issues. @c-urrutia, the reason you are getting a KeyError for password is because your user does not have the password key defined in the json object in the info column for that user.

I use the following command in a shell script where the shell variables ${USER_EMAIL}, ${USER_NAME}, and ${USER_PASS} are set. You can change admin_p to False if you do not want to create an admin account.

echo "from helios_auth.models import User; \
User.objects.create(user_type='password',user_id='${USER_EMAIL}', \
info={'name':'${USER_NAME}','password':'${USER_PASS}'}, admin_p=True)" | \
python manage.py shell

Also, I suspect your google authentication exception is coming from this line. This suggests that either google’s auth api has changed or you’re not sending valid authentication info. I don’t use google auth, so I’m not sure if it still works, but @shirlei suggests that it is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation (computer programs) - Wikipedia
Installation (or setup) of a computer program is the act of making the program ready for execution. Installation refers to the particular configuration...
Read more >
System installation definition and meaning - Collins Dictionary
System installation definition: If you install a piece of equipment , you fit it or put it somewhere so that it is ready......
Read more >
System installation planning - IBM
Thorough planning ensures that you have everything to meet all the prerequisites for the successful setup and installation of the system.
Read more >
System Installation (GNU Guix Reference Manual)
This section explains how to install Guix System on a machine. Guix, as a package manager, can also be installed on top of...
Read more >
C H A P T E R 1 - Operating System Installation Overview
1. Set up the display environment. · 2. Erase the primary boot disk. · 3. Set up the BIOS. · 4. Install the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found