Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Cannot view project stories #696

Open
johnmbotanic opened this issue Aug 3, 2020 · 15 comments
Open

Cannot view project stories #696

johnmbotanic opened this issue Aug 3, 2020 · 15 comments
Assignees

Comments

@johnmbotanic
Copy link

Describe the bug
Here is the report:

Version: 0.25.8
Path: /project/bf/stories
Trace: TypeError: Cannot read property 'isExpanded' of undefined
    in TypeError: Cannot read property 'isExpanded' of undefined
    in a
    in div
    in t
    in div
    in ForwardRef
    in l
    in div
    in div
    in t
    in div
    in t
    in l
    in P
    in ForwardRef
    in ForwardRef
    in withRouter(Component)
    in Connect(withRouter(Component))
    in Suspense
    in c
    in Unknown
    in div
    in Unknown
    in div
    in t
    in div
    in t
    in div
    in div
    in W
    in ForwardRef
    in ForwardRef
    in Connect(Component)
    in c
    in Unknown
    in RouterContext
    in Router
    in o
    in c
    in t
    in DocumentTitle
    in SideEffect(DocumentTitle)
    in U

To Reproduce
Steps to reproduce the behavior:

  1. Login and go to Stories for ChitCat.
  2. Select your project.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
    MacOS 10.15.6
  • Browser [e.g. chrome, safari]
    Brave
  • Version [e.g. 22]
    1.11.104

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Happened as soon as I installed the latest version of botfront and tried to login.

@MatthieuJnon
Copy link
Contributor

Can you go into settings => more settings => misc and let us know the migration status ?

@titapuspitasari911
Copy link

titapuspitasari911 commented Aug 5, 2020

I have the same problem. after I installed botfront then I did the registration. after going through stage 3 of the page below that I got.
Capture222

That page show and when i check metero's terminal there is no error.
Captursssse

I instaled it on OS Ubuntu

@MatthieuJnon
Copy link
Contributor

Are you at liberty to share this project with us to help us diagnose the issue, feel free to export your botfront project and send it to us at hi@botfront.io.

@johnmbotanic
Copy link
Author

Screen Shot 2020-08-06 at 5 14 17 PM

This is what I find on that screen. Unfortunately I cannot share the project source but will try to help debug the issue. Thanks

@znat
Copy link
Contributor

znat commented Aug 7, 2020

Can you try with 0.25.9?

@johnmbotanic
Copy link
Author

I tried upgrading, the process went normally but now every time I try to start botfront I see this.

Screen Shot 2020-08-09 at 9 23 10 PM

I've tried uninstalling and reinstalling, no change. Have done botfront down and the botfront up, no change. botfront killall, no change.

This is one of the errors in the logs, not sure it is relevant.

Screen Shot 2020-08-09 at 9 26 22 PM

@MatthieuJnon MatthieuJnon assigned znat and unassigned GuillaumeTech Aug 10, 2020
@znat
Copy link
Contributor

znat commented Aug 10, 2020

@johnmbotanic let's try to separate the issues

  1. Crash in stories: if you create a brand new projet with botfront init do you still have the crash with stories?
  2. About your database problem:
  • Under which version was your project created?
  • Can you access your database with another client (e.g. Compass)
  1. About the logs being relevant:
    Do you see any error related to botfront? botfront logs | grep "botfront-app"?
    Is it possible that Botfront is acually running on http://localhost:8000 ?

@johnmbotanic
Copy link
Author

Thanks for the reply. I created a new project with botfront init using 0.25.9 and when I login I get a crash in stories but it has a new stack trace that isn't like the previous.

Version: 0.25.9
Path: /project/bf/stories
Trace: TypeError: Failed to fetch
in TypeError: Failed to fetch
in Unknown
in Suspense
in c
in Unknown
in div
in Unknown
in div
in t
in div
in t
in div
in div
in W
in ForwardRef
in ForwardRef
in Connect(Component)
in c
in Unknown
in RouterContext
in Router
in o
in c
in t
in DocumentTitle
in SideEffect(DocumentTitle)
in U

@znat
Copy link
Contributor

znat commented Aug 11, 2020

That is simply because you didn't set all environment variables. Check the installation instructions in the docs

@johnmbotanic
Copy link
Author

johnmbotanic commented Aug 11, 2020

Thanks, I forgot to set my root_url after I created the new project.

For people that stumble onto this thread and wonder about the environment variables, look here. Setup

It's set, now this is the error I see.

Version: 0.25.9
Path: /project/bf/stories
Trace: TypeError: Cannot read property 'type' of undefined
in TypeError: Cannot read property 'type' of undefined
in ForwardRef
in l
in div
in div
in t
in div
in t
in l
in P
in ForwardRef
in ForwardRef
in withRouter(Component)
in Connect(withRouter(Component))
in Suspense
in c
in Unknown
in div
in Unknown
in div
in t
in div
in t
in div
in div
in W
in ForwardRef
in ForwardRef
in Connect(Component)
in c
in Unknown
in RouterContext
in Router
in o
in c
in t
in DocumentTitle
in SideEffect(DocumentTitle)
in U

BTW - I did an update of the botfront source right before I ran so it should be current. @znat If I send the project source to the email (hi@botfront.io) will you have access to it?

@znat
Copy link
Contributor

znat commented Aug 11, 2020

Yes, I have access to that mailbox.
How did you install Botfront? On a VM somewhere? Cloud? Kubernetes cluster? Can you give more context?

@johnmbotanic
Copy link
Author

johnmbotanic commented Aug 11, 2020

It's running on an amazon instance, used NPM to do the install. I will send more detail in an email, thanks!

Edit: email sent.

@GuillaumeTech
Copy link
Contributor

Hi @johnmbotanic,
Do you remember from which version of botfront you upgraded when you originally encountered the issue ?
Also by any chance are you able to send a dump of db to hi@botfront.io ?
you can use this command to do so mongodump -d dbname -o dumpname -u username -p password

@GuillaumeTech
Copy link
Contributor

GuillaumeTech commented Aug 17, 2020

Hi @johnmbotanic,
I've been able to see the stories of your project by re-running the migrations from the 6th one.

To do so, connect to mongodb and in the migration collection, there should be only one document, change the version to 6. Also make sure that locked is set to false, otherwise migrations won't run.
Then stop botfront and start it again, the migrations will run and you should be able to access the stories screen.

with the cli that give you ( run each line separately) :

mongo "MONGO_URL"
use bf
db.migrations.update({_id:"control"}, {$set: { version:6, locked: false}})

Assuming your are using the default configuration for mongo, you can find your MONGO_URL in the botfront.yml file of your project in the .botfront folder. Just replace the @mongo:27017 by @localhost:27017

If you are looking for an ui to do those change, you can use mongo compass, it's pretty straightforward.

@johnmbotanic
Copy link
Author

Hi, Sorry for the delay. I will give it a try and update here. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants