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.03k stars 1.5k forks source link

instance unresponsive after upgrading to 3.4.0. MaxListenersExceededWarning #4444

Closed pprw closed 3 years ago

pprw commented 3 years ago

I upgraded peertube from 3.2.1 to 3.4.0 using the manual method.

When restart peertube, I have this message:

(node:26745) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 12 uncaughtException listeners added to [process]. Use emitter.setMaxListeners() to increase limit

I can access the instance but it is now unresponsive. Both firefox and chromium warn me the page is unresponsive.

I reproduced configuration changes for

13,14d12
< StandardOutput=syslog
< StandardError=syslog
pprw commented 3 years ago

Pages are unresponsive only when logged.

AnonymousWebHacker commented 3 years ago

(node:26745) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 12 uncaughtException listeners added to [process]. Use emitter.setMaxListeners() to increase limit

It is possible nodejs error, what version are you using?

pprw commented 3 years ago

I am using:

$ node -v
v12.22.6

I have another instance which run v12.22.2 and works fine.

pprw commented 3 years ago

I will try to upgrade to v14.

pprw commented 3 years ago

I am now running nodejs v14.18.0 and I launched:

cd /var/www/peertube/versions/peertube-v3.4.0 && sudo -H -u peertube yarn install --production --pure-lockfile

The problem is still there.

pprw commented 3 years ago

I also tried to reinstall nodejs modules with: sudo -H -u peertube rm -rf node_modules client/node_modules && sudo -H -u peertube yarn install --pure-lockfile

no changes

pprw commented 3 years ago

I removed every plugins and themes and the bug is gone!

I had installed :

AnonymousWebHacker commented 3 years ago

@pprw Sure, when you do an installation, you have to delete the modules folder