Error with Yast Network Setting

I just noticed an error when I try to open Network Settings in Yast. The computer uses Network Manager. Here is the error: Parse error while reading file /etc/sysctl.d/99-sysctl.conf YaST cannot continue and will quit. Possible causes and remedies: 1. You made a mistake when changing the file by hand, the syntax is invalid. Try reverting the changes. 2. The syntax is in fact valid but YaST does not recognize it. Please report a YaST bug. 3. YaST made a mistake and wrote invalid syntax earlier. Please report a YaST bug. Caller: /usr/lib64/ruby/gems/2.5.0/gems/cfa-1.0.2/lib/cfa/augeas_parser.rb:458:in `report_activity_error!' Details: Augeas parsing error: Iterated lens matched less than it should at /etc/sysctl.d/99-sysctl.conf:22:6, lens /usr/share/augeas/lenses/dist/sysctl.aug:38.10-.52: There is only a single line in the file 99-sysctl.conf that is not commented out. When I comment it out, Network Settings opens properly. Here are the contents of that file: #### # # /etc/sysctl.conf is meant for local sysctl settings # # sysctl reads settings from the following locations: # /boot/sysctl.conf-<kernelversion> # /lib/sysctl.d/*.conf # /usr/lib/sysctl.d/*.conf # /usr/local/lib/sysctl.d/*.conf # /etc/sysctl.d/*.conf # /run/sysctl.d/*.conf # /etc/sysctl.conf # # To disable or override a distribution provided file just place a # file with the same name in /etc/sysctl.d/ # # See sysctl.conf(5), sysctl.d(5) and sysctl(8) for more information # #### # net.ipv6.conf.all.disable_ipv6 = 1 sysctl -w net.ipv4.tcp_ecn=1 There appears to be some error with that last line, but I have no idea what. tnx jk

James Knott wrote:
There is only a single line in the file 99-sysctl.conf that is not commented out. When I comment it out, Network Settings opens properly. Here are the contents of that file:
#### # # /etc/sysctl.conf is meant for local sysctl settings #### # # sysctl reads settings from the following locations: # /boot/sysctl.conf-<kernelversion> # /lib/sysctl.d/*.conf # /usr/lib/sysctl.d/*.conf # /usr/local/lib/sysctl.d/*.conf # /etc/sysctl.d/*.conf # /run/sysctl.d/*.conf # /etc/sysctl.conf # # To disable or override a distribution provided file just place a # file with the same name in /etc/sysctl.d/ # # See sysctl.conf(5), sysctl.d(5) and sysctl(8) for more information # #### # net.ipv6.conf.all.disable_ipv6 = 1 sysctl -w net.ipv4.tcp_ecn=1
There appears to be some error with that last line, but I have no idea what.
The last line is a call of "sysctl -w net.ipv4.tcp_ecn=1" to update that value. Try this instead: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv4.tcp_ecn = 1 -- Per Jessen, Zürich (12.1°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland.

On 2021-04-02 3:54 p.m., Per Jessen wrote:
There appears to be some error with that last line, but I have no idea what. The last line is a call of "sysctl -w net.ipv4.tcp_ecn=1" to update that value.
Try this instead:
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv4.tcp_ecn = 1
I have never done anything in that file, other than commenting out that line today. Why would I want to disable IPv6.

James Knott wrote:
On 2021-04-02 3:54 p.m., Per Jessen wrote:
There appears to be some error with that last line, but I have no idea what. The last line is a call of "sysctl -w net.ipv4.tcp_ecn=1" to update that value.
Try this instead:
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv4.tcp_ecn = 1
I have never done anything in that file, other than commenting out that line today. Why would I want to disable IPv6.
I can't say - maybe that line was commented out, but it wasn't easy to tell in your original post. -- Per Jessen, Zürich (5.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland.

On 2021-04-03 3:55 a.m., Per Jessen wrote:
I have never done anything in that file, other than commenting out that line today. Why would I want to disable IPv6. I can't say - maybe that line was commented out, but it wasn't easy to tell in your original post.
It was only commented out because I did that. Prior to that, it was the only line that wasn't so I figured that was where the problem was.

James Knott wrote:
On 2021-04-03 3:55 a.m., Per Jessen wrote:
I have never done anything in that file, other than commenting out that line today. Why would I want to disable IPv6. I can't say - maybe that line was commented out, but it wasn't easy to tell in your original post.
It was only commented out because I did that. Prior to that, it was the only line that wasn't so I figured that was where the problem was.
The format for sysctl.conf and sysctl.d/whatever.conf is : a.b.c.d.e = value fwiw, on a brandnew Leap 15.2, I don't have a sysctl.d/99-sysctl.conf, only a sysctl.d/70-yast.conf which has the settings for ip forwarding and disable ipv6. YaST probably parses sysctl.{conf,d/*} to find the settings for ip forwarding and ipv6 disable. -- Per Jessen, Zürich (8.8°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland.
participants (2)
-
James Knott
-
Per Jessen