Docker error TypeError: Cannot read property 'jti' of null
I am getting this error. I have mounted a volume and put the token file there. As it gets past that failure.
I am running open media vault 5 and using portainer to help manage the docker.
I have seen this mentioned only a few places and it seems related to the token file. But i have tried everything that was mentioned.
TypeError: Cannot read property ‘jti’ of null
at new MonocleClient (/snapshot/monocle-gateway/lib/monocle/MonocleClient.js:1:1171)
at Object.<anonymous> (/snapshot/monocle-gateway/lib/monocle/MonocleGateway.js:1:5241)
at Module._compile (pkg/prelude/bootstrap.js:1243:22)
at Object.Module._extensions…js (module.js:650:10)
at Module.load (module.js:558:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)
at Module.require (module.js:583:17)
at Module.require (pkg/prelude/bootstrap.js:1153:31)
at require (internal/module.js:11:18)
No one else have this issue? There is no modifications to the docker. I would expect it to work.
Monocle last edited by
I believe this error is typically seen when there is a missing
monocle.tokenfile. You have to provide this file for the container/monocle gateway to authenticate your user account.
For example you can save the file to you local path:
Then include a mounted volume path for your docker container to mount the directory:
Thanks but this error comes after the error about the token file. With no file I get an error saying no token file. If I mount and place the file I get this warning.
I saw some of people maybe mentioning permissions but I believe I have set them correctly.
I will mess with the file some more.