GwenDragon
Basic Pleskian
Username: GwenDragon
TITLE
Log viewer for domain log files tries to parse encrypted files which results to display error
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.48, Debian 11.5, x64
PROBLEM DESCRIPTION
For domains use logrotate to compress and encrypt rotated logs with gpg. This generates rotated files like error_log.1.gpg … error_log.7.gpg as desired.
If user tries to view domain logs, the encrypted files are parse and this causes broken display with binary garbage in log viewer.
STEPS TO REPRODUCE
1. Add this to /opt/psa/etc/logrotate.conf
2. Have log files in /var/www/vhosts/system/DOMAIN.TLD/logs/
3. Wait until daily cronjob started Plesks logrotate or start it with
4. Open in Plesk Obsidian
5. In Settings select a Domain
6. Select Protocols to inspect log files
7. Log file lines are shown
ACTUAL RESULT
You will see at start of log broken lines with binary garbage (see image)
EXPECTED RESULT
Only log files (without the compressed ones) are parsed and log lines shown correct.
ANY ADDITIONAL INFORMATION
The log viewer should only display text format log files it can parse (could be excluded by file ending?).
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Log viewer for domain log files tries to parse encrypted files which results to display error
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian 18.0.48, Debian 11.5, x64
PROBLEM DESCRIPTION
For domains use logrotate to compress and encrypt rotated logs with gpg. This generates rotated files like error_log.1.gpg … error_log.7.gpg as desired.
If user tries to view domain logs, the encrypted files are parse and this causes broken display with binary garbage in log viewer.
STEPS TO REPRODUCE
1. Add this to /opt/psa/etc/logrotate.conf
Code:
# ---- encrypt saved logs ------------------------------------
shred
compress
compresscmd /usr/bin/gpg
compressoptions --always-trust --encrypt --recipient [email protected]
compressext .gpg
# ---- encrypt saved logs ------------------------------------
3. Wait until daily cronjob started Plesks logrotate or start it with
/opt/psa/logrotate/sbin/logrotate -f /opt/psa/etc/logrotate.conf
4. Open in Plesk Obsidian
5. In Settings select a Domain
6. Select Protocols to inspect log files
7. Log file lines are shown
ACTUAL RESULT
You will see at start of log broken lines with binary garbage (see image)
EXPECTED RESULT
Only log files (without the compressed ones) are parsed and log lines shown correct.
ANY ADDITIONAL INFORMATION
The log viewer should only display text format log files it can parse (could be excluded by file ending?).
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug