http://coldfusion.com logo
Title
p

Peter Hoopes

05/25/2023, 9:14 PM
@bdw429s Anyone aware of a bug with CommandBox 5.9 and macOS 13 Ventura on an M1 machine? I've downloaded
box
and have it running, but when I try to start a server, I get:
server list
ERROR (5.9.0+00721)
The function [keyArray] does not exist in the String.
/Users/peterhoopes/.CommandBox/cfml/system/services/ServerService.cfc: line 2792
2790: 			var results = deserializeJSON( fileSystemUtil.lockingfileRead( variables.serverConfig ) );
2791: 			var updateRequired = false;
2792: 			var serverKeys = results.keyArray();
2793:
2794: 			// Loop over each server for some housekeeping
b

bdw429s

05/25/2023, 9:18 PM
@Peter Hoopes What is the contents of the contents of the
servers.json
file in the CommandBox home dir?
It would appear it is a string and not an object 🤔
p

Peter Hoopes

05/29/2023, 5:38 PM
Need to go back and make sure I didn’t do something dumb. If not, then I’ll send up a flare with more details…
@bdw429s The
servers.json
file was empty. I nuked the entire
.Commandbox
folder and let box rebuild it. After that it seemed good. Odd, but not fatal.
b

bdw429s

05/31/2023, 1:28 AM
All you needed to do was remove that file
Nuking the entire home was a little heavy-handed
p

Peter Hoopes

05/31/2023, 1:29 AM
Oh… good to know. I was just getting started so it wasn’t an issue. I remember reading in the Commandbox docs that if that folder was deleted or otherwise borked that it could be removed and would be rebuilt.