Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

When a command fails

Troubleshooting the exp:user commands by symptom - nothing changed, an account or group not found or ambiguous, a protected account, a publish that waits, a password from standard input, the wrong host in a link, a bulk…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/user-management-from-the-console/when-a-command-fails.md

On this page

When a command fails

Every command ends with PASS, or with FAIL (exit <code>) and the reasons above it. Start with the exit code.

What you'll have at the end

The cause of the failure and the fix.

By exit code

Exit codeMeaningWhat to do
1failed or refusedread the FAIL: lines; the tables below explain them
2usagean option or value is wrong; run the command with --help
3the database is not reachablecheck the database server and site.ini [DatabaseSettings], or run with the right --siteaccess
4internal errorlook into var/log/error.log and report it with the command you ran

Nothing changed

What you seeWhy, and what to do
Would change (dry run, nothing changed; --apply makes the change)The command ran as a dry run. Add --apply.
--apply and --dry-run exclude each otherPass only one of them.
the account is disabled already: nothing to doA warning, not an error. The account is in the state you asked for.

The account or group is not found

What you seeWhy, and what to do
no account has the login ...Check the spelling, or use the id from exp:user:list --search=.... A login is compared in any case.
2 accounts share the e-mail address ...Name the account by its login or id. exp:user:list --state=duplicate_email lists such accounts.
2 user groups are named ...Name the group by its node id. exp:user:groups shows the node ids.
node ... is not a user groupThe node id belongs to something else. Use exp:user:groups to find the group.
--as: ... or UserCreatorID ... names no accountThe user who acts does not exist. Name an existing account with --as.

The command refuses

What you seeWhy, and what to do
this is the last enabled account with every rightEnable or create another administrator first.
the administrator account ... is protected, the anonymous user ..., the user who acts ...A protected account is never disabled or removed (Protected accounts).
the account was never activated on enableUse exp:user:approve <user> --apply.
the registration does not wait on approveThe account is active already, or has no registration that waits. Check it with exp:user:show.
A group cannot be deletedIt still has members or subgroups. Move them first.
A bulk change refuses --confirmThe count no longer matches what the filters select. Run the dry run again and use the new count.
An import refuses the fileIt has a password column, or neither or both of --send-activation and --disabled.
An import refuses rowsEach refused row has its line and reasons: a login or address that is not valid, or a group that does not exist. Fix the rows and import again; existing logins are skipped.
exp:user:2fa --reset cannot resetThe extension sevenx_authentication_2fa is not active.

Passwords and mails

What you seeWhy, and what to do
--password-stdin: standard input holds no passwordPipe or redirect the password into the command. An interactive terminal waits for one line.
choose exactly one of --send-link, --generate and --password-stdinexp:user:reset-password needs one way to the password.
A password check failsThe password does not pass the password rules. Use --generate, or a longer password.
The reset or activation link points at the wrong hostThe link is built from the siteaccess. Run the command with --siteaccess=<the public siteaccess>.
the publish waits after createA workflow holds the account, usually the approval of new accounts: exp:user:pending, then exp:user:approve.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x