-
Notifications
You must be signed in to change notification settings - Fork 8
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
ep_user_pad crashes every 8 hours #6
Comments
Same issue here. |
I removed the ep_user_pad to only keep ep_user_pad_frontend active and this exact same error still occurs, but on the frontend part:
Maybe it comes from the version of the mysql extension you are using in this plugin:
I installed v2.0.0-rc2 in ep_user_pad_frontend. I'll see if it works this way. I tried with the last version (v2.2) of mysql, but lots of new dependencies to manage and I blocked at some point. |
Hello, |
Hello, Well I'm trying, but I must say that this bug seems quite difficult to resolve. The new version of mysql didn't change anything... 8 hours later.. Bang.. I'm trying first to make the plugin 'ep_tables' works. Then I'll try to find some times for this one. In the meantime, I resolved this problem by using supervisord (http://supervisord.org/) to restart etherpad each time it crashes.. It's ugly, but it works :) I'm also happy to see your interest in redesigning the UI 👍 |
Hi All! |
Hi all, |
Hi quenenni, |
It's still on my todo list, but I'm still working on the ep_tables plugin to fix it (nearly done). But I still plan to do it. @aoberegg thanks for giving me access. As soon as I finished ep_table, I'll check here. But I found a variant of your plugin where the dev seems quite active. He already fusioned the frontend & admin part, did a lot of cleaning, fix stuffs,.. so I'll go check there also. Maybe his version doesn't have this problem anymore (I really don't where to look for to resolve it) @youhost the variant you found doesn't seem to be very active. He didn't do a lot in 2 months, so I think we can forget it for the moment. |
@youhost Is your server a Linux Debian server? After that, create the file /etc/supervisor/conf.d/etherpad.conf (and adapt to your system):
Check also /etc/supervisor/supervisord.conf (few things to change) If set to daemon mode (nodaemon = false), restart supervisor (/etc/init.d/supervisor restart), if not, start supervisor in a console (command: supervisord) |
@quenenni thank you very much for the supervisor indication setup. |
Has this issue been resolved as of yet? (I know i can just make something to restart upon crash but its handy to have as little running as possible) |
Any fix for this yet ? I am up and running and loving it but this is a pretty major issue! I am on Centos 6 so the debian tool above doesnt work for me... |
I just found the source of the problem. By default, it's set to 28800 (seconds) = 8h. I still don't know how to fix it, but if anyone has a suggestion, I'm all ear. @aoberegg, maybe you can check this out. |
Well, I found something that seems promising, but I'm not sure yet what consequences it can have. In hooks.js, lots of mysql connections are made and maybe try to stay active. I added at the end of "exports.expressCreateServer" (line 1662 in hooks.js):
And my first tests show that etherpad doesn't crash anymore and everything I tested on a pad seems to work fine. If someone else could test also that and report if he sees something wrong with the change.. |
Well, it's not working. The problem seems to be the use of the lib mysql directly instead of using the DB / ueberDB libs integrated in etherpad that manage the opening and closing of the DB connections. I have to search for another way to fix that. |
Hi, Just wondering where you found the "It's the mysql directive wait_timeout." so i could change the default value from 28800 to something like 12000000 So as it takes forever to time out because having to reset it once in a blue moon will be better then resetting it every 8 Hours. |
I don't knonw if any of you tested the alternative, the one here https://github.com/vltugraz/ep_user_pads. Can anyone confirm he has the same thing? I think I'm gonna wait for the project that framapad started. Thy did a (successfull) crowfunding campaign in order to create mypads, a plugin like this one. @Greyshaun33 |
Hi all ! |
Every 8 hours precisely, this plugin crashes and crashes etherpad.
I thought at the beginning that was server related, like a cron doing something ep_user_pad didn't like, but no.
When I stop etherpad and restart it, the plugin crashes again every 8 hours, but at differents times.
If I remove ep_user_pad (but keep ep_user_pad_frontend), no crashes happen.
Do you have any idea what can cause this? Like a timer to clean something every x hours?
The text was updated successfully, but these errors were encountered: