• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Unable to remove installed language packs

M

Mr. Mike

Guest
Greetings,

I am attempting to remove 4 language packs that are not necessary and that exceed the limit of 4 on the license.

When I attempt to remove the language packs from the admin interface by selecting Languages from the main screen then selecting the language I want to remove and click on remove it get the following error:

ERROR: PleskUtilException


Up Level
localemng failed: error: locale zh-CN not exists

0: localemng.php:85
localemng->localeCall_(string 'remove', array)
1: localemng.php:60
localemng->remove(string 'zh-CN')
2: LocaleManager.php:27
LocaleManager->remove(string 'zh-CN')
3: server.interface.locale.delete.php:31
plesk__server__interface__locale__delete->remove(array)
4: DeleteUIPointer.php:27
DeleteUIPointer->accessItem(string 'POST', NULL null)
5: UIPointer.php:596
UIPointer->access(string 'POST')
6: plesk.php:38

When I check for the installed rpm's, the only psa-locale installed is en-US.

There are actually 4 that give this same error when trying to remove them: Italian, Japanese, Russian, and Chinese.

I also believe that this may be causing the automatic license update feature to break.

Any help on removing them would be greatly appreciated.

Mike
 
It looks like there are extra records about un-existed locales in psa database. Check it with

# mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -e"select * from locales"

After that install missing locales with something like

# /usr/local/psa/admin/sbin/autoinstaller --select-release-latest --install-component ja-JP-locale --install-component ru-RU-locale --install-component it-IT-locale --install-component zh-CN-locale

Then try to remove language packs again.
 
Thanks IgorG,

By re-installing the locales from the command-line and using Plesk to remove each unnecessary langeuage pack cleared the problem.

Thanks for your help.
 
Back
Top