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

bootstrap.js error : EACCES: permission denied, mkdir '/kongadata/' #77

Closed
rjpalermo1 opened this issue Jul 9, 2017 · 3 comments
Closed

Comments

@rjpalermo1
Copy link

I followed the git clone method install using Docker Kong/Cassandra containers and was getting:

error: Bootstrap encountered an error: (see below)
error: Error: EACCES: permission denied, mkdir '/kongadata/'
at /Users/Me/Develop/Kong/konga/config/bootstrap.js:19:16

in the bootstrap.js I had to remove the leading / from kongadata in the process.env.STORAGE_PATH

    // Create Konga data directories
    var dirs = [( process.env.STORAGE_PATH || 'kongadata/' ), ( process.env.STORAGE_PATH || 'kongadata/' )+ 'uploads']
@pantsel
Copy link
Owner

pantsel commented Jul 9, 2017

Hi @rjpalermo1 .

Instead of removing the leading '/', you could define the env variable STORAGE_PATH as you can see in the code you posted.

That way you won't have any problems syncing with the repository.

The leading '/' is there because the /kongadata directory is used as a docker volume in docker builds which is also the recommended way to run Konga.

The caveat is that it throws the EACCES error when you're building from source and Konga has no permissions to the specified directory, but again, all those things are configurable via env vars so no problem there.

This is something I need to document out in README as well so that it becomes more understandable.

Cheers, and thanks for the feedbak!

@pantsel pantsel changed the title bootstrap.js error bootstrap.js error : EACCES: permission denied, mkdir '/kongadata/' Jul 9, 2017
@rjpalermo1
Copy link
Author

Got it! Great stuff. You have a day job or freelancer?

Closing...

@pantsel
Copy link
Owner

pantsel commented Jul 9, 2017

Working as a software engineer in a software house and doing a bit of freelancing as well.

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

No branches or pull requests

2 participants