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

Inès Perez - Installing SkyPortal #10

Closed
Nayru12 opened this issue Oct 26, 2022 · 20 comments
Closed

Inès Perez - Installing SkyPortal #10

Nayru12 opened this issue Oct 26, 2022 · 20 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Nayru12
Copy link
Collaborator

Nayru12 commented Oct 26, 2022

Hi ! 😃

I am currently still trying to install SkyPortal and I am stuck as the make load_demo_data part, which give me the error : expected HTTP 200, received 503. Trying again.
I haven't give up yet and it is a new error, so maybe I will find my answer by myself soon ahah.

Otherwise, I didn't run into noticeable issues while following the beginning of the tutorial : I had a lot of errors at every step, but it was mostly packages that I didn't have on my computer and had to install.

Thank you for your help @Theodlz ! 🔥

@Nayru12 Nayru12 added good first issue Good for newcomers help wanted Extra attention is needed labels Oct 26, 2022
@Nayru12 Nayru12 self-assigned this Oct 26, 2022
@Theodlz
Copy link
Contributor

Theodlz commented Oct 26, 2022

Hi @Nayru12
This happens if the app cant be reached, meaning it probably isnt running properly.
Are you able to connect to it via the frontend, and did you monitor the logs when you ran make run using make log to see what was going on?

I think you might have not completed the "starting the app" part yet.

@Nayru12
Copy link
Collaborator Author

Nayru12 commented Oct 26, 2022

It was exactly what I was going to add in my Issue : when i run make run using make log, I obtain this error in the
make log

[17:29:54 app_3] Could not connect to migration manager on port [64501]
[17:29:54 app_3] Database not migrated, or could not verify; trying again in 8s

Moreover, we saw with Céline and Laura that when I run service postgresql status, I obtain "active (exited)",

postgre postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor pr>
Active: active (exited) since Wed 2022-10-26 16:42:49 EDT; 48min ago
Main PID: 18873 (code=exited, status=0/SUCCESS)

@Theodlz
Copy link
Contributor

Theodlz commented Oct 26, 2022

This error is pretty irrelevant here. Its an error regarding the service used to migrate the db (when the db schema has changed and needs to be updated). We'll talk about that in the future, but it does not necessarily mean that your app has an issue connecting to the db (i have it all the time too, and it does not cause any issue).

@Theodlz
Copy link
Contributor

Theodlz commented Oct 26, 2022

Just send me a .zip of your logs so I can have a look at them.

@Nayru12
Copy link
Collaborator Author

Nayru12 commented Oct 27, 2022

log.zip
Here is my logs !

@Theodlz
Copy link
Contributor

Theodlz commented Oct 27, 2022

I only had a quick look on my phone (not very practical lol) caus its late here, but actually your app did start correctly multiple times!

So I'm wondering why make load_demo_data isn't working for you.

Best thing would be to do some live debugging (on zoom) one of these days if the error persists.

Please dont forget to be patient. You can only run make load_demo_data WHILE the app the running ok?
So run the app in a terminal, keep it open so to not kill the app , wait few minutes (anywhere between 2 and 5 depending on your pc) and run make load_demo_data in a seperate terminal.

If you still cant get it to work, please tell me when you would be available for a zoom call.

Good luck!

@Theodlz
Copy link
Contributor

Theodlz commented Nov 2, 2022

Hi @Nayru12, any updates/progress? Please have a look at other people's issues too (including closed issues, which are not shown by default but you can change that easily) as they might have ran into the same issues as you did.

@Nayru12
Copy link
Collaborator Author

Nayru12 commented Nov 3, 2022

Hi @Theodlz, I have tried several more times to get sp to work, but I'm still at the same point, even with the help of others.
As you suggested last time, if it's ok with you, I would like to make a zoom call to help get things work. As I am on vacation, I am available every day of the week at any time.

@Theodlz
Copy link
Contributor

Theodlz commented Nov 3, 2022

Sure thing! What about tomorrow or this weekend during your morning in France? Maybe others need help too. If they do, please coordinate yourself with them so we can have a grouped call.

@Nayru12
Copy link
Collaborator Author

Nayru12 commented Nov 3, 2022

Thanks ! For the moment, Manon also wants to participate in the call and I am asking the others to see who is also interested !

@Nayru12
Copy link
Collaborator Author

Nayru12 commented Nov 3, 2022

Manon and I are both available this Saturday at 11 am FR time, is it good for you?

@Theodlz
Copy link
Contributor

Theodlz commented Nov 5, 2022

Yes @Nayru12 ! Sorry I didn't confirm here on git only during our meeting 2 days ago.

Is it still ok for you guys?

@Nayru12
Copy link
Collaborator Author

Nayru12 commented Nov 5, 2022

Hi @Theodlz, yes it is still ok for us ! :)

@Theodlz
Copy link
Contributor

Theodlz commented Nov 6, 2022

Hi @Nayru12 . Let me know when you make any progress. And also which option you choose in the end: WSL2 or DUAL BOOT (i recommend dual boot which your machine specs)

@Nayru12
Copy link
Collaborator Author

Nayru12 commented Nov 7, 2022

Hi @Theodlz. In the end, I choose WSL2.
Right now, I am the make db_init command, but suddenly I have encoutered a new issue : my pip command does not work anymore, I have the error : TypeError: deprecated() got an unexpected keyword argument name

@mcoughlin
Copy link

aws/aws-cli#7325

Looks like a pyOpenSSL issue.

You could try their suggestion:

pip uninstall pyOpenSSL

or similar? And see if you can get it to build?

@Nayru12
Copy link
Collaborator Author

Nayru12 commented Nov 7, 2022

Thank you Michael !
I tried it and it did not work (still the same Error)

@mcoughlin
Copy link

Hmmm maybe @Theodlz has particular thoughts here. It's definitely a weird one!

@Theodlz
Copy link
Contributor

Theodlz commented Nov 7, 2022

I consistently get that error when my version of pip is inferior to the one required by SkyPortal. Please verify that you are in the virtualenv and yry upgrading pip.
If that doesnt do the trick, delete your virtualenv and create a new one (it should be pretty quick).

If the error persists, please tell me and I'll do some more research in the morning.

@Nayru12
Copy link
Collaborator Author

Nayru12 commented Nov 7, 2022

That was the problem. I was in my virtualenv but my pip was not upgraded (and when I upgraded it I was not in my virtualenv...).

So, everything is working now ! I tried to run make load_demo_data and also to change users and it works !
Thank you @Theodlz and Michael ! :) 🥳

(And for now, my computer seems to support quite well the demo version of sp : it doesn't lag at all with WSL unlike with the VM)

@Nayru12 Nayru12 moved this from Stuck/Need Help to Done in ESILV A4 Team - SkyPortal for GRANDMA (ICARE) Nov 7, 2022
@Nayru12 Nayru12 closed this as completed Nov 7, 2022
@Adiman007 Adiman007 moved this from Done to Skyportal Setup in ESILV A4 Team - SkyPortal for GRANDMA (ICARE) Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
Development

No branches or pull requests

3 participants