turt2live / matrix-sticker-manager

A service to help people create their own sticker packs (for Dimension)
GNU General Public License v3.0
46 stars 11 forks source link

can't start docker #18

Closed hellEVIL-13 closed 5 years ago

hellEVIL-13 commented 5 years ago

(node:1) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/etc/stickerbot/data/bot.json' at Object.openSync (fs.js:438:3) at writeFileSync (fs.js:1189:35) at FileSync.read (/app/node_modules/lowdb/adapters/FileSync.js:46:9) at LodashWrapper.db.read (/app/node_modules/lowdb/lib/main.js:32:21) at module.exports (/app/node_modules/lowdb/lib/main.js:51:13) at new SimpleFsStorageProvider (/app/node_modules/matrix-bot-sdk/lib/storage/SimpleFsStorageProvider.js:9:19) at /app/lib/index.js:34:22 at Generator.next () at fulfilled (/app/lib/index.js:4:58) at process._tickCallback (internal/process/next_tick.js:68:7) (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

turt2live commented 5 years ago

That looks like you haven't specified the volume for it to use

hellEVIL-13 commented 5 years ago

And where can I get it? Or how to create an example?

turt2live commented 5 years ago

The full commands for Docker are in the readme. The "building your own" steps also cover the default config and appservice registration.

hellEVIL-13 commented 5 years ago

This I saw, not start because of this no such file or directory, open '/etc/stickerbot/data/bot.json' Where to get this file?

turt2live commented 5 years ago

You'll need to specify the data directory in the config to be /data

hellEVIL-13 commented 5 years ago

I understood this, I did not understand what this file should contain

turt2live commented 5 years ago

Change dataPath in your config to /app/storage

hellEVIL-13 commented 5 years ago

Hurray works, many thanks !!!