"Unable to open cpuinfo for reading" - System Information

duzap

Verified User
Joined
Nov 14, 2008
Messages
41
When I'm trying to access to 'System Information' page in DA I am receiving this error: "Unable to open cpuinfo for reading"

I don't have the file 'cpuinfo' in the /proc/ folder, I am running on FreeBSD 7.1-PRERELEASE version
What should I do to get this page working?
Thanks in advance, duzap. :)
 
Obviously your system doesn't have a cpuinfo file in the /proc directory. Did earlier versions? I don't know as I don't use FreeBSD.

Don't forget that FreeBSD 7 support is only in beta and is not recommended according to the DirectAdmin website.

Jeff
 
All versions of DA I have used on freeBSD have had this issue. I have no fix as it never bothered me.
 
The process DA uses to get the cpu info for FreeBSD is:

Try to open:
/compat/linux/proc/cpuinfo

if that fails, it runs:
/sbin/mount_linprocfs linprocfs /compat/linux/proc

and then tries to reopen the file:
/compat/linux/proc/cpuinfo

If the 2nd read attempt fails (even after the compat mount) then it falls back to reading through:
/var/run/dmesg.boot

to hunt for "CPU:"
If it can't open the dmesg.boot file, then you get failure.

So DA goes pretty far in trying to get the info.. so that message means 3 things are failing:
1) cpuinfo isn't there
2) mounting doesn't work
3) missing dmesg.boot file

I hope that helps!

John
 
Back
Top