My YunoHost server
Hardware: LXC container, host is a NUC
YunoHost version: 4.2.8.3
I have access to my server : As root through lxc-attach
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain:
See bellow.
Description of my issue
Hello everyone,
I try to migrate a yunohost, from an internet cube to a server hosting several LXC containers, while using ipv6 only.
The server has one ipv4 address and a block of ipv6 addresses.
I have an other yunohost already installed in a container.
Its ipv4 is NATed and one ipv6 address is used.
This first yunohost works fine.
Now, for the other yunohost I try to migrate, I have ipv6 only.
Installation and backup restoration worked fine.
I face an issue when I try to diagnosis
.
First, I have an expected error regarding a missing IPv4 address:
root@hostname:~# yunohost diagnosis show ip --issues
reports:
description: Internet connectivity
id: ip
items:
status: ERROR
summary: The server does not have working IPv4
So I just ignored this error:
root@hostname:~# yunohost diagnosis ignore --filter ip test=ipv4
Success! Filter added
root@hostname:~# yunohost diagnosis run ip
Success! Everything looks good for Internet connectivity! (+ 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.
Now, here is the issue I am facing: I cannot run the diagnosis for dnsrecords
, ports
, web
and mail
since I do not have an IPv4 address.
root@hostname:~# yunohost diagnosis run dnsrecords
Error: Can't run diagnosis for DNS records while there are important issues related to Internet connectivity.
root@hostname:~# yunohost diagnosis run ports
Error: Can't run diagnosis for Ports exposure while there are important issues related to Internet connectivity.
root@hostname:~# yunohost diagnosis run web
Error: Can't run diagnosis for Web while there are important issues related to Internet connectivity.
root@hostname:~# yunohost diagnosis run mail
Error: Can't run diagnosis for Email while there are important issues related to Internet connectivity.
I believe that I should be able to run these diagnosis with ipv6 only.
So, I wanted to come with a quick fix by removing the dependencies to ip
for these categories and then ignore errors that are related to not having an ipv4.
I tried to look at the code do modify the dependencies, without success.
Here is where I looked but I did not find any “dependencies” attribute anywhere else:
root@hostname:~# grep '\<dependencies\>' /usr/lib/moulinette/yunohost/diagnosis.py
for dependency in self.dependencies:
Can anyone briefly describe to me how I can modify the dependencies?
Thank you,