[commandbox 1.1.0] Attempting to use cfadmin from CLI

I am attempting to use the cfadmin function from the CLI:

command:
box admincompile.cfm

error:
`

Railo 4.2.1.000 Error (expression)
Message: Cannot access, no password is defined
Stacktrace:
The Error Occurred in
/Users/XXXXXX/admincompile.cfm: line 2
1:
2: admin type=“server” action=“createArchive” file=“foo”;
3:
Java Stacktrace:
Cannot access, no password is defined

`

Any ideas on either how to set the password, or make it not required?

Thanks!

Ken

Well, isn’t that a catch 22 :slight_smile:

The actual CLI engine doesn’t run inside a servlet container and isn’t bound to a port so there’s no way to hit the administrator from any URL. (The embedded server, of course is different).

Railo’s passwords are stored in an XML and if you search through your ~/.CommandBox folder, you can probably find it. I’m wanting to say

.CommandBox\engine\cfml\cli\cfml-server\context\railo-server.xml

Now, you can copy a pre-encrypted password from another Railo server, or use this little project I put together a while back to encrypt the admin password for you.
https://github.com/bdw429s/RailoPasswordManagement

Read the docs on the two separate password formats Railo uses. An older encrypted one, and a new hashed one.

Also, note we have a dedicated mailing list just for CommandBox here:

https://groups.google.com/a/ortussolutions.com/forum/#!forum/commandbox

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com