DHCP Failure Causes Overwriting of Console

Status
Not open for further replies.

bob p

Dabbler
Joined
Jun 24, 2014
Messages
22
PLEASE STOP FreeNAS' BAD HABIT OF CONTINUALLY WRITING THE SAME ERROR MESSAGES DIRECTLY TO THE CONSOLE.

I've been using FreeNAS since version 8.0. I recently upgraded to 9.2.1.x.

I recently ran into a very annoying problem, where my network (which is configured with DHCP) lost it's DHCP server, and FreeNAS lost it's IP address as a result.

As a result of losing the DHCP lease, Freenas 9.2.1.x began an endless series of DHCP client retries, all of which failed. This resulted in an endless loop of writing non-critical error messages to the console in a destructive format. That is to say, instead of politely logging the errors to the system logs, FreeNAS began dumping the log output to the console, and continued to destructively over-write everthing that was on the display. Because the logging was frequent (every few seconds as the DHCP network initialization continued to fail) and ongoing (endless loop), this level of corruption of the video display effectively destroyed the superuser's ability to perform work at the console to fix the problem.

Normally one might suggest using the web interface, or using SSH to access the box, but those methods of access aren't possible when a system that's configured for DHCP cannot obtain a lease. In that circumstance, the only way that the system can be fixed is by having the superuser use the console to convert the network configuration so that it uses a static IP address instead of a dynamic one.

Unfortunately, the simple process of re-configuring FreeNAS to use static IP address instead of a dynamic IP address via DHCP becomes an impossible task when: A) there is no network connection, B) the console interface is turned off, and C) the console output is being destructively over-written by frequent non-critical error messages.

In this context, the screen output becomes a mixture of what the superuser is trying to do, and what the system is logging as errors. The convolution of two unrelated processes writing to the screen contemporaneously results in an unreadable garbled mess. The only way that the superuser can properly configure the system to use a static IP address is if he has the menu and keystroke sequence memorized and ignores the screen output.

It's impossible to: A) restore the console interface and B) navigate through the console menu system, when the console is constantly being overwritten by garbage logging output.

I would lke to make the following requests for improvement:

1. Please keep the logging of non-critical errors confined to the logs, and don't dump everthing to the console. Frequent dumping of errors to the console makes the console unreadable.
2. Reduce the frequency of DHCP retries so that the logs aren't flooded with redundant messages.
3. Change the logging interval.

At present the retry interval is far to short, and too many error messages are being generated in rapid succession. This corrupts the display output and makes the content unreadable.

Thanks for your time.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Yeah.. developers don't read here. If you have a request put it in at bugs.freenas.org
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
What's wrong with grabbing any old router and plugging it in to act as a DHCP server long enough for you to log in?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Its most been for discussing things that might make good features. We've talked about deleting it completely because everyone seems to think this is a way to talk to developers.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
To the OP, FreeBSD supports virtual consoles just like Linux. Just hit Alt-F2 and log in there, which will give you root access at a shell prompt. It won't give you the console menu, though, so you'd have to reconfigure the network manually.
 

solarisguy

Guru
Joined
Apr 4, 2014
Messages
1,125
I think it is a very good idea to have a forum to discuss new feature requests before submitting them using bugs.freenas.org
 

solarisguy

Guru
Joined
Apr 4, 2014
Messages
1,125
@bob p, I do agree with your message. I would like to suggest another possible solution:

4. have the logging to be a little bit smarter, for example instead of 98 lines with the same message, have one message displayed, and then (assuming 1 message a second) after 97 seconds the second message: last message was repeated 97 times
 
Status
Not open for further replies.
Top