I want to use atlas-cli with a development confluence server running. I could start session using
atlas-cli -p 8080 --server <servername> --context-path '/'
But I am assuming the 'pi' command is using username/password = 'admin/admin' and that is why I am getting this unauthorized error when it tries to install.
Is there a way to specify username/password to atlas-cli?
Community moderators have prevented the ability to post new answers.
Got the answer. Thought this would be useful to others as well so documenenting it here.
Set the environment variable ATLAS_OPTS. For C-Shell,
setenv ATLAS_OPTS "-Dusername=admin -Dpassword=admin"
This works like charm.
Possible use:
You have a development server and a production server both are connected to corporate LDAP. Now you want to make changes to the plugin code. Test it on development server the install on production server. Do it like this,
Keep two instances of "atlas-cli" running in two terminals; one for development server and one for development server, using other command line options of atlas-cli. Like this,
atlas-cli --server devwiki.example.com -p 8082 --context-path / --cli-port 4330
for dev server and for prod server like this
atlas-cli --server prodwiki.example.com -p 8080 --context-path / --cli-port 4331
notice that "--cli-port" is different for both the instance of "atlas-cli".
It doesn't look like the pi command accepts a username or password value looking at the documentation.
https://developer.atlassian.com/display/DOCS/atlas-cli
You may have to use atlas-install-plugin (which requires you to compile separately first).
https://developer.atlassian.com/display/DOCS/atlas-install-plugin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep, using atlas-install-plugin will allow you to customise the username and password.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You did not say which OS you are running on. If you are running on windows you will need to run the atlas-cli command as Administrator. There is no login required to install a plugin.
If it is an Unix like system then you probably need to run as root. A sudo approach would work to restrict access.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The server (Confluence instance) is running on machine A which is GNU/Linux, And I am developing on Machine B which is also GNU/Linux. I don't understand what difference it will make if I run atlas-cli using sudo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What are your permissions, owner, group on the files and directories you are trying to write to? You are probably being denied access because your default login cannot write to those locations. Using sudo will allow you to be the appropriate userid.
I am also assuming that atlas-cli does not have a setuid or setgid bits set which is another way to get the proper user or group permissions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But when I do atlas-run and atlas-cli > pi it works fine. It is just that the problem is occurring when I try to connect to a remove server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am assuming your command that works is running locally on your development environment and installing on your development environment or you have copied the plugin to the confluence environment and you ran the command on the confluence server. Assuming either one is your working case, then why not try to use remote shell and run your command that way?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.