Skip to content

'app:user:reset' might fail due to "Error: proc_open(): posix_spawn() failed: Permission denied" dependng on current working dir #1232

@nevart

Description

@nevart
# /var/www/userli/www/bin/console app:user:reset -u user@example.org
Really reset user? This will clear their mailbox: (yes|no) yes
New password:
Repeat password:

Resetting user user@example.org ...

11:08:52 CRITICAL  [console] Error thrown while running command "'app:user:reset' -u 'user@example.org'". Message: "The command "'openssl' 'pkey'" failed.\n\nWorking directory: /home/user\n\nError: proc_open(): posix_spawn() failed: Permission denied" ["exception" => Symfony\Component\Process\Exception\ProcessStartFailedException^ { …},"command" => "'app:user:reset' -u 'user@example.org'","message" => """  The command "'openssl' 'pkey'" failed.\n  \n  Working directory: /home/user\n  \n  Error: proc_open(): posix_spawn() failed: Permission denied  """]

In Process.php line 387:

  The command "'openssl' 'pkey'" failed.

  Working directory: /home/user

  Error: proc_open(): posix_spawn() failed: Permission denied


app:users:reset [-u|--user USER] [--dry-run]

Please ensure to switch to a sensible working directory first, before executing the command, for example /tmp, or preferably, a temp directory within /tmp, which should be removed, afterwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions