Initial setup. Matrix ping fails, and can't login on matrix android app

Hi
Just posted on topic “Cannot do matrix ping” a couple of days ago, but no response, so now I try a new topic, in hope to receive some help on the issue.
I just recevied 1 Creator and 2 voice boards. I am trying to set up the creator on PI.
Followed the video linked on “Installation and Registration”.
On pi, running 0.17.0, and get a “ready”.
On Win 10 running matrix cli 1.7.0.
“Matrix” command show the correct device id.
output from matrix ping:

C:\Windows\System32>matrix ping
Matrix CLI Error: TypeError: Cannot read property ‘message’ of null
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\lib\app.js:163:29
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:726:13
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:52:16
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:269:32
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:44:16
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:723:17
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:167:37
at Socket. (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-node-sdk\utils\Socket.js:27:11)
at Socket.Emitter.emit (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\component-emitter\index.js:133:20)
at Socket.onClose (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\engine.io-client\lib\socket.js:715:10) TypeError: Cannot read property ‘message’ of null
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\lib\app.js:163:29
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:726:13
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:52:16
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:269:32
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:44:16
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:723:17
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:167:37
at Socket. (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-node-sdk\utils\Socket.js:27:11)
at Socket.Emitter.emit (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\component-emitter\index.js:133:20)
at Socket.onClose (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\engine.io-client\lib\socket.js:715:10)""

All on “rc” environment.

When I try to login into the matrix app on my android tablet, I get “Authentication fail” - I use the account credentials entered when I ran “matrix register”.

BR Kim

hi @kims

Please run DEBUG=* matrix ping command and paste result here

C:\Users\Kim>DEBUG=* matrix ping
‘DEBUG’ is not recognized as an internal or external command,
operable program or batch file.

on a windows system:

set DEBUG=*
matrix ping

result is:

C:\WINDOWS\system32>matrix ping
cli Env: rc +0ms
sdk Token Expired. +749ms
sdk Invalid token! +1ms
sdk [post] params: { url: ‘https://rc-api.admobilize.com/v1/oauth2/user/refresh_token’,
form:
{ client_id: ‘AdMobilizeClientId’,
client_secret: ‘AdMobilizeClientId’,
refresh_token: ‘26LJR2H2MLS9NMT57HJ0FZ9TUAQ4XT2TI2JUOOF8X9GGORIIR3R6UZ6NHKHWTL9BDV341SZ4HAYWX1SNT97IIDOTP0MM86PL4YC7E6PR1L1OBX9T4GTX4UK4NT0BMZ5EBJOAQRHGUMTGR5ROCL2HYHHUBC2J7IRPFA9V0NUHXQLRW0HW6SHLPEA995NWK4PEQN8G4AJC’,
grant_type: ‘refresh_token’,
jwt_token: true },
json: true } +1ms
sdk [post] body: { status: ‘OK’,
results:
{ access_token: ‘eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGF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XJ2aWNlYWNjb3VudC5jb20ifQ.oJAqHNUm_oGuDptAJz-_YCdURoP9TbEf0MTfZrQJp8OKZ70Os4KF8kK_SakmTIG4fWT3NAIj2-Ih0iDqRoiu9aTPXoqOoeICJDdUubXZ83k5pQ_Bh6Sw2DJdK5U1e1yUT7j88hUZ_PgV9JTqT6vyOSPGewxjZ4CbFxtRgIyoLP3cMVmF96PGx0jL6JLJILS7BNRwr3f7b8f7jpdgeek8bN4hYchmS5EP4gPFU–wsE-aSzDHFGuDXPvRlBKD0WDV2QbIV0DORKPpuBFRBmXIusOAf7K010XL1cgXV3ciSBlbsdNtDr7NeeOAgD_6__KXFXlybMIWYs_bQ1q6nWl1OQ +1ms
sdk Url {
sdk protocol: ‘wss’,
sdk slashes: true,
sdk auth: null,
sdk host: ‘mxss.admobilize.com’,
sdk port: null,
sdk hostname: ‘mxss.admobilize.com’,
sdk hash: null,
sdk search: null,
sdk query: null,
sdk pathname: ‘/’,
sdk path: ‘/’,
sdk href: ‘https://mxss.admobilize.com/’ } +3ms
sdk Trying Socket Connection: wss://mxss.admobilize.com/ +3ms
engine.io-client:socket creating transport “websocket” +0ms
engine.io-client:socket setting transport websocket +4ms
engine.io-client:socket socket receive: type “open”, data “{“sid”:“oK8-VmQNVxPPNPGlAAMx”,“upgrades”:[],“pingInterval”:15000,“pingTimeout”:450000}” +369ms
engine.io-client:socket socket open +1ms
sdk Socket Connection: wss://mxss.admobilize.com/ +443ms
engine.io-client:socket flushing 1 packets in socket +0ms
sdk socket open +2ms
engine.io-client:socket socket receive: type “message”, data “{“channel”:“register-ok”,“payload”:{“ok”:true}}” +564ms
sdk Register ok +562ms
sdk [ss] { t: ‘trigger’,
deviceId: ‘x’,
p:
{ data: ‘amazing-matrix-ping’,
token: ‘YI9EAN095B4YQ4ZY2FZ5LTA9DMR15XW5CBNLN5F53MH7091MF1RYXWMX7GQC3G1E5HTP1IXXLPCQB9AF6RJPQD7WYF5BFVMY9V6J09EVKECSFHXK19QGRQDRU6IN3M26889B372YN5Q1YA3GVBTJT67JS6JAJC3PPZLE04NSLETA6DUD7MF7NRT4MIVLKCUCFXEWKTOC’ } } +1ms
sdk [ss]> client-cmd { t: ‘trigger’,
deviceId: ‘x’,
p:
{ data: ‘amazing-matrix-ping’,
token: ‘YI9EAN095B4YQ4ZY2FZ5LTA9DMR15XW5CBNLN5F53MH7091MF1RYXWMX7GQC3G1E5HTP1IXXLPCQB9AF6RJPQD7WYF5BFVMY9V6J09EVKECSFHXK19QGRQDRU6IN3M26889B372YN5Q1YA3GVBTJT67JS6JAJC3PPZLE04NSLETA6DUD7MF7NRT4MIVLKCUCFXEWKTOC’ } } +0ms
engine.io-client:socket flushing 1 packets in socket +2ms
engine.io-client:socket socket close with reason: “forced close” +2ms
sdk socket close +4ms
sdk Uncaught error: TypeError: Cannot read property ‘message’ of null
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\lib\app.js:163:29
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:726:13
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:52:16
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:269:32
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:44:16
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:723:17
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:167:37
at Socket. (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-node-sdk\utils\Socket.js:27:11)
at Socket.Emitter.emit (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\component-emitter\index.js:133:20)
at Socket.onClose (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\engine.io-client\lib\socket.js:715:10) +3ms
Matrix CLI Error: TypeError: Cannot read property ‘message’ of null
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\lib\app.js:163:29
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:726:13
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:52:16
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:269:32
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:44:16
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:723:17
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:167:37
at Socket. (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-node-sdk\utils\Socket.js:27:11)
at Socket.Emitter.emit (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\component-emitter\index.js:133:20)
at Socket.onClose (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\engine.io-client\lib\socket.js:715:10) TypeError: Cannot read property ‘message’ of null
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\lib\app.js:163:29
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:726:13
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:52:16
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:269:32
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:44:16
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:723:17
at C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\async\lib\async.js:167:37
at Socket. (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\matrix-node-sdk\utils\Socket.js:27:11)
at Socket.Emitter.emit (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\component-emitter\index.js:133:20)
at Socket.onClose (C:\Users\Kim\AppData\Roaming\npm\node_modules\matrix-cli\node_modules\engine.io-client\lib\socket.js:715:10)

I substituded my device id with an ‘x’.
BR Kim

Is there anyone out there ???
I am stuck on this issue. All help is highly appreciated.
Any suggestions ???

BR Kims

Set the env to dev, create account and register device. Open your android app and login with your dev registered account. Start your matrix system and connect to it.

Thx TuxTux for your reply.
Ill try to switch to ‘dev’.
I would expect that ‘dev’ would be more unstable than ‘rc’
Any details I should be aware of when doing this ?

In my opinion, the get started tutorial should reflect a working environment.
It gives a bad impression, when things don’t work as descried, especially on the initial setup.
BR Kims

I totally agree. I followed also the tutorial and was happy to get the ios app working. After That i tryed Android and i can’t login. I tried different times to change the password without any luck. After that i had a dicussion here in the community.

Then i tried dev registration and it worked with android but no more with ios, so i have to switch between both enviroments. I think its just a release failure. May be just a misstake.

Did the dev trick worked ?

Hi TuxTux

Didn’t had the time to test it yet. Ill get back with the result, as soon I have time to test it.

BR

Hi
Did the switch to “to dev” by:
on PC (win10):

  • matrix set env dev
  • matrix register (filled with same data as on ‘rc’).
  • matrix register device
  • save ids to file for later use.
  • matrix => show correct environment ‘dev’, and device id.
    On Pi:
  • rename old ~/.bash_profile to ~/.bash_profile.rc
  • echo ids into new ~/.bash_profile
  • issued cmd: source ~/.bash_profile
  • rebooted pi
  • checked the environment var: echo $MATRIX_DEVICE_ID
  • cd matrix-os
  • NODE_ENV=dev node index.js

from PC issued: matrix ping => the ping reach the pi and the “creator” blinks => BUT still give the same error message.

I am also able to login to the android app now :slight_smile:

I will try experiment with some apps.

Thx for pointing me in a (nearly) working direction :slight_smile:
BR Kim

I have a feeling this will be a never ending story…
I am not able to deploy the simple app…

Very frustrating - seems like this product is far from ready to be deployed as an development environment.
Probably It should be put on a shelf until the environment is working, or until it will be possible to have some support.
Seems for now to been wasting a lot of money.
BR Kim