• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!

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