on `box server start` getting the error: ```Loadin...
# box-products
t
on
box server start
getting the error:
Copy code
Loading CFConfig into server
   |   | > key [MULTICONTEXT] doesn't exist
Maybe I need to revert to an older version of commandbox-cfconfig?
b
@Travis That means you are on a rather old version of CommandBox and/or CFConfig.
Upgrading either or both will solve that 🙂
t
Considering I'm on the latest commandbox-cfconfig... I'll give the other a try
b
Hmm, can you show me
Copy code
list --system
Also, provide the full error message
If you're on the latest CFConfig, it should literally be impossible to get that error ¯\_(ツ)_/¯
unless you're hitting some other code path (which is why I'd need the error message/stack trace)
t
Here's the rest:
Copy code
/modules/commandbox-cfconfig/models/Util.cfc: line 70
68:
69:                             // Crappy workaround for CommandBox bug where this logic is being done on the fly, but not saved back into the serverInfo struct!
70:                             if( serverInfo.multiContext && not serverInfo.webConfigDir contains '{web-root-directory}' && not serverInfo.webConfigDir contains '{web-context-hash}'  ) {
71:                                     serverInfo.webConfigDir &= '-{web-context-hash}'
72:                             }
called from /modules/commandbox-cfconfig/interceptors/ConfigLoader.cfc: line 398
called from /system/wirebox/system/core/events/EventPool.cfc: line 118
called from /system/wirebox/system/core/events/EventPool.cfc: line 96
called from /system/wirebox/system/core/events/EventPoolManager.cfc: line 59
called from /system/services/InterceptorService.cfc: line 57
called from /system/services/ServerService.cfc: line 1015
called from /system/modules_app/server-commands/commands/server/start.cfc: line 173
called from /system/services/CommandService.cfc: line 345
called from /system/services/CommandService.cfc: line 139
called from /system/Shell.cfc: line 773
called from /system/Shell.cfc: line 593
called from /system/Bootstrap.cfm: line 154
b
@Travis I think I see the issue. The code that defaults that variable for old versions of CommandBox needs to be moved down a new lines until after
serverInfo
is defined
The latest version of CFConfig should work now.
👍 1