mikopbx / ModuleBackup

Backup&Recovery module
GNU General Public License v3.0
1 stars 1 forks source link

Module deactivating #39

Closed emassen closed 1 year ago

emassen commented 1 year ago

I can't get it in the logs, but every day ModuloBackup appears deactivated, I activate it and the next day it appears deactivated again. Where can I get the error LOG of why this is occurring?

jorikfon commented 1 year ago

What the PBX and Module version do you use now?

jorikfon commented 1 year ago

Starting from version 2023.2, there is a new feature that disables a malfunctioning module if it is the cause of certain exceptions. Do you see something in logs?

emassen commented 1 year ago

Latest version, 2023.2.206. The same behavior was occurring in the previous version too, I don't remember the version number, but it was the first in production. On Friday I upgraded to the latter and the problem continues. I'm looking at all types of logs, and it doesn't show me anything, does it have a specific log where the module error should record?

jorikfon commented 1 year ago

In the system/messages, try to search "error", "exception". If you have no any secret data, you can attach screenshots and we will reproduce it on the test system.

emassen commented 1 year ago

It is not showing an error in the system/messages, prints, I don't know how it would be seen, the system currently hangs for almost 24 hours after being activated.

jorikfon commented 1 year ago

Can you change the file content on your MikoPBX.

https://github.com/mikopbx/Core/blob/develop/src/Common/Providers/WhoopsErrorHandlerProvider.php

on PBX it is here

/offload/rootfs/usr/www/src/Common/Providers/WhoopsErrorHandlerProvider.php

you have to enable write mode on system disk before apply the changes with the ssh console command remount-offload

It will add an extra syslog messages on errors.

emassen commented 1 year ago

Sep 27 21:14:00 auth.warning MikoPBX[7894]: File is not original: /usr/www/src//Common/Providers/WhoopsErrorHandlerProvider.php

jorikfon commented 1 year ago

Sep 27 21:14:00 auth.warning MikoPBX[7894]: File is not original: /usr/www/src//Common/Providers/WhoopsErrorHandlerProvider.php

It is ok, cause you has changed system file. We are waiting for error in module Backup :)

emassen commented 1 year ago

Friend, I found the error, a command was placed internally within a backup file and that was causing the error. We can close this issue and thank you for your prompt service.

jorikfon commented 1 year ago

Nice!