• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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
.
 
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