scm-cli-client create-repository error

42 views
Skip to first unread message

Morten Laursen

unread,
Feb 21, 2015, 6:04:21 PM2/21/15
to scmma...@googlegroups.com
Hi all

Can anybody help me decipher what the problem is, when I try to create a mercurial repository using the command line. Using the web interface it works with no problems. list-repositories works from command line.

java -jar scm-cli-client-1.44-jar-with-dependencies.jar --server https://xxx.net/ --user rp --password XXX create-repository --type hg --name MMM
Exception in thread "main" sonia.scm.client.ScmForbiddenException
        at sonia.scm.client.ClientUtil.sendException(ClientUtil.java:205)
        at sonia.scm.client.ClientUtil.checkResponse(ClientUtil.java:109)
        at sonia.scm.client.AbstractClientHandler.create(AbstractClientHandler.java:135)
        at sonia.scm.client.AbstractClientHandler.create(AbstractClientHandler.java:60)
        at sonia.scm.cli.cmd.CreateRepositorySubCommand.run(CreateRepositorySubCommand.java:169)
        at sonia.scm.cli.cmd.SubCommand.run(SubCommand.java:119)
        at sonia.scm.cli.App.run(App.java:164)
        at sonia.scm.cli.App.main(App.java:127)

Thanks.
Morten

Sebastian Sdorra

unread,
Feb 23, 2015, 2:07:55 AM2/23/15
to scmma...@googlegroups.com
Hi,
Do you use an admin account? Or do you use a normal user with the userrepo plugin? Because the userrepo plugin is not supported by the cli.

Sebastian

--
You received this message because you are subscribed to the Google Groups "scmmanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scmmanager+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Morten Laursen

unread,
Feb 24, 2015, 9:20:24 AM2/24/15
to scmma...@googlegroups.com
That was the pronblem, thanks.

Reply all
Reply to author
Forward
0 new messages