RemiRigal / Plex-Auto-Languages

Automated language selection for Plex TV Shows !
MIT License
444 stars 17 forks source link

Loss of websocket connection to Plex causes a permanent hang. #81

Open InsertDisc opened 1 year ago

InsertDisc commented 1 year ago

If Plex restarts and closes the websocket connection there is no attempt to reestablish the connection.

RemiRigal commented 1 year ago

When Plex closes the websocket connection you should have the following logs:

[WARNING] Lost connection to the Plex server
[INFO] Trying to restore the connection to the Plex server...

If not, do you have any logs that could indicate a failure ?

InsertDisc commented 1 year ago

I was getting [Warning] Plex closed the websocket connection.

I don't have exact logs to copy as I guess you lose them on a PAL restart.

After restarting Plex I would have to restart PAL as well to restore the connection.

Turns out the issue was a bit deeper. Running maintenance on Plex, having PAL listening and scanning with PMM was causing the server to crash.

I've separated the schedules a bit better to avoid the problem in the future. However, if somebody has a script to restore Plex after a crashed state, the issue with PAL reconnecting would probably still arise. Not something that should happen often, but it's still something that can.

Thank you for your great communication.

On Wed, Jul 5, 2023, 5:10 AM RemiRigal @.***> wrote:

When Plex closes the websocket connection you should have the following logs:

[WARNING] Lost connection to the Plex server [INFO] Trying to restore the connection to the Plex server...

If not, do you have any logs that could indicate a failure ?

— Reply to this email directly, view it on GitHub https://github.com/RemiRigal/Plex-Auto-Languages/issues/81#issuecomment-1621347305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHSH2JWTVIFUDHWNOF6NN5TXOUVRDANCNFSM6AAAAAAZ42OZLI . You are receiving this because you authored the thread.Message ID: @.***>

InsertDisc commented 1 year ago

I do however get this randomly.

On Wed, Jul 5, 2023, 8:38 AM Insert Disc @.***> wrote:

I was getting [Warning] Plex closed the websocket connection.

I don't have exact logs to copy as I guess you lose them on a PAL restart.

After restarting Plex I would have to restart PAL as well to restore the connection.

Turns out the issue was a bit deeper. Running maintenance on Plex, having PAL listening and scanning with PMM was causing the server to crash.

I've separated the schedules a bit better to avoid the problem in the future. However, if somebody has a script to restore Plex after a crashed state, the issue with PAL reconnecting would probably still arise. Not something that should happen often, but it's still something that can.

Thank you for your great communication.

On Wed, Jul 5, 2023, 5:10 AM RemiRigal @.***> wrote:

When Plex closes the websocket connection you should have the following logs:

[WARNING] Lost connection to the Plex server [INFO] Trying to restore the connection to the Plex server...

If not, do you have any logs that could indicate a failure ?

— Reply to this email directly, view it on GitHub https://github.com/RemiRigal/Plex-Auto-Languages/issues/81#issuecomment-1621347305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHSH2JWTVIFUDHWNOF6NN5TXOUVRDANCNFSM6AAAAAAZ42OZLI . You are receiving this because you authored the thread.Message ID: @.***>

eandrade92630 commented 11 months ago

What version of Plex are you on @InsertDisc

tronyx commented 6 months ago

Already an open issue for this: https://github.com/RemiRigal/Plex-Auto-Languages/issues/56