Project

General

Profile

Task #8421

Setup matrix voyager bot for ungleich

Added by Nico Schottelius 9 months ago. Updated 9 months ago.

Status:
In Progress
Priority:
Normal
Target version:
-
Start date:
09/06/2020
Due date:
% Done:

0%

Estimated time:
PM Check date:

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" 

History

#1

Updated by Nico Schottelius 9 months ago

  • Description updated (diff)
#2

Updated by Nico Schottelius 9 months ago

Fails for compiling sqlite3 on both ubuntu and alpine; updating dependencies

#3

Updated by Nico Schottelius 9 months ago

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$ 
#4

Updated by Nico Schottelius 9 months ago

  • Starting in right dierctly works

Also available in: Atom PDF