New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd-modules-load doesn't load nf_conntrack module #1113
Comments
Does your initrd contain systemd-modules-load? If so, did you rebuild the initrd after changing the config file, and did you make sure all relevent .ko files are also in the initrd? |
I have no idea whether it contains systemd-modules-load -- how to check it? I'm using debian distro. Anyway, I tried to add all the modules from |
@morfikov the xt_connmark module requires nf_conntrack and loading xt_connmark triggers the load of nf_conntrack. |
Let me rephrase that: xt_connmark comes before nf_conntrack in /etc/modules. Afaik, systemd-modules-load loads the modules in order, so it loads xt_connmark first (which triggers the auto-load of nf_conntrack). So at the point systemd-modules-load tries to load nf_conntrack, it's already loaded, so this entry is skipped. |
Ok, that makes sense. I even changed the order to be sure, and now it shows all the modules in the log. So that's fine, but the messages still are logged, so do you have any idea why the variables can't be set at the boot stage? |
@morfikov systemd-sysctl.service has a After=systemd-modules-load.service. @kaysievers, @poettering do you have a bette suggestion how this could be addressed? |
According to the manual, I've created the following udev rule:
But it didn't work. Now I also have the messages in question in the systemd-udevd.service log. I've looked into the /etc/sysctl.conf file in order to see what nf_conntrack variables there are, and I could see the following:
But when compared them to the sysctl log, it looks like that |
I've found it! To solve this issue, I had to add the two following modules to the
Now all the errors disappeared. |
OK, closing then. |
For reference to anyone else fighting this on later distributions:
Jun 12 11:12:38 machine systemd-sysctl[312]: Couldn't write '0' to 'net/netfilter/nf_conntrack_tcp_loose', ignoring: No such file or directory
[...]
Jun 12 11:12:43 machine systemd-modules-load[624]: Inserted module 'nf_conntrack' It would seem like other workarounds are needed on newer distributions such as EL9. |
I have the following modules to load at boot time:
But when I checked
systemd-sysctl
log, I could see the following messages:I have also other sysctl settings, but only the above ones have some problems.
After the boot stage, I can issue
sysctl -p
and all the variables are set properly. So I checked thesystemd-modules-load.service
log, and there's something like this:When compared this to the modules list that you can see above, there's only one module missing:
nf_conntrack
. I don't know why because it's included in the/etc/modules
file. Anyway, it's loaded later somehow:The question is why the module isn't loaded with all the other modules?
The text was updated successfully, but these errors were encountered: