Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.07k stars 1.51k forks source link

MaxListenersExceededWarning crash on YunoHost installation #4023

Closed changemenemo closed 3 years ago

changemenemo commented 3 years ago

Describe the current behavior https://github.com/YunoHost-Apps/peertube_ynh/issues/229

Steps to reproduce:

nothing specific

Describe the expected behavior

Well there should not be this kind of message if it's built with the right node modules?

Additional information

Sorry if I don't put all the informations in this bug report, but if I have it, since it's a pretty straightforward installation through yunohost and that I didn't change a lot of things besides the transcoding threads number and things like that, many people should have it in their journalctl

Plus I'm trying to debug a lot of things here which are causing by peertube apparently on my setup, so can't really put you all the specifics. But to know what's this peertube installation is made of just look at: https://github.com/YunoHost-Apps/peertube_ynh and you should have all the information about nodejs etc.

tell me if you need something more specific :)

Chocobozzz commented 3 years ago

Hello,

Please paste server logs leading to the crash

changemenemo commented 3 years ago

Here is the start of this :

https://github.com/YunoHost-Apps/peertube_ynh/issues/229

What else do you need ? If you point to me the exact situation to the information you need then I can bring it to you

Chocobozzz commented 3 years ago

I would need server logs above the lines you paste on yunohost repo. Also, did you reproduce your issue since last week?

changemenemo commented 3 years ago

It's the case at each reboot. It was a copy paste from the start of the service, not the installation nor the use of it in any way. Does peertube has its own log ? Just found it but it's not the right logs. It's in journalctl There is nothing else with an error but I will copy paste it if you want to later when I m in front of a computer

EDIt:

May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443 peertube-plugin-livechat] 2021-05-06 12:39:24.523 info: Changing http-bind port for null May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443 peertube-plugin-livechat] 2021-05-06 12:39:24.641 info: Prosody is not activated, we wont launch it May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.649 info: Added locale ca-ES of plugin peertube-plugin-livechat. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.655 info: Added locale fr-FR of plugin peertube-plugin-livechat. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.657 info: Added locale eo of plugin peertube-plugin-livechat. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.661 info: Added locale eu-ES of plugin peertube-plugin-livechat. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.664 info: Added locale pl-PL of plugin peertube-plugin-livechat. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.670 info: Added locale it-IT of plugin peertube-plugin-livechat. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.671 info: Registering plugin or theme peertube-plugin-background-play. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.676 info: Add plugin peertube-plugin-background-play CSS to global file. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.676 info: Cleaning HTML cache. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.676 info: Registering plugin or theme peertube-theme-black-red. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.688 info: Registering plugin or theme peertube-theme-framasoft. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.693 info: Registering plugin or theme peertube-theme-ryg. May 06 12:39:24 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:24.698 info: Registering plugin or theme peertube-plugin-auth-ldap. May 06 12:39:25 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:25.126 info: Add plugin peertube-plugin-auth-ldap CSS to global file. May 06 12:39:25 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:25.127 info: Cleaning HTML cache. May 06 12:39:25 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:25.127 info: Registering plugin or theme peertube-theme-bittube-dark-mode. May 06 12:39:25 vigilian-consulting.nl peertube[1798]: (node:2335) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 uncaughtException listeners added to [process]. Use emitter.setMaxListeners() to increase limit May 06 12:39:25 vigilian-consulting.nl peertube[1798]: (Use node --trace-warnings ... to show where the warning was created) May 06 12:39:25 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:25.133 info: Registering plugin or theme peertube-theme-bittube-dark-mode-no-background. May 06 12:39:25 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:25.140 info: Running RTMP server on port 1935 May 06 12:39:25 vigilian-consulting.nl peertube[1798]: [tube.vigilian-consulting.nl:443] 2021-05-06 12:39:25.159 info: HTTP server listening on localhost:9000

any other things that I could provide you with?

Chocobozzz commented 3 years ago

MaxListenersExceededWarning is just a warning, it should not crash your instance

changemenemo commented 3 years ago

Well I don't know sir. The only thing I know is that there seems some inconsistencies in the code that impeach peertube to process to release in time of shutdown the folder it has under its grip. So I did go à bit deeper and look at the logs and there is when I found it the error/warning in the logs. So I wanted to make it public that's all

Chocobozzz commented 3 years ago

Closing, feel free to comment if you notice another crash.