Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork158
Closed
Labels
Milestone
Description
Environment details: macOS, Agent 1.6.0
Reported by@charlesbones
The agent starts and the closes immediately with a panic, with the following logs:
ERRO[0001] Error downloading serial-discovery: invalid character ‘y’ after top-level valuepanic: invalid character ‘y’ after top-level valuegoroutine 69 [running]:main.(*SerialPortList).runSerialDiscovery(0x1400027ecc0?)/Users/runner/work/arduino-create-agent/arduino-create-agent/serial.go:130 +0x568main.(*SerialPortList).Run(0x140001a0180?)/Users/runner/work/arduino-create-agent/arduino-create-agent/serial.go:118 +0x2ccreated by main.loop in goroutine 50/Users/runner/work/arduino-create-agent/arduino-create-agent/main.go:410 +0x1244Looking at the message, this might be ainstalled.json corruption problem. See also this previous issue:#635
Here is the content of the JSON file on the same machine (note the wrong data at the end):
{"arduino-fwuploader":"/Users/carlos/.arduino-create/arduino/arduino-fwuploader/2.4.1","arduino-fwuploader-2.4.1":"/Users/carlos/.arduino-create/arduino/arduino-fwuploader/2.4.1","bossac":"/Users/carlos/.arduino-create/arduino/bossac/1.7.0","bossac-1.7.0":"/Users/carlos/.arduino-create/arduino/bossac/1.7.0","bossac-1.9.1-arduino5":"/Users/carlos/.arduino-create/arduino/bossac/1.9.1-arduino5","fwupdater":"/Users/carlos/.arduino-create/arduino/fwupdater/0.1.12","fwupdater-0.1.12":"/Users/carlos/.arduino-create/arduino/fwupdater/0.1.12","rp2040tools":"/Users/carlos/.arduino-create/arduino/rp2040tools/1.0.6","rp2040tools-1.0.6":"/Users/carlos/.arduino-create/arduino/rp2040tools/1.0.6","serial-discovery":"/Users/carlos/.arduino-create/builtin/serial-discovery/1.4.1","serial-discovery-1.4.0":"/Users/carlos/.arduino-create/builtin/serial-discovery/1.4.0","serial-discovery-1.4.1":"/Users/carlos/.arduino-create/builtin/serial-discovery/1.4.1"}y/1.4.1"}