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

Random crash and then logout #8347

Open
chsasank opened this issue Nov 5, 2024 · 8 comments
Open

Random crash and then logout #8347

chsasank opened this issue Nov 5, 2024 · 8 comments

Comments

@chsasank
Copy link
Contributor

chsasank commented Nov 5, 2024

I have deployed twenty using containers (but not using docker-compose). Here's an error I am getting once in a while:

Unexpected Application Error!
Scope id is not provided and cannot be found in context.

si@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:954:4652
hr@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:5845:5098
nOa@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:6229:517
jie@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:46:17091
hOe@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:48:44309
cOe@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:48:40008
Kmt@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:48:39931
gP@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:48:39776
UQ@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:48:36109
iOe@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:48:35054
C@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:33:1545
O@https://twenty.von-neumann.ai/assets/index-BqUDOfxQ.js:33:1903
image

I don't see any event in the server logs. What's frustrating about this crash is that I am getting logged out when I refresh the tab. It asks me to log in again.

@chsasank
Copy link
Contributor Author

chsasank commented Nov 5, 2024

The relevant code seems to be here:

const errorMessage = 'Scope id is not provided and cannot be found in context.';

@chsasank
Copy link
Contributor Author

chsasank commented Nov 5, 2024

Containers themselves didn't restart either, just posting here for sanity:

(base) sasank@JOHNAIC:~/code/llama.lisp$ podman ps | grep twenty
db9c8c17e4ad  docker.io/library/redis:latest                     redis-server          30 hours ago  Up 30 hours  0.0.0.0:52951->3000/tcp                           systemd-twenty-redis
8ccd102a7806  docker.io/twentycrm/twenty-postgres:v0.31.2        /opt/bitnami/scri...  30 hours ago  Up 30 hours  0.0.0.0:52951->3000/tcp                           systemd-twenty-db
ca9b1da9d5fe  docker.io/twentycrm/twenty:v0.31.2                 sh /mnt/init_work...  30 hours ago  Up 30 hours  0.0.0.0:52951->3000/tcp                           systemd-twenty-worker
56a1c4ecb675  docker.io/twentycrm/twenty:v0.31.2                 node dist/src/mai...  26 hours ago  Up 26 hours  0.0.0.0:52951->3000/tcp                           systemd-twenty-server

@harishnanthan
Copy link

How can I reproduce this, @chsasank ?
It will occur only when the'scopeId` is not found in context or props. It was used in many places, so I need to reproduce the steps.

@chsasank
Copy link
Contributor Author

chsasank commented Nov 6, 2024

I use firefox if that helps. Unfortunately I don't have instructions to reliably reproduce. It just happened once in a while over last 2 days.

@FelixMalfait
Copy link
Member

Thanks @chsasank - it's the second time I see a report with this message so we need to keep this issue open until we figure out what is going on. Unfortunately we've been trying to reproduce this internally but couldn't. Any hint appreciated! I will download Firefox but I think the other report was on Chrome

@chsasank
Copy link
Contributor Author

I think it might be happening when I have logged in from a different browser. I think having second login is somehow expiring the first login and causing this.

@chsasank
Copy link
Contributor Author

This is almost a clear pattern. Only single login seems to be possible. If I am logged in from multiple devices, it logs me out from one. If the tab is still open in a device that's to be logged out, this crash happens.

@FelixMalfait
Copy link
Member

FYI I'm adding logs: #8513 ; it won't help short term but at least next time it comes after the next release and someone reports it, we might have more info

FelixMalfait added a commit that referenced this issue Nov 15, 2024
Can't figure out #8347 so I'm
adding logs, maybe it'll help debug in the future!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

4 participants