Plesk upgrade fails: There is no /etc/localtime file in system

Created:

2016-11-16 13:25:23 UTC

Modified:

2017-08-16 17:19:38 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk upgrade fails: There is no /etc/localtime file in system

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

Plesk upgrade fails with the below error:

There is no /etc/localtime file in system.
Run tzsetup as root to set up your timezone

OR:

*****  problem report *****
There is no /etc/localtime file in system.
Run tzsetup as root to set up your timezone

Cause

Absent or broken /etc/localtime file.

Resolution

  1. Make sure that the /etc/localtime file exists:

    # ls -la /etc/localtime
    -rw-r--r-- 1 root root 1180 Jul 9 2013 /etc/localtime
  2. If it is absent, create symlink corresponding to your timezone, as below:

    # ln -s /usr/share/zoneinfo/GMT /etc/localtime

    # ll /etc/localtime
    lrwxrwxrwx 1 root root 23 Dec 11 21:22 /etc/localtime -> /usr/share/zoneinfo/GMT

For CentOS operating systems the following solution is applicable:

  1. Find required timezone:

    # timedatectl list-timezones | grep Melb
    Australia/Melbourne
  2. Set the required timezone:

    # timedatectl set-timezone `timedatectl list-timezones | grep Melb`
  3. Ensure that the changes are applied:

    # ls -l /etc/localtime
    lrwxrwxrwx 1 root root 41 Nov 3 06:22 /etc/localtime -> ../usr/share/zoneinfo/Australia/Melbourne
    # date
    Tue Nov 3 06:22:55 EST 2015
Have more questions? Submit a request
Please sign in to leave a comment.