• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Log Browser (Error code:1)

Sanderv

New Pleskian
Server operating system version
Ubuntu 20.04.4 LTS
Plesk version and microupdate number
Plesk Obsidian Versie 18.0.45 Update #2
I'm trying to use the log browser extension version 1.3.0-124 bud I get the following error:


Code:
Error (Code: 1)
STDOUT: ERROR: TypeError: Argument 4 passed to PleskExt\LogBrowser\Helper\Filter::match() must be of the type string, null given, called in /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php on line 67 (Filter.php:60) . STDERR: PHP Warning: rtrim() expects parameter 1 to be string, array given; File: /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php, Line: 37 PHP Warning: rtrim() expects parameter 1 to be string, array given in /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php on line 37 [2022-07-31 15:07:18.791] 1479546:62e67e86bbfb9 ERR [panel] Argument 4 passed to PleskExt\LogBrowser\Helper\Filter::match() must be of the type string, null given, called in /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php on line 67: 0: /opt/psa/admin/plib/modules/log-browser/library/Helper/Filter.php:60 PleskExt\LogBrowser\Helper\Filter->match(array, string 'plesk_saslauthd', string '3336931', NULL null) 1: /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php:67 PleskExt\LogBrowser\Parser\JournalParser->readByLine(string '{"SYSLOG_PID":"1353040","SYSLOG_FACILITY":"4","_CAP_EFFECTIVE":"1fffffffff","_COMM":"sshd","_SYSTEMD...') 2: /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php:44 PleskExt\LogBrowser\Parser\JournalParser->read() 3: /opt/psa/admin/plib/modules/log-browser/library/Reader/ReaderList.php:33 PleskExt\LogBrowser\Reader\ReaderList->readLog(integer '999999999', integer '1000') 4: /opt/psa/admin/plib/modules/log-browser/library/Reader/ReaderList.php:24 PleskExt\LogBrowser\Reader\ReaderList->getResult(integer '999999999', integer '1000') 5: /opt/psa/admin/plib/modules/log-browser/library/LogReaderCliWrapper.php:36 PleskExt\LogBrowser\LogReaderCliWrapper->getResults() 6: /opt/psa/admin/sbin/modules/log-browser/log-reader:11



What can I do to fix this?

Greetings,
Sander
 
Aah, yes sorry.

When I open the extension. It shows the error immediately. So I can't use the extension what so ever. When I delete all filters the error changes a little bit.

Code:
Error (Code: 1)
STDOUT: ERROR: TypeError: Argument 4 passed to PleskExt\LogBrowser\Helper\Filter::match() must be of the type string, null given, called in /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php on line 67 (Filter.php:60) . STDERR: PHP Warning: rtrim() expects parameter 1 to be string, array given; File: /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php, Line: 37 PHP Warning: rtrim() expects parameter 1 to be string, array given in /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php on line 37 [2022-07-31 15:55:19.720] 1561954:62e689c78e87d ERR [panel] Argument 4 passed to PleskExt\LogBrowser\Helper\Filter::match() must be of the type string, null given, called in /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php on line 67: 0: /opt/psa/admin/plib/modules/log-browser/library/Helper/Filter.php:60 PleskExt\LogBrowser\Helper\Filter->match(array, string 'plesk_saslauthd', string '3336931', NULL null) 1: /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php:67 PleskExt\LogBrowser\Parser\JournalParser->readByLine(string '{"_MACHINE_ID":"732e42f2d9544ca48065f33fc7fcef1c","_PID":"3336931","_HOSTNAME":"h2950577.stratoserve...') 2: /opt/psa/admin/plib/modules/log-browser/library/Parser/JournalParser.php:44 PleskExt\LogBrowser\Parser\JournalParser->read() 3: /opt/psa/admin/plib/modules/log-browser/library/Reader/ReaderList.php:33 PleskExt\LogBrowser\Reader\ReaderList->readLog(integer '999999999', integer '1000') 4: /opt/psa/admin/plib/modules/log-browser/library/Reader/ReaderList.php:24 PleskExt\LogBrowser\Reader\ReaderList->getResult(integer '999999999', integer '1000') 5: /opt/psa/admin/plib/modules/log-browser/library/LogReaderCliWrapper.php:36 PleskExt\LogBrowser\LogReaderCliWrapper->getResults() 6: /opt/psa/admin/sbin/modules/log-browser/log-reader:11
.
 
Can you report this error, please? It looks like a bug.

 
Same Problem here:

Ubuntu 18.04.6 LTS
Plesk Obsidian Version 18.0.45 Update #2
log browser extension version 1.3.0-124

Reinstalling doesnt solve the error

 
Fixed.

1.3.1 (01 August 2022)​

  • [-] The extension no longer behaves incorrectly if any systemd/journalctl log files contain one or more non UTF-8 characters, non-printable characters, or very long messages. (EXTPLESK-3808)
 
Back
Top