Sorry for the delay, here is the rundown.
Shut down via systemctl then on restart via cmdline:
/usr/local/bin/box server start /root/pollmodbus/server-pollmodbus.json
× | Starting Server
| > key [STOPSOCKET] doesn't exist
|------------------------------
ERROR (5.2.1+00295)
key [STOPSOCKET] doesn't exist
/root/.CommandBox/cfml/system/services/ServerService.cfc: line 2142
2140: **/
2141: function isServerRunning( required struct serverInfo ){
2142: var portToCheck = serverInfo.stopSocket;
2143: if( serverInfo.HTTPEnable ) {
2144: portToCheck = serverInfo.port;
called from /root/.CommandBox/cfml/system/services/ServerService.cfc: line 283
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 345
called from /root/.CommandBox/cfml/system/services/CommandService.cfc: line 158
called from /root/.CommandBox/cfml/system/Shell.cfc: line 770
called from /root/.CommandBox/cfml/system/Bootstrap.cfm: line 119
lucee.runtime.exp.ExpressionException: key [STOPSOCKET] doesn't exist
at lucee.runtime.type.util.StructSupport.invalidKey(StructSupport.java:67)
at lucee.runtime.type.StructImpl.get(StructImpl.java:149)
at lucee.runtime.util.VariableUtilImpl.get(VariableUtilImpl.java:278)
at lucee.runtime.PageContextImpl.get(PageContextImpl.java:1502)
at system.services.serverservice_cfc$cf.udfCall4(/commandbox/system/services/ServerService.cfc:2142)
at system.services.serverservice_cfc$cf.udfCall(/commandbox/system/services/ServerService.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217)
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:779)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1710)
at system.services.serverservice_cfc$cf.udfCall1(/commandbox/system/services/ServerService.cfc:283)
at system.services.serverservice_cfc$cf.udfCall(/commandbox/system/services/ServerService.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:207)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:681)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:568)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1917)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:864)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1729)
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:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:207)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:681)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:568)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1917)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:864)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1729)
at system.services.commandservice_cfc$cf.udfCall1(/commandbox/system/services/CommandService.cfc:345)
at system.services.commandservice_cfc$cf.udfCall(/commandbox/system/services/CommandService.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:207)
at lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:792)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:864)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1729)
at system.services.commandservice_cfc$cf.udfCall1(/commandbox/system/services/CommandService.cfc:158)
at system.services.commandservice_cfc$cf.udfCall(/commandbox/system/services/CommandService.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:207)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:681)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:568)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1917)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:864)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1729)
at system.shell_cfc$cf.udfCall4(/commandbox/system/Shell.cfc:770)
at system.shell_cfc$cf.udfCall(/commandbox/system/Shell.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:207)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:681)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:568)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1917)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:864)
at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1729)
at _commandbox46.cfml.system.bootstrap_cfm$cf.call(/__commandbox_root/.CommandBox/cfml/system/Bootstrap.cfm:119)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:945)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:837)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:818)
at 1hakaskpj4qmq.call(Unknown Source)
at lucee.runtime.compiler.Renderer.tag(Renderer.java:108)
at lucee.runtime.compiler.Renderer.script(Renderer.java:98)
at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:63)
at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:194)
at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:330)
at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:155)
at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:580)
Running commands
box server info property=stopSocket
36505
box server info --json
{
"accessLogPath":"/root/.CommandBox/server/serverHome/lucee-5.3.7.47/logs/access.txt",
"SSLKeyFile":"",
"webXML":"/root/.CommandBox/server/serverHome/lucee-5.3.7.47/WEB-INF/web.xml",
"rewritesStatusPath":"",
"basicAuthEnable":"true",
"customServerFolder":"/root/.CommandBox/server/serverHome",
"trayOptions":[
{
"image":"/root/.CommandBox/cfml/system/config/server-icons/stop.png",
"action":"stopserver",
"label":"Stop Server"
},
{
"shell":"/bin/bash",
"command":"/usr/local/bin/box server restart 'pollmodbus'",
"hotkey":"R",
"image":"/root/.CommandBox/cfml/system/config/server-icons/restart.png",
"workingDirectory":"/root/pollmodbus/",
"action":"runAsync",
"label":"Restart Server"
},
{
"items":[
{
"path":"/root/pollmodbus/",
"image":"/root/.CommandBox/cfml/system/config/server-icons/folder.png",
"action":"openfilesystem",
"label":"Webroot"
},
{
"path":"/root/.CommandBox/server/serverHome/lucee-5.3.7.47/",
"image":"/root/.CommandBox/cfml/system/config/server-icons/folder.png",
"action":"openfilesystem",
"label":"Server Home"
},
{
"url":"http://0.0.0.0:80",
"image":"/root/.CommandBox/cfml/system/config/server-icons/home.png",
"action":"openbrowser",
"label":"Site Home"
},
{
"url":"http://0.0.0.0:80/lucee/admin/server.cfm",
"image":"/root/.CommandBox/cfml/system/config/server-icons/server_settings.png",
"action":"openbrowser",
"label":"Server Admin"
},
{
"url":"http://0.0.0.0:80/lucee/admin/web.cfm",
"image":"/root/.CommandBox/cfml/system/config/server-icons/web_settings.png",
"action":"openbrowser",
"label":"Web Admin"
}
],
"image":"/root/.CommandBox/cfml/system/config/server-icons/open.png",
"label":"Open..."
},
{
"items":[
{
"disabled":true,
"label":"Engine: lucee 5.3.7+47"
},
{
"path":"/root/pollmodbus/",
"image":"/root/.CommandBox/cfml/system/config/server-icons/folder.png",
"action":"openfilesystem",
"label":"Webroot: /root/pollmodbus/"
},
{
"url":"http://0.0.0.0:80",
"image":"/root/.CommandBox/cfml/system/config/server-icons/home.png",
"action":"openbrowser",
"label":"URL: http://0.0.0.0:80"
},
{
"disabled":true,
"label":"PID: ${runwar.PID}"
},
{
"disabled":true,
"label":"Heap: Not set"
}
],
"image":"/root/.CommandBox/cfml/system/config/server-icons/info.png",
"label":"Info"
}
],
"javaVersion":"",
"dateLastStarted":"December, 22 2020 10:01:00 -0600",
"libDirs":"",
"blockSensitivePaths":true,
"debug":false,
"basicAuthUsers":{},
"SSLPort":"1443",
"rewritesConfig":"/root/.CommandBox/cfml/system/config/urlrewrite.xml",
"webroot":"/root/pollmodbus/",
"WEBRULES":[
"disallowed-methods( methods={trace,track} )",
"regex( pattern='.*/(box.json|server.json|web.config|urlrewrite.xml|package.json|package-lock.json|Gulpfile.js)', case-sensitive=false ) -> { set-error(404); done }",
"regex('/\\.') -> { set-error( 404 ); done }",
"path-prefix( { '/JSDebugServlet','/securityanalyzer','/WSRPProducer' } ) -> { set-error( 404 ); done }",
"regex( pattern='\\.jws$', case-sensitive=false ) -> { set-error( 404 ); done }",
"path-prefix( { '/flex2gateway','/flex-internal','/flashservices/gateway','/cfform-internal','/CFFormGateway', '/openamf/gateway', '/messagebroker' } ) -> { set-error( 404 ); done }",
"regex( pattern='\\.(mxml|cfswf)$', case-sensitive=false ) -> { set-error( 404 ); done }"
],
"errorPages":{},
"serverHome":"/root/.CommandBox/server/serverHome/lucee-5.3.7.47",
"serverConfigDir":"/WEB-INF",
"SSLCertFile":"",
"rewritesLogPath":"/root/.CommandBox/server/serverHome/lucee-5.3.7.47/logs/rewrites.txt",
"accessLogEnable":"false",
"openBrowserURL":"http://0.0.0.0:80",
"id":"serverHome",
"dockEnable":"true",
"minHeapSize":"",
"rules":[],
"trayEnable":"true",
"exitCode":0,
"runwarArgs":" ",
"engineVersion":"5.3.7+47",
"consolelogPath":"/root/.CommandBox/server/serverHome/lucee-5.3.7.47/logs/server.out.txt",
"runwarUndertowOptions":{},
"openBrowser":"true",
"sessionCookieSecure":"false",
"sessionCookieHTTPOnly":"false",
"SSLEnable":"false",
"stopSocket":36505,
"logDir":"/root/.CommandBox/server/serverHome/lucee-5.3.7.47/logs",
"AJPPort":"8009",
"blockFlashRemoting":true,
"rewritesLogEnable":"false",
"trayicon":"/root/.CommandBox/cfml/system/config/server-icons/trayicon-lucee.png",
"AJPEnable":"false",
"runwarXNIOOptions":{},
"status":"running",
"statusInfo":{
"ARGUMENTS":"/bin/bash /root/.CommandBox/cfml/system/modules_app/server-commands/bin/server_spawner.sh /root/.CommandBox/server/serverHome/lucee-5.3.7.47/nohup.log /usr/lib/jvm/java-11-openjdk-armhf/bin/java -jar /root/.CommandBox/lib/runwar-4.3.13.jar --background=true --host 0.0.0.0 --stop-port 36505 --processname pollmodbus [lucee 5.3.7+47] --log-dir /root/.CommandBox/server/serverHome/lucee-5.3.7.47/logs --server-name pollmodbus --tray-enable true --dock-enable true --directoryindex true --timeout 240 --proxy-peeraddress true --cookie-secure false --cookie-httponly false --tray-icon /root/.CommandBox/cfml/system/config/server-icons/trayicon-lucee.png --tray-config /root/.CommandBox/server/serverHome/lucee-5.3.7.47/.trayOptions.json --gzip-enable true --cfengine-name lucee -war /root/pollmodbus/ --web-xml-path /root/.CommandBox/server/serverHome/lucee-5.3.7.47/WEB-INF/web.xml --http-enable true --ssl-enable false --ajp-enable false --open-browser true --open-url http://0.0.0.0:80 --port 80 --urlrewrite-enable false --predicate-file /root/.CommandBox/server/serverHome/lucee-5.3.7.47/.predicateFile.txt",
"COMMAND":"/usr/lib/jvm/java-11-openjdk-armhf/bin/java",
"RESULT":"[INFO ] Runwar: Starting RunWAR 4.3.13\r\n[INFO ] Java version 11.0.9.1 (requires >= 1.8)\r\n[INFO ] Runwar: HTTP2 Enabled:false\r\n[INFO ] Runwar: HTTP sslEnable:false\r\n[INFO ] Runwar: HTTP ajpEnable:false\r\n[INFO ] Runwar: HTTP warFile exists:true\r\n[INFO ] Runwar: HTTP warFile isDirectory:true\r\n[INFO ] Runwar: Starting background pollmodbus [lucee 5.3.7+47] from: /root/.CommandBox/lib/runwar-4.3.13.jar \r\n[INFO ] Starting in background -\r\n"
},
"host":"0.0.0.0",
"welcomeFiles":"",
"rewritesConfigReloadSeconds":"",
"name":"pollmodbus",
"rewritesEnable":"false",
"APPFILESYSTEMPATH":"/root/pollmodbus/",
"blockCFAdmin":"false",
"rulesFile":"",
"verbose":false,
"javaHome":"/usr/lib/jvm/java-11-openjdk-armhf/bin/java",
"cfengine":"lucee@5.3.7+47",
"console":"false",
"allowedExt":"",
"serverHomeDirectory":"/root/.CommandBox/server/serverHome/lucee-5.3.7.47",
"HTTPEnable":"true",
"serverConfigFile":"/root/pollmodbus/server-pollmodbus.json",
"restMappings":"",
"GZipEnable":"true",
"RUNWARJARPATH":"/root/.CommandBox/lib/runwar-4.3.13.jar",
"JVMargs":" ",
"aliases":{},
"engineName":"lucee",
"heapSize":"",
"trace":"false",
"STARTTIMEOUT":"240",
"GZipPredicate":"",
"DEFAULTBASEURL":"http://0.0.0.0:80",
"webConfigDir":"/WEB-INF/lucee-web",
"maxRequests":"",
"PORT":"80",
"WARPath":"",
"SSLKeyPass":"",
"directoryBrowsing":true,
"profile":"development"
}
server-pollmodbus.json
{
"name":"pollmodbus",
"profile":"development",
"web":{
"host":"0.0.0.0",
"http":{
"port":"80"
}
}
}