Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Cannot create server backup in Plesk: Unable to check the amount of free disk space: Argument 2 passed to PleskOsUnix::relativePath() must be of the type string

 
backupbackup managerbackup restore migrationdatabasedomains

Symptoms

  • Unable to create a server-wide or configurations-only backup at Tools & Settings > Backup Manager. One of the following errors is shown:

    ERROR: () Unable to check the amount of free disk space: Argument 2 passed to PleskOsUnix::relativePath() must be of the type string, null given, called in /opt/psa/admin/plib/backup/Agent/ContentLocator/Unix.php on line 123


    Warning: Domain "example.com"
    Unable to back up website. Error: Argument 2 passed to PleskOsUnix::relativePath() must be of the type string, null given, called in /usr/local/psa/admin/plib/backup/Agent/Dumper/HostingInfo.php on line 112'

  • It's not possible to access Domains > example.com > Hosting Settings with the following error:

    Server Error
    500 PleskFatalException
    Full path is undefined

Cause

Database inconsistency - there are no records for the example.com domain in the psa.hosting table:

# mysql > select * from hosting where dom_id in (select id from domains where name ="example.com");
Empty set (0.000 sec)

Resolution

Apply one of the following solutions:

Remove the domain from Plesk

If the domain is no longer necessary it can be removed.

1. Log into Plesk
2. Navigate to the Domains list
3. Select the example.com domain and click Remove

Recreate the database record manually

1. Connect to the Plesk server via SSH
2. Back up the Plesk database:

# plesk db dump > backup.sql

3. Access the Plesk database:

# plesk db

4. Identify the domain's ID from the domains table:

# MariaDB [psa]> select id from domains where name="example.com";
+------+
| id |
+------+
| 11 |
+------+
1 row in set (0.12 sec)

5. Identify the domain's system user ID from the sys_users table:

# MariaDB [psa]> select id from sys_users where login="example-user";
+------+
| id |
+------+
| 22 |
+------+
1 row in set (0.12 sec)

6. Recreate the record in the hosting table using the data collected earlier:

# MariaDB [psa]> insert into hosting(dom_id,sys_user_id,www_root) values(11,22,"/var/www/vhosts/example.com/httpdocs");

Note: /var/www/vhosts/example.com/httpdocs is the default document root path in Plesk. It can be changed to a custom one if necessary

7. Run the following command to repair the document root structure:

# plesk bin repair --update-vhosts-structure

8. Navigate to Domains > example.com > Hosting Settings and set all the required options in order not to leave them empty

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Exploring Plesk’s Added Value Solutions So Far in 2023

Read More »

Unveiling Sitejet Builder: The Perfect Match for Your Effortless Website Creation Needs

Read More »

Dynamic List vs. Active List: A Comprehensive Comparison – Unveiling the Ultimate Winner!

Read More »
Knowledge Base

 An operation fails in Plesk: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘X’ for key ‘PRIMARY’

Read More »

RoundCube webmail is not accessible on Plesk: DATABASE ERROR: CONNECTION FAILED

Read More »

Plesk repair db shows an error: There is no IP pool with ID 0

Read More »

How to restore a user database from a Plesk backup

Read More »

Hosting Wiki

  • Server Redundancy
  • AMP
  • Bare Metal Server
  • Backup
  • MySQL
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • SQL
  • Domain
  • Hosting Control Panel
  • Plesk
  • SQL database
  • NoSQL Database
  • Web Server
  • DNS Server
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family