안녕하세요,
몇 가지 업데이트를 적용한 후 Discourse가 Raspi4에서 작동하지 않게 되었습니다.
저는 이전에 이 블로그 포스트를 작성하고 설치했습니다.
많은 시도를 해 보았지만 문제를 해결하지 못하고 있습니다. 솔직히 어디서 오류가 나는지 찾지 못했습니다.
안녕하세요,
몇 가지 업데이트를 적용한 후 Discourse가 Raspi4에서 작동하지 않게 되었습니다.
저는 이전에 이 블로그 포스트를 작성하고 설치했습니다.
많은 시도를 해 보았지만 문제를 해결하지 못하고 있습니다. 솔직히 어디서 오류가 나는지 찾지 못했습니다.
다음 출력을 공유해 주시겠어요?
docker ps -a
ps aux | grep cloudflared
curl -I localhost 는 어떨까요?
아니면 Discourse 앱이 부팅되지 않는다는 뜻이네요.
방금 https://discourse-on-a-pi.falco.dev/를 다시 빌드해서 정상적으로 작동하는 것을 확인했습니다. 해당 설치 환경에 플러그인이 있나요?
tail -n 50 /var/discourse/shared/standalone/log/rails/production.log 명령을 실행하면 몇 가지 단서를 얻을 수 있을지도 모릅니다.
아니요, 저는 어떤 플러그인도 사용하지 않고 있습니다. 저는 단순히 플러그인 아웃렛 위치 테마 컴포넌트만 사용하고 있습니다.
tail -n 50 /var/discourse/shared/standalone/log/rails/production.log
Processing by ListController#latest as HTML
Rendered list/list.erb within layouts/application (Duration: 63.6ms | Allocations: 11276)
Rendered list/list.erb within layouts/application (Duration: 66.0ms | Allocations: 11276)
Started GET "/" for 188.119.17.7 at 2022-08-03 14:48:43 +0000
Processing by ListController#latest as HTML
Rendered list/list.erb within layouts/application (Duration: 78.8ms | Allocations: 11276)
Started GET "/" for 188.119.17.7 at 2022-08-03 14:48:55 +0000
Processing by ListController#latest as HTML
Rendered list/list.erb within layouts/application (Duration: 59.2ms | Allocations: 11276)
start
done
start
done
Started GET "/" for 188.119.17.7 at 2022-08-03 14:54:33 +0000
Processing by ListController#latest as HTML
Rendered list/list.erb within layouts/application (Duration: 51.5ms | Allocations: 11276)
Started GET "/" for 188.119.17.7 at 2022-08-03 14:56:09 +0000
Processing by ListController#latest as HTML
Rendered list/list.erb within layouts/application (Duration: 52.6ms | Allocations: 11276)
start
done
Started GET "/" for 188.119.17.7 at 2022-08-03 14:57:18 +0000
Processing by ListController#latest as HTML
Rendered list/list.erb within layouts/application (Duration: 52.1ms | Allocations: 11276)
start
done
start
done
start
done
start
done
start
done
Started HEAD "/" for 172.17.0.1 at 2022-08-03 15:13:18 +0000
Processing by ListController#latest as */*
Rendered exceptions/not_found.html.erb within layouts/no_ember (Duration: 67.5ms | Allocations: 6453)
Started GET "/" for 188.119.17.7 at 2022-08-03 15:13:43 +0000
Processing by ListController#latest as HTML
Rendered list/list.erb within layouts/application (Duration: 56.6ms | Allocations: 11272)
Started HEAD "/" for 172.17.0.1 at 2022-08-03 15:14:13 +0000
Processing by ListController#latest as */*
Rendered exceptions/not_found.html.erb within layouts/no_ember (Duration: 2.0ms | Allocations: 94)
Started HEAD "/" for 172.17.0.1 at 2022-08-03 15:14:35 +0000
Processing by ListController#latest as */*
Rendered exceptions/not_found.html.erb within layouts/no_ember (Duration: 1.6ms | Allocations: 94)
start
done
start
done
정말 이상하네요! /latest 라우트가 404 오류를 일으킬 수 있는 사례는 제가 알기론 없습니다
.
어떤 식으로든 잘못된 설정에 도달한 것 같습니다. 데이터베이스를 잘못 건드린 건 아닌가요?
https://dev.zettabayt.com/about.json 같은 라우트는 정상적으로 작동하지만, 데이터베이스 어딘가에 일관성 오류가 있는 것 같습니다.
방금 Discourse를 최신 버전으로 업그레이드했습니다. 데이터베이스에는 아무 작업도 하지 않았습니다.
Pi SD 카드 사용으로 인해 데이터베이스가 손상되었을 가능성이 있습니다. 이 경우 마지막으로 정상 작동하던 백업에서 복원해야 합니다.