server-1 | /home/node/server/node_modules/@coko/server/node_modules/config/lib/config.js:821
server-1 | throw new Error('Config file ’ + fullFilename + ’ cannot be read. Error code is: '+e2.code
server-1 | ^
server-1 |
server-1 | Error: Config file /home/node/server/config/local.js cannot be read. Error code is: EISDIR. Error message is: EISDIR: illegal operation on a directory, read
server-1 | at util.parseFile (/home/node/server/node_modules/@coko/server/node_modules/config/lib/config.js:821:13)
server-1 | at /home/node/server/node_modules/@coko/server/node_modules/config/lib/config.js:644:26
server-1 | at Array.forEach ()
server-1 | at util.loadFileConfigs (/home/node/server/node_modules/@coko/server/node_modules/config/lib/config.js:643:16)
server-1 | at new Config (/home/node/server/node_modules/@coko/server/node_modules/config/lib/config.js:116:27)
server-1 | at Object. (/home/node/server/node_modules/@coko/server/node_modules/config/lib/config.js:1492:31)
server-1 | at Module._compile (node:internal/modules/cjs/loader:1256:14)
server-1 | at Module._extensions…js (node:internal/modules/cjs/loader:1310:10)
server-1 | at Module.load (node:internal/modules/cjs/loader:1119:32)
server-1 | at Module._load (node:internal/modules/cjs/loader:960:12)
Hi @augu
Thanks for reaching out. Can you let us know what steps lead to this error and give us more information on your local set up so we can help.
Thanks
Dione
no changes made to anything. ran setup.sh in kdk and ran docker compose up
Hi @augu
Try adding a local.js file in the config folder in the root of the kdk. It is used to configure the export templates and Lulu integration (optional).
// config/local.js
module.exports = {
templates: [
{
label: "slategrey",
url: "https://gitlab.coko.foundation/coko-org/products/ketty/ketty-templates/slategrey.git",
assetsRoot: "dist",
supportedNoteTypes: ["footnotes"],
},
{
label: "significa",
url: "https://gitlab.coko.foundation/coko-org/products/ketty/ketty-templates/significa.git",
assetsRoot: "dist",
supportedNoteTypes: ["footnotes"],
},
{
label: "bikini",
url: "https://gitlab.coko.foundation/coko-org/products/ketty/ketty-templates/bikini.git",
assetsRoot: "dist",
supportedNoteTypes: ["footnotes"],
},
{
label: "vanilla",
url: "https://gitlab.coko.foundation/coko-org/products/ketty/ketty-templates/vanilla.git",
assetsRoot: "dist",
default: true,
supportedNoteTypes: ["footnotes"],
},
{
label: "atosh",
url: "https://gitlab.coko.foundation/coko-org/products/ketty/ketty-templates/atosh.git",
assetsRoot: "dist",
supportedNoteTypes: ["footnotes"],
},
{
label: "eclypse",
url: "https://gitlab.coko.foundation/coko-org/products/ketty/ketty-templates/eclypse.git",
assetsRoot: "dist",
supportedNoteTypes: ["footnotes"],
},
{
label: "logical",
url: "https://gitlab.coko.foundation/coko-org/products/ketty/ketty-templates/logical.git",
assetsRoot: "dist",
supportedNoteTypes: ["footnotes"],
},
{
label: "tenberg",
url: "https://gitlab.coko.foundation/coko-org/products/ketty/ketty-templates/tenberg.git",
assetsRoot: "dist",
supportedNoteTypes: ["footnotes"],
},
],
// the following is optional
integrations: {
lulu: {
baseAPIURL: "",
redirectUri: "http://localhost:4000/provider-redirect/lulu",
tokenUrl: "",
clientId: "",
loginUrl: "",
projectBaseUrl: "",
},
},
};
We’re planning a better way to manage the templates, but for now you’ll have to keep them in this config file. I will add it to the README of the kdk.
I hope this helps,
Grigor
1 Like