Learn about Centmin Mod LEMP Stack today
Become a Member

Error: Journal has been rotated since unit was started

Discussion in 'System Administration' started by negative, Feb 22, 2019.

  1. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    7:05 PM
    1.9.10
    10.1.11
    When i look the service status of any service, it shows that error at the below on output.

    Code (Text):
    Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
    


    Before, i never seen.
    Is it related with system upgrade (like kernel) and how can i fix it ?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    46,137
    10,489
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,267
    Local Time:
    3:05 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    if you upgraded kernel did you make sure to reboot server for kernel update to take effect ?
     
  3. eva2000

    eva2000 Administrator Staff Member

    46,137
    10,489
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,267
    Local Time:
    3:05 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    also check output for command
    Code (Text):
    journalctl --verify
    

    example
    Code (Text):
    journalctl --verify
    PASS: /run/log/journal/8a3b2a9944ea41f0b606f212a0808316/system.journal           
    PASS: /run/log/journal/8a3b2a9944ea41f0b606f212a0808316/system@628199e42ee84a819acd57ac0f889164-000000000000ad36-00058251d37c5775.journal                                                       
    PASS: /run/log/journal/8a3b2a9944ea41f0b606f212a0808316/system@628199e42ee84a819acd57ac0f889164-000000000000834c-0005823d12ae1b8d.journal                                                       
    PASS: /run/log/journal/8a3b2a9944ea41f0b606f212a0808316/system@628199e42ee84a819acd57ac0f889164-00000000000058ff-00058228bf2a967d.journal                                                       
    PASS: /run/log/journal/8a3b2a9944ea41f0b606f212a0808316/system@628199e42ee84a819acd57ac0f889164-0000000000002ef1-0005821428c1ce66.journal                                                       
    PASS: /run/log/journal/8a3b2a9944ea41f0b606f212a0808316/system@628199e42ee84a819acd57ac0f889164-0000000000000001-000582020e56ab42.journal 
    
     
  4. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    7:05 PM
    1.9.10
    10.1.11
    No, kernel is just standart upgraded with that code, also server didn't restarted for about 150 days
    Code (Text):
    yum update --disableplugin=priorities --enablerepo=remi


    Code (Text):
    [21:39][root@server ~]# journalctl --verify
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system.journal        
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000030d70a-0005822abb0d0cb6.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000002fe97c-00058200753b6f86.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000002f0907-000581d098e0aa60.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000002e325d-0005819c67e7c02c.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000002d56db-0005816a3d7b42cf.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000002c6d76-0005813dd47cfc67.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000002b87a1-000581100bd1d5bb.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000002a99fd-000580e4e255f183.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000029b0f9-000580b887428b97.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000028c352-0005808e5e6db59c.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000027e2ec-0005805e65779b1e.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-0000000000270b93-0005802a6a25dbc4.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000002624c3-00057ffd645e6a2b.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-0000000000254030-00057fcf1b99ebc2.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000024604b-00057f9ee24d1b17.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-0000000000237da7-00057f6feadd0ed1.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-0000000000229577-00057f434db35602.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000021b54e-00057f133a34bcc2.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000020dfb3-00057ede7dc42a1f.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-0000000000200992-00057ea9f36110ad.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000001f30db-00057e768e47f1b0.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000001e3fc6-00057e4dabf19e3a.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000001d5c11-00057e1f0c7133e3.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000001c7734-00057df0f6504189.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000001b7905-00057dcd77029200.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000001a87a9-00057da464c06b7c.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-0000000000199bd4-00057d793a047eae.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000018a722-00057d51a017b34e.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000017b8e5-00057d2780d115ca.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000016daef-00057cf90daeedaa.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000015d87f-00057cd1cc4eff68.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000014dbee-00057cadca1801bc.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000013ebee-00057c84799c3e92.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000001303bf-00057c57d3d88df4.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-0000000000121d85-00057c2a825e221f.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-0000000000113782-00057bfd10c70d0d.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-000000000010500f-00057bd0439dcaee.journal
    PASS: /run/log/journal/c9d8ce49b5c2495da94347a8f5f7b12d/system@74df485bf3eb44f9aa2eec1a680db344-00000000000f6c5e-00057ba1f7d30208.journal
     
  5. eva2000

    eva2000 Administrator Staff Member

    46,137
    10,489
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,267
    Local Time:
    3:05 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    looks good for verify but standard procedure on kernel updates needs server reboot ;)
     
  6. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    7:05 PM
    1.9.10
    10.1.11
    Is it possible fix that problem without restart ? :)
    Actually i worry about don't get some problems after restart the server always :D
     
  7. eva2000

    eva2000 Administrator Staff Member

    46,137
    10,489
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,267
    Local Time:
    3:05 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    probably due to not restarting after criticial systemd and kernel updates over time so reboot would help