0
Z11ntal33r

CLOSED armbian-ramlog.service fails when apt pinning

Recommended Posts

Hi,

I've some issues regarding apt pinning, which I've used for a year now without problems, after doing a clean install to Armbian_5.70_Tinkerboard_Debian_stretch_next_4.19.14. I've figured out that installing only locales from testing (2.28-4) over (2.24-11+deb9u3) kills armbian-ramlog.service as seen below in spoiler 1, which again seems to cause problems for other packages as Nginx.

Spoiler

# Status after clean install and installing locales from testing deb
● armbian-ramlog.service - Armbian memory supported logging

   Loaded: loaded (/lib/systemd/system/armbian-ramlog.service; enabled; vendor preset: enabled)

   Active: failed (Result: timeout) since Sat 2019-01-12 15:28:42 UTC; 22min ago

  Process: 649 ExecStart=/usr/lib/armbian/armbian-ramlog start (code=killed, signal=TERM)

 Main PID: 649 (code=killed, signal=TERM)

    Tasks: 1 (limit: 4915)

   CGroup: /system.slice/armbian-ramlog.service

           └─683 rsync -aXWv --delete --exclude armbian-ramlog.log --exclude *.gz --exclude=*.[0-9] --links /var/log.hdd/ /var/log/

 

Jan 12 15:28:12 Tinkerboard systemd[1]: Starting Armbian memory supported logging...

Jan 12 15:28:12 Tinkerboard armbian-ramlog[649]: Mounting /dev/zram0 as /var/log/

Jan 12 15:28:12 Tinkerboard armbian-ramlog[649]: Sat Jan 12 15:28:12 UTC 2019: Loading logs from storage to zram

Jan 12 15:28:42 Tinkerboard systemd[1]: armbian-ramlog.service: Start operation timed out. Terminating.

Jan 12 15:28:42 Tinkerboard systemd[1]: armbian-ramlog.service: Main process exited, code=killed, status=15/TERM

Jan 12 15:28:42 Tinkerboard systemd[1]: Failed to start Armbian memory supported logging.

Jan 12 15:28:42 Tinkerboard systemd[1]: armbian-ramlog.service: Unit entered failed state.

Jan 12 15:28:42 Tinkerboard systemd[1]: armbian-ramlog.service: Failed with result 'timeout'.

 

If a do a clean install, add testing sources, apt-pinning and run "sudo apt-get -t testing install locales", armbian-ramlog.service fails. I've tested everything using buster/sid after full apt-get dist-upgrade and it works. So, I've to find out which packages that I need to install in addition to prevent armbian-ramlog.service from failing.

Spoiler

# Status after clean install and dist-upgrade to buster/sid

● armbian-ramlog.service - Armbian memory supported logging

   Loaded: loaded (/lib/systemd/system/armbian-ramlog.service; enabled; vendor preset: enabled)

   Active: active (exited) since Sat 2019-01-12 22:27:55 UTC; 33min ago

 Main PID: 606 (code=exited, status=0/SUCCESS)

    Tasks: 0 (limit: 4792)

   Memory: 0B

   CGroup: /system.slice/armbian-ramlog.service

 

Jan 12 22:27:53 Tinkerboard armbian-ramlog[606]: apt/history.log

Jan 12 22:27:53 Tinkerboard armbian-ramlog[606]: apt/term.log

Jan 12 22:27:53 Tinkerboard armbian-ramlog[606]: ntpstats/

Jan 12 22:27:53 Tinkerboard armbian-ramlog[606]: private/

Jan 12 22:27:53 Tinkerboard armbian-ramlog[606]: sysstat/

Jan 12 22:27:53 Tinkerboard armbian-ramlog[606]: unattended-upgrades/

Jan 12 22:27:53 Tinkerboard armbian-ramlog[606]: unattended-upgrades/unattended-upgrades-shutdown.log

Jan 12 22:27:54 Tinkerboard armbian-ramlog[606]: sent 1,573,061 bytes  received 423 bytes  3,146,968.00 bytes/sec

Jan 12 22:27:54 Tinkerboard armbian-ramlog[606]: total size is 1,571,197  speedup is 1.00

Jan 12 22:27:55 Tinkerboard systemd[1]: Started Armbian memory supported logging.

 

So, just pointing out which packages I've to install while using apt pinning to make sure armbian-ramlog.service works is very helpful for me. Running buster/sid instead of stable and apt pinning is not an option, so if apt pinning and Armbian memory supported logging is not possible I would have to compile the latest versions of the packages I want - which I've done before. Stretch backport is neither an option. If you guys think moving to Ubuntu might suit me better, please tell me and I'll try.

 

Spoiler 3 contains the packages locales is dependent on which breaks armbian-ramlog.service.

Spoiler

$sudo apt-get -t testing install locales

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following additional packages will be installed:

  libc-bin libc-dev-bin libc-l10n libc6 libc6-dev

Suggested packages:

  glibc-doc manpages-dev

Recommended packages:

  manpages manpages-dev libidn2-0

The following packages will be upgraded:

  libc-bin libc-dev-bin libc-l10n libc6 libc6-dev locales

6 upgraded, 0 newly installed, 0 to remove and 374 not upgraded.

Need to get 10.4 MB of archives.

After this operation, 8,307 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://deb.debian.org/debian testing/main armhf libc-l10n all 2.28-4 [844 kB]

Get:2 http://deb.debian.org/debian testing/main armhf libc-dev-bin armhf 2.28-4 [266 kB]

Get:3 http://deb.debian.org/debian testing/main armhf libc6-dev armhf 2.28-4 [2,148 kB]

Get:4 http://deb.debian.org/debian testing/main armhf locales all 2.28-4 [4,062 kB]

Get:5 http://deb.debian.org/debian testing/main armhf libc6 armhf 2.28-4 [2,389 kB]

Get:6 http://deb.debian.org/debian testing/main armhf libc-bin armhf 2.28-4 [665 kB]

Fetched 10.4 MB in 0s (22.8 MB/s) 

Preconfiguring packages ...

(Reading database ... 32492 files and directories currently installed.)

Preparing to unpack .../libc-l10n_2.28-4_all.deb ...

Unpacking libc-l10n (2.28-4) over (2.24-11+deb9u3) ...

Preparing to unpack .../libc-dev-bin_2.28-4_armhf.deb ...

Unpacking libc-dev-bin (2.28-4) over (2.24-11+deb9u3) ...

Preparing to unpack .../libc6-dev_2.28-4_armhf.deb ...

Unpacking libc6-dev:armhf (2.28-4) over (2.24-11+deb9u3) ...

Preparing to unpack .../locales_2.28-4_all.deb ...

Unpacking locales (2.28-4) over (2.24-11+deb9u3) ...

Preparing to unpack .../libc6_2.28-4_armhf.deb ...

Checking for services that may need to be restarted...

Checking init scripts...

Unpacking libc6:armhf (2.28-4) over (2.24-11+deb9u3) ...

Setting up libc6:armhf (2.28-4) ...

Installing new version of config file /etc/ld.so.conf.d/arm-linux-gnueabihf.conf ...

Checking for services that may need to be restarted...

Checking init scripts...

 

Restarting services possibly affected by the upgrade:

  cron: restarting...done.

 

Services restarted successfully.

(Reading database ... 32559 files and directories currently installed.)

Preparing to unpack .../libc-bin_2.28-4_armhf.deb ...

Unpacking libc-bin (2.28-4) over (2.24-11+deb9u3) ...

Setting up libc-bin (2.28-4) ...

Setting up libc-l10n (2.28-4) ...

Processing triggers for man-db (2.7.6.1-2) ...

Setting up libc-dev-bin (2.28-4) ...

Setting up libc6-dev:armhf (2.28-4) ...

Setting up locales (2.28-4) ...

Installing new version of config file /etc/locale.alias ...

Generating locales (this might take a while)...

  en_US.UTF-8... done

Generation complete.

 

Output from armbianmonitor -u after installing locales from testing deb and rebooting is shown here

Thanks in advance! :)

Share this post


Link to post
Share on other sites
39 minutes ago, Z11ntal33r said:

The errors are related to Armbian memory supported logging


We have just conducted a major upgrade and we haven't notice any troubles with armbian logging service. It is not very likely that this is our fault. If you have troubles with this logging, disable it. Nginx is known to fail in case logs are not present. Perhaps your /var/log.hdd /var/log is full ?

Such problems have their own section: https://forum.armbian.com/forum/2-common-issues/ , we only read logs supplied with armbianmonitor -u ...

Share this post


Link to post
Share on other sites
6 hours ago, Igor said:

We have just conducted a major upgrade and we haven't notice any troubles with armbian logging service. It is not very likely that this is our fault. If you have troubles with this logging, disable it. Nginx is known to fail in case logs are not present. Perhaps your /var/log.hdd /var/log is full ?
Such problems have their own section: https://forum.armbian.com/forum/2-common-issues/ , we only read logs supplied with armbianmonitor -u ...

 

Well, it seems that not installing some specific packages from testing deb causes Armbian memory supported logging to fail as installing only the package locales makes it fail. I'm thinking about disabling armbian-ramlog.service as you mentioned, yet I'm not sure the consequences and how it would differentiate from ex. the setup I had with Armbian_5.50_Tinkerboard_Debian_stretch_next_4.14.52. I'll post a full log with armbianmonitor -u in the first post after one more setup.

Share this post


Link to post
Share on other sites

As I've moved away from apt-pinning since upgrading all my TB boxes to ARMBIAN 5.70 stable Debian GNU/Linux 9 (stretch) 4.19.14-rockchip this thread can be closed. I'll stick with compiling the few packages that I want and need the latest versions of while staying at the stable channel as I've encountered several issues when using apt-pinning or buster/sid deb as kernel panics, lost ethernet connection, logging services failing etc.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
0