botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
68 stars 83 forks source link

Bots disappear when BP_PRODUCTION is true #655

Closed epaminond closed 4 years ago

epaminond commented 5 years ago

When setting environment variable BP_PRODUCTION=true bots disappear from my admin panel (even though they are there):

image

And I'm getting a warning in the console:

Some bots have been deleted from the disk but are still referenced in your workspaces.json file. Please delete them from workspaces.json to get rid of this warning. [botname1, botname2]

It seems the reason is in ghost-syncing not working correctly:

And since bots directory doesn't get synced, system won't know about them. But if I set up syncing of the bot, it takes very long for system to start and it takes a lot of disk space, so I can't see a quick fix for that and I think ghost syncing needs to be refined.

P.S. This might be connected to botpress/v12#638


I am running: official binary 11.7.2. My OS is: ubuntu. NodeJS version is 10.15.

juanpmarin commented 5 years ago

I'm experimenting the same issue, I had to migrate the entire database from environment to environment, the Ghost service is not working

rndlaine commented 5 years ago

Once /data is synced to the database, you're only option to edit it is pull it back to your filesystem with the bp pull command. See https://botpress.io/docs/manage/versions/

Now about /bots not getting synced, I'm not sure how it can happen. We'll have to verify.

apmurali commented 5 years ago

Same issue here on 11.7.1, while using ./bp -p. I am deploying it on Heroku. production_deletion

juanpmarin commented 5 years ago

@rndlaine this issue is still happening on every version you release, is it possible to try to reproduce it and fix it ? If you want I can prepare a example to reproduce it

allardy commented 4 years ago

There was a bunch of changes to BPFS and sync recently, and we fixed an issue with desynchronized data https://github.com/botpress/botpress/releases/tag/v12.1.4. Closing issue