Error: Failed to read info for xxx Invalid version

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.0.10.2
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain:
enabled and peformed apt update, apt install podman using following repos

  1. deb http://downloadcontent.opensuse.org/repositories/home:/alvistack/Debian_11/ / repo for installing application called podman (docker alternative)
  2. deb [arch=amd64 signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg] /repositories/devel:/kubic:/libcontainers:/unstable/Debian_Testing - openSUSE Download /

Description of my issue

Installed applications list is not visible any more in web admin panel, I can still able to access these installed apps from user control panel view, as well as I can see these apps from cli command: yunohost app list

What I did?
I was unable to install podman for which I ran following commands and but everything was working well and Applications were still visible at this point.
It suddenly happened soon after I installed app called redirect with proxy mode to expose locally installed app running using docker on port 18000.

As soon as I opened Applications in web admin panel, it shows : There are no installed apps.

yunohost app list

apps:
  0:
    description: OpenID Connect Provider based on Yunohost LDAP server
    domain_path: sso.3d.xxx.in/
    id: dex
    name: Dex
    version: 2.35.3~ynh1
  1:
    description: Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features
    domain_path: bit.xxx.in/
    id: gitlab
    name: GitLab
    version: 15.7.0~ynh1
  2:
    description: Video conferencing web application
    domain_path: meet.xxx.in/
    id: jitsi
    name: Meet
    version: 2.0.8044~ynh1
  3:
    description: Web database management tool
    domain_path: mdashboard.xxx.in/
    id: metabase
    name: Dashboard
    version: 0.44.6~ynh1
  4:
    description: High Performance, Kubernetes Native Object Storage
    domain_path: minio.3d.xxx.in/
    id: minio
    name: MinIO server
    version: 2022.11.11~ynh1
  5:
    description: An admin server for Mongo and optionally a Mongo database
    domain_path: mexp.3d.xxx.in/mongo
    id: mongo-express
    name: Mongo Express
    version: 1.0~ynh3
  6:
    description: Real-time performance and health monitoring
    domain_path: mon.3d.xxx.in/netdata
    id: netdata
    name: NetData
    version: 1.37.1~ynh1
  7:
    description: Wiki and knowledge base for teams
    domain_path: docs.xxx.in/
    id: outline
    name: Docs
    version: 0.66.0~ynh1
  8:
    description: a modern XMPP communication server
    id: prosody
    name: Prosody
    version: 0.11.13~ynh3
  9:
    description: A peer-to-peer VPN system
    id: zerotier
    name: ZeroTier
    version: 1.10.2~ynh1
  10:
    description: ZeroTier network controller user interface
    domain_path: zt.xxx.in/
    id: ztncui
    name: Zerotier Manager
    version: 20220103~ynh4

yunohost diagnosis run

Success! Everything looks OK for Base system! (+ 1 ignored issue(s))
Success! Everything looks OK for Internet connectivity!
Warning: Found 1 item(s) that could be improved for DNS records.
Success! Everything looks OK for Ports exposure! (+ 2 ignored issue(s))
Success! Everything looks OK for Web!
Success! Everything looks OK for Email!
Success! Everything looks OK for Services status check! (+ 1 ignored issue(s))
Success! Everything looks OK for System resources!
Success! Everything looks OK for System configurations!
Error: Failed to read info for dex : Invalid version: '2.35.3~ynh1'
Error: Failed to read info for gitlab : Invalid version: '15.7.0~ynh1'
Error: Failed to read info for jitsi : Invalid version: '2.0.8044~ynh1'
Error: Failed to read info for metabase : Invalid version: '0.44.6~ynh1'
Error: Failed to read info for minio : Invalid version: '2022.11.11~ynh1'
Error: Failed to read info for mongo-express : Invalid version: '1.0~ynh3'
Error: Failed to read info for netdata : Invalid version: '1.37.1~ynh1'
Error: Failed to read info for outline : Invalid version: '0.66.0~ynh1'
Error: Failed to read info for prosody : Invalid version: '0.11.13~ynh3'
Error: Failed to read info for redirect : Invalid version: '1.0.2~ynh1'
Error: Failed to read info for zerotier : Invalid version: '1.10.2~ynh1'
Error: Failed to read info for ztncui : Invalid version: '20220103~ynh4'
Success! Everything looks OK for Applications!
Warning: To see the issues found, you can go to the Diagnosis section of the webadmin, or run 'yunohost diagnosis show --issues --human-readable' from the command-line.

ran following command as root

 474  apt install podman
  475  pip3 install podman-compose
  476  podman-compose ps
  477  loginctl enable-linger 1007
  478  dbus-user-session
  479  apt install -y dbus-user-session
  480  loginctl enable-linger 1007
  481  usermod -aG podman admin
  482  usermod -aG sudo admin
  483  podman system migrate
  484  getcap /usr/bin/newuidmap /usr/bin/newgidmap
  485  usermod --add-subuids 1000000-1100000 --add-subgids 1000000-1100000 root
  486  usermod --add-subuids 1100000-1200000 --add-subgids 1100000-1200000 admin

ran following command as admin

  172  source  /etc/os-release
  173  wget http://downloadcontent.opensuse.org/repositories/home:/alvistack/Debian_$VERSION_ID/Release.key -O alvistack_key
  174  cat alvistack_key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/alvistack.gpg  >/dev/null
  175  echo "deb http://downloadcontent.opensuse.org/repositories/home:/alvistack/Debian_$VERSION_ID/ /" | sudo tee  /etc/apt/sources.list.d/alvistack.list
  176  apt update; apt upgrade -y
  177  sudo apt update && sudo apt upgrade -y;
  178  podman version
  179  sudo apt-get -y install podman
  180  sudo apt --fix-broken install
  181  sudo apt-get -y install podman
  182  nano /etc/apt/sources.list.d/alvistack.list
  183  sudo nano /etc/apt/sources.list.d/alvistack.list
  184  apt update; apt autoclean; apt -y autoremove -y
  185  sudo apt update; sudo apt autoclean; sudo apt -y autoremove -y
  186  sudo apt --fix-broken install
  187  apt install podmon
  188  sudo apt install podman
  189  sudo nano /etc/apt/sources.list.d/alvistack.list
  190  sudo apt update; sudo apt autoclean; sudo apt -y upgrade
  191  sudo apt --fix-broken install
  192  podman version
  193  sudo apt update; sudo apt autoclean; sudo apt -y autoremove -y
  194  sudo nano /etc/apt/sources.list.d/alvistack.list
  195  sudo apt update; sudo apt autoclean; sudo apt -y autoremove -y
  196  sudo apt --fix-broken install
  197  podman version
  198  sudo apt --fix-broken install
  199  sudo apt update; sudo apt autoclean; sudo apt -y autoremove -y

I learnt it hard way that I should not customise anything on yunohost installed servers after encountering this issues and reading through various posts and comments.
but is there any hope to fix this issue or its better I reinstall everything?

Thank you!

Let’s look at :

python3 -c "import packaging; print(packaging); print(packaging.__version__)

1 Like

Thank you fo replying…

python3 -c "import packaging; print(packaging); print(packaging.__version__)"
<module 'packaging' from '/usr/lib/python3/dist-packages/packaging/__init__.py'>
22.0

Then let’s look at apt policy python3-packaging

1 Like

apt policy python3-packaging

apt policy python3-packaging
python3-packaging:
  Installed: 100:22.0-1
  Candidate: 100:22.0-1
  Version table:
 *** 100:22.0-1 100
        100 /var/lib/dpkg/status
     20.9-2 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages

So yeah idk, maybe the podman PPA or something installed an upgraded version of that package, which is not backward compatible …

I guess we can try to downgrade it with apt install python3-packaging=20.9-2

1 Like

apt install python3-packaging=20.9-2

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be DOWNGRADED:
  python3-packaging
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 0 B/33.5 kB of archives.
After this operation, 5,120 B disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: warning: downgrading python3-packaging from 100:22.0-1 to 20.9-2
(Reading database ... 169076 files and directories currently installed.)
Preparing to unpack .../python3-packaging_20.9-2_all.deb ...
Unpacking python3-packaging (20.9-2) over (100:22.0-1) ...
Setting up python3-packaging (20.9-2) ...

yunohost diagnosis run --force

Success! Everything looks OK for Base system! (+ 1 ignored issue(s))
Success! Everything looks OK for Internet connectivity!
Warning: Found 1 item(s) that could be improved for DNS records.
Success! Everything looks OK for Ports exposure! (+ 2 ignored issue(s))
Success! Everything looks OK for Web!
Success! Everything looks OK for Email!
Success! Everything looks OK for Services status check! (+ 1 ignored issue(s))
Success! Everything looks OK for System resources!
Success! Everything looks OK for System configurations!
Success! Everything looks OK for Applications! (+ 1 ignored issue(s))
Warning: To see the issues found, you can go to the Diagnosis section of the webadmin, or run 'yunohost diagnosis show --issues --human-readable' from the command-line.

yunohost diagnosis show --issues --human-readable

=================================
DNS records (dnsrecords)
=================================

[WARNING] Some DNS records are missing or incorrect for domain xxx.in (category extra)
  - Please check the documentation at https://yunohost.org/dns_config if you need help configuring DNS records.
  - The following DNS record does not seem to follow the recommended configuration:
    Type: CAA
    Name: @
    Current value: ['0 issuewild "digicert.com; cansignhttpexchanges=yes"', '0 issuewild "letsencrypt.org"', '0 issuewild "pki.goog; cansignhttpexchanges=yes"', '0 issue "comodoca.com"', '0 issue "digicert.com; cansignhttpexchanges=yes"', '0 issue "letsencrypt.org"', '0 issue "pki.goog; cansignhttpexchanges=yes"', '0 issuewild "comodoca.com"']
    Expected value: 128 issue "letsencrypt.org"

I have cleared browser cache and still issue persists/

Failed to read info for dex : Invalid version: '2.35.3~ynh1'
Failed to read info for gitlab : Invalid version: '15.7.0~ynh1'
Failed to read info for jitsi : Invalid version: '2.0.8044~ynh1'
Failed to read info for metabase : Invalid version: '0.44.6~ynh1'
Failed to read info for minio : Invalid version: '2022.11.11~ynh1'
Failed to read info for mongo-express : Invalid version: '1.0~ynh3'
Failed to read info for netdata : Invalid version: '1.37.1~ynh1'
Failed to read info for outline : Invalid version: '0.66.0~ynh1'
Failed to read info for prosody : Invalid version: '0.11.13~ynh3'
Failed to read info for redirect : Invalid version: '1.0.2~ynh1'
Failed to read info for zerotier : Invalid version: '1.10.2~ynh1'
Failed to read info for ztncui : Invalid version: '20220103~ynh4'

Not sure where you’re seeing this but maybe you should restart the yunohost-api service to propagate the lib change

However I’m skeptical that this is really the reason why you encounter the “empty app list” bug

1 Like

This bug is probably caused by a missing main permission (not a UNIX permission, i mean a yunohost/ssowat permission) on an app:

We should be able to pinpoint which with:

for APP in $(ls /etc/yunohost/apps); do yunohost user permission list --full | grep -q "$APP.main" || echo "Missing main perm for $APP"; done
1 Like

Thank you so much after restarting, I can see installed application list now. Amazing!

apt install python3-packaging=20.9-2
systemctl restart yunohost-api
for APP in $(ls /etc/yunohost/apps); do yunohost user permission list --full | grep -q "$APP.main" || echo "Missing main perm for $APP"; done

I ran this command and there is no output for it, maybe there is no permission related issue then? Thank you again!

Alrighty, glad to know it was “just” this :stuck_out_tongue_winking_eye:

1 Like