Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

on logrotate, armbian-ramlog and postgresql (apparently installing postgresql breaks logrotate.service)

Featured Replies

I've installed Armbian 22.08 Jammy (CLI only) on a Orange Pi 3 LTS and it works like a charm

 

but, apparently installing postgresql breaks logrotate.service...

 

actually on reboot syslog shows the following:

... armbian-ramlog[2065]: /usr/lib/armbian/armbian-ramlog: line 153: /var/log/./postgresql/postgresql-14-main.log: Permission denied
... systemd[1]: logrotate.service: Control process exited, code=exited, status=1/FAILURE
... systemd[1]: logrotate.service: Failed with result 'exit-code'.
... systemd[1]: Failed to start Rotate log files.


some things I found out after a shallow research:

  • postgresql package post installation script manages the log files access permissions slightly differently from other packages, assigning ownership to root:postgres instead that root:adm. I mean this is what you get after postresql installation:
   ls -al /var/log
   ...
   drwxr-xr-x  2 root   adm          4096 Nov 16 16:58 nginx
   drwxr-xr-x  2 root   root         4096 Mar 22  2022 openvpn
   drwxrwxr-t  2 root   postgres     4096 Nov 17 18:20 postgresql
   ...
  • changing postgresql log files access permissions to root:amd fixes the problem and makes logrotate.service run fine
  • after a SBC reboot the postgresql file access permissions are restored to root:postgres (weird!!! is this because it's zram?)

 

I currently fixed the problem running a crontab script at reboot that sets the 'proper' access permissions and restart the logrotate.service, but I'm confident there must be a cleaner solution...

 

Anyone? 

  • Myron changed the title to on logrotate, armbian-ramlog and postgresql (apparently installing postgresql breaks logrotate.service)
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.