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

Staging site down post-Valkyrie #839

Open
KatharineV opened this issue Oct 1, 2024 · 10 comments
Open

Staging site down post-Valkyrie #839

KatharineV opened this issue Oct 1, 2024 · 10 comments
Labels
bug something isn't working M1 Milestone 1 Valkyrie

Comments

@KatharineV
Copy link
Collaborator

One of our staging sites is giving an error message when we try to view the homepage. It worked before Valkyrie, so I hope it's just related to that.

I can see the dashboard when I enter a direct link, but the homepage is no good. Unfortunately, this is a staging site that I use to train repository managers in our consortium, so I hope it can be brought back online at some point.

https://testing.s2.adventistdigitallibrary.org/?locale=en
Image

@KatharineV KatharineV added the bug something isn't working label Oct 1, 2024
@KatharineV
Copy link
Collaborator Author

I checked all our staging sites, and this seems to be the only one affected.

@ShanaLMoore
Copy link
Contributor

related convo

@jillpe jillpe added the M1 Milestone 1 label Oct 1, 2024
@ShanaLMoore ShanaLMoore assigned orangewolf and unassigned orangewolf Oct 7, 2024
@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Oct 7, 2024

@laritakr I wonder if the solution for this issue is captured here. app/views/hyrax/homepage/_featured_fields.html.erb:6 is part of the error's stack trace

Image

@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Oct 7, 2024

From live editing the server: Image

One or multiple of these works will be the cause of this issue:
Image

@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Oct 7, 2024

FeaturedWork.all => 
[#<FeaturedWork:0x00007ff6810adbb8
  id: 1,
  order: 0,
  work_id: "dsgucpbyeqg_graduate_baccalaureate_church_service",
  created_at: Mon, 24 Jul 2023 20:42:22.232882000 UTC +00:00,
  updated_at: Mon, 24 Jul 2023 20:43:12.352370000 UTC +00:00>,
 #<FeaturedWork:0x00007ff68b105340
  id: 4,
  order: 1,
  work_id: "019887_an_explanation_of_the_new_folding_prophetic_chart",
  created_at: Mon, 24 Jul 2023 20:42:50.391977000 UTC +00:00,
  updated_at: Mon, 24 Jul 2023 20:43:12.343324000 UTC +00:00>,
 #<FeaturedWork:0x00007ff68b1052a0
  id: 2,
  order: 2,
  work_id: "nes_b1900_1910_p001_south_lancaster_workers_1901",
  created_at: Mon, 24 Jul 2023 20:42:29.735130000 UTC +00:00,
  updated_at: Mon, 24 Jul 2023 20:43:12.349648000 UTC +00:00>,
 #<FeaturedWork:0x00007ff68b105200
  id: 3,
  order: 3,
  work_id: "10_32597_eve_in_the_image_of_man_feminist_concerns_in_paradise_lost",
  created_at: Mon, 24 Jul 2023 20:42:42.861959000 UTC +00:00,
  updated_at: Mon, 24 Jul 2023 20:43:12.346795000 UTC +00:00>,
 #<FeaturedWork:0x00007ff68b105160
  id: 6,
  order: 6,
  work_id: "auss_32_1_1994_pp107_110_the_adventist_heritage_center_and_a_tribute_to_it

It's concerning that when I go to the works index page it says there are none. If this is a demo-able tenant, where's all the data?

@ShanaLMoore
Copy link
Contributor

I turned off featured works for now and am able to reach the tenant's homepage now.

@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Oct 7, 2024

LaRita cleared the FeaturedWorks table. It seems like the works in that table were deleted, and thus caused this error because the table was still referencing them. The tenant home page loads now and the Featured Work feature flipper is turned back on.

The default theme looks kind of strange but that is likely a separate Hyku concern. Switched to the Adventist theme to match the ADL and SDAPI s2 setting's.

ref: https://testing.s2.adventistdigitallibrary.org/?locale=en

Image

@KatharineV
Copy link
Collaborator Author

Folks, there were a lot of works in this tenant. The fact that they were all deleted in the move to Valkyrie and Version 6 gives me some anxiety, since we have multiple tenants in production as well. Can the team speak to why this might have happened to the testing.s2 tenant on staging? Is it reasonable for me to be concerned that it may happen again when we push to prod?

@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Oct 8, 2024

@KatharineV I noticed this yesterday as well and found it odd too. The lack of data ultimately was the cause of this bug ticket. I'll need time to meet with Rob and the team to find out what happened to this specific tenant and whether or not it can be restored.

We haven't converted active fedora works into valkryie on a mass scale so I'm at a loss for what might have happened here. I'm also hesitant to blame it on Valkyrie because of that.

I also found it strange that there are collections and apparently some have an item count (170), but when I clicked into them I wasn't able to see anything. I thought maybe the works were still there but that there's an issue with permissions.

In Rancher...

ActiveFedora::Base.count
=> 2732

Image

@KatharineV
Copy link
Collaborator Author

Since the site is back up, and this ticket wasn't about the visibility or invisibility of existing works, I'm moving the ticket to the next column and marking it as done with Client QA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working M1 Milestone 1 Valkyrie
Projects
Status: Deploy to Production
Development

No branches or pull requests

4 participants