[SAC] [OSGeo] #2964: grasswiki and grass logrotates still broken

OSGeo trac_osgeo at osgeo.org
Sun Aug 13 12:53:08 PDT 2023


#2964: grasswiki and grass logrotates still broken
---------------------------+---------------------------------------
 Reporter:  robe           |       Owner:  sac@…
     Type:  defect         |      Status:  new
 Priority:  normal         |   Milestone:  Sysadmin Contract 2023-I
Component:  Systems Admin  |  Resolution:
 Keywords:                 |
---------------------------+---------------------------------------
Comment (by neteler):

 I just connected and tried:

 {{{
 /usr/sbin/logrotate /etc/logrotate.conf --debug
 }}}


 --> looks ok. But this doesn't:


 {{{
 systemctl status logrotate
 ● logrotate.service - Rotate log files
      Loaded: loaded (/lib/systemd/system/logrotate.service; static)
      Active: failed (Result: exit-code) since Sun 2023-08-13 00:00:00 UTC;
 19h ago
 TriggeredBy: ● logrotate.timer
        Docs: man:logrotate(8)
              man:logrotate.conf(5)
    Main PID: 368037 (code=exited, status=226/NAMESPACE)

 Aug 13 00:00:00 grass systemd[1]: Starting Rotate log files...
 Aug 13 00:00:00 grass systemd[368037]: logrotate.service: Failed to set up
 mount namespacing: /run/systemd/unit-root/proc: Permission denied
 Aug 13 00:00:00 grass systemd[368037]: logrotate.service: Failed at step
 NAMESPACE spawning /usr/sbin/logrotate: Permission denied
 Aug 13 00:00:00 grass systemd[1]: logrotate.service: Main process exited,
 code=exited, status=226/NAMESPACE
 Aug 13 00:00:00 grass systemd[1]: logrotate.service: Failed with result
 'exit-code'.
 Aug 13 00:00:00 grass systemd[1]: Failed to start Rotate log files.

 ls -la /run/systemd/unit-root/proc
 ls: cannot access '/run/systemd/unit-root/proc': No such file or directory
 }}}

 Some LXD trick needed?
-- 
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2964#comment:3>
OSGeo <https://osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Sac mailing list