botpress / v12

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

Permission denied botpress.config.schema.json #1683

Closed jonathborg closed 1 year ago

jonathborg commented 2 years ago

Describe the bug Permission denied when botpress-server starts

To Reproduce

Path: botpress/examples/docker-compose Try to start with docker compose up -d using docker-compose-community.yml

Environment:

Error starting botpress
botpress-server  | VError: [Disk Storage] Error upserting file "data/botpress.config.schema.json": EACCES: permission denied, open '/botpress/data/botpress.config.schema.json'
botpress-server  |     at DiskStorageDriver.upsertFile (/snapshot/botpress/packages/bp/dist/core/bpfs/drivers/disk-driver.js) {
botpress-server  |   jse_shortmsg: '[Disk Storage] Error upserting file "data/botpress.config.schema.json"',
botpress-server  |   jse_cause: [Error: EACCES: permission denied, open '/botpress/data/botpress.config.schema.json'] {
botpress-server  |     errno: -13,
botpress-server  |     code: 'EACCES',
botpress-server  |     syscall: 'open',
botpress-server  |     path: '/botpress/data/botpress.config.schema.json'
botpress-server  |   },
botpress-server  |   jse_info: {}
botpress-server  | }
henriquebol commented 2 years ago

I had the same error, but it worked here. I just followed the guidelines of release 12.30.0

https://github.com/botpress/botpress/releases/tag/v12.30.0