61 lines
4.1 KiB
Markdown
61 lines
4.1 KiB
Markdown
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.<anonymous> (/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) |