• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question osdetect failed: Error: Cannot determine version scanning ""

cool_sh

Basic Pleskian
Server operating system version
CentOS 7
Plesk version and microupdate number
18.0.65 #2
Hi all,

which files or database tables does plesk use to determine th ecurrent OS ?

I have the problem that i can not install updates or plugins due to the named error:
Fehler: osdetect failed: Error: Cannot determine version scanning ""

But: the "standard" files exist and show correct information:
- cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)

- uname -r
3.10.0-1160.119.1.el7.x86_64

And inside Plesk I see the correct version on different sides like the page after login or in server information:
Version: Plesk Obsidian v18.0.65_build1800241122.08 os_CentOS 7
Betriebssystem: CentOS Linux 7.9.2009 (Core)
 
Hello!

osdetect tries to check following files /etc/debian_version, /etc/CloudLinux-release, /etc/vzlinux-release, /etc/almalinux-release, /etc/rocky-release. If one of these files exists and has empty first line, osdetect can fail with such error. Could you please check your server?
 
Hello mizar,

none of the named files exists on my system. Plesk seems to read the information from another location.
 
Hello!

Very strange. Is any chance that /etc/redhat-release is modified? Plesk reads exactly first line from it. What rpm -V centos-release shows?
 
ls -al /etc/redhat-release
lrwxrwxrwx 1 root root 14 Jun 6 2024 /etc/redhat-release -> centos-release

rpm -V centos-release
S.5...... c /etc/issue
S.5...... c /etc/issue.net
S.5....T. c /etc/yum.repos.d/CentOS-Base.repo
S.5....T. c /etc/yum.repos.d/CentOS-CR.repo
.......T. c /etc/yum.repos.d/CentOS-Debuginfo.repo
.......T. c /etc/yum.repos.d/CentOS-Media.repo
.......T. c /etc/yum.repos.d/CentOS-Sources.repo
.......T. c /etc/yum.repos.d/CentOS-Vault.repo
S.5....T. c /etc/yum.repos.d/CentOS-fasttrack.repo
S.5....T. c /etc/yum.repos.d/CentOS-x86_64-kernel.repo
 
Hello!

Looks good. Unfortunately, I'm out of ideas what else can be wrong. Could you please send me output of strace -f -v -s400 /usr/local/psa/admin/sbin/osdetect 2>&1 in PM? Or, if you have a contract with support, create a support ticket?
 
Back
Top