I have been unable to get the Create Agent to run after install. During install it crashes both before and after the acceptance of the CA Cert. After the install it crashes any time it is launched. I have rebooted after the install and reinstalled and it still crashes.
Hi keithjjo,
I'm attaching a CLI version of the agent to be able to get the stacktrace.
Copy it where you installed the agent (usually C:\Users\yourusername\AppData\Roaming\ArduinoCreateAgent) and execute it from a "cmd" shell.
When it crashes it should report a stacktrace which we need for debugging your problem.
I ran the arduino-create-agent.exe from the specified directory. It seems to run without crashing (for a while) but I cannot connect from Firefox. I can however connect with Chrome. It will try to connect in Firefox but ultimately it will show the following error: "No Plugin Connection. Uploading is disabled until you reconnect." During this time it shows the "bad certificate" error with increasing port numbers. I then tried the "Download Plugin" setup from within Firefox and when I get to the "Looking for installed plugin..." page it finally crashes.
Here is the debug output:
time="2016-05-24T14:31:05-04:00" level=info msg="map[windows-drivers:C:\\Users\\User1/.arduino-create/windows-drivers/1.6.9 windows-drivers-1.6.9:C:
\\Users\\User1/.arduino-create/windows-drivers/1.6.9]"
time="2016-05-24T14:31:05-04:00" level=info msg="Version:1.0.666"
time="2016-05-24T14:31:05-04:00" level=info msg="Hostname: ComputerName"
time="2016-05-24T14:31:05-04:00" level=info msg="Garbage collection is on using Standard mode, meaning we just let Golang determine when to garbage co
llect."
time="2016-05-24T14:31:05-04:00" level=info msg="You specified a serial port regular expression filter: usb|acm|com\n"
time="2016-05-24T14:31:05-04:00" level=info msg="Your serial ports:"
time="2016-05-24T14:31:05-04:00" level=info msg="\t{COM8 0x2303 0x067B false}\n"
time="2016-05-24T14:31:05-04:00" level=info msg="\t{COM9 0x2303 0x067B false}\n"
[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] GET /certificate.crt --> main.certHandler (2 handlers)
[GIN-debug] DELETE /certificate.crt --> main.deleteCertHandler (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 /killbrowser --> main.killBrowserHandler (2 handlers)
[GIN-debug] POST /pause --> main.pauseHandler (2 handlers)
[GIN-debug] POST /update --> main.updateHandler (2 handlers)
[GIN-debug] Listening and serving HTTP on 127.0.0.1:8991
time="2016-05-24T14:31:05-04:00" level=info msg="Inside run of serialhub"
[GIN-debug] Listening and serving HTTPS on 127.0.0.1:8991
[GIN-debug] [ERROR] listen tcp 127.0.0.1:8991: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
time="2016-05-24T14:31:05-04:00" level=info msg="Error trying to bind to port: listen tcp 127.0.0.1:8991: bind: Only one usage of each socket address
(protocol/network address/port) is normally permitted., so exiting..."
[GIN-debug] Listening and serving HTTPS on 127.0.0.1:8992
http2: server: error reading preface from client 127.0.0.1:54238: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:54276: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:54311: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:54343: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:54379: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:54414: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60411: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60447: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60484: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60485: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60523: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60559: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60604: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60640: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60678: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60714: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60750: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60786: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60822: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60858: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60894: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:60945: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:50485: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:50441: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:50579: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:50620: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:50663: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:50705: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:50706: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:50748: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:50790: remote error: bad certificate
http2: server: error reading preface from client 127.0.0.1:50829: remote error: bad certificate
time="2016-05-24T14:41:28-04:00" level=info msg="Sending err back: We could not find the serial port COM3 that you were trying to close."
time="2016-05-24T14:41:28-04:00" level=info msg="Sending err back: We could not find the serial port COM8 that you were trying to close."
time="2016-05-24T14:41:28-04:00" level=info msg="Sending err back: We could not find the serial port COM9 that you were trying to close."
time="2016-05-24T14:41:28-04:00" level=info msg="called restart "
time="2016-05-24T14:41:28-04:00" level=info msg="Starting new spjs process"
time="2016-05-24T14:41:28-04:00" level=info msg="exePath using osext: C:\\Users\\User1\\AppData\\Roaming\\ArduinoCreateAgent\\arduino-create-agent.e
xe\n"
&{C:\Users\User1\AppData\Roaming\ArduinoCreateAgent\arduino-create-agent.exe [C:\Users\User1\AppData\Roaming\ArduinoCreateAgent\arduino-create-age
nt.exe -ls -regex usb|acm|com -gc std -hibernate] [] <nil> <nil> <nil> [] <nil> <nil> <nil> <nil> false [] [] [] [] <nil>}
time="2016-05-24T14:41:28-04:00" level=fatal msg="Exited current spjs for restart"
FYI, you cannot run the Plugin Installation on Chrome and then use it on Firefox, in fact Firefox requires the installation of the HTTPS certificate in a different way than Chrome.
So if you want to use Firefox you need to run the Plugin Installation one more time. This should solve the yellow message on Firefox.