Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't register unix user account in Tensorhive version 0.3.6 #325

Closed
William-Le88 opened this issue Feb 6, 2021 · 5 comments
Closed

Can't register unix user account in Tensorhive version 0.3.6 #325

William-Le88 opened this issue Feb 6, 2021 · 5 comments
Assignees
Labels
bug dependencies Pull requests that update a dependency file in-progress

Comments

@William-Le88
Copy link

Running Tensorhive, the Tensorhive web Apps require user login which I created unix username earlier in "tensorhive init" command. However, I could not login into the webpage and it thrown error
{"detail": "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", "status": 500, "title":"Internal Server error", "type": "about: blank"}

I tried to registered other unix username by clicking in register button: It shown me another error of: "Unprivileged".

Please find my environment as below:
OS distribution, version: Ubuntu 18.04 LTS
Tensorhive: version 0.3.6
GPU model:

Your environment

List relevant info:

  • OS distribution, version
  • TensorHive and API version
  • Versions of installed dependencies
  • Essential hardware specs (GPU model)

Steps to reproduce

Tell us how to reproduce this issue from the ground up.

![image](https://user-images.githubusercontent.com/78297811/107117969-e7f81b00-68b8-11eb-89de-dd8647a10df6.png)
![image](https://user-images.githubusercontent.com/78297811/107117972-ededfc00-68b8-11eb-91c3-7db0f94238c1.png)

Thank you!
Best Regards,
William Le
@roscisz roscisz self-assigned this Feb 8, 2021
@roscisz
Copy link
Owner

roscisz commented Feb 8, 2021

Hi William!

Thank you for reaching out.

I see two separate issues here:

  1. Logging in as the user created at the tensorhive init stage should work out of the box. The Internal Server Error 500 indeed indicates that something's wrong, but details are missing. Do you see any errors in TH log (in the console where you execute tensorhive) upon login trial?

  2. Another user can indeed register themselves without the help of the admin. To do this, they need an OS account on the first server that is monitored by TH and follow the instructions given in the registration form: perform authentication by copying the TH public key to .ssh/authorized_keys:

image

@William-Le88
Copy link
Author

Dear Roscisz,

Thank you so much for kind support.
Please let me add further input based on your request for your help to exam the issues.

  1. Issue 1: Please find the attached of screen capture when I run: "tensorhive init", then "tensorhive test" and "tensorhive". So far, I did not encounter any issue during this time. Then from picture4 to picture7 when I tried to log in into the host where tensorhive installed at IP: 10.0.2.15, it shown error as on picture4.
    Picture6
    Picture7
    Picture1
    Picture2
    Picture3
    Picture4
    Picture5

  2. Issue 2: " they need an OS account on the first server that is monitored by TH". My current environment where TH is installed in virtualbox Ubuntu 18.04 LTS to monitor the GPU server ( server 1) with NVIDIA with ndvida-smi supported. In this case, may I know the user need an OS account on the first server which is this server 1? May I know how I can create a OS account in this 1st server?
    I have copied the key and paste it into ~/.ssh/authorized_keys of this server1.

Thank you very much.
Yours Sincerely,
William Le

@roscisz
Copy link
Owner

roscisz commented Feb 9, 2021

Thank you for your input!

Looks like it has been a single issue after all.

This seems to be related to a bug in pyjwt. Could you kindly:

  • report the pyjwt version in your environment (pip show pyjwt | grep Version)
  • try fixing the issue by pip install pyjwt==1.7.1 in the Python environment, where TH is executed

Regarding my vague "first monitored server" statement, what I mean is the first host entry in the ~/.config/TensorHive/hosts_config.ini file. In your case it seems to be the GPU server (server 1).

Just to clarify, the user created by tensorhive init does not need neither to register, nor configure the authorized_keys. They might use the authorized_keys entry to fully utilize the Task Execution module, but it is not required in order to log in. The register button is for those users who already have accounts on the monitored host, but have no TH account yet. They can authorize themselves using the authorized_keys entry and set their own password, so that admin doesn't have to do this.

Hope it helps, looking forward to your results.

@William-Le88
Copy link
Author

Dear Roscisz,

Thank you very much for kind support.
01_check pyjwt version
02 1_check pyjwt=1 7 1 version
02_install pyjwt=1 7 1 version
successfully login to Tensorhive web Apps

I have checked the pyjwt version as well, and it was 2.0.1 version as the picture "01_check pyjwt version".
After this, I tried to follow your suggestion to install pyjwt==1.7.1 and it was successfully installed the version 1.7.1 as picture "02.1_check pyjwt==1.7.1".

I have been able to login into Tensorhive web page now. Thank you so much.

The next step we would like to do is to develop the Web Apps with updating the UI/UX for the GPU management tool using the API sets provided from Tensorhive, please allow me to seek for your help if there is any possible issues we encounter.

Thank you very much again.

Best Regards,
William

@roscisz roscisz added bug dependencies Pull requests that update a dependency file labels Feb 11, 2021
@roscisz
Copy link
Owner

roscisz commented Feb 11, 2021

Dear William,

Excellent, I'm glad it helped! I will keep this issue open, until we pin pyjwt to 1.7.1 in the upcoming release.

I am also glad to hear that you plan some modifications in webapp. I would suggest to review the list of UI-related issues to see if we already consider similar developments and potentially increase their priority or formulate new issues.

@filschod is currently working on UI improvements, mainly related to the task execution module, in this branch. It might be beneficial to synchronize the work.
Also, if this is feasible, I would be glad to invite you as a collaborator, so that the development can be shared on GitHub and discussed with the team on Slack. Reach me at if you are interested.

Best,
PR

Repository owner deleted a comment from William-Le88 Feb 16, 2021
Repository owner deleted a comment from William-Le88 Feb 16, 2021
roscisz added a commit that referenced this issue Mar 11, 2021
@roscisz roscisz closed this as completed in 229557e Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file in-progress
Projects
None yet
Development

No branches or pull requests

2 participants