Strange error on installation

I’ve gone through a number of solutions on the forums, applied some of the suggested fixes (running in sudo, chmod 777, etc) and nothing has worked. Now I’m getting this errror:

pi@raspberrypi:~/matrix-os $ 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: d86XXXXXXXXXX
API Error: 401 - You don’t have permissions on the device requested
Unable to setup online MOS, something went wrong (401) (Device Token Retrieval Error)
Bad Matrix Initialization Device Token Retrieval Error
Cleanup complete…

Any suggestions? Thanks

I should add…my first errors were concerning registration and pairing with bluetooth.

thanks for writing

we have two userbases, dev and production. try NODE_ENV=dev instead.

otherwise, you may want to try matrix register device again and dm me your deviceId so i can look it up to see what happened.