From a308131f3b466724e33c470f0de6cc920744ca70 Mon Sep 17 00:00:00 2001 From: fleetside72 Date: Sun, 26 Jan 2020 23:26:03 -0500 Subject: [PATCH] notes on irssi and mastodon search issues --- irc.md | 11 ++++++++++ mastodon.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 irc.md create mode 100644 mastodon.md diff --git a/irc.md b/irc.md new file mode 100644 index 0000000..a03dccc --- /dev/null +++ b/irc.md @@ -0,0 +1,11 @@ +https://freenode.net/kb/answer/registration + +basic registration info + +irssi client + +use irssi -c irc.freenode.net -n ptbridge to start + +/window show 2 to get to another chat which seems like it is different from where you type commands + +alt + 2 changes to window 2 \ No newline at end of file diff --git a/mastodon.md b/mastodon.md new file mode 100644 index 0000000..7f58c86 --- /dev/null +++ b/mastodon.md @@ -0,0 +1,61 @@ +issue with mastodon-streaming service. + +``` +Jan 19 23:05:26 r710 node[17762]: /home/mastodon/live/node_modules/@clusterws/cws/dist/index.js:34 +Jan 19 23:05:26 r710 node[17762]: throw e.message = e.message + " check './node_modules/@clusterws/cws/build_log.txt' for post install build logs", +Jan 19 23:05:26 r710 node[17762]: ^ +Jan 19 23:05:26 r710 node[17762]: Error: The module '/home/mastodon/live/node_modules/@clusterws/cws/dist/cws_linux_79.node' +Jan 19 23:05:26 r710 node[17762]: was compiled against a different Node.js version using +Jan 19 23:05:26 r710 node[17762]: NODE_MODULE_VERSION 72. This version of Node.js requires +Jan 19 23:05:26 r710 node[17762]: NODE_MODULE_VERSION 79. Please try re-compiling or re-installing +Jan 19 23:05:26 r710 node[17762]: the module (for instance, using `npm rebuild` or `npm install`). check './node_modules/@clusterws/cws/build_log.txt' for post install build logs +Jan 19 23:05:26 r710 node[17762]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1194:18) +Jan 19 23:05:26 r710 node[17762]: at Module.load (internal/modules/cjs/loader.js:993:32) +Jan 19 23:05:26 r710 node[17762]: at Function.Module._load (internal/modules/cjs/loader.js:892:14) +Jan 19 23:05:26 r710 node[17762]: at Module.require (internal/modules/cjs/loader.js:1033:19) +Jan 19 23:05:26 r710 node[17762]: at require (internal/modules/cjs/helpers.js:72:18) +Jan 19 23:05:26 r710 node[17762]: at /home/mastodon/live/node_modules/@clusterws/cws/dist/index.js:32:16 +Jan 19 23:05:26 r710 node[17762]: at Object. (/home/mastodon/live/node_modules/@clusterws/cws/dist/index.js:37:3) +Jan 19 23:05:26 r710 node[17762]: at Module._compile (internal/modules/cjs/loader.js:1144:30) +Jan 19 23:05:26 r710 node[17762]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10) +Jan 19 23:05:26 r710 node[17762]: at Module.load (internal/modules/cjs/loader.js:993:32) +``` +per [node webiste](https://nodejs.org/en/download/releases/) node module version 72 NodeJS v 12.14.1 and npm version 6.13.4 + +live/streaming hold the top level code. +if I try to run `node index.js` and hardcode the REDIS password, end up with postgres authentication error due to the connection module not supporting SCRAM-SHA-256 + +changed that back: real issue was that node was reverting to the latest version instead of LTS when starting the service since NVM is only per session. +apt n module makes a permanent version change, used that instead + +so trust fixes a manual run of index.js, but the having that available on port 4000 doesn't help the search function. + + +now it is clear that search issue doesn't have anything to do with resolved streaming API service. +shoudl try service maybe? + +found this in the issues: +https://github.com/tootsuite/mastodon/issues/5765 + + +This issue notes a web domain setting, grep of mastodon directory gives: +``` +./live/config/initializers/1_hosts.rb:web_host = ENV.fetch('WEB_DOMAIN') { host } +./live/lib/mastodon/premailer_webpack_strategy.rb: asset_host = ENV['CDN_HOST'] || ENV['WEB_DOMAIN'] || ENV['LOCAL_DOMAIN'] +./live/.env.nanobox:# WEB_DOMAIN=mastodon.example.com +./live/.env.nanobox:# The asset host must allow cross origin request from WEB_DOMAIN or LOCAL_DOMAIN +./live/.env.nanobox:# if WEB_DOMAIN is not set. For example, the server may have the +./live/.env.nanobox:# The attachment host must allow cross origin request from WEB_DOMAIN or +./live/.env.nanobox:# LOCAL_DOMAIN if WEB_DOMAIN is not set. For example, the server may have the +./live/.env.production.sample:# WEB_DOMAIN=mastodon.example.com +./live/.env.production.sample:# The asset host must allow cross origin request from WEB_DOMAIN or LOCAL_DOMAIN +./live/.env.production.sample:# if WEB_DOMAIN is not set. For example, the server may have the +./live/.env.production.sample:# The attachment host must allow cross origin request from WEB_DOMAIN or +./live/.env.production.sample:# LOCAL_DOMAIN if WEB_DOMAIN is not set. For example, the server may have the +``` + +notes in env.production.example say not to set `WEB_DOMAIN` + + + +posted a question on [discourse](https://discourse.joinmastodon.org/t/search-return-404/2490) \ No newline at end of file