Error reading file /etc/network/interfaces: unexpected line 'source-directory /etc/network/interfaces.d'

Edit2: Ilia just pointed out to me that the two source-directory lines we’re talking about are not identical, which changes everything. Well, changes most things.

You should change both lines (do not delete either) to use source syntax instead of source-directory. Or shut down webmin and wait until we roll a fix.

Sorry for the confusion. Dang. This is weird stuff. I guess /run/network/interfaces.d is network mounted block storage that the hosting provider manages.

Based on Ilia’s testing, you can just change the

source-directory

lines to

source /etc/network/interfaces.d/*
source /run/network/interfaces.d/*

That’s the workaround to using 2.011 without it getting messy. You’ll still get a few extra log entries every five minutes, but they are mostly harmless (I see a half dozen lines every five minutes on my test system).

We’ll fix that bug as soon as we understand it.

1 Like