System installation
See original GitHub issueHello! 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:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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 aKeyError
forpassword
is because your user does not have thepassword
key defined in the json object in theinfo
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 changeadmin_p
toFalse
if you do not want to create an admin account.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.