balena-os / balena-fsl-arm

Balena support for Freescale boards
Apache License 2.0
8 stars 9 forks source link

Sync application container #13

Closed agherzan closed 8 years ago

agherzan commented 8 years ago

Description

Update code on a provisioned device using Resin CLI resin sync command

Steps to reproduce issue

  1. Install resin cli with npm i -g resin-cli
  2. Login with resin login. If testing on staging, prepend RESINRC_RESIN_URL=resinstaging.io to this and all subsequent resin commands.
  3. Clone this test node js application on your laptop and provision a device with it.
  4. Wait until the application is marked as running on the dashboard.
  5. Enable and navigate to the Public Device URL. Confirm that the web server shows a Hello World message.
  6. Edit server.js of the cloned application so that res.send() returns a different message, e.g. res.send('Hello Resin Sync!')
  7. Run resin devices to get the device uuid of the provisioned device.
  8. Ensure that your resin account has at least one RSA or DSA key -preferably RSA- that is also loaded in your ssh-agent. Use ssh-add -l to check the loaded keys.
  9. Run resin sync <short device uuid> within the test application folder (i.e. the folder of the edited server.js file)

    Expected result

Expected result

➜ simple-server-node git:(master) ✗ resin sync 59ff1c16221db772234cf751ebdb0873b70923c5a1752d0cb69b3072a17082 Connecting with: 59ff1c16221db772234cf751ebdb0873b70923c5a1752d0cb69b3072a17082 resin sync failed { ResinRequestError: Request error: ETIMEDOUT at /home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/resin-sdk/node_modules/resin-request/build/request.js:137:13 at tryCatcher (/home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/bluebird/js/release/promise.js:502:31) at Promise._settlePromise (/home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/bluebird/js/release/promise.js:559:18) at Promise._settlePromise0 (/home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/bluebird/js/release/promise.js:604:10) at Promise._settlePromises (/home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/bluebird/js/release/promise.js:683:18) at Promise._fulfill (/home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/bluebird/js/release/promise.js:628:18) at Request._callback (/home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/bluebird/js/release/nodeback.js:42:21) at Request.self.callback (/home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/request/request.js:200:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request. (/home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/request/request.js:1067:10) at emitOne (events.js:101:20) at Request.emit (events.js:188:7) at IncomingMessage. (/home/joe/.nvm/versions/node/v6.2.1/lib/node_modules/resin-cli/node_modules/request/request.js:988:12) at emitNone (events.js:91:20) at IncomingMessage.emit (events.js:185:7) at endReadableNT (_stream_readable.js:926:12) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickCallback (internal/process/next_tick.js:98:9) body: 'ETIMEDOUT', statusCode: 404, name: 'ResinRequestError', message: 'Request error: ETIMEDOUT' }

Other information

Reported by: Joe Roberts

Test configuration: Hummingboard

Test case number: TC14

Test run: https://resinio.testlodge.com/projects/16238/runs/212560?tab=2&run_section_id=210838&executed_case_id=10046631#executed_case_10046631

agherzan commented 8 years ago

@josephroberts Hello, Current images in staging should have this fixed. Can you please retest?

agherzan commented 8 years ago

This issue was moved to resin-os/resinos#54