Can you tell me how to see Logs text in such *.gz files...?

Operating System & Version
cent os 7.9
cPanel & WHM Version
v94.0.4 Load Averages: 0.32 0.31 0.20

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
SSH access from Web Terminal at WHM/cPanel: Home » Server Configuration » Terminal

[[email protected]***-***-***-*** logs]# pwd
/home/yyyy/logs
[[email protected]***-***-***-*** logs]# ls -la | grep "Apr-2021"
-rw-r--r-- 1 yyyy yyyy 2497 Apr 19 15:05 api.zzz.city-Apr-2021.gz
-rw-r--r-- 1 yyyy yyyy 1874 Apr 19 15:05 api.zzz.city-ssl_log-Apr-2021.gz
...

In SSH to see Logging --- I see api.zzz.city-ssl_log-Apr-2021.gz files with *.gz extension...

Can you tell me how to see Logs text in such *.gz files...?
 

ZenHostingTravis

Well-Known Member
PartnerNOC
May 22, 2020
249
82
28
Australia
cPanel Access Level
Root Administrator
  • Like
Reactions: cPRex

andrewmoras

Active Member
Feb 6, 2021
33
18
8
Remote
cPanel Access Level
DataCenter Provider
SSH access from Web Terminal at WHM/cPanel: Home » Server Configuration » Terminal

[[email protected]***-***-***-*** logs]# pwd
/home/yyyy/logs
[[email protected]***-***-***-*** logs]# ls -la | grep "Apr-2021"
-rw-r--r-- 1 yyyy yyyy 2497 Apr 19 15:05 api.zzz.city-Apr-2021.gz
-rw-r--r-- 1 yyyy yyyy 1874 Apr 19 15:05 api.zzz.city-ssl_log-Apr-2021.gz
...

In SSH to see Logging --- I see api.zzz.city-ssl_log-Apr-2021.gz files with *.gz extension...

Can you tell me how to see Logs text in such *.gz files...?
zcat and zgrep (instead of cat and grep) are your friends :cool:
 

Leonidas Savvides

Well-Known Member
May 10, 2016
83
4
8
Cyprus
cPanel Access Level
Root Administrator
Is this important??? send from VPS to my admin email...

The system detected an error during the cPanel & WHM version change from “11.94.0.4” to “11.94.0.5”, which prevented the update now process from completing normally.
Review the attached log for further details.
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow (17363) at Fri Apr 23 00:40:03 2021
[2021-04-23 00:40:03 +0300] Running version '11.94.0.4' of updatenow.
[2021-04-23 00:40:03 +0300] Detected version '11.94.0.4' from version file.
[2021-04-23 00:40:03 +0300] Target version set to '11.94.0.5'
[2021-04-23 00:40:03 +0300] Switching to version 11.94.0.5 of updatenow to determine if we can reach that version without failure.
[2021-04-23 00:40:03 +0300] ***** FATAL: Failed to download updatenow.static from server: (XID pd7dtq) “/bin/rpm” reported error code “1” when it ended: error: rpmdb: BDB0113 Thread/process 19314/140203437238336 failed: BDB1507 Thread died in Berkeley DB library
[2021-04-23 00:40:03 +0300] error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
[2021-04-23 00:40:03 +0300] error: cannot open Packages index using db5 - (-30973)
[2021-04-23 00:40:03 +0300] error: cannot open Packages database in /var/lib/rpm
[2021-04-23 00:40:03 +0300] error: rpmdb: BDB0113 Thread/process 19314/140203437238336 failed: BDB1507 Thread died in Berkeley DB library
[2021-04-23 00:40:03 +0300] error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
[2021-04-23 00:40:03 +0300] error: cannot open Packages database in /var/lib/rpm
[2021-04-23 00:40:03 +0300] The Administrator will be notified to review this output when this script completes
=> Log closed Fri Apr 23 00:40:03 2021
The system generated this notice on Thursday, April 22, 2021 at 9:40:03 PM UTC.

“Update Failures” notifications are currently configured to have an importance of “High”. You can change the importance or disable this type of notification in WHM’s Contact Manager at:
 

andrewmoras

Active Member
Feb 6, 2021
33
18
8
Remote
cPanel Access Level
DataCenter Provider
Is this important??? send from VPS to my admin email...

The system detected an error during the cPanel & WHM version change from “11.94.0.4” to “11.94.0.5”, which prevented the update now process from completing normally.
Review the attached log for further details.
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow (17363) at Fri Apr 23 00:40:03 2021
[2021-04-23 00:40:03 +0300] Running version '11.94.0.4' of updatenow.
[2021-04-23 00:40:03 +0300] Detected version '11.94.0.4' from version file.
[2021-04-23 00:40:03 +0300] Target version set to '11.94.0.5'
[2021-04-23 00:40:03 +0300] Switching to version 11.94.0.5 of updatenow to determine if we can reach that version without failure.
[2021-04-23 00:40:03 +0300] ***** FATAL: Failed to download updatenow.static from server: (XID pd7dtq) “/bin/rpm” reported error code “1” when it ended: error: rpmdb: BDB0113 Thread/process 19314/140203437238336 failed: BDB1507 Thread died in Berkeley DB library
[2021-04-23 00:40:03 +0300] error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
[2021-04-23 00:40:03 +0300] error: cannot open Packages index using db5 - (-30973)
[2021-04-23 00:40:03 +0300] error: cannot open Packages database in /var/lib/rpm
[2021-04-23 00:40:03 +0300] error: rpmdb: BDB0113 Thread/process 19314/140203437238336 failed: BDB1507 Thread died in Berkeley DB library
[2021-04-23 00:40:03 +0300] error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
[2021-04-23 00:40:03 +0300] error: cannot open Packages database in /var/lib/rpm
[2021-04-23 00:40:03 +0300] The Administrator will be notified to review this output when this script completes
=> Log closed Fri Apr 23 00:40:03 2021
The system generated this notice on Thursday, April 22, 2021 at 9:40:03 PM UTC.

“Update Failures” notifications are currently configured to have an importance of “High”. You can change the importance or disable this type of notification in WHM’s Contact Manager at:
That's a totally different problem but it's an easy fix. See this article :)

I hope it helps!

Thanks,
Andrew
 
  • Like
Reactions: cPRex

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,836
597
273
cPanel Access Level
Root Administrator
When you perform the RPM rebuild it will either tell you it worked successfully or not on the screen. The message it provides in the output will be similar to this, as this is from an RPM rebuild on a test server:

Code:
D: adding 1 entries to Installtid index.
D: adding 1 entries to Sigmd5 index.
D: adding "807845a8292cea3ea4b5a5efb0b48cfbebf7a70c" to Sha1header index.
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
D: closed   db index       /var/lib/rpmrebuilddb.9243/Sha1header
D: closed   db index       /var/lib/rpmrebuilddb.9243/Sigmd5
D: closed   db index       /var/lib/rpmrebuilddb.9243/Installtid
D: closed   db index       /var/lib/rpmrebuilddb.9243/Dirnames
D: closed   db index       /var/lib/rpmrebuilddb.9243/Triggername
D: closed   db index       /var/lib/rpmrebuilddb.9243/Obsoletename
D: closed   db index       /var/lib/rpmrebuilddb.9243/Conflictname
D: closed   db index       /var/lib/rpmrebuilddb.9243/Providename
D: closed   db index       /var/lib/rpmrebuilddb.9243/Requirename
D: closed   db index       /var/lib/rpmrebuilddb.9243/Group
D: closed   db index       /var/lib/rpmrebuilddb.9243/Basenames
D: closed   db index       /var/lib/rpmrebuilddb.9243/Name
D: closed   db index       /var/lib/rpmrebuilddb.9243/Packages
D: closed   db environment /var/lib/rpmrebuilddb.9243

Complete!
If you get the "complete!" message at the bottom, you're all set to move on.