Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socker error #1

Closed
huseyinkozan opened this issue May 27, 2017 · 3 comments
Closed

Socker error #1

huseyinkozan opened this issue May 27, 2017 · 3 comments

Comments

@huseyinkozan
Copy link
Owner

After a t2 push and manually start the app:

$ ssh -i ~/.tessel/id_rsa [email protected]


BusyBox v1.23.2 (2017-05-24 04:56:54 +03) built-in shell (ash)

Tessel 2  /  Built on OpenWrt
root@t:~# pgrep node
root@t:~# /app/start 
Hw();
setDBPath(/app/remote-script/database);
loadData(configuration,configuration.json)
setupWireless(user_command); user_command: false
setupWifi();
disableAP();
setupButtonsAndLeds();
Listening port 80
enableWifi(user_command); user_command:false
touchDBFile(configuration.json)
setupWifiDisconnect();
syncTime();
GET / 200 221.251 ms - 8247
GET /assets/jquery/dist/jquery.min.js 304 122.771 ms - -
GET /index.css 304 85.815 ms - -
GET /assets/toastr/toastr.css 304 110.846 ms - -
GET /assets/semantic-nogooglefonts/dist/semantic.min.css 304 109.245 ms - -
GET /common.js 304 10.784 ms - -
GET /assets/toastr/toastr.js 304 35.735 ms - -
GET /assets/semantic-nogooglefonts/dist/semantic.min.js 304 36.295 ms - -
GET /index.js 304 19.588 ms - -
GET /assets/semantic-nogooglefonts/dist/themes/default/assets/fonts/icons.woff2 304 13.285 ms - -
is_wifi_connected();
last_wifi_error();
GET /api/configuration 200 27.551 ms - 167
Socket: Error occurred,  { Error: read ECONNRESET
    at exports._errnoException (util.js:1018:11)
    at Pipe.onread (net.js:568:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
Socket: Error occurred,  { Error: read ECONNRESET
    at exports._errnoException (util.js:1018:11)
    at Pipe.onread (net.js:568:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
/usr/lib/node/tessel-export.js:255
      throw new Error('Socket: The Port socket has closed.');
      ^

Error: Socket: The Port socket has closed.
    at Socket.sock.on (/usr/lib/node/tessel-export.js:255:13)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:497:12)
root@t:~# 
@huseyinkozan
Copy link
Owner Author

Tessel image is node-v6.10.3:
tessel/openwrt-tessel#73
Build at : tessel/openwrt-tessel@59ca9c9

@huseyinkozan
Copy link
Owner Author

It seems this is related with 6.10 image. It works with 6.5.

@huseyinkozan
Copy link
Owner Author

Maybe related to this:
tessel/t2-firmware@fe9165c

Which is fixed at t2-firmware 0.0.16, but image is at 0.0.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant