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

Failed to determine user's tenant #2779

Open
giandre opened this issue Aug 1, 2024 · 0 comments
Open

Failed to determine user's tenant #2779

giandre opened this issue Aug 1, 2024 · 0 comments

Comments

@giandre
Copy link

giandre commented Aug 1, 2024

Expected Behaviour

The menu to create courses should show in the dashboard.

Actual Behaviour

Empty page and I can only see the other menus and even add users from the UI.

Steps to Reproduce

Every time I launch the app and I log in.

Versions

  • Authoring Tool Version:
  • Framework Version:
  • Node.js Version: 18.20.4
  • MongoDB Version: 1.43.4
  • Operating System: Windows 11
  • Browser: Edge and Chrome

This is the error log. I can connect to the database and I can see logs in the database but I still get this error.

info [30 Jul 24 16:45:34 -04:00] configuration loaded from D:\adapt_authoring\conf\config.json
info [30 Jul 24 16:45:34 -04:00] Supporting the following authentication types:
info [30 Jul 24 16:45:34 -04:00] - local
info [30 Jul 24 16:45:34 -04:00] Connection established: adapt-tenant-master
info [30 Jul 24 16:45:35 -04:00] Adapt authoring tool 0.11.3.
info [30 Jul 24 16:45:35 -04:00] Adapt framework 5.40.5.
info [30 Jul 24 16:45:35 -04:00] Server started listening on port 5000
Error: Failed to determine user's tenant!
at Object.getDatabase (D:\adapt_authoring\lib\database.js:416:19)
at D:\adapt_authoring\plugins\content\tag\index.js:76:16
at D:\adapt_authoring\lib\rest.js:115:7
at Layer.handle [as handle_request] (D:\adapt_authoring\node_modules\express\lib\router\layer.js:95:5)
at next (D:\adapt_authoring\node_modules\express\lib\router\route.js:149:13)
at Route.dispatch (D:\adapt_authoring\node_modules\express\lib\router\route.js:119:3)
at Layer.handle [as handle_request] (D:\adapt_authoring\node_modules\express\lib\router\layer.js:95:5)
at D:\adapt_authoring\node_modules\express\lib\router\index.js:284:15
at Function.process_params (D:\adapt_authoring\node_modules\express\lib\router\index.js:346:12)
at next (D:\adapt_authoring\node_modules\express\lib\router\index.js:280:10)
at Layer.handle [as handle_request] (D:\adapt_authoring\node_modules\express\lib\router\layer.js:91:12)
at trim_prefix (D:\adapt_authoring\node_modules\express\lib\router\index.js:328:13)
at D:\adapt_authoring\node_modules\express\lib\router\index.js:286:9
at Function.process_params (D:\adapt_authoring\node_modules\express\lib\router\index.js:346:12)
at next (D:\adapt_authoring\node_modules\express\lib\router\index.js:280:10)
at D:\adapt_authoring\lib\application.js:308:7
at Layer.handle [as handle_request] (D:\adapt_authoring\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (D:\adapt_authoring\node_modules\express\lib\router\index.js:328:13)
at D:\adapt_authoring\node_modules\express\lib\router\index.js:286:9
at Function.process_params (D:\adapt_authoring\node_modules\express\lib\router\index.js:346:12)
at next (D:\adapt_authoring\node_modules\express\lib\router\index.js:280:10)
at D:\adapt_authoring\lib\permissions.js:495:16
at Layer.handle [as handle_request] (D:\adapt_authoring\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (D:\adapt_authoring\node_modules\express\lib\router\index.js:328:13)
at D:\adapt_authoring\node_modules\express\lib\router\index.js:286:9
at Function.process_params (D:\adapt_authoring\node_modules\express\lib\router\index.js:346:12)
at next (D:\adapt_authoring\node_modules\express\lib\router\index.js:280:10)
at SendStream.error (D:\adapt_authoring\node_modules\serve-static\index.js:121:7)

I checked mongodb and I can see that the database was created and I see a tenant, user, and all other components. This is what the tenant document says:
_id
66a9505620d147392c898b65
_isDeleted
false
isMaster
true
name
"adaptmaster"
displayName
"adaptmaster"

database
Object
createdAt
2024-07-30T20:43:02.351+00:00
updatedAt
2024-07-30T20:43:02.351+00:00
__v
0

I am not a developer so I have no idea what to do and ChatGPT basically asked me to update a bunch of files :)... so I stopped.

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