• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Unknown Plesk command-line utility: "repair"

Nullmind

New Pleskian
Hello,

I've searched on web, but I've found nothing. I can't access to my admin panel in plesk, so I've tried to run autoinstaller again without success, and I've trouble with repair utility too so I can't repair my installation that is supposed to be broken I guess.

When I tried to login in my plesk admin panel

Schermata 2016-09-12 alle 11.47.30.jpg

if I run plesk repair command I get this

Code:
# plesk repair
Usage: plesk repair ASPECT [OPTION]

Run Plesk check and repair tool.
Provide aspect 'all' to check and repair all aspects in the interactive mode.

Available aspects: all, mail, web, dns, ftp, db, mysql, fs, installation.

Available options:
  -y - Try to repair all found issues.
  -n - Do not repair anything, check only.
  -v - Display more detailed output (verbose mode).

So I suppose that the repair utility is here and working. But when I run repair installation or repair all, I get this message

Code:
:/var/PP/psa_tmp# plesk repair all -n
Unknown Plesk command-line utility: "repair"

:/var/PP/psa_tmp# plesk repair installation
Unknown Plesk command-line utility: "repair"

Code:
# more /opt/psa/version
12.5.30 Ubuntu 14.04 1205160608.09

ps. note that if I run #plesk -v I get this

Code:
# plesk -v
open /usr/local/psa/version: no such file or directory

What should I do?

Thanks, Antonio
 
Last edited:
First of all try to fix your broken installation with

# /usr/local/psa/admin/sbin/autoinstaller --select-release-current --reinstall-patch --upgrade-installed-components

after that run

# plesk repair all
 
ok, I've run the autoinstaller command, but still the same problem. On login too

Code:
===> Cumulative upgrade of Plesk (final stage) has been completed.
 Trying to install site isolation settings... config found. Nothing to be done Trying to update Components... done
 Trying to add header to file /opt/psa/etc/webalizer.conf... file /opt/psa/etc/webalizer.conf already contains required header
[2016-09-12 11:53:09] ERR [panel] No such file or directory
[2016-09-12 11:53:09] ERR [panel] Lock Manager error: 'No such file or directory'.:
0: /opt/psa/admin/plib/Lock/Manager/Hierarchical.php:120
    Plesk\Lock\Manager_Hierarchical->_getClient()
1: /opt/psa/admin/plib/Lock/Manager/Hierarchical.php:193
    Plesk\Lock\Manager_Hierarchical->_applyLock(string '', object of type Plesk\Lock\Resource)
2: /opt/psa/admin/plib/Lock/Manager/Hierarchical.php:155
    Plesk\Lock\Manager_Hierarchical->lock(object of type Plesk\Lock\Resource, string '')
3: /opt/psa/admin/plib/Lock/Manager.php:83
    Plesk\Lock\Manager->lock(integer '1', array, string '', array)
4: /opt/psa/admin/plib/Lock.php:34
    Plesk\Lock::write(object of type Plesk\Lock\Object_NodeService, string '', array)
5: /opt/psa/admin/plib/Db/Table/Dictionary/ServiceNodeEnvironment.php:80
    Db_Table_Dictionary_ServiceNodeEnvironment->sync()
6: /opt/psa/admin/plib/Service/Node/Environment.php:32
    Service_Node_Environment->_sync(object of type Service_Node_Environment_Components_Packages_Unix)
7: /opt/psa/admin/plib/Service/Node/Environment.php:142
    Service_Node_Environment->componentsPackagesUnix(array)
8: /opt/psa/admin/plib/Service/Driver/Packages/Unix.php:19
    Service_Driver_Packages_Unix->_components()
9: /opt/psa/admin/plib/Service/Driver/Packages/Unix.php:32
    Service_Driver_Packages_Unix->sync(boolean false)
10: /opt/psa/admin/plib/Service/Driver/Core/Plesk.php:11
    Service_Driver_Core_Plesk->syncAllData()
11: /opt/psa/admin/plib/Db/Table/Row/ServiceNode/ManagementNode.php:15
    Db_Table_Row_ServiceNode_ManagementNode->refreshProperties()
12: /opt/psa/admin/plib/api-common/AbstractCu.php:1891
    AbstractCu::componentUpdate()
13: /opt/psa/admin/plib/Upgrade/upgrade.php:21
ERROR: Plesk\Lock\Exception: Lock Manager error: &#039;No such file or directory&#039;. (Hierarchical.php:120)<br />
<br><a href='http://kb.plesk.com/plesk-error/search?metaId=a3222217eea6a0e1150b867ec32b64ff&messageId=f66218a80c788b4bd743d514eaef604e&file=Hierarchical.php&line=120&type=Plesk%5CLock%5CException&version=12.5.30&message=Lock+Manager+error%3A+%22No+such+file+or+directory%22.' target='_blank'>Search for related Knowledge Base articles</a>Curl failed: Timeout was reached
Some steps of upgrade failed. Run upgrade with option --repair to rerun failed steps.


WARNING!
Some problems are found during execute post install/upgrade actions(see log file: /var/log/plesk/install/plesk_12.5.30_installation.log)

Continue...


 * Stopping sw-cp-serverd sw-cp-server

   ...done.

Starting sw_engine service... invoke-rc.d: initscript sw-engine, action "status" failed.

done

Starting sw_cp_server service... invoke-rc.d: initscript sw-cp-server, action "status" failed.

done

Starting mysql service... already started

Starting named service... already started

Starting mailer service... already started

Starting spamfilter service... not installed

Starting tomcat service... not installed

Starting apache service... already started

Starting superserver service... already started

Starting sw_engine service... already started


 System start/stop links for /etc/init.d/xinetd already exist.


                            Congratulations!

        All stages of the installation/upgrade have been finished.

        psa is now running on your system.

        To complete the system configuration process, please proceed to URL:

        CUT

        Use 'root' and '<YOUR root PASSWORD>' as login name and password in case of fresh installation.

        Use 'admin' and '<YOUR admin PASSWORD>' as login name and password in case of upgrade,

        or if Plesk is already configured.


        Further, use the following commands to start and stop the system:

        /etc/init.d/psa start and

        /etc/init.d/psa stop respectively.


Installing patches...

File downloading PSA_12.5.30/microupdates/MU8/deb-Ubuntu-14.04-x86_64/_usr_lib_plesk-9.0_php_session_cleaner: completed.

File downloading PSA_12.5.30/microupdates/MU16/dist-deb-Ubuntu-14.04-x86_64/key-handler: completed.

File downloading PSA_12.5.30/microupdates/MU23/dist-deb-Ubuntu-14.04-x86_64/postfix-sendmail-wrapper: completed.

File downloading PSA_12.5.30/microupdates/MU38/dist-deb-Ubuntu-14.04-x86_64/plesk_site_preview.conf: completed.

 Trying to start service mysql... mysql start/running, process 5762

done

 Trying to establish test connection... connected

done

STOP update_history

Patches were installed successfully.

The changes were applied successfully.



root200:/var/PP/psa_tmp#

and

Code:
# plesk repair all
Unknown Plesk command-line utility: "repair"
 
ok found here with locate command

/opt/psa/bin/repair

Code:
# /opt/psa/bin/repair -all
[2016-09-12 12:33:35] ERR [panel] No such file or directory

but command is still running
 
result of repair. Note that this error is the same that I have when I tried to login in my admin panel on browser

Code:
# /opt/psa/bin/repair -all
[2016-09-12 12:33:35] ERR [panel] No such file or directory
Curl failed: Timeout was reached
Lock Manager error: 'No such file or directory'.
 
What about

# ls -la /usr/local/psa/version*

or

# ls -la /opt/psa/version*
 
I see that there is no answer, maybe I've find a bug or I'm in a situation where it is better to delete everything, so... if it is not possible to repair the installation, will I be able to reinstall Plesk from scratch without loosing my websites? ( because they are still working even if i'm not able to login into plesk )
 
Code:
:~# ls -la /usr/local/psa/version*
ls: cannot access /usr/local/psa/version*: No such file or directory
 
Make sure that /usr/local/psa is linked to /opt/psa:

# ls -lah /usr/local/psa
lrwxrwxrwx 1 root root 8 Jul 13 2015 /usr/local/psa -> /opt/psa

Restore this symlink if missing.
 
thank you Igor, I've restored the missing symlink, but problem is still here. Should I re-run the autoinstaller command?

PS. sorry I was too fast at writing, plesk is now working as expected :cool:

Code:
root@:~#  ls -lah /usr/local/psa
ls: cannot access /usr/local/psa: No such file or directory
root@:~# ln -s /opt/psa /usr/local/psa
root@:~# ls -lah /usr/local/psa
lrwxrwxrwx 1 root root 8 Sep 13 11:29 /usr/local/psa -> /opt/psa
root@:~#
 
Back
Top