grandma-collaboration / skyportal_grandma_dev

Little Git Repo to keep track of the work done by the A4 ESILV TEAM
2 stars 0 forks source link

Carla Amat - Installing SkyPortal again #19

Closed Carla802 closed 1 year ago

Carla802 commented 1 year ago

Hi @Theodlz !

I know this issue is surprising because I completed the installation, but I now have a new problem. 😫 Looking at your response under @lydie10's last opened issue, I found out that we weren't supposed to clone the skyportal repository, but our own fork instead. However, as it was asked in the Setup tutorial,

Clone the SkyPortal repository and start a new virtual environment. git clone https://github.com/skyportal/skyportal.git

I had cloned the skyportal repository and launched my local SkyPortal on it. Other members from the team are also concerned by this mistake. I then deleted my old clone and its virtual environment, and created a new one (of my fork this time).

I thought I simply had to redo the Launch steps to run SkyPortal on this new git clone, so that's what I did, but I now have errors occuring on the make load_demo_data command. However, the make run and make log commands are working fine, and the Welcome page of SkyPortal is displayed on my localhost page.

Here are my logs : log.zip

And here is the error I get when I run make load_demo_data. image

It upsets me a little bit to struggle again on the installation, as I already had a functional SkyPortal on my old git clone, and I don't understand why it won't work on the new on...

I am really hoping you can help me with this error so I can get back as soon as possible at the Adding new features tutorial, which I was almost finished with !

Thank you for your help 🙏

mcoughlin commented 1 year ago

@Carla802 Looks like it is working, you just need to run

make db_clear

since your database already has information in it.

Then you can run

make load_demo_data

Carla802 commented 1 year ago

Thank you for your quick response @mcoughlin !

I had already tried make db_clear, then make db_init and finally run & make load_demo_data, but it still wasn't working.

I just tried make db_clear, run and make load_demo_data and this error still appears : image

Everything else seems to be working fine, I don't know what the problem is.

mcoughlin commented 1 year ago

@Carla802 Ah yeah indeed. What does

make log

say at the same time? Looks like the gcn_events are giving particular issues.

Carla802 commented 1 year ago

Here are the logs when make load_demo_data fails : image

mcoughlin commented 1 year ago

@Carla802 But further up I assume there are failures (maybe)? Usually we see long stack traces.

Carla802 commented 1 year ago

No from what I see it is mostly warnings and other stuffs... The only weird message I see is the SQL one on the last screenshot :

image

image

image

mcoughlin commented 1 year ago

@Carla802 super interesting... so what does the home page look like? I wonder if its a weird issue where you just run out of memory at some point.

Theodlz commented 1 year ago

Hi @Carla802 . Well at least SkyPortal does start up, so that's not too bad of a problem!

Out of curiosity. What happens if you re run make load_demo_data right after if failed? You will naturally see a bunch of errors saying that stuff already exists in the DB, but you might succeed in uploading the rest that failed the first time. (No you dont do any make db_clear or whatever in between, no restarting the app, just giving it a second to finish what it was doing an you rerun the command again)

Carla802 commented 1 year ago

@mcoughlin The home page of SkyPortal looks like this :

image

@Theodlz When I try to re run make load demo data after it failed, my logs look like this at the same time :

image

image

And the make load demo data fails again but this time with more listed files... 😢

image

I don't know what to try anymore...

Theodlz commented 1 year ago

Hi @Carla802 ! Sorry I didn't get the chance to look at your issue yet. I'll have a good luck at it in an hour from now!

mcoughlin commented 1 year ago

@Carla802 and if you click on the google login?

Theodlz commented 1 year ago

Ok so. Looking at your first failure:

Second failure (when you do it again right after it failed, without restarting the app or anything):

Now, could you share with me your config? CPU, RAM, GPU, SSD, or HDD? Your setup too (VM, WSL, Proper Linux install aka Dual BOOT)

Last but not least, please discuss this with @Nayru12 and @ManonFlt which I talked with on Zoom today. They might be able to help you, especially Manon who successfully started SkyPortal.

Also, they need to share details about the tutorial (errors and missing steps) that I told them about.

Maybe we could find a day to have a quick zoom (sooner the better, tomorrow maybe?) so I can help you more easily?

Carla802 commented 1 year ago

@mcoughlin @Theodlz To respond to both of you, when I click on the google login of the home page, it changes to a complete blank page.

Then, for the second failure, it seems that the gcn_events and earthquake couldn't be added, as you can see here. image

Here is my config : CPU : AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx 2.10 GHz Installed RAM : 8,00 Go (5,94 Go usable) GPU : AMD Radeon(TM) Vega 8 Graphics SSD : 117 Go and 19,6 Go free

I am running SkyPortal on a WSL(2).

Great to hear that you helped them finish the installation ! They told us about the zoom meeting but I wasn't available at 11am. I will explain my issue to them to see if they can help me. They also explained to us what was wrong about the Adding features tutorial.

Yes it would be great to have a quick meeting, maybe you will see more clearly my issue. Tomorrow morning sounds good to me ! At 11am (french time) ?

Theodlz commented 1 year ago

Sounds good to me @Carla802 . I'll send you a zoom link at 11AM.

Don't hesitate to tell others that need help to join

Carla802 commented 1 year ago

My SkyPortal is running and the make load demo data finally worked ! It was mostly a RAM issue, I increased it and now it is working again. Thanks again for all your help, I can move on to the tutorial now. 😄