I am staring on wrong foot,
I am a software engineer, and I don't have problem using command-line interface,
but please help me understand it.
I've tried to setup a new device using Arduino Cloud, the first time it finished somehow, but the device stays "offline"
I understand I need to setup WiFi SSD/password, ran the setup wizard again, if always finds the device but cannot finish, the second try also finds the device but fails.
I have the log of the Agent Debug Console, but cannot attach it here as a new user.
Here's a link to it:
I decided to reboot the Mac, and start the process, ...
After the restart, when trying to start the Agent it popups on the top line and disappears, so I've run it from the command line to see the output, it fails running, here's the output:
➜ ~ /Applications/ArduinoCloudAgent.app/Contents/MacOS/Arduino_Cloud_Agent
INFO[0000] using config from default: /Users/petraki/Library/Application Support/ArduinoCreateAgent/config.ini
INFO[0000] Checking if the Arduino certificate is in the keychain
INFO[0000] Retrieving default browser name
INFO[0000] additional config file not found in config.ini
INFO[0001] Version:1.6.0
INFO[0001] Hostname: Peters-MacBook-Pro.local
INFO[0001] Garbage collection is on using Standard mode, meaning we just let Golang determine when to garbage collect.
INFO[0001] You specified a serial port regular expression filter: usb|acm|com
INFO[0001] the autostart file /Users/petraki/Library/LaunchAgents/ArduinoCreateAgent.plist already exists: nothing to do
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET / --> main.homeHandler (2 handlers)
[GIN-debug] POST /upload --> main.uploadHandler (2 handlers)
[GIN-debug] GET /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] POST /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] WS /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] WSS /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)
[GIN-debug] GET /info --> main.infoHandler (2 handlers)
[GIN-debug] POST /pause --> main.pauseHandler (2 handlers)
[GIN-debug] POST /update --> main.updateHandler (2 handlers)
[GIN-debug] GET /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] POST /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] PUT /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] PATCH /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] HEAD /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] OPTIONS /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] DELETE /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] CONNECT /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] TRACE /v2/*path --> main.loop.WrapH.func4 (2 handlers)
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on 127.0.0.1:8991
ERRO[0001] Could not find HTTPS certificate. Using plain HTTP only.
ERRO[0001] Error downloading serial-discovery: invalid character 'y' after top-level value
panic: invalid character 'y' after top-level value
goroutine 66 [running]:
main.(*SerialPortList).runSerialDiscovery(0x1400001c360?)
/Users/runner/work/arduino-create-agent/arduino-create-agent/serial.go:130 +0x568
main.(*SerialPortList).Run(0x1400001c120?)
/Users/runner/work/arduino-create-agent/arduino-create-agent/serial.go:118 +0x2c
created by main.loop in goroutine 11
/Users/runner/work/arduino-create-agent/arduino-create-agent/main.go:410 +0x1244
The app recreated /Users/petraki/Library/Application Support/ArduinoCreateAgent/config.ini, here's the content:
gc = std # Type of garbage collection. std = Normal garbage collection allowing system to decide (this has been known to cause a stop the world in the middle of a CNC job which can cause lost responses from the CNC controller and thus stalled jobs. use max instead to solve.), off = let memory grow unbounded (you have to send in the gc command manually to garbage collect or you will run out of RAM eventually), max = Force garbage collection on each recv or send on a serial port (this minimizes stop the world events and thus lost serial responses, but increases CPU usage)
hostname = unknown-hostname # Override the hostname we get from the OS
regex = usb|acm|com # Regular expression to filter serial port list
v = true # show debug logging
appName = CreateAgent/Stable
updateUrl = https://downloads.arduino.cc/
origins = https://local.arduino.cc:8000
#httpProxy = http://your.proxy:port # Proxy server for HTTP requests
crashreport = false # enable crashreport logging
autostartMacOS = true # the Arduino Create Agent is able to start automatically after login on macOS (launchd agent)%
I've manually installed previous version 1.5.0 of the client agent,
When opening the Arduino Cloud it updated the agent to 1.6.0, but then it worked.
Attaching the log from the latest attempt, and also the video of what's happening, still unsuccessfull. agent-log.txt (2.4 KB)
To complete the picture, the device works ok,
I've used it with Arduino IDE and all is good.
I've tried to perform the Cloud registration process after resetting the device (push the button twice), then I receive the following error at the step 3:
I am not sure why you are having a problem. I drive a Mac also, and the CreateAgent has always worked for me. I am attaching a couple screen grabs so you might be able to spot a difference. For quick testing I use the iPhone app. I don't recall where I got it from, some sort of demo of the IoT maybe?
Hello, @sonofcy - Thank you for your help,
I don't know how this info could be helpful, comparing the agent configuration -- it seems similar, probably I'll wait for 1.7 version fix, if there's nothing more to do, ...
The board is exactly the one that the topic is for -- MKR WiFi 1010,
Maybe the problem is a combination of a newbie (me) and trying the cloud platform that seems to experience problems, I'll give it some time, ..
Hi @petraki_boy. I confirm the bug you encountered that causes the new problem of the failure of the "Getting Started" workflow at the "IoT Blink controller system" creation step with the "Cannot read properties of undefined (reading 'forEach')", as shown at this point in the video you shared:
I apologize for any inconvenience this bug has caused you. Hopefully the Arduino Cloud developers will fix it soon.
This bug means that it is not currently possible to use this "Getting Started" feature of Arduino Cloud. That is unfortunate, but it is not a show stopper. "Getting Started" is only intended to provide general overview of using Arduino Cloud and is completely optional. You should be able to use any of the real Arduino Cloud features without any problems.
So just forget about the "Getting Started" and start working on your real project in Arduino Cloud. If you have any questions or problems while doing that, just let us know and we'll provide assistance.
I managed to create a few things without ever looking at any documentation, just start with the cloud icon and read what is on each page as you progress through. In the computer and software world, the journey is easier if you are bold, confident and willing to screw up in order to learn. Just go for it.