vmtouch.service failed Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
DietCH
Posts: 19
Joined: Tue May 12, 2020 10:15 am

vmtouch.service failed

Post by DietCH »

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

Output of systemctl:

Code: Select all

  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                                                               
 
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: vmtouch.service failed

Post by Joulinar »

Hi,

can you share following

Code: Select all

systemctl status vmtouch.service
journalctl -u vmtouch.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
DietCH
Posts: 19
Joined: Tue May 12, 2020 10:15 am

Re: vmtouch.service failed

Post by DietCH »

Here's the output of systemctl status vmtouch.service

Code: Select all

● 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

Code: Select all

-- 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'.
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: vmtouch.service failed

Post by Joulinar »

what happen if you run following as user root

Code: Select all

/usr/bin/vmtouch -l /boot/dietpi /boot/dietpi.txt
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
DietCH
Posts: 19
Joined: Tue May 12, 2020 10:15 am

Re: vmtouch.service failed

Post by DietCH »

root@DietPi:/opt/domoticz# /usr/bin/vmtouch -l /boot/dietpi /boot/dietpi.txt
Segmentation fault
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: vmtouch.service failed

Post by Joulinar »

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

Code: Select all

> /forcefsck
reboot
# after reboot to check result
journalctl -t systemd-fsck
@MichaIng
any ideas?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: vmtouch.service failed

Post by MichaIng »

Which RPi model is it?

Please try the following:

Code: Select all

cd /tmp
wget https://dietpi.com/downloads/binaries/buster/vmtouch_armv6l.deb
dpkg -i vmtouch_armv6l.deb
rm vmtouch_armv6l.deb
journalctl -u vmtouch
DietCH
Posts: 19
Joined: Tue May 12, 2020 10:15 am

Re: vmtouch.service failed

Post by DietCH »

Thanks MichaIng, that seems to have fixed it! It's a Raspberry Pi Zero W with a 8Gb SD card.
User avatar
MichaIng
Site Admin
Posts: 2987
Joined: Sat Nov 18, 2017 6:21 pm

Re: vmtouch.service failed

Post by MichaIng »

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.
Post Reply