Unable to start server on linux

Hi everyone,

I have an application that I am working on at the moment and when I run it on my windows workstation it works fine.

However I try to start it using WSL(Ubuntu) or on a remote server (Fedora) - the server does not start.

I have forgotten the server / updated all dependencies / run “install” - and it still refuses to start…

If anyone has any thoughts, I would be most grateful.

Here is the stacktrace:

can't cast Complex Object Type Struct to a boolean value


/root/.CommandBox/cfml/system/services/ServerService.cfc: line 631
629:
630:       // Trace assumes debug
631:       serverInfo.debug = serverInfo.trace || serverInfo.debug;
632:       // Debug assumes verbose
633:       serverInfo.verbose = serverInfo.debug || serverInfo.verbose;
called from /root/.CommandBox/cfml/system/modules_app/server-commands/commands/server/start.cfc: line 173
called from /root/.CommandBox/cfml/system/services/CommandService.cfc: line 443
called from /root/.CommandBox/cfml/system/services/CommandService.cfc: line 225
called from /root/.CommandBox/cfml/system/Shell.cfc: line 865
called from /root/.CommandBox/cfml/system/Shell.cfc: line 680
called from /root/.CommandBox/cfml/system/Bootstrap.cfm: line 165

lucee.runtime.exp.ExpressionException: can't cast Complex Object Type Struct to a boolean value
        at lucee.runtime.type.util.StructSupport.castToBooleanValue(StructSupport.java:172)
        at lucee.runtime.op.Caster.toBooleanValue(Caster.java:262)
        at system.services.serverservice_cfc$cf.udfCall1(/commandbox/system/services/ServerService.cfc:631)
        at system.services.serverservice_cfc$cf.udfCall(/commandbox/system/services/ServerService.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:699)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:586)
        at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1952)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
        at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1795)
        at system.modules_app.server_commands315.commands.server.start_cfc$cf.udfCall(/commandbox/system/modules_app/server-commands/commands/server/start.cfc:173)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:699)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:586)
        at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1952)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
        at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1795)
        at system.services.commandservice_cfc$cf.udfCall1(/commandbox/system/services/CommandService.cfc:443)
        at system.services.commandservice_cfc$cf.udfCall(/commandbox/system/services/CommandService.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
        at lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:804)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
        at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1795)
        at system.services.commandservice_cfc$cf.udfCall1(/commandbox/system/services/CommandService.cfc:225)
        at system.services.commandservice_cfc$cf.udfCall(/commandbox/system/services/CommandService.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:586)
        at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1933)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
        at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1776)
        at system.shell_cfc$cf.udfCall4(/commandbox/system/Shell.cfc:865)
        at system.shell_cfc$cf.udfCall(/commandbox/system/Shell.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
        at lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:804)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
        at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1795)
        at system.shell_cfc$cf.udfCall3(/commandbox/system/Shell.cfc:680)
        at system.shell_cfc$cf.udfCall(/commandbox/system/Shell.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:699)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:586)
        at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1952)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
        at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1795)
        at root._commandbox46.cfml.system.bootstrap_cfm$cf.call(/root/.CommandBox/cfml/system/Bootstrap.cfm:165)
        at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1057)
        at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:949)
        at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:930)
        at 1iuo3bmtrdpd8.call(Unknown Source)
        at lucee.runtime.compiler.Renderer.tag(Renderer.java:107)
        at lucee.runtime.compiler.Renderer.script(Renderer.java:97)
        at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:65)
        at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:220)
        at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:339)
        at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:158)
        at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:595)

The trace or debug flag is getting set to an empty string. Prolly a dynamic env var thats missing and defaulting to the empty string. Trace through your config and .env file

Thanks Brad!

At the commandbox cli I had (while in Windows) run:
set verboseErrors = true

Setting it to FALSE - fixed the issue in WSL.
(Hasn’t fixed the Fedora issue… I’ll start a new thread for that one)

Lastly: Does that mean there might be a bug, then?
Why would setting it to true - be an issue in WSL?

Verbose error has nothing to do with servers, and that’s not even the right command to change that flag, so I’m not really sure what your situation is.

Ummm sure it is the right command…
(Well apart from the fact that I missed the config at the start…)

\system\services\ServerService.cfc: line 631
629:
630:       // Trace assumes debug
631:       serverInfo.debug = serverInfo.trace || serverInfo.debug;
632:       // Debug assumes verbose
633:       serverInfo.verbose = serverInfo.debug || serverInfo.verbose;
called from \system\modules_app\server-commands\commands\server\start.cfc: line 173
called from \system\services\CommandService.cfc: line 443
called from \system\services\CommandService.cfc: line 225
called from \system\Shell.cfc: line 865
called from \system\Shell.cfc: line 680
called from \system\Bootstrap.cfm: line 165

To enable full stack trace, run config set verboseErrors=true

And it is the only thing I changed - between it not working - and it working.