Can not connect matrix to rc server

I have tried a few installation and have not been successful
Following these instructions.
https://matrix-io.github.io/matrix-documentation/

Has anyone else had issues recently getting their matrix connected? The matrix cli says it is not connected

Matrix CLI
API: https://rc-api.admobilize.com Streaming: https://mxss.admobilize.com
Locale: en Env: rc

PI
#:NODE_ENV=rc node index.js

Environment Selected: rc
Loading… device
Loading… event
Loading… service
Not using device data from db, using MATRIX_DEVICE_ID and MATRIX_DEVICE_SECRET instead!
Starting as device:
hb: sen> [] svc> []
Either you don’t have a Bluetooth device enabled or you need to give Node permission to use it without sudo.
In order to do that you can use the command sudo setcap cap_net_raw+eip $(eval readlink -f which node)
hb: sen> [] svc> []
hb: sen> [] svc> []
hb: sen> [] svc> []
hb: sen> [] svc> []

Thanks for any pointers

Run it with NODE_ENV=rc DEBUG=* node index.js and show me the output.
Also, had you properly configured your device with MATRIX_DEVICE_ID and MATRIX_DEVICE_SECRET ? [quote=“emarnau, post:1, topic:626”]
Starting as device:
[/quote]

Thanks Lucas. I do have the variables included but just took them out.

I took out the secret from the log below.

From the log it has the correct url that i am connecting to using matrix-cli
API: https://rc-api.admobilize.com MXSS: http://mxss.admobilize.com

Only error i see is this but not sure if its a node error.
‘hci onSocketError: File descriptor in bad state’

Environment Selected: rc
Loading...  device
  device Loading...  device > gpio +0ms
  device Loading...  device > heartbeat +127ms
  device Loading...  device > malos +98ms
  device Loading...  device > network +26ms
  device Loading...  device > port +3s
  device Loading...  device > sensor +33ms
  device Loading...  device > service +44ms
  device Loading...  device > system +64ms
  device Loading...  device > wifi +29ms
  device Loading...  device > driver > accelerometer +44ms
  device Loading...  device > driver > altitude +38ms
  device Loading...  device > driver > detection +48ms
  device Loading...  device > driver > gesture +49ms
  device Loading...  device > driver > gpio +48ms
  device Loading...  device > driver > gyroscope +45ms
  device Loading...  device > driver > humidity +37ms
  device Loading...  device > driver > ir +44ms
  device Loading...  device > driver > led +42ms
  device Loading...  device > driver > magnetometer +103ms
  device Loading...  device > driver > mic +33ms
  device Loading...  device > driver > pressure +162ms
  device Loading...  device > driver > recognition +40ms
  device Loading...  device > driver > temperature +4s
  device Loading...  device > driver > uv +41ms
  device Loading...  device > driver > zigbee +43ms
  device Init Cmds Registered:> 15 accelerometer face demographics palm thumb-up fist pinch gpio gyroscope humidity magnetometer pressure recognition temperature uv +96ms
Loading...  event
  matrix Loading...  event > app +68ms
  matrix Loading...  event > device +75ms
  matrix Loading...  event > firebase +37ms
  matrix Loading...  event > heartbeat +30ms
  matrix Loading...  event > sensors +30ms
  matrix Loading...  event > server +42ms
  matrix Loading...  event > service +45ms
  matrix Loading...  event > token +37ms
  matrix Loading...  event > util +29ms
  matrix Loading...  event > ves +31ms
Loading...  service
  matrix Loading...  service > application +105ms
  matrix Loading...  service > auth +7s
  matrix Loading...  service > component +28ms
  matrix Loading...  service > cypher +46ms
  matrix Loading...  service > firebase +49ms
  matrix Loading...  service > grpc +14s
  grpc GRPC:> malos : heartbeat +6s
  grpc GRPC:> vision : recognition +93ms
  grpc GRPC:> vision : recognition_service +2s
  grpc GRPC:> vision : vision +562ms
  grpc GRPC:> vision : vision_service +720ms
  matrix Loading...  service > lifecycle +13ms
  matrix Loading...  service > manager +33ms
  matrix Loading...  service > protobuf +12s
  proto malos : driver.proto +87ms
  proto malos : hal.proto +940ms
  proto malos : heartbeat.proto +133ms
  proto vision : recognition.proto +1s
  proto vision : recognition_service.proto +41ms
  proto vision : vision.proto +705ms
  proto vision : vision_service.proto +462ms
  matrix Loading...  service > stream +537ms
  matrix Loading...  service > token +70ms
  matrix Loading...  service > track +897ms
  matrix Loading...  service > tracking +46ms
  matrix Loading...  service > ves +40ms
  matrix Loading...  service > zeromq +46ms
  matrix Debug: * +896ms
  matrix ====== config ===vvv +8ms
  matrix { fakeApp: undefined,
  matrix   path: 
  matrix    { root: '/home/pi/matrix-creator-quickstart/matrix-os/',
  matrix      db: 
  matrix       { device: '/home/pi/matrix-creator-quickstart/matrix-os/db/device.db',
  matrix         config: '/home/pi/matrix-creator-quickstart/matrix-os/db/config.db',
  matrix         user: '/home/pi/matrix-creator-quickstart/matrix-os/db/user.db',
  matrix         service: '/home/pi/matrix-creator-quickstart/matrix-os/db/service.db',
  matrix         pending: '/home/pi/matrix-creator-quickstart/matrix-os/db/pending.db' },
  matrix      pendingFiles: '/home/pi/matrix-creator-quickstart/matrix-os/public/pending_files',
  matrix      update: '/tmp/matrix-update/',
  matrix      backup: '/tmp/matrix-backup/',
  matrix      apps: '/home/pi/matrix-creator-quickstart/matrix-os/apps',
  matrix      protos: '/home/pi/matrix-creator-quickstart/matrix-os/proto',
  matrix      splash: 'public/splash',
  matrix      appLog: '/home/pi/matrix-creator-quickstart/matrix-os/apps/app.log' },
  matrix   jwt: { secret: undefined },
  matrix   version: '0.14.1',
  matrix   local: {},
  matrix   heartbeatInterval: 10000,
  matrix   spaceLimit: 5000000,
  matrix   splashInterval: 30,
  matrix   sensorRefresh: 2500,
  matrix   sensorSockets: true,
  matrix   socketCheckDelay: 1000,
  matrix   registrationUUID: 'b1a6752152eb4d36e13e357d7c225466',
  matrix   configurationUUID: 'b1a6752152eb4d36e13e357d7c225467',
  matrix   envs: 
  matrix    { deviceSecret: '<SECRET>',
  matrix      deviceId: 'dbc1628c22d7',
  matrix      nodeEnv: 'rc' },
  matrix   components: {},
  matrix   paths: { root: '/home/pi/matrix-creator-quickstart/matrix-os/config' } } 
 +5ms
  matrix  ENV: rc API: https://rc-api.admobilize.com MXSS: http://mxss.admobilize.com +1s
  matrix  ENV: rc API: https://rc-api.admobilize.com MXSS: http://mxss.admobilize.com +7ms
  device device init: heartbeat +4s
  gatt handles = [
  gatt   {},
  gatt   {
  gatt     "type": "service",
  gatt     "uuid": "1800",
  gatt     "startHandle": 1,
  gatt     "endHandle": 5
  gatt   },
  gatt   {
  gatt     "type": "characteristic",
  gatt     "uuid": "2a00",
  gatt     "properties": 2,
  gatt     "secure": 0,
  gatt     "startHandle": 2,
  gatt     "valueHandle": 3
  gatt   },
  gatt   {
  gatt     "type": "characteristicValue",
  gatt     "handle": 3,
  gatt     "value": "Buffer('7261737062657272797069', 'hex')"
  gatt   },
  gatt   {
  gatt     "type": "characteristic",
  gatt     "uuid": "2a01",
  gatt     "properties": 2,
  gatt     "secure": 0,
  gatt     "startHandle": 4,
  gatt     "valueHandle": 5
  gatt   },
  gatt   {
  gatt     "type": "characteristicValue",
  gatt     "handle": 5,
  gatt     "value": "Buffer('8000', 'hex')"
  gatt   },
  gatt   {
  gatt     "type": "service",
  gatt     "uuid": "1801",
  gatt     "startHandle": 6,
  gatt     "endHandle": 9
  gatt   },
  gatt   {
  gatt     "type": "characteristic",
  gatt     "uuid": "2a05",
  gatt     "properties": 32,
  gatt     "secure": 0,
  gatt     "startHandle": 7,
  gatt     "valueHandle": 8
  gatt   },
  gatt   {
  gatt     "type": "characteristicValue",
  gatt     "handle": 8,
  gatt     "value": "Buffer('00000000', 'hex')"
  gatt   },
  gatt   {
  gatt     "type": "descriptor",
  gatt     "handle": 9,
  gatt     "uuid": "2902",
  gatt     "properties": 14,
  gatt     "secure": 0,
  gatt     "value": "Buffer('0000', 'hex')"
  gatt   }
  gatt ] +1s
  bleno platform linux +191ms
  bleno stateChange poweredOff +61ms
  device driver init: accelerometer +774ms
  device driver init: altitude +14ms
  device driver init: detection +233ms
  device driver init: gesture +6ms
  device driver init: gpio +10ms
  device driver init: gyroscope +9ms
  device driver init: humidity +12ms
  device driver init: ir +12ms
  zeromq [zmq][registerComponent> led +20ms
  device driver init: led +111ms
  device driver init: magnetometer +9ms
  device driver init: mic +13ms
  device driver init: pressure +5ms
  device driver init: recognition +465ms
  device driver init: temperature +10ms
  device driver init: uv +7ms
  device driver init: zigbee +136ms
  matrix Loader stopped +20ms
Not using device data from db, using MATRIX_DEVICE_ID and MATRIX_DEVICE_SECRET instead!
  matrix event listener: app +3s
  matrix event listener: device +20ms
  matrix event listener: heartbeat +10ms
  matrix event listener: sensors +9ms
  matrix event listener: server +21ms
  matrix event listener: service +17ms
  matrix event listener: token +4ms
  matrix event listener: util +7ms
  matrix event listener: ves +8ms
Starting as device: dbc1628c22d7
  hci set advertise enable - writing: 010a200100 +81ms
  hci onSocketError: File descriptor in bad state +11ms
hb: sen> [] svc> []
  app-config 📐  [ MATRIX ] App Config Helper v0.2.3 (current) +2s
  firebase 🔥  [ MATRIX ] Firebase v1.2.1 (current) +131ms
  sdk 🔓  [ MATRIX ] Auth SDK v0.4.0 (current) +248ms
Either you don't have a Bluetooth device enabled or you need to give Node permission to use it without sudo.
In order to do that you can use the command sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

i’ve just run in master and dev branch and it doesn’t look there’s a problem with the api server. Do you mind register your device in dev mode? I am gonna check what’s happening.

How do i run it in dev mode?

To run MOS in dev mode you can just run: NODE_ENV=dev node index.js
But you need to register MATRIX_DEVICE_ID and MATRIX_DEVICE_SECRECT again in dev. So you change your env on CLI with:
matrix set env dev
You will have to login again on CLI, probably will need to register a new user too. But after that is just the same flow.

Hey lucas,
Ran it in dev mode aswell. no luck. I can not see what the issue is. I have installed it a few times and upgraded raspbian. nothing coming from the debug information.

Can you see if it is contacting the server?

devices list
┌────────────────────┬────────────────────┬───────────────────────────────────┬────┬───────────────┐
│ Device ID │ Name │ Description │ ok │ Last Online │
│ df2a4583853d │ name │ dev connection alfred │ no │ 47 years ago │
└────────────────────┴────────────────────┴───────────────────────────────────┴────┴───────────────┘

This is output from the PI.

DEBUG=*,-engine NODE_ENV=dev node index.js
    Environment Selected: dev
    Loading...  device
      device Loading...  device > gpio +0ms
      device Loading...  device > heartbeat +62ms
      device Loading...  device > malos +49ms
      device Loading...  device > network +13ms
      device Loading...  device > port +609ms
      device Loading...  device > sensor +18ms
      device Loading...  device > service +21ms
      device Loading...  device > system +31ms
      device Loading...  device > wifi +14ms
      device Loading...  device > driver > accelerometer +21ms
      device Loading...  device > driver > altitude +21ms
      device Loading...  device > driver > detection +20ms
      device Loading...  device > driver > gesture +25ms
      device Loading...  device > driver > gpio +22ms
      device Loading...  device > driver > gyroscope +22ms
      device Loading...  device > driver > humidity +20ms
      device Loading...  device > driver > ir +19ms
      device Loading...  device > driver > led +20ms
      device Loading...  device > driver > magnetometer +47ms
      device Loading...  device > driver > mic +20ms
      device Loading...  device > driver > pressure +71ms
      device Loading...  device > driver > recognition +19ms
      device Loading...  device > driver > temperature +2s
      device Loading...  device > driver > uv +19ms
      device Loading...  device > driver > zigbee +20ms
      device Init Cmds Registered:> 15 accelerometer face demographics palm thumb-up fist pinch gpio gyroscope humidity magnetometer pressure recognition temperature uv +58ms
    Loading...  event
      matrix Loading...  event > app +30ms
      matrix Loading...  event > device +36ms
      matrix Loading...  event > firebase +18ms
      matrix Loading...  event > heartbeat +20ms
      matrix Loading...  event > sensors +16ms
      matrix Loading...  event > server +19ms
      matrix Loading...  event > service +22ms
      matrix Loading...  event > token +17ms
      matrix Loading...  event > util +15ms
      matrix Loading...  event > ves +15ms
    Loading...  service
      matrix Loading...  service > application +53ms
      matrix Loading...  service > auth +2s
      matrix Loading...  service > component +17ms
      matrix Loading...  service > cypher +20ms
      matrix Loading...  service > firebase +21ms
      matrix Loading...  service > grpc +6s
      grpc GRPC:> malos : heartbeat +2s
      grpc GRPC:> vision : recognition +44ms
      grpc GRPC:> vision : recognition_service +745ms
      grpc GRPC:> vision : vision +343ms
      grpc GRPC:> vision : vision_service +379ms
      matrix Loading...  service > lifecycle +3ms
      matrix Loading...  service > manager +14ms
      matrix Loading...  service > protobuf +88ms
      proto malos : driver.proto +39ms
      proto malos : hal.proto +431ms
      proto malos : heartbeat.proto +75ms
      proto vision : recognition.proto +830ms
      proto vision : recognition_service.proto +31ms
      proto vision : vision.proto +387ms
      proto vision : vision_service.proto +221ms
      matrix Loading...  service > stream +254ms
      matrix Loading...  service > token +34ms
      matrix Loading...  service > track +398ms
      matrix Loading...  service > tracking +21ms
      matrix Loading...  service > ves +20ms
      matrix Loading...  service > zeromq +16ms
      matrix Debug: *,-engine +412ms
      matrix ====== config ===vvv +2ms
      matrix { fakeApp: undefined,
      matrix   path: 
      matrix    { root: '/home/pi/matrix2/matrix-os/',
      matrix      db: 
      matrix       { device: '/home/pi/matrix2/matrix-os/db/device.db',
      matrix         config: '/home/pi/matrix2/matrix-os/db/config.db',
      matrix         user: '/home/pi/matrix2/matrix-os/db/user.db',
      matrix         service: '/home/pi/matrix2/matrix-os/db/service.db',
      matrix         pending: '/home/pi/matrix2/matrix-os/db/pending.db' },
      matrix      pendingFiles: '/home/pi/matrix2/matrix-os/public/pending_files',
      matrix      update: '/tmp/matrix-update/',
      matrix      backup: '/tmp/matrix-backup/',
      matrix      apps: '/home/pi/matrix2/matrix-os/apps',
      matrix      protos: '/home/pi/matrix2/matrix-os/proto',
      matrix      splash: 'public/splash',
      matrix      appLog: '/home/pi/matrix2/matrix-os/apps/app.log' },
      matrix   jwt: { secret: undefined },
      matrix   version: '0.14.2',
      matrix   local: {},
      matrix   heartbeatInterval: 10000,
      matrix   spaceLimit: 5000000,
      matrix   splashInterval: 30,
      matrix   sensorRefresh: 2500,
      matrix   sensorSockets: true,
      matrix   socketCheckDelay: 1000,
      matrix   registrationUUID: 'b1a6752152eb4d36e13e357d7c225466',
      matrix   configurationUUID: 'b1a6752152eb4d36e13e357d7c225467',
      matrix   envs: 
      matrix    { deviceSecret: '',
      matrix      deviceId: 'df2a4583853d',
      matrix      nodeEnv: 'dev' },
      matrix   components: {},
      matrix   paths: { root: '/home/pi/matrix2/matrix-os/config' } } 
     +5ms
      matrix  ENV: dev API: https://dev-api.admobilize.com MXSS: http://dev-mxss.admobilize.com +677ms
      matrix  ENV: dev API: https://dev-api.admobilize.com MXSS: http://dev-mxss.admobilize.com +2ms
      device device init: heartbeat +2s
      gatt handles = [
      gatt   {},
      gatt   {
      gatt     "type": "service",
      gatt     "uuid": "1800",
      gatt     "startHandle": 1,
      gatt     "endHandle": 5
      gatt   },
      gatt   {
      gatt     "type": "characteristic",
      gatt     "uuid": "2a00",
      gatt     "properties": 2,
      gatt     "secure": 0,
      gatt     "startHandle": 2,
      gatt     "valueHandle": 3
      gatt   },
      gatt   {
      gatt     "type": "characteristicValue",
      gatt     "handle": 3,
      gatt     "value": "Buffer('7261737062657272797069', 'hex')"
      gatt   },
      gatt   {
      gatt     "type": "characteristic",
      gatt     "uuid": "2a01",
      gatt     "properties": 2,
      gatt     "secure": 0,
      gatt     "startHandle": 4,
      gatt     "valueHandle": 5
      gatt   },
      gatt   {
      gatt     "type": "characteristicValue",
      gatt     "handle": 5,
      gatt     "value": "Buffer('8000', 'hex')"
      gatt   },
      gatt   {
      gatt     "type": "service",
      gatt     "uuid": "1801",
      gatt     "startHandle": 6,
      gatt     "endHandle": 9
      gatt   },
      gatt   {
      gatt     "type": "characteristic",
      gatt     "uuid": "2a05",
      gatt     "properties": 32,
      gatt     "secure": 0,
      gatt     "startHandle": 7,
      gatt     "valueHandle": 8
      gatt   },
      gatt   {
      gatt     "type": "characteristicValue",
      gatt     "handle": 8,
      gatt     "value": "Buffer('00000000', 'hex')"
      gatt   },
      gatt   {
      gatt     "type": "descriptor",
      gatt     "handle": 9,
      gatt     "uuid": "2902",
      gatt     "properties": 14,
      gatt     "secure": 0,
      gatt     "value": "Buffer('0000', 'hex')"
      gatt   }
      gatt ] +612ms
      bleno platform linux +94ms
      bleno stateChange poweredOff +28ms
      device driver init: accelerometer +375ms
      device driver init: altitude +6ms
      device driver init: detection +127ms
      device driver init: gesture +6ms
      device driver init: gpio +4ms
      device driver init: gyroscope +6ms
      device driver init: humidity +6ms
      device driver init: ir +4ms
      zeromq [zmq][registerComponent> led +14ms
      device driver init: led +53ms
      device driver init: magnetometer +6ms
      device driver init: mic +5ms
      device driver init: pressure +5ms
      device driver init: recognition +258ms
      device driver init: temperature +5ms
      device driver init: uv +6ms
      device driver init: zigbee +65ms
      matrix Loader stopped +11ms
    Not using device data from db, using MATRIX_DEVICE_ID and MATRIX_DEVICE_SECRET instead!
      matrix event listener: app +1s
      matrix event listener: device +9ms
      matrix event listener: heartbeat +4ms
      matrix event listener: sensors +7ms
      matrix event listener: server +9ms
      matrix event listener: service +6ms
      matrix event listener: token +6ms
      matrix event listener: util +6ms
      matrix event listener: ves +3ms
    Starting as device: df2a4583853d
      hci set advertise enable - writing: 010a200100 +43ms
      hci onSocketError: File descriptor in bad state +6ms
    hb: sen> [] svc> []

Can not ping the device either. Not sure if any thing is wrong with the ping command

DEBUG=* matrix ping            
  cli Env:  dev +0ms
  sdk 🔓  [ MATRIX ] Auth SDK v0.4.0 (current) +343ms
  app-config 📐  [ MATRIX ] App Config Helper v0.2.3 (can upgrade to 0.2.4) +7ms
  sdk Token ok! +106ms
  sdk Url {
  sdk   protocol: 'wss',
  sdk   slashes: true,
  sdk   auth: null,
  sdk   host: 'dev-mxss.admobilize.com',
  sdk   port: null,
  sdk   hostname: 'dev-mxss.admobilize.com',
  sdk   hash: null,
  sdk   search: null,
  sdk   query: null,
  sdk   pathname: '/',
  sdk   path: '/',
  sdk   href: 'https://dev-mxss.admobilize.com/' } +2ms
  sdk Trying Socket Connection: wss://dev-mxss.admobilize.com/ +4ms
  engine.io-client:socket creating transport "websocket" +0ms
  engine.io-client:socket setting transport websocket +8ms
  firebase 🔥  [ MATRIX ] Firebase v1.2.1 (current) +43ms
  engine.io-client:socket socket receive: type "open", data "{"sid":"dxxNIgaum4y15E-LAAEl","upgrades":[],"pingInterval":15000,"pingTimeout":450000}" +356ms
  engine.io-client:socket socket open +1ms
  sdk Socket Connection: wss://dev-mxss.admobilize.com/ +355ms
  engine.io-client:socket flushing 1 packets in socket +1ms
  sdk socket open +8ms
  engine.io-client:socket socket receive: type "message", data "{"channel":"register-ok","payload":{"ok":true}}" +263ms
  sdk Register ok +258ms
  sdk [ss] { t: 'trigger',
  deviceId: 'df2a4583853d',
  p: 
   { data: 'amazing-matrix-ping',
     token: 'VV7CQEWGXOQRIFGO1ZBO29W2PFBBLNS9ZDQM6KJZ0MLZ5I8PYYP2ER88JS22KXMVPW2SSJNYIYHIIEI8BZ2AN8KNA5ZKKYFECRKKU6SO01EG8L6F7S890E7Z9Q99RFBTCXXU6NIZI0FYH0PU30L135A4QNNN9GJ5VHTF3YHH6QSDZRGYSJ7R9AJDMH192X8TJX7RXFI9' } } +0ms
  sdk [ss]> client-cmd { t: 'trigger',
  deviceId: 'df2a4583853d',
  p: 
   { data: 'amazing-matrix-ping',
     token: 'VV7CQEWGXOQRIFGO1ZBO29W2PFBBLNS9ZDQM6KJZ0MLZ5I8PYYP2ER88JS22KXMVPW2SSJNYIYHIIEI8BZ2AN8KNA5ZKKYFECRKKU6SO01EG8L6F7S890E7Z9Q99RFBTCXXU6NIZI0FYH0PU30L135A4QNNN9GJ5VHTF3YHH6QSDZRGYSJ7R9AJDMH192X8TJX7RXFI9' } } +1ms
  engine.io-client:socket flushing 1 packets in socket +4ms
  engine.io-client:socket socket close with reason: "forced close" +3ms
  sdk socket close +6ms
null
  engine.io-client:socket socket closing - telling transport to close +3ms

that’s really odd, your MOS are updated right? i will see with the team what could be because the server is ok.

You can’t ping to your device too if your MOS isn’t properly initialized. I just talked with the guys here and we gonna debug it here to know what’s happening and fix this asap.

Updated my matrix on the computer to version 1.6.0 aswell

Not your matrix-cli, but your matrix-os. try to update with git pull. It should be in 0.14.2 or 0.14.1 at least

Yes i just installed MOS yesterday again. Following this documentation

https://matrix-io.github.io/matrix-documentation/

curl https://raw.githubusercontent.com/matrix-io/matrix-creator-quickstart/master/install.sh | sh

When this command was running you see any kind of error during installation?

yea i know. Just saying i have the latest matrix-cli aswell.

I was on the master tag. Checked out that version now to try it out. I was working off master

git checkout v0.14.2

full debugging on now. Still having issues.

DEBUG=*,-engine*,-Component* NODE_ENV=dev node index.js

I didnt see any but i will try it again and write it to a file.

Please do this, thanks.

This is the standard error output of the installation. The standard out put of the installation made the post 162000

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1561  100  1561    0     0   3350      0 --:--:-- --:--:-- --:--:--  3364
W: Duplicate sources.list entry http://packages.matrix.one/matrix-creator/ ./ Packages (/var/lib/apt/lists/packages.matrix.one_matrix-creator_._Packages)
W: You may want to run apt-get update to correct these problems
Failed to set capabilities on file `/home/pi/matrix3/which' (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
Cloning into 'matrix-os'...
remote: Counting objects: 8120, done.
remote: Compressing objects: 100% (64/64), done.
remote: Total 8120 (delta 45), reused 58 (delta 24), pack-reused 8032
Receiving objects: 100% (8120/8120), 7.11 MiB | 709.00 KiB/s, done.
Resolving deltas: 100% (5535/5535), done.
Checking connectivity... done.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_TIME = "en_IE.utf8",
    LC_MONETARY = "en_IE.utf8",
    LC_MEASUREMENT = "en_IE.utf8",
    LC_NUMERIC = "en_IE.utf8",
    LC_PAPER = "en_IE.utf8",
    LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_TIME = "en_IE.utf8",
    LC_MONETARY = "en_IE.utf8",
    LC_MEASUREMENT = "en_IE.utf8",
    LC_NUMERIC = "en_IE.utf8",
    LC_PAPER = "en_IE.utf8",
    LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
Cloning into 'proto'...
remote: Counting objects: 847, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 847 (delta 3), reused 5 (delta 3), pack-reused 837
Receiving objects: 100% (847/847), 183.25 KiB | 261.00 KiB/s, done.
Resolving deltas: 100% (458/458), done.
Checking connectivity... done.
Cloning into 'test/fixtures/testapps'...
remote: Counting objects: 582, done.
remote: Total 582 (delta 0), reused 0 (delta 0), pack-reused 582
Receiving objects: 100% (582/582), 2.12 MiB | 655.00 KiB/s, done.
Resolving deltas: 100% (285/285), done.
Checking connectivity... done.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated MD5@1.2.2: deprecated, use lowercase 'md5@2.x' from now on
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
node-pre-gyp ERR! Tried to download: https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v48-linux-arm.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for usb@1.2.0 and node@6.7.0 (node-v48 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.3.7/node-v48-linux-arm.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for grpc@1.3.7 and node@6.7.0 (node-v48 ABI) (falling back to source compile with node-gyp) 
npm WARN optional Skipping failed optional dependency /bleno/xpc-connection:
npm WARN notsup Not compatible with your operating system or architecture: xpc-connection@0.1.4
Connection to 192.168.0.4 closed by remote host.
Connection to 192.168.0.4 closed.

What is the port that matrix os uses to contract the server? Does it need to contact the server before it goes further in the startup?

Just thinking if it could not contact the server then the start will not complete? this is the end of the startup messages on matrix os.

Starting as device: df2a4583853d
  hci set advertise enable - writing: 010a200100 +47ms
  hci onSocketError: File descriptor in bad state +4ms
hb: sen> [] svc> []
Either you don't have a Bluetooth device enabled or you need to give Node permission to use it without sudo.
In order to do that you can use the command sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
hb: sen> [] svc> []
hb: sen> [] svc> []
hb: sen> [] svc> []
hb: sen> [] svc> []
hb: sen> [] svc> []
hb: sen> [] svc> []
hb: sen> [] svc> []

was the team able to see the device online?