Results 1 to 6 of 6

Thread: Installation password locked

  1. #1
    User tetrijeb's Avatar
    Join Date
    04-19-12.
    Location
    Bosnia&Herzegovina
    Posts
    114

    Default Installation password locked

    Hello,

    I need help with install password recovery. I am trying to use Contao 4.4 with Xampp.

    I am trying to unlock password for installation after I had typed it wrong three times in the row. The message I am getting is:

    Code:
    An error occurred
    The install tool has been locked!
    
    For security reasons, the install tool has been locked after a wrong password had been entered more than three times in a row. To unlock it, run vendor/bin/contao-console contao:install:unlock on the command line.
    I didn't found exact explanation anywhere in Internet. Could someone provide me some clarification, please?
    Last edited by tetrijeb; 01/27/2018 at 19:54.

  2. #2
    User tetrijeb's Avatar
    Join Date
    04-19-12.
    Location
    Bosnia&Herzegovina
    Posts
    114

    Default

    I have finally found sollution on German community forum.

    In command line I went to folder where my Contao installation is located and typed:

    Code:
    php vendor/bin/contao-console contao:install:unlock
    What I was doing wrong before, is that I omitted "php" in command.

    *Moderator can delete this thread, or whatever he/she found convenient.

  3. #3
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Depending on the Contao version you could also have deleted the file install_lock in var/ or var/cache/, respectively.
    Contao Community Moderator
    → Support options

  4. #4
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    Quote Originally Posted by tetrijeb View Post
    What I was doing wrong before, is that I omitted "php" in command.
    It is not wrong to omit the php from the command line since the contao-console script already contains the shebang #!/usr/bin/env php, so the PHP interpreter should parse the script.
    Contao Community Moderator
    → Support options

  5. #5
    User tetrijeb's Avatar
    Join Date
    04-19-12.
    Location
    Bosnia&Herzegovina
    Posts
    114

    Default

    Quote Originally Posted by xchs View Post
    It is not wrong to omit the php from the command line since the contao-console script already contains the shebang #!/usr/bin/env php, so the PHP interpreter should parse the script.
    But when I tried to use it without it, I was getting error:

    Code:
     The term 'vendor/bin/contao-console' is not recognized as the name of a cmdlet, function, s
    cript file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is cor
    rect and try again.
    At line:1 char:1
    + vendor/bin/contao-console contao:install:unlock
    + ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (vendor/bin/contao-console:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

  6. #6
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,292

    Default

    I know. I just wanted to make it clear that it's not wrong to call the script without the php command. It depends on the hosting environment. In your case, it looks like the script is not running correctly with the PHP CLI executable.
    Contao Community Moderator
    → Support options

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •