Daniel Mejia
07/28/2022, 8:08 PM[38;5;9m[1mYou specified named parameters: serverConfigFile,directory,name but you did not specify a name for: 1
server start name='Staging 1 Api' directory='E:/sites/apistaging1/' serverConfigFile='E:/sites/apistaging1/server.json' --console --verbose --noSaveSettings --noOpenBrowser --noTrayEnable[0m
Daniel Mejia
07/28/2022, 8:08 PMbdw429s
07/28/2022, 8:11 PMbdw429s
07/28/2022, 8:11 PMserver service info --verbose
bdw429s
07/28/2022, 8:11 PMbdw429s
07/28/2022, 8:11 PMDaniel Mejia
07/28/2022, 8:12 PMLooking for server JSON file by convention: E:\sites\apistaging1\/server.json
webroot defaulted to location of server's JSON file: E:\sites\apistaging1\
Service name: staging1api
Service status: paused
Running Processes:
13224 E:\CommandboxHome\cfml\modules\commandbox-service-manager@ortus\bin\ServiceTranslator.exe
Service Dump (debugging):
install staging1api E:/Commandbox/box.exe
set staging1api AppParameters "server start name='Staging 1 Api' directory='E:/sites/apistaging1/' serverConfigFile='E:/sites/apistaging1/server.json' --console --verbose --noSaveSettings --noOpenBrowser --noTrayEnable"
set staging1api AppDirectory E:/Commandbox
set staging1api AppExit Default Restart
set staging1api AppEnvironmentExtra :box_config_nonInteractiveShell=true
set staging1api AppRestartDelay 15000
set staging1api AppStdout E:\logs\staging1api-out.txt
set staging1api AppStderr E:\logs\staging1api-error.txt
set staging1api AppStopMethodConsole 15000
set staging1api DisplayName staging1api
set staging1api ObjectName cf_services@pprod.psomas.corp "****"
set staging1api Start SERVICE_AUTO_START
set staging1api Type SERVICE_WIN32_OWN_PROCESS
bdw429s
07/28/2022, 8:12 PMbdw429s
07/28/2022, 8:13 PMDaniel Mejia
07/28/2022, 8:13 PMbdw429s
07/28/2022, 8:13 PMbdw429s
07/28/2022, 8:13 PMDaniel Mejia
07/28/2022, 8:14 PMbdw429s
07/28/2022, 8:15 PMbdw429s
07/28/2022, 8:15 PMDaniel Mejia
07/28/2022, 8:16 PMbdw429s
07/28/2022, 8:16 PMbdw429s
07/28/2022, 8:17 PMthat is all there is in that log fileThat literally shouldn't be possible. here is the code that throws that error:
var detail = "You specified named parameters: #structKeyList(parameterInfo.namedParameters)# but you did not specify a name for: #parameterInfo.positionalParameters[1]# #chr(10)##chr(9)#" & line;
throw( message='Please don''t mix named and positional parameters, it makes me dizzy.', detail=detail, type="commandException");
}
bdw429s
07/28/2022, 8:17 PMbdw429s
07/28/2022, 8:18 PMDaniel Mejia
07/28/2022, 8:18 PM[38;5;15m[48;5;9mERROR (5.5.2+00578)[0m
[38;5;9m[1mPlease don't mix named and positional parameters, it makes me dizzy.[0m
[38;5;9m[1mYou specified named parameters: serverConfigFile,directory,name but you did not specify a name for: 1
server start name='Staging 1 Api' directory='E:/sites/apistaging1/' serverConfigFile='E:/sites/apistaging1/server.json' --console --verbose --noSaveSettings --noOpenBrowser --noTrayEnable[0m
[38;5;15m[48;5;9mERROR (5.5.2+00578)[0m
[38;5;9m[1mPlease don't mix named and positional parameters, it makes me dizzy.[0m
[38;5;9m[1mYou specified named parameters: serverConfigFile,directory,name but you did not specify a name for: 1
server start name='Staging 1 Api' directory='E:/sites/apistaging1/' serverConfigFile='E:/sites/apistaging1/server.json' --console --verbose --noSaveSettings --noOpenBrowser --noTrayEnable[0m
[38;5;15m[48;5;9mERROR (5.5.2+00578)[0m
[38;5;9m[1mPlease don't mix named and positional parameters, it makes me dizzy.[0m
[38;5;9m[1mYou specified named parameters: serverConfigFile,directory,name but you did not specify a name for: 1
server start name='Staging 1 Api' directory='E:/sites/apistaging1/' serverConfigFile='E:/sites/apistaging1/server.json' --console --verbose --noSaveSettings --noOpenBrowser --noTrayEnable[0m
bdw429s
07/28/2022, 8:18 PMbdw429s
07/28/2022, 8:19 PMbdw429s
07/28/2022, 8:19 PMbdw429s
07/28/2022, 8:20 PMbdw429s
07/28/2022, 8:20 PMbdw429s
07/28/2022, 8:20 PMbdw429s
07/28/2022, 8:20 PMbdw429s
07/28/2022, 8:21 PMDaniel Mejia
07/28/2022, 8:21 PMDaniel Mejia
07/28/2022, 8:21 PM⯠package list --system
Dependency Hierarchy for CommandBox System (1.0.0)
āā⬠commandbox-cfconfig (1.10.0)
ā āā⬠cfconfig-services (1.18.2)
ā āāā lucee-password-util (1.0.3)
ā āāā coldbox ()
ā āāā testbox ()
ā āā⬠JSONPrettyPrint (1.4.1)
ā ā āāā coldbox ()
ā ā āāā testbox ()
ā āā⬠adobe-password-util (1.0.8)
ā ā āāā propertyFile (1.3.2)
ā āā⬠semver (1.2.6)
ā ā āāā testbox ()
ā āāā propertyFile (1.3.2)
āāā commandbox-service-manager@ortus (1.4.1)
āā⬠commandbox-dotenv (2.3.0)
ā āāā propertyFile (1.3.2)
āāā commandbox-hostupdater (1.9.2)
āāā commandbox-bullet-train (1.4.1)
bdw429s
07/28/2022, 8:22 PMDaniel Mejia
07/28/2022, 8:22 PMbdw429s
07/28/2022, 8:22 PMserver start name='Staging 1 Api' directory='E:/sites/apistaging1/' serverConfigFile='E:/sites/apistaging1/server.json' --console --verbose --noSaveSettings --noOpenBrowser --noTrayEnable
bdw429s
07/28/2022, 8:22 PMDaniel Mejia
07/28/2022, 8:23 PMDaniel Mejia
07/28/2022, 8:23 PMbdw429s
07/28/2022, 8:24 PMbdw429s
07/28/2022, 8:24 PMDaniel Mejia
07/28/2022, 8:24 PM[INFO ] 2022-07-28 13:23:44 coldbox.system.web.services.LoaderService +++ ColdBox is ready to serve requests
is literally the last line on startupbdw429s
07/28/2022, 8:24 PMDaniel Mejia
07/28/2022, 8:25 PMDaniel Mejia
07/28/2022, 8:25 PMbdw429s
07/28/2022, 8:25 PM-clidebug
to the start of the app parameters (before server start) and then update the service and try to start it againbdw429s
07/28/2022, 8:26 PMDaniel Mejia
07/28/2022, 8:26 PMbdw429s
07/28/2022, 8:26 PMbdw429s
07/28/2022, 8:28 PMbdw429s
07/28/2022, 8:29 PMbox -clidebug version 'test 1 brad'
then I get this in the debug output
cfml.cli.argument.array: ["version","'test","1","brad'"]
which means Windows is ignoring the single quotesbdw429s
07/28/2022, 8:30 PMbox -clidebug version "test 1 brad"
gives the expected result of
cfml.cli.argument.array: ["version","test 1 brad"]
Daniel Mejia
07/28/2022, 8:30 PMrunNative( 'install "#config.getServiceName()#" "#getBoxPath()#" "server start name=''#parser.escapeArg( config.getServerName() )#'' directory=''#parser.escapeArg( config.getWebroot() )#'' serverConfigFile=''#parser.escapeArg( config.getServerConfigFile() )#'' --console --verbose --noSaveSettings --noOpenBrowser --noTrayEnable"' );
bdw429s
07/28/2022, 8:31 PMDaniel Mejia
07/28/2022, 8:31 PMbdw429s
07/28/2022, 8:31 PMbdw429s
07/28/2022, 8:31 PMbdw429s
07/28/2022, 8:31 PMDaniel Mejia
07/28/2022, 8:31 PMbdw429s
07/28/2022, 8:31 PMbdw429s
07/28/2022, 8:32 PMbdw429s
07/28/2022, 8:32 PMDaniel Mejia
07/28/2022, 8:33 PM"service":{
"startType":"auto",
"username":"${cf_services_username}",
"password":"${cf_services_password}",
"serviceName":"${servicename}",
"displayName":"${servicedescription}",
"exitAction":"Restart",
"restartDelayMS":"15000",
"standardOutPath":"${site_logs_out_filepath:C:/Development/logs/api-out.txt}",
"errorOutPath":"${site_logs_error_filepath:C:/Development/logs/api-error.txt}"
}
Daniel Mejia
07/28/2022, 8:34 PMservicename=staging1api
Daniel Mejia
07/28/2022, 8:34 PMDaniel Mejia
07/28/2022, 8:34 PMbdw429s
07/28/2022, 8:36 PMbdw429s
07/28/2022, 8:36 PMbdw429s
07/28/2022, 8:36 PMbdw429s
07/28/2022, 8:37 PMserver start name='Staging 1 Api' ...
Daniel Mejia
07/28/2022, 8:37 PMbdw429s
07/28/2022, 8:37 PMDaniel Mejia
07/28/2022, 9:13 PMbdw429s
07/28/2022, 9:17 PMbdw429s
07/28/2022, 9:18 PMDaniel Mejia
07/28/2022, 9:18 PMbdw429s
07/28/2022, 9:41 PMbdw429s
07/28/2022, 9:41 PMbdw429s
07/28/2022, 9:42 PMserver service info --verbose
you should see the start server command with a bunch of ugly ^
escape chars in it