Cannot Determin OS

I have a utility VPS system that is primarily used as my Cloudmin server, so it is running webmin.virtualmin, and cloudmin. Suddenly today it decided that the OS had changed, but it does not know what the OS is - Foolishly I clicked on the "detect OS " button, and it got completely confused since it did not know what OS it was running. I manually set the OS in the Webmin config, and now it's running okay again, but complaining that it cannot determine the OS. I'm not at all sure why this is. The /etc/issue on the system is

CentOS release 5.8 (Final) Kernel \r on an \m

Which appears to be identical to the systems where this all works.

This isn't exactly a crisis, but it's odd.

Status: 
Closed (fixed)

Comments

What do the /etc/centos-release and /etc/redhat-release files contain on that system?

redhat-release contains CentOS release 5.8 (Final)

There is no /etc/centos-release file

That looks OK .. on exactly which page are you seeing the message that the OS could not be detected?

Both onthe general system info page (it says that the OS has changed but that the new OS version is . (that is, it displays a blank field for the OS). Also if I go to the webmin config page for the os and environment, it says it cannot determine the OS version.

The miniserv error log is reporting Use of uninitialized value in string ne at /usr/libexec/webmin/webmin/webmin-lib.pl line 1063.

Could you try running the following command, which invokes Webmin's OS detection login :

cd /usr/libexec/webmin
perl oschooser.pl os_list.txt /dev/stdout 1

and let me know what it outputs..

sh-3.2# perl oschooser.pl os_list.txt /dev/stdout 1 os_type='redhat-linux' os_version='13.8' real_os_type='CentOS Linux' real_os_version='5.8' sh-3.2#

That actually looks just fine.

Is your VPS perhaps low on memory? That may be preventing Webmin from running the same script..

Nope, lots of free memory - it's running in a 2 gig VPS. I also tried rebooting and restarting webmin. Neither helps.

What kidn of VPS is your system running on... is it by chance OpenVZ? If so, can you paste in the contents of /proc/user_beancounters?

May be a red herring but the miniserv.error log prints a lot of this sort of things when restarting webmin --

Subroutine get_latest_webmin_version redefined at /usr/libexec/webmin/webmin/webmin-lib.pl line 2026. Subroutine filter_updates redefined at /usr/libexec/webmin/webmin/webmin-lib.pl line 2059. Subroutine get_clone_source redefined at /usr/libexec/webmin/webmin/webmin-lib.pl line 2101. Subroutine list_keys redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 23. Subroutine list_keys_sorted redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 74. Subroutine list_secret_keys redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 82. Subroutine key_fingerprint redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 88. Subroutine get_passphrase redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 105. Subroutine put_passphrase redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 116. Subroutine encrypt_data redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 128. Subroutine decrypt_data redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 167. Subroutine sign_data redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 224. Subroutine verify_data redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 283. Subroutine read_entire_file redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 327. Subroutine write_entire_file redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 339. Subroutine get_trust_level redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 349. Subroutine delete_key redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 371. Subroutine default_email_address redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 398. Subroutine fetch_gpg_key redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 415. Subroutine search_gpg_keys redefined at /usr/libexec/webmin/webmin/gnupg-lib.pl line 442.

Okay -- I'm an idiot.

It's really simple. The directory I had set as the temp directory for webmin ran itself out of space. After I made some free space everything is good.

Great! In the next release I will prevent this false warning when the system runs out of disk space.