CommandBox does not read the server.json

I have the following server.json:

`

{
“force”:true,
“web”:{
“rewrites”:{
“enabled”:true
},
“host”:“www.monsitessl.fr”,
“directoryBrowsing”:true,
“http”:{
“port”:55640,
“enable”:true
},
“SSL”:{
“enable”:true,
“port”:443,
“cert”:“E:/openssl/cert.cer”,
“key”:“E:/openssl/priv.pem”,
“keyPass”:“myPassword”
}
}
}

`

When I start server typing

server start

the server.json seems ignored. The server opens in a new port, does not open an https connection.

Is this a bug?

I’m on Windows 7 with latest comandbox.

Thanks

Francesco,

You’ll need to upgrade to CommandBox 3.0.1. box upgrade --force - or if you’re on Bleeding Edge box upgrade --latest —force. There was a bug in 3.0.0 that caused some of the server.json properties to be ignored.

Jon

Jon,

I’m trying to update but I get a 403 forbidden error:

`

403 Forbidden
http://downloads.ortussolutions.com/ortussolutions/commandbox/3.0.1/commandbox-c
fml-3.0.1.zip
E:\CommandBox\cfml\system\util\ProgressableDownloader.cfc: line 209
207: // If we didn’t get a successful response, bail here
208: if( connection.responseCode < 200 || connection.responseCode > 299
) {

209: throw( message=’#connection.responseCode# #connection.responseM
essage#’, detail=arguments.downloadURL );

210: }

211:

called from E:\CommandBox\cfml\system\util\ProgressableDownloader.cfc: line 35
33:
34: // Get connection object, following redirects.

35: var info = resolveConnection( arguments.downloadURL, arguments.redir
ectUDF );

36: var connection = info.connection;

37: var netURL = info.netURL;

called from E:\CommandBox\cfml\system\modules\system-commands\commands\upgrade.c
fc: line 145
143: function( status ) {
144: progressBar.update( argumentCollection = status );

145: }

146: );

147:

called from E:\CommandBox\cfml\system\services\CommandService.cfc: line 260
258: // Run the command
259: try {

260: var result = commandInfo.commandReference.CFC.run( argument
Collection = parameterInfo.namedParameters );

261: } catch( any e ){

262: // Clean up a bit

called from E:\CommandBox\cfml\system\services\CommandService.cfc: line 124
122: var commandChain = resolveCommand( line );
123:

124: return runCommand( commandChain, line );

125: }

126:

called from E:\CommandBox\cfml\system\Shell.cfc: line 455
453: }
454: } else {

455: var result = variables.commandService.runCommandLine( argum
ents.command );

456: }

457:

called from E:\CommandBox\cfml\system\Shell.cfc: line 411
409: // If there’s input, try to run it.
410: if( len( trim( line ) ) ) {

411: callCommand( command=line, initialCommand=true );

412: }

413:

called from E:\CommandBox\cfml\system\Bootstrap.cfm: line 112
110:
111: // Running the “reload” command will enter this while loop once

112: while( shell.run( silent=silent ) ){

113: clearScreen = shell.getDoClearScreen();

114:

403 Forbidden
at system.util.progressabledownloader_cfc$cf.udfCall(E:\CommandBox\cfml\syst
em\util\ProgressableDownloader.cfc:209):209
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(Variab
leUtilImpl.java:742):742
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590

at system.util.progressabledownloader_cfc$cf.udfCall(E:\CommandBox\cfml\syst
em\util\ProgressableDownloader.cfc:35):35
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:642):642
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1761):1761
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(Variab
leUtilImpl.java:742):742
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590

at system.modules.system_commands315.commands.upgrade_cfc$cf.udfCall(E:\Comm
andBox\cfml\system\modules\system-commands\commands\upgrade.cfc:145):145
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:216):216
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:643):643
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1778):
1778
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableU
tilImpl.java:773):773
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.
java:1600):1600
at system.services.commandservice_cfc$cf.udfCall1(E:\CommandBox\cfml\system
services\CommandService.cfc:260):260
at system.services.commandservice_cfc$cf.udfCall(E:\CommandBox\cfml\system\s
ervices\CommandService.cfc):-1
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:766):766
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(Variab
leUtilImpl.java:742):742
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590

at system.services.commandservice_cfc$cf.udfCall1(E:\CommandBox\cfml\system
services\CommandService.cfc:124):124
at system.services.commandservice_cfc$cf.udfCall(E:\CommandBox\cfml\system\s
ervices\CommandService.cfc):-1
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:642):642
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1761):1761
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(Variab
leUtilImpl.java:742):742
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1590):1590

at system.shell_cfc$cf.udfCall2(E:\CommandBox\cfml\system\Shell.cfc:455):455

at system.shell_cfc$cf.udfCall(E:\CommandBox\cfml\system\Shell.cfc):-1
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:216):216
at lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.
java:775):775
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableU
tilImpl.java:773):773
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.
java:1600):1600
at system.shell_cfc$cf.udfCall2(E:\CommandBox\cfml\system\Shell.cfc:411):411

at system.shell_cfc$cf.udfCall(E:\CommandBox\cfml\system\Shell.cfc):-1
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:216):216
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:643):643
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1778):
1778
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableU
tilImpl.java:773):773
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.
java:1600):1600
at commandbox.cfml.system.bootstrap_cfm$cf.call(E:\CommandBox\cfml\system\Bo
otstrap.cfm:112):112
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:951):951
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:903):903
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.jav
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:3
5):35
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2262):2262
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2225):2225
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:456):
456
at lucee.runtime.engine.CFMLEngineImpl.cli(CFMLEngineImpl.java:760):760
at lucee.loader.engine.CFMLEngineWrapper.cli(CFMLEngineWrapper.java:267):267

at luceecli.CLIMain.run(CLIMain.java:223):223
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method):-2
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source):-1
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source):-1
at java.lang.reflect.Method.invoke(Unknown Source):-1
at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:205):205
at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:685):685

`

That’s not good…. :frowning: There were some issues yesterday morning due to a new proxy setup on the Ortus Solutions site, but I thought those were resolved. I’m sure Luis or Brad will resolve that ASAP.

In the meantime, you can download a new version from the staging server and swap your version out:

http://integration.stg.ortussolutions.com/artifacts/ortussolutions/commandbox/3.0.1/commandbox-win-3.0.1.zip

Directory link: http://integration.stg.ortussolutions.com/artifacts/ortussolutions/commandbox/3.0.1/

Thanks for the extra links Jon.

Francesco we’re tweaking some security settings on our new WAF today and it was throwing 403s for some of the download URLs that got hit too often.

Please give the update a try again.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

I’ve installed the new version using the link provided by Jon.

Thanks