Vmtouch.service failed

Today I found out that my vmtouch.service is loaded but not active. Should I be worried?

Output of systemctl:

  UNIT                                                                                         LOAD   ACTIVE SUB       DESCRIPTION                                                                           
  proc-sys-fs-binfmt_misc.automount                                                            loaded active waiting   Arbitrary Executable File Formats File System Automount Point                         
  sys-devices-platform-serial8250-tty-ttyS0.device                                             loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS0                                            
  sys-devices-platform-soc-20201000.serial-tty-ttyAMA0.device                                  loaded active plugged   /sys/devices/platform/soc/20201000.serial/tty/ttyAMA0                                 
  sys-devices-platform-soc-20202000.mmc-mmc_host-mmc0-mmc0:59b4-block-mmcblk0-mmcblk0p1.device loaded active plugged   /sys/devices/platform/soc/20202000.mmc/mmc_host/mmc0/mmc0:59b4/block/mmcblk0/mmcblk0p1
  sys-devices-platform-soc-20202000.mmc-mmc_host-mmc0-mmc0:59b4-block-mmcblk0-mmcblk0p2.device loaded active plugged   /sys/devices/platform/soc/20202000.mmc/mmc_host/mmc0/mmc0:59b4/block/mmcblk0/mmcblk0p2
  sys-devices-platform-soc-20202000.mmc-mmc_host-mmc0-mmc0:59b4-block-mmcblk0.device           loaded active plugged   /sys/devices/platform/soc/20202000.mmc/mmc_host/mmc0/mmc0:59b4/block/mmcblk0          
  sys-devices-platform-soc-20300000.mmcnr-mmc_host-mmc1-mmc1:0001-mmc1:0001:1-net-wlan0.device loaded active plugged   /sys/devices/platform/soc/20300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1/net/wlan0
  sys-devices-virtual-block-ram0.device                                                        loaded active plugged   /sys/devices/virtual/block/ram0                                                       
  sys-devices-virtual-block-ram1.device                                                        loaded active plugged   /sys/devices/virtual/block/ram1                                                       
  sys-devices-virtual-block-ram10.device                                                       loaded active plugged   /sys/devices/virtual/block/ram10                                                      
  sys-devices-virtual-block-ram11.device                                                       loaded active plugged   /sys/devices/virtual/block/ram11                                                      
  sys-devices-virtual-block-ram12.device                                                       loaded active plugged   /sys/devices/virtual/block/ram12                                                      
  sys-devices-virtual-block-ram13.device                                                       loaded active plugged   /sys/devices/virtual/block/ram13                                                      
  sys-devices-virtual-block-ram14.device                                                       loaded active plugged   /sys/devices/virtual/block/ram14                                                      
  sys-devices-virtual-block-ram15.device                                                       loaded active plugged   /sys/devices/virtual/block/ram15                                                      
  sys-devices-virtual-block-ram2.device                                                        loaded active plugged   /sys/devices/virtual/block/ram2                                                       
  sys-devices-virtual-block-ram3.device                                                        loaded active plugged   /sys/devices/virtual/block/ram3                                                       
  sys-devices-virtual-block-ram4.device                                                        loaded active plugged   /sys/devices/virtual/block/ram4                                                       
  sys-devices-virtual-block-ram5.device                                                        loaded active plugged   /sys/devices/virtual/block/ram5                                                       
  sys-devices-virtual-block-ram6.device                                                        loaded active plugged   /sys/devices/virtual/block/ram6                                                       
  sys-devices-virtual-block-ram7.device                                                        loaded active plugged   /sys/devices/virtual/block/ram7                                                       
  sys-devices-virtual-block-ram8.device                                                        loaded active plugged   /sys/devices/virtual/block/ram8                                                       
  sys-devices-virtual-block-ram9.device                                                        loaded active plugged   /sys/devices/virtual/block/ram9                                                       
  sys-devices-virtual-misc-rfkill.device                                                       loaded active plugged   /sys/devices/virtual/misc/rfkill                                                      
  sys-devices-virtual-net-wg0.device                                                           loaded active plugged   /sys/devices/virtual/net/wg0                                                          
  sys-devices-virtual-tty-ttyprintk.device                                                     loaded active plugged   /sys/devices/virtual/tty/ttyprintk                                                    
  sys-module-configfs.device                                                                   loaded active plugged   /sys/module/configfs                                                                  
  sys-subsystem-net-devices-wg0.device                                                         loaded active plugged   /sys/subsystem/net/devices/wg0                                                        
  sys-subsystem-net-devices-wlan0.device                                                       loaded active plugged   /sys/subsystem/net/devices/wlan0                                                      
  -.mount                                                                                      loaded active mounted   Root Mount                                                                            
  boot.mount                                                                                   loaded active mounted   /boot                                                                                 
  dev-mqueue.mount                                                                             loaded active mounted   POSIX Message Queue File System                                                       
  sys-kernel-config.mount                                                                      loaded active mounted   Kernel Configuration File System                                                      
  sys-kernel-debug.mount                                                                       loaded active mounted   Kernel Debug File System                                                              
  tmp.mount                                                                                    loaded active mounted   /tmp                                                                                  
  var-log.mount                                                                                loaded active mounted   /var/log                                                                              
  systemd-ask-password-console.path                                                            loaded active waiting   Dispatch Password Requests to Console Directory Watch                                 
  systemd-ask-password-wall.path                                                               loaded active waiting   Forward Password Requests to Wall Directory Watch                                     
  init.scope                                                                                   loaded active running   System and Service Manager                                                            
  console-setup.service                                                                        loaded active exited    Set console font and keymap                                                           
  cron.service                                                                                 loaded active running   Regular background program processing daemon                                          
● dhcpcd.service                                                                               loaded failed failed    dhcpcd on all interfaces                                              
                
  dietpi-boot.service                                                                          loaded active exited    DietPi-Boot                                                                           
  dietpi-postboot.service                                                                      loaded active exited    DietPi-PostBoot                                                                       
  dietpi-preboot.service                                                                       loaded active exited    DietPi-PreBoot                                                                        
  dietpi-ramlog.service                                                                        loaded active exited    DietPi-RAMlog                                                                         
  domoticz.service                                                                             loaded active running   Domoticz (DietPi)                                                                     
  dropbear.service                                                                             loaded active running   LSB: Lightweight SSH server                                                           
  fake-hwclock.service                                                                         loaded active exited    Restore / save the current clock                                                      
  getty@tty1.service                                                                           loaded active running   Getty on tty1                                                                         
  ifup@wlan0.service                                                                           loaded active exited    ifup for wlan0                                                                        
  ifupdown-pre.service                                                                         loaded active exited    Helper to synchronize boot up for ifupdown                                            
  keyboard-setup.service                                                                       loaded active exited    Set the console keyboard layout                                                       
  kmod-static-nodes.service                                                                    loaded active exited    Create list of required static device nodes for the current kernel                    
  netfilter-persistent.service                                                                 loaded active exited    netfilter persistent configuration                                                    
  networking.service                                                                           loaded active exited    Raise network interfaces                                                              
  rngd.service                                                                                 loaded active running   Start entropy gathering daemon (rngd)                                                 
  systemd-fsck-root.service                                                                    loaded active exited    File System Check on Root Device                                                      
  systemd-fsck@dev-disk-by\x2dpartuuid-e8af6eb2\x2d01.service                                  loaded active exited    File System Check on /dev/disk/by-partuuid/e8af6eb2-01                                
  systemd-journal-flush.service                                                                loaded active exited    Flush Journal to Persistent Storage                                                   
  systemd-journald.service                                                                     loaded active running   Journal Service                                                                       
  systemd-modules-load.service                                                                 loaded active exited    Load Kernel Modules                                                                   
  systemd-random-seed.service                                                                  loaded active exited    Load/Save Random Seed                                                                 
  systemd-remount-fs.service                                                                   loaded active exited    Remount Root and Kernel File Systems                                                  
  systemd-sysctl.service                                                                       loaded active exited    Apply Kernel Variables                                                                
  systemd-sysusers.service                                                                     loaded active exited    Create System Users                                                                   
  systemd-tmpfiles-setup-dev.service                                                           loaded active exited    Create Static Device Nodes in /dev                                                    
  systemd-tmpfiles-setup.service                                                               loaded active exited    Create Volatile Files and Directories                                                 
  systemd-udev-trigger.service                                                                 loaded active exited    udev Coldplug all Devices                                                             
  systemd-udevd.service                                                                        loaded active running   udev Kernel Device Manager                                                            
  systemd-update-utmp.service                                                                  loaded active exited    Update UTMP about System Boot/Shutdown                                                
  systemd-user-sessions.service                                                                loaded active exited    Permit User Sessions                                                                  
● vmtouch.service                                                                              loaded failed failed    vmtouch

Hi,

can you share following

systemctl status vmtouch.service
journalctl -u vmtouch.service

Here’s the output of systemctl status vmtouch.service

● vmtouch.service - vmtouch
   Loaded: loaded (/lib/systemd/system/vmtouch.service; enabled; vendor preset: enabled)
   Active: failed (Result: signal) since Fri 2021-05-14 09:44:26 CEST; 1h 0min ago
     Docs: https://github.com/hoytech/vmtouch/blob/master/vmtouch.pod
  Process: 880 ExecStart=/usr/bin/vmtouch $VMTOUCH_OPTIONS $VMTOUCH_FILES (code=killed, signal=SEGV)
 Main PID: 880 (code=killed, signal=SEGV)

May 14 09:44:26 DietPi systemd[1]: Started vmtouch.
May 14 09:44:26 DietPi systemd[1]: vmtouch.service: Main process exited, code=killed, status=11/SEGV
May 14 09:44:26 DietPi systemd[1]: vmtouch.service: Failed with result 'signal'.

And here for journalctl -u vmtouch.service

-- Logs begin at Fri 2021-05-14 09:32:21 CEST, end at Fri 2021-05-14 10:30:32 CEST. --
May 14 09:32:30 DietPi systemd[1]: Started vmtouch.
May 14 09:32:30 DietPi systemd[1]: vmtouch.service: Main process exited, code=killed, status=11/SEGV
May 14 09:32:30 DietPi systemd[1]: vmtouch.service: Failed with result 'signal'.
May 14 09:36:53 DietPi systemd[1]: Started vmtouch.
May 14 09:36:53 DietPi systemd[1]: vmtouch.service: Main process exited, code=killed, status=11/SEGV
May 14 09:36:53 DietPi systemd[1]: vmtouch.service: Failed with result 'signal'.
May 14 09:37:11 DietPi systemd[1]: Started vmtouch.
May 14 09:37:11 DietPi systemd[1]: vmtouch.service: Main process exited, code=killed, status=11/SEGV
May 14 09:37:11 DietPi systemd[1]: vmtouch.service: Failed with result 'signal'.
May 14 09:44:26 DietPi systemd[1]: Started vmtouch.
May 14 09:44:26 DietPi systemd[1]: vmtouch.service: Main process exited, code=killed, status=11/SEGV
May 14 09:44:26 DietPi systemd[1]: vmtouch.service: Failed with result 'signal'.

what happen if you run following as user root

/usr/bin/vmtouch -l /boot/dietpi /boot/dietpi.txt

root@DietPi:/opt/domoticz# /usr/bin/vmtouch -l /boot/dietpi /boot/dietpi.txt
Segmentation fault

hmm could be some data corruption. just to have it checked

> /forcefsck
reboot
# after reboot to check result
journalctl -t systemd-fsck

MichaIng
any ideas?

Which RPi model is it?

Please try the following:

cd /tmp
wget https://dietpi.com/downloads/binaries/buster/vmtouch_armv6l.deb
dpkg -i vmtouch_armv6l.deb
rm vmtouch_armv6l.deb
journalctl -u vmtouch

Thanks MichaIng, that seems to have fixed it! It’s a Raspberry Pi Zero W with a 8Gb SD card.

Okay, good that this works, but not good that our image is obviously shipped with the ARMv7 binary. Actually the generation script forces ARMv6 for any RPi image, at least it should. I’ll have a look and create a new image.

The Link above to vmtouch_armv6l.deb is dead unfortunately - my dietpi install has the same issue.

DietPi v8.13.2
Device model : RPi B (armv6l)

@MichaIng can you check. Do we still ship vmtouch_armv6l from our server?

No it has been removed a while ago since we do not pre-install/use it anymore for /boot/dietpi. If you do not need the tool:

apt autopurge vmtouch

If you do need it, reinstall it from Raspbian:

apt install --reinstall --allow-downgrades vmtouch
1 Like