Helper scripts don't run

Continuing the discussion from Unable to upgrade any apps: I had other things to deal with and things were ‘working’. This is now escalating as certificates aren’t being renewed.

:uk:/:us:

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.0.0.14
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I have still not been able to resolve my issue of being unable to upgrade any apps (apt upgrades work) . They appear to fail because they can’t find helper scripts included in yunohost.

All app installs and upgrades fail with error similar to
./upgrade: line 23: ynh_app_setting_get: command not found
example: https://paste.yunohost.org/raw/icofehojuw

Before I had this problem, I was messing with permissions. But I don’t understand how this could be a permissions issue.

output of some commands I don’t fully understand

namei -l /usr/share/yunohost/helpers.d

output:

f: /usr/share/yunohost/helpers.d
drwxr-xr-x root root /
drwxr-xr-x root root usr
drwxr-xr-x root root share
drwxr-xr-x root root yunohost
drwxr-xr-x root root helpers.d

and
ls -l /usr/share/yunohost/helpers.d

output:

-rw-r--r-- 1 root root  3596 Aug 28 15:50 apps
-rw-r--r-- 1 root root 22431 Aug 28 15:50 apt
-rw-r--r-- 1 root root 20293 Aug 28 15:50 backup
-rw-r--r-- 1 root root 12162 Aug 28 15:50 config
-rw-r--r-- 1 root root  4923 Aug 28 15:50 fail2ban
-rw-r--r-- 1 root root 12198 Aug 28 15:50 getopts
-rw-r--r-- 1 root root  3674 Aug 28 15:50 hardware
-rw-r--r-- 1 root root 11826 Aug 28 15:50 logging
-rw-r--r-- 1 root root  4375 Aug 28 15:50 logrotate
-rw-r--r-- 1 root root  4347 Aug 28 15:50 multimedia
-rw-r--r-- 1 root root  7137 Aug 28 15:50 mysql
-rw-r--r-- 1 root root  3733 Aug 28 15:50 network
-rw-r--r-- 1 root root  1472 Aug 28 15:50 nginx
-rw-r--r-- 1 root root  9393 Aug 28 15:50 nodejs
-rw-r--r-- 1 root root 15951 Aug 28 15:50 permission
-rw-r--r-- 1 root root 22313 Aug 28 15:50 php
-rw-r--r-- 1 root root  9529 Aug 28 15:50 postgresql
-rw-r--r-- 1 root root  4880 Aug 28 15:50 setting
-rw-r--r-- 1 root root  5618 Aug 28 15:50 string
-rw-r--r-- 1 root root  6712 Aug 28 15:50 systemd
-rw-r--r-- 1 root root  6043 Aug 28 15:50 user
-rw-r--r-- 1 root root 35007 Aug 28 15:50 utils

Any help troubleshooting this would be appreciated

Things I have tried

  • server reboot
  • running the upgrade as root
  • looking for the scripts (didn’t understand them but I can see they are there)

In reply to Aleks: I had modified /etc/group (grp was a mistype) I have tried to revert the change but don’t know what it looked like before. (lesson learned back up files before modifying them)

Fixed: In a previous topic I resolved a problem by removing the entire contents of /sbin/run-parts. As I was more careful that time, I reinstated my back-up of the file. Updates and upgrades are now working.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.