Articles in this section

Filesystem check: Incorrect type of /var/lock. Expected: symlink. Actual: directory

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

Checking the file system in Tools & Settings > Diagnose & Repair or with the command-line returns an error

There are incorrect permissions on some items: /var/lock

# plesk repair fs -v
[...]
Incorrect type of /var/lock. Expected: symlink. Actual:
directory

Cause

/var/lock is a directory while it should be a symlink.

Resolution

  1. Connect to the server via SSH

  2. Move the /var/lock directory:

    # mv /var/lock{,.backup}

  3. Recreate the symlink by repairing the file system:

    # plesk repair fs -system -y

Was this article helpful?

Comments

4 comments
Date Votes
  • Thanks for editing this comment- but doing nothing about actually providing a fix.

    it is left with these;

    There are incorrect permissions on some items: 
    ERROR There are incorrect permissions on some items: /var/log/plesk
    ERROR There are incorrect permissions on some items: /opt/psa/PMM/tmp
    ERROR There are incorrect permissions on some items: /opt/psa/PMM/rsessions
    ERROR There are incorrect permissions on some items: /var/log/plesk/PMM

    But it tries to repair them thinking is a full Debian system vs ubuntu (what variant I am running)

    and on the CLI it has these errors:

    ERROR:Cannot find deb-archive for package

    0
  • Same problem here with 3 different servers.

    0
  • Emmanuel Delgado If your error is about "/var/log" instead of "/var/lock," like the other comment, it is a false positive, typically caused because the command can't run properly. It's best to reach out to Plesk Support to investigate.

    0
  • My error was about /var/lock and the solution has worked in a split second.

    Thank you

    1

Please sign in to leave a comment.