Ok. So following the thread above that OPs problem and mine are not identical but suspiciously similar.
I do not have errors in freepbx_security.log but I do see some odd errors in
For example, 'tail'ing the file, when I access the Admin -> Administrators section I see this in the log
Then a few seconds later (not sure if related or 'random') I see this
So then I access the User Manager page. On access, I see no errors.
However when I try to add a user in User Manager, on hitting submit I see the following errors
I have no idea how to interpret the above but it seems relevant. I wish Ward would chime in here somewhere. I'm sure he can easily answer some of the outstanding questions like:
Which PHP version should be for 2020?
What's the user/pass to access mysql?
Are these errors expected? If not, what do they indicate?
Hope we can get to the bottom of this soon.
I do not have errors in freepbx_security.log but I do see some odd errors in
Code:
/var/log/asterisk/freepbx.log
For example, 'tail'ing the file, when I access the Admin -> Administrators section I see this in the log
Code:
[2021-10-12 18:18:47] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/core/page.ampusers.php on line 23 [] []
Then a few seconds later (not sure if related or 'random') I see this
Code:
[2021-10-12 18:19:01] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-10-12 18:19:01] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2021-10-12 18:19:01] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
So then I access the User Manager page. On access, I see no errors.
However when I try to add a user in User Manager, on hitting submit I see the following errors
Code:
[2021-10-12 18:10:02] [freepbx.INFO]: Add user to letschat failed: The command "node /var/www/html/admin/modules/xmpp/node/adduserletschat.js eyJpZCI6IjEzIiwidXNlcm5hbWUiOiJuZXd1c2VyIiwiZGVzY3JpcHRpb24iOiJuZXcgdXNlciIsInBhc3N3b3JkIjoidGhpc2lzYXN0aWNrdXAiLCJlbmNyeXB0ZWQiOnRydWUsImV4dHJhRGF0YSI6eyJmbmFtZSI6IiIsImxuYW1lIjoiIiwidGl0bGUiOiIiLCJjb21wYW55IjoiIiwiZGVwYXJ0bWVudCI6IiIsImxhbmd1YWdlIjoiIiwidGltZXpvbmUiOiIiLCJ0aW1lZm9ybWF0IjoiIiwiZGF0ZWZvcm1hdCI6IiIsImRhdGV0aW1lZm9ybWF0IjoiIiwiZW1haWwiOiIiLCJjZWxsIjoiIiwid29yayI6IiIsImhvbWUiOiIiLCJmYXgiOiIiLCJkaXNwbGF5bmFtZSI6IiIsInByZXZFbWFpbCI6IiJ9LCJ1dWlkIjpudWxsLCJmcmVlcGJ4SWQiOiIxMyJ9" failed. Exit Code: 1(General error) Working directory: /var/www/html/admin Output: ================ Error Output: ================ (node:21922) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. /var/www/html/admin/modules/xmpp/node/node_modules/mongodb/lib/utils.js:123 process.nextTick(function() { throw err; }); ^ MongoError: insertDocument :: caused by :: 11000 E11000 duplicate key error index: letschat.users.$email_1 dup key: { : "" } at Function.MongoError.create (/var/www/html/admin/modules/xmpp/node/node_modules/mongodb-core/lib/error.js:31:11) at toError (/var/www/html/admin/modules/xmpp/node/node_modules/mongodb/lib/utils.js:139:22) at /var/www/html/admin/modules/xmpp/node/node_modules/mongodb/lib/collection.js:748:67 at /var/www/html/admin/modules/xmpp/node/node_modules/mongodb-core/lib/connection/pool.js:469:18 at process._tickCallback (internal/process/next_tick.js:61:11) [] []
[2021-10-12 18:10:15] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
I have no idea how to interpret the above but it seems relevant. I wish Ward would chime in here somewhere. I'm sure he can easily answer some of the outstanding questions like:
Which PHP version should be for 2020?
What's the user/pass to access mysql?
Are these errors expected? If not, what do they indicate?
Hope we can get to the bottom of this soon.