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

[BUG] Super event throwing error in production #1095

Closed
sandeep-ps opened this issue Aug 9, 2023 · 15 comments
Closed

[BUG] Super event throwing error in production #1095

sandeep-ps opened this issue Aug 9, 2023 · 15 comments
Assignees
Labels
bug Something isn't working

Comments

@sandeep-ps
Copy link
Collaborator

sandeep-ps commented Aug 9, 2023

Describe the bug
Publishing a super event throwing error in events manager PROD instance.
Screenshot 2023-09-14 at 8 25 46 AM

Initially reported by Vanessa.
The super event title is "IlliniFest: Campus-Wide Open House for Prospective Students". Approx created time :
Created for group " Enrollment Management Event Admins". This super event was linked to around 80 subevents.

Screenshot of some subevents linked to that superevent :
Screenshot 2023-09-14 at 8 47 32 AM

Describing what I understand the user might have done to create these events :
The user created all the subevents first, just "added " them and not "publish". Then the user created the superevent, "added" it and not publish. Linked all the subevents and then published. This would ideally result in publishing both the superevent and all subevents.
The events have a physical location and some subevents have end time after the super event end time. Some events have "&" in the title. All events have category "Campus Visits".

The user tried to publish the super event at approx 8:20 AM on Sept 14th.

Looking to get the PROD logs for more debugging.

To Reproduce
I tried creating and publishing a super event linked with subevents with the event details mentioned above and I was able to publish the events without error. Hence this issue might be specific to that event.

Expected behavior
User is able to publish the superevent with all (approx 80+) subevents.

@sandeep-ps sandeep-ps added the bug Something isn't working label Aug 9, 2023
@minump minump changed the title [BUG] [DRAFT] Super event throwing error in production [BUG] Super event throwing error in production Sep 14, 2023
@minump
Copy link
Collaborator

minump commented Sep 14, 2023

@pascoem @pmarkhennessy Was wondering if you can share Events Manager and EventsBB prod instance logs for the time period Sept 14th 8:00 AM to 8:30 AM?

@minump
Copy link
Collaborator

minump commented Sep 14, 2023

Mike has shared the eventsBB and events manager PROD logs in Slack message. Thankyou.

@bingzhang
Copy link
Collaborator

@minump shall we link the logs to this issue, please?

@minump
Copy link
Collaborator

minump commented Sep 14, 2023

Events_091423.csv
Events_Manager_091423.csv

Sharing the logs Mike shared in Slack. However, I see that the "Message" column is missing in both. I have requested Mike for the same. Thank you.

@minump
Copy link
Collaborator

minump commented Sep 14, 2023

1694715202_360306_898CD4DA-CBBD-45B1-807D-90D5F98FE851.csv
1694714511_360025_898CD4DA-CBBD-45B1-807D-90D5F98FE851.csv

Log files from events manager and events BB prod instance. the "_raw" field has the desired logs
@bingzhang

@minump
Copy link
Collaborator

minump commented Sep 14, 2023

On checking out the events manager logs, I see a bunch of "event submission fails" messages. This could be because the publishing of the super event failed (https://github.com/rokwire/events-manager/blob/develop/utilities/user_utilities.py#L396) . There is also a bunch of corresponding GET requests in eventsBB with query params "targetAudience", "startDate" "endDate" etc from here . When the POST request failed, the event status is set to "Pending".

On checking the eventsBB aws logs, I do not see POST requests. Maybe these were missed / outside of the time period.

@minump
Copy link
Collaborator

minump commented Sep 14, 2023

This issue is observed on Sept 14th and not on Aug 9th.

@minump
Copy link
Collaborator

minump commented Sep 14, 2023

@vburgett Can me and @bingzhang be added as "admin" roles for the group " Enrollment Management Event Admins"? Asking this because we both are able to publish super events and link subevents in PROD instance. Looking at the logs we see some "event submission failed" responses. For more details we would like to look at the events itself. We wil be able to access the events only if we are part of that group.

If a user has "member" role, that user will not be able to see "pending" events.

@vburgett
Copy link

@minump @bingzhang sure. Please request membership and I will make you admins. image

@vburgett
Copy link

@minump you are now an admin of the Group.

To restate the issues that need solving—1) the actual Group admins need to be able to publish (Laura) and 2) we need to remove the multiple instances of this super event from the app.

@bingzhang
Copy link
Collaborator

I checked on the events manager in prod. this reported super event has been published correctly. Please check and consider to close it if it has been fixed.

@bingzhang
Copy link
Collaborator

remove @vburgett because this issue is targeted to the developer.

@minump
Copy link
Collaborator

minump commented Sep 27, 2023

This issue has been investigated more. We deployed a hot fix for events manager which captures more logs when a failure happens. One particualr user is facing an authentication issue when publishing an event in PROD instance. Need to check more in eventsBB auth-middleware.

@bingzhang
Copy link
Collaborator

@minump I created a issue in auth middleware at rokwire/rokwire-building-blocks-api#1197

@minump
Copy link
Collaborator

minump commented Oct 25, 2023

The actual cause of the user permission issue is not yet clear. This bug is specific to a particular user, as multiple other users (within and outside of Rokwire) are able to create and publish both super events and normal events.

Closing this issue as no further resolutions can be discovered. Closing this issue as "wont fix".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants