[Solved] V 6.2.2: Can't create admin account

Hello,

following the documentation, imported the VM into Proxmox, configured the network and executed the command cm-run-playbook.
The next step would be to create the admin account, but this fails:

root@localhost ~] # ciphermail-cli auth admin add --name admin --authentication-type username-password
Application run failed
org.springframework.shell.CommandNotCurrentlyAvailable: Command 'auth admin add' exists but is not currently available because backend password is not configured
        at org.springframework.shell.command.CommandExecution$DefaultCommandExecution.evaluate(CommandExecution.java:130)
        at org.springframework.shell.Shell.evaluate(Shell.java:248)
        at org.springframework.shell.Shell.run(Shell.java:159)
        at org.springframework.shell.jline.NonInteractiveShellRunner.run(NonInteractiveShellRunner.java:144)
        at org.springframework.shell.DefaultShellApplicationRunner.run(DefaultShellApplicationRunner.java:66)
        at org.springframework.boot.SpringApplication.lambda$callRunner$4(SpringApplication.java:784)
        at org.springframework.util.function.ThrowingConsumer$1.acceptWithException(ThrowingConsumer.java:82)
        at org.springframework.util.function.ThrowingConsumer.accept(ThrowingConsumer.java:60)
        at org.springframework.util.function.ThrowingConsumer$1.accept(ThrowingConsumer.java:86)
        at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:796)
        at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:784)
        at org.springframework.boot.SpringApplication.lambda$callRunners$3(SpringApplication.java:772)
        at java.base@22.0.2/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
        at java.base@22.0.2/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
        at java.base@22.0.2/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:557)
        at java.base@22.0.2/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:546)
        at java.base@22.0.2/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
        at java.base@22.0.2/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
        at java.base@22.0.2/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
        at java.base@22.0.2/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:611)
        at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:772)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)
        at com.ciphermail.shell.CipherMailShellApplication.main(CipherMailShellApplication.java:137)
        at java.base@22.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)

How do I configure the missing backend password?

Thanks for any suggestion or hint.

Stefan

You should run the ciphermail-cli command as the sa user, not the root user.

The credentials for the cli user are stored in /home/sa/.ciphermail-cli. If you want to run the cli command as root, you can also export the variables from /home/sa/.ciphermail-cli.

export CIPHERMAIL_SHELL_USERNAME=cli
export CIPHERMAIL_SHELL_USERNAME=<password>

ciphermail-cli system ping

Thank you, Martijn!! :+1:

Best wishes,

Stefan