ok, i’m a noob at this package stuff, and I’m trying to update Lucee for CB, so I ran the command “box install lucee” from my app root folder (c:\apps\myapp) and I see a engine.war file in this folder. Starting Lucee now throws an error (“commandbox.system.Shell”,"Version [4.5.1.008] not found for package [lucee]. Available versions are [ 5.0.0+252, 5.0.0-SNAPSHOT+243, 4.5.2+018] Version [4.5.1.008] not found for package [lucee].). Commandbox is running from my Windows user home folder (c:\users\abc.commandbox…) and my version is still 4.5.1. So I’m guessing I need to run the package command “box install lucee” in the c:\users\abc.commandbox\ folder?
Hi Dave, and welcome to CommandBox. There’s never a need to directly install a CF engine unless you simply wanted to download it to look at it
Can you back up a bit and explain exactly what it is you’re trying to do? Are you just wanting to start a Lucee server? If so, and Lucee 4.5.2.018 is ok, all you need to do is run the command “start” in your webroot. That’s it.
my version is still 4.5.1
Can you explain what you mean by this? Are you trying to start a Lucee server that’s version 4.5.1? What version of CommandBox are you using? We don’t currently have that version of Lucee on ForgeBox (no one’s ever asked for it).
Thanks!
~Brad
ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com
Hi Brad,
A little back story may put this in context. I installed CB 2.x about a year or so ago, played with it a little bit, got a site up and running, etc. Worked great. Then I did not touch it for about the past six months or more. I started it again a couple days ago, and decided to run a CB update command, and it instructed me to download the 3.1 update. I downloaded the update, replaced the box.exe file as instructed, started CB again, and it updated. I proceeded to start my server again, and it failed with a message that Lucee 4.5.1 is not supported. You can see what I did and the resulting output message below. I assume the version of Lucee originally installed was 4.5.1 (from the message output below), but I do not know for sure. So I now assume I just need to run the Lucee package update to get the latest stable version installed (5.0.0+252), which I attempted, from the c:\apps\abc folder. I ran the Lucee package update (lucee install) and it placed a war file in the c:\apps\abc folder. Tried to start again and I get the same error message. So I think I’m running the Lucee install command in the wrong folder. Is this correct? If so, where do I run the command?
OS: Windows 10
web root: c:\apps\
I appreciate the help!
Dave
/ ____| | | _ \
___ _ __ ___ _ __ ___ __ _ _ __ | | |) | _____ __
/ _ | ’_ \| '_
_ \ /| '_ \ / _
| _ < / _ \ / /
| () | | | | | | | | | | | (| | | | | (| | |) | () > <
_____/|| || ||| || ||_,|| ||_,|___/ ___//_\ v3.1.1+00383
Welcome to CommandBox!
Type “help” for help, or “help [command]” to be more specific.
CommandBox:apps> cd abc
C:\apps\abc
CommandBox:abc> start
ERROR
Version [4.5.1.008] not found for package [lucee].
Available versions are [ 5.0.0+252, 5.0.0-SNAPSHOT+243, 4.5.2+018]
Ahh, that’s the missing piece. Your really old version of CommandBox was using Lucee 4.5.1 and it’s trying to start the server with that still. If you don’t have any settings you care about in your server config, just run “server forget” from the web root and then start again. Or wipe out the .CommandBox folder in your user home directory and you’ll get a fresh install.
Again, you don’t need to be directly installing the Lucee server at all. That’s a red herring. The way you choose the CF engine to use when starting the server is to use the “cfengine” parameter to the start command.
start cfengine=lucee@5
That would start up the latest version of Lucee 5. Everything will be downloaded for you automatically.
https://ortus.gitbooks.io/commandbox-documentation/content/embedded_server/embedded_server.html
Thanks!
~Brad
ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com
I had to delete the .CommandBox folder to get this to work. Server forget worked but the start command afterwards was tanking with timeout errors. The good news is the server is working again. The bad news all my lucee admin config data is gone. Luckily I kept a backup.
A nice feature for CB in future would be server backup and server restore commands that would save the cfengine admin settings in a backup file and restore the admin settings as needed.
Thanks for the help Brad!