Task #8421
closed
Setup matrix voyager bot for ungleich
Added by Nico Schottelius about 4 years ago.
Updated 11 months ago.
Description
Steps¶
- Created VM 26036
- Added VM into DNS: matrix-voyager-bot.ungleich.ch
- Install packages
- Building the bot locally
- Created ldap customer "bonvoyage"
alpine try:
apk add npm sqlite-dev
ubuntu try:
root@ubuntu:~# useradd -m bonvoyage
apt install git npm
Getting the access token via curl:
[17:31] bridge:~% curl -XPOST -d '{"type":"m.login.password", "user":"@bonvoyage:ungleich.ch", "password":"'$(pass ldap/bonvoyage)'"}' "https://ungleich.matrix.ungleich.cloud/_matrix/client/r0/login"
- Description updated (diff)
Fails for compiling sqlite3 on both ubuntu and alpine; updating dependencies
Error:
bonvoyage@ubuntu:~/matrix-voyager-bot/config$ NODE_ENV=production node index.js
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '/home/bonvoyage/matrix-voyager-bot/config/index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
bonvoyage@ubuntu:~/matrix-voyager-bot/config$
- Starting in right dierctly works
- Status changed from In Progress to Rejected
Also available in: Atom
PDF