Wait until the application is marked as running on the dashboard.
Enable and navigate to the Public Device URL. Confirm that the web server shows a Hello World message.
Edit server.js of the cloned application so that res.send() returns a different message, e.g. res.send('Hello Resin Sync!')
Run resin devices to get the device uuid of the provisioned device.
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.
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
The sync process should start with status messages appearing on each step ('Stopping application container...', 'Syncing..', 'Starting application container...').
At the end of resin sync a "resin sync completed successfully!" message should appear.
The device's Public Device URL should now show the new message, e.g. 'Hello Resin Sync!'
Actual 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' }
Description
Update code on a provisioned device using Resin CLI
resin sync
commandSteps to reproduce issue
npm i -g resin-cli
resin login
. If testing on staging, prepend RESINRC_RESIN_URL=resinstaging.io to this and all subsequentresin
commands.Hello World
message.server.js
of the cloned application so thatres.send()
returns a different message, e.g.res.send('Hello Resin Sync!')
resin devices
to get the device uuid of the provisioned device.ssh-add -l
to check the loaded keys.resin sync <short device uuid>
within the test application folder (i.e. the folder of the editedserver.js
file)Expected result
Expected result
resin sync
a "resin sync completed successfully!" message should appear.Actual 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