GithubHelp home page GithubHelp logo

OTA not working about spark-server HOT 4 CLOSED

lilyannh avatar lilyannh commented on August 16, 2024
OTA not working

from spark-server.

Comments (4)

jlkalberer avatar jlkalberer commented on August 16, 2024

Try running node ./node_modules/spark-protocol/dist/scripts/update-firmware-binaries from the root folder.

I don't have a great idea why it's not working but that is a first step. I'll try debugging this tomorrow.

from spark-server.

lilyannh avatar lilyannh commented on August 16, 2024

Tried running that script as instructed and still no luck. Here's the output when trying to OTA, might be more helpful than the previous dump (that one was just a snippet from the error logs). Thanks for looking into this.

On a side note, is there a folder where we can place a binary on the server that would automatically push out the firmware to connected devices - and would that work differently than flashing the firmware from the particle CLI?

flash device started! - sending api event { deviceID: '25001c001547343231323438'                                                                             }
fast ota enabled!  { cache_key: '_1', deviceID: '25001c001547343231323438' }
fast ota enabled!  { cache_key: '_1', deviceID: '25001c001547343231323438' }
fast ota enabled!  { cache_key: '_1', deviceID: '25001c001547343231323438' }
releasing flash ownership  { deviceID: '25001c001547343231323438' }
flash device failed! - sending api event { deviceID: '25001c001547343231323438',
  error:
   Error: Request timed out
       at Timeout._onTimeout (/root/node_modules/spark-server/node_modules/spark-protocol/dist/clients/Device.js:494:28)
       at ontimeout (timers.js:365:14)
       at tryOnTimeout (timers.js:237:5)
       at Timer.listOnTimeout (timers.js:207:5) }
::ffff:76.126.13.74 - - [22/May/2017:04:54:56 +0000] "PUT /v1/devices/25001c001547343231323438?access_token=xxxxxxx HTTP/1.1" 400 55 "-" "-"
(node:21936) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Request timed out
1 : Device disconnected: socket timeout { cache_key: '_1',
  deviceID: '25001c001547343231323438',
  duration: 84.408 }
Session ended for device with ID: 25001c001547343231323438 with connectionKey: _1

from spark-server.

lilyannh avatar lilyannh commented on August 16, 2024

OK, maybe a false alarm. It's a little unclear exactly what the issue was because we had tried/changed so many things in the course of troubleshooting. But we think it was related to the last version of our firmware essentially bricking future updates, and potentially some weirdness with compiling the new firmware.

Thanks for your quick response!

from spark-server.

jlkalberer avatar jlkalberer commented on August 16, 2024

Yeah.. that's what the error looked like :)

from spark-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.