Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming crash randomly / ws.on('error', function (e) #2114

Closed
2 tasks done
valentin2105 opened this issue Apr 18, 2017 · 1 comment
Closed
2 tasks done

Streaming crash randomly / ws.on('error', function (e) #2114

valentin2105 opened this issue Apr 18, 2017 · 1 comment
Labels
bug Something isn't working

Comments

@valentin2105
Copy link
Contributor

valentin2105 commented Apr 18, 2017

Hi
I encounter random crash with Streaming process,

I'm in latest release (v1.2) with latest Node installed (via the official Dockerfile).

Here is the error (who pop and crash streaming < every hours).

verb 4b881d6f-34b7-45d1-b757-fd95d76e96f5 Starting stream from timeline:21512 for 21512
/mastodon/streaming/index.js:299
    ws.on('error', function (e) {
                                ^

Error: not opened
    at WebSocket.ping (/mastodon/node_modules/ws/lib/WebSocket.js:309:13)
    at Timeout._onTimeout (/mastodon/streaming/index.js:223:42)
    at ontimeout (timers.js:380:14)
    at tryOnTimeout (timers.js:244:5)
    at Timer.listOnTimeout (timers.js:214:5)

npm ERR! Linux 4.4.0-72-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "start"
npm ERR! node v6.10.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! mastodon@ start: `babel-node ./streaming/index.js --presets es2015,stage-2`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the mastodon@ start script 'babel-node ./streaming/index.js --presets es2015,stage-2'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mastodon package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     babel-node ./streaming/index.js --presets es2015,stage-2
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs mastodon
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls mastodon
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /mastodon/npm-debug.log

> mastodon@ start /mastodon
> babel-node ./streaming/index.js --presets es2015,stage-2

Any idea why I got this ?

For now, I load balance between two streaming process, so, no downtime, but It's a bit problematic.

Thanks.


  • I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • This bug happens on a tagged release and not on master (If you're a user, don't worry about this).
@wxcafe wxcafe added bug Something isn't working priority - high labels Apr 20, 2017
@valentin2105
Copy link
Contributor Author

Solved with 1.2.2. (run fine from 2hours)

ClearlyClaire pushed a commit to ClearlyClaire/mastodon that referenced this issue May 7, 2023
When cancelling a reply, the language was still set to the language of the replied to toot.

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants