Deploy on Azure via Terraform #1671
-
What happened?I recently deployed LibreChat on Azure following the instructions in the wiki. The deployment was successful, and I was able to access the website, create an account, and log in. However, I'm encountering an issue shortly after logging in. Issue Description: After successfully logging in, the UI is visible for a few seconds before an unexpected application error occurs. The error seems to originate from a script file (index-eG_k48uu.js) and is possibly related to some vendor scripts. Steps to Reproduce
What browsers are you seeing the problem on?No response Relevant log outputUnexpected Application Error!
Cannot read properties of undefined (reading 'sort')
TypeError: Cannot read properties of undefined (reading 'sort')
at https://********.azurewebsites.net/assets/index-eG_k48uu.js:37:88412
at gg (https://********.azurewebsites.net/assets/vendor-XGrjyrDJ.js:40:24283)
at $c (https://********.azurewebsites.net/assets/vendor-XGrjyrDJ.js:40:42409)
at nz (https://********.azurewebsites.net/assets/vendor-XGrjyrDJ.js:40:41231)
at zl (https://********.azurewebsites.net/assets/vendor-XGrjyrDJ.js:40:40278)
at a7 (https://********.azurewebsites.net/assets/vendor-XGrjyrDJ.js:40:36886)
at wl (https://********.azurewebsites.net/assets/vendor-XGrjyrDJ.js:38:3279)
at https://********.azurewebsites.net/assets/vendor-XGrjyrDJ.js:40:34263 ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
It's hard to debug this without being able to see the mapped trace output. To do so, you would need to be able to run You can also edit this line and then rebuild the app/image: LibreChat/client/vite.config.ts Line 30 in f7f7f92 build: {
sourcemap: true, // changed this to `true` replacing `process.env.NODE_ENV === 'development'` After doing so, we can get a more meaningful error to see where/why the error occurs. The terraform instructions are maintained by @thunderbug1 in a separate repo: https://github.com/thunderbug1/LibreChatAzureDeployment. I can't comment on the setup as I haven't personally deployed it. Note that the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick answer. |
Beta Was this translation helpful? Give feedback.
-
Thanks for everything. If possible, do you have any idea why would this be the case ? |
Beta Was this translation helpful? Give feedback.
Thanks for everything.
I don't why, I just had to delete Users table and recreate it and it worked...
If possible, do you have any idea why would this be the case ?
If not, this case can be closed. Thanks again.