elestio-examples / lobster

Deploy Lobster on Elestio with CI/CD
0 stars 0 forks source link

/about - HTTP/2 500 #1

Open a1exus opened 1 month ago

a1exus commented 1 month ago

hello,

i ran lobster instance, yet while instance appears to be working fine once i click on "about" page, I get 500 error and there is nothing in the logs of the container

alexus@mbp ~ % curl -I https://amonia.com/
HTTP/2 200
cache-control: max-age=0, private, must-revalidate
content-security-policy-report-only: default-src 'none'; connect-src 'self'; font-src 'self' https: data:; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; report-uri /csp-violation-report
content-type: text/html; charset=utf-8
etag: W/"0b155ac57d043e1c3dd0d69d3b6f7394"
link: </assets/application-6199295a18f0aaca129e5f43a85732f0bb12b865954d74498dedd958fa14bb53.css>; rel=preload; as=style; nopush
referrer-policy: strict-origin-when-cross-origin
set-cookie: lobster_trap=A4HtgwCwVSVse6qok8ZCkDhM7aT%2BB6BhCHXG9zjZyR1fgxZ0%2B2NyqJaH%2Fx2T2E3x8Z%2FFer1vM7D9Wu381neOC5xtXidorIdZNHxQec2lEBsZjE9vtkuYAclgKz5JE7tDYirEU7P1PuY0jwGI2faNEkAOzqrk%2FMqF8x6DA6ZvWW0ik9oswMRIZ9urqj%2BerazkVY8JN13JeZ4ub3wuBHUnzgUaCqQDGv9bRrJCc05zjc9WRWrD5IS9niXC4dWaY6OmfQK4f2%2BLGvPdFRE14k4KdK0vvbsCL8EImOFREzMwGXC7KUJ5%2FYq%2FBRzn--oAg%2FWvA9P637FdLS--zOl%2BEKDSiiWDBxbOagpITg%3D%3D; path=/; expires=Sun, 24 Nov 2024 20:17:03 GMT; HttpOnly; SameSite=Lax
vary: Accept
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-request-id: 88cf1f34-809d-4409-9449-1e977313a318
x-runtime: 0.027116
x-xss-protection: 1; mode=block
content-length: 0
date: Thu, 24 Oct 2024 20:17:03 GMT

alexus@mbp ~ % curl -I https://amonia.com/about
HTTP/2 500
content-type: text/html; charset=UTF-8
x-request-id: 3e8fb970-93bb-4648-812d-02820376ef0f
x-runtime: 0.009473
content-length: 0
date: Thu, 24 Oct 2024 20:17:05 GMT

alexus@mbp ~ %

please advise

AmsellemJoseph commented 4 weeks ago

hey @a1exus

here is the logs that we get

F, [2024-10-27T10:06:20.289635 #17] FATAL -- : [e347fa4f-525e-4f20-8d91-25988a191370] [e347fa4f-525e-4f20-8d91-25988a191370] ActionView::Template::Error (Site owner: You need to delete app/views/home/about.html.erb and write your own about page): [e347fa4f-525e-4f20-8d91-25988a191370] 1: <% render partial: 'about/subnav' %> [e347fa4f-525e-4f20-8d91-25988a191370] 2: [e347fa4f-525e-4f20-8d91-25988a191370] 3: <div class="box wide"> [e347fa4f-525e-4f20-8d91-25988a191370] 4: <%- raise "Site owner: You need to delete app/views/home/about.html.erb and write your own about page" if Rails.env.production? and Rails.application.name != 'Lobsters' -%> [e347fa4f-525e-4f20-8d91-25988a191370] 5: [e347fa4f-525e-4f20-8d91-25988a191370] 6: <div class="story_text"> [e347fa4f-525e-4f20-8d91-25988a191370] 7: <p>

this means that the about page is not provided by the author. You can create your own image with your custom files or, as we did, redirect via nginx the about page to the home page.

a1exus commented 4 weeks ago

hey @a1exus

here is the logs that we get

F, [2024-10-27T10:06:20.289635 #17] FATAL -- : [e347fa4f-525e-4f20-8d91-25988a191370] [e347fa4f-525e-4f20-8d91-25988a191370] ActionView::Template::Error (Site owner: You need to delete app/views/home/about.html.erb and write your own about page): [e347fa4f-525e-4f20-8d91-25988a191370] 1: <% render partial: 'about/subnav' %> [e347fa4f-525e-4f20-8d91-25988a191370] 2: [e347fa4f-525e-4f20-8d91-25988a191370] 3: <div class="box wide"> [e347fa4f-525e-4f20-8d91-25988a191370] 4: <%- raise "Site owner: You need to delete app/views/home/about.html.erb and write your own about page" if Rails.env.production? and Rails.application.name != 'Lobsters' -%> [e347fa4f-525e-4f20-8d91-25988a191370] 5: [e347fa4f-525e-4f20-8d91-25988a191370] 6: <div class="story_text"> [e347fa4f-525e-4f20-8d91-25988a191370] 7: <p>

this means that the about page is not provided by the author. You can create your own image with your custom files or, as we did, redirect via nginx the about page to the home page.

how is your environment a lot more noisy then mine? how do you turn on logging up?

however, you're probably right.. and i can't use this example image as is, and i'd have to rebuild the image however there is no Dockerfile included with repo.. are there any instructions how to actually do that though?

$ docker exec -it lobster-elestio ls /lobsters/app/views/about/
404.html.erb  _subnav.html.erb  about.html.erb  chat.html.erb  privacy.html.erb
$

i do see about is included w/ image though.. why wouldn't it work out of the box? rest seems to be working fine though)