Dan MacNeil
05/09/2024, 2:51 PMERROR (6.0.0+00787)
Parameter [pauseTasks] has a value of ["="] which is not of type [boolean].
commands below:
box cfconfig export \
from=/var/lib/tomcat9/lucee-server/ \
to=/tmp/lucee_server_context.json
box cfconfig import \
from = /tmp/lucee_server_context.json \
to = /var/lib/tomcat9/lucee-server/
My next move is to look at downgrading Commandbox as I don't recall this issue with 5.n of CommandBox
The json does not have a string "`pauseTasks"`bdw429s
05/09/2024, 3:34 PMbdw429s
05/09/2024, 3:34 PMbdw429s
05/09/2024, 3:35 PMDan MacNeil
05/09/2024, 5:05 PMDan MacNeil
05/09/2024, 5:25 PMbdw429s
05/09/2024, 5:27 PMDan MacNeil
05/09/2024, 5:43 PMDan MacNeil
05/09/2024, 5:43 PMbdw429s
05/09/2024, 5:46 PMbdw429s
05/09/2024, 5:46 PMbdw429s
05/09/2024, 5:47 PMbdw429s
05/09/2024, 5:47 PMDan MacNeil
05/09/2024, 5:51 PMbdw429s
05/09/2024, 6:02 PMbdw429s
05/09/2024, 6:02 PMDan MacNeil
05/09/2024, 6:10 PMDan MacNeil
05/09/2024, 6:11 PMon the export
?
box cfconfig import
bdw429s
05/09/2024, 6:34 PMbdw429s
05/09/2024, 6:43 PM❯ start cfengine=lucee@5.4.4.38
√ | Starting Server
| √ | Installing package [java:openjdk11:lockVersion]
| √ | Setting site [lucee5.4test] Profile to [development]
| √ | Loading CFConfig into server
| √ | Loading FusionReactor
| | √ | Installing package [forgebox:fusionreactor@^11.0.0]
❯ echo {} > lucee_server_context.json
❯ cfconfig import from=lucee_server_context.json to=lucee5.4test
Config transferred from C:\sandbox\lucee5.4test\lucee_server_context.json!
❯ server info property=serverHomeDirectory
C:/Users/brad/.CommandBox/server/2CAB2C33D1C62C3F95C8312A250A83C9-lucee5.4test/lucee-5.4.4.38
❯ cfconfig import from=lucee_server_context.json to=C:/Users/brad/.CommandBox/server/2CAB2C33D1C62C3F95C8312A250A83C9-lucee5.4test/lucee-5.4.4.38/WEB-INF/lucee-server
Config transferred from C:\sandbox\lucee5.4test\lucee_server_context.json!
I can't reproduce the error importing a JSON file into Lucee 5.4.4Dan MacNeil
05/09/2024, 6:44 PMDan MacNeil
05/09/2024, 7:04 PMbdw429s
05/09/2024, 7:04 PMbdw429s
05/09/2024, 7:05 PMbdw429s
05/09/2024, 7:05 PM❯ cfconfig import from=lucee_server_context.json to=C:/Users/brad/.CommandBox/server/2CAB2C33D1C62C3F95C8312A250A83C9-lucee5.4test/lucee-5.4.4.38/WEB-INF/lucee-server
Config transferred from C:\sandbox\lucee5.4test\lucee_server_context.json!bdw429s
05/09/2024, 7:05 PMbdw429s
05/09/2024, 7:05 PMbdw429s
05/09/2024, 7:05 PMbdw429s
05/09/2024, 7:06 PMbdw429s
05/09/2024, 7:06 PMDan MacNeil
05/09/2024, 7:38 PMDan MacNeil
05/09/2024, 9:57 PMbdw429s
05/09/2024, 11:22 PMbdw429s
05/09/2024, 11:22 PMbdw429s
05/09/2024, 11:23 PMArguments:
string from (CommandBox server name, server home path, or CFConfig JSON file. Defaults to CommandBox server in CWD.)
string to (CommandBox server name, server home path, or CFConfig JSON file. Defaults to CommandBox server in CWD.)
string fromFormat (The format to read from when "from" is a directory. Ex: LuceeServer@5)
string toFormat (The format to write to when "to" is a directory. Ex: LuceeServer@5)
boolean pauseTasks = "false" (It set to true, all scheduled tasks will be saved to the "to" server in a "Paused" state)
string includeList = "" (List of properties to include in transfer. Use * for wildcard. i.e. mailservers,datasources.myDSN,event*)
string excludeList = "" (List of properties to exclude from transfer. Use * for wildcard. i.e. mailservers,datasources.myDSN,event*)
struct replace (regex/replacement matches to swap data with env var expansions. i.e. replace:datasources.*.password=DB_PASSWORD)
string dotenvFile (Absolute path to .env file for replace feature. Empty string turns off feature.)
boolean append = "false" (Append config to destination instead of overwriting. Datasources, caches, etc will be merged instead of removed.)
The pauseTasks one is 5th in the list and was getting matched up with one of the = signs coming inbdw429s
05/09/2024, 11:23 PM